!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)}(function(i){"use strict";var e=window.Slick||{};(e=function(){var e=0;return function(t,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(t),appendDots:i(t),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return i('<button type="button" />').text(t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},i.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=i(t),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,s=i(t).data("slick")||{},n.options=i.extend({},n.defaults,o,s),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,void 0!==document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=i.proxy(n.autoPlay,n),n.autoPlayClear=i.proxy(n.autoPlayClear,n),n.autoPlayIterator=i.proxy(n.autoPlayIterator,n),n.changeSlide=i.proxy(n.changeSlide,n),n.clickHandler=i.proxy(n.clickHandler,n),n.selectHandler=i.proxy(n.selectHandler,n),n.setPosition=i.proxy(n.setPosition,n),n.swipeHandler=i.proxy(n.swipeHandler,n),n.dragHandler=i.proxy(n.dragHandler,n),n.keyHandler=i.proxy(n.keyHandler,n),n.instanceUid=e++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,t,o){var s=this;if("boolean"==typeof t)o=t,t=null;else if(t<0||t>=s.slideCount)return!1;s.unload(),"number"==typeof t?0===t&&0===s.$slides.length?i(e).appendTo(s.$slideTrack):o?i(e).insertBefore(s.$slides.eq(t)):i(e).insertAfter(s.$slides.eq(t)):!0===o?i(e).prependTo(s.$slideTrack):i(e).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(e,t){i(t).attr("data-slick-index",e)}),s.$slidesCache=s.$slides,s.reinit()},e.prototype.animateHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.animate({height:e},i.options.speed)}},e.prototype.animateSlide=function(e,t){var o={},s=this;s.animateHeight(),!0===s.options.rtl&&!1===s.options.vertical&&(e=-e),!1===s.transformsEnabled?!1===s.options.vertical?s.$slideTrack.animate({left:e},s.options.speed,s.options.easing,t):s.$slideTrack.animate({top:e},s.options.speed,s.options.easing,t):!1===s.cssTransitions?(!0===s.options.rtl&&(s.currentLeft=-s.currentLeft),i({animStart:s.currentLeft}).animate({animStart:e},{duration:s.options.speed,easing:s.options.easing,step:function(i){i=Math.ceil(i),!1===s.options.vertical?(o[s.animType]="translate("+i+"px, 0px)",s.$slideTrack.css(o)):(o[s.animType]="translate(0px,"+i+"px)",s.$slideTrack.css(o))},complete:function(){t&&t.call()}})):(s.applyTransition(),e=Math.ceil(e),!1===s.options.vertical?o[s.animType]="translate3d("+e+"px, 0px, 0px)":o[s.animType]="translate3d(0px,"+e+"px, 0px)",s.$slideTrack.css(o),t&&setTimeout(function(){s.disableTransition(),t.call()},s.options.speed))},e.prototype.getNavTarget=function(){var e=this.options.asNavFor;return e&&null!==e&&(e=i(e).not(this.$slider)),e},e.prototype.asNavFor=function(e){var t=this.getNavTarget();null!==t&&"object"==typeof t&&t.each(function(){var t=i(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},e.prototype.applyTransition=function(i){var e=this,t={};!1===e.options.fade?t[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:t[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.autoPlay=function(){var i=this;i.autoPlayClear(),i.slideCount>i.options.slidesToShow&&(i.autoPlayTimer=setInterval(i.autoPlayIterator,i.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var i=this,e=i.currentSlide+i.options.slidesToScroll;i.paused||i.interrupted||i.focussed||(!1===i.options.infinite&&(1===i.direction&&i.currentSlide+1===i.slideCount-1?i.direction=0:0===i.direction&&(e=i.currentSlide-i.options.slidesToScroll,i.currentSlide-1==0&&(i.direction=1))),i.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=i(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=i(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,t,o=this;if(!0===o.options.dots&&o.slideCount>o.options.slidesToShow){for(o.$slider.addClass("slick-dotted"),t=i("<ul />").addClass(o.options.dotsClass),e=0;e<=o.getDotCount();e+=1)t.append(i("<li />").append(o.options.customPaging.call(this,o,e)));o.$dots=t.appendTo(o.options.appendDots),o.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,t){i(t).attr("data-slick-index",e).data("originalStyling",i(t).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?i('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),i("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var i,e,t,o,s,n,r,l=this;if(o=document.createDocumentFragment(),n=l.$slider.children(),l.options.rows>0){for(r=l.options.slidesPerRow*l.options.rows,s=Math.ceil(n.length/r),i=0;i<s;i++){var d=document.createElement("div");for(e=0;e<l.options.rows;e++){var a=document.createElement("div");for(t=0;t<l.options.slidesPerRow;t++){var c=i*r+(e*l.options.slidesPerRow+t);n.get(c)&&a.appendChild(n.get(c))}d.appendChild(a)}o.appendChild(d)}l.$slider.empty().append(o),l.$slider.children().children().children().css({width:100/l.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,t){var o,s,n,r=this,l=!1,d=r.$slider.width(),a=window.innerWidth||i(window).width();if("window"===r.respondTo?n=a:"slider"===r.respondTo?n=d:"min"===r.respondTo&&(n=Math.min(a,d)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){for(o in s=null,r.breakpoints)r.breakpoints.hasOwnProperty(o)&&(!1===r.originalSettings.mobileFirst?n<r.breakpoints[o]&&(s=r.breakpoints[o]):n>r.breakpoints[o]&&(s=r.breakpoints[o]));null!==s?null!==r.activeBreakpoint?(s!==r.activeBreakpoint||t)&&(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e),l=s),e||!1===l||r.$slider.trigger("breakpoint",[r,l])}},e.prototype.changeSlide=function(e,t){var o,s,n=this,r=i(e.currentTarget);switch(r.is("a")&&e.preventDefault(),r.is("li")||(r=r.closest("li")),o=n.slideCount%n.options.slidesToScroll!=0?0:(n.slideCount-n.currentSlide)%n.options.slidesToScroll,e.data.message){case"previous":s=0===o?n.options.slidesToScroll:n.options.slidesToShow-o,n.slideCount>n.options.slidesToShow&&n.slideHandler(n.currentSlide-s,!1,t);break;case"next":s=0===o?n.options.slidesToScroll:o,n.slideCount>n.options.slidesToShow&&n.slideHandler(n.currentSlide+s,!1,t);break;case"index":var l=0===e.data.index?0:e.data.index||r.index()*n.options.slidesToScroll;n.slideHandler(n.checkNavigable(l),!1,t),r.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(i){var e,t;if(t=0,i>(e=this.getNavigableIndexes())[e.length-1])i=e[e.length-1];else for(var o in e){if(i<e[o]){i=t;break}t=e[o]}return i},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(i("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",i.proxy(e.interrupt,e,!0)).off("mouseleave.slick",i.proxy(e.interrupt,e,!1)),!0===e.options.accessibility&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),i(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().off("click.slick",e.selectHandler),i(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),i(window).off("resize.slick.slick-"+e.instanceUid,e.resize),i("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),i(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var i,e=this;e.options.rows>0&&((i=e.$slides.children().children()).removeAttr("style"),e.$slider.empty().append(i))},e.prototype.clickHandler=function(i){!1===this.shouldClick&&(i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault())},e.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),i(".slick-cloned",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove()),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove()),t.$slides&&(t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){i(this).attr("style",i(this).data("originalStyling"))}),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass("slick-slider"),t.$slider.removeClass("slick-initialized"),t.$slider.removeClass("slick-dotted"),t.unslicked=!0,e||t.$slider.trigger("destroy",[t])},e.prototype.disableTransition=function(i){var e=this,t={};t[e.transitionType]="",!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.fadeSlide=function(i,e){var t=this;!1===t.cssTransitions?(t.$slides.eq(i).css({zIndex:t.options.zIndex}),t.$slides.eq(i).animate({opacity:1},t.options.speed,t.options.easing,e)):(t.applyTransition(i),t.$slides.eq(i).css({opacity:1,zIndex:t.options.zIndex}),e&&setTimeout(function(){t.disableTransition(i),e.call()},t.options.speed))},e.prototype.fadeSlideOut=function(i){var e=this;!1===e.cssTransitions?e.$slides.eq(i).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(i),e.$slides.eq(i).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(i){var e=this;null!==i&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(i).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick","*",function(t){var o=i(this);setTimeout(function(){e.options.pauseOnFocus&&o.is(":focus")&&(e.focussed=!0,e.autoPlay())},0)}).on("blur.slick","*",function(t){i(this);e.options.pauseOnFocus&&(e.focussed=!1,e.autoPlay())})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){return this.currentSlide},e.prototype.getDotCount=function(){var i=this,e=0,t=0,o=0;if(!0===i.options.infinite)if(i.slideCount<=i.options.slidesToShow)++o;else for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else if(!0===i.options.centerMode)o=i.slideCount;else if(i.options.asNavFor)for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else o=1+Math.ceil((i.slideCount-i.options.slidesToShow)/i.options.slidesToScroll);return o-1},e.prototype.getLeft=function(i){var e,t,o,s,n=this,r=0;return n.slideOffset=0,t=n.$slides.first().outerHeight(!0),!0===n.options.infinite?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,s=-1,!0===n.options.vertical&&!0===n.options.centerMode&&(2===n.options.slidesToShow?s=-1.5:1===n.options.slidesToShow&&(s=-2)),r=t*n.options.slidesToShow*s),n.slideCount%n.options.slidesToScroll!=0&&i+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(i>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(i-n.slideCount))*n.slideWidth*-1,r=(n.options.slidesToShow-(i-n.slideCount))*t*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,r=n.slideCount%n.options.slidesToScroll*t*-1))):i+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(i+n.options.slidesToShow-n.slideCount)*n.slideWidth,r=(i+n.options.slidesToShow-n.slideCount)*t),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,r=0),!0===n.options.centerMode&&n.slideCount<=n.options.slidesToShow?n.slideOffset=n.slideWidth*Math.floor(n.options.slidesToShow)/2-n.slideWidth*n.slideCount/2:!0===n.options.centerMode&&!0===n.options.infinite?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:!0===n.options.centerMode&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=!1===n.options.vertical?i*n.slideWidth*-1+n.slideOffset:i*t*-1+r,!0===n.options.variableWidth&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,!0===n.options.centerMode&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow+1),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,e+=(n.$list.width()-o.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(i){return this.options[i]},e.prototype.getNavigableIndexes=function(){var i,e=this,t=0,o=0,s=[];for(!1===e.options.infinite?i=e.slideCount:(t=-1*e.options.slidesToScroll,o=-1*e.options.slidesToScroll,i=2*e.slideCount);t<i;)s.push(t),t=o+e.options.slidesToScroll,o+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return s},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,t,o,s=this;return o=!0===s.options.centerMode?Math.floor(s.$list.width()/2):0,t=-1*s.swipeLeft+o,!0===s.options.swipeToSlide?(s.$slideTrack.find(".slick-slide").each(function(o,n){var r,l;if(r=i(n).outerWidth(),l=n.offsetLeft,!0!==s.options.centerMode&&(l+=r/2),t<l+r)return e=n,!1}),Math.abs(i(e).attr("data-slick-index")-s.currentSlide)||1):s.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(i,e){this.changeSlide({data:{message:"index",index:parseInt(i)}},e)},e.prototype.init=function(e){var t=this;i(t.$slider).hasClass("slick-initialized")||(i(t.$slider).addClass("slick-initialized"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger("init",[t]),!0===t.options.accessibility&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},e.prototype.initADA=function(){var e=this,t=Math.ceil(e.slideCount/e.options.slidesToShow),o=e.getNavigableIndexes().filter(function(i){return i>=0&&i<e.slideCount});e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(t){var s=o.indexOf(t);if(i(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+t,tabindex:-1}),-1!==s){var n="slick-slide-control"+e.instanceUid+s;i("#"+n).length&&i(this).attr({"aria-describedby":n})}}),e.$dots.attr("role","tablist").find("li").each(function(s){var n=o[s];i(this).attr({role:"presentation"}),i(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+s,"aria-controls":"slick-slide"+e.instanceUid+n,"aria-label":s+1+" of "+t,"aria-selected":null,tabindex:"-1"})}).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var s=e.currentSlide,n=s+e.options.slidesToShow;s<n;s++)e.options.focusOnChange?e.$slides.eq(s).attr({tabindex:"0"}):e.$slides.eq(s).removeAttr("tabindex");e.activateADA()},e.prototype.initArrowEvents=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},i.changeSlide),i.$nextArrow.off("click.slick").on("click.slick",{message:"next"},i.changeSlide),!0===i.options.accessibility&&(i.$prevArrow.on("keydown.slick",i.keyHandler),i.$nextArrow.on("keydown.slick",i.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&(i("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility&&e.$dots.on("keydown.slick",e.keyHandler)),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&e.slideCount>e.options.slidesToShow&&i("li",e.$dots).on("mouseenter.slick",i.proxy(e.interrupt,e,!0)).on("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",i.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),i(document).on(e.visibilityChange,i.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),i(window).on("orientationchange.slick.slick-"+e.instanceUid,i.proxy(e.orientationChange,e)),i(window).on("resize.slick.slick-"+e.instanceUid,i.proxy(e.resize,e)),i("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),i(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),i(e.setPosition)},e.prototype.initUI=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.show(),i.$nextArrow.show()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.show()},e.prototype.keyHandler=function(i){var e=this;i.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===i.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===i.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},e.prototype.lazyLoad=function(){var e,t,o,s=this;function n(e){i("img[data-lazy]",e).each(function(){var e=i(this),t=i(this).attr("data-lazy"),o=i(this).attr("data-srcset"),n=i(this).attr("data-sizes")||s.$slider.attr("data-sizes"),r=document.createElement("img");r.onload=function(){e.animate({opacity:0},100,function(){o&&(e.attr("srcset",o),n&&e.attr("sizes",n)),e.attr("src",t).animate({opacity:1},200,function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),s.$slider.trigger("lazyLoaded",[s,e,t])})},r.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),s.$slider.trigger("lazyLoadError",[s,e,t])},r.src=t})}if(!0===s.options.centerMode?!0===s.options.infinite?o=(t=s.currentSlide+(s.options.slidesToShow/2+1))+s.options.slidesToShow+2:(t=Math.max(0,s.currentSlide-(s.options.slidesToShow/2+1)),o=s.options.slidesToShow/2+1+2+s.currentSlide):(t=s.options.infinite?s.options.slidesToShow+s.currentSlide:s.currentSlide,o=Math.ceil(t+s.options.slidesToShow),!0===s.options.fade&&(t>0&&t--,o<=s.slideCount&&o++)),e=s.$slider.find(".slick-slide").slice(t,o),"anticipated"===s.options.lazyLoad)for(var r=t-1,l=o,d=s.$slider.find(".slick-slide"),a=0;a<s.options.slidesToScroll;a++)r<0&&(r=s.slideCount-1),e=(e=e.add(d.eq(r))).add(d.eq(l)),r--,l++;n(e),s.slideCount<=s.options.slidesToShow?n(s.$slider.find(".slick-slide")):s.currentSlide>=s.slideCount-s.options.slidesToShow?n(s.$slider.find(".slick-cloned").slice(0,s.options.slidesToShow)):0===s.currentSlide&&n(s.$slider.find(".slick-cloned").slice(-1*s.options.slidesToShow))},e.prototype.loadSlider=function(){var i=this;i.setPosition(),i.$slideTrack.css({opacity:1}),i.$slider.removeClass("slick-loading"),i.initUI(),"progressive"===i.options.lazyLoad&&i.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var i=this;i.autoPlay(),i.options.autoplay=!0,i.paused=!1,i.focussed=!1,i.interrupted=!1},e.prototype.postSlide=function(e){var t=this;t.unslicked||(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.slideCount>t.options.slidesToShow&&t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),!0===t.options.accessibility&&(t.initADA(),t.options.focusOnChange&&i(t.$slides.get(t.currentSlide)).attr("tabindex",0).focus()))},e.prototype.prev=e.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(i){i.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var t,o,s,n,r,l=this,d=i("img[data-lazy]",l.$slider);d.length?(t=d.first(),o=t.attr("data-lazy"),s=t.attr("data-srcset"),n=t.attr("data-sizes")||l.$slider.attr("data-sizes"),(r=document.createElement("img")).onload=function(){s&&(t.attr("srcset",s),n&&t.attr("sizes",n)),t.attr("src",o).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===l.options.adaptiveHeight&&l.setPosition(),l.$slider.trigger("lazyLoaded",[l,t,o]),l.progressiveLazyLoad()},r.onerror=function(){e<3?setTimeout(function(){l.progressiveLazyLoad(e+1)},500):(t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),l.$slider.trigger("lazyLoadError",[l,t,o]),l.progressiveLazyLoad())},r.src=o):l.$slider.trigger("allImagesLoaded",[l])},e.prototype.refresh=function(e){var t,o,s=this;o=s.slideCount-s.options.slidesToShow,!s.options.infinite&&s.currentSlide>o&&(s.currentSlide=o),s.slideCount<=s.options.slidesToShow&&(s.currentSlide=0),t=s.currentSlide,s.destroy(!0),i.extend(s,s.initials,{currentSlide:t}),s.init(),e||s.changeSlide({data:{message:"index",index:t}},!1)},e.prototype.registerBreakpoints=function(){var e,t,o,s=this,n=s.options.responsive||null;if("array"===i.type(n)&&n.length){for(e in s.respondTo=s.options.respondTo||"window",n)if(o=s.breakpoints.length-1,n.hasOwnProperty(e)){for(t=n[e].breakpoint;o>=0;)s.breakpoints[o]&&s.breakpoints[o]===t&&s.breakpoints.splice(o,1),o--;s.breakpoints.push(t),s.breakpointSettings[t]=n[e].settings}s.breakpoints.sort(function(i,e){return s.options.mobileFirst?i-e:e-i})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;i(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=i(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(i,e,t){var o=this;if(i="boolean"==typeof i?!0===(e=i)?0:o.slideCount-1:!0===e?--i:i,o.slideCount<1||i<0||i>o.slideCount-1)return!1;o.unload(),!0===t?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(i).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,o.reinit()},e.prototype.setCSS=function(i){var e,t,o=this,s={};!0===o.options.rtl&&(i=-i),e="left"==o.positionProp?Math.ceil(i)+"px":"0px",t="top"==o.positionProp?Math.ceil(i)+"px":"0px",s[o.positionProp]=i,!1===o.transformsEnabled?o.$slideTrack.css(s):(s={},!1===o.cssTransitions?(s[o.animType]="translate("+e+", "+t+")",o.$slideTrack.css(s)):(s[o.animType]="translate3d("+e+", "+t+", 0px)",o.$slideTrack.css(s)))},e.prototype.setDimensions=function(){var i=this;!1===i.options.vertical?!0===i.options.centerMode&&i.$list.css({padding:"0px "+i.options.centerPadding}):(i.$list.height(i.$slides.first().outerHeight(!0)*i.options.slidesToShow),!0===i.options.centerMode&&i.$list.css({padding:i.options.centerPadding+" 0px"})),i.listWidth=i.$list.width(),i.listHeight=i.$list.height(),!1===i.options.vertical&&!1===i.options.variableWidth?(i.slideWidth=Math.ceil(i.listWidth/i.options.slidesToShow),i.$slideTrack.width(Math.ceil(i.slideWidth*i.$slideTrack.children(".slick-slide").length))):!0===i.options.variableWidth?i.$slideTrack.width(5e3*i.slideCount):(i.slideWidth=Math.ceil(i.listWidth),i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0)*i.$slideTrack.children(".slick-slide").length)));var e=i.$slides.first().outerWidth(!0)-i.$slides.first().width();!1===i.options.variableWidth&&i.$slideTrack.children(".slick-slide").width(i.slideWidth-e)},e.prototype.setFade=function(){var e,t=this;t.$slides.each(function(o,s){e=t.slideWidth*o*-1,!0===t.options.rtl?i(s).css({position:"relative",right:e,top:0,zIndex:t.options.zIndex-2,opacity:0}):i(s).css({position:"relative",left:e,top:0,zIndex:t.options.zIndex-2,opacity:0})}),t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,t,o,s,n,r=this,l=!1;if("object"===i.type(arguments[0])?(o=arguments[0],l=arguments[1],n="multiple"):"string"===i.type(arguments[0])&&(o=arguments[0],s=arguments[1],l=arguments[2],"responsive"===arguments[0]&&"array"===i.type(arguments[1])?n="responsive":void 0!==arguments[1]&&(n="single")),"single"===n)r.options[o]=s;else if("multiple"===n)i.each(o,function(i,e){r.options[i]=e});else if("responsive"===n)for(t in s)if("array"!==i.type(r.options.responsive))r.options.responsive=[s[t]];else{for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===s[t].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(s[t])}l&&(r.unload(),r.reinit())},e.prototype.setPosition=function(){var i=this;i.setDimensions(),i.setHeight(),!1===i.options.fade?i.setCSS(i.getLeft(i.currentSlide)):i.setFade(),i.$slider.trigger("setPosition",[i])},e.prototype.setProps=function(){var i=this,e=document.body.style;i.positionProp=!0===i.options.vertical?"top":"left","top"===i.positionProp?i.$slider.addClass("slick-vertical"):i.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===i.options.useCSS&&(i.cssTransitions=!0),i.options.fade&&("number"==typeof i.options.zIndex?i.options.zIndex<3&&(i.options.zIndex=3):i.options.zIndex=i.defaults.zIndex),void 0!==e.OTransform&&(i.animType="OTransform",i.transformType="-o-transform",i.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.MozTransform&&(i.animType="MozTransform",i.transformType="-moz-transform",i.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(i.animType=!1)),void 0!==e.webkitTransform&&(i.animType="webkitTransform",i.transformType="-webkit-transform",i.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.msTransform&&(i.animType="msTransform",i.transformType="-ms-transform",i.transitionType="msTransition",void 0===e.msTransform&&(i.animType=!1)),void 0!==e.transform&&!1!==i.animType&&(i.animType="transform",i.transformType="transform",i.transitionType="transition"),i.transformsEnabled=i.options.useTransform&&null!==i.animType&&!1!==i.animType},e.prototype.setSlideClasses=function(i){var e,t,o,s,n=this;if(t=n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),n.$slides.eq(i).addClass("slick-current"),!0===n.options.centerMode){var r=n.options.slidesToShow%2==0?1:0;e=Math.floor(n.options.slidesToShow/2),!0===n.options.infinite&&(i>=e&&i<=n.slideCount-1-e?n.$slides.slice(i-e+r,i+e+1).addClass("slick-active").attr("aria-hidden","false"):(o=n.options.slidesToShow+i,t.slice(o-e+1+r,o+e+2).addClass("slick-active").attr("aria-hidden","false")),0===i?t.eq(t.length-1-n.options.slidesToShow).addClass("slick-center"):i===n.slideCount-1&&t.eq(n.options.slidesToShow).addClass("slick-center")),n.$slides.eq(i).addClass("slick-center")}else i>=0&&i<=n.slideCount-n.options.slidesToShow?n.$slides.slice(i,i+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):t.length<=n.options.slidesToShow?t.addClass("slick-active").attr("aria-hidden","false"):(s=n.slideCount%n.options.slidesToShow,o=!0===n.options.infinite?n.options.slidesToShow+i:i,n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-i<n.options.slidesToShow?t.slice(o-(n.options.slidesToShow-s),o+s).addClass("slick-active").attr("aria-hidden","false"):t.slice(o,o+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==n.options.lazyLoad&&"anticipated"!==n.options.lazyLoad||n.lazyLoad()},e.prototype.setupInfinite=function(){var e,t,o,s=this;if(!0===s.options.fade&&(s.options.centerMode=!1),!0===s.options.infinite&&!1===s.options.fade&&(t=null,s.slideCount>s.options.slidesToShow)){for(o=!0===s.options.centerMode?s.options.slidesToShow+1:s.options.slidesToShow,e=s.slideCount;e>s.slideCount-o;e-=1)t=e-1,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t-s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");for(e=0;e<o+s.slideCount;e+=1)t=e,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t+s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");s.$slideTrack.find(".slick-cloned").find("[id]").each(function(){i(this).attr("id","")})}},e.prototype.interrupt=function(i){i||this.autoPlay(),this.interrupted=i},e.prototype.selectHandler=function(e){var t=this,o=i(e.target).is(".slick-slide")?i(e.target):i(e.target).parents(".slick-slide"),s=parseInt(o.attr("data-slick-index"));s||(s=0),t.slideCount<=t.options.slidesToShow?t.slideHandler(s,!1,!0):t.slideHandler(s)},e.prototype.slideHandler=function(i,e,t){var o,s,n,r,l,d,a=this;if(e=e||!1,!(!0===a.animating&&!0===a.options.waitForAnimate||!0===a.options.fade&&a.currentSlide===i))if(!1===e&&a.asNavFor(i),o=i,l=a.getLeft(o),r=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?r:a.swipeLeft,!1===a.options.infinite&&!1===a.options.centerMode&&(i<0||i>a.getDotCount()*a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t&&a.slideCount>a.options.slidesToShow?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else if(!1===a.options.infinite&&!0===a.options.centerMode&&(i<0||i>a.slideCount-a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t&&a.slideCount>a.options.slidesToShow?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else{if(a.options.autoplay&&clearInterval(a.autoPlayTimer),s=o<0?a.slideCount%a.options.slidesToScroll!=0?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+o:o>=a.slideCount?a.slideCount%a.options.slidesToScroll!=0?0:o-a.slideCount:o,a.animating=!0,a.$slider.trigger("beforeChange",[a,a.currentSlide,s]),n=a.currentSlide,a.currentSlide=s,a.setSlideClasses(a.currentSlide),a.options.asNavFor&&(d=(d=a.getNavTarget()).slick("getSlick")).slideCount<=d.options.slidesToShow&&d.setSlideClasses(a.currentSlide),a.updateDots(),a.updateArrows(),!0===a.options.fade)return!0!==t?(a.fadeSlideOut(n),a.fadeSlide(s,function(){a.postSlide(s)})):a.postSlide(s),void a.animateHeight();!0!==t&&a.slideCount>a.options.slidesToShow?a.animateSlide(l,function(){a.postSlide(s)}):a.postSlide(s)}},e.prototype.startLoad=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.hide(),i.$nextArrow.hide()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.hide(),i.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var i,e,t,o,s=this;return i=s.touchObject.startX-s.touchObject.curX,e=s.touchObject.startY-s.touchObject.curY,t=Math.atan2(e,i),(o=Math.round(180*t/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0?!1===s.options.rtl?"left":"right":o<=360&&o>=315?!1===s.options.rtl?"left":"right":o>=135&&o<=225?!1===s.options.rtl?"right":"left":!0===s.options.verticalSwiping?o>=35&&o<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(i){var e,t,o=this;if(o.dragging=!1,o.swiping=!1,o.scrolling)return o.scrolling=!1,!1;if(o.interrupted=!1,o.shouldClick=!(o.touchObject.swipeLength>10),void 0===o.touchObject.curX)return!1;if(!0===o.touchObject.edgeHit&&o.$slider.trigger("edge",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(t=o.swipeDirection()){case"left":case"down":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case"right":case"up":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}"vertical"!=t&&(o.slideHandler(e),o.touchObject={},o.$slider.trigger("swipe",[o,t]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},e.prototype.swipeHandler=function(i){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==i.type.indexOf("mouse")))switch(e.touchObject.fingerCount=i.originalEvent&&void 0!==i.originalEvent.touches?i.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),i.data.action){case"start":e.swipeStart(i);break;case"move":e.swipeMove(i);break;case"end":e.swipeEnd(i)}},e.prototype.swipeMove=function(i){var e,t,o,s,n,r,l=this;return n=void 0!==i.originalEvent?i.originalEvent.touches:null,!(!l.dragging||l.scrolling||n&&1!==n.length)&&(e=l.getLeft(l.currentSlide),l.touchObject.curX=void 0!==n?n[0].pageX:i.clientX,l.touchObject.curY=void 0!==n?n[0].pageY:i.clientY,l.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(l.touchObject.curX-l.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(l.touchObject.curY-l.touchObject.startY,2))),!l.options.verticalSwiping&&!l.swiping&&r>4?(l.scrolling=!0,!1):(!0===l.options.verticalSwiping&&(l.touchObject.swipeLength=r),t=l.swipeDirection(),void 0!==i.originalEvent&&l.touchObject.swipeLength>4&&(l.swiping=!0,i.preventDefault()),s=(!1===l.options.rtl?1:-1)*(l.touchObject.curX>l.touchObject.startX?1:-1),!0===l.options.verticalSwiping&&(s=l.touchObject.curY>l.touchObject.startY?1:-1),o=l.touchObject.swipeLength,l.touchObject.edgeHit=!1,!1===l.options.infinite&&(0===l.currentSlide&&"right"===t||l.currentSlide>=l.getDotCount()&&"left"===t)&&(o=l.touchObject.swipeLength*l.options.edgeFriction,l.touchObject.edgeHit=!0),!1===l.options.vertical?l.swipeLeft=e+o*s:l.swipeLeft=e+o*(l.$list.height()/l.listWidth)*s,!0===l.options.verticalSwiping&&(l.swipeLeft=e+o*s),!0!==l.options.fade&&!1!==l.options.touchMove&&(!0===l.animating?(l.swipeLeft=null,!1):void l.setCSS(l.swipeLeft))))},e.prototype.swipeStart=function(i){var e,t=this;if(t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow)return t.touchObject={},!1;void 0!==i.originalEvent&&void 0!==i.originalEvent.touches&&(e=i.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==e?e.pageX:i.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==e?e.pageY:i.clientY,t.dragging=!0},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var i=this;null!==i.$slidesCache&&(i.unload(),i.$slideTrack.children(this.options.slide).detach(),i.$slidesCache.appendTo(i.$slideTrack),i.reinit())},e.prototype.unload=function(){var e=this;i(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},e.prototype.unslick=function(i){var e=this;e.$slider.trigger("unslick",[e,i]),e.destroy()},e.prototype.updateArrows=function(){var i=this;Math.floor(i.options.slidesToShow/2),!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&!i.options.infinite&&(i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===i.currentSlide?(i.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-i.options.slidesToShow&&!1===i.options.centerMode?(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-1&&!0===i.options.centerMode&&(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var i=this;null!==i.$dots&&(i.$dots.find("li").removeClass("slick-active").end(),i.$dots.find("li").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).addClass("slick-active"))},e.prototype.visibility=function(){var i=this;i.options.autoplay&&(document[i.hidden]?i.interrupted=!0:i.interrupted=!1)},i.fn.slick=function(){var i,t,o=this,s=arguments[0],n=Array.prototype.slice.call(arguments,1),r=o.length;for(i=0;i<r;i++)if("object"==typeof s||void 0===s?o[i].slick=new e(o[i],s):t=o[i].slick[s].apply(o[i].slick,n),void 0!==t)return t;return o}});;
(() => { var e = { 113: () => { class e { constructor(e) { this.el = e, this.acc = e.getElementsByClassName("list-group"), this.initaccordionView() } initaccordionView() { var e; for (e = 0; e < this.acc.length; e++)this.acc[e].addEventListener("click", (function () { this.classList.toggle("active"); var e = this.nextElementSibling; e.style.maxHeight ? (e.style.maxHeight = null, e.style.paddingBottom = "0px", e.style.borderBottom = "none") : (e.style.maxHeight = e.scrollHeight + 20 + "px", e.style.paddingBottom = "20px", e.style.borderBottom = "1px solid rgba(0,0,0,.1)") })) } } window.addEventListener("DOMContentLoaded", (() => { const t = [...document.querySelectorAll(".accordion")]; t.length && t.forEach((t => { new e(t) })) })) }, 346: () => { var e = document.querySelector(".backToTop"), t = document.querySelector(".bajaj-share"), s = document.querySelector(".video-share"); window.onscroll = () => { window.innerWidth > 768 ? window.scrollY > 220 ? (null != e && (e.style.display = "flex"), null != t && (t.style.bottom = "150px")) : (null != e && (e.style.display = "none"), null != t && (t.style.bottom = "20px")) : window.scrollY > 0 ? (null != e && (e.style.display = "flex", e.style.opacity = "0.7", e.style.bottom = "75px"), null != t && (t.style.bottom = "115px")) : (null != e && (e.style.display = "none"), null != t && (t.style.bottom = "75px")) }, null != e && e.addEventListener("click", (() => (window.scrollTo({ top: 0, left: 0, behavior: "smooth" }), !1))), null != t && t.addEventListener("click", (() => { var e = document.createElement("input"), t = window.location.href, s = document.querySelector(".share-message"); document.body.appendChild(e), e.value = t, e.select(), document.execCommand("copy"), document.body.removeChild(e), null != s && (s.style.bottom = "20px", window.setTimeout((function () { s.style.bottom = "-70px" }), 2e3)) })), null != s && s.addEventListener("click", (() => { var e = document.createElement("input"), t = $(".video-link").find("iframe").attr("src"), s = document.querySelector(".share-message"); document.body.appendChild(e), e.value = t, e.select(), document.execCommand("copy"), document.body.removeChild(e), null != s && (s.style.bottom = "20px", window.setTimeout((function () { s.style.bottom = "-90px" }), 2e3)) })) }, 615: () => { !function (e) { e.fn.cascadeSlider = function (t) { var s = this, a = t.itemClass || "cascade-slider_item", i = t.arrowClass || "cascade-slider_arrow", n = s.find("." + a), r = s.find("." + i), o = n.length; d(0), r.on("click", (function () { var t = e(this).data("action"), a = n.index(s.find(".now")); "next" == t ? d(a == o - 1 ? 0 : a + 1) : "prev" == t && d(0 == a ? o - 1 : a - 1), e(".cascade-slider_dot").removeClass("cur") })); for (var l = 0; l < o; l++)e(".cascade-slider_item").each((function (t) { e(this).attr("data-slide-number", [t]) })); function d(e) { s.find(".now").removeClass("now"), s.find(".next").removeClass("next"), s.find(".prev").removeClass("prev"), e == o - 1 && n.eq(0).addClass("next"), 0 == e && n.eq(o - 1).addClass("prev"), n.each((function (t) { t == e && n.eq(t).addClass("now"), t == e + 1 && n.eq(t).addClass("next"), t == e - 1 && n.eq(t).addClass("prev") })) } e(".cascade-slider_dot").bind("click", (function () { e(".cascade-slider_dot").removeClass("cur"), e(this).addClass("cur"); var t = e(this).index(); e(".cascade-slider_item").removeClass("now prev next"); var s = e(".cascade-slider_slides").find("[data-slide-number=" + t + "]"); s.prev().addClass("prev"), s.addClass("now"), s.next().addClass("next"), 0 == s.next().length && e(".cascade-slider_item:first-child").addClass("next"), 0 == s.prev().length && e(".cascade-slider_item:last-child").addClass("prev") })) } }(jQuery) }, 939: () => { class e { constructor(e) { this.el = e, this.descId = document.querySelector("#openGallery"), this.modalBody = this.descId.querySelector(".modal-body"), this.bodyContent = this.modalBody.querySelector(".body-content"), this.videoWrapper = e.querySelector(".c-video__content"), this.videoWrapper && (this.videoId = this.videoWrapper.getAttribute("data-src")), this.imageWrapper = e.querySelector(".imgContent"), this.imageWrapper && (this.imageId = this.imageWrapper.getAttribute("data-src")), this.eachGallery = e.querySelector(".featuredGallery"), this.closeGallery = this.descId.querySelector(".closeGallery"), this.initGalleryView() } initGalleryView() { this.eachGallery.addEventListener("click", (e => { e.preventDefault(), this.descId.classList.add("d-block"); var t = document.createElement("div"); if (t.classList.add("modal-backdrop", "fade", "show"), document.body.appendChild(t), document.body.style.overflow = "hidden", this.descId) if (this.videoWrapper) { var s = document.createElement("iframe"); s.frameBorder = 0, s.width = "100%", s.height = "100%", s.setAttribute("src", this.videoId), this.bodyContent.appendChild(s) } else if (this.imageWrapper) { var a = document.createElement("img"); a.src = this.imageId, this.bodyContent.appendChild(a) } })), this.videoWrapper && this.videoWrapper.addEventListener("click", (e => { e.preventDefault(), this.descId.classList.add("d-block"); var t = document.createElement("div"); if (t.classList.add("modal-backdrop", "fade", "show"), document.body.appendChild(t), document.body.style.overflow = "hidden", this.descId) if (this.videoWrapper) { var s = document.createElement("iframe"); s.frameBorder = 0, s.width = "100%", s.height = "100%", s.setAttribute("src", this.videoId), this.bodyContent.appendChild(s) } else if (this.imageWrapper) { var a = document.createElement("img"); a.src = this.imageId, this.bodyContent.appendChild(a) } })), this.descId && (this.closeGallery.addEventListener("click", (e => { e.preventDefault(), $(".body-content").empty(), this.descId.classList.add("d-none"), this.descId.classList.remove("d-block"), $(".modal-backdrop").remove(), document.body.style.overflow = "auto" })), window.addEventListener("keydown", (e => { "Escape" === e.key && ($(".body-content").empty(), this.descId.classList.add("d-none"), this.descId.classList.remove("d-block"), $(".modal-backdrop").remove(), document.body.style.overflow = "auto") }))) } } window.addEventListener("DOMContentLoaded", (() => { const t = [...document.querySelectorAll(".openFeaturedGallery")]; t.length && t.forEach((t => { new e(t) })) })) }, 230: () => { $(".scrollMenu li a").on("click", (function (e) { e.preventDefault(); var t = $(this).attr("href"); window.location.href = t })); var e = document.querySelector(".mobileScrollspy"); e && (e.offsetTop, window.onscroll = function () { window.pageYOffset > 0 ? (e.classList.add("stick"), e.style.background = "#fff") : (e.classList.remove("stick"), e.style.background = "#fff") }), $(window).ready((function () { var e = $(".scrollMenu").find("a.active").text(); $("#csOptions").text(e); let t = $("#myScrollspy").find("a.active").parent().prev().children(".nav-link").attr("href"); const s = $("#myScrollspy").find("a.active").parent().next().children(".nav-link").attr("href"); console.log(t, s), void 0 === t || "" === t ? $(".page-prev-link").css("visibility", "hidden") : $(".page-prev-link").attr("href", t), void 0 === s || "" === s ? $(".page-next-link").css("visibility", "hidden") : $(".page-next-link").attr("href", s) })) }, 774: () => { if ($(window).ready((function () { $("div.header a:nth-child(2)").addClass("ml-auto") })), $(window).scroll((function () { "background: inherit;" == $(".header").attr("style") ? ($(".search-icon img").addClass("bg-transparent-img"), $(".openMenu img").addClass("bg-transparent-img")) : ($(".search-icon img").removeClass("bg-transparent-img"), $(".openMenu img").removeClass("bg-transparent-img")) })), document.querySelector(".footerSticky")) { if (window.innerWidth < 768) { var e = document.querySelector(".footerSticky").offsetHeight; $(".container-fluid").css("padding-bottom", e), $(".openMenu").on("click", (function (e) { e.preventDefault(), document.getElementById("mySidepanel").style.width = "min-content", document.getElementById("overlay").style.display = "block", document.body.style.overflow = "hidden" })), $(".closeSidePanel").on("click", (function () { document.getElementById("mySidepanel").style.width = "0px", document.getElementById("overlay").style.display = "none", document.body.style.overflow = "auto" })) } else $(".container-fluid").css("padding-bottom", "0px"), $(".openMenu").on("click", (function (e) { e.preventDefault(), document.getElementById("mySidepanel").style.width = "min-content", document.getElementById("overlay").style.display = "block", document.body.style.overflow = "hidden" })), $(".closeSidePanel").on("click", (function () { document.getElementById("mySidepanel").style.width = "0px", document.getElementById("overlay").style.display = "none", document.body.style.overflow = "auto" })); $(window).resize((function () { if (window.innerWidth < 768) { var e = document.querySelector(".footerSticky").offsetHeight; $(".container-fluid").css("padding-bottom", e), $(".openMenu").on("click", (function (e) { e.preventDefault(), document.getElementById("mySidepanel").style.width = "min-content", document.getElementById("overlay").style.display = "block", document.body.style.overflow = "hidden" })), $(".closeSidePanel").on("click", (function () { document.getElementById("mySidepanel").style.width = "0px", document.getElementById("overlay").style.display = "none", document.body.style.overflow = "auto" })) } else $(".container-fluid").css("padding-bottom", "0px"), $(".openMenu").on("click", (function (e) { e.preventDefault(), document.getElementById("mySidepanel").style.width = "min-content", document.getElementById("overlay").style.display = "block", document.body.style.overflow = "hidden" })), $(".closeSidePanel").on("click", (function () { document.getElementById("mySidepanel").style.width = "0px", document.getElementById("overlay").style.display = "none", document.body.style.overflow = "auto" })) })) } $(".hamburger-section h5").on("click", (function () { $(this).toggleClass("open"), $(this).parent().find("ul").toggle() })), $(document).ready((function () { $('[data-toggle="tooltip"]').tooltip(), $("#tabs > .tab:last-child").css("margin-right", 0); var e = $(".share-message"); $("body").append(e), $(".Table").addClass("table-responsive"), $(".MsoTableGrid").addClass("table-responsive") })), window.onload = function () { var e = document.querySelector(".homeHeader"), t = document.querySelector(".homeContainer"), s = document.querySelector(".header"), a = document.querySelector(".container-fluid"); if (e && t) { t.style.paddingTop = "0px", e.style.background = "inherit", s.style.background = "inherit", a.style.paddingTop = "0px", $(".whiteSearch").css("display", "block"), $(".blackSearch").css("display", "none"), $(".whiteBars").css("display", "block"), $(".blackBars").css("display", "none"); var i = e.offsetTop; window.onscroll = function () { window.pageYOffset > i ? (t.style.paddingTop = "0px", e.style.background = "#fff", $(".whiteSearch").css("display", "none"), $(".blackSearch").css("display", "block"), $(".whiteBars").css("display", "none"), $(".blackBars").css("display", "block")) : ($(".whiteSearch").css("display", "block"), $(".blackSearch").css("display", "none"), $(".whiteBars").css("display", "block"), $(".blackBars").css("display", "none"), t.style.paddingTop = "0px", e.style.background = "inherit") } } else s && a && (s.style.background = "#fff") }, $(".carrers-header").length > 0 && $(".header").css("background", "#fff") }, 900: () => { const e = document.querySelector("#openPdf"); if (e) { $(".open-pdf").on("click", (function (e) { document.querySelector(".mySlides").style.display = "block", document.getElementById("openPdf").style.display = "block", $("canvas").remove(); var s = document.createElement("div"); s.classList.add("modal-backdrop", "fade", "show"), document.body.appendChild(s), document.body.style.overflow = "hidden"; let a = $(this).attr("data-src"); $(".pdf-page-download").attr("href", a), console.log("d", a), t(a) })); const t = t => { var s = 1, a = 0, i = null; function n(e) { var t = e.getViewport(1), r = document.createElement("canvas"); r.style.display = "block"; var o = r.getContext("2d"); r.width = t.width, r.height = t.height, e.render({ canvasContext: o, viewport: t }), document.querySelector(".embed-responsive").appendChild(r), s++, null !== i && s <= a && i.getPage(s).then(n) } pdfjsLib.getDocument(t).then((function (e) { i = e, a = e.numPages, e.getPage(1).then(n) })), window.closePdf = () => { e && (document.querySelector(".mySlides").style.display = "none"), document.getElementById("openPdf").style.display = "none", $(".modal-backdrop").remove(), document.body.style.overflow = "auto" }, window.addEventListener("keydown", (function (t) { "Escape" === t.key && (e && (document.querySelector(".mySlides").style.display = "none"), document.getElementById("openPdf").style.display = "none", $(".modal-backdrop").remove(), document.body.style.overflow = "auto") })) } } }, 396: () => { class e { constructor(e) { this.el = e, this.dataFirstLoad = parseInt(e.getAttribute("data-first-load")) || 2, this.dataLoadMore = parseInt(e.getAttribute("data-load-more")) || 2, this.items = [...e.querySelectorAll(".list-group-item")], this.btnLoadMore = e.querySelector(".btn-loadmore"), this.selectedYear = e.querySelector(".load-paginate-filter-select-year"), this.selectedMonth = e.querySelector(".load-paginate-filter-select-month"), this.hasFilter = e.getAttribute("data-hasFilter"), this.filterWrapper = e.querySelector(".load-paginate-filter"), this.clearAllButton = e.querySelector(".clear-filter"), console.log("button", this.clearAllButton), this.initlistView() } initListItems() { this.filterWrapper && ("true" === this.hasFilter ? this.filterWrapper.classList.add("d-flex") : this.filterWrapper.classList.add("d-none")), this.items.length && this.items.forEach(((e, t) => { console.log(t, e.dataset.year), t < this.dataFirstLoad && e.classList.add("show"), this.items.length < this.dataFirstLoad && this.btnLoadMore && this.btnLoadMore.classList.add("d-none") })), (!this.items.length || this.items.length <= this.dataFirstLoad) && this.btnLoadMore && this.btnLoadMore.classList.add("d-none") } handleEvent() { let e = []; this.btnLoadMore && this.btnLoadMore.addEventListener("click", (t => { t.preventDefault(); let s = [...this.el.querySelectorAll(".list-group-item.show")]; "" == this.selectedYear.value && "" == this.selectedMonth.value ? this.items.forEach(((e, t) => { t < s.length + this.dataLoadMore && e.classList.add("show"), s.length + this.dataLoadMore >= this.items.length && this.btnLoadMore.classList.add("d-none") })) : ("" != this.selectedYear.value && "" == this.selectedMonth.value ? e = this.items.filter((e => e.dataset.year === this.selectedYear.value)) : "" != this.selectedYear.value && "" != this.selectedMonth.value ? e = this.items.filter((e => e.dataset.year === this.selectedYear.value && e.dataset.month === this.selectedMonth.value)) : "" != this.selectedMonth.value && "" == this.selectedYear.value && (e = this.items.filter((e => e.dataset.month === this.selectedMonth.value))), console.log(e), e.forEach(((t, a) => { a < s.length + this.dataLoadMore && (console.log("inside"), t.classList.add("show")), s.length + this.dataLoadMore >= e.length && this.btnLoadMore.classList.add("d-none") }))) })) } handleChange() { let e = this, t = "", s = "", a = []; this.selectedMonth && this.selectedMonth.addEventListener("change", (function () { t = this.value, e.btnLoadMore.classList.remove("d-none"), e.items.forEach(((e, t) => { e.classList.remove("show") })), a = "" == s ? e.items.filter((e => e.dataset.month === this.value)) : e.items.filter((e => e.dataset.month === this.value && e.dataset.year === s)), console.log("year", s), console.log(a), a.length > 0 ? ($(".no-results").addClass("d-none"), a.forEach(((t, s) => { s < e.dataFirstLoad && t.classList.add("show"), a.length < e.dataFirstLoad && e.btnLoadMore && e.btnLoadMore.classList.add("d-none") })), (!a.length || a.length <= e.dataFirstLoad) && e.btnLoadMore && e.btnLoadMore.classList.add("d-none")) : ($(".no-results").removeClass("d-none"), e.btnLoadMore.classList.add("d-none")) })), this.selectedYear && this.selectedYear.addEventListener("change", (function () { s = this.value, e.btnLoadMore.classList.remove("d-none"), e.items.forEach(((e, t) => { e.classList.remove("show") })), "" == t ? a = e.items.filter((e => e.dataset.year === this.value)) : (console.log("month", t), a = e.items.filter((e => e.dataset.year === this.value && e.dataset.month === t))), console.log(a), a.length > 0 ? ($(".no-results").addClass("d-none"), a.forEach(((t, s) => { s < e.dataFirstLoad && t.classList.add("show"), a.length < e.dataFirstLoad && e.btnLoadMore && e.btnLoadMore.classList.add("d-none") })), (!a.length || a.length <= e.dataFirstLoad) && e.btnLoadMore && e.btnLoadMore.classList.add("d-none")) : ($(".no-results").removeClass("d-none"), e.btnLoadMore.classList.add("d-none")) })) } clearAll() { this.clearAllButton && this.clearAllButton.addEventListener("click", (e => { this.selectedYear.selectedIndex = 0, this.selectedMonth.selectedIndex = 0, $(".no-results").addClass("d-none"), this.initListItems() })) } initlistView() { this.initListItems(), this.handleEvent(), this.handleChange(), this.clearAll() } } window.addEventListener("DOMContentLoaded", (() => { const t = [...document.querySelectorAll(".infiniteList")]; t.length && t.forEach((t => { new e(t) })) })) }, 374: () => { class e { constructor(e) { this.cta = e.querySelector(".share-link"), this.cta && (this.dataShare = this.cta.getAttribute("data-share-link"), this.clip = document.querySelector(".share-message")), this.initmediaView() } initmediaView() { this.cta && this.cta.addEventListener("click", (e => { e.preventDefault(); var t = document.querySelector("#copyLinkTextID").value; t && (document.querySelector(".copylinkText").textContent = t); var s = document.createElement("input"); document.body.appendChild(s), s.value = this.dataShare, console.log(s.value), s.select(), document.execCommand("copy"), document.body.removeChild(s), null != this.clip && (this.clip.style.bottom = "20px", window.setTimeout((() => { this.clip.style.bottom = "-90px" }), 2e3)) })) } } window.addEventListener("DOMContentLoaded", (() => { const t = [...document.querySelectorAll(".c-about-us-profile-card__items__item")]; t.length && t.forEach((t => { new e(t) })) })), $("a#downloadLogo").click((e => { e.preventDefault(); var t = $("a#downloadLogo").attr("href"); $("a#downloadLogo").attr("download", t) })) }, 628: () => { class e { constructor(e) { this.el = e, this.modalDesc = document.querySelector(".modal-desc"), this.descId = document.querySelector("#openPopup"), this.modalBody = this.descId.querySelector(".modal-body"), this.modalHeader = this.modalBody.querySelector(".modalHeader"), this.pdfDownload = this.descId.querySelector(".pdf-download"), this.mainWrapper = e.querySelector(".description-content"), this.logoImg = this.mainWrapper.querySelector("img"), this.header = this.mainWrapper.querySelector("h3"), this.date = this.mainWrapper.querySelector(".date"), this.desc = this.mainWrapper.querySelector(".desc"), this.eachSpeech = e.querySelector("a"), this.closeSpeech = this.descId.querySelector(".closePopup"), this.pdf = this.eachSpeech.getAttribute("data-src"), this.initSpeechView() } initSpeechView() { this.eachSpeech.addEventListener("click", (e => { e.preventDefault(), this.modalDesc.classList.add("d-block"), this.descId.classList.add("d-block"); var t = document.createElement("div"); t.classList.add("modal-backdrop", "fade", "show"), document.body.appendChild(t), document.body.style.overflow = "hidden", this.pdf ? (this.pdfDownload.classList.add("d-block"), this.pdfDownload.classList.remove("d-none")) : (this.pdfDownload.classList.add("d-none"), this.pdfDownload.classList.remove("d-block")), this.descId && (this.logo = this.modalHeader.getElementsByTagName("div")[0], this.headText = this.modalHeader.getElementsByTagName("div")[1], this.logo.appendChild(this.logoImg), this.headText.appendChild(this.header), this.headText.appendChild(this.date), this.modalBody.append(this.desc), this.pdfDownload.href = this.pdf) })), this.descId && (this.closeSpeech.addEventListener("click", (e => { e.preventDefault(), this.pdfDownload.href = "", $(this.logo).empty(), $(this.headText).empty(), this.desc.remove(), this.modalDesc.classList.add("d-none"), this.modalDesc.classList.remove("d-block"), this.descId.classList.add("d-none"), this.descId.classList.remove("d-block"), $(".modal-backdrop").remove(), document.body.style.overflow = "auto" })), window.addEventListener("keydown", (e => { "Escape" === e.key && (this.pdfDownload.href = "", $(this.logo).empty(), $(this.headText).empty(), this.desc.remove(), this.modalDesc.classList.add("d-none"), this.modalDesc.classList.remove("d-block"), this.descId.classList.add("d-none"), this.descId.classList.remove("d-block"), $(".modal-backdrop").remove(), document.body.style.overflow = "auto") }))) } } window.addEventListener("DOMContentLoaded", (() => { const t = [...document.querySelectorAll(".openModal")]; t.length && t.forEach((t => { new e(t) })) })) }, 814: () => { class e { constructor(e) { this.tabContent = e.querySelectorAll(".sub-tabContent"), this.tab = e.querySelectorAll(".sub-tab"), this.mobileTab = e.querySelectorAll(".sub-mobileTab"), this.tabWrapper = e.querySelector("#sub-tabs"), this.mobileDropDown = e.querySelector("#myDropdown"), this.dropBtn = e.querySelector(".dropbtn"), this.dropContent = e.querySelector(".dropdown-content"), this.dropdownWrapper = e.querySelector(".dropdown"), this.initSubtabView() } initSubtabView() { this.hideTabsContent(1), this.tabWrapper.addEventListener("click", (e => { var t = e.target; if ("sub-tab" == t.className) for (var s = 0; s < this.tab.length; s++)if (t == this.tab[s]) { $(".about-us-filter").val("all").trigger("change"), this.showTabsContent(s); break } })), this.dropBtn && (this.dropBtn.addEventListener("click", (e => { this.mobileDropDown.classList.toggle("show") })), document.addEventListener("click", (e => { this.dropBtn.contains(e.target) || this.mobileDropDown.classList.remove("show") }))), this.mobileDropDown && this.mobileDropDown.addEventListener("click", (e => { var t = e.target; if (this.dropBtn.innerHTML = t.text, this.dropBtn.innerHTML += "<i class='fas fa-angle-down'></i>", "sub-mobileTab" == t.className) for (var s = 0; s < this.mobileTab.length; s++)if (t == this.mobileTab[s]) { this.showTabsContent(s); break } })) } hideTabsContent(e) { for (var t = e; t < this.tabContent.length; t++)this.tabContent[t].classList.remove("show"), this.tabContent[t].classList.add("hide"), this.tab[t].classList.remove("whiteborder") } showTabsContent(e) { this.tabContent[e].classList.contains("hide") && (this.hideTabsContent(0), this.tab[e].classList.add("whiteborder"), this.tabContent[e].classList.remove("hide"), this.tabContent[e].classList.add("show")) } } window.addEventListener("DOMContentLoaded", (() => { const t = [...document.querySelectorAll(".sub-tabs")]; t.length && t.forEach((t => { new e(t) })) })) }, 978: () => { class e { constructor(e) { this.tabContent = e.querySelectorAll(".tabContent"), this.tab = e.querySelectorAll(".tab"), this.mobileTab = e.querySelectorAll(".mobileTab"), this.tabWrapper = e.querySelector("#tabs"), this.mobileDropDown = e.querySelector("#myDropdown"), this.dropBtn = e.querySelector(".dropbtn"), this.dropContent = e.querySelector(".dropdown-content"), this.dropdownWrapper = e.querySelector(".dropdown"), this.inittabView() } inittabView() { this.hideTabsContent(1), this.tabWrapper.addEventListener("click", (e => { var t = e.target; if ("tab" == t.className) for (var s = 0; s < this.tab.length; s++)if (t == this.tab[s]) { this.showTabsContent(s); break } })), this.dropBtn && (this.dropBtn.addEventListener("click", (e => { this.mobileDropDown.classList.toggle("show") })), document.addEventListener("click", (e => { this.dropBtn.contains(e.target) || this.mobileDropDown.classList.remove("show") }))), this.mobileDropDown && this.mobileDropDown.addEventListener("click", (e => { var t = e.target; if (this.dropBtn.innerHTML = t.text, this.dropBtn.innerHTML += "<i class='fas fa-angle-down'></i>", "mobileTab" == t.className) for (var s = 0; s < this.mobileTab.length; s++)if (t == this.mobileTab[s]) { this.showTabsContent(s); break } })) } hideTabsContent(e) { for (var t = e; t < this.tabContent.length; t++)this.tabContent[t].classList.remove("show"), this.tabContent[t].classList.add("hide"), this.tab[t].classList.remove("whiteborder") } showTabsContent(e) { this.tabContent[e].classList.contains("hide") && (this.hideTabsContent(0), this.tab[e].classList.add("whiteborder"), this.tabContent[e].classList.remove("hide"), this.tabContent[e].classList.add("show")) } } window.addEventListener("DOMContentLoaded", (() => { const t = [...document.querySelectorAll(".tabs")]; t.length && t.forEach((t => { new e(t) })) })) }, 712: () => { document.querySelector("#about-profile") && ($(".open-about-modal").on("click", (function (e) { document.getElementById("about-profile").style.display = "block"; var t = document.createElement("div"); t.classList.add("modal-backdrop", "fade", "show"), document.body.appendChild(t), document.body.style.overflow = "hidden"; let s = $(this).attr("data-profileSrc"), a = $(this).children(".c-about-us-profile-card__items__item__content").children(".c-about-us-profile-card__items__item__content__title").text(); console.log(s); let i = $(this).attr("data-full-designation"), n = $(this).children(".c-about-us-profile-card__items__item__content").children(".c-about-us-profile-card__items__item__content__description").html(); $("#about-profile .modal-content .modal-body .modalHeader .about-bio h3").text(a), $("#about-profile .modal-content .modal-body .modalHeader img").attr("src", s), $("#about-profile .modal-content .modal-body .modalHeader .about-bio p").text(i), $("#about-profile .modal-content .modal-body .modalContent .description").html(n) })), window.closeaboutmodal = e => { document.getElementById("about-profile").style.display = "none", $(".modal-backdrop").remove(), document.body.style.overflow = "auto" }, window.addEventListener("keydown", (e => { "Escape" === e.key && (document.getElementById("about-profile").style.display = "none", $(".modal-backdrop").remove(), document.body.style.overflow = "auto") }))), $(document).ready((function () { let e = $(".about-us-filter option:selected").val(); $(".open-about-modal[data-designation='" + e + "']"), $(".c-about-us-profile-card__items").find(".open-about-modal").show().not("[data-designation='" + e + "']").hide(), "all" == e && $(".c-about-us-profile-card__items").find(".open-about-modal").show(), $(".about-us-filter").on("change", (function () { let e = $(this).val(); $(".open-about-modal[data-designation='" + e + "']"), $(".c-about-us-profile-card__items").find(".open-about-modal").show().not("[data-designation='" + $(this).val() + "']").hide(), "all" == e && $(".c-about-us-profile-card__items").find(".open-about-modal").show() })) })) }, 979: () => { window.addEventListener("DOMContentLoaded", (function () { new Swiper(".testimonial-swiper", { direction: "horizontal", loop: !0, autoHeight: !1, centeredSlides: !0, breakpoints: { 320: { slidesPerView: 1, spaceBetween: 30 }, 768: { slidesPerView: 3, spaceBetween: 30 }, 1024: { slidesPerView: 3, spaceBetween: 30 }, 1420: { slidesPerView: 3, spaceBetween: 30 } }, pagination: { el: ".swiper-pagination" }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev" } }), new Swiper(".video-carousel", { effect: "fade", navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev" }, loop: !0, autoplay: { delay: 2e3 }, speed: 2e3, grabCursor: !1, direction: "horizontal", loop: !0, autoHeight: !1, centeredSlides: !0, breakpoints: { 320: { slidesPerView: 1, spaceBetween: 30 }, 768: { slidesPerView: 3, spaceBetween: 30 }, 1024: { slidesPerView: 3, spaceBetween: 30 }, 1420: { slidesPerView: 3, spaceBetween: 30 } } }), new Swiper(".video-carousel1", { navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev" }, breakpoints: { 320: { slidesPerView: 1, spaceBetween: 10 }, 768: { slidesPerView: 3, spaceBetween: 20 }, 1024: { slidesPerView: 3, spaceBetween: 20 }, 1420: { slidesPerView: 3, spaceBetween: 20 } } }) })), $((function () { var e = $(".active-tab").index(), t = $(".tabs-content li"), s = $(".tabs-1 li"); t.eq(e).show(), $(".tabs-1").on("click", "li", (function (e) { var a = $(e.currentTarget), i = a.index(); s.removeClass("active-tab"), a.addClass("active-tab"), t.hide().eq(i).show() })) })), $("a.popup-youtube").on("click", (function (e) { e.preventDefault(), $("a.popup-youtube").magnificPopup({ type: "iframe", mainClass: "mfp-fade", removalDelay: 160, preloader: !1, fixedContentPos: !0, iframe: { markup: '<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe></div>', patterns: { youtube: { index: "youtube.com/", id: "v=", src: "https://www.youtube.com/embed/%id%?autoplay=1" }, vimeo: { index: "vimeo.com/", id: "/", src: "//player.vimeo.com/video/%id%?autoplay=1" }, gmaps: { index: "//maps.google.", src: "%id%&output=embed" } }, srcAction: "iframe_src" } }) })) }, 515: () => { $(".engineVariants a").on("click", (function (e) { e.preventDefault(), $(".available-list.active .input-radio input:radio[name=break-type]:first").prop("checked", !0), $(".available-list.active .color-list").each((function (e) { 0 === e ? ($(this).addClass("active"), $(this).removeClass("hide")) : ($(this).addClass("hide"), $(this).removeClass("active")) })), $(".exteriorColorPallet li:first-child").addClass("active"), $(".exteriorColorPallet li:not(:first-child)").removeClass("active"), $(".available-list.active .color-list.active").find(".exteriorColorPallet li.active a").trigger("click"), $(".engineVariants a").removeClass("activelink1"), $(this).addClass("activelink1"); var t = $(this).data("tag"); $(".list1").removeClass("active").addClass("hide"), $("#" + t).addClass("active").removeClass("hide"); var s = $("#" + t + " li.active > a"); $(s).trigger("click"), $("#" + t).find(".input-radio input#disc").trigger("click"), $("#" + t).find(".input-radio input#disc").next().trigger("click") })), $(".three-wheeler").find(".engineVariants a").on("click", (function (e) { e.preventDefault(), $(".available-list.active .input-radio input:radio[name=break-type]:first").prop("checked", !0), $(".available-list.active .color-list").each((function (e) { 0 === e ? ($(this).addClass("active"), $(this).removeClass("hide")) : ($(this).addClass("hide"), $(this).removeClass("active")) })), $(".exteriorColorPallet li:first-child").addClass("active"), $(".exteriorColorPallet li:not(:first-child)").removeClass("active"), $(".available-list.active .color-list.active").find(".exteriorColorPallet li.active a").trigger("click"), $(".color-list.active .engineVariants a").removeClass("activelink1"), $(this).addClass("activelink1"); var t = $(this).data("specs"); $(".specs").removeClass("active").addClass("hide"), $("#" + t).addClass("active").removeClass("hide"); var s = $("#" + t + " li.active > a"); $(s).trigger("click"), $("#" + t).find(".input-radio input#disc").trigger("click"), $("#" + t).find(".input-radio input#disc").next().trigger("click") })), $(window).on("load", (function () { $(".input-radio input:radio[name=break-type]:first").prop("checked", !0) })) }, 715: () => { function e(e) { for (cookieList = document.cookie.split("; "), cookies = {}, i = cookieList.length - 1; i >= 0; i--)cookie = cookieList[i].split("="), cookies[cookie[0]] = cookie[1]; return cookies[e] } $((function () { void 0 === e("cookie_policy") || "" == typeof e("cookie_policy") ? ($(".cookieDisclaimer").show(), $("body").addClass("topPosCss")) : ($(".cookieDisclaimer").hide(), $(".container-fluid").css("padding-top", "70px"), $(".header").css("top", "0px")), $(".cookieDisclaimerAcceptBtn").click((function () { var e; $(".cookieDisclaimer").hide(), (e = new Date).setDate(e.getDate() + 1), document.cookie = "cookie_policy=Agree;expires=" + e.toGMTString() + ";path=/", $("body").removeClass("topPosCss"), $(".container-fluid").css("padding-top", "70px"), $(".header").css("top", "0px") })) })) }, 277: () => { class e { constructor(e) { this.breakType = e.querySelectorAll('input[type=radio][name="break-type"]'), this.radioButton = e.querySelector(".input-radio"), this.discBreak = e.querySelector(".disc"), this.drumBreak = e.querySelector(".drum"), this.discBreak && this.discBreak.classList.add("active"), this.drumBreak && this.drumBreak.classList.add("hide"), this.iniVariantView() } iniVariantView() { this.breakType.length <= 1 && this.radioButton && this.radioButton.classList.add("d-none"), this.breakType && this.discBreak && this.drumBreak && this.breakType.forEach((e => e.addEventListener("change", (() => { "disc" === e.value && this.drumBreak && this.discBreak ? (this.discBreak.classList.add("active"), this.discBreak.classList.remove("hide"), this.drumBreak.classList.remove("active"), this.drumBreak.classList.add("hide"), this.discBreak.querySelector("li:first-child a").click()) : "drum" === e.value && this.drumBreak && this.discBreak && (this.drumBreak.classList.add("active"), this.drumBreak.classList.remove("hide"), this.discBreak.classList.remove("active"), this.discBreak.classList.add("hide"), this.drumBreak.querySelector("li:first-child a").click()) })))) } } window.addEventListener("DOMContentLoaded", (() => { const t = [...document.querySelectorAll(".available-wrapper")]; t.length && t.forEach((t => { new e(t) })) })); var t = $(".auto-360"); t.find(".tabber .engineVariants").length <= 1 && (t.find(".tabber").addClass("d-none"), t.find(".available-wrapper").css("border-radius", "16px")) }, 959: () => { let e = "", t = "", s = ""; $("#emi-amt").html("0"); const a = (e, t, s) => { console.log(e, t); let a = s / 1200; const i = e * a / (1 - Math.pow(1 / (1 + a), t)); $("#emi-amt").html(i.toLocaleString("en-IN", { minimumFractionDigits: 2, maximumFractionDigits: 2 })) }; $("#loan").keyup((function () { let i = (n = this.value, isNaN(n)); var n; console.log(i), i ? (e = "", $("#loan-error").html("Only numbers are allowed")) : ($("#loan-error").html(""), e = this.value, console.log("finalLoanAmt : " + e), e && t && s && console.log("emiCalculation : " + a(e, t, s))) })), $(".tenure-rate a").on("click", (function () { t = $(this).attr("data-value"), console.log("finalTenure : " + t), e && t && s && console.log("emiCalculation : " + a(e, t, s)), setTimeout((function () { $("#tenure").empty().prepend('<span class="tenure">Tenure: ' + t + " </span> ") })); var i = $("#loan").width(); $(".dropdown-menu").width(i) })), $(".dropdown-interest-rate a").on("click", (function () { s = $(this).attr("data-value"), console.log("finalInterestRate : " + s), e && t && s && console.log("emiCalculation : " + a(e, t, s)), setTimeout((function () { $("#InterestRate").empty().prepend('<span class="interestRate">Interest Rate: ' + s + " </span> ") })); var i = $("#loan").width(); $(".dropdown-interest-rate").width(i) })), $(document).ready((function () { $(".dropdown-menu li a").on("click", (function () { $("#options", this).text($(this).text()) })); var e = $("#loan").width(); $(".dropdown-menu").width(e), $(".dropdown-interest-rate a").each((function () { if (s = $(this).attr("data-value"), 12 == s) return $(this).trigger("click"), !1 })), $(".dropdown-interest-rate").width(e) })), $(window).resize((function () { var e = $("#loan").width(); $(".dropdown-menu").width(e), $(".dropdown-interest-rate").width(e) })) }, 813: () => { $(window).ready((function () { $("a").each((function () { "#" == $(this).attr("href") || "" == $(this).attr("href") ? $(this).css({ cursor: "default" }) : $(this).css({ cursor: "pointer" }) })) })); var e, t, s = document.querySelectorAll(".c-features-navigation-component a"); for (e = 0; e < s.length; e++)"#" == (t = s[e].getAttribute("href")) && s[e].setAttribute("onclick", "return false"), t.trim().length < 1 && s[e].setAttribute("onclick", "return false") }, 714: () => { $(window).ready((function () { if ($(window).width() < 768) $(".footer-section h5,.footer-section p").last().addClass("footer-last-item"), $(".dropup-link").parent().find("ul").removeClass("dropdown-menu").hide(), $(".dropup-link").click((function () { $(this).parent().find("ul").slideToggle() })); else { var e = []; $(".footer-section h5,.footer-section p").each((function () { e.push($(this).height()) })); var t = Math.max.apply(Math, e); $(".footer-section h5,.footer-section p").height(t), $(".dropup-link").parent().find("ul").addClass("dropdown-menu") } $("#MultiCarousel, #galleryImageCarousel .carousel").carousel({ touch: !0 }), $(".dropup-link").each((function () { $(this).on("click", (function (e) { e.preventDefault(), $(this).find("img").toggle() })) })), $(document).on("click", (function () { $(".dropup-link").find("img.dropup-link-down").show(), $(".dropup-link").find("img.dropup-link-up").hide() })), $(".drop-up li").click((function () { var e = $(this).find("a").attr("href"); window.location.href = e })), $(".w-650").find("div").each((function () { var e = $(this).attr("class"), t = $(this).attr("id"); void 0 !== e && !1 !== e || void 0 !== t && !1 !== t || $(this).addClass("empty-block") })); var s = $(".w-650").find("h2"); "Contact Us" == s.text() && $(s).parent().find("p").css("padding-bottom", "0px") })); const e = document.querySelector(".MultiCarousel"); if (e) { e.addEventListener("touchstart", (function (e) { const a = function (e) { return e.touches || e.originalEvent.touches }(e)[0]; t = a.clientX, s = a.clientY }), !1), e.addEventListener("touchmove", (function (e) { if (t && s) { var a = e.touches[0].clientX, i = e.touches[0].clientY, n = t - a, r = s - i; Math.abs(n) > Math.abs(r) && (n > 0 ? $(".rightLst").trigger("click") : $(".leftLst").trigger("click")), t = null, s = null } }), !1); var t = null, s = null } function a(e) { $(".recommended-grade-details table tbody").find("tr").each((function () { $(this).attr("data-val") == e ? $(this).show() : $(this).hide() })) } $(window).ready((function () { a($(".data-filter-select").find(":selected").val()) })), $(".data-filter-select").on("change", (function () { a($(this).find(":selected").val()) })); var i = window.location.href, n = i.substr(i.lastIndexOf("/")).length, r = i.substr(0, i.length - n), o = r.substr(r.lastIndexOf("/")); $(".c-left-navigation-accordion .toggle-content").each((function () { $(this).find("a").each((function () { $(this).attr("data-model") === o.substr(1) && $(this).addClass("active") })) })); var l = $(window).width(); function d() { var e; $(".c-left-navigation-accordion .toggle-content").find("p a").each((function () { if ($(this).hasClass("active")) { e = $(this).attr("data-brand"); var t = $(".c-left-navigation-accordion .toggle-content").find("p a.active").text(); $(".accordion-dropdown .dropdown-toggle").text(t), $(".c-left-navigation-accordion .list-group .list-group-item-heading").each((function () { $(this).text() == e && $(this).parent().trigger("click") })) } })) } l < 993 && $(".accordion-dropdown .dropdown-item").click((function () { $(".c-left-navigation-accordion").find("div").hasClass("accordion") ? ($(".c-left-navigation-accordion .accordion").show(), $(".c-left-navigation-accordion .list-group").each((function () { $(this).removeClass("active"), d() }))) : $(".c-left-navigation-accordion .accordion").hide() })), $(window).on("resize", (function () { d() })), $(window).on("load", (function () { d() })), l < 993 && ($(".c-left-navigation-accordion").hide(), $(".accordion-dropdown .dropdown .dropdown-toggle").on("click", (function () { $(".accordion-dropdown .dropdown-menu").hide(), $(".c-left-navigation-accordion").slideToggle(300), $(".c-left-navigation-accordion .list-group.active").next().css("max-height", "100%") }))), $(".accordion-dropdown .dropdown-toggle").click((function () { $(".c-left-navigation-accordion").is(":visible") && $(this).toggleClass("accordion-active") })), $(window).on("load", (function () { $(".feature-section").each((function () { $(this).find(".carousel-item").length > 1 ? l < 769 && $(this).find(".carousel-item .desc-text").css("padding-bottom", "51px") : $(this).find(".carousel-item .desc-text").css("padding-bottom", "0px") })) })) }, 166: () => { $(document).ready((function () { const e = (e, s, a) => { $("#select-filter" + e).on("change", (function () { $(".accordion .list-group.active").css("display", "none") && ($(".accordion .list-group.active").next(".toggle-content").css("max-height", "0px"), $(".accordion .list-group.active").next(".toggle-content").css("border-bottom", "none")); const i = $("#select-filter" + e).closest(".paginate").find(".list-group").show().not("[data-year='" + $(this).val() + "']").hide(); console.log("filter", i), "true" === a && ($("#page-" + e + " .pagination li.current-page").remove(), $("#page-" + e + " .pagination li.next-page").remove(), $("#page-" + e + " .pagination li.previous-page").remove(), t(e, s, $(this).val())) })) }, t = (e, t, s) => { if (0 === t || "" == t || null == t) return !1; var a = $("#page-" + e + " .list-group[data-year='" + s + "']").length; $("#page-" + e + " .list-group[data-year='" + s + "']:gt(" + (t - 1) + ")").hide(), console.log(a); var i = Math.ceil(a / t); if (i > 1) { $("#page-" + e + " .pagination").append("<li class='previous-page disabled'><a href='javascript:void(0)' aria-label=Previous><span aria-hidden=true><i class='fas fa-chevron-left'></i></span></a></li>"), $("#page-" + e + " .pagination").append("<li class='current-page active'><a href='javascript:void(0)'>1</a></li>"); for (var n = 2; n <= i; n++)$("#page-" + e + " .pagination").append("<li class='current-page'><a href='javascript:void(0)'>" + n + "</a></li>"); $("#page-" + e + " .pagination").append("<li class='next-page'><a href='javascript:void(0)' aria-label=Next><span aria-hidden=true><i class='fas fa-chevron-right'></i></span></a></li>") } $("#page-" + e + " .pagination li.current-page").on("click", (function () { if (console.log("filterval on curernt page", s), $(this).hasClass("active")) return !1; var a = $(this).index(); $("#page-" + e + " .pagination li").removeClass("active"), $(this).addClass("active"), $("#page-" + e + " .list-group[data-year='" + s + "']").hide(); var n = t * a; a === i ? $("#page-" + e + " .pagination li.next-page").addClass("disabled") : $("#page-" + e + " .pagination li.next-page").removeClass("disabled"), 1 === a && $("#page-" + e + " .pagination li.previous-page").addClass("disabled"), a > 1 && $("#page-" + e + " .pagination li.previous-page").removeClass("disabled"); for (var r = n - t; r < n; r++)$("#page-" + e + " .list-group[data-year='" + s + "']:eq(" + r + ")").show() })), $("#page-" + e + " .pagination li.next-page").on("click", (function () { var a = $("#page-" + e + " .pagination li.active").index(); if ($("#page-" + e + " .pagination li.previous-page").removeClass("disabled"), console.log("filterval on next page", s), a === i) return !1; $("#page-" + e + " .pagination li.next-page").removeClass("disabled"), a++, $("#page-" + e + " .pagination li").removeClass("active"), $("#page-" + e + " .list-group[data-year='" + s + "']").hide(); for (var n = t * a, r = n - t; r < n; r++)$("#page-" + e + " .list-group[data-year='" + s + "']:eq(" + r + ")").show(); $("#page-" + e + " .pagination li.current-page:eq(" + (a - 1) + ")").addClass("active"), a === i && $("#page-" + e + " .pagination li.next-page").addClass("disabled") })), $("#page-" + e + " .pagination li.previous-page").on("click", (function () { console.log("filter on previous page", s), $("#page-" + e + " .pagination li.next-page").removeClass("disabled"); var a = $("#page-" + e + " .pagination li.active").index(); if (console.log("previous page index", a), 1 === a) return $("#page-" + e + " .pagination li.previous-page").addClass("disabled"), !1; $("#page-" + e + " .pagination li.previous-page").removeClass("disabled"), a--, $("#page-" + e + " .pagination li").removeClass("active"), $("#page-" + e + " .list-group[data-year='" + s + "']").hide(); var i = t * a; console.log("grand total", i); for (var n = i - t; n < i; n++)$("#page-" + e + "  .list-group[data-year='" + s + "']:eq(" + n + ")").show(); $("#page-" + e + " .pagination li.current-page:eq(" + (a - 1) + ")").addClass("active"), 1 === a ? $("#page-" + e + " .pagination li.previous-page").addClass("disabled") : $("#page-" + e + " .pagination li.previous-page").removeClass("disabled") })) }, s = (e, t) => { if (console.log("limi", t), 0 === t || "" == t || null == t) return !1; var s = $("#page-" + e + " .list-group").length; $("#page-" + e + " .list-group:gt(" + (t - 1) + ")").hide(), console.log(s); var a = Math.ceil(s / t); if (console.log("total" + a), a > 1) { $("#page-" + e + " .pagination").append("<li class='previous-page disabled'><a href='javascript:void(0)' aria-label=Previous><span aria-hidden=true><i class='fas fa-chevron-left'></i></span></a></li>"), $("#page-" + e + " .pagination").append("<li class='current-page active'><a href='javascript:void(0)'>1</a></li>"); for (var i = 2; i <= a; i++)$("#page-" + e + " .pagination").append("<li class='current-page'><a href='javascript:void(0)'>" + i + "</a></li>"); $("#page-" + e + " .pagination").append("<li class='next-page'><a href='javascript:void(0)' aria-label=Next><span aria-hidden=true><i class='fas fa-chevron-right'></i></span></a></li>") } $("#page-" + e + " .pagination li.current-page").on("click", (function () { if ($(this).hasClass("active")) return !1; var s = $(this).index(); $("#page-" + e + " .pagination li").removeClass("active"), $(this).addClass("active"), $("#page-" + e + " .list-group").hide(); var i = t * s; s === a ? $("#page-" + e + " .pagination li.next-page").addClass("disabled") : $("#page-" + e + " .pagination li.next-page").removeClass("disabled"), 1 === s && $("#page-" + e + " .pagination li.previous-page").addClass("disabled"), s > 1 && $("#page-" + e + " .pagination li.previous-page").removeClass("disabled"); for (var n = i - t; n < i; n++)$("#page-" + e + " .list-group:eq(" + n + ")").show() })), $("#page-" + e + " .pagination li.next-page").on("click", (function () { var s = $("#page-" + e + " .pagination li.active").index(); if ($("#page-" + e + " .pagination li.previous-page").removeClass("disabled"), console.log("current page", s), console.log("total pages", a), s === a) return !1; $("#page-" + e + " .pagination li.next-page").removeClass("disabled"), s++, $("#page-" + e + " .pagination li").removeClass("active"), $("#page-" + e + " .list-group").hide(); for (var i = t * s, n = i - t; n < i; n++)$("#page-" + e + " .list-group:eq(" + n + ")").show(); $("#page-" + e + " .pagination li.current-page:eq(" + (s - 1) + ")").addClass("active"), s === a && $("#page-" + e + " .pagination li.next-page").addClass("disabled") })), $("#page-" + e + " .pagination li.previous-page").on("click", (function () { $("#page-" + e + " .pagination li.next-page").removeClass("disabled"); var s = $("#page-" + e + " .pagination li.active").index(); if (1 === s) return $("#page-" + e + " .pagination li.previous-page").addClass("disabled"), !1; $("#page-" + e + " .pagination li.previous-page").removeClass("disabled"), s--, $("#page-" + e + " .pagination li").removeClass("active"), $("#page-" + e + " .list-group").hide(); for (var a = t * s, i = a - t; i < a; i++)$("#page-" + e + " .list-group:eq(" + i + ")").show(); $("#page-" + e + " .pagination li.current-page:eq(" + (s - 1) + ")").addClass("active"), 1 === s ? $("#page-" + e + " .pagination li.previous-page").addClass("disabled") : $("#page-" + e + " .pagination li.previous-page").removeClass("disabled") })) }; $(".paginate").each((function (a) { if ($(this).attr("id", "page-" + a), "false" === $(this).attr("data-hasFilter")) $("#page-" + a).find(".paginate-filter-select").hide(), "true" === $(this).attr("data-isPaginate") && s(a, $(this).attr("data-numberofItems")); else { $(this).find(".paginate-filter-select").attr("id", "select-filter" + a); var i = $("#select-filter" + a + " option:selected").val(); $("#select-filter" + a).closest(".paginate").find(".list-group").show().not("[data-year='" + i + "']").hide(), "true" === $(this).attr("data-isPaginate") && t(a, $(this).attr("data-numberofItems"), i), e(a, $(this).attr("data-numberofItems"), $(this).attr("data-isPaginate")) } })) })) }, 460: () => { if (document.querySelector("#galleryFeature")) { var e = $(".js--btn-play").attr("data-src"); window.openModal = () => { document.getElementById("galleryFeature").style.display = "flex", document.body.style.overflow = "hidden", $("#iframe-video").attr("src", e) }, window.closeModal = () => { document.getElementById("galleryFeature").style.display = "none", document.body.style.overflow = "auto", $("#iframe-video").attr("src", "") }; var t = 1; function s(e) { var s, a = document.getElementsByClassName("mySlides"); for (e > a.length && (t = 1), e < 1 && (t = a.length), s = 0; s < a.length; s++)a[s].style.display = "none"; a[t - 1].style.display = "flex" } s(t), window.currentSlide = e => { s(t = e) } } }, 968: () => { $(document).ready((function () { $("#imageGallery .carousel").on("slid.bs.carousel", (function () { $("#imageGallery .carousel-indicators2 li").removeClass("active"), indicator = $("#imageGallery .carousel-indicators li.active").data("slide-to"), a = $("#imageGallery .carousel-indicators2").find("[data-slide-to='" + indicator + "']").addClass("active"), $(".numberIndicator").html(indicator + " of " + document.querySelector("#imageGallery .carousel-indicators").getElementsByTagName("li").length) })), $(".MultiCarousel .MultiCarousel-inner .item").on("click", (function () { $("#galleryImageCarousel .carousel-inner .carousel-item").removeClass("active"), $("[data-modalslide=" + $(this).data("galleryslide") + "]").addClass("active"), $(".numberIndicator").html($(this).data("galleryslide") + " of " + document.querySelector("#imageGallery .carousel-indicators").getElementsByTagName("li").length), $("#imageGallery").modal("show") })); var e = $(".MultiCarousel .MultiCarousel-inner .item"); (e.length <= 3 && window.innerWidth > 768 || e.length <= 1 && window.innerWidth < 768) && ($(".MultiCarousel .leftLst").addClass("hide"), $(".MultiCarousel .rightLst").addClass("hide")); var t = $(window).height(); $(window).width() > 767 ? $("#galleryImageCarousel img.d-block").height(t) : $("#galleryImageCarousel img.d-block").height("100%") })), $(document).ready((function () { var e = ".MultiCarousel-inner", t = ""; function s() { var s = 0, a = ".item", i = 0, n = "", r = "", o = $(".MultiCarousel").width(), l = $("body").width(); $(e).each((function () { i += 1; var e = $(this).find(a).length; n = $(this).parent().attr("data-items"), r = n.split(","), $(this).parent().attr("id", "MultiCarousel" + i), l >= 2e3 ? (s = r[2], t = o / s - 5) : l >= 768 ? (s = r[1], t = o / s - 5) : (s = r[0], t = o / s - 5), $(this).css({ transform: "translateX(0px)", width: t * e }), $(this).find(a).each((function () { $(this).outerWidth(t) })), $(".leftLst").addClass("over"), $(".rightLst").removeClass("over") })) } function a() { var e = $("#textCarouselControls-performance-section"); e.find(".carousel-inner .carousel-item").length <= 1 ? (e.find(".carousel-control-prev").hide(), e.find(".carousel-control-next").hide(), e.find(".carousel-indicators").hide(), e.find(".carousel-control-vector").hide()) : e.find(".carousel-inner .carousel-item:first").hasClass("active") ? (e.find(".carousel-control-prev .fa-arrow-left").css("color", "#d3d3d3"), e.find(".carousel-control-next .fa-arrow-right").css("color", "#006ad0"), e.find(".carousel-control-next .fa-arrow-left").css("cursor", "auto")) : e.find(".carousel-inner .carousel-item:last").hasClass("active") ? (e.find(".carousel-control-prev .fa-arrow-left").css("color", "#006ad0"), e.find(".carousel-control-next .fa-arrow-right").css("color", "#d3d3d3"), e.find(".carousel-control-next .fa-arrow-right").css("cursor", "auto")) : (e.find(".carousel-control-prev .fa-arrow-left").css("color", "#006ad0"), e.find(".carousel-control-next .fa-arrow-right").css("color", "#006ad0")) } function i() { var e = $("#textCarouselControls-design-section"); e.find(".carousel-inner .carousel-item").length <= 1 ? (e.find(".carousel-control-prev").hide(), e.find(".carousel-control-next").hide(), e.find(".carousel-indicators").hide(), e.find(".carousel-control-vector").hide()) : e.find(".carousel-inner .carousel-item:first").hasClass("active") ? (e.find(".carousel-control-prev .fa-arrow-left").css("color", "#d3d3d3"), e.find(".carousel-control-next .fa-arrow-right").css("color", "#006ad0"), e.find(".carousel-control-next .fa-arrow-left").css("cursor", "auto")) : e.find(".carousel-inner .carousel-item:last").hasClass("active") ? (e.find(".carousel-control-prev .fa-arrow-left").css("color", "#006ad0"), e.find(".carousel-control-next .fa-arrow-right").css("color", "#d3d3d3"), e.find(".carousel-control-next .fa-arrow-right").css("cursor", "auto")) : (e.find(".carousel-control-prev .fa-arrow-left").css("color", "#006ad0"), e.find(".carousel-control-next .fa-arrow-right").css("color", "#006ad0")) } function n() { var e = $("#textCarouselControls-technology-section"); e.find(".carousel-inner .carousel-item").length <= 1 ? (e.find(".carousel-control-prev").hide(), e.find(".carousel-control-next").hide(), e.find(".carousel-indicators").hide(), e.find(".carousel-control-vector").hide()) : e.find(".carousel-inner .carousel-item:first").hasClass("active") ? (e.find(".carousel-control-prev .fa-arrow-left").css("color", "#d3d3d3"), e.find(".carousel-control-next .fa-arrow-right").css("color", "#006ad0"), e.find(".carousel-control-next .fa-arrow-left").css("cursor", "auto")) : e.find(".carousel-inner .carousel-item:last").hasClass("active") ? (e.find(".carousel-control-prev .fa-arrow-left").css("color", "#006ad0"), e.find(".carousel-control-next .fa-arrow-right").css("color", "#d3d3d3"), e.find(".carousel-control-next .fa-arrow-right").css("cursor", "auto")) : (e.find(".carousel-control-prev .fa-arrow-left").css("color", "#006ad0"), e.find(".carousel-control-next .fa-arrow-right").css("color", "#006ad0"), e.find(".carousel-control-next .fa-arrow-right").css("cursor", "pointer"), e.find(".carousel-control-next .fa-arrow-left").css("cursor", "pointer")) } function r() { var e = $("#textCarouselControls-safety-section"); e.find(".carousel-inner .carousel-item").length <= 1 ? (e.find(".carousel-control-prev").hide(), e.find(".carousel-control-next").hide(), e.find(".carousel-indicators").hide(), e.find(".carousel-control-vector").hide()) : e.find(".carousel-inner .carousel-item:first").hasClass("active") ? (e.find(".carousel-control-prev .fa-arrow-left").css("color", "#d3d3d3"), e.find(".carousel-control-next .fa-arrow-right").css("color", "#006ad0"), e.find(".carousel-control-next .fa-arrow-left").css("cursor", "auto")) : e.find(".carousel-inner .carousel-item:last").hasClass("active") ? (e.find(".carousel-control-prev .fa-arrow-left").css("color", "#006ad0"), e.find(".carousel-control-next .fa-arrow-right").css("color", "#d3d3d3"), e.find(".carousel-control-next .fa-arrow-right").css("cursor", "auto")) : (e.find(".carousel-control-prev .fa-arrow-left").css("color", "#006ad0"), e.find(".carousel-control-next .fa-arrow-right").css("color", "#006ad0")) } function o() { var e = $("#textCarouselControls-features-section"); e.find(".carousel-inner .carousel-item").length <= 1 ? (e.find(".carousel-control-prev").hide(), e.find(".carousel-control-next").hide(), e.find(".carousel-indicators").hide(), e.find(".carousel-control-vector").hide()) : e.find(".carousel-inner .carousel-item:first").hasClass("active") ? (e.find(".carousel-control-prev .fa-arrow-left").css("color", "#d3d3d3"), e.find(".carousel-control-next .fa-arrow-right").css("color", "#006ad0"), e.find(".carousel-control-next .fa-arrow-left").css("cursor", "auto")) : e.find(".carousel-inner .carousel-item:last").hasClass("active") ? (e.find(".carousel-control-prev .fa-arrow-left").css("color", "#006ad0"), e.find(".carousel-control-next .fa-arrow-right").css("color", "#d3d3d3"), e.find(".carousel-control-next .fa-arrow-right").css("cursor", "auto")) : (e.find(".carousel-control-prev .fa-arrow-left").css("color", "#006ad0"), e.find(".carousel-control-next .fa-arrow-right").css("color", "#006ad0")) } function l() { var e = $("#textCarouselControls-comfort-section"); e.find(".carousel-inner .carousel-item").length <= 1 ? (e.find(".carousel-control-prev").hide(), e.find(".carousel-control-next").hide(), e.find(".carousel-indicators").hide(), e.find(".carousel-control-vector").hide()) : e.find(".carousel-inner .carousel-item:first").hasClass("active") ? (e.find(".carousel-control-prev .fa-arrow-left").css("color", "#d3d3d3"), e.find(".carousel-control-next .fa-arrow-right").css("color", "#006ad0"), e.find(".carousel-control-next .fa-arrow-left").css("cursor", "auto")) : e.find(".carousel-inner .carousel-item:last").hasClass("active") ? (e.find(".carousel-control-prev .fa-arrow-left").css("color", "#006ad0"), e.find(".carousel-control-next .fa-arrow-right").css("color", "#d3d3d3"), e.find(".carousel-control-next .fa-arrow-right").css("cursor", "auto")) : (e.find(".carousel-control-prev .fa-arrow-left").css("color", "#006ad0"), e.find(".carousel-control-next .fa-arrow-right").css("color", "#006ad0")) } $(".leftLst, .rightLst").click((function () { var s; (function (s, a, i) { var n = ".leftLst", r = ".rightLst", o = "", l = $(a + " " + e).css("transform").match(/-?[\d\.]+/g), d = Math.abs(l[4]); if (0 == s) o = parseInt(d) - parseInt(t * i), $(a + " " + r).removeClass("over"), o <= t / 2 && (o = 0, $(a + " " + n).addClass("over")); else if (1 == s) { var c = $(a).find(e).width() - $(a).width(); o = parseInt(d) + parseInt(t * i), $(a + " " + n).removeClass("over"), o >= c - t / 2 && (o = c, $(a + " " + r).addClass("over")) } $(a + " " + e).css("transform", "translateX(" + -o + "px)") })($(this).hasClass("leftLst") ? 0 : 1, s = "#" + $(this).parent().attr("id"), $(s).attr("data-slide")) })), s(), $(window).resize((function () { s(); var e = $(".MultiCarousel .MultiCarousel-inner .item"); e.length <= 3 && window.innerWidth > 768 || e.length <= 1 && window.innerWidth < 768 ? ($(".MultiCarousel .leftLst").addClass("hide"), $(".MultiCarousel .rightLst").addClass("hide")) : ($(".MultiCarousel .leftLst").removeClass("hide"), $(".MultiCarousel .rightLst").removeClass("hide")) })), $("#textCarouselControls-performance-section").on("slid", "", a), $("#textCarouselControls-performance-section").on("slid.bs.carousel", "", a), $(document).ready((function () { a() })), $("#textCarouselControls-design-section").on("slid", "", i), $("#textCarouselControls-design-section").on("slid.bs.carousel", "", i), $(document).ready((function () { i() })), $("#textCarouselControls-technology-section").on("slid", "", n), $("#textCarouselControls-technology-section").on("slid.bs.carousel", "", n), $(document).ready((function () { n() })), $("#textCarouselControls-safety-section").on("slid", "", r), $("#textCarouselControls-safety-section").on("slid.bs.carousel", "", r), $(document).ready((function () { r() })), $("#textCarouselControls-features-section").on("slid", "", o), $("#textCarouselControls-features-section").on("slid.bs.carousel", "", o), $(document).ready((function () { o() })), $("#textCarouselControls-comfort-section").on("slid", "", l), $("#textCarouselControls-comfort-section").on("slid.bs.carousel", "", l), $(document).ready((function () { l() })) })), $(document).bind("keyup", (function (e) { 39 == e.keyCode ? jQuery("a.carousel-control-next").trigger("click") : 37 == e.keyCode ? jQuery("a.carousel-control-prev").trigger("click") : 27 == e.keyCode && ($(".close").trigger("click"), $(".closeIcon").trigger("click"), $(".mCS_img_loaded").trigger("click"), document.body.style.overflow = "auto") })) }, 132: () => { $(document).ready((function () { $(".carousel-control").click((function () { })), $(".hero-banner-btn").each((function () { "" == $(this).text() ? $(this).hide() : $(this).show() })), $(".hero-banner-carousel").each((function () { 1 == $(this).find(".carousel-item").length ? $(this).addClass("secondary-hero-banner") : $(this).removeClass("secondary-hero-banner") })), $(window).width() > 1200 && $(".banner-text").text().length > 60 && $(".banner-text").html($(".banner-text").text().substring(0, 60)) })) }, 876: () => { window.addEventListener("DOMContentLoaded", (function () { new Swiper(".mySwiper", { keyboard: { enabled: !0, onlyInViewport: !1, pageUpDown: !1 }, loop: !0, autoplay: { delay: 3e3, disableOnInteraction: !1 }, pagination: { el: ".swiper-pagination", type: "progressbar" }, breakpoints: { 320: { slidesPerView: 1.1, spaceBetween: 20 }, 768: { slidesPerView: 2.1, spaceBetween: 20 }, 1024: { slidesPerView: 3.1, spaceBetween: 20 }, 1420: { slidesPerView: 3.1, spaceBetween: 20 } } }), new Swiper(".productHighlight", { keyboard: { enabled: !0, onlyInViewport: !1, pageUpDown: !1 }, loop: !1, autoplay: !1, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev" }, pagination: { el: ".swiper-pagination", type: "progressbar" }, breakpoints: { 320: { slidesPerView: 1.15, spaceBetween: 20 }, 768: { slidesPerView: 2.15, spaceBetween: 20 }, 1024: { slidesPerView: 3.15, spaceBetween: 20 }, 1420: { slidesPerView: 3.15, spaceBetween: 20 } } }) })) }, 40: () => { var e = $("#our-locations").attr("data-icn"), t = [{ featureType: "water", elementType: "all", stylers: [{ color: "#eaeaea" }] }, { featureType: "landscape", elementType: "all", stylers: [{ visibility: "on" }, { hue: "#00bfff" }, { saturation: "100" }] }, { featureType: "road.arterial", elementType: "geometry", stylers: [{ color: "#CCFFFF" }] }, { featureType: "road", elementType: "all", stylers: [{ visibility: "off" }] }, { featureType: "poi.attraction", elementType: "geometry.fill", stylers: [{ color: "#ffffff" }, { visibility: "off" }] }, { featureType: "landscape.natural", elementType: "all", stylers: [{ visibility: "on" }, { saturation: "off" }] }, { featureType: "all", elementType: "labels", stylers: [{ visibility: "off" }] }, { featureType: "administrative", elementType: "labels", stylers: [{ visibility: "off" }] }, { featureType: "poi", elementType: "labels", stylers: [{ visibility: "off" }] }, { featureType: "water", elementType: "labels", stylers: [{ visibility: "off" }] }, { featureType: "road", elementType: "labels", stylers: [{ visibility: "off" }] }], s = $("#our-locations").val(); if (s) { var a; function i(e, t) { var s = document.createElement("div"); s.style.backgroundColor = "#006AD0", s.style.borderRadius = "100%", s.style.cursor = "pointer", s.style.marginLeft = "10px", s.style.textAlign = "center", s.style.width = "32px", s.style.height = "32px", s.style.display = "inline-block", e.appendChild(s); var a = document.createElement("div"); a.style.fontSize = "24px", a.style.paddingLeft = "9px", a.style.paddingRight = "9px", a.style.color = "#fff", a.innerHTML = "+", s.appendChild(a), google.maps.event.addDomListener(s, "click", (function () { t.setZoom(t.getZoom() + 1) })); var i = document.createElement("div"); i.style.backgroundColor = "#75AADD", i.style.borderRadius = "100%", i.style.cursor = "pointer", i.style.marginLeft = "10px", i.style.textAlign = "center", i.style.width = "32px", i.style.height = "32px", i.style.display = "inline-block", e.appendChild(i); var n = document.createElement("div"); n.style.fontSize = "24px", n.style.paddingLeft = "9px", n.style.paddingRight = "9px", n.style.color = "#fff", n.innerHTML = "-", i.appendChild(n), google.maps.event.addDomListener(i, "click", (function () { t.setZoom(t.getZoom() - 1) })), $(s).parent().addClass("position-map-zoom-icns") } a = $.parseJSON(s), window.onload = function () { !function () { var s = { center: new google.maps.LatLng(a[0].latitude, a[0].longitude), mapTypeId: google.maps.MapTypeId.ROADMAP, fullscreenControl: !1, disableDefaultUI: !0, scrollwheel: !1, streetViewControl: !1, mapTypeControl: !1, minZoom: 3, maxZoom: 6 }, n = new google.maps.Map(document.getElementById("ourPresence-Map"), s); n.set("styles", t); for (var r = new google.maps.InfoWindow, o = new google.maps.LatLngBounds, l = 0; l < a.length; l++) { var d = a[l], c = new google.maps.LatLng(d.latitude, d.longitude); o.extend(c); var p = new google.maps.Marker({ position: c, map: n, title: d.location, icon: e }); n.fitBounds(o), n.panToBounds(o), n.setZoom(2), function (e, t) { google.maps.event.addListener(e, "click", (function (s) { r.setContent("<div class = 'map-info-cont'><h6>" + t.location + "</h6><p>" + t.description + "</p></div>"), r.open(n, e) })) }(p, d) } var u = document.createElement("div"); new i(u, n), u.index = 1, n.controls[google.maps.ControlPosition.BOTTOM_RIGHT].push(u) }() } } }, 317: () => { $(document).ready((function () { $("#productFeature").carousel({ interval: 1e4 }), $("#productFeature .carousel-item").each((function () { var e = $(this).next(); e.length || (e = $(this).siblings(":first")), e.children(":first-child").clone().appendTo($(this)), e.next().length > 0 ? e.next().children(":first-child").clone().appendTo($(this)) : $(this).siblings(":first").children(":first-child").clone().appendTo($(this)) })) })), $("#cascade-slider").cascadeSlider({}), $(".cascade-slider_arrow").click((function () { $(".now .carousel-caption").css("visibility", "hidden"), $(".prev .carousel-caption").css("visibility", "hidden"), $(".next .carousel-caption").css("visibility", "hidden"), setTimeout((function () { $(".now .carousel-caption").css("visibility", "visible") }), 500), $(window).width() < 769 && setTimeout((function () { $(".now .carousel-caption").css("visibility", "visible") }), 300) })) }, 468: () => { $(document).ready((function () { function e() { var e = $("#myCarousel0"); e.find(".carousel-inner .carousel-item").length <= 1 ? (e.children(".carousel-control-prev").hide(), e.children(".carousel-control-next").hide(), e.find(".carousel-indicators").hide()) : e.find(".carousel-inner .carousel-item:first").hasClass("active") ? (e.children(".carousel-control-prev").hide(), e.children(".carousel-control-next").show(), e.children(".data-next-image-text").show()) : e.find(".carousel-inner .carousel-item:last").hasClass("active") ? (e.children(".carousel-control-prev").show(), e.children(".carousel-control-next").hide(), e.children(".data-prev-image-text").show()) : (e.children(".carousel-control-prev").show(), e.children(".carousel-control-next").show(), e.children(".data-next-image-text").show(), e.children(".data-prev-image-text").show()) } function t() { var e = $("#myCarousel1"); e.find(".carousel-inner .carousel-item").length <= 1 ? (e.children(".carousel-control-prev").hide(), e.children(".carousel-control-next").hide(), e.find(".carousel-indicators").hide()) : e.find(".carousel-inner .carousel-item:first").hasClass("active") ? (e.children(".carousel-control-prev").hide(), e.children(".carousel-control-next").show(), e.children(".data-next-image-text").show()) : e.find(".carousel-inner .carousel-item:last").hasClass("active") ? (e.children(".carousel-control-prev").show(), e.children(".carousel-control-next").hide(), e.children(".data-prev-image-text").show()) : (e.children(".carousel-control-prev").show(), e.children(".carousel-control-next").show(), e.children(".data-next-image-text").show(), e.children(".data-prev-image-text").show()) } function s() { var e = $("#myCarousel2"); e.find(".carousel-inner .carousel-item").length <= 1 ? (e.children(".carousel-control-prev").hide(), e.children(".carousel-control-next").hide(), e.find(".carousel-indicators").hide()) : e.find(".carousel-inner .carousel-item:first").hasClass("active") ? (e.children(".carousel-control-prev").hide(), e.children(".carousel-control-next").show(), e.children(".data-next-image-text").show()) : e.find(".carousel-inner .carousel-item:last").hasClass("active") ? (e.children(".carousel-control-prev").show(), e.children(".carousel-control-next").hide(), e.children(".data-prev-image-text").show()) : (e.children(".carousel-control-prev").show(), e.children(".carousel-control-next").show(), e.children(".data-next-image-text").show(), e.children(".data-prev-image-text").show()) } function a() { var e = $("#myCarousel3"); e.find(".carousel-inner .carousel-item").length <= 1 ? (e.children(".carousel-control-prev").hide(), e.children(".carousel-control-next").hide(), e.find(".carousel-indicators").hide()) : e.find(".carousel-inner .carousel-item:first").hasClass("active") ? (e.children(".carousel-control-prev").hide(), e.children(".carousel-control-next").show(), e.children(".data-next-image-text").show()) : e.find(".carousel-inner .carousel-item:last").hasClass("active") ? (e.children(".carousel-control-prev").show(), e.children(".carousel-control-next").hide(), e.children(".data-prev-image-text").show()) : (e.children(".carousel-control-prev").show(), e.children(".carousel-control-next").show(), e.children(".data-next-image-text").show(), e.children(".data-prev-image-text").show()) } function i() { var e = $("#myCarousel4"); e.find(".carousel-inner .carousel-item").length <= 1 ? (e.children(".carousel-control-prev").hide(), e.children(".carousel-control-next").hide(), e.find(".carousel-indicators").hide()) : e.find(".carousel-inner .carousel-item:first").hasClass("active") ? (e.children(".carousel-control-prev").hide(), e.children(".carousel-control-next").show(), e.children(".data-next-image-text").show()) : e.find(".carousel-inner .carousel-item:last").hasClass("active") ? (e.children(".carousel-control-prev").show(), e.children(".carousel-control-next").hide(), e.children(".data-prev-image-text").show()) : (e.children(".carousel-control-prev").show(), e.children(".carousel-control-next").show(), e.children(".data-next-image-text").show(), e.children(".data-prev-image-text").show()) } function n() { var e = $("#productFeature"); e.find(".carousel-inner .carousel-item:first").hasClass("active") ? (e.children(".carousel-control-prev").show(), e.children(".carousel-control-next").show(), e.find(".col-4:first-child").css("visibility", "visible"), e.find(".col-4 .carousel-caption").css("visibility", "hidden"), e.find(".col-4:nth-child(2n) .carousel-caption").css("visibility", "visible")) : e.find(".carousel-inner .carousel-item:last").hasClass("active") ? (e.children(".carousel-control-prev").show(), e.children(".carousel-control-next").show(), e.find(".col-4:last-child").css("visibility", "visible"), e.find(".col-4 .carousel-caption").css("visibility", "hidden"), e.find(".col-4:nth-child(2n) .carousel-caption").css("visibility", "visible")) : (e.children(".carousel-control-prev").show(), e.children(".carousel-control-next").show(), e.find(".col-4").css("visibility", "visible"), e.find(".col-4 .carousel-caption").css("visibility", "hidden"), e.find(".col-4:nth-child(2n) .carousel-caption").css("visibility", "visible")) } $("#myCarousel0").on("slid", "", e), $("#myCarousel0").on("slid.bs.carousel", "", e), $(document).ready((function () { e() })), $("#myCarousel1").on("slid", "", t), $("#myCarousel1").on("slid.bs.carousel", "", t), $(document).ready((function () { t() })), $("#myCarousel2").on("slid", "", s), $("#myCarousel2").on("slid.bs.carousel", "", s), $(document).ready((function () { s() })), $("#myCarousel3").on("slid", "", a), $("#myCarousel3").on("slid.bs.carousel", "", a), $(document).ready((function () { a() })), $("#myCarousel4").on("slid", "", i), $("#myCarousel4").on("slid.bs.carousel", "", i), $(document).ready((function () { i() })), $("#productFeature").on("slid", "", n), $("#productFeature").on("slid.bs.carousel", "", n), $(document).ready((function () { n() })) })), $((function () { $(".dropdown-menu a").on("click", (function () { $(".btn:first-child", this).text($(this).text()), $(".btn:first-child", this).val($(this).text()) })) })), $(document).ready((function () { $(".dropdown-menu a").on("click", (function (e) { e.preventDefault(); var t = $(this).attr("href"); $(t).siblings().removeClass("active show").css("display", "none"), $(t).addClass("active show").css("display", "block") })) })), $(".dropdown-menu a").click((function () { let e = $(this).text(); setTimeout((function () { $("#dropdownMenuButton").empty().prepend("Models: " + e) })) })), $(document).ready((function () { var e = $(".dropdown-menu").children(".active").text(); $("#dropdownMenuButton").append(e) })), $(document).ready((function () { var e = $("#myDropdown").children().first().text(); $(".dropbtn").text(e), $(".dropbtn").append("<i class='fas fa-angle-down'></i>"); var t = $(".sub-tabs #myDropdown").children().first().text(); $(".sub-tabs .dropbtn").text(t), $(".sub-tabs .dropbtn").append("<i class='fas fa-angle-down'></i>") })); var e = $(".video-carousel"); e.find(".carousel-inner .carousel-item").length <= 1 && e.find(".carousel-indicators").hide(), $(window).on("load", (function () { var e = new URL(window.location); if (new URLSearchParams(e.search), e.search) { var t = function (e) { var t, s, a = window.location.search.substring(1).split("&"); for (s = 0; s < a.length; s++)if ("vehicle-type" === (t = a[s].split("="))[0]) return void 0 === t[1] || decodeURIComponent(t[1]); return !1 }(); let e = document.querySelectorAll(".product-list .nav-link"); for (let a = 0; a < e.length; a++) { var s = e[a].getAttribute("href"); t == s.substr(1, s.length) && $('.product-list a.nav-link[href="#' + t + '"]').trigger("click") } } })) }, 848: () => { let e = document.querySelector(".video-carousel"); if (e) { let s = e.querySelector(".carousel-videoiframe"), a = e.querySelectorAll(".carousel-item > .carousel-caption"); for (let e of a) null !== e.querySelector(".play") && e.querySelector(".play").addEventListener("click", (a => { let i; i = e.querySelector(".play") !== a.target ? a.target.closest(".play").dataset.videoSrc : a.target.dataset.videoSrc; let n = s.querySelector(".video"); n.setAttribute("src", "https://www.youtube.com/embed/" + i + "?autoplay=1&showinfo=0&controls=0"), n.parentElement.classList.add("show"), s.querySelector(".close").addEventListener("click", (() => { t(n) })) })) } function t(e) { e.setAttribute("src", ""), e.parentElement.classList.remove("show") } class s { constructor(e) { this.cta = e.querySelector(".share-link"), this.cta && (this.dataShare = this.cta.getAttribute("data-share-link"), this.clip = document.querySelector(".share-message")), this.initmediaView() } initmediaView() { this.cta && this.cta.addEventListener("click", (() => { var e = document.createElement("input"); document.body.appendChild(e), e.value = this.dataShare, console.log(e.value), e.select(), document.execCommand("copy"), document.body.removeChild(e), null != this.clip && (this.clip.style.bottom = "20px", window.setTimeout((() => { this.clip.style.bottom = "-90px" }), 2e3)) })) } } window.addEventListener("DOMContentLoaded", (() => { const e = [...document.querySelectorAll(".video_wrapper")]; e.length && e.forEach((e => { new s(e) })) })) } }, t = {}; function s(a) { var i = t[a]; if (void 0 !== i) return i.exports; var n = t[a] = { exports: {} }; return e[a](n, n.exports, s), n.exports } (() => { "use strict"; var e, t; s(968), s(460), s(468), s(813), s(132), s(876), s(714), s(774), e = void 0, t = function () { function e(e) { return null !== e && "object" == typeof e && "constructor" in e && e.constructor === Object } function t(s = {}, a = {}) { Object.keys(a).forEach((i => { void 0 === s[i] ? s[i] = a[i] : e(a[i]) && e(s[i]) && Object.keys(a[i]).length > 0 && t(s[i], a[i]) })) } const s = { body: {}, addEventListener() { }, removeEventListener() { }, activeElement: { blur() { }, nodeName: "" }, querySelector: () => null, querySelectorAll: () => [], getElementById: () => null, createEvent: () => ({ initEvent() { } }), createElement: () => ({ children: [], childNodes: [], style: {}, setAttribute() { }, getElementsByTagName: () => [] }), createElementNS: () => ({}), importNode: () => null, location: { hash: "", host: "", hostname: "", href: "", origin: "", pathname: "", protocol: "", search: "" } }; function a() { const e = "undefined" != typeof document ? document : {}; return t(e, s), e } const i = { document: s, navigator: { userAgent: "" }, location: { hash: "", host: "", hostname: "", href: "", origin: "", pathname: "", protocol: "", search: "" }, history: { replaceState() { }, pushState() { }, go() { }, back() { } }, CustomEvent: function () { return this }, addEventListener() { }, removeEventListener() { }, getComputedStyle: () => ({ getPropertyValue: () => "" }), Image() { }, Date() { }, screen: {}, setTimeout() { }, clearTimeout() { }, matchMedia: () => ({}), requestAnimationFrame: e => "undefined" == typeof setTimeout ? (e(), null) : setTimeout(e, 0), cancelAnimationFrame(e) { "undefined" != typeof setTimeout && clearTimeout(e) } }; function n() { const e = "undefined" != typeof window ? window : {}; return t(e, i), e } class r extends Array { constructor(e) { super(...e || []), function (e) { const t = e.__proto__; Object.defineProperty(e, "__proto__", { get: () => t, set(e) { t.__proto__ = e } }) }(this) } } function o(e = []) { const t = []; return e.forEach((e => { Array.isArray(e) ? t.push(...o(e)) : t.push(e) })), t } function l(e, t) { return Array.prototype.filter.call(e, t) } function d(e, t) { const s = n(), i = a(); let o = []; if (!t && e instanceof r) return e; if (!e) return new r(o); if ("string" == typeof e) { const s = e.trim(); if (s.indexOf("<") >= 0 && s.indexOf(">") >= 0) { let e = "div"; 0 === s.indexOf("<li") && (e = "ul"), 0 === s.indexOf("<tr") && (e = "tbody"), 0 !== s.indexOf("<td") && 0 !== s.indexOf("<th") || (e = "tr"), 0 === s.indexOf("<tbody") && (e = "table"), 0 === s.indexOf("<option") && (e = "select"); const t = i.createElement(e); t.innerHTML = s; for (let e = 0; e < t.childNodes.length; e += 1)o.push(t.childNodes[e]) } else o = function (e, t) { if ("string" != typeof e) return [e]; const s = [], a = t.querySelectorAll(e); for (let e = 0; e < a.length; e += 1)s.push(a[e]); return s }(e.trim(), t || i) } else if (e.nodeType || e === s || e === i) o.push(e); else if (Array.isArray(e)) { if (e instanceof r) return e; o = e } return new r(function (e) { const t = []; for (let s = 0; s < e.length; s += 1)-1 === t.indexOf(e[s]) && t.push(e[s]); return t }(o)) } d.fn = r.prototype; const c = { addClass: function (...e) { const t = o(e.map((e => e.split(" ")))); return this.forEach((e => { e.classList.add(...t) })), this }, removeClass: function (...e) { const t = o(e.map((e => e.split(" ")))); return this.forEach((e => { e.classList.remove(...t) })), this }, hasClass: function (...e) { const t = o(e.map((e => e.split(" ")))); return l(this, (e => t.filter((t => e.classList.contains(t))).length > 0)).length > 0 }, toggleClass: function (...e) { const t = o(e.map((e => e.split(" ")))); this.forEach((e => { t.forEach((t => { e.classList.toggle(t) })) })) }, attr: function (e, t) { if (1 === arguments.length && "string" == typeof e) return this[0] ? this[0].getAttribute(e) : void 0; for (let s = 0; s < this.length; s += 1)if (2 === arguments.length) this[s].setAttribute(e, t); else for (const t in e) this[s][t] = e[t], this[s].setAttribute(t, e[t]); return this }, removeAttr: function (e) { for (let t = 0; t < this.length; t += 1)this[t].removeAttribute(e); return this }, transform: function (e) { for (let t = 0; t < this.length; t += 1)this[t].style.transform = e; return this }, transition: function (e) { for (let t = 0; t < this.length; t += 1)this[t].style.transitionDuration = "string" != typeof e ? `${e}ms` : e; return this }, on: function (...e) { let [t, s, a, i] = e; function n(e) { const t = e.target; if (!t) return; const i = e.target.dom7EventData || []; if (i.indexOf(e) < 0 && i.unshift(e), d(t).is(s)) a.apply(t, i); else { const e = d(t).parents(); for (let t = 0; t < e.length; t += 1)d(e[t]).is(s) && a.apply(e[t], i) } } function r(e) { const t = e && e.target && e.target.dom7EventData || []; t.indexOf(e) < 0 && t.unshift(e), a.apply(this, t) } "function" == typeof e[1] && ([t, a, i] = e, s = void 0), i || (i = !1); const o = t.split(" "); let l; for (let e = 0; e < this.length; e += 1) { const t = this[e]; if (s) for (l = 0; l < o.length; l += 1) { const e = o[l]; t.dom7LiveListeners || (t.dom7LiveListeners = {}), t.dom7LiveListeners[e] || (t.dom7LiveListeners[e] = []), t.dom7LiveListeners[e].push({ listener: a, proxyListener: n }), t.addEventListener(e, n, i) } else for (l = 0; l < o.length; l += 1) { const e = o[l]; t.dom7Listeners || (t.dom7Listeners = {}), t.dom7Listeners[e] || (t.dom7Listeners[e] = []), t.dom7Listeners[e].push({ listener: a, proxyListener: r }), t.addEventListener(e, r, i) } } return this }, off: function (...e) { let [t, s, a, i] = e; "function" == typeof e[1] && ([t, a, i] = e, s = void 0), i || (i = !1); const n = t.split(" "); for (let e = 0; e < n.length; e += 1) { const t = n[e]; for (let e = 0; e < this.length; e += 1) { const n = this[e]; let r; if (!s && n.dom7Listeners ? r = n.dom7Listeners[t] : s && n.dom7LiveListeners && (r = n.dom7LiveListeners[t]), r && r.length) for (let e = r.length - 1; e >= 0; e -= 1) { const s = r[e]; a && s.listener === a || a && s.listener && s.listener.dom7proxy && s.listener.dom7proxy === a ? (n.removeEventListener(t, s.proxyListener, i), r.splice(e, 1)) : a || (n.removeEventListener(t, s.proxyListener, i), r.splice(e, 1)) } } } return this }, trigger: function (...e) { const t = n(), s = e[0].split(" "), a = e[1]; for (let i = 0; i < s.length; i += 1) { const n = s[i]; for (let s = 0; s < this.length; s += 1) { const i = this[s]; if (t.CustomEvent) { const s = new t.CustomEvent(n, { detail: a, bubbles: !0, cancelable: !0 }); i.dom7EventData = e.filter(((e, t) => t > 0)), i.dispatchEvent(s), i.dom7EventData = [], delete i.dom7EventData } } } return this }, transitionEnd: function (e) { const t = this; return e && t.on("transitionend", (function s(a) { a.target === this && (e.call(this, a), t.off("transitionend", s)) })), this }, outerWidth: function (e) { if (this.length > 0) { if (e) { const e = this.styles(); return this[0].offsetWidth + parseFloat(e.getPropertyValue("margin-right")) + parseFloat(e.getPropertyValue("margin-left")) } return this[0].offsetWidth } return null }, outerHeight: function (e) { if (this.length > 0) { if (e) { const e = this.styles(); return this[0].offsetHeight + parseFloat(e.getPropertyValue("margin-top")) + parseFloat(e.getPropertyValue("margin-bottom")) } return this[0].offsetHeight } return null }, styles: function () { const e = n(); return this[0] ? e.getComputedStyle(this[0], null) : {} }, offset: function () { if (this.length > 0) { const e = n(), t = a(), s = this[0], i = s.getBoundingClientRect(), r = t.body, o = s.clientTop || r.clientTop || 0, l = s.clientLeft || r.clientLeft || 0, d = s === e ? e.scrollY : s.scrollTop, c = s === e ? e.scrollX : s.scrollLeft; return { top: i.top + d - o, left: i.left + c - l } } return null }, css: function (e, t) { const s = n(); let a; if (1 === arguments.length) { if ("string" != typeof e) { for (a = 0; a < this.length; a += 1)for (const t in e) this[a].style[t] = e[t]; return this } if (this[0]) return s.getComputedStyle(this[0], null).getPropertyValue(e) } if (2 === arguments.length && "string" == typeof e) { for (a = 0; a < this.length; a += 1)this[a].style[e] = t; return this } return this }, each: function (e) { return e ? (this.forEach(((t, s) => { e.apply(t, [t, s]) })), this) : this }, html: function (e) { if (void 0 === e) return this[0] ? this[0].innerHTML : null; for (let t = 0; t < this.length; t += 1)this[t].innerHTML = e; return this }, text: function (e) { if (void 0 === e) return this[0] ? this[0].textContent.trim() : null; for (let t = 0; t < this.length; t += 1)this[t].textContent = e; return this }, is: function (e) { const t = n(), s = a(), i = this[0]; let o, l; if (!i || void 0 === e) return !1; if ("string" == typeof e) { if (i.matches) return i.matches(e); if (i.webkitMatchesSelector) return i.webkitMatchesSelector(e); if (i.msMatchesSelector) return i.msMatchesSelector(e); for (o = d(e), l = 0; l < o.length; l += 1)if (o[l] === i) return !0; return !1 } if (e === s) return i === s; if (e === t) return i === t; if (e.nodeType || e instanceof r) { for (o = e.nodeType ? [e] : e, l = 0; l < o.length; l += 1)if (o[l] === i) return !0; return !1 } return !1 }, index: function () { let e, t = this[0]; if (t) { for (e = 0; null !== (t = t.previousSibling);)1 === t.nodeType && (e += 1); return e } }, eq: function (e) { if (void 0 === e) return this; const t = this.length; if (e > t - 1) return d([]); if (e < 0) { const s = t + e; return d(s < 0 ? [] : [this[s]]) } return d([this[e]]) }, append: function (...e) { let t; const s = a(); for (let a = 0; a < e.length; a += 1) { t = e[a]; for (let e = 0; e < this.length; e += 1)if ("string" == typeof t) { const a = s.createElement("div"); for (a.innerHTML = t; a.firstChild;)this[e].appendChild(a.firstChild) } else if (t instanceof r) for (let s = 0; s < t.length; s += 1)this[e].appendChild(t[s]); else this[e].appendChild(t) } return this }, prepend: function (e) { const t = a(); let s, i; for (s = 0; s < this.length; s += 1)if ("string" == typeof e) { const a = t.createElement("div"); for (a.innerHTML = e, i = a.childNodes.length - 1; i >= 0; i -= 1)this[s].insertBefore(a.childNodes[i], this[s].childNodes[0]) } else if (e instanceof r) for (i = 0; i < e.length; i += 1)this[s].insertBefore(e[i], this[s].childNodes[0]); else this[s].insertBefore(e, this[s].childNodes[0]); return this }, next: function (e) { return this.length > 0 ? e ? this[0].nextElementSibling && d(this[0].nextElementSibling).is(e) ? d([this[0].nextElementSibling]) : d([]) : this[0].nextElementSibling ? d([this[0].nextElementSibling]) : d([]) : d([]) }, nextAll: function (e) { const t = []; let s = this[0]; if (!s) return d([]); for (; s.nextElementSibling;) { const a = s.nextElementSibling; e ? d(a).is(e) && t.push(a) : t.push(a), s = a } return d(t) }, prev: function (e) { if (this.length > 0) { const t = this[0]; return e ? t.previousElementSibling && d(t.previousElementSibling).is(e) ? d([t.previousElementSibling]) : d([]) : t.previousElementSibling ? d([t.previousElementSibling]) : d([]) } return d([]) }, prevAll: function (e) { const t = []; let s = this[0]; if (!s) return d([]); for (; s.previousElementSibling;) { const a = s.previousElementSibling; e ? d(a).is(e) && t.push(a) : t.push(a), s = a } return d(t) }, parent: function (e) { const t = []; for (let s = 0; s < this.length; s += 1)null !== this[s].parentNode && (e ? d(this[s].parentNode).is(e) && t.push(this[s].parentNode) : t.push(this[s].parentNode)); return d(t) }, parents: function (e) { const t = []; for (let s = 0; s < this.length; s += 1) { let a = this[s].parentNode; for (; a;)e ? d(a).is(e) && t.push(a) : t.push(a), a = a.parentNode } return d(t) }, closest: function (e) { let t = this; return void 0 === e ? d([]) : (t.is(e) || (t = t.parents(e).eq(0)), t) }, find: function (e) { const t = []; for (let s = 0; s < this.length; s += 1) { const a = this[s].querySelectorAll(e); for (let e = 0; e < a.length; e += 1)t.push(a[e]) } return d(t) }, children: function (e) { const t = []; for (let s = 0; s < this.length; s += 1) { const a = this[s].children; for (let s = 0; s < a.length; s += 1)e && !d(a[s]).is(e) || t.push(a[s]) } return d(t) }, filter: function (e) { return d(l(this, e)) }, remove: function () { for (let e = 0; e < this.length; e += 1)this[e].parentNode && this[e].parentNode.removeChild(this[e]); return this } }; function p(e, t = 0) { return setTimeout(e, t) } function u() { return Date.now() } function h(e, t = "x") { const s = n(); let a, i, r; const o = function (e) { const t = n(); let s; return t.getComputedStyle && (s = t.getComputedStyle(e, null)), !s && e.currentStyle && (s = e.currentStyle), s || (s = e.style), s }(e); return s.WebKitCSSMatrix ? (i = o.transform || o.webkitTransform, i.split(",").length > 6 && (i = i.split(", ").map((e => e.replace(",", "."))).join(", ")), r = new s.WebKitCSSMatrix("none" === i ? "" : i)) : (r = o.MozTransform || o.OTransform || o.MsTransform || o.msTransform || o.transform || o.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), a = r.toString().split(",")), "x" === t && (i = s.WebKitCSSMatrix ? r.m41 : 16 === a.length ? parseFloat(a[12]) : parseFloat(a[4])), "y" === t && (i = s.WebKitCSSMatrix ? r.m42 : 16 === a.length ? parseFloat(a[13]) : parseFloat(a[5])), i || 0 } function m(e) { return "object" == typeof e && null !== e && e.constructor && "Object" === Object.prototype.toString.call(e).slice(8, -1) } function f(...e) { const t = Object(e[0]), s = ["__proto__", "constructor", "prototype"]; for (let i = 1; i < e.length; i += 1) { const n = e[i]; if (null != n && (a = n, !("undefined" != typeof window && void 0 !== window.HTMLElement ? a instanceof HTMLElement : a && (1 === a.nodeType || 11 === a.nodeType)))) { const e = Object.keys(Object(n)).filter((e => s.indexOf(e) < 0)); for (let s = 0, a = e.length; s < a; s += 1) { const a = e[s], i = Object.getOwnPropertyDescriptor(n, a); void 0 !== i && i.enumerable && (m(t[a]) && m(n[a]) ? n[a].__swiper__ ? t[a] = n[a] : f(t[a], n[a]) : !m(t[a]) && m(n[a]) ? (t[a] = {}, n[a].__swiper__ ? t[a] = n[a] : f(t[a], n[a])) : t[a] = n[a]) } } } var a; return t } function g(e, t, s) { e.style.setProperty(t, s) } function v({ swiper: e, targetPosition: t, side: s }) { const a = n(), i = -e.translate; let r, o = null; const l = e.params.speed; e.wrapperEl.style.scrollSnapType = "none", a.cancelAnimationFrame(e.cssModeFrameID); const d = t > i ? "next" : "prev", c = (e, t) => "next" === d && e >= t || "prev" === d && e <= t, p = () => { r = (new Date).getTime(), null === o && (o = r); const n = Math.max(Math.min((r - o) / l, 1), 0), d = .5 - Math.cos(n * Math.PI) / 2; let u = i + d * (t - i); if (c(u, t) && (u = t), e.wrapperEl.scrollTo({ [s]: u }), c(u, t)) return e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.scrollSnapType = "", setTimeout((() => { e.wrapperEl.style.overflow = "", e.wrapperEl.scrollTo({ [s]: u }) })), void a.cancelAnimationFrame(e.cssModeFrameID); e.cssModeFrameID = a.requestAnimationFrame(p) }; p() } let w, b, y; function $() { return w || (w = function () { const e = n(), t = a(); return { smoothScroll: t.documentElement && "scrollBehavior" in t.documentElement.style, touch: !!("ontouchstart" in e || e.DocumentTouch && t instanceof e.DocumentTouch), passiveListener: function () { let t = !1; try { const s = Object.defineProperty({}, "passive", { get() { t = !0 } }); e.addEventListener("testPassiveListener", null, s) } catch (e) { } return t }(), gestures: "ongesturestart" in e } }()), w } Object.keys(c).forEach((e => { Object.defineProperty(d.fn, e, { value: c[e], writable: !0 }) })); var x = { on(e, t, s) { const a = this; if ("function" != typeof t) return a; const i = s ? "unshift" : "push"; return e.split(" ").forEach((e => { a.eventsListeners[e] || (a.eventsListeners[e] = []), a.eventsListeners[e][i](t) })), a }, once(e, t, s) { const a = this; if ("function" != typeof t) return a; function i(...s) { a.off(e, i), i.__emitterProxy && delete i.__emitterProxy, t.apply(a, s) } return i.__emitterProxy = t, a.on(e, i, s) }, onAny(e, t) { const s = this; if ("function" != typeof e) return s; const a = t ? "unshift" : "push"; return s.eventsAnyListeners.indexOf(e) < 0 && s.eventsAnyListeners[a](e), s }, offAny(e) { const t = this; if (!t.eventsAnyListeners) return t; const s = t.eventsAnyListeners.indexOf(e); return s >= 0 && t.eventsAnyListeners.splice(s, 1), t }, off(e, t) { const s = this; return s.eventsListeners ? (e.split(" ").forEach((e => { void 0 === t ? s.eventsListeners[e] = [] : s.eventsListeners[e] && s.eventsListeners[e].forEach(((a, i) => { (a === t || a.__emitterProxy && a.__emitterProxy === t) && s.eventsListeners[e].splice(i, 1) })) })), s) : s }, emit(...e) { const t = this; if (!t.eventsListeners) return t; let s, a, i; return "string" == typeof e[0] || Array.isArray(e[0]) ? (s = e[0], a = e.slice(1, e.length), i = t) : (s = e[0].events, a = e[0].data, i = e[0].context || t), a.unshift(i), (Array.isArray(s) ? s : s.split(" ")).forEach((e => { t.eventsAnyListeners && t.eventsAnyListeners.length && t.eventsAnyListeners.forEach((t => { t.apply(i, [e, ...a]) })), t.eventsListeners && t.eventsListeners[e] && t.eventsListeners[e].forEach((e => { e.apply(i, a) })) })), t } }, C = { updateSize: function () { const e = this; let t, s; const a = e.$el; t = void 0 !== e.params.width && null !== e.params.width ? e.params.width : a[0].clientWidth, s = void 0 !== e.params.height && null !== e.params.height ? e.params.height : a[0].clientHeight, 0 === t && e.isHorizontal() || 0 === s && e.isVertical() || (t = t - parseInt(a.css("padding-left") || 0, 10) - parseInt(a.css("padding-right") || 0, 10), s = s - parseInt(a.css("padding-top") || 0, 10) - parseInt(a.css("padding-bottom") || 0, 10), Number.isNaN(t) && (t = 0), Number.isNaN(s) && (s = 0), Object.assign(e, { width: t, height: s, size: e.isHorizontal() ? t : s })) }, updateSlides: function () { const e = this; function t(t) { return e.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 s(e, s) { return parseFloat(e.getPropertyValue(t(s)) || 0) } const a = e.params, { $wrapperEl: i, size: n, rtlTranslate: r, wrongRTL: o } = e, l = e.virtual && a.virtual.enabled, d = l ? e.virtual.slides.length : e.slides.length, c = i.children(`.${e.params.slideClass}`), p = l ? e.virtual.slides.length : c.length; let u = []; const h = [], m = []; let f = a.slidesOffsetBefore; "function" == typeof f && (f = a.slidesOffsetBefore.call(e)); let v = a.slidesOffsetAfter; "function" == typeof v && (v = a.slidesOffsetAfter.call(e)); const w = e.snapGrid.length, b = e.slidesGrid.length; let y = a.spaceBetween, $ = -f, x = 0, C = 0; if (void 0 === n) return; "string" == typeof y && y.indexOf("%") >= 0 && (y = parseFloat(y.replace("%", "")) / 100 * n), e.virtualSize = -y, r ? c.css({ marginLeft: "", marginBottom: "", marginTop: "" }) : c.css({ marginRight: "", marginBottom: "", marginTop: "" }), a.centeredSlides && a.cssMode && (g(e.wrapperEl, "--swiper-centered-offset-before", ""), g(e.wrapperEl, "--swiper-centered-offset-after", "")); const E = a.grid && a.grid.rows > 1 && e.grid; let S; E && e.grid.initSlides(p); const T = "auto" === a.slidesPerView && a.breakpoints && Object.keys(a.breakpoints).filter((e => void 0 !== a.breakpoints[e].slidesPerView)).length > 0; for (let i = 0; i < p; i += 1) { S = 0; const r = c.eq(i); if (E && e.grid.updateSlide(i, r, p, t), "none" !== r.css("display")) { if ("auto" === a.slidesPerView) { T && (c[i].style[t("width")] = ""); const n = getComputedStyle(r[0]), o = r[0].style.transform, l = r[0].style.webkitTransform; if (o && (r[0].style.transform = "none"), l && (r[0].style.webkitTransform = "none"), a.roundLengths) S = e.isHorizontal() ? r.outerWidth(!0) : r.outerHeight(!0); else { const e = s(n, "width"), t = s(n, "padding-left"), a = s(n, "padding-right"), i = s(n, "margin-left"), o = s(n, "margin-right"), l = n.getPropertyValue("box-sizing"); if (l && "border-box" === l) S = e + i + o; else { const { clientWidth: s, offsetWidth: n } = r[0]; S = e + t + a + i + o + (n - s) } } o && (r[0].style.transform = o), l && (r[0].style.webkitTransform = l), a.roundLengths && (S = Math.floor(S)) } else S = (n - (a.slidesPerView - 1) * y) / a.slidesPerView, a.roundLengths && (S = Math.floor(S)), c[i] && (c[i].style[t("width")] = `${S}px`); c[i] && (c[i].swiperSlideSize = S), m.push(S), a.centeredSlides ? ($ = $ + S / 2 + x / 2 + y, 0 === x && 0 !== i && ($ = $ - n / 2 - y), 0 === i && ($ = $ - n / 2 - y), Math.abs($) < .001 && ($ = 0), a.roundLengths && ($ = Math.floor($)), C % a.slidesPerGroup == 0 && u.push($), h.push($)) : (a.roundLengths && ($ = Math.floor($)), (C - Math.min(e.params.slidesPerGroupSkip, C)) % e.params.slidesPerGroup == 0 && u.push($), h.push($), $ = $ + S + y), e.virtualSize += S + y, x = S, C += 1 } } if (e.virtualSize = Math.max(e.virtualSize, n) + v, r && o && ("slide" === a.effect || "coverflow" === a.effect) && i.css({ width: `${e.virtualSize + a.spaceBetween}px` }), a.setWrapperSize && i.css({ [t("width")]: `${e.virtualSize + a.spaceBetween}px` }), E && e.grid.updateWrapperSize(S, u, t), !a.centeredSlides) { const t = []; for (let s = 0; s < u.length; s += 1) { let i = u[s]; a.roundLengths && (i = Math.floor(i)), u[s] <= e.virtualSize - n && t.push(i) } u = t, Math.floor(e.virtualSize - n) - Math.floor(u[u.length - 1]) > 1 && u.push(e.virtualSize - n) } if (0 === u.length && (u = [0]), 0 !== a.spaceBetween) { const s = e.isHorizontal() && r ? "marginLeft" : t("marginRight"); c.filter(((e, t) => !a.cssMode || t !== c.length - 1)).css({ [s]: `${y}px` }) } if (a.centeredSlides && a.centeredSlidesBounds) { let e = 0; m.forEach((t => { e += t + (a.spaceBetween ? a.spaceBetween : 0) })), e -= a.spaceBetween; const t = e - n; u = u.map((e => e < 0 ? -f : e > t ? t + v : e)) } if (a.centerInsufficientSlides) { let e = 0; if (m.forEach((t => { e += t + (a.spaceBetween ? a.spaceBetween : 0) })), e -= a.spaceBetween, e < n) { const t = (n - e) / 2; u.forEach(((e, s) => { u[s] = e - t })), h.forEach(((e, s) => { h[s] = e + t })) } } if (Object.assign(e, { slides: c, snapGrid: u, slidesGrid: h, slidesSizesGrid: m }), a.centeredSlides && a.cssMode && !a.centeredSlidesBounds) { g(e.wrapperEl, "--swiper-centered-offset-before", -u[0] + "px"), g(e.wrapperEl, "--swiper-centered-offset-after", e.size / 2 - m[m.length - 1] / 2 + "px"); const t = -e.snapGrid[0], s = -e.slidesGrid[0]; e.snapGrid = e.snapGrid.map((e => e + t)), e.slidesGrid = e.slidesGrid.map((e => e + s)) } p !== d && e.emit("slidesLengthChange"), u.length !== w && (e.params.watchOverflow && e.checkOverflow(), e.emit("snapGridLengthChange")), h.length !== b && e.emit("slidesGridLengthChange"), a.watchSlidesProgress && e.updateSlidesOffset() }, updateAutoHeight: function (e) { const t = this, s = [], a = t.virtual && t.params.virtual.enabled; let i, n = 0; "number" == typeof e ? t.setTransition(e) : !0 === e && t.setTransition(t.params.speed); const r = e => a ? t.slides.filter((t => parseInt(t.getAttribute("data-swiper-slide-index"), 10) === e))[0] : t.slides.eq(e)[0]; if ("auto" !== t.params.slidesPerView && t.params.slidesPerView > 1) if (t.params.centeredSlides) t.visibleSlides.each((e => { s.push(e) })); else for (i = 0; i < Math.ceil(t.params.slidesPerView); i += 1) { const e = t.activeIndex + i; if (e > t.slides.length && !a) break; s.push(r(e)) } else s.push(r(t.activeIndex)); for (i = 0; i < s.length; i += 1)if (void 0 !== s[i]) { const e = s[i].offsetHeight; n = e > n ? e : n } n && t.$wrapperEl.css("height", `${n}px`) }, updateSlidesOffset: function () { const e = this, t = e.slides; for (let s = 0; s < t.length; s += 1)t[s].swiperSlideOffset = e.isHorizontal() ? t[s].offsetLeft : t[s].offsetTop }, updateSlidesProgress: function (e = this && this.translate || 0) { const t = this, s = t.params, { slides: a, rtlTranslate: i, snapGrid: n } = t; if (0 === a.length) return; void 0 === a[0].swiperSlideOffset && t.updateSlidesOffset(); let r = -e; i && (r = e), a.removeClass(s.slideVisibleClass), t.visibleSlidesIndexes = [], t.visibleSlides = []; for (let e = 0; e < a.length; e += 1) { const o = a[e]; let l = o.swiperSlideOffset; s.cssMode && s.centeredSlides && (l -= a[0].swiperSlideOffset); const d = (r + (s.centeredSlides ? t.minTranslate() : 0) - l) / (o.swiperSlideSize + s.spaceBetween), c = (r - n[0] + (s.centeredSlides ? t.minTranslate() : 0) - l) / (o.swiperSlideSize + s.spaceBetween), p = -(r - l), u = p + t.slidesSizesGrid[e]; (p >= 0 && p < t.size - 1 || u > 1 && u <= t.size || p <= 0 && u >= t.size) && (t.visibleSlides.push(o), t.visibleSlidesIndexes.push(e), a.eq(e).addClass(s.slideVisibleClass)), o.progress = i ? -d : d, o.originalProgress = i ? -c : c } t.visibleSlides = d(t.visibleSlides) }, updateProgress: function (e) { const t = this; if (void 0 === e) { const s = t.rtlTranslate ? -1 : 1; e = t && t.translate && t.translate * s || 0 } const s = t.params, a = t.maxTranslate() - t.minTranslate(); let { progress: i, isBeginning: n, isEnd: r } = t; const o = n, l = r; 0 === a ? (i = 0, n = !0, r = !0) : (i = (e - t.minTranslate()) / a, n = i <= 0, r = i >= 1), Object.assign(t, { progress: i, isBeginning: n, isEnd: r }), (s.watchSlidesProgress || s.centeredSlides && s.autoHeight) && t.updateSlidesProgress(e), n && !o && t.emit("reachBeginning toEdge"), r && !l && t.emit("reachEnd toEdge"), (o && !n || l && !r) && t.emit("fromEdge"), t.emit("progress", i) }, updateSlidesClasses: function () { const e = this, { slides: t, params: s, $wrapperEl: a, activeIndex: i, realIndex: n } = e, r = e.virtual && s.virtual.enabled; let o; t.removeClass(`${s.slideActiveClass} ${s.slideNextClass} ${s.slidePrevClass} ${s.slideDuplicateActiveClass} ${s.slideDuplicateNextClass} ${s.slideDuplicatePrevClass}`), o = r ? e.$wrapperEl.find(`.${s.slideClass}[data-swiper-slide-index="${i}"]`) : t.eq(i), o.addClass(s.slideActiveClass), s.loop && (o.hasClass(s.slideDuplicateClass) ? a.children(`.${s.slideClass}:not(.${s.slideDuplicateClass})[data-swiper-slide-index="${n}"]`).addClass(s.slideDuplicateActiveClass) : a.children(`.${s.slideClass}.${s.slideDuplicateClass}[data-swiper-slide-index="${n}"]`).addClass(s.slideDuplicateActiveClass)); let l = o.nextAll(`.${s.slideClass}`).eq(0).addClass(s.slideNextClass); s.loop && 0 === l.length && (l = t.eq(0), l.addClass(s.slideNextClass)); let d = o.prevAll(`.${s.slideClass}`).eq(0).addClass(s.slidePrevClass); s.loop && 0 === d.length && (d = t.eq(-1), d.addClass(s.slidePrevClass)), s.loop && (l.hasClass(s.slideDuplicateClass) ? a.children(`.${s.slideClass}:not(.${s.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicateNextClass) : a.children(`.${s.slideClass}.${s.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicateNextClass), d.hasClass(s.slideDuplicateClass) ? a.children(`.${s.slideClass}:not(.${s.slideDuplicateClass})[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicatePrevClass) : a.children(`.${s.slideClass}.${s.slideDuplicateClass}[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicatePrevClass)), e.emitSlidesClasses() }, updateActiveIndex: function (e) { const t = this, s = t.rtlTranslate ? t.translate : -t.translate, { slidesGrid: a, snapGrid: i, params: n, activeIndex: r, realIndex: o, snapIndex: l } = t; let d, c = e; if (void 0 === c) { for (let e = 0; e < a.length; e += 1)void 0 !== a[e + 1] ? s >= a[e] && s < a[e + 1] - (a[e + 1] - a[e]) / 2 ? c = e : s >= a[e] && s < a[e + 1] && (c = e + 1) : s >= a[e] && (c = e); n.normalizeSlideIndex && (c < 0 || void 0 === c) && (c = 0) } if (i.indexOf(s) >= 0) d = i.indexOf(s); else { const e = Math.min(n.slidesPerGroupSkip, c); d = e + Math.floor((c - e) / n.slidesPerGroup) } if (d >= i.length && (d = i.length - 1), c === r) return void (d !== l && (t.snapIndex = d, t.emit("snapIndexChange"))); const p = parseInt(t.slides.eq(c).attr("data-swiper-slide-index") || c, 10); Object.assign(t, { snapIndex: d, realIndex: p, previousIndex: r, activeIndex: c }), t.emit("activeIndexChange"), t.emit("snapIndexChange"), o !== p && t.emit("realIndexChange"), (t.initialized || t.params.runCallbacksOnInit) && t.emit("slideChange") }, updateClickedSlide: function (e) { const t = this, s = t.params, a = d(e).closest(`.${s.slideClass}`)[0]; let i, n = !1; if (a) for (let e = 0; e < t.slides.length; e += 1)if (t.slides[e] === a) { n = !0, i = e; break } if (!a || !n) return t.clickedSlide = void 0, void (t.clickedIndex = void 0); t.clickedSlide = a, t.virtual && t.params.virtual.enabled ? t.clickedIndex = parseInt(d(a).attr("data-swiper-slide-index"), 10) : t.clickedIndex = i, s.slideToClickedSlide && void 0 !== t.clickedIndex && t.clickedIndex !== t.activeIndex && t.slideToClickedSlide() } }; function E({ swiper: e, runCallbacks: t, direction: s, step: a }) { const { activeIndex: i, previousIndex: n } = e; let r = s; if (r || (r = i > n ? "next" : i < n ? "prev" : "reset"), e.emit(`transition${a}`), t && i !== n) { if ("reset" === r) return void e.emit(`slideResetTransition${a}`); e.emit(`slideChangeTransition${a}`), "next" === r ? e.emit(`slideNextTransition${a}`) : e.emit(`slidePrevTransition${a}`) } } var S = { slideTo: function (e = 0, t = this.params.speed, s = !0, a, i) { if ("number" != typeof e && "string" != typeof e) throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof e}] given.`); if ("string" == typeof e) { const t = parseInt(e, 10); if (!isFinite(t)) throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`); e = t } const n = this; let r = e; r < 0 && (r = 0); const { params: o, snapGrid: l, slidesGrid: d, previousIndex: c, activeIndex: p, rtlTranslate: u, wrapperEl: h, enabled: m } = n; if (n.animating && o.preventInteractionOnTransition || !m && !a && !i) return !1; const f = Math.min(n.params.slidesPerGroupSkip, r); let g = f + Math.floor((r - f) / n.params.slidesPerGroup); g >= l.length && (g = l.length - 1), (p || o.initialSlide || 0) === (c || 0) && s && n.emit("beforeSlideChangeStart"); const w = -l[g]; if (n.updateProgress(w), o.normalizeSlideIndex) for (let e = 0; e < d.length; e += 1) { const t = -Math.floor(100 * w), s = Math.floor(100 * d[e]), a = Math.floor(100 * d[e + 1]); void 0 !== d[e + 1] ? t >= s && t < a - (a - s) / 2 ? r = e : t >= s && t < a && (r = e + 1) : t >= s && (r = e) } if (n.initialized && r !== p) { if (!n.allowSlideNext && w < n.translate && w < n.minTranslate()) return !1; if (!n.allowSlidePrev && w > n.translate && w > n.maxTranslate() && (p || 0) !== r) return !1 } let b; if (b = r > p ? "next" : r < p ? "prev" : "reset", u && -w === n.translate || !u && w === n.translate) return n.updateActiveIndex(r), o.autoHeight && n.updateAutoHeight(), n.updateSlidesClasses(), "slide" !== o.effect && n.setTranslate(w), "reset" !== b && (n.transitionStart(s, b), n.transitionEnd(s, b)), !1; if (o.cssMode) { const e = n.isHorizontal(), s = u ? w : -w; if (0 === t) { const t = n.virtual && n.params.virtual.enabled; t && (n.wrapperEl.style.scrollSnapType = "none", n._immediateVirtual = !0), h[e ? "scrollLeft" : "scrollTop"] = s, t && requestAnimationFrame((() => { n.wrapperEl.style.scrollSnapType = "", n._swiperImmediateVirtual = !1 })) } else { if (!n.support.smoothScroll) return v({ swiper: n, targetPosition: s, side: e ? "left" : "top" }), !0; h.scrollTo({ [e ? "left" : "top"]: s, behavior: "smooth" }) } return !0 } return 0 === t ? (n.setTransition(0), n.setTranslate(w), n.updateActiveIndex(r), n.updateSlidesClasses(), n.emit("beforeTransitionStart", t, a), n.transitionStart(s, b), n.transitionEnd(s, b)) : (n.setTransition(t), n.setTranslate(w), n.updateActiveIndex(r), n.updateSlidesClasses(), n.emit("beforeTransitionStart", t, a), n.transitionStart(s, b), n.animating || (n.animating = !0, n.onSlideToWrapperTransitionEnd || (n.onSlideToWrapperTransitionEnd = function (e) { n && !n.destroyed && e.target === this && (n.$wrapperEl[0].removeEventListener("transitionend", n.onSlideToWrapperTransitionEnd), n.$wrapperEl[0].removeEventListener("webkitTransitionEnd", n.onSlideToWrapperTransitionEnd), n.onSlideToWrapperTransitionEnd = null, delete n.onSlideToWrapperTransitionEnd, n.transitionEnd(s, b)) }), n.$wrapperEl[0].addEventListener("transitionend", n.onSlideToWrapperTransitionEnd), n.$wrapperEl[0].addEventListener("webkitTransitionEnd", n.onSlideToWrapperTransitionEnd))), !0 }, slideToLoop: function (e = 0, t = this.params.speed, s = !0, a) { const i = this; let n = e; return i.params.loop && (n += i.loopedSlides), i.slideTo(n, t, s, a) }, slideNext: function (e = this.params.speed, t = !0, s) { const a = this, { animating: i, enabled: n, params: r } = a; if (!n) return a; let o = r.slidesPerGroup; "auto" === r.slidesPerView && 1 === r.slidesPerGroup && r.slidesPerGroupAuto && (o = Math.max(a.slidesPerViewDynamic("current", !0), 1)); const l = a.activeIndex < r.slidesPerGroupSkip ? 1 : o; if (r.loop && void 0 !== a._clientLeft) { if (i && r.loopPreventsSlide) return !1; a.loopFix(), a._clientLeft = a.$wrapperEl[0].clientLeft } return a.slideTo(a.activeIndex + l, e, t, s) }, slidePrev: function (e = this.params.speed, t = !0, s) { const a = this, { params: i, animating: n, snapGrid: r, slidesGrid: o, rtlTranslate: l, enabled: d } = a; if (!d) return a; if (i.loop && void 0 !== a._clientLeft) { if (n && i.loopPreventsSlide) return !1; a.loopFix(), a._clientLeft = a.$wrapperEl[0].clientLeft } function c(e) { return e < 0 ? -Math.floor(Math.abs(e)) : Math.floor(e) } const p = c(l ? a.translate : -a.translate), u = r.map((e => c(e))); let h = r[u.indexOf(p) - 1]; if (void 0 === h && i.cssMode) { let e; r.forEach(((t, s) => { p >= t && (e = s) })), void 0 !== e && (h = r[e > 0 ? e - 1 : e]) } let m = 0; return void 0 !== h && (m = o.indexOf(h), m < 0 && (m = a.activeIndex - 1), "auto" === i.slidesPerView && 1 === i.slidesPerGroup && i.slidesPerGroupAuto && (m = m - a.slidesPerViewDynamic("previous", !0) + 1, m = Math.max(m, 0))), a.slideTo(m, e, t, s) }, slideReset: function (e = this.params.speed, t = !0, s) { return this.slideTo(this.activeIndex, e, t, s) }, slideToClosest: function (e = this.params.speed, t = !0, s, a = .5) { const i = this; let n = i.activeIndex; const r = Math.min(i.params.slidesPerGroupSkip, n), o = r + Math.floor((n - r) / i.params.slidesPerGroup), l = i.rtlTranslate ? i.translate : -i.translate; if (l >= i.snapGrid[o]) { const e = i.snapGrid[o]; l - e > (i.snapGrid[o + 1] - e) * a && (n += i.params.slidesPerGroup) } else { const e = i.snapGrid[o - 1]; l - e <= (i.snapGrid[o] - e) * a && (n -= i.params.slidesPerGroup) } return n = Math.max(n, 0), n = Math.min(n, i.slidesGrid.length - 1), i.slideTo(n, e, t, s) }, slideToClickedSlide: function () { const e = this, { params: t, $wrapperEl: s } = e, a = "auto" === t.slidesPerView ? e.slidesPerViewDynamic() : t.slidesPerView; let i, n = e.clickedIndex; if (t.loop) { if (e.animating) return; i = parseInt(d(e.clickedSlide).attr("data-swiper-slide-index"), 10), t.centeredSlides ? n < e.loopedSlides - a / 2 || n > e.slides.length - e.loopedSlides + a / 2 ? (e.loopFix(), n = s.children(`.${t.slideClass}[data-swiper-slide-index="${i}"]:not(.${t.slideDuplicateClass})`).eq(0).index(), p((() => { e.slideTo(n) }))) : e.slideTo(n) : n > e.slides.length - a ? (e.loopFix(), n = s.children(`.${t.slideClass}[data-swiper-slide-index="${i}"]:not(.${t.slideDuplicateClass})`).eq(0).index(), p((() => { e.slideTo(n) }))) : e.slideTo(n) } else e.slideTo(n) } }, T = { loopCreate: function () { const e = this, t = a(), { params: s, $wrapperEl: i } = e, n = i.children().length > 0 ? d(i.children()[0].parentNode) : i; n.children(`.${s.slideClass}.${s.slideDuplicateClass}`).remove(); let r = n.children(`.${s.slideClass}`); if (s.loopFillGroupWithBlank) { const e = s.slidesPerGroup - r.length % s.slidesPerGroup; if (e !== s.slidesPerGroup) { for (let a = 0; a < e; a += 1) { const e = d(t.createElement("div")).addClass(`${s.slideClass} ${s.slideBlankClass}`); n.append(e) } r = n.children(`.${s.slideClass}`) } } "auto" !== s.slidesPerView || s.loopedSlides || (s.loopedSlides = r.length), e.loopedSlides = Math.ceil(parseFloat(s.loopedSlides || s.slidesPerView, 10)), e.loopedSlides += s.loopAdditionalSlides, e.loopedSlides > r.length && (e.loopedSlides = r.length); const o = [], l = []; r.each(((t, s) => { const a = d(t); s < e.loopedSlides && l.push(t), s < r.length && s >= r.length - e.loopedSlides && o.push(t), a.attr("data-swiper-slide-index", s) })); for (let e = 0; e < l.length; e += 1)n.append(d(l[e].cloneNode(!0)).addClass(s.slideDuplicateClass)); for (let e = o.length - 1; e >= 0; e -= 1)n.prepend(d(o[e].cloneNode(!0)).addClass(s.slideDuplicateClass)) }, loopFix: function () { const e = this; e.emit("beforeLoopFix"); const { activeIndex: t, slides: s, loopedSlides: a, allowSlidePrev: i, allowSlideNext: n, snapGrid: r, rtlTranslate: o } = e; let l; e.allowSlidePrev = !0, e.allowSlideNext = !0; const d = -r[t] - e.getTranslate(); t < a ? (l = s.length - 3 * a + t, l += a, e.slideTo(l, 0, !1, !0) && 0 !== d && e.setTranslate((o ? -e.translate : e.translate) - d)) : t >= s.length - a && (l = -s.length + t + a, l += a, e.slideTo(l, 0, !1, !0) && 0 !== d && e.setTranslate((o ? -e.translate : e.translate) - d)), e.allowSlidePrev = i, e.allowSlideNext = n, e.emit("loopFix") }, loopDestroy: function () { const { $wrapperEl: e, params: t, slides: s } = this; e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(), s.removeAttr("data-swiper-slide-index") } }; function M(e) { const t = this, s = a(), i = n(), r = t.touchEventsData, { params: o, touches: l, enabled: c } = t; if (!c) return; if (t.animating && o.preventInteractionOnTransition) return; !t.animating && o.cssMode && o.loop && t.loopFix(); let p = e; p.originalEvent && (p = p.originalEvent); let h = d(p.target); if ("wrapper" === o.touchEventsTarget && !h.closest(t.wrapperEl).length) return; if (r.isTouchEvent = "touchstart" === p.type, !r.isTouchEvent && "which" in p && 3 === p.which) return; if (!r.isTouchEvent && "button" in p && p.button > 0) return; if (r.isTouched && r.isMoved) return; o.noSwipingClass && "" !== o.noSwipingClass && p.target && p.target.shadowRoot && e.path && e.path[0] && (h = d(e.path[0])); const m = o.noSwipingSelector ? o.noSwipingSelector : `.${o.noSwipingClass}`, f = !(!p.target || !p.target.shadowRoot); if (o.noSwiping && (f ? function (e, t = this) { return function t(s) { return s && s !== a() && s !== n() ? (s.assignedSlot && (s = s.assignedSlot), s.closest(e) || t(s.getRootNode().host)) : null }(t) }(m, p.target) : h.closest(m)[0])) return void (t.allowClick = !0); if (o.swipeHandler && !h.closest(o.swipeHandler)[0]) return; l.currentX = "touchstart" === p.type ? p.targetTouches[0].pageX : p.pageX, l.currentY = "touchstart" === p.type ? p.targetTouches[0].pageY : p.pageY; const g = l.currentX, v = l.currentY, w = o.edgeSwipeDetection || o.iOSEdgeSwipeDetection, b = o.edgeSwipeThreshold || o.iOSEdgeSwipeThreshold; if (w && (g <= b || g >= i.innerWidth - b)) { if ("prevent" !== w) return; e.preventDefault() } if (Object.assign(r, { isTouched: !0, isMoved: !1, allowTouchCallbacks: !0, isScrolling: void 0, startMoving: void 0 }), l.startX = g, l.startY = v, r.touchStartTime = u(), t.allowClick = !0, t.updateSize(), t.swipeDirection = void 0, o.threshold > 0 && (r.allowThresholdMove = !1), "touchstart" !== p.type) { let e = !0; h.is(r.focusableElements) && (e = !1), s.activeElement && d(s.activeElement).is(r.focusableElements) && s.activeElement !== h[0] && s.activeElement.blur(); const a = e && t.allowTouchMove && o.touchStartPreventDefault; !o.touchStartForcePreventDefault && !a || h[0].isContentEditable || p.preventDefault() } t.emit("touchStart", p) } function k(e) { const t = a(), s = this, i = s.touchEventsData, { params: n, touches: r, rtlTranslate: o, enabled: l } = s; if (!l) return; let c = e; if (c.originalEvent && (c = c.originalEvent), !i.isTouched) return void (i.startMoving && i.isScrolling && s.emit("touchMoveOpposite", c)); if (i.isTouchEvent && "touchmove" !== c.type) return; const p = "touchmove" === c.type && c.targetTouches && (c.targetTouches[0] || c.changedTouches[0]), h = "touchmove" === c.type ? p.pageX : c.pageX, m = "touchmove" === c.type ? p.pageY : c.pageY; if (c.preventedByNestedSwiper) return r.startX = h, void (r.startY = m); if (!s.allowTouchMove) return s.allowClick = !1, void (i.isTouched && (Object.assign(r, { startX: h, startY: m, currentX: h, currentY: m }), i.touchStartTime = u())); if (i.isTouchEvent && n.touchReleaseOnEdges && !n.loop) if (s.isVertical()) { if (m < r.startY && s.translate <= s.maxTranslate() || m > r.startY && s.translate >= s.minTranslate()) return i.isTouched = !1, void (i.isMoved = !1) } else if (h < r.startX && s.translate <= s.maxTranslate() || h > r.startX && s.translate >= s.minTranslate()) return; if (i.isTouchEvent && t.activeElement && c.target === t.activeElement && d(c.target).is(i.focusableElements)) return i.isMoved = !0, void (s.allowClick = !1); if (i.allowTouchCallbacks && s.emit("touchMove", c), c.targetTouches && c.targetTouches.length > 1) return; r.currentX = h, r.currentY = m; const f = r.currentX - r.startX, g = r.currentY - r.startY; if (s.params.threshold && Math.sqrt(f ** 2 + g ** 2) < s.params.threshold) return; if (void 0 === i.isScrolling) { let e; s.isHorizontal() && r.currentY === r.startY || s.isVertical() && r.currentX === r.startX ? i.isScrolling = !1 : f * f + g * g >= 25 && (e = 180 * Math.atan2(Math.abs(g), Math.abs(f)) / Math.PI, i.isScrolling = s.isHorizontal() ? e > n.touchAngle : 90 - e > n.touchAngle) } if (i.isScrolling && s.emit("touchMoveOpposite", c), void 0 === i.startMoving && (r.currentX === r.startX && r.currentY === r.startY || (i.startMoving = !0)), i.isScrolling) return void (i.isTouched = !1); if (!i.startMoving) return; s.allowClick = !1, !n.cssMode && c.cancelable && c.preventDefault(), n.touchMoveStopPropagation && !n.nested && c.stopPropagation(), i.isMoved || (n.loop && !n.cssMode && s.loopFix(), i.startTranslate = s.getTranslate(), s.setTransition(0), s.animating && s.$wrapperEl.trigger("webkitTransitionEnd transitionend"), i.allowMomentumBounce = !1, !n.grabCursor || !0 !== s.allowSlideNext && !0 !== s.allowSlidePrev || s.setGrabCursor(!0), s.emit("sliderFirstMove", c)), s.emit("sliderMove", c), i.isMoved = !0; let v = s.isHorizontal() ? f : g; r.diff = v, v *= n.touchRatio, o && (v = -v), s.swipeDirection = v > 0 ? "prev" : "next", i.currentTranslate = v + i.startTranslate; let w = !0, b = n.resistanceRatio; if (n.touchReleaseOnEdges && (b = 0), v > 0 && i.currentTranslate > s.minTranslate() ? (w = !1, n.resistance && (i.currentTranslate = s.minTranslate() - 1 + (-s.minTranslate() + i.startTranslate + v) ** b)) : v < 0 && i.currentTranslate < s.maxTranslate() && (w = !1, n.resistance && (i.currentTranslate = s.maxTranslate() + 1 - (s.maxTranslate() - i.startTranslate - v) ** b)), w && (c.preventedByNestedSwiper = !0), !s.allowSlideNext && "next" === s.swipeDirection && i.currentTranslate < i.startTranslate && (i.currentTranslate = i.startTranslate), !s.allowSlidePrev && "prev" === s.swipeDirection && i.currentTranslate > i.startTranslate && (i.currentTranslate = i.startTranslate), s.allowSlidePrev || s.allowSlideNext || (i.currentTranslate = i.startTranslate), n.threshold > 0) { if (!(Math.abs(v) > n.threshold || i.allowThresholdMove)) return void (i.currentTranslate = i.startTranslate); if (!i.allowThresholdMove) return i.allowThresholdMove = !0, r.startX = r.currentX, r.startY = r.currentY, i.currentTranslate = i.startTranslate, void (r.diff = s.isHorizontal() ? r.currentX - r.startX : r.currentY - r.startY) } n.followFinger && !n.cssMode && ((n.freeMode && n.freeMode.enabled && s.freeMode || n.watchSlidesProgress) && (s.updateActiveIndex(), s.updateSlidesClasses()), s.params.freeMode && n.freeMode.enabled && s.freeMode && s.freeMode.onTouchMove(), s.updateProgress(i.currentTranslate), s.setTranslate(i.currentTranslate)) } function L(e) { const t = this, s = t.touchEventsData, { params: a, touches: i, rtlTranslate: n, slidesGrid: r, enabled: o } = t; if (!o) return; let l = e; if (l.originalEvent && (l = l.originalEvent), s.allowTouchCallbacks && t.emit("touchEnd", l), s.allowTouchCallbacks = !1, !s.isTouched) return s.isMoved && a.grabCursor && t.setGrabCursor(!1), s.isMoved = !1, void (s.startMoving = !1); a.grabCursor && s.isMoved && s.isTouched && (!0 === t.allowSlideNext || !0 === t.allowSlidePrev) && t.setGrabCursor(!1); const d = u(), c = d - s.touchStartTime; if (t.allowClick) { const e = l.path || l.composedPath && l.composedPath(); t.updateClickedSlide(e && e[0] || l.target), t.emit("tap click", l), c < 300 && d - s.lastClickTime < 300 && t.emit("doubleTap doubleClick", l) } if (s.lastClickTime = u(), p((() => { t.destroyed || (t.allowClick = !0) })), !s.isTouched || !s.isMoved || !t.swipeDirection || 0 === i.diff || s.currentTranslate === s.startTranslate) return s.isTouched = !1, s.isMoved = !1, void (s.startMoving = !1); let h; if (s.isTouched = !1, s.isMoved = !1, s.startMoving = !1, h = a.followFinger ? n ? t.translate : -t.translate : -s.currentTranslate, a.cssMode) return; if (t.params.freeMode && a.freeMode.enabled) return void t.freeMode.onTouchEnd({ currentPos: h }); let m = 0, f = t.slidesSizesGrid[0]; for (let e = 0; e < r.length; e += e < a.slidesPerGroupSkip ? 1 : a.slidesPerGroup) { const t = e < a.slidesPerGroupSkip - 1 ? 1 : a.slidesPerGroup; void 0 !== r[e + t] ? h >= r[e] && h < r[e + t] && (m = e, f = r[e + t] - r[e]) : h >= r[e] && (m = e, f = r[r.length - 1] - r[r.length - 2]) } const g = (h - r[m]) / f, v = m < a.slidesPerGroupSkip - 1 ? 1 : a.slidesPerGroup; if (c > a.longSwipesMs) { if (!a.longSwipes) return void t.slideTo(t.activeIndex); "next" === t.swipeDirection && (g >= a.longSwipesRatio ? t.slideTo(m + v) : t.slideTo(m)), "prev" === t.swipeDirection && (g > 1 - a.longSwipesRatio ? t.slideTo(m + v) : t.slideTo(m)) } else { if (!a.shortSwipes) return void t.slideTo(t.activeIndex); !t.navigation || l.target !== t.navigation.nextEl && l.target !== t.navigation.prevEl ? ("next" === t.swipeDirection && t.slideTo(m + v), "prev" === t.swipeDirection && t.slideTo(m)) : l.target === t.navigation.nextEl ? t.slideTo(m + v) : t.slideTo(m) } } function P() { const e = this, { params: t, el: s } = e; if (s && 0 === s.offsetWidth) return; t.breakpoints && e.setBreakpoint(); const { allowSlideNext: a, allowSlidePrev: i, snapGrid: n } = e; e.allowSlideNext = !0, e.allowSlidePrev = !0, e.updateSize(), e.updateSlides(), e.updateSlidesClasses(), ("auto" === t.slidesPerView || t.slidesPerView > 1) && e.isEnd && !e.isBeginning && !e.params.centeredSlides ? e.slideTo(e.slides.length - 1, 0, !1, !0) : e.slideTo(e.activeIndex, 0, !1, !0), e.autoplay && e.autoplay.running && e.autoplay.paused && e.autoplay.run(), e.allowSlidePrev = i, e.allowSlideNext = a, e.params.watchOverflow && n !== e.snapGrid && e.checkOverflow() } function I(e) { const t = this; t.enabled && (t.allowClick || (t.params.preventClicks && e.preventDefault(), t.params.preventClicksPropagation && t.animating && (e.stopPropagation(), e.stopImmediatePropagation()))) } function z() { const e = this, { wrapperEl: t, rtlTranslate: s, enabled: a } = e; if (!a) return; let i; e.previousTranslate = e.translate, e.isHorizontal() ? e.translate = -t.scrollLeft : e.translate = -t.scrollTop, -0 === e.translate && (e.translate = 0), e.updateActiveIndex(), e.updateSlidesClasses(); const n = e.maxTranslate() - e.minTranslate(); i = 0 === n ? 0 : (e.translate - e.minTranslate()) / n, i !== e.progress && e.updateProgress(s ? -e.translate : e.translate), e.emit("setTranslate", e.translate, !1) } let D = !1; function B() { } const O = (e, t) => { const s = a(), { params: i, touchEvents: n, el: r, wrapperEl: o, device: l, support: d } = e, c = !!i.nested, p = "on" === t ? "addEventListener" : "removeEventListener", u = t; if (d.touch) { const t = !("touchstart" !== n.start || !d.passiveListener || !i.passiveListeners) && { passive: !0, capture: !1 }; r[p](n.start, e.onTouchStart, t), r[p](n.move, e.onTouchMove, d.passiveListener ? { passive: !1, capture: c } : c), r[p](n.end, e.onTouchEnd, t), n.cancel && r[p](n.cancel, e.onTouchEnd, t) } else r[p](n.start, e.onTouchStart, !1), s[p](n.move, e.onTouchMove, c), s[p](n.end, e.onTouchEnd, !1); (i.preventClicks || i.preventClicksPropagation) && r[p]("click", e.onClick, !0), i.cssMode && o[p]("scroll", e.onScroll), i.updateOnWindowResize ? e[u](l.ios || l.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", P, !0) : e[u]("observerUpdate", P, !0) }; var A = { attachEvents: function () { const e = this, t = a(), { params: s, support: i } = e; e.onTouchStart = M.bind(e), e.onTouchMove = k.bind(e), e.onTouchEnd = L.bind(e), s.cssMode && (e.onScroll = z.bind(e)), e.onClick = I.bind(e), i.touch && !D && (t.addEventListener("touchstart", B), D = !0), O(e, "on") }, detachEvents: function () { O(this, "off") } }; const q = (e, t) => e.grid && t.grid && t.grid.rows > 1; var _ = { addClasses: function () { const e = this, { classNames: t, params: s, rtl: a, $el: i, device: n, support: r } = e, o = function (e, t) { const s = []; return e.forEach((e => { "object" == typeof e ? Object.keys(e).forEach((a => { e[a] && s.push(t + a) })) : "string" == typeof e && s.push(t + e) })), s }(["initialized", s.direction, { "pointer-events": !r.touch }, { "free-mode": e.params.freeMode && s.freeMode.enabled }, { autoheight: s.autoHeight }, { rtl: a }, { grid: s.grid && s.grid.rows > 1 }, { "grid-column": s.grid && s.grid.rows > 1 && "column" === s.grid.fill }, { android: n.android }, { ios: n.ios }, { "css-mode": s.cssMode }, { centered: s.cssMode && s.centeredSlides }], s.containerModifierClass); t.push(...o), i.addClass([...t].join(" ")), e.emitContainerClasses() }, removeClasses: function () { const { $el: e, classNames: t } = this; e.removeClass(t.join(" ")), this.emitContainerClasses() } }, G = { init: !0, direction: "horizontal", touchEventsTarget: "wrapper", initialSlide: 0, speed: 300, cssMode: !1, updateOnWindowResize: !0, resizeObserver: !0, nested: !1, createElements: !1, enabled: !0, focusableElements: "input, select, option, textarea, button, video, label", width: null, height: null, preventInteractionOnTransition: !1, userAgent: null, url: null, edgeSwipeDetection: !1, edgeSwipeThreshold: 20, autoHeight: !1, setWrapperSize: !1, virtualTranslate: !1, effect: "slide", breakpoints: void 0, breakpointsBase: "window", spaceBetween: 0, slidesPerView: 1, slidesPerGroup: 1, slidesPerGroupSkip: 0, slidesPerGroupAuto: !1, centeredSlides: !1, centeredSlidesBounds: !1, slidesOffsetBefore: 0, slidesOffsetAfter: 0, normalizeSlideIndex: !0, centerInsufficientSlides: !1, watchOverflow: !0, roundLengths: !1, touchRatio: 1, touchAngle: 45, simulateTouch: !0, shortSwipes: !0, longSwipes: !0, longSwipesRatio: .5, longSwipesMs: 300, followFinger: !0, allowTouchMove: !0, threshold: 0, touchMoveStopPropagation: !1, touchStartPreventDefault: !0, touchStartForcePreventDefault: !1, touchReleaseOnEdges: !1, uniqueNavElements: !0, resistance: !0, resistanceRatio: .85, watchSlidesProgress: !1, grabCursor: !1, preventClicks: !0, preventClicksPropagation: !0, slideToClickedSlide: !1, preloadImages: !0, updateOnImagesReady: !0, loop: !1, loopAdditionalSlides: 0, loopedSlides: null, loopFillGroupWithBlank: !1, loopPreventsSlide: !0, allowSlidePrev: !0, allowSlideNext: !0, swipeHandler: null, noSwiping: !0, noSwipingClass: "swiper-no-swiping", noSwipingSelector: null, passiveListeners: !0, containerModifierClass: "swiper-", slideClass: "swiper-slide", slideBlankClass: "swiper-slide-invisible-blank", slideActiveClass: "swiper-slide-active", slideDuplicateActiveClass: "swiper-slide-duplicate-active", slideVisibleClass: "swiper-slide-visible", slideDuplicateClass: "swiper-slide-duplicate", slideNextClass: "swiper-slide-next", slideDuplicateNextClass: "swiper-slide-duplicate-next", slidePrevClass: "swiper-slide-prev", slideDuplicatePrevClass: "swiper-slide-duplicate-prev", wrapperClass: "swiper-wrapper", runCallbacksOnInit: !0, _emitClasses: !1 }; function N(e, t) { return function (s = {}) { const a = Object.keys(s)[0], i = s[a]; "object" == typeof i && null !== i ? (["navigation", "pagination", "scrollbar"].indexOf(a) >= 0 && !0 === e[a] && (e[a] = { auto: !0 }), a in e && "enabled" in i ? (!0 === e[a] && (e[a] = { enabled: !0 }), "object" != typeof e[a] || "enabled" in e[a] || (e[a].enabled = !0), e[a] || (e[a] = { enabled: !1 }), f(t, s)) : f(t, s)) : f(t, s) } } const H = { eventsEmitter: x, update: C, translate: { getTranslate: function (e = (this.isHorizontal() ? "x" : "y")) { const { params: t, rtlTranslate: s, translate: a, $wrapperEl: i } = this; if (t.virtualTranslate) return s ? -a : a; if (t.cssMode) return a; let n = h(i[0], e); return s && (n = -n), n || 0 }, setTranslate: function (e, t) { const s = this, { rtlTranslate: a, params: i, $wrapperEl: n, wrapperEl: r, progress: o } = s; let l, d = 0, c = 0; s.isHorizontal() ? d = a ? -e : e : c = e, i.roundLengths && (d = Math.floor(d), c = Math.floor(c)), i.cssMode ? r[s.isHorizontal() ? "scrollLeft" : "scrollTop"] = s.isHorizontal() ? -d : -c : i.virtualTranslate || n.transform(`translate3d(${d}px, ${c}px, 0px)`), s.previousTranslate = s.translate, s.translate = s.isHorizontal() ? d : c; const p = s.maxTranslate() - s.minTranslate(); l = 0 === p ? 0 : (e - s.minTranslate()) / p, l !== o && s.updateProgress(e), s.emit("setTranslate", s.translate, t) }, minTranslate: function () { return -this.snapGrid[0] }, maxTranslate: function () { return -this.snapGrid[this.snapGrid.length - 1] }, translateTo: function (e = 0, t = this.params.speed, s = !0, a = !0, i) { const n = this, { params: r, wrapperEl: o } = n; if (n.animating && r.preventInteractionOnTransition) return !1; const l = n.minTranslate(), d = n.maxTranslate(); let c; if (c = a && e > l ? l : a && e < d ? d : e, n.updateProgress(c), r.cssMode) { const e = n.isHorizontal(); if (0 === t) o[e ? "scrollLeft" : "scrollTop"] = -c; else { if (!n.support.smoothScroll) return v({ swiper: n, targetPosition: -c, side: e ? "left" : "top" }), !0; o.scrollTo({ [e ? "left" : "top"]: -c, behavior: "smooth" }) } return !0 } return 0 === t ? (n.setTransition(0), n.setTranslate(c), s && (n.emit("beforeTransitionStart", t, i), n.emit("transitionEnd"))) : (n.setTransition(t), n.setTranslate(c), s && (n.emit("beforeTransitionStart", t, i), n.emit("transitionStart")), n.animating || (n.animating = !0, n.onTranslateToWrapperTransitionEnd || (n.onTranslateToWrapperTransitionEnd = function (e) { n && !n.destroyed && e.target === this && (n.$wrapperEl[0].removeEventListener("transitionend", n.onTranslateToWrapperTransitionEnd), n.$wrapperEl[0].removeEventListener("webkitTransitionEnd", n.onTranslateToWrapperTransitionEnd), n.onTranslateToWrapperTransitionEnd = null, delete n.onTranslateToWrapperTransitionEnd, s && n.emit("transitionEnd")) }), n.$wrapperEl[0].addEventListener("transitionend", n.onTranslateToWrapperTransitionEnd), n.$wrapperEl[0].addEventListener("webkitTransitionEnd", n.onTranslateToWrapperTransitionEnd))), !0 } }, transition: { setTransition: function (e, t) { const s = this; s.params.cssMode || s.$wrapperEl.transition(e), s.emit("setTransition", e, t) }, transitionStart: function (e = !0, t) { const s = this, { params: a } = s; a.cssMode || (a.autoHeight && s.updateAutoHeight(), E({ swiper: s, runCallbacks: e, direction: t, step: "Start" })) }, transitionEnd: function (e = !0, t) { const s = this, { params: a } = s; s.animating = !1, a.cssMode || (s.setTransition(0), E({ swiper: s, runCallbacks: e, direction: t, step: "End" })) } }, slide: S, loop: T, grabCursor: { setGrabCursor: function (e) { const t = this; if (t.support.touch || !t.params.simulateTouch || t.params.watchOverflow && t.isLocked || t.params.cssMode) return; const s = "container" === t.params.touchEventsTarget ? t.el : t.wrapperEl; s.style.cursor = "move", s.style.cursor = e ? "-webkit-grabbing" : "-webkit-grab", s.style.cursor = e ? "-moz-grabbin" : "-moz-grab", s.style.cursor = e ? "grabbing" : "grab" }, unsetGrabCursor: function () { const e = this; e.support.touch || e.params.watchOverflow && e.isLocked || e.params.cssMode || (e["container" === e.params.touchEventsTarget ? "el" : "wrapperEl"].style.cursor = "") } }, events: A, breakpoints: { setBreakpoint: function () { const e = this, { activeIndex: t, initialized: s, loopedSlides: a = 0, params: i, $el: n } = e, r = i.breakpoints; if (!r || r && 0 === Object.keys(r).length) return; const o = e.getBreakpoint(r, e.params.breakpointsBase, e.el); if (!o || e.currentBreakpoint === o) return; const l = (o in r ? r[o] : void 0) || e.originalParams, d = q(e, i), c = q(e, l), p = i.enabled; d && !c ? (n.removeClass(`${i.containerModifierClass}grid ${i.containerModifierClass}grid-column`), e.emitContainerClasses()) : !d && c && (n.addClass(`${i.containerModifierClass}grid`), (l.grid.fill && "column" === l.grid.fill || !l.grid.fill && "column" === i.grid.fill) && n.addClass(`${i.containerModifierClass}grid-column`), e.emitContainerClasses()); const u = l.direction && l.direction !== i.direction, h = i.loop && (l.slidesPerView !== i.slidesPerView || u); u && s && e.changeDirection(), f(e.params, l); const m = e.params.enabled; Object.assign(e, { allowTouchMove: e.params.allowTouchMove, allowSlideNext: e.params.allowSlideNext, allowSlidePrev: e.params.allowSlidePrev }), p && !m ? e.disable() : !p && m && e.enable(), e.currentBreakpoint = o, e.emit("_beforeBreakpoint", l), h && s && (e.loopDestroy(), e.loopCreate(), e.updateSlides(), e.slideTo(t - a + e.loopedSlides, 0, !1)), e.emit("breakpoint", l) }, getBreakpoint: function (e, t = "window", s) { if (!e || "container" === t && !s) return; let a = !1; const i = n(), r = "window" === t ? i.innerHeight : s.clientHeight, o = Object.keys(e).map((e => { if ("string" == typeof e && 0 === e.indexOf("@")) { const t = parseFloat(e.substr(1)); return { value: r * t, point: e } } return { value: e, point: e } })); o.sort(((e, t) => parseInt(e.value, 10) - parseInt(t.value, 10))); for (let e = 0; e < o.length; e += 1) { const { point: n, value: r } = o[e]; "window" === t ? i.matchMedia(`(min-width: ${r}px)`).matches && (a = n) : r <= s.clientWidth && (a = n) } return a || "max" } }, checkOverflow: { checkOverflow: function () { const e = this, { isLocked: t, params: s } = e, { slidesOffsetBefore: a } = s; if (a) { const t = e.slides.length - 1, s = e.slidesGrid[t] + e.slidesSizesGrid[t] + 2 * a; e.isLocked = e.size > s } else e.isLocked = 1 === e.snapGrid.length; !0 === s.allowSlideNext && (e.allowSlideNext = !e.isLocked), !0 === s.allowSlidePrev && (e.allowSlidePrev = !e.isLocked), t && t !== e.isLocked && (e.isEnd = !1), t !== e.isLocked && e.emit(e.isLocked ? "lock" : "unlock") } }, classes: _, images: { loadImage: function (e, t, s, a, i, r) { const o = n(); let l; function c() { r && r() } d(e).parent("picture")[0] || e.complete && i ? c() : t ? (l = new o.Image, l.onload = c, l.onerror = c, a && (l.sizes = a), s && (l.srcset = s), t && (l.src = t)) : c() }, preloadImages: function () { const e = this; function t() { null != e && e && !e.destroyed && (void 0 !== e.imagesLoaded && (e.imagesLoaded += 1), e.imagesLoaded === e.imagesToLoad.length && (e.params.updateOnImagesReady && e.update(), e.emit("imagesReady"))) } e.imagesToLoad = e.$el.find("img"); for (let s = 0; s < e.imagesToLoad.length; s += 1) { const a = e.imagesToLoad[s]; e.loadImage(a, a.currentSrc || a.getAttribute("src"), a.srcset || a.getAttribute("srcset"), a.sizes || a.getAttribute("sizes"), !0, t) } } } }, V = {}; class W { constructor(...e) { let t, s; if (1 === e.length && e[0].constructor && "Object" === Object.prototype.toString.call(e[0]).slice(8, -1) ? s = e[0] : [t, s] = e, s || (s = {}), s = f({}, s), t && !s.el && (s.el = t), s.el && d(s.el).length > 1) { const e = []; return d(s.el).each((t => { const a = f({}, s, { el: t }); e.push(new W(a)) })), e } const a = this; a.__swiper__ = !0, a.support = $(), a.device = function (e = {}) { return b || (b = function ({ userAgent: e } = {}) { const t = $(), s = n(), a = s.navigator.platform, i = e || s.navigator.userAgent, r = { ios: !1, android: !1 }, o = s.screen.width, l = s.screen.height, d = i.match(/(Android);?[\s\/]+([\d.]+)?/); let c = i.match(/(iPad).*OS\s([\d_]+)/); const p = i.match(/(iPod)(.*OS\s([\d_]+))?/), u = !c && i.match(/(iPhone\sOS|iOS)\s([\d_]+)/), h = "Win32" === a; let m = "MacIntel" === a; return !c && m && t.touch && ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"].indexOf(`${o}x${l}`) >= 0 && (c = i.match(/(Version)\/([\d.]+)/), c || (c = [0, 1, "13_0_0"]), m = !1), d && !h && (r.os = "android", r.android = !0), (c || u || p) && (r.os = "ios", r.ios = !0), r }(e)), b }({ userAgent: s.userAgent }), a.browser = (y || (y = function () { const e = n(); return { isSafari: function () { const t = e.navigator.userAgent.toLowerCase(); return t.indexOf("safari") >= 0 && t.indexOf("chrome") < 0 && t.indexOf("android") < 0 }(), isWebView: /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent) } }()), y), a.eventsListeners = {}, a.eventsAnyListeners = [], a.modules = [...a.__modules__], s.modules && Array.isArray(s.modules) && a.modules.push(...s.modules); const i = {}; a.modules.forEach((e => { e({ swiper: a, extendParams: N(s, i), on: a.on.bind(a), once: a.once.bind(a), off: a.off.bind(a), emit: a.emit.bind(a) }) })); const r = f({}, G, i); return a.params = f({}, r, V, s), a.originalParams = f({}, a.params), a.passedParams = f({}, s), a.params && a.params.on && Object.keys(a.params.on).forEach((e => { a.on(e, a.params.on[e]) })), a.params && a.params.onAny && a.onAny(a.params.onAny), a.$ = d, Object.assign(a, { enabled: a.params.enabled, el: t, classNames: [], slides: d(), slidesGrid: [], snapGrid: [], slidesSizesGrid: [], isHorizontal: () => "horizontal" === a.params.direction, isVertical: () => "vertical" === a.params.direction, activeIndex: 0, realIndex: 0, isBeginning: !0, isEnd: !1, translate: 0, previousTranslate: 0, progress: 0, velocity: 0, animating: !1, allowSlideNext: a.params.allowSlideNext, allowSlidePrev: a.params.allowSlidePrev, touchEvents: function () { const e = ["touchstart", "touchmove", "touchend", "touchcancel"], t = ["pointerdown", "pointermove", "pointerup"]; return a.touchEventsTouch = { start: e[0], move: e[1], end: e[2], cancel: e[3] }, a.touchEventsDesktop = { start: t[0], move: t[1], end: t[2] }, a.support.touch || !a.params.simulateTouch ? a.touchEventsTouch : a.touchEventsDesktop }(), touchEventsData: { isTouched: void 0, isMoved: void 0, allowTouchCallbacks: void 0, touchStartTime: void 0, isScrolling: void 0, currentTranslate: void 0, startTranslate: void 0, allowThresholdMove: void 0, focusableElements: a.params.focusableElements, lastClickTime: u(), clickTimeout: void 0, velocities: [], allowMomentumBounce: void 0, isTouchEvent: void 0, startMoving: void 0 }, allowClick: !0, allowTouchMove: a.params.allowTouchMove, touches: { startX: 0, startY: 0, currentX: 0, currentY: 0, diff: 0 }, imagesToLoad: [], imagesLoaded: 0 }), a.emit("_swiper"), a.params.init && a.init(), a } enable() { const e = this; e.enabled || (e.enabled = !0, e.params.grabCursor && e.setGrabCursor(), e.emit("enable")) } disable() { const e = this; e.enabled && (e.enabled = !1, e.params.grabCursor && e.unsetGrabCursor(), e.emit("disable")) } setProgress(e, t) { const s = this; e = Math.min(Math.max(e, 0), 1); const a = s.minTranslate(), i = (s.maxTranslate() - a) * e + a; s.translateTo(i, void 0 === t ? 0 : t), s.updateActiveIndex(), s.updateSlidesClasses() } emitContainerClasses() { const e = this; if (!e.params._emitClasses || !e.el) return; const t = e.el.className.split(" ").filter((t => 0 === t.indexOf("swiper") || 0 === t.indexOf(e.params.containerModifierClass))); e.emit("_containerClasses", t.join(" ")) } getSlideClasses(e) { const t = this; return e.className.split(" ").filter((e => 0 === e.indexOf("swiper-slide") || 0 === e.indexOf(t.params.slideClass))).join(" ") } emitSlidesClasses() { const e = this; if (!e.params._emitClasses || !e.el) return; const t = []; e.slides.each((s => { const a = e.getSlideClasses(s); t.push({ slideEl: s, classNames: a }), e.emit("_slideClass", s, a) })), e.emit("_slideClasses", t) } slidesPerViewDynamic(e = "current", t = !1) { const { params: s, slides: a, slidesGrid: i, slidesSizesGrid: n, size: r, activeIndex: o } = this; let l = 1; if (s.centeredSlides) { let e, t = a[o].swiperSlideSize; for (let s = o + 1; s < a.length; s += 1)a[s] && !e && (t += a[s].swiperSlideSize, l += 1, t > r && (e = !0)); for (let s = o - 1; s >= 0; s -= 1)a[s] && !e && (t += a[s].swiperSlideSize, l += 1, t > r && (e = !0)) } else if ("current" === e) for (let e = o + 1; e < a.length; e += 1)(t ? i[e] + n[e] - i[o] < r : i[e] - i[o] < r) && (l += 1); else for (let e = o - 1; e >= 0; e -= 1)i[o] - i[e] < r && (l += 1); return l } update() { const e = this; if (!e || e.destroyed) return; const { snapGrid: t, params: s } = e; function a() { const t = e.rtlTranslate ? -1 * e.translate : e.translate, s = Math.min(Math.max(t, e.maxTranslate()), e.minTranslate()); e.setTranslate(s), e.updateActiveIndex(), e.updateSlidesClasses() } let i; s.breakpoints && e.setBreakpoint(), e.updateSize(), e.updateSlides(), e.updateProgress(), e.updateSlidesClasses(), e.params.freeMode && e.params.freeMode.enabled ? (a(), e.params.autoHeight && e.updateAutoHeight()) : (i = ("auto" === e.params.slidesPerView || e.params.slidesPerView > 1) && e.isEnd && !e.params.centeredSlides ? e.slideTo(e.slides.length - 1, 0, !1, !0) : e.slideTo(e.activeIndex, 0, !1, !0), i || a()), s.watchOverflow && t !== e.snapGrid && e.checkOverflow(), e.emit("update") } changeDirection(e, t = !0) { const s = this, a = s.params.direction; return e || (e = "horizontal" === a ? "vertical" : "horizontal"), e === a || "horizontal" !== e && "vertical" !== e || (s.$el.removeClass(`${s.params.containerModifierClass}${a}`).addClass(`${s.params.containerModifierClass}${e}`), s.emitContainerClasses(), s.params.direction = e, s.slides.each((t => { "vertical" === e ? t.style.width = "" : t.style.height = "" })), s.emit("changeDirection"), t && s.update()), s } mount(e) { const t = this; if (t.mounted) return !0; const s = d(e || t.params.el); if (!(e = s[0])) return !1; e.swiper = t; const i = () => `.${(t.params.wrapperClass || "").trim().split(" ").join(".")}`; let n = (() => { if (e && e.shadowRoot && e.shadowRoot.querySelector) { const t = d(e.shadowRoot.querySelector(i())); return t.children = e => s.children(e), t } return s.children(i()) })(); if (0 === n.length && t.params.createElements) { const e = a().createElement("div"); n = d(e), e.className = t.params.wrapperClass, s.append(e), s.children(`.${t.params.slideClass}`).each((e => { n.append(e) })) } return Object.assign(t, { $el: s, el: e, $wrapperEl: n, wrapperEl: n[0], mounted: !0, rtl: "rtl" === e.dir.toLowerCase() || "rtl" === s.css("direction"), rtlTranslate: "horizontal" === t.params.direction && ("rtl" === e.dir.toLowerCase() || "rtl" === s.css("direction")), wrongRTL: "-webkit-box" === n.css("display") }), !0 } init(e) { const t = this; return t.initialized || !1 === t.mount(e) || (t.emit("beforeInit"), t.params.breakpoints && t.setBreakpoint(), t.addClasses(), t.params.loop && t.loopCreate(), t.updateSize(), t.updateSlides(), t.params.watchOverflow && t.checkOverflow(), t.params.grabCursor && t.enabled && t.setGrabCursor(), t.params.preloadImages && t.preloadImages(), t.params.loop ? t.slideTo(t.params.initialSlide + t.loopedSlides, 0, t.params.runCallbacksOnInit, !1, !0) : t.slideTo(t.params.initialSlide, 0, t.params.runCallbacksOnInit, !1, !0), t.attachEvents(), t.initialized = !0, t.emit("init"), t.emit("afterInit")), t } destroy(e = !0, t = !0) { const s = this, { params: a, $el: i, $wrapperEl: n, slides: r } = s; return void 0 === s.params || s.destroyed || (s.emit("beforeDestroy"), s.initialized = !1, s.detachEvents(), a.loop && s.loopDestroy(), t && (s.removeClasses(), i.removeAttr("style"), n.removeAttr("style"), r && r.length && r.removeClass([a.slideVisibleClass, a.slideActiveClass, a.slideNextClass, a.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")), s.emit("destroy"), Object.keys(s.eventsListeners).forEach((e => { s.off(e) })), !1 !== e && (s.$el[0].swiper = null, function (e) { const t = e; Object.keys(t).forEach((e => { try { t[e] = null } catch (e) { } try { delete t[e] } catch (e) { } })) }(s)), s.destroyed = !0), null } static extendDefaults(e) { f(V, e) } static get extendedDefaults() { return V } static get defaults() { return G } static installModule(e) { W.prototype.__modules__ || (W.prototype.__modules__ = []); const t = W.prototype.__modules__; "function" == typeof e && t.indexOf(e) < 0 && t.push(e) } static use(e) { return Array.isArray(e) ? (e.forEach((e => W.installModule(e))), W) : (W.installModule(e), W) } } function Y(e, t, s, i) { const n = a(); return e.params.createElements && Object.keys(i).forEach((a => { if (!s[a] && !0 === s.auto) { let r = e.$el.children(`.${i[a]}`)[0]; r || (r = n.createElement("div"), r.className = i[a], e.$el.append(r)), s[a] = r, t[a] = r } })), s } function X(e = "") { return `.${e.trim().replace(/([\.:!\/])/g, "\\$1").replace(/ /g, ".")}` } function j(e) { const t = this, { $wrapperEl: s, params: a } = t; if (a.loop && t.loopDestroy(), "object" == typeof e && "length" in e) for (let t = 0; t < e.length; t += 1)e[t] && s.append(e[t]); else s.append(e); a.loop && t.loopCreate(), a.observer || t.update() } function F(e) { const t = this, { params: s, $wrapperEl: a, activeIndex: i } = t; s.loop && t.loopDestroy(); let n = i + 1; if ("object" == typeof e && "length" in e) { for (let t = 0; t < e.length; t += 1)e[t] && a.prepend(e[t]); n = i + e.length } else a.prepend(e); s.loop && t.loopCreate(), s.observer || t.update(), t.slideTo(n, 0, !1) } function R(e, t) { const s = this, { $wrapperEl: a, params: i, activeIndex: n } = s; let r = n; i.loop && (r -= s.loopedSlides, s.loopDestroy(), s.slides = a.children(`.${i.slideClass}`)); const o = s.slides.length; if (e <= 0) return void s.prependSlide(t); if (e >= o) return void s.appendSlide(t); let l = r > e ? r + 1 : r; const d = []; for (let t = o - 1; t >= e; t -= 1) { const e = s.slides.eq(t); e.remove(), d.unshift(e) } if ("object" == typeof t && "length" in t) { for (let e = 0; e < t.length; e += 1)t[e] && a.append(t[e]); l = r > e ? r + t.length : r } else a.append(t); for (let e = 0; e < d.length; e += 1)a.append(d[e]); i.loop && s.loopCreate(), i.observer || s.update(), i.loop ? s.slideTo(l + s.loopedSlides, 0, !1) : s.slideTo(l, 0, !1) } function U(e) { const t = this, { params: s, $wrapperEl: a, activeIndex: i } = t; let n = i; s.loop && (n -= t.loopedSlides, t.loopDestroy(), t.slides = a.children(`.${s.slideClass}`)); let r, o = n; if ("object" == typeof e && "length" in e) { for (let s = 0; s < e.length; s += 1)r = e[s], t.slides[r] && t.slides.eq(r).remove(), r < o && (o -= 1); o = Math.max(o, 0) } else r = e, t.slides[r] && t.slides.eq(r).remove(), r < o && (o -= 1), o = Math.max(o, 0); s.loop && t.loopCreate(), s.observer || t.update(), s.loop ? t.slideTo(o + t.loopedSlides, 0, !1) : t.slideTo(o, 0, !1) } function Z() { const e = this, t = []; for (let s = 0; s < e.slides.length; s += 1)t.push(s); e.removeSlide(t) } function K(e) { const { effect: t, swiper: s, on: a, setTranslate: i, setTransition: n, overwriteParams: r, perspective: o } = e; a("beforeInit", (() => { if (s.params.effect !== t) return; s.classNames.push(`${s.params.containerModifierClass}${t}`), o && o() && s.classNames.push(`${s.params.containerModifierClass}3d`); const e = r ? r() : {}; Object.assign(s.params, e), Object.assign(s.originalParams, e) })), a("setTranslate", (() => { s.params.effect === t && i() })), a("setTransition", ((e, a) => { s.params.effect === t && n(a) })) } function Q(e, t) { return e.transformEl ? t.find(e.transformEl).css({ "backface-visibility": "hidden", "-webkit-backface-visibility": "hidden" }) : t } function J({ swiper: e, duration: t, transformEl: s, allSlides: a }) { const { slides: i, activeIndex: n, $wrapperEl: r } = e; if (e.params.virtualTranslate && 0 !== t) { let t, o = !1; t = a ? s ? i.find(s) : i : s ? i.eq(n).find(s) : i.eq(n), t.transitionEnd((() => { if (o) return; if (!e || e.destroyed) return; o = !0, e.animating = !1; const t = ["webkitTransitionEnd", "transitionend"]; for (let e = 0; e < t.length; e += 1)r.trigger(t[e]) })) } } function ee(e, t, s) { const a = "swiper-slide-shadow" + (s ? `-${s}` : ""), i = e.transformEl ? t.find(e.transformEl) : t; let n = i.children(`.${a}`); return n.length || (n = d(`<div class="swiper-slide-shadow${s ? `-${s}` : ""}"></div>`), i.append(n)), n } Object.keys(H).forEach((e => { Object.keys(H[e]).forEach((t => { W.prototype[t] = H[e][t] })) })), W.use([function ({ swiper: e, on: t, emit: s }) { const a = n(); let i = null; const r = () => { e && !e.destroyed && e.initialized && (s("beforeResize"), s("resize")) }, o = () => { e && !e.destroyed && e.initialized && s("orientationchange") }; t("init", (() => { e.params.resizeObserver && void 0 !== a.ResizeObserver ? e && !e.destroyed && e.initialized && (i = new ResizeObserver((t => { const { width: s, height: a } = e; let i = s, n = a; t.forEach((({ contentBoxSize: t, contentRect: s, target: a }) => { a && a !== e.el || (i = s ? s.width : (t[0] || t).inlineSize, n = s ? s.height : (t[0] || t).blockSize) })), i === s && n === a || r() })), i.observe(e.el)) : (a.addEventListener("resize", r), a.addEventListener("orientationchange", o)) })), t("destroy", (() => { i && i.unobserve && e.el && (i.unobserve(e.el), i = null), a.removeEventListener("resize", r), a.removeEventListener("orientationchange", o) })) }, function ({ swiper: e, extendParams: t, on: s, emit: a }) { const i = [], r = n(), o = (e, t = {}) => { const s = new (r.MutationObserver || r.WebkitMutationObserver)((e => { if (1 === e.length) return void a("observerUpdate", e[0]); const t = function () { a("observerUpdate", e[0]) }; r.requestAnimationFrame ? r.requestAnimationFrame(t) : r.setTimeout(t, 0) })); s.observe(e, { attributes: void 0 === t.attributes || t.attributes, childList: void 0 === t.childList || t.childList, characterData: void 0 === t.characterData || t.characterData }), i.push(s) }; t({ observer: !1, observeParents: !1, observeSlideChildren: !1 }), s("init", (() => { if (e.params.observer) { if (e.params.observeParents) { const t = e.$el.parents(); for (let e = 0; e < t.length; e += 1)o(t[e]) } o(e.$el[0], { childList: e.params.observeSlideChildren }), o(e.$wrapperEl[0], { attributes: !1 }) } })), s("destroy", (() => { i.forEach((e => { e.disconnect() })), i.splice(0, i.length) })) }]); const te = [function ({ swiper: e, extendParams: t, on: s }) { let a; function i(t, s) { const a = e.params.virtual; if (a.cache && e.virtual.cache[s]) return e.virtual.cache[s]; const i = a.renderSlide ? d(a.renderSlide.call(e, t, s)) : d(`<div class="${e.params.slideClass}" data-swiper-slide-index="${s}">${t}</div>`); return i.attr("data-swiper-slide-index") || i.attr("data-swiper-slide-index", s), a.cache && (e.virtual.cache[s] = i), i } function n(t) { const { slidesPerView: s, slidesPerGroup: a, centeredSlides: n } = e.params, { addSlidesBefore: r, addSlidesAfter: o } = e.params.virtual, { from: l, to: d, slides: c, slidesGrid: p, offset: u } = e.virtual; e.params.cssMode || e.updateActiveIndex(); const h = e.activeIndex || 0; let m, f, g; m = e.rtlTranslate ? "right" : e.isHorizontal() ? "left" : "top", n ? (f = Math.floor(s / 2) + a + o, g = Math.floor(s / 2) + a + r) : (f = s + (a - 1) + o, g = a + r); const v = Math.max((h || 0) - g, 0), w = Math.min((h || 0) + f, c.length - 1), b = (e.slidesGrid[v] || 0) - (e.slidesGrid[0] || 0); function y() { e.updateSlides(), e.updateProgress(), e.updateSlidesClasses(), e.lazy && e.params.lazy.enabled && e.lazy.load() } if (Object.assign(e.virtual, { from: v, to: w, offset: b, slidesGrid: e.slidesGrid }), l === v && d === w && !t) return e.slidesGrid !== p && b !== u && e.slides.css(m, `${b}px`), void e.updateProgress(); if (e.params.virtual.renderExternal) return e.params.virtual.renderExternal.call(e, { offset: b, from: v, to: w, slides: function () { const e = []; for (let t = v; t <= w; t += 1)e.push(c[t]); return e }() }), void (e.params.virtual.renderExternalUpdate && y()); const $ = [], x = []; if (t) e.$wrapperEl.find(`.${e.params.slideClass}`).remove(); else for (let t = l; t <= d; t += 1)(t < v || t > w) && e.$wrapperEl.find(`.${e.params.slideClass}[data-swiper-slide-index="${t}"]`).remove(); for (let e = 0; e < c.length; e += 1)e >= v && e <= w && (void 0 === d || t ? x.push(e) : (e > d && x.push(e), e < l && $.push(e))); x.forEach((t => { e.$wrapperEl.append(i(c[t], t)) })), $.sort(((e, t) => t - e)).forEach((t => { e.$wrapperEl.prepend(i(c[t], t)) })), e.$wrapperEl.children(".swiper-slide").css(m, `${b}px`), y() } t({ virtual: { enabled: !1, slides: [], cache: !0, renderSlide: null, renderExternal: null, renderExternalUpdate: !0, addSlidesBefore: 0, addSlidesAfter: 0 } }), e.virtual = { cache: {}, from: void 0, to: void 0, slides: [], offset: 0, slidesGrid: [] }, s("beforeInit", (() => { e.params.virtual.enabled && (e.virtual.slides = e.params.virtual.slides, e.classNames.push(`${e.params.containerModifierClass}virtual`), e.params.watchSlidesProgress = !0, e.originalParams.watchSlidesProgress = !0, e.params.initialSlide || n()) })), s("setTranslate", (() => { e.params.virtual.enabled && (e.params.cssMode && !e._immediateVirtual ? (clearTimeout(a), a = setTimeout((() => { n() }), 100)) : n()) })), s("init update resize", (() => { e.params.virtual.enabled && e.params.cssMode && g(e.wrapperEl, "--swiper-virtual-size", `${e.virtualSize}px`) })), Object.assign(e.virtual, { appendSlide: function (t) { if ("object" == typeof t && "length" in t) for (let s = 0; s < t.length; s += 1)t[s] && e.virtual.slides.push(t[s]); else e.virtual.slides.push(t); n(!0) }, prependSlide: function (t) { const s = e.activeIndex; let a = s + 1, i = 1; if (Array.isArray(t)) { for (let s = 0; s < t.length; s += 1)t[s] && e.virtual.slides.unshift(t[s]); a = s + t.length, i = t.length } else e.virtual.slides.unshift(t); if (e.params.virtual.cache) { const t = e.virtual.cache, s = {}; Object.keys(t).forEach((e => { const a = t[e], n = a.attr("data-swiper-slide-index"); n && a.attr("data-swiper-slide-index", parseInt(n, 10) + i), s[parseInt(e, 10) + i] = a })), e.virtual.cache = s } n(!0), e.slideTo(a, 0) }, removeSlide: function (t) { if (null == t) return; let s = e.activeIndex; if (Array.isArray(t)) for (let a = t.length - 1; a >= 0; a -= 1)e.virtual.slides.splice(t[a], 1), e.params.virtual.cache && delete e.virtual.cache[t[a]], t[a] < s && (s -= 1), s = Math.max(s, 0); else e.virtual.slides.splice(t, 1), e.params.virtual.cache && delete e.virtual.cache[t], t < s && (s -= 1), s = Math.max(s, 0); n(!0), e.slideTo(s, 0) }, removeAllSlides: function () { e.virtual.slides = [], e.params.virtual.cache && (e.virtual.cache = {}), n(!0), e.slideTo(0, 0) }, update: n }) }, function ({ swiper: e, extendParams: t, on: s, emit: i }) { const r = a(), o = n(); function l(t) { if (!e.enabled) return; const { rtlTranslate: s } = e; let a = t; a.originalEvent && (a = a.originalEvent); const n = a.keyCode || a.charCode, l = e.params.keyboard.pageUpDown, d = l && 33 === n, c = l && 34 === n, p = 37 === n, u = 39 === n, h = 38 === n, m = 40 === n; if (!e.allowSlideNext && (e.isHorizontal() && u || e.isVertical() && m || c)) return !1; if (!e.allowSlidePrev && (e.isHorizontal() && p || e.isVertical() && h || d)) return !1; if (!(a.shiftKey || a.altKey || a.ctrlKey || a.metaKey || r.activeElement && r.activeElement.nodeName && ("input" === r.activeElement.nodeName.toLowerCase() || "textarea" === r.activeElement.nodeName.toLowerCase()))) { if (e.params.keyboard.onlyInViewport && (d || c || p || u || h || m)) { let t = !1; if (e.$el.parents(`.${e.params.slideClass}`).length > 0 && 0 === e.$el.parents(`.${e.params.slideActiveClass}`).length) return; const a = e.$el, i = a[0].clientWidth, n = a[0].clientHeight, r = o.innerWidth, l = o.innerHeight, d = e.$el.offset(); s && (d.left -= e.$el[0].scrollLeft); const c = [[d.left, d.top], [d.left + i, d.top], [d.left, d.top + n], [d.left + i, d.top + n]]; for (let e = 0; e < c.length; e += 1) { const s = c[e]; if (s[0] >= 0 && s[0] <= r && s[1] >= 0 && s[1] <= l) { if (0 === s[0] && 0 === s[1]) continue; t = !0 } } if (!t) return } e.isHorizontal() ? ((d || c || p || u) && (a.preventDefault ? a.preventDefault() : a.returnValue = !1), ((c || u) && !s || (d || p) && s) && e.slideNext(), ((d || p) && !s || (c || u) && s) && e.slidePrev()) : ((d || c || h || m) && (a.preventDefault ? a.preventDefault() : a.returnValue = !1), (c || m) && e.slideNext(), (d || h) && e.slidePrev()), i("keyPress", n) } } function c() { e.keyboard.enabled || (d(r).on("keydown", l), e.keyboard.enabled = !0) } function p() { e.keyboard.enabled && (d(r).off("keydown", l), e.keyboard.enabled = !1) } e.keyboard = { enabled: !1 }, t({ keyboard: { enabled: !1, onlyInViewport: !0, pageUpDown: !0 } }), s("init", (() => { e.params.keyboard.enabled && c() })), s("destroy", (() => { e.keyboard.enabled && p() })), Object.assign(e.keyboard, { enable: c, disable: p }) }, function ({ swiper: e, extendParams: t, on: s, emit: a }) { const i = n(); let r; t({ mousewheel: { enabled: !1, releaseOnEdges: !1, invert: !1, forceToAxis: !1, sensitivity: 1, eventsTarget: "container", thresholdDelta: null, thresholdTime: null } }), e.mousewheel = { enabled: !1 }; let o, l = u(); const c = []; function h() { e.enabled && (e.mouseEntered = !0) } function m() { e.enabled && (e.mouseEntered = !1) } function f(t) { return !(e.params.mousewheel.thresholdDelta && t.delta < e.params.mousewheel.thresholdDelta || e.params.mousewheel.thresholdTime && u() - l < e.params.mousewheel.thresholdTime || !(t.delta >= 6 && u() - l < 60) && (t.direction < 0 ? e.isEnd && !e.params.loop || e.animating || (e.slideNext(), a("scroll", t.raw)) : e.isBeginning && !e.params.loop || e.animating || (e.slidePrev(), a("scroll", t.raw)), l = (new i.Date).getTime(), 1)) } function g(t) { let s = t, i = !0; if (!e.enabled) return; const n = e.params.mousewheel; e.params.cssMode && s.preventDefault(); let l = e.$el; if ("container" !== e.params.mousewheel.eventsTarget && (l = d(e.params.mousewheel.eventsTarget)), !e.mouseEntered && !l[0].contains(s.target) && !n.releaseOnEdges) return !0; s.originalEvent && (s = s.originalEvent); let h = 0; const m = e.rtlTranslate ? -1 : 1, g = function (e) { let t = 0, s = 0, a = 0, i = 0; return "detail" in e && (s = e.detail), "wheelDelta" in e && (s = -e.wheelDelta / 120), "wheelDeltaY" in e && (s = -e.wheelDeltaY / 120), "wheelDeltaX" in e && (t = -e.wheelDeltaX / 120), "axis" in e && e.axis === e.HORIZONTAL_AXIS && (t = s, s = 0), a = 10 * t, i = 10 * s, "deltaY" in e && (i = e.deltaY), "deltaX" in e && (a = e.deltaX), e.shiftKey && !a && (a = i, i = 0), (a || i) && e.deltaMode && (1 === e.deltaMode ? (a *= 40, i *= 40) : (a *= 800, i *= 800)), a && !t && (t = a < 1 ? -1 : 1), i && !s && (s = i < 1 ? -1 : 1), { spinX: t, spinY: s, pixelX: a, pixelY: i } }(s); if (n.forceToAxis) if (e.isHorizontal()) { if (!(Math.abs(g.pixelX) > Math.abs(g.pixelY))) return !0; h = -g.pixelX * m } else { if (!(Math.abs(g.pixelY) > Math.abs(g.pixelX))) return !0; h = -g.pixelY } else h = Math.abs(g.pixelX) > Math.abs(g.pixelY) ? -g.pixelX * m : -g.pixelY; if (0 === h) return !0; n.invert && (h = -h); let v = e.getTranslate() + h * n.sensitivity; if (v >= e.minTranslate() && (v = e.minTranslate()), v <= e.maxTranslate() && (v = e.maxTranslate()), i = !!e.params.loop || !(v === e.minTranslate() || v === e.maxTranslate()), i && e.params.nested && s.stopPropagation(), e.params.freeMode && e.params.freeMode.enabled) { const t = { time: u(), delta: Math.abs(h), direction: Math.sign(h) }, i = o && t.time < o.time + 500 && t.delta <= o.delta && t.direction === o.direction; if (!i) { o = void 0, e.params.loop && e.loopFix(); let l = e.getTranslate() + h * n.sensitivity; const d = e.isBeginning, u = e.isEnd; if (l >= e.minTranslate() && (l = e.minTranslate()), l <= e.maxTranslate() && (l = e.maxTranslate()), e.setTransition(0), e.setTranslate(l), e.updateProgress(), e.updateActiveIndex(), e.updateSlidesClasses(), (!d && e.isBeginning || !u && e.isEnd) && e.updateSlidesClasses(), e.params.freeMode.sticky) { clearTimeout(r), r = void 0, c.length >= 15 && c.shift(); const s = c.length ? c[c.length - 1] : void 0, a = c[0]; if (c.push(t), s && (t.delta > s.delta || t.direction !== s.direction)) c.splice(0); else if (c.length >= 15 && t.time - a.time < 500 && a.delta - t.delta >= 1 && t.delta <= 6) { const s = h > 0 ? .8 : .2; o = t, c.splice(0), r = p((() => { e.slideToClosest(e.params.speed, !0, void 0, s) }), 0) } r || (r = p((() => { o = t, c.splice(0), e.slideToClosest(e.params.speed, !0, void 0, .5) }), 500)) } if (i || a("scroll", s), e.params.autoplay && e.params.autoplayDisableOnInteraction && e.autoplay.stop(), l === e.minTranslate() || l === e.maxTranslate()) return !0 } } else { const s = { time: u(), delta: Math.abs(h), direction: Math.sign(h), raw: t }; c.length >= 2 && c.shift(); const a = c.length ? c[c.length - 1] : void 0; if (c.push(s), a ? (s.direction !== a.direction || s.delta > a.delta || s.time > a.time + 150) && f(s) : f(s), function (t) { const s = e.params.mousewheel; if (t.direction < 0) { if (e.isEnd && !e.params.loop && s.releaseOnEdges) return !0 } else if (e.isBeginning && !e.params.loop && s.releaseOnEdges) return !0; return !1 }(s)) return !0 } return s.preventDefault ? s.preventDefault() : s.returnValue = !1, !1 } function v(t) { let s = e.$el; "container" !== e.params.mousewheel.eventsTarget && (s = d(e.params.mousewheel.eventsTarget)), s[t]("mouseenter", h), s[t]("mouseleave", m), s[t]("wheel", g) } function w() { return e.params.cssMode ? (e.wrapperEl.removeEventListener("wheel", g), !0) : !e.mousewheel.enabled && (v("on"), e.mousewheel.enabled = !0, !0) } function b() { return e.params.cssMode ? (e.wrapperEl.addEventListener(event, g), !0) : !!e.mousewheel.enabled && (v("off"), e.mousewheel.enabled = !1, !0) } s("init", (() => { !e.params.mousewheel.enabled && e.params.cssMode && b(), e.params.mousewheel.enabled && w() })), s("destroy", (() => { e.params.cssMode && w(), e.mousewheel.enabled && b() })), Object.assign(e.mousewheel, { enable: w, disable: b }) }, function ({ swiper: e, extendParams: t, on: s, emit: a }) { function i(t) { let s; return t && (s = d(t), e.params.uniqueNavElements && "string" == typeof t && s.length > 1 && 1 === e.$el.find(t).length && (s = e.$el.find(t))), s } function n(t, s) { const a = e.params.navigation; t && t.length > 0 && (t[s ? "addClass" : "removeClass"](a.disabledClass), t[0] && "BUTTON" === t[0].tagName && (t[0].disabled = s), e.params.watchOverflow && e.enabled && t[e.isLocked ? "addClass" : "removeClass"](a.lockClass)) } function r() { if (e.params.loop) return; const { $nextEl: t, $prevEl: s } = e.navigation; n(s, e.isBeginning), n(t, e.isEnd) } function o(t) { t.preventDefault(), e.isBeginning && !e.params.loop || e.slidePrev() } function l(t) { t.preventDefault(), e.isEnd && !e.params.loop || e.slideNext() } function c() { const t = e.params.navigation; if (e.params.navigation = Y(e, e.originalParams.navigation, e.params.navigation, { nextEl: "swiper-button-next", prevEl: "swiper-button-prev" }), !t.nextEl && !t.prevEl) return; const s = i(t.nextEl), a = i(t.prevEl); s && s.length > 0 && s.on("click", l), a && a.length > 0 && a.on("click", o), Object.assign(e.navigation, { $nextEl: s, nextEl: s && s[0], $prevEl: a, prevEl: a && a[0] }), e.enabled || (s && s.addClass(t.lockClass), a && a.addClass(t.lockClass)) } function p() { const { $nextEl: t, $prevEl: s } = e.navigation; t && t.length && (t.off("click", l), t.removeClass(e.params.navigation.disabledClass)), s && s.length && (s.off("click", o), s.removeClass(e.params.navigation.disabledClass)) } t({ navigation: { nextEl: null, prevEl: null, hideOnClick: !1, disabledClass: "swiper-button-disabled", hiddenClass: "swiper-button-hidden", lockClass: "swiper-button-lock" } }), e.navigation = { nextEl: null, $nextEl: null, prevEl: null, $prevEl: null }, s("init", (() => { c(), r() })), s("toEdge fromEdge lock unlock", (() => { r() })), s("destroy", (() => { p() })), s("enable disable", (() => { const { $nextEl: t, $prevEl: s } = e.navigation; t && t[e.enabled ? "removeClass" : "addClass"](e.params.navigation.lockClass), s && s[e.enabled ? "removeClass" : "addClass"](e.params.navigation.lockClass) })), s("click", ((t, s) => { const { $nextEl: i, $prevEl: n } = e.navigation, r = s.target; if (e.params.navigation.hideOnClick && !d(r).is(n) && !d(r).is(i)) { if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el === r || e.pagination.el.contains(r))) return; let t; i ? t = i.hasClass(e.params.navigation.hiddenClass) : n && (t = n.hasClass(e.params.navigation.hiddenClass)), a(!0 === t ? "navigationShow" : "navigationHide"), i && i.toggleClass(e.params.navigation.hiddenClass), n && n.toggleClass(e.params.navigation.hiddenClass) } })), Object.assign(e.navigation, { update: r, init: c, destroy: p }) }, function ({ swiper: e, extendParams: t, on: s, emit: a }) { const i = "swiper-pagination"; let n; t({ 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: e => e, formatFractionTotal: e => e, 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` } }), e.pagination = { el: null, $el: null, bullets: [] }; let r = 0; function o() { return !e.params.pagination.el || !e.pagination.el || !e.pagination.$el || 0 === e.pagination.$el.length } function l(t, s) { const { bulletActiveClass: a } = e.params.pagination; t[s]().addClass(`${a}-${s}`)[s]().addClass(`${a}-${s}-${s}`) } function c() { const t = e.rtl, s = e.params.pagination; if (o()) return; const i = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.slides.length, c = e.pagination.$el; let p; const u = e.params.loop ? Math.ceil((i - 2 * e.loopedSlides) / e.params.slidesPerGroup) : e.snapGrid.length; if (e.params.loop ? (p = Math.ceil((e.activeIndex - e.loopedSlides) / e.params.slidesPerGroup), p > i - 1 - 2 * e.loopedSlides && (p -= i - 2 * e.loopedSlides), p > u - 1 && (p -= u), p < 0 && "bullets" !== e.params.paginationType && (p = u + p)) : p = void 0 !== e.snapIndex ? e.snapIndex : e.activeIndex || 0, "bullets" === s.type && e.pagination.bullets && e.pagination.bullets.length > 0) { const a = e.pagination.bullets; let i, o, u; if (s.dynamicBullets && (n = a.eq(0)[e.isHorizontal() ? "outerWidth" : "outerHeight"](!0), c.css(e.isHorizontal() ? "width" : "height", n * (s.dynamicMainBullets + 4) + "px"), s.dynamicMainBullets > 1 && void 0 !== e.previousIndex && (r += p - e.previousIndex, r > s.dynamicMainBullets - 1 ? r = s.dynamicMainBullets - 1 : r < 0 && (r = 0)), i = p - r, o = i + (Math.min(a.length, s.dynamicMainBullets) - 1), u = (o + i) / 2), a.removeClass(["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((e => `${s.bulletActiveClass}${e}`)).join(" ")), c.length > 1) a.each((e => { const t = d(e), a = t.index(); a === p && t.addClass(s.bulletActiveClass), s.dynamicBullets && (a >= i && a <= o && t.addClass(`${s.bulletActiveClass}-main`), a === i && l(t, "prev"), a === o && l(t, "next")) })); else { const t = a.eq(p), n = t.index(); if (t.addClass(s.bulletActiveClass), s.dynamicBullets) { const t = a.eq(i), r = a.eq(o); for (let e = i; e <= o; e += 1)a.eq(e).addClass(`${s.bulletActiveClass}-main`); if (e.params.loop) if (n >= a.length - s.dynamicMainBullets) { for (let e = s.dynamicMainBullets; e >= 0; e -= 1)a.eq(a.length - e).addClass(`${s.bulletActiveClass}-main`); a.eq(a.length - s.dynamicMainBullets - 1).addClass(`${s.bulletActiveClass}-prev`) } else l(t, "prev"), l(r, "next"); else l(t, "prev"), l(r, "next") } } if (s.dynamicBullets) { const i = Math.min(a.length, s.dynamicMainBullets + 4), r = (n * i - n) / 2 - u * n, o = t ? "right" : "left"; a.css(e.isHorizontal() ? o : "top", `${r}px`) } } if ("fraction" === s.type && (c.find(X(s.currentClass)).text(s.formatFractionCurrent(p + 1)), c.find(X(s.totalClass)).text(s.formatFractionTotal(u))), "progressbar" === s.type) { let t; t = s.progressbarOpposite ? e.isHorizontal() ? "vertical" : "horizontal" : e.isHorizontal() ? "horizontal" : "vertical"; const a = (p + 1) / u; let i = 1, n = 1; "horizontal" === t ? i = a : n = a, c.find(X(s.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${i}) scaleY(${n})`).transition(e.params.speed) } "custom" === s.type && s.renderCustom ? (c.html(s.renderCustom(e, p + 1, u)), a("paginationRender", c[0])) : a("paginationUpdate", c[0]), e.params.watchOverflow && e.enabled && c[e.isLocked ? "addClass" : "removeClass"](s.lockClass) } function p() { const t = e.params.pagination; if (o()) return; const s = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.slides.length, i = e.pagination.$el; let n = ""; if ("bullets" === t.type) { let a = e.params.loop ? Math.ceil((s - 2 * e.loopedSlides) / e.params.slidesPerGroup) : e.snapGrid.length; e.params.freeMode && e.params.freeMode.enabled && !e.params.loop && a > s && (a = s); for (let s = 0; s < a; s += 1)t.renderBullet ? n += t.renderBullet.call(e, s, t.bulletClass) : n += `<${t.bulletElement} class="${t.bulletClass}"></${t.bulletElement}>`; i.html(n), e.pagination.bullets = i.find(X(t.bulletClass)) } "fraction" === t.type && (n = t.renderFraction ? t.renderFraction.call(e, t.currentClass, t.totalClass) : `<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`, i.html(n)), "progressbar" === t.type && (n = t.renderProgressbar ? t.renderProgressbar.call(e, t.progressbarFillClass) : `<span class="${t.progressbarFillClass}"></span>`, i.html(n)), "custom" !== t.type && a("paginationRender", e.pagination.$el[0]) } function u() { e.params.pagination = Y(e, e.originalParams.pagination, e.params.pagination, { el: "swiper-pagination" }); const t = e.params.pagination; if (!t.el) return; let s = d(t.el); 0 !== s.length && (e.params.uniqueNavElements && "string" == typeof t.el && s.length > 1 && (s = e.$el.find(t.el), s.length > 1 && (s = s.filter((t => d(t).parents(".swiper")[0] === e.el)))), "bullets" === t.type && t.clickable && s.addClass(t.clickableClass), s.addClass(t.modifierClass + t.type), s.addClass(t.modifierClass + e.params.direction), "bullets" === t.type && t.dynamicBullets && (s.addClass(`${t.modifierClass}${t.type}-dynamic`), r = 0, t.dynamicMainBullets < 1 && (t.dynamicMainBullets = 1)), "progressbar" === t.type && t.progressbarOpposite && s.addClass(t.progressbarOppositeClass), t.clickable && s.on("click", X(t.bulletClass), (function (t) { t.preventDefault(); let s = d(this).index() * e.params.slidesPerGroup; e.params.loop && (s += e.loopedSlides), e.slideTo(s) })), Object.assign(e.pagination, { $el: s, el: s[0] }), e.enabled || s.addClass(t.lockClass)) } function h() { const t = e.params.pagination; if (o()) return; const s = e.pagination.$el; s.removeClass(t.hiddenClass), s.removeClass(t.modifierClass + t.type), s.removeClass(t.modifierClass + e.params.direction), e.pagination.bullets && e.pagination.bullets.removeClass && e.pagination.bullets.removeClass(t.bulletActiveClass), t.clickable && s.off("click", X(t.bulletClass)) } s("init", (() => { u(), p(), c() })), s("activeIndexChange", (() => { (e.params.loop || void 0 === e.snapIndex) && c() })), s("snapIndexChange", (() => { e.params.loop || c() })), s("slidesLengthChange", (() => { e.params.loop && (p(), c()) })), s("snapGridLengthChange", (() => { e.params.loop || (p(), c()) })), s("destroy", (() => { h() })), s("enable disable", (() => { const { $el: t } = e.pagination; t && t[e.enabled ? "removeClass" : "addClass"](e.params.pagination.lockClass) })), s("lock unlock", (() => { c() })), s("click", ((t, s) => { const i = s.target, { $el: n } = e.pagination; if (e.params.pagination.el && e.params.pagination.hideOnClick && n.length > 0 && !d(i).hasClass(e.params.pagination.bulletClass)) { if (e.navigation && (e.navigation.nextEl && i === e.navigation.nextEl || e.navigation.prevEl && i === e.navigation.prevEl)) return; const t = n.hasClass(e.params.pagination.hiddenClass); a(!0 === t ? "paginationShow" : "paginationHide"), n.toggleClass(e.params.pagination.hiddenClass) } })), Object.assign(e.pagination, { render: p, update: c, init: u, destroy: h }) }, function ({ swiper: e, extendParams: t, on: s, emit: i }) { const n = a(); let r, o, l, c, u = !1, h = null, m = null; function f() { if (!e.params.scrollbar.el || !e.scrollbar.el) return; const { scrollbar: t, rtlTranslate: s, progress: a } = e, { $dragEl: i, $el: n } = t, r = e.params.scrollbar; let d = o, c = (l - o) * a; s ? (c = -c, c > 0 ? (d = o - c, c = 0) : -c + o > l && (d = l + c)) : c < 0 ? (d = o + c, c = 0) : c + o > l && (d = l - c), e.isHorizontal() ? (i.transform(`translate3d(${c}px, 0, 0)`), i[0].style.width = `${d}px`) : (i.transform(`translate3d(0px, ${c}px, 0)`), i[0].style.height = `${d}px`), r.hide && (clearTimeout(h), n[0].style.opacity = 1, h = setTimeout((() => { n[0].style.opacity = 0, n.transition(400) }), 1e3)) } function g() { if (!e.params.scrollbar.el || !e.scrollbar.el) return; const { scrollbar: t } = e, { $dragEl: s, $el: a } = t; s[0].style.width = "", s[0].style.height = "", l = e.isHorizontal() ? a[0].offsetWidth : a[0].offsetHeight, c = e.size / (e.virtualSize + e.params.slidesOffsetBefore - (e.params.centeredSlides ? e.snapGrid[0] : 0)), o = "auto" === e.params.scrollbar.dragSize ? l * c : parseInt(e.params.scrollbar.dragSize, 10), e.isHorizontal() ? s[0].style.width = `${o}px` : s[0].style.height = `${o}px`, a[0].style.display = c >= 1 ? "none" : "", e.params.scrollbar.hide && (a[0].style.opacity = 0), e.params.watchOverflow && e.enabled && t.$el[e.isLocked ? "addClass" : "removeClass"](e.params.scrollbar.lockClass) } function v(t) { return e.isHorizontal() ? "touchstart" === t.type || "touchmove" === t.type ? t.targetTouches[0].clientX : t.clientX : "touchstart" === t.type || "touchmove" === t.type ? t.targetTouches[0].clientY : t.clientY } function w(t) { const { scrollbar: s, rtlTranslate: a } = e, { $el: i } = s; let n; n = (v(t) - i.offset()[e.isHorizontal() ? "left" : "top"] - (null !== r ? r : o / 2)) / (l - o), n = Math.max(Math.min(n, 1), 0), a && (n = 1 - n); const d = e.minTranslate() + (e.maxTranslate() - e.minTranslate()) * n; e.updateProgress(d), e.setTranslate(d), e.updateActiveIndex(), e.updateSlidesClasses() } function b(t) { const s = e.params.scrollbar, { scrollbar: a, $wrapperEl: n } = e, { $el: o, $dragEl: l } = a; u = !0, r = t.target === l[0] || t.target === l ? v(t) - t.target.getBoundingClientRect()[e.isHorizontal() ? "left" : "top"] : null, t.preventDefault(), t.stopPropagation(), n.transition(100), l.transition(100), w(t), clearTimeout(m), o.transition(0), s.hide && o.css("opacity", 1), e.params.cssMode && e.$wrapperEl.css("scroll-snap-type", "none"), i("scrollbarDragStart", t) } function y(t) { const { scrollbar: s, $wrapperEl: a } = e, { $el: n, $dragEl: r } = s; u && (t.preventDefault ? t.preventDefault() : t.returnValue = !1, w(t), a.transition(0), n.transition(0), r.transition(0), i("scrollbarDragMove", t)) } function $(t) { const s = e.params.scrollbar, { scrollbar: a, $wrapperEl: n } = e, { $el: r } = a; u && (u = !1, e.params.cssMode && (e.$wrapperEl.css("scroll-snap-type", ""), n.transition("")), s.hide && (clearTimeout(m), m = p((() => { r.css("opacity", 0), r.transition(400) }), 1e3)), i("scrollbarDragEnd", t), s.snapOnRelease && e.slideToClosest()) } function x(t) { const { scrollbar: s, touchEventsTouch: a, touchEventsDesktop: i, params: r, support: o } = e, l = s.$el[0], d = !(!o.passiveListener || !r.passiveListeners) && { passive: !1, capture: !1 }, c = !(!o.passiveListener || !r.passiveListeners) && { passive: !0, capture: !1 }; if (!l) return; const p = "on" === t ? "addEventListener" : "removeEventListener"; o.touch ? (l[p](a.start, b, d), l[p](a.move, y, d), l[p](a.end, $, c)) : (l[p](i.start, b, d), n[p](i.move, y, d), n[p](i.end, $, c)) } function C() { const { scrollbar: t, $el: s } = e; e.params.scrollbar = Y(e, e.originalParams.scrollbar, e.params.scrollbar, { el: "swiper-scrollbar" }); const a = e.params.scrollbar; if (!a.el) return; let i = d(a.el); e.params.uniqueNavElements && "string" == typeof a.el && i.length > 1 && 1 === s.find(a.el).length && (i = s.find(a.el)); let n = i.find(`.${e.params.scrollbar.dragClass}`); 0 === n.length && (n = d(`<div class="${e.params.scrollbar.dragClass}"></div>`), i.append(n)), Object.assign(t, { $el: i, el: i[0], $dragEl: n, dragEl: n[0] }), a.draggable && e.params.scrollbar.el && x("on"), i && i[e.enabled ? "removeClass" : "addClass"](e.params.scrollbar.lockClass) } function E() { e.params.scrollbar.el && x("off") } t({ scrollbar: { el: null, dragSize: "auto", hide: !1, draggable: !1, snapOnRelease: !0, lockClass: "swiper-scrollbar-lock", dragClass: "swiper-scrollbar-drag" } }), e.scrollbar = { el: null, dragEl: null, $el: null, $dragEl: null }, s("init", (() => { C(), g(), f() })), s("update resize observerUpdate lock unlock", (() => { g() })), s("setTranslate", (() => { f() })), s("setTransition", ((t, s) => { !function (t) { e.params.scrollbar.el && e.scrollbar.el && e.scrollbar.$dragEl.transition(t) }(s) })), s("enable disable", (() => { const { $el: t } = e.scrollbar; t && t[e.enabled ? "removeClass" : "addClass"](e.params.scrollbar.lockClass) })), s("destroy", (() => { E() })), Object.assign(e.scrollbar, { updateSize: g, setTranslate: f, init: C, destroy: E }) }, function ({ swiper: e, extendParams: t, on: s }) { t({ parallax: { enabled: !1 } }); const a = (t, s) => { const { rtl: a } = e, i = d(t), n = a ? -1 : 1, r = i.attr("data-swiper-parallax") || "0"; let o = i.attr("data-swiper-parallax-x"), l = i.attr("data-swiper-parallax-y"); const c = i.attr("data-swiper-parallax-scale"), p = i.attr("data-swiper-parallax-opacity"); if (o || l ? (o = o || "0", l = l || "0") : e.isHorizontal() ? (o = r, l = "0") : (l = r, o = "0"), o = o.indexOf("%") >= 0 ? parseInt(o, 10) * s * n + "%" : o * s * n + "px", l = l.indexOf("%") >= 0 ? parseInt(l, 10) * s + "%" : l * s + "px", null != p) { const e = p - (p - 1) * (1 - Math.abs(s)); i[0].style.opacity = e } if (null == c) i.transform(`translate3d(${o}, ${l}, 0px)`); else { const e = c - (c - 1) * (1 - Math.abs(s)); i.transform(`translate3d(${o}, ${l}, 0px) scale(${e})`) } }, i = () => { const { $el: t, slides: s, progress: i, snapGrid: n } = e; t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e => { a(e, i) })), s.each(((t, s) => { let r = t.progress; e.params.slidesPerGroup > 1 && "auto" !== e.params.slidesPerView && (r += Math.ceil(s / 2) - i * (n.length - 1)), r = Math.min(Math.max(r, -1), 1), d(t).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e => { a(e, r) })) })) }; s("beforeInit", (() => { e.params.parallax.enabled && (e.params.watchSlidesProgress = !0, e.originalParams.watchSlidesProgress = !0) })), s("init", (() => { e.params.parallax.enabled && i() })), s("setTranslate", (() => { e.params.parallax.enabled && i() })), s("setTransition", ((t, s) => { e.params.parallax.enabled && ((t = e.params.speed) => { const { $el: s } = e; s.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e => { const s = d(e); let a = parseInt(s.attr("data-swiper-parallax-duration"), 10) || t; 0 === t && (a = 0), s.transition(a) })) })(s) })) }, function ({ swiper: e, extendParams: t, on: s, emit: a }) { const i = n(); t({ zoom: { enabled: !1, maxRatio: 3, minRatio: 1, toggle: !0, containerClass: "swiper-zoom-container", zoomedSlideClass: "swiper-slide-zoomed" } }), e.zoom = { enabled: !1 }; let r, o, l, c = 1, p = !1; const u = { $slideEl: void 0, slideWidth: void 0, slideHeight: void 0, $imageEl: void 0, $imageWrapEl: void 0, maxRatio: 3 }, m = { isTouched: void 0, isMoved: void 0, currentX: void 0, currentY: void 0, minX: void 0, minY: void 0, maxX: void 0, maxY: void 0, width: void 0, height: void 0, startX: void 0, startY: void 0, touchesStart: {}, touchesCurrent: {} }, f = { x: void 0, y: void 0, prevPositionX: void 0, prevPositionY: void 0, prevTime: void 0 }; let g = 1; function v(e) { if (e.targetTouches.length < 2) return 1; const t = e.targetTouches[0].pageX, s = e.targetTouches[0].pageY, a = e.targetTouches[1].pageX, i = e.targetTouches[1].pageY; return Math.sqrt((a - t) ** 2 + (i - s) ** 2) } function w(t) { const s = e.support, a = e.params.zoom; if (o = !1, l = !1, !s.gestures) { if ("touchstart" !== t.type || "touchstart" === t.type && t.targetTouches.length < 2) return; o = !0, u.scaleStart = v(t) } u.$slideEl && u.$slideEl.length || (u.$slideEl = d(t.target).closest(`.${e.params.slideClass}`), 0 === u.$slideEl.length && (u.$slideEl = e.slides.eq(e.activeIndex)), u.$imageEl = u.$slideEl.find(`.${a.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0), u.$imageWrapEl = u.$imageEl.parent(`.${a.containerClass}`), u.maxRatio = u.$imageWrapEl.attr("data-swiper-zoom") || a.maxRatio, 0 !== u.$imageWrapEl.length) ? (u.$imageEl && u.$imageEl.transition(0), p = !0) : u.$imageEl = void 0 } function b(t) { const s = e.support, a = e.params.zoom, i = e.zoom; if (!s.gestures) { if ("touchmove" !== t.type || "touchmove" === t.type && t.targetTouches.length < 2) return; l = !0, u.scaleMove = v(t) } u.$imageEl && 0 !== u.$imageEl.length ? (s.gestures ? i.scale = t.scale * c : i.scale = u.scaleMove / u.scaleStart * c, i.scale > u.maxRatio && (i.scale = u.maxRatio - 1 + (i.scale - u.maxRatio + 1) ** .5), i.scale < a.minRatio && (i.scale = a.minRatio + 1 - (a.minRatio - i.scale + 1) ** .5), u.$imageEl.transform(`translate3d(0,0,0) scale(${i.scale})`)) : "gesturechange" === t.type && w(t) } function y(t) { const s = e.device, a = e.support, i = e.params.zoom, n = e.zoom; if (!a.gestures) { if (!o || !l) return; if ("touchend" !== t.type || "touchend" === t.type && t.changedTouches.length < 2 && !s.android) return; o = !1, l = !1 } u.$imageEl && 0 !== u.$imageEl.length && (n.scale = Math.max(Math.min(n.scale, u.maxRatio), i.minRatio), u.$imageEl.transition(e.params.speed).transform(`translate3d(0,0,0) scale(${n.scale})`), c = n.scale, p = !1, 1 === n.scale && (u.$slideEl = void 0)) } function $(t) { const s = e.zoom; if (!u.$imageEl || 0 === u.$imageEl.length) return; if (e.allowClick = !1, !m.isTouched || !u.$slideEl) return; m.isMoved || (m.width = u.$imageEl[0].offsetWidth, m.height = u.$imageEl[0].offsetHeight, m.startX = h(u.$imageWrapEl[0], "x") || 0, m.startY = h(u.$imageWrapEl[0], "y") || 0, u.slideWidth = u.$slideEl[0].offsetWidth, u.slideHeight = u.$slideEl[0].offsetHeight, u.$imageWrapEl.transition(0)); const a = m.width * s.scale, i = m.height * s.scale; if (!(a < u.slideWidth && i < u.slideHeight)) { if (m.minX = Math.min(u.slideWidth / 2 - a / 2, 0), m.maxX = -m.minX, m.minY = Math.min(u.slideHeight / 2 - i / 2, 0), m.maxY = -m.minY, m.touchesCurrent.x = "touchmove" === t.type ? t.targetTouches[0].pageX : t.pageX, m.touchesCurrent.y = "touchmove" === t.type ? t.targetTouches[0].pageY : t.pageY, !m.isMoved && !p) { if (e.isHorizontal() && (Math.floor(m.minX) === Math.floor(m.startX) && m.touchesCurrent.x < m.touchesStart.x || Math.floor(m.maxX) === Math.floor(m.startX) && m.touchesCurrent.x > m.touchesStart.x)) return void (m.isTouched = !1); if (!e.isHorizontal() && (Math.floor(m.minY) === Math.floor(m.startY) && m.touchesCurrent.y < m.touchesStart.y || Math.floor(m.maxY) === Math.floor(m.startY) && m.touchesCurrent.y > m.touchesStart.y)) return void (m.isTouched = !1) } t.cancelable && t.preventDefault(), t.stopPropagation(), m.isMoved = !0, m.currentX = m.touchesCurrent.x - m.touchesStart.x + m.startX, m.currentY = m.touchesCurrent.y - m.touchesStart.y + m.startY, m.currentX < m.minX && (m.currentX = m.minX + 1 - (m.minX - m.currentX + 1) ** .8), m.currentX > m.maxX && (m.currentX = m.maxX - 1 + (m.currentX - m.maxX + 1) ** .8), m.currentY < m.minY && (m.currentY = m.minY + 1 - (m.minY - m.currentY + 1) ** .8), m.currentY > m.maxY && (m.currentY = m.maxY - 1 + (m.currentY - m.maxY + 1) ** .8), f.prevPositionX || (f.prevPositionX = m.touchesCurrent.x), f.prevPositionY || (f.prevPositionY = m.touchesCurrent.y), f.prevTime || (f.prevTime = Date.now()), f.x = (m.touchesCurrent.x - f.prevPositionX) / (Date.now() - f.prevTime) / 2, f.y = (m.touchesCurrent.y - f.prevPositionY) / (Date.now() - f.prevTime) / 2, Math.abs(m.touchesCurrent.x - f.prevPositionX) < 2 && (f.x = 0), Math.abs(m.touchesCurrent.y - f.prevPositionY) < 2 && (f.y = 0), f.prevPositionX = m.touchesCurrent.x, f.prevPositionY = m.touchesCurrent.y, f.prevTime = Date.now(), u.$imageWrapEl.transform(`translate3d(${m.currentX}px, ${m.currentY}px,0)`) } } function x() { const t = e.zoom; u.$slideEl && e.previousIndex !== e.activeIndex && (u.$imageEl && u.$imageEl.transform("translate3d(0,0,0) scale(1)"), u.$imageWrapEl && u.$imageWrapEl.transform("translate3d(0,0,0)"), t.scale = 1, c = 1, u.$slideEl = void 0, u.$imageEl = void 0, u.$imageWrapEl = void 0) } function C(t) { const s = e.zoom, a = e.params.zoom; if (u.$slideEl || (t && t.target && (u.$slideEl = d(t.target).closest(`.${e.params.slideClass}`)), u.$slideEl || (e.params.virtual && e.params.virtual.enabled && e.virtual ? u.$slideEl = e.$wrapperEl.children(`.${e.params.slideActiveClass}`) : u.$slideEl = e.slides.eq(e.activeIndex)), u.$imageEl = u.$slideEl.find(`.${a.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0), u.$imageWrapEl = u.$imageEl.parent(`.${a.containerClass}`)), !u.$imageEl || 0 === u.$imageEl.length || !u.$imageWrapEl || 0 === u.$imageWrapEl.length) return; let n, r, o, l, p, h, f, g, v, w, b, y, $, x, C, E, S, T; e.params.cssMode && (e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.touchAction = "none"), u.$slideEl.addClass(`${a.zoomedSlideClass}`), void 0 === m.touchesStart.x && t ? (n = "touchend" === t.type ? t.changedTouches[0].pageX : t.pageX, r = "touchend" === t.type ? t.changedTouches[0].pageY : t.pageY) : (n = m.touchesStart.x, r = m.touchesStart.y), s.scale = u.$imageWrapEl.attr("data-swiper-zoom") || a.maxRatio, c = u.$imageWrapEl.attr("data-swiper-zoom") || a.maxRatio, t ? (S = u.$slideEl[0].offsetWidth, T = u.$slideEl[0].offsetHeight, o = u.$slideEl.offset().left + i.scrollX, l = u.$slideEl.offset().top + i.scrollY, p = o + S / 2 - n, h = l + T / 2 - r, v = u.$imageEl[0].offsetWidth, w = u.$imageEl[0].offsetHeight, b = v * s.scale, y = w * s.scale, $ = Math.min(S / 2 - b / 2, 0), x = Math.min(T / 2 - y / 2, 0), C = -$, E = -x, f = p * s.scale, g = h * s.scale, f < $ && (f = $), f > C && (f = C), g < x && (g = x), g > E && (g = E)) : (f = 0, g = 0), u.$imageWrapEl.transition(300).transform(`translate3d(${f}px, ${g}px,0)`), u.$imageEl.transition(300).transform(`translate3d(0,0,0) scale(${s.scale})`) } function E() { const t = e.zoom, s = e.params.zoom; u.$slideEl || (e.params.virtual && e.params.virtual.enabled && e.virtual ? u.$slideEl = e.$wrapperEl.children(`.${e.params.slideActiveClass}`) : u.$slideEl = e.slides.eq(e.activeIndex), u.$imageEl = u.$slideEl.find(`.${s.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0), u.$imageWrapEl = u.$imageEl.parent(`.${s.containerClass}`)), u.$imageEl && 0 !== u.$imageEl.length && u.$imageWrapEl && 0 !== u.$imageWrapEl.length && (e.params.cssMode && (e.wrapperEl.style.overflow = "", e.wrapperEl.style.touchAction = ""), t.scale = 1, c = 1, u.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"), u.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"), u.$slideEl.removeClass(`${s.zoomedSlideClass}`), u.$slideEl = void 0) } function S(t) { const s = e.zoom; s.scale && 1 !== s.scale ? E() : C(t) } function T() { const t = e.support; return { passiveListener: !("touchstart" !== e.touchEvents.start || !t.passiveListener || !e.params.passiveListeners) && { passive: !0, capture: !1 }, activeListenerWithCapture: !t.passiveListener || { passive: !1, capture: !0 } } } function M() { return `.${e.params.slideClass}` } function k(t) { const { passiveListener: s } = T(), a = M(); e.$wrapperEl[t]("gesturestart", a, w, s), e.$wrapperEl[t]("gesturechange", a, b, s), e.$wrapperEl[t]("gestureend", a, y, s) } function L() { r || (r = !0, k("on")) } function P() { r && (r = !1, k("off")) } function I() { const t = e.zoom; if (t.enabled) return; t.enabled = !0; const s = e.support, { passiveListener: a, activeListenerWithCapture: i } = T(), n = M(); s.gestures ? (e.$wrapperEl.on(e.touchEvents.start, L, a), e.$wrapperEl.on(e.touchEvents.end, P, a)) : "touchstart" === e.touchEvents.start && (e.$wrapperEl.on(e.touchEvents.start, n, w, a), e.$wrapperEl.on(e.touchEvents.move, n, b, i), e.$wrapperEl.on(e.touchEvents.end, n, y, a), e.touchEvents.cancel && e.$wrapperEl.on(e.touchEvents.cancel, n, y, a)), e.$wrapperEl.on(e.touchEvents.move, `.${e.params.zoom.containerClass}`, $, i) } function z() { const t = e.zoom; if (!t.enabled) return; const s = e.support; t.enabled = !1; const { passiveListener: a, activeListenerWithCapture: i } = T(), n = M(); s.gestures ? (e.$wrapperEl.off(e.touchEvents.start, L, a), e.$wrapperEl.off(e.touchEvents.end, P, a)) : "touchstart" === e.touchEvents.start && (e.$wrapperEl.off(e.touchEvents.start, n, w, a), e.$wrapperEl.off(e.touchEvents.move, n, b, i), e.$wrapperEl.off(e.touchEvents.end, n, y, a), e.touchEvents.cancel && e.$wrapperEl.off(e.touchEvents.cancel, n, y, a)), e.$wrapperEl.off(e.touchEvents.move, `.${e.params.zoom.containerClass}`, $, i) } Object.defineProperty(e.zoom, "scale", { get: () => g, set(e) { if (g !== e) { const t = u.$imageEl ? u.$imageEl[0] : void 0, s = u.$slideEl ? u.$slideEl[0] : void 0; a("zoomChange", e, t, s) } g = e } }), s("init", (() => { e.params.zoom.enabled && I() })), s("destroy", (() => { z() })), s("touchStart", ((t, s) => { e.zoom.enabled && function (t) { const s = e.device; u.$imageEl && 0 !== u.$imageEl.length && (m.isTouched || (s.android && t.cancelable && t.preventDefault(), m.isTouched = !0, m.touchesStart.x = "touchstart" === t.type ? t.targetTouches[0].pageX : t.pageX, m.touchesStart.y = "touchstart" === t.type ? t.targetTouches[0].pageY : t.pageY)) }(s) })), s("touchEnd", ((t, s) => { e.zoom.enabled && function () { const t = e.zoom; if (!u.$imageEl || 0 === u.$imageEl.length) return; if (!m.isTouched || !m.isMoved) return m.isTouched = !1, void (m.isMoved = !1); m.isTouched = !1, m.isMoved = !1; let s = 300, a = 300; const i = f.x * s, n = m.currentX + i, r = f.y * a, o = m.currentY + r; 0 !== f.x && (s = Math.abs((n - m.currentX) / f.x)), 0 !== f.y && (a = Math.abs((o - m.currentY) / f.y)); const l = Math.max(s, a); m.currentX = n, m.currentY = o; const d = m.width * t.scale, c = m.height * t.scale; m.minX = Math.min(u.slideWidth / 2 - d / 2, 0), m.maxX = -m.minX, m.minY = Math.min(u.slideHeight / 2 - c / 2, 0), m.maxY = -m.minY, m.currentX = Math.max(Math.min(m.currentX, m.maxX), m.minX), m.currentY = Math.max(Math.min(m.currentY, m.maxY), m.minY), u.$imageWrapEl.transition(l).transform(`translate3d(${m.currentX}px, ${m.currentY}px,0)`) }() })), s("doubleTap", ((t, s) => { !e.animating && e.params.zoom.enabled && e.zoom.enabled && e.params.zoom.toggle && S(s) })), s("transitionEnd", (() => { e.zoom.enabled && e.params.zoom.enabled && x() })), s("slideChange", (() => { e.zoom.enabled && e.params.zoom.enabled && e.params.cssMode && x() })), Object.assign(e.zoom, { enable: I, disable: z, in: C, out: E, toggle: S }) }, function ({ swiper: e, extendParams: t, on: s, emit: a }) { t({ lazy: { checkInView: !1, enabled: !1, loadPrevNext: !1, loadPrevNextAmount: 1, loadOnTransitionStart: !1, scrollingElement: "", elementClass: "swiper-lazy", loadingClass: "swiper-lazy-loading", loadedClass: "swiper-lazy-loaded", preloaderClass: "swiper-lazy-preloader" } }), e.lazy = {}; let i = !1, r = !1; function o(t, s = !0) { const i = e.params.lazy; if (void 0 === t) return; if (0 === e.slides.length) return; const n = e.virtual && e.params.virtual.enabled ? e.$wrapperEl.children(`.${e.params.slideClass}[data-swiper-slide-index="${t}"]`) : e.slides.eq(t), r = n.find(`.${i.elementClass}:not(.${i.loadedClass}):not(.${i.loadingClass})`); !n.hasClass(i.elementClass) || n.hasClass(i.loadedClass) || n.hasClass(i.loadingClass) || r.push(n[0]), 0 !== r.length && r.each((t => { const r = d(t); r.addClass(i.loadingClass); const l = r.attr("data-background"), c = r.attr("data-src"), p = r.attr("data-srcset"), u = r.attr("data-sizes"), h = r.parent("picture"); e.loadImage(r[0], c || l, p, u, !1, (() => { if (null != e && e && (!e || e.params) && !e.destroyed) { if (l ? (r.css("background-image", `url("${l}")`), r.removeAttr("data-background")) : (p && (r.attr("srcset", p), r.removeAttr("data-srcset")), u && (r.attr("sizes", u), r.removeAttr("data-sizes")), h.length && h.children("source").each((e => { const t = d(e); t.attr("data-srcset") && (t.attr("srcset", t.attr("data-srcset")), t.removeAttr("data-srcset")) })), c && (r.attr("src", c), r.removeAttr("data-src"))), r.addClass(i.loadedClass).removeClass(i.loadingClass), n.find(`.${i.preloaderClass}`).remove(), e.params.loop && s) { const t = n.attr("data-swiper-slide-index"); n.hasClass(e.params.slideDuplicateClass) ? o(e.$wrapperEl.children(`[data-swiper-slide-index="${t}"]:not(.${e.params.slideDuplicateClass})`).index(), !1) : o(e.$wrapperEl.children(`.${e.params.slideDuplicateClass}[data-swiper-slide-index="${t}"]`).index(), !1) } a("lazyImageReady", n[0], r[0]), e.params.autoHeight && e.updateAutoHeight() } })), a("lazyImageLoad", n[0], r[0]) })) } function l() { const { $wrapperEl: t, params: s, slides: a, activeIndex: i } = e, n = e.virtual && s.virtual.enabled, l = s.lazy; let c = s.slidesPerView; function p(e) { if (n) { if (t.children(`.${s.slideClass}[data-swiper-slide-index="${e}"]`).length) return !0 } else if (a[e]) return !0; return !1 } function u(e) { return n ? d(e).attr("data-swiper-slide-index") : d(e).index() } if ("auto" === c && (c = 0), r || (r = !0), e.params.watchSlidesProgress) t.children(`.${s.slideVisibleClass}`).each((e => { o(n ? d(e).attr("data-swiper-slide-index") : d(e).index()) })); else if (c > 1) for (let e = i; e < i + c; e += 1)p(e) && o(e); else o(i); if (l.loadPrevNext) if (c > 1 || l.loadPrevNextAmount && l.loadPrevNextAmount > 1) { const e = l.loadPrevNextAmount, t = c, s = Math.min(i + t + Math.max(e, t), a.length), n = Math.max(i - Math.max(t, e), 0); for (let e = i + c; e < s; e += 1)p(e) && o(e); for (let e = n; e < i; e += 1)p(e) && o(e) } else { const e = t.children(`.${s.slideNextClass}`); e.length > 0 && o(u(e)); const a = t.children(`.${s.slidePrevClass}`); a.length > 0 && o(u(a)) } } function c() { const t = n(); if (!e || e.destroyed) return; const s = e.params.lazy.scrollingElement ? d(e.params.lazy.scrollingElement) : d(t), a = s[0] === t, r = a ? t.innerWidth : s[0].offsetWidth, o = a ? t.innerHeight : s[0].offsetHeight, p = e.$el.offset(), { rtlTranslate: u } = e; let h = !1; u && (p.left -= e.$el[0].scrollLeft); const m = [[p.left, p.top], [p.left + e.width, p.top], [p.left, p.top + e.height], [p.left + e.width, p.top + e.height]]; for (let e = 0; e < m.length; e += 1) { const t = m[e]; if (t[0] >= 0 && t[0] <= r && t[1] >= 0 && t[1] <= o) { if (0 === t[0] && 0 === t[1]) continue; h = !0 } } const f = !("touchstart" !== e.touchEvents.start || !e.support.passiveListener || !e.params.passiveListeners) && { passive: !0, capture: !1 }; h ? (l(), s.off("scroll", c, f)) : i || (i = !0, s.on("scroll", c, f)) } s("beforeInit", (() => { e.params.lazy.enabled && e.params.preloadImages && (e.params.preloadImages = !1) })), s("init", (() => { e.params.lazy.enabled && (e.params.lazy.checkInView ? c() : l()) })), s("scroll", (() => { e.params.freeMode && e.params.freeMode.enabled && !e.params.freeMode.sticky && l() })), s("scrollbarDragMove resize _freeModeNoMomentumRelease", (() => { e.params.lazy.enabled && (e.params.lazy.checkInView ? c() : l()) })), s("transitionStart", (() => { e.params.lazy.enabled && (e.params.lazy.loadOnTransitionStart || !e.params.lazy.loadOnTransitionStart && !r) && (e.params.lazy.checkInView ? c() : l()) })), s("transitionEnd", (() => { e.params.lazy.enabled && !e.params.lazy.loadOnTransitionStart && (e.params.lazy.checkInView ? c() : l()) })), s("slideChange", (() => { const { lazy: t, cssMode: s, watchSlidesProgress: a, touchReleaseOnEdges: i, resistanceRatio: n } = e.params; t.enabled && (s || a && (i || 0 === n)) && l() })), Object.assign(e.lazy, { load: l, loadInSlide: o }) }, function ({ swiper: e, extendParams: t, on: s }) { function a(e, t) { const s = function () { let e, t, s; return (a, i) => { for (t = -1, e = a.length; e - t > 1;)s = e + t >> 1, a[s] <= i ? t = s : e = s; return e } }(); let a, i; return this.x = e, this.y = t, this.lastIndex = e.length - 1, this.interpolate = function (e) { return e ? (i = s(this.x, e), a = i - 1, (e - this.x[a]) * (this.y[i] - this.y[a]) / (this.x[i] - this.x[a]) + this.y[a]) : 0 }, this } function i() { e.controller.control && e.controller.spline && (e.controller.spline = void 0, delete e.controller.spline) } t({ controller: { control: void 0, inverse: !1, by: "slide" } }), e.controller = { control: void 0 }, s("beforeInit", (() => { e.controller.control = e.params.controller.control })), s("update", (() => { i() })), s("resize", (() => { i() })), s("observerUpdate", (() => { i() })), s("setTranslate", ((t, s, a) => { e.controller.control && e.controller.setTranslate(s, a) })), s("setTransition", ((t, s, a) => { e.controller.control && e.controller.setTransition(s, a) })), Object.assign(e.controller, { setTranslate: function (t, s) { const i = e.controller.control; let n, r; const o = e.constructor; function l(t) { const s = e.rtlTranslate ? -e.translate : e.translate; "slide" === e.params.controller.by && (function (t) { e.controller.spline || (e.controller.spline = e.params.loop ? new a(e.slidesGrid, t.slidesGrid) : new a(e.snapGrid, t.snapGrid)) }(t), r = -e.controller.spline.interpolate(-s)), r && "container" !== e.params.controller.by || (n = (t.maxTranslate() - t.minTranslate()) / (e.maxTranslate() - e.minTranslate()), r = (s - e.minTranslate()) * n + t.minTranslate()), e.params.controller.inverse && (r = t.maxTranslate() - r), t.updateProgress(r), t.setTranslate(r, e), t.updateActiveIndex(), t.updateSlidesClasses() } if (Array.isArray(i)) for (let e = 0; e < i.length; e += 1)i[e] !== s && i[e] instanceof o && l(i[e]); else i instanceof o && s !== i && l(i) }, setTransition: function (t, s) { const a = e.constructor, i = e.controller.control; let n; function r(s) { s.setTransition(t, e), 0 !== t && (s.transitionStart(), s.params.autoHeight && p((() => { s.updateAutoHeight() })), s.$wrapperEl.transitionEnd((() => { i && (s.params.loop && "slide" === e.params.controller.by && s.loopFix(), s.transitionEnd()) }))) } if (Array.isArray(i)) for (n = 0; n < i.length; n += 1)i[n] !== s && i[n] instanceof a && r(i[n]); else i instanceof a && s !== i && r(i) } }) }, function ({ swiper: e, extendParams: t, on: s }) { t({ 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}}", slideLabelMessage: "{{index}} / {{slidesLength}}", containerMessage: null, containerRoleDescriptionMessage: null, itemRoleDescriptionMessage: null, slideRole: "group" } }); let a = null; function i(e) { const t = a; 0 !== t.length && (t.html(""), t.html(e)) } function n(e) { e.attr("tabIndex", "0") } function r(e) { e.attr("tabIndex", "-1") } function o(e, t) { e.attr("role", t) } function l(e, t) { e.attr("aria-roledescription", t) } function c(e, t) { e.attr("aria-label", t) } function p(e) { e.attr("aria-disabled", !0) } function u(e) { e.attr("aria-disabled", !1) } function h(t) { if (13 !== t.keyCode && 32 !== t.keyCode) return; const s = e.params.a11y, a = d(t.target); e.navigation && e.navigation.$nextEl && a.is(e.navigation.$nextEl) && (e.isEnd && !e.params.loop || e.slideNext(), e.isEnd ? i(s.lastSlideMessage) : i(s.nextSlideMessage)), e.navigation && e.navigation.$prevEl && a.is(e.navigation.$prevEl) && (e.isBeginning && !e.params.loop || e.slidePrev(), e.isBeginning ? i(s.firstSlideMessage) : i(s.prevSlideMessage)), e.pagination && a.is(X(e.params.pagination.bulletClass)) && a[0].click() } function m() { if (e.params.loop || !e.navigation) return; const { $nextEl: t, $prevEl: s } = e.navigation; s && s.length > 0 && (e.isBeginning ? (p(s), r(s)) : (u(s), n(s))), t && t.length > 0 && (e.isEnd ? (p(t), r(t)) : (u(t), n(t))) } function f() { return e.pagination && e.pagination.bullets && e.pagination.bullets.length } function g() { return f() && e.params.pagination.clickable } const v = (e, t, s) => { n(e), "BUTTON" !== e[0].tagName && (o(e, "button"), e.on("keydown", h)), c(e, s), function (e, t) { e.attr("aria-controls", t) }(e, t) }; s("beforeInit", (() => { a = d(`<span class="${e.params.a11y.notificationClass}" aria-live="assertive" aria-atomic="true"></span>`) })), s("afterInit", (() => { e.params.a11y.enabled && (function () { const t = e.params.a11y; e.$el.append(a); const s = e.$el; t.containerRoleDescriptionMessage && l(s, t.containerRoleDescriptionMessage), t.containerMessage && c(s, t.containerMessage); const i = e.$wrapperEl, n = i.attr("id") || `swiper-wrapper-${function (e = 16) { return "x".repeat(e).replace(/x/g, (() => Math.round(16 * Math.random()).toString(16))) }(16)}`, r = e.params.autoplay && e.params.autoplay.enabled ? "off" : "polite"; var p; p = n, i.attr("id", p), function (e, t) { e.attr("aria-live", t) }(i, r), t.itemRoleDescriptionMessage && l(d(e.slides), t.itemRoleDescriptionMessage), o(d(e.slides), t.slideRole); const u = e.params.loop ? e.slides.filter((t => !t.classList.contains(e.params.slideDuplicateClass))).length : e.slides.length; let m, f; e.slides.each(((s, a) => { const i = d(s), n = e.params.loop ? parseInt(i.attr("data-swiper-slide-index"), 10) : a; c(i, t.slideLabelMessage.replace(/\{\{index\}\}/, n + 1).replace(/\{\{slidesLength\}\}/, u)) })), e.navigation && e.navigation.$nextEl && (m = e.navigation.$nextEl), e.navigation && e.navigation.$prevEl && (f = e.navigation.$prevEl), m && m.length && v(m, n, t.nextSlideMessage), f && f.length && v(f, n, t.prevSlideMessage), g() && e.pagination.$el.on("keydown", X(e.params.pagination.bulletClass), h) }(), m()) })), s("toEdge", (() => { e.params.a11y.enabled && m() })), s("fromEdge", (() => { e.params.a11y.enabled && m() })), s("paginationUpdate", (() => { e.params.a11y.enabled && function () { const t = e.params.a11y; f() && e.pagination.bullets.each((s => { const a = d(s); e.params.pagination.clickable && (n(a), e.params.pagination.renderBullet || (o(a, "button"), c(a, t.paginationBulletMessage.replace(/\{\{index\}\}/, a.index() + 1)))), a.is(`.${e.params.pagination.bulletActiveClass}`) ? a.attr("aria-current", "true") : a.removeAttr("aria-current") })) }() })), s("destroy", (() => { e.params.a11y.enabled && function () { let t, s; a && a.length > 0 && a.remove(), e.navigation && e.navigation.$nextEl && (t = e.navigation.$nextEl), e.navigation && e.navigation.$prevEl && (s = e.navigation.$prevEl), t && t.off("keydown", h), s && s.off("keydown", h), g() && e.pagination.$el.off("keydown", X(e.params.pagination.bulletClass), h) }() })) }, function ({ swiper: e, extendParams: t, on: s }) { t({ history: { enabled: !1, root: "", replaceState: !1, key: "slides" } }); let a = !1, i = {}; const r = e => e.toString().replace(/\s+/g, "-").replace(/[^\w-]+/g, "").replace(/--+/g, "-").replace(/^-+/, "").replace(/-+$/, ""), o = e => { const t = n(); let s; s = e ? new URL(e) : t.location; const a = s.pathname.slice(1).split("/").filter((e => "" !== e)), i = a.length; return { key: a[i - 2], value: a[i - 1] } }, l = (t, s) => { const i = n(); if (!a || !e.params.history.enabled) return; let o; o = e.params.url ? new URL(e.params.url) : i.location; const l = e.slides.eq(s); let d = r(l.attr("data-history")); if (e.params.history.root.length > 0) { let s = e.params.history.root; "/" === s[s.length - 1] && (s = s.slice(0, s.length - 1)), d = `${s}/${t}/${d}` } else o.pathname.includes(t) || (d = `${t}/${d}`); const c = i.history.state; c && c.value === d || (e.params.history.replaceState ? i.history.replaceState({ value: d }, null, d) : i.history.pushState({ value: d }, null, d)) }, d = (t, s, a) => { if (s) for (let i = 0, n = e.slides.length; i < n; i += 1) { const n = e.slides.eq(i); if (r(n.attr("data-history")) === s && !n.hasClass(e.params.slideDuplicateClass)) { const s = n.index(); e.slideTo(s, t, a) } } else e.slideTo(0, t, a) }, c = () => { i = o(e.params.url), d(e.params.speed, e.paths.value, !1) }; s("init", (() => { e.params.history.enabled && (() => { const t = n(); if (e.params.history) { if (!t.history || !t.history.pushState) return e.params.history.enabled = !1, void (e.params.hashNavigation.enabled = !0); a = !0, i = o(e.params.url), (i.key || i.value) && (d(0, i.value, e.params.runCallbacksOnInit), e.params.history.replaceState || t.addEventListener("popstate", c)) } })() })), s("destroy", (() => { e.params.history.enabled && (() => { const t = n(); e.params.history.replaceState || t.removeEventListener("popstate", c) })() })), s("transitionEnd _freeModeNoMomentumRelease", (() => { a && l(e.params.history.key, e.activeIndex) })), s("slideChange", (() => { a && e.params.cssMode && l(e.params.history.key, e.activeIndex) })) }, function ({ swiper: e, extendParams: t, emit: s, on: i }) { let r = !1; const o = a(), l = n(); t({ hashNavigation: { enabled: !1, replaceState: !1, watchState: !1 } }); const c = () => { s("hashChange"); const t = o.location.hash.replace("#", ""); if (t !== e.slides.eq(e.activeIndex).attr("data-hash")) { const s = e.$wrapperEl.children(`.${e.params.slideClass}[data-hash="${t}"]`).index(); if (void 0 === s) return; e.slideTo(s) } }, p = () => { if (r && e.params.hashNavigation.enabled) if (e.params.hashNavigation.replaceState && l.history && l.history.replaceState) l.history.replaceState(null, null, `#${e.slides.eq(e.activeIndex).attr("data-hash")}` || ""), s("hashSet"); else { const t = e.slides.eq(e.activeIndex), a = t.attr("data-hash") || t.attr("data-history"); o.location.hash = a || "", s("hashSet") } }; i("init", (() => { e.params.hashNavigation.enabled && (() => { if (!e.params.hashNavigation.enabled || e.params.history && e.params.history.enabled) return; r = !0; const t = o.location.hash.replace("#", ""); if (t) { const s = 0; for (let a = 0, i = e.slides.length; a < i; a += 1) { const i = e.slides.eq(a); if ((i.attr("data-hash") || i.attr("data-history")) === t && !i.hasClass(e.params.slideDuplicateClass)) { const t = i.index(); e.slideTo(t, s, e.params.runCallbacksOnInit, !0) } } } e.params.hashNavigation.watchState && d(l).on("hashchange", c) })() })), i("destroy", (() => { e.params.hashNavigation.enabled && e.params.hashNavigation.watchState && d(l).off("hashchange", c) })), i("transitionEnd _freeModeNoMomentumRelease", (() => { r && p() })), i("slideChange", (() => { r && e.params.cssMode && p() })) }, function ({ swiper: e, extendParams: t, on: s, emit: i }) { let n; function r() { const t = e.slides.eq(e.activeIndex); let s = e.params.autoplay.delay; t.attr("data-swiper-autoplay") && (s = t.attr("data-swiper-autoplay") || e.params.autoplay.delay), clearTimeout(n), n = p((() => { let t; e.params.autoplay.reverseDirection ? e.params.loop ? (e.loopFix(), t = e.slidePrev(e.params.speed, !0, !0), i("autoplay")) : e.isBeginning ? e.params.autoplay.stopOnLastSlide ? l() : (t = e.slideTo(e.slides.length - 1, e.params.speed, !0, !0), i("autoplay")) : (t = e.slidePrev(e.params.speed, !0, !0), i("autoplay")) : e.params.loop ? (e.loopFix(), t = e.slideNext(e.params.speed, !0, !0), i("autoplay")) : e.isEnd ? e.params.autoplay.stopOnLastSlide ? l() : (t = e.slideTo(0, e.params.speed, !0, !0), i("autoplay")) : (t = e.slideNext(e.params.speed, !0, !0), i("autoplay")), (e.params.cssMode && e.autoplay.running || !1 === t) && r() }), s) } function o() { return void 0 === n && !e.autoplay.running && (e.autoplay.running = !0, i("autoplayStart"), r(), !0) } function l() { return !!e.autoplay.running && void 0 !== n && (n && (clearTimeout(n), n = void 0), e.autoplay.running = !1, i("autoplayStop"), !0) } function d(t) { e.$wrapperEl && e.$wrapperEl[0] && e.autoplay.running && (e.autoplay.paused || (n && clearTimeout(n), e.autoplay.paused = !0, 0 !== t && e.params.autoplay.waitForTransition ? ["transitionend", "webkitTransitionEnd"].forEach((t => { e.$wrapperEl[0].addEventListener(t, u) })) : (e.autoplay.paused = !1, r()))) } function c() { const t = a(); "hidden" === t.visibilityState && e.autoplay.running && d(), "visible" === t.visibilityState && e.autoplay.paused && (r(), e.autoplay.paused = !1) } function u(t) { e && !e.destroyed && e.$wrapperEl && t.target === e.$wrapperEl[0] && (["transitionend", "webkitTransitionEnd"].forEach((t => { e.$wrapperEl[0].removeEventListener(t, u) })), e.autoplay.paused = !1, e.autoplay.running ? r() : l()) } function h() { e.params.autoplay.disableOnInteraction ? l() : d(), ["transitionend", "webkitTransitionEnd"].forEach((t => { e.$wrapperEl[0].removeEventListener(t, u) })) } function m() { e.params.autoplay.disableOnInteraction || (e.autoplay.paused = !1, r()) } e.autoplay = { running: !1, paused: !1 }, t({ autoplay: { enabled: !1, delay: 3e3, waitForTransition: !0, disableOnInteraction: !0, stopOnLastSlide: !1, reverseDirection: !1, pauseOnMouseEnter: !1 } }), s("init", (() => { e.params.autoplay.enabled && (o(), a().addEventListener("visibilitychange", c), e.params.autoplay.pauseOnMouseEnter && (e.$el.on("mouseenter", h), e.$el.on("mouseleave", m))) })), s("beforeTransitionStart", ((t, s, a) => { e.autoplay.running && (a || !e.params.autoplay.disableOnInteraction ? e.autoplay.pause(s) : l()) })), s("sliderFirstMove", (() => { e.autoplay.running && (e.params.autoplay.disableOnInteraction ? l() : d()) })), s("touchEnd", (() => { e.params.cssMode && e.autoplay.paused && !e.params.autoplay.disableOnInteraction && r() })), s("destroy", (() => { e.$el.off("mouseenter", h), e.$el.off("mouseleave", m), e.autoplay.running && l(), a().removeEventListener("visibilitychange", c) })), Object.assign(e.autoplay, { pause: d, run: r, start: o, stop: l }) }, function ({ swiper: e, extendParams: t, on: s }) { t({ thumbs: { swiper: null, multipleActiveThumbs: !0, autoScrollOffset: 0, slideThumbActiveClass: "swiper-slide-thumb-active", thumbsContainerClass: "swiper-thumbs" } }); let a = !1, i = !1; function n() { const t = e.thumbs.swiper; if (!t) return; const s = t.clickedIndex, a = t.clickedSlide; if (a && d(a).hasClass(e.params.thumbs.slideThumbActiveClass)) return; if (null == s) return; let i; if (i = t.params.loop ? parseInt(d(t.clickedSlide).attr("data-swiper-slide-index"), 10) : s, e.params.loop) { let t = e.activeIndex; e.slides.eq(t).hasClass(e.params.slideDuplicateClass) && (e.loopFix(), e._clientLeft = e.$wrapperEl[0].clientLeft, t = e.activeIndex); const s = e.slides.eq(t).prevAll(`[data-swiper-slide-index="${i}"]`).eq(0).index(), a = e.slides.eq(t).nextAll(`[data-swiper-slide-index="${i}"]`).eq(0).index(); i = void 0 === s ? a : void 0 === a ? s : a - t < t - s ? a : s } e.slideTo(i) } function r() { const { thumbs: t } = e.params; if (a) return !1; a = !0; const s = e.constructor; if (t.swiper instanceof s) e.thumbs.swiper = t.swiper, Object.assign(e.thumbs.swiper.originalParams, { watchSlidesProgress: !0, slideToClickedSlide: !1 }), Object.assign(e.thumbs.swiper.params, { watchSlidesProgress: !0, slideToClickedSlide: !1 }); else if (m(t.swiper)) { const a = Object.assign({}, t.swiper); Object.assign(a, { watchSlidesProgress: !0, slideToClickedSlide: !1 }), e.thumbs.swiper = new s(a), i = !0 } return e.thumbs.swiper.$el.addClass(e.params.thumbs.thumbsContainerClass), e.thumbs.swiper.on("tap", n), !0 } function o(t) { const s = e.thumbs.swiper; if (!s) return; const a = "auto" === s.params.slidesPerView ? s.slidesPerViewDynamic() : s.params.slidesPerView, i = e.params.thumbs.autoScrollOffset, n = i && !s.params.loop; if (e.realIndex !== s.realIndex || n) { let r, o, l = s.activeIndex; if (s.params.loop) { s.slides.eq(l).hasClass(s.params.slideDuplicateClass) && (s.loopFix(), s._clientLeft = s.$wrapperEl[0].clientLeft, l = s.activeIndex); const t = s.slides.eq(l).prevAll(`[data-swiper-slide-index="${e.realIndex}"]`).eq(0).index(), a = s.slides.eq(l).nextAll(`[data-swiper-slide-index="${e.realIndex}"]`).eq(0).index(); r = void 0 === t ? a : void 0 === a ? t : a - l == l - t ? s.params.slidesPerGroup > 1 ? a : l : a - l < l - t ? a : t, o = e.activeIndex > e.previousIndex ? "next" : "prev" } else r = e.realIndex, o = r > e.previousIndex ? "next" : "prev"; n && (r += "next" === o ? i : -1 * i), s.visibleSlidesIndexes && s.visibleSlidesIndexes.indexOf(r) < 0 && (s.params.centeredSlides ? r = r > l ? r - Math.floor(a / 2) + 1 : r + Math.floor(a / 2) - 1 : r > l && s.params.slidesPerGroup, s.slideTo(r, t ? 0 : void 0)) } let r = 1; const o = e.params.thumbs.slideThumbActiveClass; if (e.params.slidesPerView > 1 && !e.params.centeredSlides && (r = e.params.slidesPerView), e.params.thumbs.multipleActiveThumbs || (r = 1), r = Math.floor(r), s.slides.removeClass(o), s.params.loop || s.params.virtual && s.params.virtual.enabled) for (let t = 0; t < r; t += 1)s.$wrapperEl.children(`[data-swiper-slide-index="${e.realIndex + t}"]`).addClass(o); else for (let t = 0; t < r; t += 1)s.slides.eq(e.realIndex + t).addClass(o) } e.thumbs = { swiper: null }, s("beforeInit", (() => { const { thumbs: t } = e.params; t && t.swiper && (r(), o(!0)) })), s("slideChange update resize observerUpdate", (() => { e.thumbs.swiper && o() })), s("setTransition", ((t, s) => { const a = e.thumbs.swiper; a && a.setTransition(s) })), s("beforeDestroy", (() => { const t = e.thumbs.swiper; t && i && t && t.destroy() })), Object.assign(e.thumbs, { init: r, update: o }) }, function ({ swiper: e, extendParams: t, emit: s, once: a }) { t({ freeMode: { enabled: !1, momentum: !0, momentumRatio: 1, momentumBounce: !0, momentumBounceRatio: 1, momentumVelocityRatio: 1, sticky: !1, minimumVelocity: .02 } }), Object.assign(e, { freeMode: { onTouchMove: function () { const { touchEventsData: t, touches: s } = e; 0 === t.velocities.length && t.velocities.push({ position: s[e.isHorizontal() ? "startX" : "startY"], time: t.touchStartTime }), t.velocities.push({ position: s[e.isHorizontal() ? "currentX" : "currentY"], time: u() }) }, onTouchEnd: function ({ currentPos: t }) { const { params: i, $wrapperEl: n, rtlTranslate: r, snapGrid: o, touchEventsData: l } = e, d = u() - l.touchStartTime; if (t < -e.minTranslate()) e.slideTo(e.activeIndex); else if (t > -e.maxTranslate()) e.slides.length < o.length ? e.slideTo(o.length - 1) : e.slideTo(e.slides.length - 1); else { if (i.freeMode.momentum) { if (l.velocities.length > 1) { const t = l.velocities.pop(), s = l.velocities.pop(), a = t.position - s.position, n = t.time - s.time; e.velocity = a / n, e.velocity /= 2, Math.abs(e.velocity) < i.freeMode.minimumVelocity && (e.velocity = 0), (n > 150 || u() - t.time > 300) && (e.velocity = 0) } else e.velocity = 0; e.velocity *= i.freeMode.momentumVelocityRatio, l.velocities.length = 0; let t = 1e3 * i.freeMode.momentumRatio; const d = e.velocity * t; let c = e.translate + d; r && (c = -c); let p, h = !1; const m = 20 * Math.abs(e.velocity) * i.freeMode.momentumBounceRatio; let f; if (c < e.maxTranslate()) i.freeMode.momentumBounce ? (c + e.maxTranslate() < -m && (c = e.maxTranslate() - m), p = e.maxTranslate(), h = !0, l.allowMomentumBounce = !0) : c = e.maxTranslate(), i.loop && i.centeredSlides && (f = !0); else if (c > e.minTranslate()) i.freeMode.momentumBounce ? (c - e.minTranslate() > m && (c = e.minTranslate() + m), p = e.minTranslate(), h = !0, l.allowMomentumBounce = !0) : c = e.minTranslate(), i.loop && i.centeredSlides && (f = !0); else if (i.freeMode.sticky) { let t; for (let e = 0; e < o.length; e += 1)if (o[e] > -c) { t = e; break } c = Math.abs(o[t] - c) < Math.abs(o[t - 1] - c) || "next" === e.swipeDirection ? o[t] : o[t - 1], c = -c } if (f && a("transitionEnd", (() => { e.loopFix() })), 0 !== e.velocity) { if (t = r ? Math.abs((-c - e.translate) / e.velocity) : Math.abs((c - e.translate) / e.velocity), i.freeMode.sticky) { const s = Math.abs((r ? -c : c) - e.translate), a = e.slidesSizesGrid[e.activeIndex]; t = s < a ? i.speed : s < 2 * a ? 1.5 * i.speed : 2.5 * i.speed } } else if (i.freeMode.sticky) return void e.slideToClosest(); i.freeMode.momentumBounce && h ? (e.updateProgress(p), e.setTransition(t), e.setTranslate(c), e.transitionStart(!0, e.swipeDirection), e.animating = !0, n.transitionEnd((() => { e && !e.destroyed && l.allowMomentumBounce && (s("momentumBounce"), e.setTransition(i.speed), setTimeout((() => { e.setTranslate(p), n.transitionEnd((() => { e && !e.destroyed && e.transitionEnd() })) }), 0)) }))) : e.velocity ? (s("_freeModeNoMomentumRelease"), e.updateProgress(c), e.setTransition(t), e.setTranslate(c), e.transitionStart(!0, e.swipeDirection), e.animating || (e.animating = !0, n.transitionEnd((() => { e && !e.destroyed && e.transitionEnd() })))) : e.updateProgress(c), e.updateActiveIndex(), e.updateSlidesClasses() } else { if (i.freeMode.sticky) return void e.slideToClosest(); i.freeMode && s("_freeModeNoMomentumRelease") } (!i.freeMode.momentum || d >= i.longSwipesMs) && (e.updateProgress(), e.updateActiveIndex(), e.updateSlidesClasses()) } } } }) }, function ({ swiper: e, extendParams: t }) { let s, a, i; t({ grid: { rows: 1, fill: "column" } }), e.grid = { initSlides: t => { const { slidesPerView: n } = e.params, { rows: r, fill: o } = e.params.grid; a = s / r, i = Math.floor(t / r), s = Math.floor(t / r) === t / r ? t : Math.ceil(t / r) * r, "auto" !== n && "row" === o && (s = Math.max(s, n * r)) }, updateSlide: (t, n, r, o) => { const { slidesPerGroup: l, spaceBetween: d } = e.params, { rows: c, fill: p } = e.params.grid; let u, h, m; if ("row" === p && l > 1) { const e = Math.floor(t / (l * c)), a = t - c * l * e, i = 0 === e ? l : Math.min(Math.ceil((r - e * c * l) / c), l); m = Math.floor(a / i), h = a - m * i + e * l, u = h + m * s / c, n.css({ "-webkit-order": u, order: u }) } else "column" === p ? (h = Math.floor(t / c), m = t - h * c, (h > i || h === i && m === c - 1) && (m += 1, m >= c && (m = 0, h += 1))) : (m = Math.floor(t / a), h = t - m * a); n.css(o("margin-top"), 0 !== m ? d && `${d}px` : "") }, updateWrapperSize: (t, a, i) => { const { spaceBetween: n, centeredSlides: r, roundLengths: o } = e.params, { rows: l } = e.params.grid; if (e.virtualSize = (t + n) * s, e.virtualSize = Math.ceil(e.virtualSize / l) - n, e.$wrapperEl.css({ [i("width")]: `${e.virtualSize + n}px` }), r) { a.splice(0, a.length); const t = []; for (let s = 0; s < a.length; s += 1) { let i = a[s]; o && (i = Math.floor(i)), a[s] < e.virtualSize + a[0] && t.push(i) } a.push(...t) } } } }, function ({ swiper: e }) { Object.assign(e, { appendSlide: j.bind(e), prependSlide: F.bind(e), addSlide: R.bind(e), removeSlide: U.bind(e), removeAllSlides: Z.bind(e) }) }, function ({ swiper: e, extendParams: t, on: s }) { t({ fadeEffect: { crossFade: !1, transformEl: null } }), K({ effect: "fade", swiper: e, on: s, setTranslate: () => { const { slides: t } = e, s = e.params.fadeEffect; for (let a = 0; a < t.length; a += 1) { const t = e.slides.eq(a); let i = -t[0].swiperSlideOffset; e.params.virtualTranslate || (i -= e.translate); let n = 0; e.isHorizontal() || (n = i, i = 0); const r = e.params.fadeEffect.crossFade ? Math.max(1 - Math.abs(t[0].progress), 0) : 1 + Math.min(Math.max(t[0].progress, -1), 0); Q(s, t).css({ opacity: r }).transform(`translate3d(${i}px, ${n}px, 0px)`) } }, setTransition: t => { const { transformEl: s } = e.params.fadeEffect; (s ? e.slides.find(s) : e.slides).transition(t), J({ swiper: e, duration: t, transformEl: s, allSlides: !0 }) }, overwriteParams: () => ({ slidesPerView: 1, slidesPerGroup: 1, watchSlidesProgress: !0, spaceBetween: 0, virtualTranslate: !e.params.cssMode }) }) }, function ({ swiper: e, extendParams: t, on: s }) { t({ cubeEffect: { slideShadows: !0, shadow: !0, shadowOffset: 20, shadowScale: .94 } }), K({ effect: "cube", swiper: e, on: s, setTranslate: () => { const { $el: t, $wrapperEl: s, slides: a, width: i, height: n, rtlTranslate: r, size: o, browser: l } = e, c = e.params.cubeEffect, p = e.isHorizontal(), u = e.virtual && e.params.virtual.enabled; let h, m = 0; c.shadow && (p ? (h = s.find(".swiper-cube-shadow"), 0 === h.length && (h = d('<div class="swiper-cube-shadow"></div>'), s.append(h)), h.css({ height: `${i}px` })) : (h = t.find(".swiper-cube-shadow"), 0 === h.length && (h = d('<div class="swiper-cube-shadow"></div>'), t.append(h)))); for (let e = 0; e < a.length; e += 1) { const t = a.eq(e); let s = e; u && (s = parseInt(t.attr("data-swiper-slide-index"), 10)); let i = 90 * s, n = Math.floor(i / 360); r && (i = -i, n = Math.floor(-i / 360)); const l = Math.max(Math.min(t[0].progress, 1), -1); let h = 0, f = 0, g = 0; s % 4 == 0 ? (h = 4 * -n * o, g = 0) : (s - 1) % 4 == 0 ? (h = 0, g = 4 * -n * o) : (s - 2) % 4 == 0 ? (h = o + 4 * n * o, g = o) : (s - 3) % 4 == 0 && (h = -o, g = 3 * o + 4 * o * n), r && (h = -h), p || (f = h, h = 0); const v = `rotateX(${p ? 0 : -i}deg) rotateY(${p ? i : 0}deg) translate3d(${h}px, ${f}px, ${g}px)`; if (l <= 1 && l > -1 && (m = 90 * s + 90 * l, r && (m = 90 * -s - 90 * l)), t.transform(v), c.slideShadows) { let e = p ? t.find(".swiper-slide-shadow-left") : t.find(".swiper-slide-shadow-top"), s = p ? t.find(".swiper-slide-shadow-right") : t.find(".swiper-slide-shadow-bottom"); 0 === e.length && (e = d(`<div class="swiper-slide-shadow-${p ? "left" : "top"}"></div>`), t.append(e)), 0 === s.length && (s = d(`<div class="swiper-slide-shadow-${p ? "right" : "bottom"}"></div>`), t.append(s)), e.length && (e[0].style.opacity = Math.max(-l, 0)), s.length && (s[0].style.opacity = Math.max(l, 0)) } } if (s.css({ "-webkit-transform-origin": `50% 50% -${o / 2}px`, "transform-origin": `50% 50% -${o / 2}px` }), c.shadow) if (p) h.transform(`translate3d(0px, ${i / 2 + c.shadowOffset}px, ${-i / 2}px) rotateX(90deg) rotateZ(0deg) scale(${c.shadowScale})`); else { const e = Math.abs(m) - 90 * Math.floor(Math.abs(m) / 90), t = 1.5 - (Math.sin(2 * e * Math.PI / 360) / 2 + Math.cos(2 * e * Math.PI / 360) / 2), s = c.shadowScale, a = c.shadowScale / t, i = c.shadowOffset; h.transform(`scale3d(${s}, 1, ${a}) translate3d(0px, ${n / 2 + i}px, ${-n / 2 / a}px) rotateX(-90deg)`) } const f = l.isSafari || l.isWebView ? -o / 2 : 0; s.transform(`translate3d(0px,0,${f}px) rotateX(${e.isHorizontal() ? 0 : m}deg) rotateY(${e.isHorizontal() ? -m : 0}deg)`) }, setTransition: t => { const { $el: s, slides: a } = e; a.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t), e.params.cubeEffect.shadow && !e.isHorizontal() && s.find(".swiper-cube-shadow").transition(t) }, perspective: () => !0, overwriteParams: () => ({ slidesPerView: 1, slidesPerGroup: 1, watchSlidesProgress: !0, resistanceRatio: 0, spaceBetween: 0, centeredSlides: !1, virtualTranslate: !0 }) }) }, function ({ swiper: e, extendParams: t, on: s }) { t({ flipEffect: { slideShadows: !0, limitRotation: !0, transformEl: null } }), K({ effect: "flip", swiper: e, on: s, setTranslate: () => { const { slides: t, rtlTranslate: s } = e, a = e.params.flipEffect; for (let i = 0; i < t.length; i += 1) { const n = t.eq(i); let r = n[0].progress; e.params.flipEffect.limitRotation && (r = Math.max(Math.min(n[0].progress, 1), -1)); const o = n[0].swiperSlideOffset; let l = -180 * r, d = 0, c = e.params.cssMode ? -o - e.translate : -o, p = 0; if (e.isHorizontal() ? s && (l = -l) : (p = c, c = 0, d = -l, l = 0), n[0].style.zIndex = -Math.abs(Math.round(r)) + t.length, a.slideShadows) { let t = e.isHorizontal() ? n.find(".swiper-slide-shadow-left") : n.find(".swiper-slide-shadow-top"), s = e.isHorizontal() ? n.find(".swiper-slide-shadow-right") : n.find(".swiper-slide-shadow-bottom"); 0 === t.length && (t = ee(a, n, e.isHorizontal() ? "left" : "top")), 0 === s.length && (s = ee(a, n, e.isHorizontal() ? "right" : "bottom")), t.length && (t[0].style.opacity = Math.max(-r, 0)), s.length && (s[0].style.opacity = Math.max(r, 0)) } const u = `translate3d(${c}px, ${p}px, 0px) rotateX(${d}deg) rotateY(${l}deg)`; Q(a, n).transform(u) } }, setTransition: t => { const { transformEl: s } = e.params.flipEffect; (s ? e.slides.find(s) : e.slides).transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t), J({ swiper: e, duration: t, transformEl: s }) }, perspective: () => !0, overwriteParams: () => ({ slidesPerView: 1, slidesPerGroup: 1, watchSlidesProgress: !0, spaceBetween: 0, virtualTranslate: !e.params.cssMode }) }) }, function ({ swiper: e, extendParams: t, on: s }) { t({ coverflowEffect: { rotate: 50, stretch: 0, depth: 100, scale: 1, modifier: 1, slideShadows: !0, transformEl: null } }), K({ effect: "coverflow", swiper: e, on: s, setTranslate: () => { const { width: t, height: s, slides: a, slidesSizesGrid: i } = e, n = e.params.coverflowEffect, r = e.isHorizontal(), o = e.translate, l = r ? t / 2 - o : s / 2 - o, d = r ? n.rotate : -n.rotate, c = n.depth; for (let e = 0, t = a.length; e < t; e += 1) { const t = a.eq(e), s = i[e], o = (l - t[0].swiperSlideOffset - s / 2) / s * n.modifier; let p = r ? d * o : 0, u = r ? 0 : d * o, h = -c * Math.abs(o), m = n.stretch; "string" == typeof m && -1 !== m.indexOf("%") && (m = parseFloat(n.stretch) / 100 * s); let f = r ? 0 : m * o, g = r ? m * o : 0, v = 1 - (1 - n.scale) * Math.abs(o); Math.abs(g) < .001 && (g = 0), Math.abs(f) < .001 && (f = 0), Math.abs(h) < .001 && (h = 0), Math.abs(p) < .001 && (p = 0), Math.abs(u) < .001 && (u = 0), Math.abs(v) < .001 && (v = 0); const w = `translate3d(${g}px,${f}px,${h}px)  rotateX(${u}deg) rotateY(${p}deg) scale(${v})`; if (Q(n, t).transform(w), t[0].style.zIndex = 1 - Math.abs(Math.round(o)), n.slideShadows) { let e = r ? t.find(".swiper-slide-shadow-left") : t.find(".swiper-slide-shadow-top"), s = r ? t.find(".swiper-slide-shadow-right") : t.find(".swiper-slide-shadow-bottom"); 0 === e.length && (e = ee(n, t, r ? "left" : "top")), 0 === s.length && (s = ee(n, t, r ? "right" : "bottom")), e.length && (e[0].style.opacity = o > 0 ? o : 0), s.length && (s[0].style.opacity = -o > 0 ? -o : 0) } } }, setTransition: t => { const { transformEl: s } = e.params.coverflowEffect; (s ? e.slides.find(s) : e.slides).transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t) }, perspective: () => !0, overwriteParams: () => ({ watchSlidesProgress: !0 }) }) }, function ({ swiper: e, extendParams: t, on: s }) { t({ creativeEffect: { transformEl: null, limitProgress: 1, shadowPerProgress: !1, progressMultiplier: 1, perspective: !0, prev: { translate: [0, 0, 0], rotate: [0, 0, 0], opacity: 1, scale: 1 }, next: { translate: [0, 0, 0], rotate: [0, 0, 0], opacity: 1, scale: 1 } } }); const a = e => "string" == typeof e ? e : `${e}px`; K({ effect: "creative", swiper: e, on: s, setTranslate: () => { const { slides: t, $wrapperEl: s, slidesSizesGrid: i } = e, n = e.params.creativeEffect, { progressMultiplier: r } = n, o = e.params.centeredSlides; if (o) { const t = i[0] / 2 - e.params.slidesOffsetBefore || 0; s.transform(`translateX(calc(50% - ${t}px))`) } for (let s = 0; s < t.length; s += 1) { const i = t.eq(s), l = i[0].progress, d = Math.min(Math.max(i[0].progress, -n.limitProgress), n.limitProgress); let c = d; o || (c = Math.min(Math.max(i[0].originalProgress, -n.limitProgress), n.limitProgress)); const p = i[0].swiperSlideOffset, u = [e.params.cssMode ? -p - e.translate : -p, 0, 0], h = [0, 0, 0]; let m = !1; e.isHorizontal() || (u[1] = u[0], u[0] = 0); let f = { translate: [0, 0, 0], rotate: [0, 0, 0], scale: 1, opacity: 1 }; d < 0 ? (f = n.next, m = !0) : d > 0 && (f = n.prev, m = !0), u.forEach(((e, t) => { u[t] = `calc(${e}px + (${a(f.translate[t])} * ${Math.abs(d * r)}))` })), h.forEach(((e, t) => { h[t] = f.rotate[t] * Math.abs(d * r) })), i[0].style.zIndex = -Math.abs(Math.round(l)) + t.length; const g = u.join(", "), v = `rotateX(${h[0]}deg) rotateY(${h[1]}deg) rotateZ(${h[2]}deg)`, w = c < 0 ? `scale(${1 + (1 - f.scale) * c * r})` : `scale(${1 - (1 - f.scale) * c * r})`, b = c < 0 ? 1 + (1 - f.opacity) * c * r : 1 - (1 - f.opacity) * c * r, y = `translate3d(${g}) ${v} ${w}`; if (m && f.shadow || !m) { let e = i.children(".swiper-slide-shadow"); if (0 === e.length && f.shadow && (e = ee(n, i)), e.length) { const t = n.shadowPerProgress ? d * (1 / n.limitProgress) : d; e[0].style.opacity = Math.min(Math.max(Math.abs(t), 0), 1) } } const $ = Q(n, i); $.transform(y).css({ opacity: b }), f.origin && $.css("transform-origin", f.origin) } }, setTransition: t => { const { transformEl: s } = e.params.creativeEffect; (s ? e.slides.find(s) : e.slides).transition(t).find(".swiper-slide-shadow").transition(t), J({ swiper: e, duration: t, transformEl: s, allSlides: !0 }) }, perspective: () => e.params.creativeEffect.perspective, overwriteParams: () => ({ watchSlidesProgress: !0, virtualTranslate: !e.params.cssMode }) }) }, function ({ swiper: e, extendParams: t, on: s }) { t({ cardsEffect: { slideShadows: !0, transformEl: null } }), K({ effect: "cards", swiper: e, on: s, setTranslate: () => { const { slides: t, activeIndex: s } = e, a = e.params.cardsEffect, { startTranslate: i, isTouched: n } = e.touchEventsData, r = e.translate; for (let o = 0; o < t.length; o += 1) { const l = t.eq(o), d = l[0].progress, c = Math.min(Math.max(d, -4), 4); let p = l[0].swiperSlideOffset; e.params.centeredSlides && !e.params.cssMode && e.$wrapperEl.transform(`translateX(${e.minTranslate()}px)`), e.params.centeredSlides && e.params.cssMode && (p -= t[0].swiperSlideOffset); let u = e.params.cssMode ? -p - e.translate : -p, h = 0; const m = -100 * Math.abs(c); let f = 1, g = -2 * c, v = 8 - .75 * Math.abs(c); const w = (o === s || o === s - 1) && c > 0 && c < 1 && (n || e.params.cssMode) && r < i, b = (o === s || o === s + 1) && c < 0 && c > -1 && (n || e.params.cssMode) && r > i; if (w || b) { const e = (1 - Math.abs((Math.abs(c) - .5) / .5)) ** .5; g += -28 * c * e, f += -.5 * e, v += 96 * e, h = -25 * e * Math.abs(c) + "%" } if (u = c < 0 ? `calc(${u}px + (${v * Math.abs(c)}%))` : c > 0 ? `calc(${u}px + (-${v * Math.abs(c)}%))` : `${u}px`, !e.isHorizontal()) { const e = h; h = u, u = e } const y = `\n        translate3d(${u}, ${h}, ${m}px)\n        rotateZ(${g}deg)\n        scale(${c < 0 ? "" + (1 + (1 - f) * c) : "" + (1 - (1 - f) * c)})\n      `; if (a.slideShadows) { let e = l.find(".swiper-slide-shadow"); 0 === e.length && (e = ee(a, l)), e.length && (e[0].style.opacity = Math.min(Math.max((Math.abs(c) - .5) / .5, 0), 1)) } l[0].style.zIndex = -Math.abs(Math.round(d)) + t.length, Q(a, l).transform(y) } }, setTransition: t => { const { transformEl: s } = e.params.cardsEffect; (s ? e.slides.find(s) : e.slides).transition(t).find(".swiper-slide-shadow").transition(t), J({ swiper: e, duration: t, transformEl: s }) }, perspective: () => !0, overwriteParams: () => ({ watchSlidesProgress: !0, virtualTranslate: !e.params.cssMode }) }) }]; return W.use(te), W }, "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).Swiper = t(), s(515), s(959), s(346), s(230), s(900), s(978), s(814), s(166), s(396), s(628), s(113), s(615), s(939), s(712), s(848), s(374), s(317), s(40), s(979), s(277), s(715) })() })();;
$(".bike-review-slider-container").slick({ dots: !1, infinite: !1, speed: 300, arrows: !0, slidesToShow: 4, slidesToScroll: 1, responsive: [{ breakpoint: 821, settings: { slidesToShow: 2, slidesToScroll: 2 } }, { breakpoint: 480, settings: { slidesToShow: 1, slidesToScroll: 1 } }] }), $(window).width() < 991 && $(window).scroll((function () { $(this).scrollTop() > 100 && ($.each($(".lazyLoading > source"), (function () { if ("" == $(this).attr("srcset") && $(this).attr("data-srcset")) { var e = $(this).data("srcset"); $(this).attr("srcset", e) } })), $.each($(".lazyLoading > img"), (function () { if ("" == $(this).attr("src") && $(this).attr("data-src")) { var e = $(this).data("src"); $(this).attr("src", e) } }))) })); const stats = document.querySelectorAll(".counter"); stats.forEach((e => { let t, s = [.../(\D+)?(\d+)(\D+)?(\d+)?(\D+)?/.exec(e.textContent)], i = !0; for (s.shift(), s = s.filter((e => null != e)); e.firstChild;)e.removeChild(e.firstChild); for (let t of s) if (isNaN(t)) e.insertAdjacentHTML("beforeend", `<span>${t}</span>`); else for (let s = 0; s < t.length; s++)e.insertAdjacentHTML("beforeend", `<span data-value="${t[s]}">\n            <span></span>\n            ${Array(parseInt(t[s]) + 1).join(0).split(0).map(((e, t) => `\n              <span>${t}</span>\n            `)).join("")}\n          </span>`); t = [...e.querySelectorAll("span[data-value]")]; let n = () => { let s = e.getBoundingClientRect().top, o = window.innerHeight; setTimeout((() => { i = !1 }), 1e3), s < o && (setTimeout((() => { for (let e of t) { let t = 100 * (parseInt(e.getAttribute("data-value")) + 1) - 5; e.style.transform = `translateY(-${t}%)` } }), i ? 1e3 : 0), window.removeEventListener("scroll", n)) }; window.addEventListener("scroll", n), n() })), $(document).ready((function () { $(".news-media-main").slick({ dots: !1, infinite: !1, speed: 300, arrows: !0, slidesToShow: 4, slidesToScroll: 1, responsive: [{ breakpoint: 821, settings: { slidesToShow: 2, slidesToScroll: 2 } }, { breakpoint: 480, settings: { slidesToShow: 1, slidesToScroll: 1 } }] }), setTimeout((function () { $(".news-media-main").slick("refresh") }), 1e3) }));;
