/** * swiper 6.4.5 * most modern mobile touch slider and framework with hardware accelerated transitions * https://swiperjs.com * * copyright 2014-2020 vladimir kharlampidi * * released under the mit license * * released on: december 18, 2020 */ !function(e,t){"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()}(this,(function(){"use strict";function e(e,t){for(var a=0;a0&&i(e[s],t[s])}))}var s={body:{},addeventlistener:function(){},removeeventlistener:function(){},activeelement:{blur:function(){},nodename:""},queryselector:function(){return null},queryselectorall:function(){return[]},getelementbyid:function(){return null},createevent:function(){return{initevent:function(){}}},createelement:function(){return{children:[],childnodes:[],style:{},setattribute:function(){},getelementsbytagname:function(){return[]}}},createelementns:function(){return{}},importnode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function r(){var e="undefined"!=typeof document?document:{};return i(e,s),e}var n={document:s,navigator:{useragent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replacestate:function(){},pushstate:function(){},go:function(){},back:function(){}},customevent:function(){return this},addeventlistener:function(){},removeeventlistener:function(){},getcomputedstyle:function(){return{getpropertyvalue:function(){return""}}},image:function(){},date:function(){},screen:{},settimeout:function(){},cleartimeout:function(){},matchmedia:function(){return{}},requestanimationframe:function(e){return"undefined"==typeof settimeout?(e(),null):settimeout(e,0)},cancelanimationframe:function(e){"undefined"!=typeof settimeout&&cleartimeout(e)}};function l(){var e="undefined"!=typeof window?window:{};return i(e,n),e}function o(e){return(o=object.setprototypeof?object.getprototypeof:function(e){return e.__proto__||object.getprototypeof(e)})(e)}function d(e,t){return(d=object.setprototypeof||function(e,t){return e.__proto__=t,e})(e,t)}function p(){if("undefined"==typeof reflect||!reflect.construct)return!1;if(reflect.construct.sham)return!1;if("function"==typeof proxy)return!0;try{return date.prototype.tostring.call(reflect.construct(date,[],(function(){}))),!0}catch(e){return!1}}function u(e,t,a){return(u=p()?reflect.construct:function(e,t,a){var i=[null];i.push.apply(i,t);var s=new(function.bind.apply(e,i));return a&&d(s,a.prototype),s}).apply(null,arguments)}function c(e){var t="function"==typeof map?new map:void 0;return(c=function(e){if(null===e||(a=e,-1===function.tostring.call(a).indexof("[native code]")))return e;var a;if("function"!=typeof e)throw new typeerror("super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return u(e,arguments,o(this).constructor)}return i.prototype=object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),d(i,e)})(e)}var h=function(e){var t,a;function i(t){var a,i,s;return a=e.call.apply(e,[this].concat(t))||this,i=function(e){if(void 0===e)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return e}(a),s=i.__proto__,object.defineproperty(i,"__proto__",{get:function(){return s},set:function(e){s.__proto__=e}}),a}return a=e,(t=i).prototype=object.create(a.prototype),t.prototype.constructor=t,t.__proto__=a,i}(c(array));function v(e){void 0===e&&(e=[]);var t=[];return e.foreach((function(e){array.isarray(e)?t.push.apply(t,v(e)):t.push(e)})),t}function f(e,t){return array.prototype.filter.call(e,t)}function m(e,t){var a=l(),i=r(),s=[];if(!t&&e instanceof h)return e;if(!e)return new h(s);if("string"==typeof e){var n=e.trim();if(n.indexof("<")>=0&&n.indexof(">")>=0){var o="div";0===n.indexof("0})).length>0},toggleclass:function(){for(var e=arguments.length,t=new array(e),a=0;a=0;h-=1){var v=c[h];r&&v.listener===r||r&&v.listener&&v.listener.dom7proxy&&v.listener.dom7proxy===r?(u.removeeventlistener(d,v.proxylistener,n),c.splice(h,1)):r||(u.removeeventlistener(d,v.proxylistener,n),c.splice(h,1))}}return this},trigger:function(){for(var e=l(),t=arguments.length,a=new array(t),i=0;i0})),p.dispatchevent(u),p.dom7eventdata=[],delete p.dom7eventdata}}return this},transitionend:function(e){var t=this;return e&&t.on("transitionend",(function a(i){i.target===this&&(e.call(this,i),t.off("transitionend",a))})),this},outerwidth:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetwidth+parsefloat(t.getpropertyvalue("margin-right"))+parsefloat(t.getpropertyvalue("margin-left"))}return this[0].offsetwidth}return null},outerheight:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetheight+parsefloat(t.getpropertyvalue("margin-top"))+parsefloat(t.getpropertyvalue("margin-bottom"))}return this[0].offsetheight}return null},styles:function(){var e=l();return this[0]?e.getcomputedstyle(this[0],null):{}},offset:function(){if(this.length>0){var e=l(),t=r(),a=this[0],i=a.getboundingclientrect(),s=t.body,n=a.clienttop||s.clienttop||0,o=a.clientleft||s.clientleft||0,d=a===e?e.scrolly:a.scrolltop,p=a===e?e.scrollx:a.scrollleft;return{top:i.top+d-n,left:i.left+p-o}}return null},css:function(e,t){var a,i=l();if(1===arguments.length){if("string"!=typeof e){for(a=0;at-1)return m([]);if(e<0){var a=t+e;return m(a<0?[]:[this[a]])}return m([this[e]])},append:function(){for(var e,t=r(),a=0;a=0;a-=1)this[t].insertbefore(s.childnodes[a],this[t].childnodes[0])}else if(e instanceof h)for(a=0;a0?e?this[0].nextelementsibling&&m(this[0].nextelementsibling).is(e)?m([this[0].nextelementsibling]):m([]):this[0].nextelementsibling?m([this[0].nextelementsibling]):m([]):m([])},nextall:function(e){var t=[],a=this[0];if(!a)return m([]);for(;a.nextelementsibling;){var i=a.nextelementsibling;e?m(i).is(e)&&t.push(i):t.push(i),a=i}return m(t)},prev:function(e){if(this.length>0){var t=this[0];return e?t.previouselementsibling&&m(t.previouselementsibling).is(e)?m([t.previouselementsibling]):m([]):t.previouselementsibling?m([t.previouselementsibling]):m([])}return m([])},prevall:function(e){var t=[],a=this[0];if(!a)return m([]);for(;a.previouselementsibling;){var i=a.previouselementsibling;e?m(i).is(e)&&t.push(i):t.push(i),a=i}return m(t)},parent:function(e){for(var t=[],a=0;a6&&(i=i.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),s=new r.webkitcssmatrix("none"===i?"":i)):a=(s=n.moztransform||n.otransform||n.mstransform||n.mstransform||n.transform||n.getpropertyvalue("transform").replace("translate(","matrix(1, 0, 0, 1,")).tostring().split(","),"x"===t&&(i=r.webkitcssmatrix?s.m41:16===a.length?parsefloat(a[12]):parsefloat(a[4])),"y"===t&&(i=r.webkitcssmatrix?s.m42:16===a.length?parsefloat(a[13]):parsefloat(a[5])),i||0}function c(e){return"object"==typeof e&&null!==e&&e.constructor&&e.constructor===object}function s(){for(var e=object(arguments.length<=0?void 0:arguments[0]),t=1;t=0,observer:"mutationobserver"in e||"webkitmutationobserver"in e,passivelistener:function(){var t=!1;try{var a=object.defineproperty({},"passive",{get:function(){t=!0}});e.addeventlistener("testpassivelistener",null,a)}catch(e){}return t}(),gestures:"ongesturestart"in e}}()),g}function p(e){return void 0===e&&(e={}),y||(y=function(e){var t=(void 0===e?{}:e).useragent,a=z(),i=l(),s=i.navigator.platform,r=t||i.navigator.useragent,n={ios:!1,android:!1},o=i.screen.width,d=i.screen.height,p=r.match(/(android);?[\s\/]+([\d.]+)?/),u=r.match(/(ipad).*os\s([\d_]+)/),c=r.match(/(ipod)(.*os\s([\d_]+))?/),h=!u&&r.match(/(iphone\sos|ios)\s([\d_]+)/),v="win32"===s,f="macintel"===s;return!u&&f&&a.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexof(o+"x"+d)>=0&&((u=r.match(/(version)\/([\d.]+)/))||(u=[0,1,"13_0_0"]),f=!1),p&&!v&&(n.os="android",n.android=!0),(u||h||c)&&(n.os="ios",n.ios=!0),n}(e)),y}function k(){return w||(w=function(){var e,t=l();return{isedge:!!t.navigator.useragent.match(/edge/g),issafari:(e=t.navigator.useragent.tolowercase(),e.indexof("safari")>=0&&e.indexof("chrome")<0&&e.indexof("android")<0),iswebview:/(iphone|ipod|ipad).*applewebkit(?!.*safari)/i.test(t.navigator.useragent)}}()),w}object.keys(b).foreach((function(e){m.fn[e]=b[e]}));var l={name:"resize",create:function(){var e=this;s(e,{resize:{resizehandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeresize"),e.emit("resize"))},orientationchangehandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(e){var t=l();t.addeventlistener("resize",e.resize.resizehandler),t.addeventlistener("orientationchange",e.resize.orientationchangehandler)},destroy:function(e){var t=l();t.removeeventlistener("resize",e.resize.resizehandler),t.removeeventlistener("orientationchange",e.resize.orientationchangehandler)}}},$={attach:function(e,t){void 0===t&&(t={});var a=l(),i=this,s=new(a.mutationobserver||a.webkitmutationobserver)((function(e){if(1!==e.length){var t=function(){i.emit("observerupdate",e[0])};a.requestanimationframe?a.requestanimationframe(t):a.settimeout(t,0)}else i.emit("observerupdate",e[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.observer.observers.push(s)},init:function(){var e=this;if(e.support.observer&&e.params.observer){if(e.params.observeparents)for(var t=e.$el.parents(),a=0;a0))if(!s.istouched||!s.ismoved)if(!!n.noswipingclass&&""!==n.noswipingclass&&d.target&&d.target.shadowroot&&e.path&&e.path[0]&&(p=m(e.path[0])),n.noswiping&&p.closest(n.noswipingselector?n.noswipingselector:"."+n.noswipingclass)[0])t.allowclick=!0;else if(!n.swipehandler||p.closest(n.swipehandler)[0]){o.currentx="touchstart"===d.type?d.targettouches[0].pagex:d.pagex,o.currenty="touchstart"===d.type?d.targettouches[0].pagey:d.pagey;var u=o.currentx,c=o.currenty,h=n.edgeswipedetection||n.iosedgeswipedetection,v=n.edgeswipethreshold||n.iosedgeswipethreshold;if(!h||!(u<=v||u>=i.innerwidth-v)){if(s(s,{istouched:!0,ismoved:!1,allowtouchcallbacks:!0,isscrolling:void 0,startmoving:void 0}),o.startx=u,o.starty=c,s.touchstarttime=x(),t.allowclick=!0,t.updatesize(),t.swipedirection=void 0,n.threshold>0&&(s.allowthresholdmove=!1),"touchstart"!==d.type){var f=!0;p.is(s.formelements)&&(f=!1),a.activeelement&&m(a.activeelement).is(s.formelements)&&a.activeelement!==p[0]&&a.activeelement.blur();var g=f&&t.allowtouchmove&&n.touchstartpreventdefault;!n.touchstartforcepreventdefault&&!g||p[0].iscontenteditable||d.preventdefault()}t.emit("touchstart",d)}}}}function a(e){var t=r(),a=this,i=a.toucheventsdata,s=a.params,n=a.touches,l=a.rtltranslate,o=e;if(o.originalevent&&(o=o.originalevent),i.istouched){if(!i.istouchevent||"touchmove"===o.type){var d="touchmove"===o.type&&o.targettouches&&(o.targettouches[0]||o.changedtouches[0]),p="touchmove"===o.type?d.pagex:o.pagex,u="touchmove"===o.type?d.pagey:o.pagey;if(o.preventedbynestedswiper)return n.startx=p,void(n.starty=u);if(!a.allowtouchmove)return a.allowclick=!1,void(i.istouched&&(s(n,{startx:p,starty:u,currentx:p,currenty:u}),i.touchstarttime=x()));if(i.istouchevent&&s.touchreleaseonedges&&!s.loop)if(a.isvertical()){if(un.starty&&a.translate>=a.mintranslate())return i.istouched=!1,void(i.ismoved=!1)}else if(pn.startx&&a.translate>=a.mintranslate())return;if(i.istouchevent&&t.activeelement&&o.target===t.activeelement&&m(o.target).is(i.formelements))return i.ismoved=!0,void(a.allowclick=!1);if(i.allowtouchcallbacks&&a.emit("touchmove",o),!(o.targettouches&&o.targettouches.length>1)){n.currentx=p,n.currenty=u;var c=n.currentx-n.startx,h=n.currenty-n.starty;if(!(a.params.threshold&&math.sqrt(math.pow(c,2)+math.pow(h,2))=25&&(v=180*math.atan2(math.abs(h),math.abs(c))/math.pi,i.isscrolling=a.ishorizontal()?v>s.touchangle:90-v>s.touchangle);if(i.isscrolling&&a.emit("touchmoveopposite",o),void 0===i.startmoving&&(n.currentx===n.startx&&n.currenty===n.starty||(i.startmoving=!0)),i.isscrolling)i.istouched=!1;else if(i.startmoving){a.allowclick=!1,!s.cssmode&&o.cancelable&&o.preventdefault(),s.touchmovestoppropagation&&!s.nested&&o.stoppropagation(),i.ismoved||(s.loop&&a.loopfix(),i.starttranslate=a.gettranslate(),a.settransition(0),a.animating&&a.$wrapperel.trigger("webkittransitionend transitionend"),i.allowmomentumbounce=!1,!s.grabcursor||!0!==a.allowslidenext&&!0!==a.allowslideprev||a.setgrabcursor(!0),a.emit("sliderfirstmove",o)),a.emit("slidermove",o),i.ismoved=!0;var f=a.ishorizontal()?c:h;n.diff=f,f*=s.touchratio,l&&(f=-f),a.swipedirection=f>0?"prev":"next",i.currenttranslate=f+i.starttranslate;var g=!0,y=s.resistanceratio;if(s.touchreleaseonedges&&(y=0),f>0&&i.currenttranslate>a.mintranslate()?(g=!1,s.resistance&&(i.currenttranslate=a.mintranslate()-1+math.pow(-a.mintranslate()+i.starttranslate+f,y))):f<0&&i.currenttranslatei.starttranslate&&(i.currenttranslate=i.starttranslate),s.threshold>0){if(!(math.abs(f)>s.threshold||i.allowthresholdmove))return void(i.currenttranslate=i.starttranslate);if(!i.allowthresholdmove)return i.allowthresholdmove=!0,n.startx=n.currentx,n.starty=n.currenty,i.currenttranslate=i.starttranslate,void(n.diff=a.ishorizontal()?n.currentx-n.startx:n.currenty-n.starty)}s.followfinger&&!s.cssmode&&((s.freemode||s.watchslidesprogress||s.watchslidesvisibility)&&(a.updateactiveindex(),a.updateslidesclasses()),s.freemode&&(0===i.velocities.length&&i.velocities.push({position:n[a.ishorizontal()?"startx":"starty"],time:i.touchstarttime}),i.velocities.push({position:n[a.ishorizontal()?"currentx":"currenty"],time:x()})),a.updateprogress(i.currenttranslate),a.settranslate(i.currenttranslate))}}}}}else i.startmoving&&i.isscrolling&&a.emit("touchmoveopposite",o)}function d(e){var t=this,a=t.toucheventsdata,i=t.params,s=t.touches,r=t.rtltranslate,n=t.$wrapperel,l=t.slidesgrid,o=t.snapgrid,d=e;if(d.originalevent&&(d=d.originalevent),a.allowtouchcallbacks&&t.emit("touchend",d),a.allowtouchcallbacks=!1,!a.istouched)return a.ismoved&&i.grabcursor&&t.setgrabcursor(!1),a.ismoved=!1,void(a.startmoving=!1);i.grabcursor&&a.ismoved&&a.istouched&&(!0===t.allowslidenext||!0===t.allowslideprev)&&t.setgrabcursor(!1);var p,u=x(),c=u-a.touchstarttime;if(t.allowclick&&(t.updateclickedslide(d),t.emit("tap click",d),c<300&&u-a.lastclicktime<300&&t.emit("doubletap doubleclick",d)),a.lastclicktime=x(),e((function(){t.destroyed||(t.allowclick=!0)})),!a.istouched||!a.ismoved||!t.swipedirection||0===s.diff||a.currenttranslate===a.starttranslate)return a.istouched=!1,a.ismoved=!1,void(a.startmoving=!1);if(a.istouched=!1,a.ismoved=!1,a.startmoving=!1,p=i.followfinger?r?t.translate:-t.translate:-a.currenttranslate,!i.cssmode)if(i.freemode){if(p<-t.mintranslate())return void t.slideto(t.activeindex);if(p>-t.maxtranslate())return void(t.slides.length1){var h=a.velocities.pop(),v=a.velocities.pop(),f=h.position-v.position,m=h.time-v.time;t.velocity=f/m,t.velocity/=2,math.abs(t.velocity)150||x()-h.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=i.freemodemomentumvelocityratio,a.velocities.length=0;var g=1e3*i.freemodemomentumratio,y=t.velocity*g,w=t.translate+y;r&&(w=-w);var b,t,c=!1,s=20*math.abs(t.velocity)*i.freemodemomentumbounceratio;if(wt.mintranslate())i.freemodemomentumbounce?(w-t.mintranslate()>s&&(w=t.mintranslate()+s),b=t.mintranslate(),c=!0,a.allowmomentumbounce=!0):w=t.mintranslate(),i.loop&&i.centeredslides&&(t=!0);else if(i.freemodesticky){for(var m,z=0;z-w){m=z;break}w=-(w=math.abs(o[m]-w)=i.longswipesms)&&(t.updateprogress(),t.updateactiveindex(),t.updateslidesclasses())}else{for(var l=0,$=t.slidessizesgrid[0],i=0;i=l[i]&&p=l[i]&&(l=i,$=l[l.length-1]-l[l.length-2])}var a=(p-l[l])/$,d=li.longswipesms){if(!i.longswipes)return void t.slideto(t.activeindex);"next"===t.swipedirection&&(a>=i.longswipesratio?t.slideto(l+d):t.slideto(l)),"prev"===t.swipedirection&&(a>1-i.longswipesratio?t.slideto(l+d):t.slideto(l))}else{if(!i.shortswipes)return void t.slideto(t.activeindex);t.navigation&&(d.target===t.navigation.nextel||d.target===t.navigation.prevel)?d.target===t.navigation.nextel?t.slideto(l+d):t.slideto(l):("next"===t.swipedirection&&t.slideto(l+d),"prev"===t.swipedirection&&t.slideto(l))}}}function g(){var e=this,t=e.params,a=e.el;if(!a||0!==a.offsetwidth){t.breakpoints&&e.setbreakpoint();var i=e.allowslidenext,s=e.allowslideprev,r=e.snapgrid;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=s,e.allowslidenext=i,e.params.watchoverflow&&r!==e.snapgrid&&e.checkoverflow()}}function n(e){var t=this;t.allowclick||(t.params.preventclicks&&e.preventdefault(),t.params.preventclickspropagation&&t.animating&&(e.stoppropagation(),e.stopimmediatepropagation()))}function b(){var e=this,t=e.wrapperel,a=e.rtltranslate;e.previoustranslate=e.translate,e.ishorizontal()?e.translate=a?t.scrollwidth-t.offsetwidth-t.scrollleft:-t.scrollleft:e.translate=-t.scrolltop,-0===e.translate&&(e.translate=0),e.updateactiveindex(),e.updateslidesclasses();var i=e.maxtranslate()-e.mintranslate();(0===i?0:(e.translate-e.mintranslate())/i)!==e.progress&&e.updateprogress(a?-e.translate:e.translate),e.emit("settranslate",e.translate,!1)}var h=!1;function x(){}var y={init:!0,direction:"horizontal",toucheventstarget:"container",initialslide:0,speed:300,cssmode:!1,updateonwindowresize:!0,nested:!1,width:null,height:null,preventinteractionontransition:!1,useragent:null,url:null,edgeswipedetection:!1,edgeswipethreshold:20,freemode:!1,freemodemomentum:!0,freemodemomentumratio:1,freemodemomentumbounce:!0,freemodemomentumbounceratio:1,freemodemomentumvelocityratio:1,freemodesticky:!1,freemodeminimumvelocity:.02,autoheight:!1,setwrappersize:!1,virtualtranslate:!1,effect:"slide",breakpoints:void 0,spacebetween:0,slidesperview:1,slidespercolumn:1,slidespercolumnfill:"column",slidespergroup:1,slidespergroupskip:0,centeredslides:!1,centeredslidesbounds:!1,slidesoffsetbefore:0,slidesoffsetafter:0,normalizeslideindex:!0,centerinsufficientslides:!1,watchoverflow:!1,roundlengths:!1,touchratio:1,touchangle:45,simulatetouch:!0,shortswipes:!0,longswipes:!0,longswipesratio:.5,longswipesms:300,followfinger:!0,allowtouchmove:!0,threshold:0,touchmovestoppropagation:!1,touchstartpreventdefault:!0,touchstartforcepreventdefault:!1,touchreleaseonedges:!1,uniquenavelements:!0,resistance:!0,resistanceratio:.85,watchslidesprogress:!1,watchslidesvisibility:!1,grabcursor:!1,preventclicks:!0,preventclickspropagation:!0,slidetoclickedslide:!1,preloadimages:!0,updateonimagesready:!0,loop:!1,loopadditionalslides:0,loopedslides:null,loopfillgroupwithblank:!1,looppreventsslide:!0,allowslideprev:!0,allowslidenext:!0,swipehandler:null,noswiping:!0,noswipingclass:"swiper-no-swiping",noswipingselector:null,passivelisteners:!0,containermodifierclass:"swiper-container-",slideclass:"swiper-slide",slideblankclass:"swiper-slide-invisible-blank",slideactiveclass:"swiper-slide-active",slideduplicateactiveclass:"swiper-slide-duplicate-active",slidevisibleclass:"swiper-slide-visible",slideduplicateclass:"swiper-slide-duplicate",slidenextclass:"swiper-slide-next",slideduplicatenextclass:"swiper-slide-duplicate-next",slideprevclass:"swiper-slide-prev",slideduplicateprevclass:"swiper-slide-duplicate-prev",wrapperclass:"swiper-wrapper",runcallbacksoninit:!0,_emitclasses:!1},v={modular:{useparams:function(e){var t=this;t.modules&&object.keys(t.modules).foreach((function(a){var i=t.modules[a];i.params&&s(e,i.params)}))},usemodules:function(e){void 0===e&&(e={});var t=this;t.modules&&object.keys(t.modules).foreach((function(a){var i=t.modules[a],s=e[a]||{};i.on&&t.on&&object.keys(i.on).foreach((function(e){t.on(e,i.on[e])})),i.create&&i.create.bind(t)(s)}))}},eventsemitter:{on:function(e,t,a){var i=this;if("function"!=typeof t)return i;var s=a?"unshift":"push";return e.split(" ").foreach((function(e){i.eventslisteners[e]||(i.eventslisteners[e]=[]),i.eventslisteners[e][s](t)})),i},once:function(e,t,a){var i=this;if("function"!=typeof t)return i;function s(){i.off(e,s),s.__emitterproxy&&delete s.__emitterproxy;for(var a=arguments.length,r=new array(a),n=0;n=0&&t.eventsanylisteners.splice(a,1),t},off:function(e,t){var a=this;return a.eventslisteners?(e.split(" ").foreach((function(e){void 0===t?a.eventslisteners[e]=[]:a.eventslisteners[e]&&a.eventslisteners[e].foreach((function(i,s){(i===t||i.__emitterproxy&&i.__emitterproxy===t)&&a.eventslisteners[e].splice(s,1)}))})),a):a},emit:function(){var e,t,a,i=this;if(!i.eventslisteners)return i;for(var s=arguments.length,r=new array(s),n=0;n=0&&(b=parsefloat(b.replace("%",""))/100*s),e.virtualsize=-b,r?p.css({marginleft:"",margintop:""}):p.css({marginright:"",marginbottom:""}),a.slidespercolumn>1&&(c=math.floor(u/a.slidespercolumn)===u/e.params.slidespercolumn?u:math.ceil(u/a.slidespercolumn)*a.slidespercolumn,"auto"!==a.slidesperview&&"row"===a.slidespercolumnfill&&(c=math.max(c,a.slidesperview*a.slidespercolumn)));for(var z,p=a.slidespercolumn,k=c/p,l=math.floor(u/a.slidespercolumn),$=0;$1){var o=void 0,a=void 0,d=void 0;if("row"===a.slidespercolumnfill&&a.slidespergroup>1){var g=math.floor($/(a.slidespergroup*a.slidespercolumn)),n=$-a.slidespercolumn*a.slidespergroup*g,b=0===g?a.slidespergroup:math.min(math.ceil((u-g*p*a.slidespergroup)/p),a.slidespergroup);o=(a=n-(d=math.floor(n/b))*b+g*a.slidespergroup)+d*c/p,i.css({"-webkit-box-ordinal-group":o,"-moz-box-ordinal-group":o,"-ms-flex-order":o,"-webkit-order":o,order:o})}else"column"===a.slidespercolumnfill?(d=$-(a=math.floor($/p))*p,(a>l||a===l&&d===p-1)&&(d+=1)>=p&&(d=0,a+=1)):a=$-(d=math.floor($/k))*k;i.css("margin-"+(e.ishorizontal()?"top":"left"),0!==d&&a.spacebetween&&a.spacebetween+"px")}if("none"!==i.css("display")){if("auto"===a.slidesperview){var h=t.getcomputedstyle(i[0],null),x=i[0].style.transform,y=i[0].style.webkittransform;if(x&&(i[0].style.transform="none"),y&&(i[0].style.webkittransform="none"),a.roundlengths)m=e.ishorizontal()?i.outerwidth(!0):i.outerheight(!0);else if(e.ishorizontal()){var v=parsefloat(h.getpropertyvalue("width")||0),f=parsefloat(h.getpropertyvalue("padding-left")||0),r=parsefloat(h.getpropertyvalue("padding-right")||0),w=parsefloat(h.getpropertyvalue("margin-left")||0),q=parsefloat(h.getpropertyvalue("margin-right")||0),j=h.getpropertyvalue("box-sizing");if(j&&"border-box"===j)m=v+w+q;else{var _=i[0],u=_.clientwidth;m=v+f+r+w+q+(_.offsetwidth-u)}}else{var k=parsefloat(h.getpropertyvalue("height")||0),z=parsefloat(h.getpropertyvalue("padding-top")||0),j=parsefloat(h.getpropertyvalue("padding-bottom")||0),q=parsefloat(h.getpropertyvalue("margin-top")||0),ee=parsefloat(h.getpropertyvalue("margin-bottom")||0),te=h.getpropertyvalue("box-sizing");if(te&&"border-box"===te)m=k+q+ee;else{var ae=i[0],ie=ae.clientheight;m=k+z+j+q+ee+(ae.offsetheight-ie)}}x&&(i[0].style.transform=x),y&&(i[0].style.webkittransform=y),a.roundlengths&&(m=math.floor(m))}else m=(s-(a.slidesperview-1)*b)/a.slidesperview,a.roundlengths&&(m=math.floor(m)),p[$]&&(e.ishorizontal()?p[$].style.width=m+"px":p[$].style.height=m+"px");p[$]&&(p[$].swiperslidesize=m),v.push(m),a.centeredslides?(e=e+m/2+x/2+b,0===x&&0!==$&&(e=e-s/2-b),0===$&&(e=e-s/2-b),math.abs(e)<.001&&(e=0),a.roundlengths&&(e=math.floor(e)),t%a.slidespergroup==0&&c.push(e),h.push(e)):(a.roundlengths&&(e=math.floor(e)),(t-math.min(e.params.slidespergroupskip,t))%e.params.slidespergroup==0&&c.push(e),h.push(e),e=e+m+b),e.virtualsize+=m+b,x=m,t+=1}}if(e.virtualsize=math.max(e.virtualsize,s)+g,r&&n&&("slide"===a.effect||"coverflow"===a.effect)&&i.css({width:e.virtualsize+a.spacebetween+"px"}),a.setwrappersize&&(e.ishorizontal()?i.css({width:e.virtualsize+a.spacebetween+"px"}):i.css({height:e.virtualsize+a.spacebetween+"px"})),a.slidespercolumn>1&&(e.virtualsize=(m+a.spacebetween)*c,e.virtualsize=math.ceil(e.virtualsize/a.slidespercolumn)-a.spacebetween,e.ishorizontal()?i.css({width:e.virtualsize+a.spacebetween+"px"}):i.css({height:e.virtualsize+a.spacebetween+"px"}),a.centeredslides)){z=[];for(var se=0;se1&&c.push(e.virtualsize-s)}if(0===c.length&&(c=[0]),0!==a.spacebetween&&(e.ishorizontal()?r?p.filter(f).css({marginleft:b+"px"}):p.filter(f).css({marginright:b+"px"}):p.filter(f).css({marginbottom:b+"px"})),a.centeredslides&&a.centeredslidesbounds){var oe=0;v.foreach((function(e){oe+=e+(a.spacebetween?a.spacebetween:0)}));var de=(oe-=a.spacebetween)-s;c=c.map((function(e){return e<0?-m:e>de?de+g:e}))}if(a.centerinsufficientslides){var pe=0;if(v.foreach((function(e){pe+=e+(a.spacebetween?a.spacebetween:0)})),(pe-=a.spacebetween)1)if(a.params.centeredslides)a.visibleslides.each((function(e){i.push(e)}));else for(t=0;ta.slides.length)break;i.push(a.slides.eq(r)[0])}else i.push(a.slides.eq(a.activeindex)[0]);for(t=0;ts?n:s}s&&a.$wrapperel.css("height",s+"px")},updateslidesoffset:function(){for(var e=this.slides,t=0;t=0&&d1&&p<=t.size||d<=0&&p>=t.size)&&(t.visibleslides.push(l),t.visibleslidesindexes.push(n),i.eq(n).addclass(a.slidevisibleclass))}l.progress=s?-o:o}t.visibleslides=m(t.visibleslides)}},updateprogress:function(e){var t=this;if(void 0===e){var a=t.rtltranslate?-1:1;e=t&&t.translate&&t.translate*a||0}var i=t.params,s=t.maxtranslate()-t.mintranslate(),r=t.progress,n=t.isbeginning,l=t.isend,o=n,d=l;0===s?(r=0,n=!0,l=!0):(n=(r=(e-t.mintranslate())/s)<=0,l=r>=1),s(t,{progress:r,isbeginning:n,isend:l}),(i.watchslidesprogress||i.watchslidesvisibility||i.centeredslides&&i.autoheight)&&t.updateslidesprogress(e),n&&!o&&t.emit("reachbeginning toedge"),l&&!d&&t.emit("reachend toedge"),(o&&!n||d&&!l)&&t.emit("fromedge"),t.emit("progress",r)},updateslidesclasses:function(){var e,t=this,a=t.slides,i=t.params,s=t.$wrapperel,r=t.activeindex,n=t.realindex,l=t.virtual&&i.virtual.enabled;a.removeclass(i.slideactiveclass+" "+i.slidenextclass+" "+i.slideprevclass+" "+i.slideduplicateactiveclass+" "+i.slideduplicatenextclass+" "+i.slideduplicateprevclass),(e=l?t.$wrapperel.find("."+i.slideclass+'[data-swiper-slide-index="'+r+'"]'):a.eq(r)).addclass(i.slideactiveclass),i.loop&&(e.hasclass(i.slideduplicateclass)?s.children("."+i.slideclass+":not(."+i.slideduplicateclass+')[data-swiper-slide-index="'+n+'"]').addclass(i.slideduplicateactiveclass):s.children("."+i.slideclass+"."+i.slideduplicateclass+'[data-swiper-slide-index="'+n+'"]').addclass(i.slideduplicateactiveclass));var o=e.nextall("."+i.slideclass).eq(0).addclass(i.slidenextclass);i.loop&&0===o.length&&(o=a.eq(0)).addclass(i.slidenextclass);var d=e.prevall("."+i.slideclass).eq(0).addclass(i.slideprevclass);i.loop&&0===d.length&&(d=a.eq(-1)).addclass(i.slideprevclass),i.loop&&(o.hasclass(i.slideduplicateclass)?s.children("."+i.slideclass+":not(."+i.slideduplicateclass+')[data-swiper-slide-index="'+o.attr("data-swiper-slide-index")+'"]').addclass(i.slideduplicatenextclass):s.children("."+i.slideclass+"."+i.slideduplicateclass+'[data-swiper-slide-index="'+o.attr("data-swiper-slide-index")+'"]').addclass(i.slideduplicatenextclass),d.hasclass(i.slideduplicateclass)?s.children("."+i.slideclass+":not(."+i.slideduplicateclass+')[data-swiper-slide-index="'+d.attr("data-swiper-slide-index")+'"]').addclass(i.slideduplicateprevclass):s.children("."+i.slideclass+"."+i.slideduplicateclass+'[data-swiper-slide-index="'+d.attr("data-swiper-slide-index")+'"]').addclass(i.slideduplicateprevclass)),t.emitslidesclasses()},updateactiveindex:function(e){var t,a=this,i=a.rtltranslate?a.translate:-a.translate,s=a.slidesgrid,r=a.snapgrid,n=a.params,l=a.activeindex,o=a.realindex,d=a.snapindex,p=e;if(void 0===p){for(var u=0;u=s[u]&&i=s[u]&&i=s[u]&&(p=u);n.normalizeslideindex&&(p<0||void 0===p)&&(p=0)}if(r.indexof(i)>=0)t=r.indexof(i);else{var c=math.min(n.slidespergroupskip,p);t=c+math.floor((p-c)/n.slidespergroup)}if(t>=r.length&&(t=r.length-1),p!==l){var h=parseint(a.slides.eq(p).attr("data-swiper-slide-index")||p,10);s(a,{snapindex:t,realindex:h,previousindex:l,activeindex:p}),a.emit("activeindexchange"),a.emit("snapindexchange"),o!==h&&a.emit("realindexchange"),(a.initialized||a.params.runcallbacksoninit)&&a.emit("slidechange")}else t!==d&&(a.snapindex=t,a.emit("snapindexchange"))},updateclickedslide:function(e){var t=this,a=t.params,i=m(e.target).closest("."+a.slideclass)[0],s=!1;if(i)for(var r=0;rd?d:i&&er?"next":is?"next":i=o.length&&(f=o.length-1),(u||l.initialslide||0)===(p||0)&&a&&r.emit("beforeslidechangestart");var m,g=-o[f];if(r.updateprogress(g),l.normalizeslideindex)for(var y=0;y=math.floor(100*d[y])&&(n=y);if(r.initialized&&n!==u){if(!r.allowslidenext&&gr.translate&&g>r.maxtranslate()&&(u||0)!==n)return!1}if(m=n>u?"next":n=e&&(h=e)})),void 0!==h&&(p=l.indexof(h))<0&&(p=i.activeindex-1),i.slideto(p,e,t,a)},slidereset:function(e,t,a){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideto(this.activeindex,e,t,a)},slidetoclosest:function(e,t,a,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===i&&(i=.5);var s=this,r=s.activeindex,n=math.min(s.params.slidespergroupskip,r),l=n+math.floor((r-n)/s.params.slidespergroup),o=s.rtltranslate?s.translate:-s.translate;if(o>=s.snapgrid[l]){var d=s.snapgrid[l];o-d>(s.snapgrid[l+1]-d)*i&&(r+=s.params.slidespergroup)}else{var p=s.snapgrid[l-1];o-p<=(s.snapgrid[l]-p)*i&&(r-=s.params.slidespergroup)}return r=math.max(r,0),r=math.min(r,s.slidesgrid.length-1),s.slideto(r,e,t,a)},slidetoclickedslide:function(){var e,t=this,a=t.params,i=t.$wrapperel,s="auto"===a.slidesperview?t.slidesperviewdynamic():a.slidesperview,r=t.clickedindex;if(a.loop){if(t.animating)return;e=parseint(m(t.clickedslide).attr("data-swiper-slide-index"),10),a.centeredslides?rt.slides.length-t.loopedslides+s/2?(t.loopfix(),r=i.children("."+a.slideclass+'[data-swiper-slide-index="'+e+'"]:not(.'+a.slideduplicateclass+")").eq(0).index(),e((function(){t.slideto(r)}))):t.slideto(r):r>t.slides.length-s?(t.loopfix(),r=i.children("."+a.slideclass+'[data-swiper-slide-index="'+e+'"]:not(.'+a.slideduplicateclass+")").eq(0).index(),e((function(){t.slideto(r)}))):t.slideto(r)}else t.slideto(r)}},loop:{loopcreate:function(){var e=this,t=r(),a=e.params,i=e.$wrapperel;i.children("."+a.slideclass+"."+a.slideduplicateclass).remove();var s=i.children("."+a.slideclass);if(a.loopfillgroupwithblank){var n=a.slidespergroup-s.length%a.slidespergroup;if(n!==a.slidespergroup){for(var l=0;ls.length&&(e.loopedslides=s.length);var d=[],p=[];s.each((function(t,a){var i=m(t);a=s.length-e.loopedslides&&d.push(t),i.attr("data-swiper-slide-index",a)}));for(var u=0;u=0;c-=1)i.prepend(m(d[c].clonenode(!0)).addclass(a.slideduplicateclass))},loopfix:function(){var e=this;e.emit("beforeloopfix");var t,a=e.activeindex,i=e.slides,s=e.loopedslides,r=e.allowslideprev,n=e.allowslidenext,l=e.snapgrid,o=e.rtltranslate;e.allowslideprev=!0,e.allowslidenext=!0;var d=-l[a]-e.gettranslate();if(a=i.length-s){t=-i.length+a+s,t+=s,e.slideto(t,0,!1,!0)&&0!==d&&e.settranslate((o?-e.translate:e.translate)-d)}e.allowslideprev=r,e.allowslidenext=n,e.emit("loopfix")},loopdestroy:function(){var e=this,t=e.$wrapperel,a=e.params,i=e.slides;t.children("."+a.slideclass+"."+a.slideduplicateclass+",."+a.slideclass+"."+a.slideblankclass).remove(),i.removeattr("data-swiper-slide-index")}},grabcursor:{setgrabcursor:function(e){var t=this;if(!(t.support.touch||!t.params.simulatetouch||t.params.watchoverflow&&t.islocked||t.params.cssmode)){var a=t.el;a.style.cursor="move",a.style.cursor=e?"-webkit-grabbing":"-webkit-grab",a.style.cursor=e?"-moz-grabbin":"-moz-grab",a.style.cursor=e?"grabbing":"grab"}},unsetgrabcursor:function(){var e=this;e.support.touch||e.params.watchoverflow&&e.islocked||e.params.cssmode||(e.el.style.cursor="")}},manipulation:{appendslide:function(e){var t=this,a=t.$wrapperel,i=t.params;if(i.loop&&t.loopdestroy(),"object"==typeof e&&"length"in e)for(var s=0;s=n)a.appendslide(t);else{for(var l=r>e?r+1:r,o=[],d=n-1;d>=e;d-=1){var p=a.slides.eq(d);p.remove(),o.unshift(p)}if("object"==typeof t&&"length"in t){for(var u=0;ue?r+t.length:r}else i.append(t);for(var c=0;c1,c=p.slidespercolumn>1;u&&!c?(n.removeclass(r.containermodifierclass+"multirow "+r.containermodifierclass+"multirow-column"),e.emitcontainerclasses()):!u&&c&&(n.addclass(r.containermodifierclass+"multirow"),"column"===p.slidespercolumnfill&&n.addclass(r.containermodifierclass+"multirow-column"),e.emitcontainerclasses());var h=p.direction&&p.direction!==r.direction,v=r.loop&&(p.slidesperview!==r.slidesperview||h);h&&a&&e.changedirection(),s(e.params,p),s(e,{allowtouchmove:e.params.allowtouchmove,allowslidenext:e.params.allowslidenext,allowslideprev:e.params.allowslideprev}),e.currentbreakpoint=o,e.emit("_beforebreakpoint",p),v&&a&&(e.loopdestroy(),e.loopcreate(),e.updateslides(),e.slideto(t-s+e.loopedslides,0,!1)),e.emit("breakpoint",p)}}},getbreakpoint:function(e){var t=l();if(e){var a=!1,i=object.keys(e).map((function(e){if("string"==typeof e&&0===e.indexof("@")){var a=parsefloat(e.substr(1));return{value:t.innerheight*a,point:e}}return{value:e,point:e}}));i.sort((function(e,t){return parseint(e.value,10)-parseint(t.value,10)}));for(var s=0;s0&&t.slidesoffsetbefore+t.spacebetween*(e.slides.length-1)+e.slides[0].offsetwidth*e.slides.length;t.slidesoffsetbefore&&t.slidesoffsetafter&&i?e.islocked=i<=e.size:e.islocked=1===e.snapgrid.length,e.allowslidenext=!e.islocked,e.allowslideprev=!e.islocked,a!==e.islocked&&e.emit(e.islocked?"lock":"unlock"),a&&a!==e.islocked&&(e.isend=!1,e.navigation&&e.navigation.update())}},classes:{addclasses:function(){var e=this,t=e.classnames,a=e.params,i=e.rtl,s=e.$el,r=e.device,n=[];n.push("initialized"),n.push(a.direction),a.freemode&&n.push("free-mode"),a.autoheight&&n.push("autoheight"),i&&n.push("rtl"),a.slidespercolumn>1&&(n.push("multirow"),"column"===a.slidespercolumnfill&&n.push("multirow-column")),r.android&&n.push("android"),r.ios&&n.push("ios"),a.cssmode&&n.push("css-mode"),n.foreach((function(e){t.push(a.containermodifierclass+e)})),s.addclass(t.join(" ")),e.emitcontainerclasses()},removeclasses:function(){var e=this,t=e.$el,a=e.classnames;t.removeclass(a.join(" ")),e.emitcontainerclasses()}},images:{loadimage:function(e,t,a,i,s,r){var n,o=l();function d(){r&&r()}m(e).parent("picture")[0]||e.complete&&s?d():t?((n=new o.image).onload=d,n.onerror=d,i&&(n.sizes=i),a&&(n.srcset=a),t&&(n.src=t)):d()},preloadimages:function(){var 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(var a=0;a1){var d=[];return o.each((function(e){var i=s({},a,{el:e});d.push(new t(i))})),d}var p,u,c;return e.swiper=n,e&&e.shadowroot&&e.shadowroot.queryselector?(p=m(e.shadowroot.queryselector("."+n.params.wrapperclass))).children=function(e){return o.children(e)}:p=o.children("."+n.params.wrapperclass),s(n,{$el:o,el:e,$wrapperel:p,wrapperel:p[0],classnames:[],slides:m(),slidesgrid:[],snapgrid:[],slidessizesgrid:[],ishorizontal:function(){return"horizontal"===n.params.direction},isvertical:function(){return"vertical"===n.params.direction},rtl:"rtl"===e.dir.tolowercase()||"rtl"===o.css("direction"),rtltranslate:"horizontal"===n.params.direction&&("rtl"===e.dir.tolowercase()||"rtl"===o.css("direction")),wrongrtl:"-webkit-box"===p.css("display"),activeindex:0,realindex:0,isbeginning:!0,isend:!1,translate:0,previoustranslate:0,progress:0,velocity:0,animating:!1,allowslidenext:n.params.allowslidenext,allowslideprev:n.params.allowslideprev,touchevents:(u=["touchstart","touchmove","touchend","touchcancel"],c=["mousedown","mousemove","mouseup"],n.support.pointerevents&&(c=["pointerdown","pointermove","pointerup"]),n.toucheventstouch={start:u[0],move:u[1],end:u[2],cancel:u[3]},n.toucheventsdesktop={start:c[0],move:c[1],end:c[2]},n.support.touch||!n.params.simulatetouch?n.toucheventstouch:n.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,formelements:"input, select, option, textarea, button, video, label",lastclicktime:x(),clicktimeout:void 0,velocities:[],allowmomentumbounce:void 0,istouchevent:void 0,startmoving:void 0},allowclick:!0,allowtouchmove:n.params.allowtouchmove,touches:{startx:0,starty:0,currentx:0,currenty:0,diff:0},imagestoload:[],imagesloaded:0}),n.usemodules(),n.emit("_swiper"),n.params.init&&n.init(),n}}var a,i,s,r=t.prototype;return r.emitcontainerclasses=function(){var e=this;if(e.params._emitclasses&&e.el){var t=e.el.classname.split(" ").filter((function(t){return 0===t.indexof("swiper-container")||0===t.indexof(e.params.containermodifierclass)}));e.emit("_containerclasses",t.join(" "))}},r.getslideclasses=function(e){var t=this;return e.classname.split(" ").filter((function(e){return 0===e.indexof("swiper-slide")||0===e.indexof(t.params.slideclass)})).join(" ")},r.emitslidesclasses=function(){var e=this;e.params._emitclasses&&e.el&&e.slides.each((function(t){var a=e.getslideclasses(t);e.emit("_slideclass",t,a)}))},r.slidesperviewdynamic=function(){var e=this,t=e.params,a=e.slides,i=e.slidesgrid,s=e.size,r=e.activeindex,n=1;if(t.centeredslides){for(var l,o=a[r].swiperslidesize,d=r+1;ds&&(l=!0));for(var p=r-1;p>=0;p-=1)a[p]&&!l&&(n+=1,(o+=a[p].swiperslidesize)>s&&(l=!0))}else for(var u=r+1;u1)&&e.isend&&!e.params.centeredslides?e.slideto(e.slides.length-1,0,!1,!0):e.slideto(e.activeindex,0,!1,!0))||i(),a.watchoverflow&&t!==e.snapgrid&&e.checkoverflow(),e.emit("update")}function i(){var t=e.rtltranslate?-1*e.translate:e.translate,a=math.min(math.max(t,e.maxtranslate()),e.mintranslate());e.settranslate(a),e.updateactiveindex(),e.updateslidesclasses()}},r.changedirection=function(e,t){void 0===t&&(t=!0);var a=this,i=a.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(a.$el.removeclass(""+a.params.containermodifierclass+i).addclass(""+a.params.containermodifierclass+e),a.emitcontainerclasses(),a.params.direction=e,a.slides.each((function(t){"vertical"===e?t.style.width="":t.style.height=""})),a.emit("changedirection"),t&&a.update()),a},r.init=function(){var e=this;e.initialized||(e.emit("beforeinit"),e.params.breakpoints&&e.setbreakpoint(),e.addclasses(),e.params.loop&&e.loopcreate(),e.updatesize(),e.updateslides(),e.params.watchoverflow&&e.checkoverflow(),e.params.grabcursor&&e.setgrabcursor(),e.params.preloadimages&&e.preloadimages(),e.params.loop?e.slideto(e.params.initialslide+e.loopedslides,0,e.params.runcallbacksoninit):e.slideto(e.params.initialslide,0,e.params.runcallbacksoninit),e.attachevents(),e.initialized=!0,e.emit("init"),e.emit("afterinit"))},r.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var a,i=this,s=i.params,r=i.$el,n=i.$wrapperel,l=i.slides;return void 0===i.params||i.destroyed||(i.emit("beforedestroy"),i.initialized=!1,i.detachevents(),s.loop&&i.loopdestroy(),t&&(i.removeclasses(),r.removeattr("style"),n.removeattr("style"),l&&l.length&&l.removeclass([s.slidevisibleclass,s.slideactiveclass,s.slidenextclass,s.slideprevclass].join(" ")).removeattr("style").removeattr("data-swiper-slide-index")),i.emit("destroy"),object.keys(i.eventslisteners).foreach((function(e){i.off(e)})),!1!==e&&(i.$el[0].swiper=null,a=i,object.keys(a).foreach((function(e){try{a[e]=null}catch(e){}try{delete a[e]}catch(e){}}))),i.destroyed=!0),null},t.extenddefaults=function(e){s(f,e)},t.installmodule=function(e){t.prototype.modules||(t.prototype.modules={});var a=e.name||object.keys(t.prototype.modules).length+"_"+x();t.prototype.modules[a]=e},t.use=function(e){return array.isarray(e)?(e.foreach((function(e){return t.installmodule(e)})),t):(t.installmodule(e),t)},a=t,s=[{key:"extendeddefaults",get:function(){return f}},{key:"defaults",get:function(){return y}}],(i=null)&&e(a.prototype,i),s&&e(a,s),t}();object.keys(v).foreach((function(e){object.keys(v[e]).foreach((function(t){r.prototype[t]=v[e][t]}))})),r.use([l,i]);var w={update:function(e){var t=this,a=t.params,i=a.slidesperview,s=a.slidespergroup,r=a.centeredslides,n=t.params.virtual,l=n.addslidesbefore,o=n.addslidesafter,d=t.virtual,p=d.from,u=d.to,c=d.slides,h=d.slidesgrid,v=d.renderslide,f=d.offset;t.updateactiveindex();var m,g,y,w=t.activeindex||0;m=t.rtltranslate?"right":t.ishorizontal()?"left":"top",r?(g=math.floor(i/2)+s+o,y=math.floor(i/2)+s+l):(g=i+(s-1)+o,y=s+l);var b=math.max((w||0)-y,0),e=math.min((w||0)+g,c.length-1),x=(t.slidesgrid[b]||0)-(t.slidesgrid[0]||0);function t(){t.updateslides(),t.updateprogress(),t.updateslidesclasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load()}if(s(t.virtual,{from:b,to:e,offset:x,slidesgrid:t.slidesgrid}),p===b&&u===e&&!e)return t.slidesgrid!==h&&x!==f&&t.slides.css(m,x+"px"),void t.updateprogress();if(t.params.virtual.renderexternal)return t.params.virtual.renderexternal.call(t,{offset:x,from:b,to:e,slides:function(){for(var e=[],t=b;t<=e;t+=1)e.push(c[t]);return e}()}),void(t.params.virtual.renderexternalupdate&&t());var c=[],m=[];if(e)t.$wrapperel.find("."+t.params.slideclass).remove();else for(var z=p;z<=u;z+=1)(ze)&&t.$wrapperel.find("."+t.params.slideclass+'[data-swiper-slide-index="'+z+'"]').remove();for(var p=0;p=b&&p<=e&&(void 0===u||e?m.push(p):(p>u&&m.push(p),p'+e+"");return s.attr("data-swiper-slide-index")||s.attr("data-swiper-slide-index",t),i.cache&&(a.virtual.cache[t]=s),s},appendslide:function(e){var t=this;if("object"==typeof e&&"length"in e)for(var a=0;a=0;i-=1)t.virtual.slides.splice(e[i],1),t.params.virtual.cache&&delete t.virtual.cache[e[i]],e[i]0&&0===t.$el.parents("."+t.params.slideactiveclass).length)return;var g=a.innerwidth,y=a.innerheight,w=t.$el.offset();s&&(w.left-=t.$el[0].scrollleft);for(var b=[[w.left,w.top],[w.left+t.width,w.top],[w.left,w.top+t.height],[w.left+t.width,w.top+t.height]],e=0;e=0&&x[0]<=g&&x[1]>=0&&x[1]<=y){if(0===x[0]&&0===x[1])continue;m=!0}}if(!m)return}t.ishorizontal()?((p||u||c||h)&&(n.preventdefault?n.preventdefault():n.returnvalue=!1),((u||h)&&!s||(p||c)&&s)&&t.slidenext(),((p||c)&&!s||(u||h)&&s)&&t.slideprev()):((p||u||v||f)&&(n.preventdefault?n.preventdefault():n.returnvalue=!1),(u||f)&&t.slidenext(),(p||v)&&t.slideprev()),t.emit("keypress",o)}},enable:function(){var e=this,t=r();e.keyboard.enabled||(m(t).on("keydown",e.keyboard.handle),e.keyboard.enabled=!0)},disable:function(){var e=this,t=r();e.keyboard.enabled&&(m(t).off("keydown",e.keyboard.handle),e.keyboard.enabled=!1)}},_={name:"keyboard",params:{keyboard:{enabled:!1,onlyinviewport:!0,pageupdown:!0}},create:function(){m(this,{keyboard:t({enabled:!1},j)})},on:{init:function(e){e.params.keyboard.enabled&&e.keyboard.enable()},destroy:function(e){e.keyboard.enabled&&e.keyboard.disable()}}};var u={lastscrolltime:x(),lasteventbeforesnap:void 0,recentwheelevents:[],event:function(){return l().navigator.useragent.indexof("firefox")>-1?"dommousescroll":function(){var e=r(),t="onwheel",a=t in e;if(!a){var i=e.createelement("div");i.setattribute(t,"return;"),a="function"==typeof i.onwheel}return!a&&e.implementation&&e.implementation.hasfeature&&!0!==e.implementation.hasfeature("","")&&(a=e.implementation.hasfeature("events.wheel","3.0")),a}()?"wheel":"mousewheel"},normalize:function(e){var t=0,a=0,i=0,s=0;return"detail"in e&&(a=e.detail),"wheeldelta"in e&&(a=-e.wheeldelta/120),"wheeldeltay"in e&&(a=-e.wheeldeltay/120),"wheeldeltax"in e&&(t=-e.wheeldeltax/120),"axis"in e&&e.axis===e.horizontal_axis&&(t=a,a=0),i=10*t,s=10*a,"deltay"in e&&(s=e.deltay),"deltax"in e&&(i=e.deltax),e.shiftkey&&!i&&(i=s,s=0),(i||s)&&e.deltamode&&(1===e.deltamode?(i*=40,s*=40):(i*=800,s*=800)),i&&!t&&(t=i<1?-1:1),s&&!a&&(a=s<1?-1:1),{spinx:t,spiny:a,pixelx:i,pixely:s}},handlemouseenter:function(){this.mouseentered=!0},handlemouseleave:function(){this.mouseentered=!1},handle:function(e){var t=e,a=this,i=a.params.mousewheel;a.params.cssmode&&t.preventdefault();var s=a.$el;if("container"!==a.params.mousewheel.eventstarget&&(s=m(a.params.mousewheel.eventstarget)),!a.mouseentered&&!s[0].contains(t.target)&&!i.releaseonedges)return!0;t.originalevent&&(t=t.originalevent);var r=0,n=a.rtltranslate?-1:1,l=u.normalize(t);if(i.forcetoaxis)if(a.ishorizontal()){if(!(math.abs(l.pixelx)>math.abs(l.pixely)))return!0;r=-l.pixelx*n}else{if(!(math.abs(l.pixely)>math.abs(l.pixelx)))return!0;r=-l.pixely}else r=math.abs(l.pixelx)>math.abs(l.pixely)?-l.pixelx*n:-l.pixely;if(0===r)return!0;i.invert&&(r=-r);var o=a.gettranslate()+r*i.sensitivity;if(o>=a.mintranslate()&&(o=a.mintranslate()),o<=a.maxtranslate()&&(o=a.maxtranslate()),(!!a.params.loop||!(o===a.mintranslate()||o===a.maxtranslate()))&&a.params.nested&&t.stoppropagation(),a.params.freemode){var d={time:x(),delta:math.abs(r),direction:math.sign(r)},p=a.mousewheel.lasteventbeforesnap,u=p&&d.time=a.mintranslate()&&(c=a.mintranslate()),c<=a.maxtranslate()&&(c=a.maxtranslate()),a.settransition(0),a.settranslate(c),a.updateprogress(),a.updateactiveindex(),a.updateslidesclasses(),(!h&&a.isbeginning||!v&&a.isend)&&a.updateslidesclasses(),a.params.freemodesticky){cleartimeout(a.mousewheel.timeout),a.mousewheel.timeout=void 0;var f=a.mousewheel.recentwheelevents;f.length>=15&&f.shift();var g=f.length?f[f.length-1]:void 0,y=f[0];if(f.push(d),g&&(d.delta>g.delta||d.direction!==g.direction))f.splice(0);else if(f.length>=15&&d.time-y.time<500&&y.delta-d.delta>=1&&d.delta<=6){var w=r>0?.8:.2;a.mousewheel.lasteventbeforesnap=d,f.splice(0),a.mousewheel.timeout=e((function(){a.slidetoclosest(a.params.speed,!0,void 0,w)}),0)}a.mousewheel.timeout||(a.mousewheel.timeout=e((function(){a.mousewheel.lasteventbeforesnap=d,f.splice(0),a.slidetoclosest(a.params.speed,!0,void 0,.5)}),500))}if(u||a.emit("scroll",t),a.params.autoplay&&a.params.autoplaydisableoninteraction&&a.autoplay.stop(),c===a.mintranslate()||c===a.maxtranslate())return!0}}else{var b={time:x(),delta:math.abs(r),direction:math.sign(r),raw:e},t=a.mousewheel.recentwheelevents;t.length>=2&&t.shift();var c=t.length?t[t.length-1]:void 0;if(t.push(b),c?(b.direction!==c.direction||b.delta>c.delta||b.time>c.time+150)&&a.mousewheel.animateslider(b):a.mousewheel.animateslider(b),a.mousewheel.releasescroll(b))return!0}return t.preventdefault?t.preventdefault():t.returnvalue=!1,!1},animateslider:function(e){var t=this,a=l();return!(this.params.mousewheel.thresholddelta&&e.delta=6&&x()-t.mousewheel.lastscrolltime<60||(e.direction<0?t.isend&&!t.params.loop||t.animating||(t.slidenext(),t.emit("scroll",e.raw)):t.isbeginning&&!t.params.loop||t.animating||(t.slideprev(),t.emit("scroll",e.raw)),t.mousewheel.lastscrolltime=(new a.date).gettime(),!1)))},releasescroll:function(e){var t=this,a=t.params.mousewheel;if(e.direction<0){if(t.isend&&!t.params.loop&&a.releaseonedges)return!0}else if(t.isbeginning&&!t.params.loop&&a.releaseonedges)return!0;return!1},enable:function(){var e=this,t=u.event();if(e.params.cssmode)return e.wrapperel.removeeventlistener(t,e.mousewheel.handle),!0;if(!t)return!1;if(e.mousewheel.enabled)return!1;var a=e.$el;return"container"!==e.params.mousewheel.eventstarget&&(a=m(e.params.mousewheel.eventstarget)),a.on("mouseenter",e.mousewheel.handlemouseenter),a.on("mouseleave",e.mousewheel.handlemouseleave),a.on(t,e.mousewheel.handle),e.mousewheel.enabled=!0,!0},disable:function(){var e=this,t=u.event();if(e.params.cssmode)return e.wrapperel.addeventlistener(t,e.mousewheel.handle),!0;if(!t)return!1;if(!e.mousewheel.enabled)return!1;var a=e.$el;return"container"!==e.params.mousewheel.eventstarget&&(a=m(e.params.mousewheel.eventstarget)),a.off(t,e.mousewheel.handle),e.mousewheel.enabled=!1,!0}},k={update:function(){var e=this,t=e.params.navigation;if(!e.params.loop){var a=e.navigation,i=a.$nextel,s=a.$prevel;s&&s.length>0&&(e.isbeginning?s.addclass(t.disabledclass):s.removeclass(t.disabledclass),s[e.params.watchoverflow&&e.islocked?"addclass":"removeclass"](t.lockclass)),i&&i.length>0&&(e.isend?i.addclass(t.disabledclass):i.removeclass(t.disabledclass),i[e.params.watchoverflow&&e.islocked?"addclass":"removeclass"](t.lockclass))}},onprevclick:function(e){var t=this;e.preventdefault(),t.isbeginning&&!t.params.loop||t.slideprev()},onnextclick:function(e){var t=this;e.preventdefault(),t.isend&&!t.params.loop||t.slidenext()},init:function(){var e,t,a=this,i=a.params.navigation;(i.nextel||i.prevel)&&(i.nextel&&(e=m(i.nextel),a.params.uniquenavelements&&"string"==typeof i.nextel&&e.length>1&&1===a.$el.find(i.nextel).length&&(e=a.$el.find(i.nextel))),i.prevel&&(t=m(i.prevel),a.params.uniquenavelements&&"string"==typeof i.prevel&&t.length>1&&1===a.$el.find(i.prevel).length&&(t=a.$el.find(i.prevel))),e&&e.length>0&&e.on("click",a.navigation.onnextclick),t&&t.length>0&&t.on("click",a.navigation.onprevclick),s(a.navigation,{$nextel:e,nextel:e&&e[0],$prevel:t,prevel:t&&t[0]}))},destroy:function(){var e=this,t=e.navigation,a=t.$nextel,i=t.$prevel;a&&a.length&&(a.off("click",e.navigation.onnextclick),a.removeclass(e.params.navigation.disabledclass)),i&&i.length&&(i.off("click",e.navigation.onprevclick),i.removeclass(e.params.navigation.disabledclass))}},z={update:function(){var e=this,t=e.rtl,a=e.params.pagination;if(a.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var i,s=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,r=e.pagination.$el,n=e.params.loop?math.ceil((s-2*e.loopedslides)/e.params.slidespergroup):e.snapgrid.length;if(e.params.loop?((i=math.ceil((e.activeindex-e.loopedslides)/e.params.slidespergroup))>s-1-2*e.loopedslides&&(i-=s-2*e.loopedslides),i>n-1&&(i-=n),i<0&&"bullets"!==e.params.paginationtype&&(i=n+i)):i=void 0!==e.snapindex?e.snapindex:e.activeindex||0,"bullets"===a.type&&e.pagination.bullets&&e.pagination.bullets.length>0){var l,o,d,p=e.pagination.bullets;if(a.dynamicbullets&&(e.pagination.bulletsize=p.eq(0)[e.ishorizontal()?"outerwidth":"outerheight"](!0),r.css(e.ishorizontal()?"width":"height",e.pagination.bulletsize*(a.dynamicmainbullets+4)+"px"),a.dynamicmainbullets>1&&void 0!==e.previousindex&&(e.pagination.dynamicbulletindex+=i-e.previousindex,e.pagination.dynamicbulletindex>a.dynamicmainbullets-1?e.pagination.dynamicbulletindex=a.dynamicmainbullets-1:e.pagination.dynamicbulletindex<0&&(e.pagination.dynamicbulletindex=0)),l=i-e.pagination.dynamicbulletindex,d=((o=l+(math.min(p.length,a.dynamicmainbullets)-1))+l)/2),p.removeclass(a.bulletactiveclass+" "+a.bulletactiveclass+"-next "+a.bulletactiveclass+"-next-next "+a.bulletactiveclass+"-prev "+a.bulletactiveclass+"-prev-prev "+a.bulletactiveclass+"-main"),r.length>1)p.each((function(e){var t=m(e),s=t.index();s===i&&t.addclass(a.bulletactiveclass),a.dynamicbullets&&(s>=l&&s<=o&&t.addclass(a.bulletactiveclass+"-main"),s===l&&t.prev().addclass(a.bulletactiveclass+"-prev").prev().addclass(a.bulletactiveclass+"-prev-prev"),s===o&&t.next().addclass(a.bulletactiveclass+"-next").next().addclass(a.bulletactiveclass+"-next-next"))}));else{var u=p.eq(i),c=u.index();if(u.addclass(a.bulletactiveclass),a.dynamicbullets){for(var h=p.eq(l),v=p.eq(o),f=l;f<=o;f+=1)p.eq(f).addclass(a.bulletactiveclass+"-main");if(e.params.loop)if(c>=p.length-a.dynamicmainbullets){for(var g=a.dynamicmainbullets;g>=0;g-=1)p.eq(p.length-g).addclass(a.bulletactiveclass+"-main");p.eq(p.length-a.dynamicmainbullets-1).addclass(a.bulletactiveclass+"-prev")}else h.prev().addclass(a.bulletactiveclass+"-prev").prev().addclass(a.bulletactiveclass+"-prev-prev"),v.next().addclass(a.bulletactiveclass+"-next").next().addclass(a.bulletactiveclass+"-next-next");else h.prev().addclass(a.bulletactiveclass+"-prev").prev().addclass(a.bulletactiveclass+"-prev-prev"),v.next().addclass(a.bulletactiveclass+"-next").next().addclass(a.bulletactiveclass+"-next-next")}}if(a.dynamicbullets){var y=math.min(p.length,a.dynamicmainbullets+4),w=(e.pagination.bulletsize*y-e.pagination.bulletsize)/2-d*e.pagination.bulletsize,b=t?"right":"left";p.css(e.ishorizontal()?b:"top",w+"px")}}if("fraction"===a.type&&(r.find("."+a.currentclass).text(a.formatfractioncurrent(i+1)),r.find("."+a.totalclass).text(a.formatfractiontotal(n))),"progressbar"===a.type){var e;e=a.progressbaropposite?e.ishorizontal()?"vertical":"horizontal":e.ishorizontal()?"horizontal":"vertical";var x=(i+1)/n,t=1,c=1;"horizontal"===e?t=x:c=x,r.find("."+a.progressbarfillclass).transform("translate3d(0,0,0) scalex("+t+") scaley("+c+")").transition(e.params.speed)}"custom"===a.type&&a.rendercustom?(r.html(a.rendercustom(e,i+1,n)),e.emit("paginationrender",r[0])):e.emit("paginationupdate",r[0]),r[e.params.watchoverflow&&e.islocked?"addclass":"removeclass"](a.lockclass)}},render:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var a=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,i=e.pagination.$el,s="";if("bullets"===t.type){for(var r=e.params.loop?math.ceil((a-2*e.loopedslides)/e.params.slidespergroup):e.snapgrid.length,n=0;n";i.html(s),e.pagination.bullets=i.find("."+t.bulletclass.replace(/ /g,"."))}"fraction"===t.type&&(s=t.renderfraction?t.renderfraction.call(e,t.currentclass,t.totalclass):' / ',i.html(s)),"progressbar"===t.type&&(s=t.renderprogressbar?t.renderprogressbar.call(e,t.progressbarfillclass):'',i.html(s)),"custom"!==t.type&&e.emit("paginationrender",e.pagination.$el[0])}},init:function(){var e=this,t=e.params.pagination;if(t.el){var a=m(t.el);0!==a.length&&(e.params.uniquenavelements&&"string"==typeof t.el&&a.length>1&&(a=e.$el.find(t.el)),"bullets"===t.type&&t.clickable&&a.addclass(t.clickableclass),a.addclass(t.modifierclass+t.type),"bullets"===t.type&&t.dynamicbullets&&(a.addclass(""+t.modifierclass+t.type+"-dynamic"),e.pagination.dynamicbulletindex=0,t.dynamicmainbullets<1&&(t.dynamicmainbullets=1)),"progressbar"===t.type&&t.progressbaropposite&&a.addclass(t.progressbaroppositeclass),t.clickable&&a.on("click","."+t.bulletclass.replace(/ /g,"."),(function(t){t.preventdefault();var a=m(this).index()*e.params.slidespergroup;e.params.loop&&(a+=e.loopedslides),e.slideto(a)})),s(e.pagination,{$el:a,el:a[0]}))}},destroy:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var a=e.pagination.$el;a.removeclass(t.hiddenclass),a.removeclass(t.modifierclass+t.type),e.pagination.bullets&&e.pagination.bullets.removeclass(t.bulletactiveclass),t.clickable&&a.off("click","."+t.bulletclass.replace(/ /g,"."))}}},j={settranslate:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,a=e.rtltranslate,i=e.progress,s=t.dragsize,r=t.tracksize,n=t.$dragel,l=t.$el,o=e.params.scrollbar,d=s,p=(r-s)*i;a?(p=-p)>0?(d=s-p,p=0):-p+s>r&&(d=r+p):p<0?(d=s+p,p=0):p+s>r&&(d=r-p),e.ishorizontal()?(n.transform("translate3d("+p+"px, 0, 0)"),n[0].style.width=d+"px"):(n.transform("translate3d(0px, "+p+"px, 0)"),n[0].style.height=d+"px"),o.hide&&(cleartimeout(e.scrollbar.timeout),l[0].style.opacity=1,e.scrollbar.timeout=settimeout((function(){l[0].style.opacity=0,l.transition(400)}),1e3))}},settransition:function(e){var t=this;t.params.scrollbar.el&&t.scrollbar.el&&t.scrollbar.$dragel.transition(e)},updatesize:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,a=t.$dragel,i=t.$el;a[0].style.width="",a[0].style.height="";var s,r=e.ishorizontal()?i[0].offsetwidth:i[0].offsetheight,n=e.size/e.virtualsize,l=n*(r/e.size);s="auto"===e.params.scrollbar.dragsize?r*n:parseint(e.params.scrollbar.dragsize,10),e.ishorizontal()?a[0].style.width=s+"px":a[0].style.height=s+"px",i[0].style.display=n>=1?"none":"",e.params.scrollbar.hide&&(i[0].style.opacity=0),s(t,{tracksize:r,divider:n,movedivider:l,dragsize:s}),t.$el[e.params.watchoverflow&&e.islocked?"addclass":"removeclass"](e.params.scrollbar.lockclass)}},getpointerposition:function(e){return this.ishorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targettouches[0].clientx:e.clientx:"touchstart"===e.type||"touchmove"===e.type?e.targettouches[0].clienty:e.clienty},setdragposition:function(e){var t,a=this,i=a.scrollbar,s=a.rtltranslate,r=i.$el,n=i.dragsize,l=i.tracksize,o=i.dragstartpos;t=(i.getpointerposition(e)-r.offset()[a.ishorizontal()?"left":"top"]-(null!==o?o:n/2))/(l-n),t=math.max(math.min(t,1),0),s&&(t=1-t);var d=a.mintranslate()+(a.maxtranslate()-a.mintranslate())*t;a.updateprogress(d),a.settranslate(d),a.updateactiveindex(),a.updateslidesclasses()},ondragstart:function(e){var t=this,a=t.params.scrollbar,i=t.scrollbar,s=t.$wrapperel,r=i.$el,n=i.$dragel;t.scrollbar.istouched=!0,t.scrollbar.dragstartpos=e.target===n[0]||e.target===n?i.getpointerposition(e)-e.target.getboundingclientrect()[t.ishorizontal()?"left":"top"]:null,e.preventdefault(),e.stoppropagation(),s.transition(100),n.transition(100),i.setdragposition(e),cleartimeout(t.scrollbar.dragtimeout),r.transition(0),a.hide&&r.css("opacity",1),t.params.cssmode&&t.$wrapperel.css("scroll-snap-type","none"),t.emit("scrollbardragstart",e)},ondragmove:function(e){var t=this,a=t.scrollbar,i=t.$wrapperel,s=a.$el,r=a.$dragel;t.scrollbar.istouched&&(e.preventdefault?e.preventdefault():e.returnvalue=!1,a.setdragposition(e),i.transition(0),s.transition(0),r.transition(0),t.emit("scrollbardragmove",e))},ondragend:function(e){var t=this,a=t.params.scrollbar,i=t.scrollbar,s=t.$wrapperel,r=i.$el;t.scrollbar.istouched&&(t.scrollbar.istouched=!1,t.params.cssmode&&(t.$wrapperel.css("scroll-snap-type",""),s.transition("")),a.hide&&(cleartimeout(t.scrollbar.dragtimeout),t.scrollbar.dragtimeout=e((function(){r.css("opacity",0),r.transition(400)}),1e3)),t.emit("scrollbardragend",e),a.snaponrelease&&t.slidetoclosest())},enabledraggable:function(){var e=this;if(e.params.scrollbar.el){var t=r(),a=e.scrollbar,i=e.toucheventstouch,s=e.toucheventsdesktop,n=e.params,l=e.support,o=a.$el[0],d=!(!l.passivelistener||!n.passivelisteners)&&{passive:!1,capture:!1},p=!(!l.passivelistener||!n.passivelisteners)&&{passive:!0,capture:!1};l.touch?(o.addeventlistener(i.start,e.scrollbar.ondragstart,d),o.addeventlistener(i.move,e.scrollbar.ondragmove,d),o.addeventlistener(i.end,e.scrollbar.ondragend,p)):(o.addeventlistener(s.start,e.scrollbar.ondragstart,d),t.addeventlistener(s.move,e.scrollbar.ondragmove,d),t.addeventlistener(s.end,e.scrollbar.ondragend,p))}},disabledraggable:function(){var e=this;if(e.params.scrollbar.el){var t=r(),a=e.scrollbar,i=e.toucheventstouch,s=e.toucheventsdesktop,n=e.params,l=e.support,o=a.$el[0],d=!(!l.passivelistener||!n.passivelisteners)&&{passive:!1,capture:!1},p=!(!l.passivelistener||!n.passivelisteners)&&{passive:!0,capture:!1};l.touch?(o.removeeventlistener(i.start,e.scrollbar.ondragstart,d),o.removeeventlistener(i.move,e.scrollbar.ondragmove,d),o.removeeventlistener(i.end,e.scrollbar.ondragend,p)):(o.removeeventlistener(s.start,e.scrollbar.ondragstart,d),t.removeeventlistener(s.move,e.scrollbar.ondragmove,d),t.removeeventlistener(s.end,e.scrollbar.ondragend,p))}},init:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,a=e.$el,i=e.params.scrollbar,s=m(i.el);e.params.uniquenavelements&&"string"==typeof i.el&&s.length>1&&1===a.find(i.el).length&&(s=a.find(i.el));var r=s.find("."+e.params.scrollbar.dragclass);0===r.length&&(r=m('
'),s.append(r)),s(t,{$el:s,el:s[0],$dragel:r,dragel:r[0]}),i.draggable&&t.enabledraggable()}},destroy:function(){this.scrollbar.disabledraggable()}},q={settransform:function(e,t){var a=this.rtl,i=m(e),s=a?-1:1,r=i.attr("data-swiper-parallax")||"0",n=i.attr("data-swiper-parallax-x"),l=i.attr("data-swiper-parallax-y"),o=i.attr("data-swiper-parallax-scale"),d=i.attr("data-swiper-parallax-opacity");if(n||l?(n=n||"0",l=l||"0"):this.ishorizontal()?(n=r,l="0"):(l=r,n="0"),n=n.indexof("%")>=0?parseint(n,10)*t*s+"%":n*t*s+"px",l=l.indexof("%")>=0?parseint(l,10)*t+"%":l*t+"px",null!=d){var p=d-(d-1)*(1-math.abs(t));i[0].style.opacity=p}if(null==o)i.transform("translate3d("+n+", "+l+", 0px)");else{var u=o-(o-1)*(1-math.abs(t));i.transform("translate3d("+n+", "+l+", 0px) scale("+u+")")}},settranslate:function(){var e=this,t=e.$el,a=e.slides,i=e.progress,s=e.snapgrid;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t){e.parallax.settransform(t,i)})),a.each((function(t,a){var r=t.progress;e.params.slidespergroup>1&&"auto"!==e.params.slidesperview&&(r+=math.ceil(a/2)-i*(s.length-1)),r=math.min(math.max(r,-1),1),m(t).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t){e.parallax.settransform(t,r)}))}))},settransition:function(e){void 0===e&&(e=this.params.speed);this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t){var a=m(t),i=parseint(a.attr("data-swiper-parallax-duration"),10)||e;0===e&&(i=0),a.transition(i)}))}},ee={getdistancebetweentouches:function(e){if(e.targettouches.length<2)return 1;var t=e.targettouches[0].pagex,a=e.targettouches[0].pagey,i=e.targettouches[1].pagex,s=e.targettouches[1].pagey;return math.sqrt(math.pow(i-t,2)+math.pow(s-a,2))},ongesturestart:function(e){var t=this,a=t.support,i=t.params.zoom,s=t.zoom,r=s.gesture;if(s.fakegesturetouched=!1,s.fakegesturemoved=!1,!a.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targettouches.length<2)return;s.fakegesturetouched=!0,r.scalestart=ee.getdistancebetweentouches(e)}r.$slideel&&r.$slideel.length||(r.$slideel=m(e.target).closest("."+t.params.slideclass),0===r.$slideel.length&&(r.$slideel=t.slides.eq(t.activeindex)),r.$imageel=r.$slideel.find("img, svg, canvas, picture, .swiper-zoom-target"),r.$imagewrapel=r.$imageel.parent("."+i.containerclass),r.maxratio=r.$imagewrapel.attr("data-swiper-zoom")||i.maxratio,0!==r.$imagewrapel.length)?(r.$imageel&&r.$imageel.transition(0),t.zoom.isscaling=!0):r.$imageel=void 0},ongesturechange:function(e){var t=this,a=t.support,i=t.params.zoom,s=t.zoom,r=s.gesture;if(!a.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targettouches.length<2)return;s.fakegesturemoved=!0,r.scalemove=ee.getdistancebetweentouches(e)}r.$imageel&&0!==r.$imageel.length?(a.gestures?s.scale=e.scale*s.currentscale:s.scale=r.scalemove/r.scalestart*s.currentscale,s.scale>r.maxratio&&(s.scale=r.maxratio-1+math.pow(s.scale-r.maxratio+1,.5)),s.scales.touchesstart.x))return void(s.istouched=!1);if(!t.ishorizontal()&&(math.floor(s.miny)===math.floor(s.starty)&&s.touchescurrent.ys.touchesstart.y))return void(s.istouched=!1)}e.cancelable&&e.preventdefault(),e.stoppropagation(),s.ismoved=!0,s.currentx=s.touchescurrent.x-s.touchesstart.x+s.startx,s.currenty=s.touchescurrent.y-s.touchesstart.y+s.starty,s.currentxs.maxx&&(s.currentx=s.maxx-1+math.pow(s.currentx-s.maxx+1,.8)),s.currentys.maxy&&(s.currenty=s.maxy-1+math.pow(s.currenty-s.maxy+1,.8)),r.prevpositionx||(r.prevpositionx=s.touchescurrent.x),r.prevpositiony||(r.prevpositiony=s.touchescurrent.y),r.prevtime||(r.prevtime=date.now()),r.x=(s.touchescurrent.x-r.prevpositionx)/(date.now()-r.prevtime)/2,r.y=(s.touchescurrent.y-r.prevpositiony)/(date.now()-r.prevtime)/2,math.abs(s.touchescurrent.x-r.prevpositionx)<2&&(r.x=0),math.abs(s.touchescurrent.y-r.prevpositiony)<2&&(r.y=0),r.prevpositionx=s.touchescurrent.x,r.prevpositiony=s.touchescurrent.y,r.prevtime=date.now(),i.$imagewrapel.transform("translate3d("+s.currentx+"px, "+s.currenty+"px,0)")}}},ontouchend:function(){var e=this.zoom,t=e.gesture,a=e.image,i=e.velocity;if(t.$imageel&&0!==t.$imageel.length){if(!a.istouched||!a.ismoved)return a.istouched=!1,void(a.ismoved=!1);a.istouched=!1,a.ismoved=!1;var s=300,r=300,n=i.x*s,l=a.currentx+n,o=i.y*r,d=a.currenty+o;0!==i.x&&(s=math.abs((l-a.currentx)/i.x)),0!==i.y&&(r=math.abs((d-a.currenty)/i.y));var p=math.max(s,r);a.currentx=l,a.currenty=d;var u=a.width*e.scale,c=a.height*e.scale;a.minx=math.min(t.slidewidth/2-u/2,0),a.maxx=-a.minx,a.miny=math.min(t.slideheight/2-c/2,0),a.maxy=-a.miny,a.currentx=math.max(math.min(a.currentx,a.maxx),a.minx),a.currenty=math.max(math.min(a.currenty,a.maxy),a.miny),t.$imagewrapel.transition(p).transform("translate3d("+a.currentx+"px, "+a.currenty+"px,0)")}},ontransitionend:function(){var e=this,t=e.zoom,a=t.gesture;a.$slideel&&e.previousindex!==e.activeindex&&(a.$imageel&&a.$imageel.transform("translate3d(0,0,0) scale(1)"),a.$imagewrapel&&a.$imagewrapel.transform("translate3d(0,0,0)"),t.scale=1,t.currentscale=1,a.$slideel=void 0,a.$imageel=void 0,a.$imagewrapel=void 0)},toggle:function(e){var t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(e)},in:function(e){var t,a,i,s,r,n,l,o,d,p,u,c,h,v,f,m,g=this,y=g.zoom,w=g.params.zoom,b=y.gesture,e=y.image;(b.$slideel||(g.params.virtual&&g.params.virtual.enabled&&g.virtual?b.$slideel=g.$wrapperel.children("."+g.params.slideactiveclass):b.$slideel=g.slides.eq(g.activeindex),b.$imageel=b.$slideel.find("img, svg, canvas, picture, .swiper-zoom-target"),b.$imagewrapel=b.$imageel.parent("."+w.containerclass)),b.$imageel&&0!==b.$imageel.length)&&(b.$slideel.addclass(""+w.zoomedslideclass),void 0===e.touchesstart.x&&e?(t="touchend"===e.type?e.changedtouches[0].pagex:e.pagex,a="touchend"===e.type?e.changedtouches[0].pagey:e.pagey):(t=e.touchesstart.x,a=e.touchesstart.y),y.scale=b.$imagewrapel.attr("data-swiper-zoom")||w.maxratio,y.currentscale=b.$imagewrapel.attr("data-swiper-zoom")||w.maxratio,e?(f=b.$slideel[0].offsetwidth,m=b.$slideel[0].offsetheight,i=b.$slideel.offset().left+f/2-t,s=b.$slideel.offset().top+m/2-a,l=b.$imageel[0].offsetwidth,o=b.$imageel[0].offsetheight,d=l*y.scale,p=o*y.scale,h=-(u=math.min(f/2-d/2,0)),v=-(c=math.min(m/2-p/2,0)),(r=i*y.scale)h&&(r=h),(n=s*y.scale)v&&(n=v)):(r=0,n=0),b.$imagewrapel.transition(300).transform("translate3d("+r+"px, "+n+"px,0)"),b.$imageel.transition(300).transform("translate3d(0,0,0) scale("+y.scale+")"))},out:function(){var e=this,t=e.zoom,a=e.params.zoom,i=t.gesture;i.$slideel||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?i.$slideel=e.$wrapperel.children("."+e.params.slideactiveclass):i.$slideel=e.slides.eq(e.activeindex),i.$imageel=i.$slideel.find("img, svg, canvas, picture, .swiper-zoom-target"),i.$imagewrapel=i.$imageel.parent("."+a.containerclass)),i.$imageel&&0!==i.$imageel.length&&(t.scale=1,t.currentscale=1,i.$imagewrapel.transition(300).transform("translate3d(0,0,0)"),i.$imageel.transition(300).transform("translate3d(0,0,0) scale(1)"),i.$slideel.removeclass(""+a.zoomedslideclass),i.$slideel=void 0)},togglegestures:function(e){var t=this,a=t.zoom,i=a.slideselector,s=a.passivelistener;t.$wrapperel[e]("gesturestart",i,a.ongesturestart,s),t.$wrapperel[e]("gesturechange",i,a.ongesturechange,s),t.$wrapperel[e]("gestureend",i,a.ongestureend,s)},enablegestures:function(){this.zoom.gesturesenabled||(this.zoom.gesturesenabled=!0,this.zoom.togglegestures("on"))},disablegestures:function(){this.zoom.gesturesenabled&&(this.zoom.gesturesenabled=!1,this.zoom.togglegestures("off"))},enable:function(){var e=this,t=e.support,a=e.zoom;if(!a.enabled){a.enabled=!0;var i=!("touchstart"!==e.touchevents.start||!t.passivelistener||!e.params.passivelisteners)&&{passive:!0,capture:!1},s=!t.passivelistener||{passive:!1,capture:!0},r="."+e.params.slideclass;e.zoom.passivelistener=i,e.zoom.slideselector=r,t.gestures?(e.$wrapperel.on(e.touchevents.start,e.zoom.enablegestures,i),e.$wrapperel.on(e.touchevents.end,e.zoom.disablegestures,i)):"touchstart"===e.touchevents.start&&(e.$wrapperel.on(e.touchevents.start,r,a.ongesturestart,i),e.$wrapperel.on(e.touchevents.move,r,a.ongesturechange,s),e.$wrapperel.on(e.touchevents.end,r,a.ongestureend,i),e.touchevents.cancel&&e.$wrapperel.on(e.touchevents.cancel,r,a.ongestureend,i)),e.$wrapperel.on(e.touchevents.move,"."+e.params.zoom.containerclass,a.ontouchmove,s)}},disable:function(){var e=this,t=e.zoom;if(t.enabled){var a=e.support;e.zoom.enabled=!1;var i=!("touchstart"!==e.touchevents.start||!a.passivelistener||!e.params.passivelisteners)&&{passive:!0,capture:!1},s=!a.passivelistener||{passive:!1,capture:!0},r="."+e.params.slideclass;a.gestures?(e.$wrapperel.off(e.touchevents.start,e.zoom.enablegestures,i),e.$wrapperel.off(e.touchevents.end,e.zoom.disablegestures,i)):"touchstart"===e.touchevents.start&&(e.$wrapperel.off(e.touchevents.start,r,t.ongesturestart,i),e.$wrapperel.off(e.touchevents.move,r,t.ongesturechange,s),e.$wrapperel.off(e.touchevents.end,r,t.ongestureend,i),e.touchevents.cancel&&e.$wrapperel.off(e.touchevents.cancel,r,t.ongestureend,i)),e.$wrapperel.off(e.touchevents.move,"."+e.params.zoom.containerclass,t.ontouchmove,s)}}},te={loadinslide:function(e,t){void 0===t&&(t=!0);var a=this,i=a.params.lazy;if(void 0!==e&&0!==a.slides.length){var s=a.virtual&&a.params.virtual.enabled?a.$wrapperel.children("."+a.params.slideclass+'[data-swiper-slide-index="'+e+'"]'):a.slides.eq(e),r=s.find("."+i.elementclass+":not(."+i.loadedclass+"):not(."+i.loadingclass+")");!s.hasclass(i.elementclass)||s.hasclass(i.loadedclass)||s.hasclass(i.loadingclass)||r.push(s[0]),0!==r.length&&r.each((function(e){var r=m(e);r.addclass(i.loadingclass);var n=r.attr("data-background"),l=r.attr("data-src"),o=r.attr("data-srcset"),d=r.attr("data-sizes"),p=r.parent("picture");a.loadimage(r[0],l||n,o,d,!1,(function(){if(null!=a&&a&&(!a||a.params)&&!a.destroyed){if(n?(r.css("background-image",'url("'+n+'")'),r.removeattr("data-background")):(o&&(r.attr("srcset",o),r.removeattr("data-srcset")),d&&(r.attr("sizes",d),r.removeattr("data-sizes")),p.length&&p.children("source").each((function(e){var t=m(e);t.attr("data-srcset")&&(t.attr("srcset",t.attr("data-srcset")),t.removeattr("data-srcset"))})),l&&(r.attr("src",l),r.removeattr("data-src"))),r.addclass(i.loadedclass).removeclass(i.loadingclass),s.find("."+i.preloaderclass).remove(),a.params.loop&&t){var e=s.attr("data-swiper-slide-index");if(s.hasclass(a.params.slideduplicateclass)){var u=a.$wrapperel.children('[data-swiper-slide-index="'+e+'"]:not(.'+a.params.slideduplicateclass+")");a.lazy.loadinslide(u.index(),!1)}else{var c=a.$wrapperel.children("."+a.params.slideduplicateclass+'[data-swiper-slide-index="'+e+'"]');a.lazy.loadinslide(c.index(),!1)}}a.emit("lazyimageready",s[0],r[0]),a.params.autoheight&&a.updateautoheight()}})),a.emit("lazyimageload",s[0],r[0])}))}},load:function(){var e=this,t=e.$wrapperel,a=e.params,i=e.slides,s=e.activeindex,r=e.virtual&&a.virtual.enabled,n=a.lazy,l=a.slidesperview;function o(e){if(r){if(t.children("."+a.slideclass+'[data-swiper-slide-index="'+e+'"]').length)return!0}else if(i[e])return!0;return!1}function d(e){return r?m(e).attr("data-swiper-slide-index"):m(e).index()}if("auto"===l&&(l=0),e.lazy.initialimageloaded||(e.lazy.initialimageloaded=!0),e.params.watchslidesvisibility)t.children("."+a.slidevisibleclass).each((function(t){var a=r?m(t).attr("data-swiper-slide-index"):m(t).index();e.lazy.loadinslide(a)}));else if(l>1)for(var p=s;p1||n.loadprevnextamount&&n.loadprevnextamount>1){for(var u=n.loadprevnextamount,c=l,h=math.min(s+c+math.max(u,c),i.length),v=math.max(s-math.max(c,u),0),f=s+l;f0&&e.lazy.loadinslide(d(y));var w=t.children("."+a.slideprevclass);w.length>0&&e.lazy.loadinslide(d(w))}},checkinviewonload:function(){var e=l(),t=this;if(t&&!t.destroyed){var a=t.params.lazy.scrollingelement?m(t.params.lazy.scrollingelement):m(e),i=a[0]===e,s=i?e.innerwidth:a[0].offsetwidth,r=i?e.innerheight:a[0].offsetheight,n=t.$el.offset(),o=!1;t.rtltranslate&&(n.left-=t.$el[0].scrollleft);for(var d=[[n.left,n.top],[n.left+t.width,n.top],[n.left,n.top+t.height],[n.left+t.width,n.top+t.height]],p=0;p=0&&u[0]<=s&&u[1]>=0&&u[1]<=r){if(0===u[0]&&0===u[1])continue;o=!0}}o?(t.lazy.load(),a.off("scroll",t.lazy.checkinviewonload)):t.lazy.scrollhandlerattached||(t.lazy.scrollhandlerattached=!0,a.on("scroll",t.lazy.checkinviewonload))}}},ae={linearspline:function(e,t){var a,i,s,r,n,l=function(e,t){for(i=-1,a=e.length;a-i>1;)e[s=a+i>>1]<=t?i=s:a=s;return a};return this.x=e,this.y=t,this.lastindex=e.length-1,this.interpolate=function(e){return e?(n=l(this.x,e),r=n-1,(e-this.x[r])*(this.y[n]-this.y[r])/(this.x[n]-this.x[r])+this.y[r]):0},this},getinterpolatefunction:function(e){var t=this;t.controller.spline||(t.controller.spline=t.params.loop?new ae.linearspline(t.slidesgrid,e.slidesgrid):new ae.linearspline(t.snapgrid,e.snapgrid))},settranslate:function(e,t){var a,i,s=this,r=s.controller.control,n=s.constructor;function l(e){var t=s.rtltranslate?-s.translate:s.translate;"slide"===s.params.controller.by&&(s.controller.getinterpolatefunction(e),i=-s.controller.spline.interpolate(-t)),i&&"container"!==s.params.controller.by||(a=(e.maxtranslate()-e.mintranslate())/(s.maxtranslate()-s.mintranslate()),i=(t-s.mintranslate())*a+e.mintranslate()),s.params.controller.inverse&&(i=e.maxtranslate()-i),e.updateprogress(i),e.settranslate(i,s),e.updateactiveindex(),e.updateslidesclasses()}if(array.isarray(r))for(var o=0;o0&&(e.isbeginning?(e.a11y.disableel(i),e.a11y.makeelnotfocusable(i)):(e.a11y.enableel(i),e.a11y.makeelfocusable(i))),a&&a.length>0&&(e.isend?(e.a11y.disableel(a),e.a11y.makeelnotfocusable(a)):(e.a11y.enableel(a),e.a11y.makeelfocusable(a)))}},updatepagination:function(){var e=this,t=e.params.a11y;e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.bullets.each((function(a){var i=m(a);e.a11y.makeelfocusable(i),e.params.pagination.renderbullet||(e.a11y.addelrole(i,"button"),e.a11y.addellabel(i,t.paginationbulletmessage.replace(/\{\{index\}\}/,i.index()+1)))}))},init:function(){var e=this,t=e.params.a11y;e.$el.append(e.a11y.liveregion);var a=e.$el;t.containerroledescriptionmessage&&e.a11y.addelroledescription(a,t.containerroledescriptionmessage),t.containermessage&&e.a11y.addellabel(a,t.containermessage);var i,s,r,n=e.$wrapperel,l=n.attr("id")||"swiper-wrapper-"+e.a11y.getrandomnumber(16);e.a11y.addelid(n,l),i=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite",e.a11y.addellive(n,i),t.itemroledescriptionmessage&&e.a11y.addelroledescription(m(e.slides),t.itemroledescriptionmessage),e.a11y.addelrole(m(e.slides),"group"),e.slides.each((function(t){var a=m(t);e.a11y.addellabel(a,a.index()+1+" / "+e.slides.length)})),e.navigation&&e.navigation.$nextel&&(s=e.navigation.$nextel),e.navigation&&e.navigation.$prevel&&(r=e.navigation.$prevel),s&&s.length&&(e.a11y.makeelfocusable(s),"button"!==s[0].tagname&&(e.a11y.addelrole(s,"button"),s.on("keydown",e.a11y.onenterkey)),e.a11y.addellabel(s,t.nextslidemessage),e.a11y.addelcontrols(s,l)),r&&r.length&&(e.a11y.makeelfocusable(r),"button"!==r[0].tagname&&(e.a11y.addelrole(r,"button"),r.on("keydown",e.a11y.onenterkey)),e.a11y.addellabel(r,t.prevslidemessage),e.a11y.addelcontrols(r,l)),e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.on("keydown","."+e.params.pagination.bulletclass.replace(/ /g,"."),e.a11y.onenterkey)},destroy:function(){var e,t,a=this;a.a11y.liveregion&&a.a11y.liveregion.length>0&&a.a11y.liveregion.remove(),a.navigation&&a.navigation.$nextel&&(e=a.navigation.$nextel),a.navigation&&a.navigation.$prevel&&(t=a.navigation.$prevel),e&&e.off("keydown",a.a11y.onenterkey),t&&t.off("keydown",a.a11y.onenterkey),a.pagination&&a.params.pagination.clickable&&a.pagination.bullets&&a.pagination.bullets.length&&a.pagination.$el.off("keydown","."+a.params.pagination.bulletclass.replace(/ /g,"."),a.a11y.onenterkey)}},se={init:function(){var e=this,t=l();if(e.params.history){if(!t.history||!t.history.pushstate)return e.params.history.enabled=!1,void(e.params.hashnavigation.enabled=!0);var a=e.history;a.initialized=!0,a.paths=se.getpathvalues(e.params.url),(a.paths.key||a.paths.value)&&(a.scrolltoslide(0,a.paths.value,e.params.runcallbacksoninit),e.params.history.replacestate||t.addeventlistener("popstate",e.history.sethistorypopstate))}},destroy:function(){var e=l();this.params.history.replacestate||e.removeeventlistener("popstate",this.history.sethistorypopstate)},sethistorypopstate:function(){var e=this;e.history.paths=se.getpathvalues(e.params.url),e.history.scrolltoslide(e.params.speed,e.history.paths.value,!1)},getpathvalues:function(e){var t=l(),a=(e?new url(e):t.location).pathname.slice(1).split("/").filter((function(e){return""!==e})),i=a.length;return{key:a[i-2],value:a[i-1]}},sethistory:function(e,t){var a=this,i=l();if(a.history.initialized&&a.params.history.enabled){var s;s=a.params.url?new url(a.params.url):i.location;var r=a.slides.eq(t),n=se.slugify(r.attr("data-history"));s.pathname.includes(e)||(n=e+"/"+n);var o=i.history.state;o&&o.value===n||(a.params.history.replacestate?i.history.replacestate({value:n},null,n):i.history.pushstate({value:n},null,n))}},slugify:function(e){return e.tostring().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrolltoslide:function(e,t,a){var i=this;if(t)for(var s=0,r=i.slides.length;s'),i.append(e)),e.css({height:r+"px"})):0===(e=a.find(".swiper-cube-shadow")).length&&(e=m('
'),a.append(e)));for(var v=0;v-1&&(h=90*g+90*b,l&&(h=90*-g-90*b)),f.transform(c),p.slideshadows){var s=u?f.find(".swiper-slide-shadow-left"):f.find(".swiper-slide-shadow-top"),m=u?f.find(".swiper-slide-shadow-right"):f.find(".swiper-slide-shadow-bottom");0===s.length&&(s=m('
'),f.append(s)),0===m.length&&(m=m('
'),f.append(m)),s.length&&(s[0].style.opacity=math.max(-b,0)),m.length&&(m[0].style.opacity=math.max(b,0))}}if(i.css({"-webkit-transform-origin":"50% 50% -"+o/2+"px","-moz-transform-origin":"50% 50% -"+o/2+"px","-ms-transform-origin":"50% 50% -"+o/2+"px","transform-origin":"50% 50% -"+o/2+"px"}),p.shadow)if(u)e.transform("translate3d(0px, "+(r/2+p.shadowoffset)+"px, "+-r/2+"px) rotatex(90deg) rotatez(0deg) scale("+p.shadowscale+")");else{var z=math.abs(h)-90*math.floor(math.abs(h)/90),p=1.5-(math.sin(2*z*math.pi/360)/2+math.cos(2*z*math.pi/360)/2),k=p.shadowscale,l=p.shadowscale/p,$=p.shadowoffset;e.transform("scale3d("+k+", 1, "+l+") translate3d(0px, "+(n/2+$)+"px, "+-n/2/l+"px) rotatex(-90deg)")}var i=d.issafari||d.iswebview?-o/2:0;i.transform("translate3d(0px,0,"+i+"px) rotatex("+(t.ishorizontal()?0:h)+"deg) rotatey("+(t.ishorizontal()?-h:0)+"deg)")},settransition:function(e){var t=this,a=t.$el;t.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.cubeeffect.shadow&&!t.ishorizontal()&&a.find(".swiper-cube-shadow").transition(e)}},de={settranslate:function(){for(var e=this,t=e.slides,a=e.rtltranslate,i=0;i'),s.append(p)),0===u.length&&(u=m('
'),s.append(u)),p.length&&(p[0].style.opacity=math.max(-r,0)),u.length&&(u[0].style.opacity=math.max(r,0))}s.transform("translate3d("+o+"px, "+d+"px, 0px) rotatex("+l+"deg) rotatey("+n+"deg)")}},settransition:function(e){var t=this,a=t.slides,i=t.activeindex,s=t.$wrapperel;if(a.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.virtualtranslate&&0!==e){var r=!1;a.eq(i).transitionend((function(){if(!r&&t&&!t.destroyed){r=!0,t.animating=!1;for(var e=["webkittransitionend","transitionend"],a=0;a'),h.append(s)),0===m.length&&(m=m('
'),h.append(m)),s.length&&(s[0].style.opacity=f>0?f:0),m.length&&(m[0].style.opacity=-f>0?-f:0)}}},settransition:function(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},ue={init:function(){var e=this,t=e.params.thumbs;if(e.thumbs.initialized)return!1;e.thumbs.initialized=!0;var a=e.constructor;return t.swiper instanceof a?(e.thumbs.swiper=t.swiper,s(e.thumbs.swiper.originalparams,{watchslidesprogress:!0,slidetoclickedslide:!1}),s(e.thumbs.swiper.params,{watchslidesprogress:!0,slidetoclickedslide:!1})):c(t.swiper)&&(e.thumbs.swiper=new a(s({},t.swiper,{watchslidesvisibility:!0,watchslidesprogress:!0,slidetoclickedslide:!1})),e.thumbs.swipercreated=!0),e.thumbs.swiper.$el.addclass(e.params.thumbs.thumbscontainerclass),e.thumbs.swiper.on("tap",e.thumbs.onthumbclick),!0},onthumbclick:function(){var e=this,t=e.thumbs.swiper;if(t){var a=t.clickedindex,i=t.clickedslide;if(!(i&&m(i).hasclass(e.params.thumbs.slidethumbactiveclass)||null==a)){var s;if(s=t.params.loop?parseint(m(t.clickedslide).attr("data-swiper-slide-index"),10):a,e.params.loop){var r=e.activeindex;e.slides.eq(r).hasclass(e.params.slideduplicateclass)&&(e.loopfix(),e._clientleft=e.$wrapperel[0].clientleft,r=e.activeindex);var n=e.slides.eq(r).prevall('[data-swiper-slide-index="'+s+'"]').eq(0).index(),l=e.slides.eq(r).nextall('[data-swiper-slide-index="'+s+'"]').eq(0).index();s=void 0===n?l:void 0===l?n:l-rt.previousindex?"next":"prev"}else l=(n=t.realindex)>t.previousindex?"next":"prev";r&&(n+="next"===l?s:-1*s),a.visibleslidesindexes&&a.visibleslidesindexes.indexof(n)<0&&(a.params.centeredslides?n=n>o?n-math.floor(i/2)+1:n+math.floor(i/2)-1:n>o&&(n=n-i+1),a.slideto(n,e?0:void 0))}var u=1,c=t.params.thumbs.slidethumbactiveclass;if(t.params.slidesperview>1&&!t.params.centeredslides&&(u=t.params.slidesperview),t.params.thumbs.multipleactivethumbs||(u=1),u=math.floor(u),a.slides.removeclass(c),a.params.loop||a.params.virtual&&a.params.virtual.enabled)for(var h=0;h0&&!m(t.target).hasclass(e.params.pagination.bulletclass)&&(!0===e.pagination.$el.hasclass(e.params.pagination.hiddenclass)?e.emit("paginationshow"):e.emit("paginationhide"),e.pagination.$el.toggleclass(e.params.pagination.hiddenclass))}}},{name:"scrollbar",params:{scrollbar:{el:null,dragsize:"auto",hide:!1,draggable:!1,snaponrelease:!0,lockclass:"swiper-scrollbar-lock",dragclass:"swiper-scrollbar-drag"}},create:function(){m(this,{scrollbar:t({istouched:!1,timeout:null,dragtimeout:null},j)})},on:{init:function(e){e.scrollbar.init(),e.scrollbar.updatesize(),e.scrollbar.settranslate()},update:function(e){e.scrollbar.updatesize()},resize:function(e){e.scrollbar.updatesize()},observerupdate:function(e){e.scrollbar.updatesize()},settranslate:function(e){e.scrollbar.settranslate()},settransition:function(e,t){e.scrollbar.settransition(t)},destroy:function(e){e.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){m(this,{parallax:t({},q)})},on:{beforeinit:function(e){e.params.parallax.enabled&&(e.params.watchslidesprogress=!0,e.originalparams.watchslidesprogress=!0)},init:function(e){e.params.parallax.enabled&&e.parallax.settranslate()},settranslate:function(e){e.params.parallax.enabled&&e.parallax.settranslate()},settransition:function(e,t){e.params.parallax.enabled&&e.parallax.settransition(t)}}},{name:"zoom",params:{zoom:{enabled:!1,maxratio:3,minratio:1,toggle:!0,containerclass:"swiper-zoom-container",zoomedslideclass:"swiper-slide-zoomed"}},create:function(){var e=this;m(e,{zoom:t({enabled:!1,scale:1,currentscale:1,isscaling:!1,gesture:{$slideel:void 0,slidewidth:void 0,slideheight:void 0,$imageel:void 0,$imagewrapel:void 0,maxratio:3},image:{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:{}},velocity:{x:void 0,y:void 0,prevpositionx:void 0,prevpositiony:void 0,prevtime:void 0}},ee)});var a=1;object.defineproperty(e.zoom,"scale",{get:function(){return a},set:function(t){if(a!==t){var i=e.zoom.gesture.$imageel?e.zoom.gesture.$imageel[0]:void 0,s=e.zoom.gesture.$slideel?e.zoom.gesture.$slideel[0]:void 0;e.emit("zoomchange",t,i,s)}a=t}})},on:{init:function(e){e.params.zoom.enabled&&e.zoom.enable()},destroy:function(e){e.zoom.disable()},touchstart:function(e,t){e.zoom.enabled&&e.zoom.ontouchstart(t)},touchend:function(e,t){e.zoom.enabled&&e.zoom.ontouchend(t)},doubletap:function(e,t){e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&e.zoom.toggle(t)},transitionend:function(e){e.zoom.enabled&&e.params.zoom.enabled&&e.zoom.ontransitionend()},slidechange:function(e){e.zoom.enabled&&e.params.zoom.enabled&&e.params.cssmode&&e.zoom.ontransitionend()}}},{name:"lazy",params:{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"}},create:function(){m(this,{lazy:t({initialimageloaded:!1},te)})},on:{beforeinit:function(e){e.params.lazy.enabled&&e.params.preloadimages&&(e.params.preloadimages=!1)},init:function(e){e.params.lazy.enabled&&!e.params.loop&&0===e.params.initialslide&&(e.params.lazy.checkinview?e.lazy.checkinviewonload():e.lazy.load())},scroll:function(e){e.params.freemode&&!e.params.freemodesticky&&e.lazy.load()},resize:function(e){e.params.lazy.enabled&&e.lazy.load()},scrollbardragmove:function(e){e.params.lazy.enabled&&e.lazy.load()},transitionstart:function(e){e.params.lazy.enabled&&(e.params.lazy.loadontransitionstart||!e.params.lazy.loadontransitionstart&&!e.lazy.initialimageloaded)&&e.lazy.load()},transitionend:function(e){e.params.lazy.enabled&&!e.params.lazy.loadontransitionstart&&e.lazy.load()},slidechange:function(e){e.params.lazy.enabled&&e.params.cssmode&&e.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){m(this,{controller:t({control:this.params.controller.control},ae)})},on:{update:function(e){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},resize:function(e){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},observerupdate:function(e){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},settranslate:function(e,t,a){e.controller.control&&e.controller.settranslate(t,a)},settransition:function(e,t,a){e.controller.control&&e.controller.settransition(t,a)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationclass:"swiper-notification",prevslidemessage:"previous slide",nextslidemessage:"next slide",firstslidemessage:"this is the first slide",lastslidemessage:"this is the last slide",paginationbulletmessage:"go to slide {{index}}",containermessage:null,containerroledescriptionmessage:null,itemroledescriptionmessage:null}},create:function(){m(this,{a11y:t({},ie,{liveregion:m('')})})},on:{afterinit:function(e){e.params.a11y.enabled&&(e.a11y.init(),e.a11y.updatenavigation())},toedge:function(e){e.params.a11y.enabled&&e.a11y.updatenavigation()},fromedge:function(e){e.params.a11y.enabled&&e.a11y.updatenavigation()},paginationupdate:function(e){e.params.a11y.enabled&&e.a11y.updatepagination()},destroy:function(e){e.params.a11y.enabled&&e.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replacestate:!1,key:"slides"}},create:function(){m(this,{history:t({},se)})},on:{init:function(e){e.params.history.enabled&&e.history.init()},destroy:function(e){e.params.history.enabled&&e.history.destroy()},transitionend:function(e){e.history.initialized&&e.history.sethistory(e.params.history.key,e.activeindex)},slidechange:function(e){e.history.initialized&&e.params.cssmode&&e.history.sethistory(e.params.history.key,e.activeindex)}}},{name:"hash-navigation",params:{hashnavigation:{enabled:!1,replacestate:!1,watchstate:!1}},create:function(){m(this,{hashnavigation:t({initialized:!1},re)})},on:{init:function(e){e.params.hashnavigation.enabled&&e.hashnavigation.init()},destroy:function(e){e.params.hashnavigation.enabled&&e.hashnavigation.destroy()},transitionend:function(e){e.hashnavigation.initialized&&e.hashnavigation.sethash()},slidechange:function(e){e.hashnavigation.initialized&&e.params.cssmode&&e.hashnavigation.sethash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitfortransition:!0,disableoninteraction:!0,stoponlastslide:!1,reversedirection:!1}},create:function(){m(this,{autoplay:t({},ne,{running:!1,paused:!1})})},on:{init:function(e){e.params.autoplay.enabled&&(e.autoplay.start(),r().addeventlistener("visibilitychange",e.autoplay.onvisibilitychange))},beforetransitionstart:function(e,t,a){e.autoplay.running&&(a||!e.params.autoplay.disableoninteraction?e.autoplay.pause(t):e.autoplay.stop())},sliderfirstmove:function(e){e.autoplay.running&&(e.params.autoplay.disableoninteraction?e.autoplay.stop():e.autoplay.pause())},touchend:function(e){e.params.cssmode&&e.autoplay.paused&&!e.params.autoplay.disableoninteraction&&e.autoplay.run()},destroy:function(e){e.autoplay.running&&e.autoplay.stop(),r().removeeventlistener("visibilitychange",e.autoplay.onvisibilitychange)}}},{name:"effect-fade",params:{fadeeffect:{crossfade:!1}},create:function(){m(this,{fadeeffect:t({},le)})},on:{beforeinit:function(e){if("fade"===e.params.effect){e.classnames.push(e.params.containermodifierclass+"fade");var t={slidesperview:1,slidespercolumn:1,slidespergroup:1,watchslidesprogress:!0,spacebetween:0,virtualtranslate:!0};s(e.params,t),s(e.originalparams,t)}},settranslate:function(e){"fade"===e.params.effect&&e.fadeeffect.settranslate()},settransition:function(e,t){"fade"===e.params.effect&&e.fadeeffect.settransition(t)}}},{name:"effect-cube",params:{cubeeffect:{slideshadows:!0,shadow:!0,shadowoffset:20,shadowscale:.94}},create:function(){m(this,{cubeeffect:t({},oe)})},on:{beforeinit:function(e){if("cube"===e.params.effect){e.classnames.push(e.params.containermodifierclass+"cube"),e.classnames.push(e.params.containermodifierclass+"3d");var t={slidesperview:1,slidespercolumn:1,slidespergroup:1,watchslidesprogress:!0,resistanceratio:0,spacebetween:0,centeredslides:!1,virtualtranslate:!0};s(e.params,t),s(e.originalparams,t)}},settranslate:function(e){"cube"===e.params.effect&&e.cubeeffect.settranslate()},settransition:function(e,t){"cube"===e.params.effect&&e.cubeeffect.settransition(t)}}},{name:"effect-flip",params:{flipeffect:{slideshadows:!0,limitrotation:!0}},create:function(){m(this,{flipeffect:t({},de)})},on:{beforeinit:function(e){if("flip"===e.params.effect){e.classnames.push(e.params.containermodifierclass+"flip"),e.classnames.push(e.params.containermodifierclass+"3d");var t={slidesperview:1,slidespercolumn:1,slidespergroup:1,watchslidesprogress:!0,spacebetween:0,virtualtranslate:!0};s(e.params,t),s(e.originalparams,t)}},settranslate:function(e){"flip"===e.params.effect&&e.flipeffect.settranslate()},settransition:function(e,t){"flip"===e.params.effect&&e.flipeffect.settransition(t)}}},{name:"effect-coverflow",params:{coverfloweffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideshadows:!0}},create:function(){m(this,{coverfloweffect:t({},pe)})},on:{beforeinit:function(e){"coverflow"===e.params.effect&&(e.classnames.push(e.params.containermodifierclass+"coverflow"),e.classnames.push(e.params.containermodifierclass+"3d"),e.params.watchslidesprogress=!0,e.originalparams.watchslidesprogress=!0)},settranslate:function(e){"coverflow"===e.params.effect&&e.coverfloweffect.settranslate()},settransition:function(e,t){"coverflow"===e.params.effect&&e.coverfloweffect.settransition(t)}}},{name:"thumbs",params:{thumbs:{swiper:null,multipleactivethumbs:!0,autoscrolloffset:0,slidethumbactiveclass:"swiper-slide-thumb-active",thumbscontainerclass:"swiper-container-thumbs"}},create:function(){m(this,{thumbs:t({swiper:null,initialized:!1},ue)})},on:{beforeinit:function(e){var t=e.params.thumbs;t&&t.swiper&&(e.thumbs.init(),e.thumbs.update(!0))},slidechange:function(e){e.thumbs.swiper&&e.thumbs.update()},update:function(e){e.thumbs.swiper&&e.thumbs.update()},resize:function(e){e.thumbs.swiper&&e.thumbs.update()},observerupdate:function(e){e.thumbs.swiper&&e.thumbs.update()},settransition:function(e,t){var a=e.thumbs.swiper;a&&a.settransition(t)},beforedestroy:function(e){var t=e.thumbs.swiper;t&&e.thumbs.swipercreated&&t&&t.destroy()}}}];return r.use(ce),r})); //# sourcemappingurl=swiper-bundle.min.js.map