/** * swiper 3.1.7 * most modern mobile touch slider and framework with hardware accelerated transitions * * http://www.idangero.us/swiper/ * * copyright 2015, vladimir kharlampidi * the idangero.us * http://www.idangero.us/ * * licensed under mit * * released on: october 10, 2015 */ !function(){"use strict";function e(e){e.fn.swiper=function(a){var s;return e(this).each(function(){var e=new t(this,a);s||(s=e)}),s}}var a,t=function(e,s){function r(){return"horizontal"===v.params.direction}function i(e){return math.floor(e)}function n(){v.autoplaytimeoutid=settimeout(function(){v.params.loop?(v.fixloop(),v._slidenext()):v.isend?s.autoplaystoponlast?v.stopautoplay():v._slideto(0):v._slidenext()},v.params.autoplay)}function o(e,t){var s=a(e.target);if(!s.is(t))if("string"==typeof t)s=s.parents(t);else if(t.nodetype){var r;return s.parents().each(function(e,a){a===t&&(r=t)}),r?t:void 0}return 0===s.length?void 0:s[0]}function l(e,a){a=a||{};var t=window.mutationobserver||window.webkitmutationobserver,s=new t(function(e){e.foreach(function(e){v.onresize(!0),v.emit("onobserverupdate",v,e)})});s.observe(e,{attributes:"undefined"==typeof a.attributes?!0:a.attributes,childlist:"undefined"==typeof a.childlist?!0:a.childlist,characterdata:"undefined"==typeof a.characterdata?!0:a.characterdata}),v.observers.push(s)}function p(e){e.originalevent&&(e=e.originalevent);var a=e.keycode||e.charcode;if(!v.params.allowswipetonext&&(r()&&39===a||!r()&&40===a))return!1;if(!v.params.allowswipetoprev&&(r()&&37===a||!r()&&38===a))return!1;if(!(e.shiftkey||e.altkey||e.ctrlkey||e.metakey||document.activeelement&&document.activeelement.nodename&&("input"===document.activeelement.nodename.tolowercase()||"textarea"===document.activeelement.nodename.tolowercase()))){if(37===a||39===a||38===a||40===a){var t=!1;if(v.container.parents(".swiper-slide").length>0&&0===v.container.parents(".swiper-slide-active").length)return;var s={left:window.pagexoffset,top:window.pageyoffset},i=window.innerwidth,n=window.innerheight,o=v.container.offset();v.rtl&&(o.left=o.left-v.container[0].scrollleft);for(var l=[[o.left,o.top],[o.left+v.width,o.top],[o.left,o.top+v.height],[o.left+v.width,o.top+v.height]],p=0;p=s.left&&d[0]<=s.left+i&&d[1]>=s.top&&d[1]<=s.top+n&&(t=!0)}if(!t)return}r()?((37===a||39===a)&&(e.preventdefault?e.preventdefault():e.returnvalue=!1),(39===a&&!v.rtl||37===a&&v.rtl)&&v.slidenext(),(37===a&&!v.rtl||39===a&&v.rtl)&&v.slideprev()):((38===a||40===a)&&(e.preventdefault?e.preventdefault():e.returnvalue=!1),40===a&&v.slidenext(),38===a&&v.slideprev())}}function d(e){e.originalevent&&(e=e.originalevent);var a=v.mousewheel.event,t=0;if(e.detail)t=-e.detail;else if("mousewheel"===a)if(v.params.mousewheelforcetoaxis)if(r()){if(!(math.abs(e.wheeldeltax)>math.abs(e.wheeldeltay)))return;t=e.wheeldeltax}else{if(!(math.abs(e.wheeldeltay)>math.abs(e.wheeldeltax)))return;t=e.wheeldeltay}else t=e.wheeldelta;else if("dommousescroll"===a)t=-e.detail;else if("wheel"===a)if(v.params.mousewheelforcetoaxis)if(r()){if(!(math.abs(e.deltax)>math.abs(e.deltay)))return;t=-e.deltax}else{if(!(math.abs(e.deltay)>math.abs(e.deltax)))return;t=-e.deltay}else t=math.abs(e.deltax)>math.abs(e.deltay)?-e.deltax:-e.deltay;if(v.params.mousewheelinvert&&(t=-t),v.params.freemode){var s=v.getwrappertranslate()+t*v.params.mousewheelsensitivity;if(s>v.mintranslate()&&(s=v.mintranslate()),s60)if(0>t)if(v.isend&&!v.params.loop||v.animating){if(v.params.mousewheelreleaseonedges)return!0}else v.slidenext();else if(v.isbeginning&&!v.params.loop||v.animating){if(v.params.mousewheelreleaseonedges)return!0}else v.slideprev();v.mousewheel.lastscrolltime=(new window.date).gettime()}return v.params.autoplay&&v.stopautoplay(),e.preventdefault?e.preventdefault():e.returnvalue=!1,!1}function c(e,t){e=a(e);var s,i,n;s=e.attr("data-swiper-parallax")||"0",i=e.attr("data-swiper-parallax-x"),n=e.attr("data-swiper-parallax-y"),i||n?(i=i||"0",n=n||"0"):r()?(i=s,n="0"):(n=s,i="0"),i=i.indexof("%")>=0?parseint(i,10)*t+"%":i*t+"px",n=n.indexof("%")>=0?parseint(n,10)*t+"%":n*t+"px",e.transform("translate3d("+i+", "+n+",0px)")}function u(e){return 0!==e.indexof("on")&&(e=e[0]!==e[0].touppercase()?"on"+e[0].touppercase()+e.substring(1):"on"+e),e}if(!(this instanceof t))return new t(e,s);var m={direction:"horizontal",toucheventstarget:"container",initialslide:0,speed:300,autoplay:!1,autoplaydisableoninteraction:!0,iosedgeswipedetection:!1,iosedgeswipethreshold:20,freemode:!1,freemodemomentum:!0,freemodemomentumratio:1,freemodemomentumbounce:!0,freemodemomentumbounceratio:1,freemodesticky:!1,freemodeminimumvelocity:.02,setwrappersize:!1,virtualtranslate:!1,effect:"slide",coverflow:{rotate:50,stretch:0,depth:100,modifier:1,slideshadows:!0},cube:{slideshadows:!0,shadow:!0,shadowoffset:20,shadowscale:.94},fade:{crossfade:!1},parallax:!1,scrollbar:null,scrollbarhide:!0,scrollbardraggable:!1,scrollbarsnaponrelease:!1,keyboardcontrol:!1,mousewheelcontrol:!1,mousewheelreleaseonedges:!1,mousewheelinvert:!1,mousewheelforcetoaxis:!1,mousewheelsensitivity:1,hashnav:!1,spacebetween:0,slidesperview:1,slidespercolumn:1,slidespercolumnfill:"column",slidespergroup:1,centeredslides:!1,slidesoffsetbefore:0,slidesoffsetafter:0,roundlengths:!1,touchratio:1,touchangle:45,simulatetouch:!0,shortswipes:!0,longswipes:!0,longswipesratio:.5,longswipesms:300,followfinger:!0,onlyexternal:!1,threshold:0,touchmovestoppropagation:!0,pagination:null,paginationelement:"span",paginationclickable:!1,paginationhide:!1,paginationbulletrender:null,resistance:!0,resistanceratio:.85,nextbutton:null,prevbutton:null,watchslidesprogress:!1,watchslidesvisibility:!1,grabcursor:!1,preventclicks:!0,preventclickspropagation:!0,slidetoclickedslide:!1,lazyloading:!1,lazyloadinginprevnext:!1,lazyloadingontransitionstart:!1,preloadimages:!0,updateonimagesready:!0,loop:!1,loopadditionalslides:0,loopedslides:null,control:void 0,controlinverse:!1,controlby:"slide",allowswipetoprev:!0,allowswipetonext:!0,swipehandler:null,noswiping:!0,noswipingclass:"swiper-no-swiping",slideclass:"swiper-slide",slideactiveclass:"swiper-slide-active",slidevisibleclass:"swiper-slide-visible",slideduplicateclass:"swiper-slide-duplicate",slidenextclass:"swiper-slide-next",slideprevclass:"swiper-slide-prev",wrapperclass:"swiper-wrapper",bulletclass:"swiper-pagination-bullet",bulletactiveclass:"swiper-pagination-bullet-active",buttondisabledclass:"swiper-button-disabled",paginationhiddenclass:"swiper-pagination-hidden",observer:!1,observeparents:!1,a11y:!1,prevslidemessage:"previous slide",nextslidemessage:"next slide",firstslidemessage:"this is the first slide",lastslidemessage:"this is the last slide",paginationbulletmessage:"go to slide {{index}}",runcallbacksoninit:!0},f=s&&s.virtualtranslate;s=s||{};for(var h in m)if("undefined"==typeof s[h])s[h]=m[h];else if("object"==typeof s[h])for(var g in m[h])"undefined"==typeof s[h][g]&&(s[h][g]=m[h][g]);var v=this;if(v.params=s,v.classnames=[],"undefined"!=typeof a&&"undefined"!=typeof dom7&&(a=dom7),("undefined"!=typeof a||(a="undefined"==typeof dom7?window.dom7||window.zepto||window.jquery:dom7))&&(v.$=a,v.container=a(e),0!==v.container.length)){if(v.container.length>1)return void v.container.each(function(){new t(this,s)});v.container[0].swiper=v,v.container.data("swiper",v),v.classnames.push("swiper-container-"+v.params.direction),v.params.freemode&&v.classnames.push("swiper-container-free-mode"),v.support.flexbox||(v.classnames.push("swiper-container-no-flexbox"),v.params.slidespercolumn=1),(v.params.parallax||v.params.watchslidesvisibility)&&(v.params.watchslidesprogress=!0),["cube","coverflow"].indexof(v.params.effect)>=0&&(v.support.transforms3d?(v.params.watchslidesprogress=!0,v.classnames.push("swiper-container-3d")):v.params.effect="slide"),"slide"!==v.params.effect&&v.classnames.push("swiper-container-"+v.params.effect),"cube"===v.params.effect&&(v.params.resistanceratio=0,v.params.slidesperview=1,v.params.slidespercolumn=1,v.params.slidespergroup=1,v.params.centeredslides=!1,v.params.spacebetween=0,v.params.virtualtranslate=!0,v.params.setwrappersize=!1),"fade"===v.params.effect&&(v.params.slidesperview=1,v.params.slidespercolumn=1,v.params.slidespergroup=1,v.params.watchslidesprogress=!0,v.params.spacebetween=0,"undefined"==typeof f&&(v.params.virtualtranslate=!0)),v.params.grabcursor&&v.support.touch&&(v.params.grabcursor=!1),v.wrapper=v.container.children("."+v.params.wrapperclass),v.params.pagination&&(v.paginationcontainer=a(v.params.pagination),v.params.paginationclickable&&v.paginationcontainer.addclass("swiper-pagination-clickable")),v.rtl=r()&&("rtl"===v.container[0].dir.tolowercase()||"rtl"===v.container.css("direction")),v.rtl&&v.classnames.push("swiper-container-rtl"),v.rtl&&(v.wrongrtl="-webkit-box"===v.wrapper.css("display")),v.params.slidespercolumn>1&&v.classnames.push("swiper-container-multirow"),v.device.android&&v.classnames.push("swiper-container-android"),v.container.addclass(v.classnames.join(" ")),v.translate=0,v.progress=0,v.velocity=0,v.lockswipetonext=function(){v.params.allowswipetonext=!1},v.lockswipetoprev=function(){v.params.allowswipetoprev=!1},v.lockswipes=function(){v.params.allowswipetonext=v.params.allowswipetoprev=!1},v.unlockswipetonext=function(){v.params.allowswipetonext=!0},v.unlockswipetoprev=function(){v.params.allowswipetoprev=!0},v.unlockswipes=function(){v.params.allowswipetonext=v.params.allowswipetoprev=!0},v.params.grabcursor&&(v.container[0].style.cursor="move",v.container[0].style.cursor="-webkit-grab",v.container[0].style.cursor="-moz-grab",v.container[0].style.cursor="grab"),v.imagestoload=[],v.imagesloaded=0,v.loadimage=function(e,a,t,s,r){function i(){r&&r()}var n;e.complete&&s?i():a?(n=new window.image,n.onload=i,n.onerror=i,t&&(n.srcset=t),a&&(n.src=a)):i()},v.preloadimages=function(){function e(){"undefined"!=typeof v&&null!==v&&(void 0!==v.imagesloaded&&v.imagesloaded++,v.imagesloaded===v.imagestoload.length&&(v.params.updateonimagesready&&v.update(),v.emit("onimagesready",v)))}v.imagestoload=v.container.find("img");for(var a=0;a=0&&(a=parsefloat(a.replace("%",""))/100*v.size),v.virtualsize=-a,v.rtl?v.slides.css({marginleft:"",margintop:""}):v.slides.css({marginright:"",marginbottom:""});var o;v.params.slidespercolumn>1&&(o=math.floor(v.slides.length/v.params.slidespercolumn)===v.slides.length/v.params.slidespercolumn?v.slides.length:math.ceil(v.slides.length/v.params.slidespercolumn)*v.params.slidespercolumn,"auto"!==v.params.slidesperview&&"row"===v.params.slidespercolumnfill&&(o=math.max(o,v.params.slidesperview*v.params.slidespercolumn)));var l,p=v.params.slidespercolumn,d=o/p,c=d-(v.params.slidespercolumn*d-v.slides.length);for(e=0;e1){var m,f,h;"column"===v.params.slidespercolumnfill?(f=math.floor(e/p),h=e-f*p,(f>c||f===c&&h===p-1)&&++h>=p&&(h=0,f++),m=f+h*o/p,u.css({"-webkit-box-ordinal-group":m,"-moz-box-ordinal-group":m,"-ms-flex-order":m,"-webkit-order":m,order:m})):(h=math.floor(e/d),f=e-h*d),u.css({"margin-top":0!==h&&v.params.spacebetween&&v.params.spacebetween+"px"}).attr("data-swiper-column",f).attr("data-swiper-row",h)}"none"!==u.css("display")&&("auto"===v.params.slidesperview?(l=r()?u.outerwidth(!0):u.outerheight(!0),v.params.roundlengths&&(l=i(l))):(l=(v.size-(v.params.slidesperview-1)*a)/v.params.slidesperview,v.params.roundlengths&&(l=i(l)),r()?v.slides[e].style.width=l+"px":v.slides[e].style.height=l+"px"),v.slides[e].swiperslidesize=l,v.slidessizesgrid.push(l),v.params.centeredslides?(t=t+l/2+s/2+a,0===e&&(t=t-v.size/2-a),math.abs(t)<.001&&(t=0),n%v.params.slidespergroup===0&&v.snapgrid.push(t),v.slidesgrid.push(t)):(n%v.params.slidespergroup===0&&v.snapgrid.push(t),v.slidesgrid.push(t),t=t+l+a),v.virtualsize+=l+a,s=l,n++)}v.virtualsize=math.max(v.virtualsize,v.size)+v.params.slidesoffsetafter;var g;if(v.rtl&&v.wrongrtl&&("slide"===v.params.effect||"coverflow"===v.params.effect)&&v.wrapper.css({width:v.virtualsize+v.params.spacebetween+"px"}),(!v.support.flexbox||v.params.setwrappersize)&&(r()?v.wrapper.css({width:v.virtualsize+v.params.spacebetween+"px"}):v.wrapper.css({height:v.virtualsize+v.params.spacebetween+"px"})),v.params.slidespercolumn>1&&(v.virtualsize=(l+v.params.spacebetween)*o,v.virtualsize=math.ceil(v.virtualsize/v.params.slidespercolumn)-v.params.spacebetween,v.wrapper.css({width:v.virtualsize+v.params.spacebetween+"px"}),v.params.centeredslides)){for(g=[],e=0;emath.floor(v.snapgrid[v.snapgrid.length-1])&&v.snapgrid.push(v.virtualsize-v.size)}0===v.snapgrid.length&&(v.snapgrid=[0]),0!==v.params.spacebetween&&(r()?v.rtl?v.slides.css({marginleft:a+"px"}):v.slides.css({marginright:a+"px"}):v.slides.css({marginbottom:a+"px"})),v.params.watchslidesprogress&&v.updateslidesoffset()},v.updateslidesoffset=function(){for(var e=0;e=0&&n0&&o<=v.size||0>=n&&o>=v.size;l&&v.slides.eq(t).addclass(v.params.slidevisibleclass)}s.progress=v.rtl?-i:i}}},v.updateprogress=function(e){"undefined"==typeof e&&(e=v.translate||0);var a=v.maxtranslate()-v.mintranslate();0===a?(v.progress=0,v.isbeginning=v.isend=!0):(v.progress=(e-v.mintranslate())/a,v.isbeginning=v.progress<=0,v.isend=v.progress>=1),v.isbeginning&&v.emit("onreachbeginning",v),v.isend&&v.emit("onreachend",v),v.params.watchslidesprogress&&v.updateslidesprogress(e),v.emit("onprogress",v,v.progress)},v.updateactiveindex=function(){var e,a,t,s=v.rtl?v.translate:-v.translate;for(a=0;a=v.slidesgrid[a]&&s=v.slidesgrid[a]&&s=v.slidesgrid[a]&&(e=a);(0>e||"undefined"==typeof e)&&(e=0),t=math.floor(e/v.params.slidespergroup),t>=v.snapgrid.length&&(t=v.snapgrid.length-1),e!==v.activeindex&&(v.snapindex=t,v.previousindex=v.activeindex,v.activeindex=e,v.updateclasses())},v.updateclasses=function(){v.slides.removeclass(v.params.slideactiveclass+" "+v.params.slidenextclass+" "+v.params.slideprevclass);var e=v.slides.eq(v.activeindex);if(e.addclass(v.params.slideactiveclass),e.next("."+v.params.slideclass).addclass(v.params.slidenextclass),e.prev("."+v.params.slideclass).addclass(v.params.slideprevclass),v.bullets&&v.bullets.length>0){v.bullets.removeclass(v.params.bulletactiveclass);var t;v.params.loop?(t=math.ceil(v.activeindex-v.loopedslides)/v.params.slidespergroup,t>v.slides.length-1-2*v.loopedslides&&(t-=v.slides.length-2*v.loopedslides),t>v.bullets.length-1&&(t-=v.bullets.length)):t="undefined"!=typeof v.snapindex?v.snapindex:v.activeindex||0,v.paginationcontainer.length>1?v.bullets.each(function(){a(this).index()===t&&a(this).addclass(v.params.bulletactiveclass)}):v.bullets.eq(t).addclass(v.params.bulletactiveclass)}v.params.loop||(v.params.prevbutton&&(v.isbeginning?(a(v.params.prevbutton).addclass(v.params.buttondisabledclass),v.params.a11y&&v.a11y&&v.a11y.disable(a(v.params.prevbutton))):(a(v.params.prevbutton).removeclass(v.params.buttondisabledclass),v.params.a11y&&v.a11y&&v.a11y.enable(a(v.params.prevbutton)))),v.params.nextbutton&&(v.isend?(a(v.params.nextbutton).addclass(v.params.buttondisabledclass),v.params.a11y&&v.a11y&&v.a11y.disable(a(v.params.nextbutton))):(a(v.params.nextbutton).removeclass(v.params.buttondisabledclass),v.params.a11y&&v.a11y&&v.a11y.enable(a(v.params.nextbutton)))))},v.updatepagination=function(){if(v.params.pagination&&v.paginationcontainer&&v.paginationcontainer.length>0){for(var e="",a=v.params.loop?math.ceil((v.slides.length-2*v.loopedslides)/v.params.slidespergroup):v.snapgrid.length,t=0;a>t;t++)e+=v.params.paginationbulletrender?v.params.paginationbulletrender(t,v.params.bulletclass):"<"+v.params.paginationelement+' class="'+v.params.bulletclass+'">";v.paginationcontainer.html(e),v.bullets=v.paginationcontainer.find("."+v.params.bulletclass),v.params.paginationclickable&&v.params.a11y&&v.a11y&&v.a11y.initpagination()}},v.update=function(e){function a(){s=math.min(math.max(v.translate,v.maxtranslate()),v.mintranslate()),v.setwrappertranslate(s),v.updateactiveindex(),v.updateclasses()}if(v.updatecontainersize(),v.updateslidessize(),v.updateprogress(),v.updatepagination(),v.updateclasses(),v.params.scrollbar&&v.scrollbar&&v.scrollbar.set(),e){var t,s;v.controller&&v.controller.spline&&(v.controller.spline=void 0),v.params.freemode?a():(t=("auto"===v.params.slidesperview||v.params.slidesperview>1)&&v.isend&&!v.params.centeredslides?v.slideto(v.slides.length-1,0,!1,!0):v.slideto(v.activeindex,0,!1,!0),t||a())}},v.onresize=function(e){var a=v.params.allowswipetoprev,t=v.params.allowswipetonext;if(v.params.allowswipetoprev=v.params.allowswipetonext=!0,v.updatecontainersize(),v.updateslidessize(),("auto"===v.params.slidesperview||v.params.freemode||e)&&v.updatepagination(),v.params.scrollbar&&v.scrollbar&&v.scrollbar.set(),v.controller&&v.controller.spline&&(v.controller.spline=void 0),v.params.freemode){var s=math.min(math.max(v.translate,v.maxtranslate()),v.mintranslate());v.setwrappertranslate(s),v.updateactiveindex(),v.updateclasses()}else v.updateclasses(),("auto"===v.params.slidesperview||v.params.slidesperview>1)&&v.isend&&!v.params.centeredslides?v.slideto(v.slides.length-1,0,!1,!0):v.slideto(v.activeindex,0,!1,!0);v.params.allowswipetoprev=a,v.params.allowswipetonext=t};var w=["mousedown","mousemove","mouseup"];window.navigator.pointerenabled?w=["pointerdown","pointermove","pointerup"]:window.navigator.mspointerenabled&&(w=["mspointerdown","mspointermove","mspointerup"]),v.touchevents={start:v.support.touch||!v.params.simulatetouch?"touchstart":w[0],move:v.support.touch||!v.params.simulatetouch?"touchmove":w[1],end:v.support.touch||!v.params.simulatetouch?"touchend":w[2]},(window.navigator.pointerenabled||window.navigator.mspointerenabled)&&("container"===v.params.toucheventstarget?v.container:v.wrapper).addclass("swiper-wp8-"+v.params.direction),v.initevents=function(e){var t=e?"off":"on",r=e?"removeeventlistener":"addeventlistener",i="container"===v.params.toucheventstarget?v.container[0]:v.wrapper[0],n=v.support.touch?i:document,o=v.params.nested?!0:!1;v.browser.ie?(i[r](v.touchevents.start,v.ontouchstart,!1),n[r](v.touchevents.move,v.ontouchmove,o),n[r](v.touchevents.end,v.ontouchend,!1)):(v.support.touch&&(i[r](v.touchevents.start,v.ontouchstart,!1),i[r](v.touchevents.move,v.ontouchmove,o),i[r](v.touchevents.end,v.ontouchend,!1)),!s.simulatetouch||v.device.ios||v.device.android||(i[r]("mousedown",v.ontouchstart,!1),document[r]("mousemove",v.ontouchmove,o),document[r]("mouseup",v.ontouchend,!1))),window[r]("resize",v.onresize),v.params.nextbutton&&(a(v.params.nextbutton)[t]("click",v.onclicknext),v.params.a11y&&v.a11y&&a(v.params.nextbutton)[t]("keydown",v.a11y.onenterkey)),v.params.prevbutton&&(a(v.params.prevbutton)[t]("click",v.onclickprev),v.params.a11y&&v.a11y&&a(v.params.prevbutton)[t]("keydown",v.a11y.onenterkey)),v.params.pagination&&v.params.paginationclickable&&(a(v.paginationcontainer)[t]("click","."+v.params.bulletclass,v.onclickindex),v.params.a11y&&v.a11y&&a(v.paginationcontainer)[t]("keydown","."+v.params.bulletclass,v.a11y.onenterkey)),(v.params.preventclicks||v.params.preventclickspropagation)&&i[r]("click",v.preventclicks,!0)},v.attachevents=function(e){v.initevents()},v.detachevents=function(){v.initevents(!0)},v.allowclick=!0,v.preventclicks=function(e){v.allowclick||(v.params.preventclicks&&e.preventdefault(),v.params.preventclickspropagation&&v.animating&&(e.stoppropagation(),e.stopimmediatepropagation()))},v.onclicknext=function(e){e.preventdefault(),(!v.isend||v.params.loop)&&v.slidenext()},v.onclickprev=function(e){e.preventdefault(),(!v.isbeginning||v.params.loop)&&v.slideprev()},v.onclickindex=function(e){e.preventdefault();var t=a(this).index()*v.params.slidespergroup;v.params.loop&&(t+=v.loopedslides),v.slideto(t)},v.updateclickedslide=function(e){var t=o(e,"."+v.params.slideclass),s=!1;if(t)for(var r=0;rv.slides.length-v.loopedslides+v.params.slidesperview/2?(v.fixloop(),n=v.wrapper.children("."+v.params.slideclass+'[data-swiper-slide-index="'+i+'"]:not(.swiper-slide-duplicate)').eq(0).index(),settimeout(function(){v.slideto(n)},0)):v.slideto(n):n>v.slides.length-v.params.slidesperview?(v.fixloop(),n=v.wrapper.children("."+v.params.slideclass+'[data-swiper-slide-index="'+i+'"]:not(.swiper-slide-duplicate)').eq(0).index(),settimeout(function(){v.slideto(n)},0)):v.slideto(n)}else v.slideto(n)}};var y,b,t,x,s,c,m,p,z,i="input, select, textarea, button",e=date.now(),k=[];v.animating=!1,v.touches={startx:0,starty:0,currentx:0,currenty:0,diff:0};var d,l;if(v.ontouchstart=function(e){if(e.originalevent&&(e=e.originalevent),d="touchstart"===e.type,d||!("which"in e)||3!==e.which){if(v.params.noswiping&&o(e,"."+v.params.noswipingclass))return void(v.allowclick=!0);if(!v.params.swipehandler||o(e,v.params.swipehandler)){var t=v.touches.currentx="touchstart"===e.type?e.targettouches[0].pagex:e.pagex,s=v.touches.currenty="touchstart"===e.type?e.targettouches[0].pagey:e.pagey;if(!(v.device.ios&&v.params.iosedgeswipedetection&&t<=v.params.iosedgeswipethreshold)){if(y=!0,b=!1,x=void 0,l=void 0,v.touches.startx=t,v.touches.starty=s,t=date.now(),v.allowclick=!0,v.updatecontainersize(),v.swipedirection=void 0,v.params.threshold>0&&(m=!1),"touchstart"!==e.type){var r=!0;a(e.target).is(i)&&(r=!1),document.activeelement&&a(document.activeelement).is(i)&&document.activeelement.blur(),r&&e.preventdefault()}v.emit("ontouchstart",v,e)}}}},v.ontouchmove=function(e){if(e.originalevent&&(e=e.originalevent),!(d&&"mousemove"===e.type||e.preventedbynestedswiper)){if(v.params.onlyexternal)return v.allowclick=!1,void(y&&(v.touches.startx=v.touches.currentx="touchmove"===e.type?e.targettouches[0].pagex:e.pagex,v.touches.starty=v.touches.currenty="touchmove"===e.type?e.targettouches[0].pagey:e.pagey,t=date.now()));if(d&&document.activeelement&&e.target===document.activeelement&&a(e.target).is(i))return b=!0,void(v.allowclick=!1);if(v.emit("ontouchmove",v,e),!(e.targettouches&&e.targettouches.length>1)){if(v.touches.currentx="touchmove"===e.type?e.targettouches[0].pagex:e.pagex,v.touches.currenty="touchmove"===e.type?e.targettouches[0].pagey:e.pagey,"undefined"==typeof x){var t=180*math.atan2(math.abs(v.touches.currenty-v.touches.starty),math.abs(v.touches.currentx-v.touches.startx))/math.pi;x=r()?t>v.params.touchangle:90-t>v.params.touchangle}if(x&&v.emit("ontouchmoveopposite",v,e),"undefined"==typeof l&&v.browser.ietouch&&(v.touches.currentx!==v.touches.startx||v.touches.currenty!==v.touches.starty)&&(l=!0),y){if(x)return void(y=!1);if(l||!v.browser.ietouch){v.allowclick=!1,v.emit("onslidermove",v,e),e.preventdefault(),v.params.touchmovestoppropagation&&!v.params.nested&&e.stoppropagation(),b||(s.loop&&v.fixloop(),c=v.getwrappertranslate(),v.setwrappertransition(0),v.animating&&v.wrapper.trigger("webkittransitionend transitionend otransitionend mstransitionend mstransitionend"),v.params.autoplay&&v.autoplaying&&(v.params.autoplaydisableoninteraction?v.stopautoplay():v.pauseautoplay()),z=!1,v.params.grabcursor&&(v.container[0].style.cursor="move",v.container[0].style.cursor="-webkit-grabbing",v.container[0].style.cursor="-moz-grabbin",v.container[0].style.cursor="grabbing")),b=!0;var i=v.touches.diff=r()?v.touches.currentx-v.touches.startx:v.touches.currenty-v.touches.starty;i*=v.params.touchratio,v.rtl&&(i=-i),v.swipedirection=i>0?"prev":"next",s=i+c;var n=!0;if(i>0&&s>v.mintranslate()?(n=!1,v.params.resistance&&(s=v.mintranslate()-1+math.pow(-v.mintranslate()+c+i,v.params.resistanceratio))):0>i&&ss&&(s=c),!v.params.allowswipetoprev&&"prev"===v.swipedirection&&s>c&&(s=c),v.params.followfinger){if(v.params.threshold>0){if(!(math.abs(i)>v.params.threshold||m))return void(s=c);if(!m)return m=!0,v.touches.startx=v.touches.currentx,v.touches.starty=v.touches.currenty,s=c,void(v.touches.diff=r()?v.touches.currentx-v.touches.startx:v.touches.currenty-v.touches.starty)}(v.params.freemode||v.params.watchslidesprogress)&&v.updateactiveindex(),v.params.freemode&&(0===k.length&&k.push({position:v.touches[r()?"startx":"starty"],time:t}),k.push({position:v.touches[r()?"currentx":"currenty"],time:(new window.date).gettime()})),v.updateprogress(s),v.setwrappertranslate(s)}}}}}},v.ontouchend=function(e){if(e.originalevent&&(e=e.originalevent),v.emit("ontouchend",v,e),y){v.params.grabcursor&&b&&y&&(v.container[0].style.cursor="move",v.container[0].style.cursor="-webkit-grab",v.container[0].style.cursor="-moz-grab",v.container[0].style.cursor="grab");var t=date.now(),s=t-t;if(v.allowclick&&(v.updateclickedslide(e),v.emit("ontap",v,e),300>s&&t-e>300&&(p&&cleartimeout(p),p=settimeout(function(){v&&(v.params.paginationhide&&v.paginationcontainer.length>0&&!a(e.target).hasclass(v.params.bulletclass)&&v.paginationcontainer.toggleclass(v.params.paginationhiddenclass),v.emit("onclick",v,e))},300)),300>s&&300>t-e&&(p&&cleartimeout(p),v.emit("ondoubletap",v,e))),e=date.now(),settimeout(function(){v&&(v.allowclick=!0)},0),!y||!b||!v.swipedirection||0===v.touches.diff||s===c)return void(y=b=!1);y=b=!1;var r;if(r=v.params.followfinger?v.rtl?v.translate:-v.translate:-s,v.params.freemode){if(r<-v.mintranslate())return void v.slideto(v.activeindex);if(r>-v.maxtranslate())return void(v.slides.length1){var i=k.pop(),n=k.pop(),o=i.position-n.position,l=i.time-n.time;v.velocity=o/l,v.velocity=v.velocity/2,math.abs(v.velocity)150||(new window.date).gettime()-i.time>300)&&(v.velocity=0)}else v.velocity=0;k.length=0;var p=1e3*v.params.freemodemomentumratio,d=v.velocity*p,c=v.translate+d;v.rtl&&(c=-c);var u,m=!1,f=20*math.abs(v.velocity)*v.params.freemodemomentumbounceratio;if(cv.mintranslate())v.params.freemodemomentumbounce?(c-v.mintranslate()>f&&(c=v.mintranslate()+f),u=v.mintranslate(),m=!0,z=!0):c=v.mintranslate();else if(v.params.freemodesticky){var h,g=0;for(g=0;g-c){h=g;break}c=math.abs(v.snapgrid[h]-c)=v.params.longswipesms)&&(v.updateprogress(),v.updateactiveindex()))}var w,x=0,m=v.slidessizesgrid[0];for(w=0;w=v.slidesgrid[w]&&r=v.slidesgrid[w]&&(x=w,m=v.slidesgrid[v.slidesgrid.length-1]-v.slidesgrid[v.slidesgrid.length-2]);var i=(r-v.slidesgrid[x])/m;if(s>v.params.longswipesms){if(!v.params.longswipes)return void v.slideto(v.activeindex);"next"===v.swipedirection&&(i>=v.params.longswipesratio?v.slideto(x+v.params.slidespergroup):v.slideto(x)),"prev"===v.swipedirection&&(i>1-v.params.longswipesratio?v.slideto(x+v.params.slidespergroup):v.slideto(x))}else{if(!v.params.shortswipes)return void v.slideto(v.activeindex);"next"===v.swipedirection&&v.slideto(x+v.params.slidespergroup),"prev"===v.swipedirection&&v.slideto(x)}}},v._slideto=function(e,a){return v.slideto(e,a,!0,!0)},v.slideto=function(e,a,t,s){"undefined"==typeof t&&(t=!0),"undefined"==typeof e&&(e=0),0>e&&(e=0),v.snapindex=math.floor(e/v.params.slidespergroup),v.snapindex>=v.snapgrid.length&&(v.snapindex=v.snapgrid.length-1);var i=-v.snapgrid[v.snapindex];v.params.autoplay&&v.autoplaying&&(s||!v.params.autoplaydisableoninteraction?v.pauseautoplay(a):v.stopautoplay()),v.updateprogress(i);for(var n=0;n=math.floor(100*v.slidesgrid[n])&&(e=n);if(!v.params.allowswipetonext&&iv.translate&&i>v.maxtranslate()&&(v.activeindex||0)!==e)return!1;if("undefined"==typeof a&&(a=v.params.speed),v.previousindex=v.activeindex||0,v.activeindex=e,i===v.translate)return v.updateclasses(),!1;v.updateclasses(),v.ontransitionstart(t);r()?i:0,r()?0:i;return 0===a?(v.setwrappertransition(0),v.setwrappertranslate(i),v.ontransitionend(t)):(v.setwrappertransition(a),v.setwrappertranslate(i),v.animating||(v.animating=!0,v.wrapper.transitionend(function(){v&&v.ontransitionend(t)}))),!0},v.ontransitionstart=function(e){"undefined"==typeof e&&(e=!0),v.lazy&&v.lazy.ontransitionstart(),e&&(v.emit("ontransitionstart",v),v.activeindex!==v.previousindex&&v.emit("onslidechangestart",v))},v.ontransitionend=function(e){v.animating=!1,v.setwrappertransition(0),"undefined"==typeof e&&(e=!0),v.lazy&&v.lazy.ontransitionend(),e&&(v.emit("ontransitionend",v),v.activeindex!==v.previousindex&&v.emit("onslidechangeend",v)),v.params.hashnav&&v.hashnav&&v.hashnav.sethash()},v.slidenext=function(e,a,t){if(v.params.loop){if(v.animating)return!1;v.fixloop();v.container[0].clientleft;return v.slideto(v.activeindex+v.params.slidespergroup,a,e,t)}return v.slideto(v.activeindex+v.params.slidespergroup,a,e,t)},v._slidenext=function(e){return v.slidenext(!0,e,!0)},v.slideprev=function(e,a,t){if(v.params.loop){if(v.animating)return!1;v.fixloop();v.container[0].clientleft;return v.slideto(v.activeindex-1,a,e,t)}return v.slideto(v.activeindex-1,a,e,t)},v._slideprev=function(e){return v.slideprev(!0,e,!0)},v.slidereset=function(e,a,t){return v.slideto(v.activeindex,a,e)},v.setwrappertransition=function(e,a){v.wrapper.transition(e),"slide"!==v.params.effect&&v.effects[v.params.effect]&&v.effects[v.params.effect].settransition(e),v.params.parallax&&v.parallax&&v.parallax.settransition(e),v.params.scrollbar&&v.scrollbar&&v.scrollbar.settransition(e),v.params.control&&v.controller&&v.controller.settransition(e,a),v.emit("onsettransition",v,e)},v.setwrappertranslate=function(e,a,t){var s=0,n=0,o=0;r()?s=v.rtl?-e:e:n=e,v.params.roundlengths&&(s=i(s),n=i(n)),v.params.virtualtranslate||(v.support.transforms3d?v.wrapper.transform("translate3d("+s+"px, "+n+"px, "+o+"px)"):v.wrapper.transform("translate("+s+"px, "+n+"px)")),v.translate=r()?s:n,a&&v.updateactiveindex(),"slide"!==v.params.effect&&v.effects[v.params.effect]&&v.effects[v.params.effect].settranslate(v.translate),v.params.parallax&&v.parallax&&v.parallax.settranslate(v.translate),v.params.scrollbar&&v.scrollbar&&v.scrollbar.settranslate(v.translate),v.params.control&&v.controller&&v.controller.settranslate(v.translate,t),v.emit("onsettranslate",v,v.translate)},v.gettranslate=function(e,a){var t,s,r,i;return"undefined"==typeof a&&(a="x"),v.params.virtualtranslate?v.rtl?-v.translate:v.translate:(r=window.getcomputedstyle(e,null),window.webkitcssmatrix?(s=r.transform||r.webkittransform,s.split(",").length>6&&(s=s.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),i=new window.webkitcssmatrix("none"===s?"":s)):(i=r.moztransform||r.otransform||r.mstransform||r.mstransform||r.transform||r.getpropertyvalue("transform").replace("translate(","matrix(1, 0, 0, 1,"),t=i.tostring().split(",")),"x"===a&&(s=window.webkitcssmatrix?i.m41:16===t.length?parsefloat(t[12]):parsefloat(t[4])),"y"===a&&(s=window.webkitcssmatrix?i.m42:16===t.length?parsefloat(t[13]):parsefloat(t[5])),v.rtl&&s&&(s=-s),s||0)},v.getwrappertranslate=function(e){return"undefined"==typeof e&&(e=r()?"x":"y"),v.gettranslate(v.wrapper[0],e)},v.observers=[],v.initobservers=function(){if(v.params.observeparents)for(var e=v.container.parents(),a=0;ae.length&&(v.loopedslides=e.length);var t,s=[],r=[];for(e.each(function(t,i){var n=a(this);t=e.length-v.loopedslides&&s.push(i),n.attr("data-swiper-slide-index",t)}),t=0;t=0;t--)v.wrapper.prepend(a(s[t].clonenode(!0)).addclass(v.params.slideduplicateclass))},v.destroyloop=function(){v.wrapper.children("."+v.params.slideclass+"."+v.params.slideduplicateclass).remove(),v.slides.removeattr("data-swiper-slide-index")},v.fixloop=function(){var e;v.activeindex=2*v.loopedslides||v.activeindex>v.slides.length-2*v.params.slidesperview)&&(e=-v.slides.length+v.activeindex+v.loopedslides,e+=v.loopedslides,v.slideto(e,0,!1,!0))},v.appendslide=function(e){if(v.params.loop&&v.destroyloop(),"object"==typeof e&&e.length)for(var a=0;aa&&t--;t=math.max(t,0)}else a=e,v.slides[a]&&v.slides.eq(a).remove(),t>a&&t--,t=math.max(t,0);v.params.loop&&v.createloop(),v.params.observer&&v.support.observer||v.update(!0),v.params.loop?v.slideto(t+v.loopedslides,0,!1):v.slideto(t,0,!1)},v.removeallslides=function(){for(var e=[],a=0;a'),v.wrapper.append(e)),e.css({height:v.width+"px"})):(e=v.container.find(".swiper-cube-shadow"),0===e.length&&(e=a('
'),v.container.append(e))));for(var s=0;s=l&&l>-1&&(t=90*s+90*l,v.rtl&&(t=90*-s-90*l)),i.transform(u),v.params.cube.slideshadows){var m=r()?i.find(".swiper-slide-shadow-left"):i.find(".swiper-slide-shadow-top"),f=r()?i.find(".swiper-slide-shadow-right"):i.find(".swiper-slide-shadow-bottom");0===m.length&&(m=a('
'),i.append(m)),0===f.length&&(f=a('
'),i.append(f));i[0].progress;m.length&&(m[0].style.opacity=-i[0].progress),f.length&&(f[0].style.opacity=i[0].progress)}}if(v.wrapper.css({"-webkit-transform-origin":"50% 50% -"+v.size/2+"px","-moz-transform-origin":"50% 50% -"+v.size/2+"px","-ms-transform-origin":"50% 50% -"+v.size/2+"px","transform-origin":"50% 50% -"+v.size/2+"px"}),v.params.cube.shadow)if(r())e.transform("translate3d(0px, "+(v.width/2+v.params.cube.shadowoffset)+"px, "+-v.width/2+"px) rotatex(90deg) rotatez(0deg) scale("+v.params.cube.shadowscale+")");else{var h=math.abs(t)-90*math.floor(math.abs(t)/90),g=1.5-(math.sin(2*h*math.pi/360)/2+math.cos(2*h*math.pi/360)/2),w=v.params.cube.shadowscale,y=v.params.cube.shadowscale/g,b=v.params.cube.shadowoffset;e.transform("scale3d("+w+", 1, "+y+") translate3d(0px, "+(v.height/2+b)+"px, "+-v.height/2/y+"px) rotatex(-90deg)")}var t=v.issafari||v.isuiwebview?-v.size/2:0;v.wrapper.transform("translate3d(0px,0,"+t+"px) rotatex("+(r()?0:t)+"deg) rotatey("+(r()?-t:0)+"deg)")},settransition:function(e){v.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),v.params.cube.shadow&&!r()&&v.container.find(".swiper-cube-shadow").transition(e)}},coverflow:{settranslate:function(){for(var e=v.translate,t=r()?-e+v.width/2:-e+v.height/2,s=r()?v.params.coverflow.rotate:-v.params.coverflow.rotate,i=v.params.coverflow.depth,n=0,o=v.slides.length;o>n;n++){var l=v.slides.eq(n),p=v.slidessizesgrid[n],d=l[0].swiperslideoffset,c=(t-d-p/2)/p*v.params.coverflow.modifier,u=r()?s*c:0,m=r()?0:s*c,f=-i*math.abs(c),h=r()?0:v.params.coverflow.stretch*c,g=r()?v.params.coverflow.stretch*c:0;math.abs(g)<.001&&(g=0),math.abs(h)<.001&&(h=0),math.abs(f)<.001&&(f=0),math.abs(u)<.001&&(u=0),math.abs(m)<.001&&(m=0);var w="translate3d("+g+"px,"+h+"px,"+f+"px) rotatex("+m+"deg) rotatey("+u+"deg)";if(l.transform(w),l[0].style.zindex=-math.abs(math.round(c))+1,v.params.coverflow.slideshadows){var y=r()?l.find(".swiper-slide-shadow-left"):l.find(".swiper-slide-shadow-top"),b=r()?l.find(".swiper-slide-shadow-right"):l.find(".swiper-slide-shadow-bottom");0===y.length&&(y=a('
'),l.append(y)),0===b.length&&(b=a('
'),l.append(b)),y.length&&(y[0].style.opacity=c>0?c:0),b.length&&(b[0].style.opacity=-c>0?-c:0)}}if(v.browser.ie){var t=v.wrapper[0].style;t.perspectiveorigin=t+"px 50%"}},settransition:function(e){v.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}}},v.lazy={initialimageloaded:!1,loadimageinslide:function(e,t){if("undefined"!=typeof e&&("undefined"==typeof t&&(t=!0),0!==v.slides.length)){var s=v.slides.eq(e),r=s.find(".swiper-lazy:not(.swiper-lazy-loaded):not(.swiper-lazy-loading)");!s.hasclass("swiper-lazy")||s.hasclass("swiper-lazy-loaded")||s.hasclass("swiper-lazy-loading")||(r=r.add(s[0])),0!==r.length&&r.each(function(){var e=a(this);e.addclass("swiper-lazy-loading");var r=e.attr("data-background"),i=e.attr("data-src"),n=e.attr("data-srcset");v.loadimage(e[0],i||r,n,!1,function(){if(r?(e.css("background-image","url("+r+")"),e.removeattr("data-background")):(n&&(e.attr("srcset",n),e.removeattr("data-srcset")),i&&(e.attr("src",i),e.removeattr("data-src"))),e.addclass("swiper-lazy-loaded").removeclass("swiper-lazy-loading"),s.find(".swiper-lazy-preloader, .preloader").remove(),v.params.loop&&t){var a=s.attr("data-swiper-slide-index");if(s.hasclass(v.params.slideduplicateclass)){var o=v.wrapper.children('[data-swiper-slide-index="'+a+'"]:not(.'+v.params.slideduplicateclass+")");v.lazy.loadimageinslide(o.index(),!1)}else{var l=v.wrapper.children("."+v.params.slideduplicateclass+'[data-swiper-slide-index="'+a+'"]');v.lazy.loadimageinslide(l.index(),!1)}}v.emit("onlazyimageready",v,s[0],e[0])}),v.emit("onlazyimageload",v,s[0],e[0])})}},load:function(){var e;if(v.params.watchslidesvisibility)v.wrapper.children("."+v.params.slidevisibleclass).each(function(){v.lazy.loadimageinslide(a(this).index())});else if(v.params.slidesperview>1)for(e=v.activeindex;e1){for(e=v.activeindex+v.params.slidesperview;e0&&v.lazy.loadimageinslide(t.index());var s=v.wrapper.children("."+v.params.slideprevclass);s.length>0&&v.lazy.loadimageinslide(s.index())}},ontransitionstart:function(){v.params.lazyloading&&(v.params.lazyloadingontransitionstart||!v.params.lazyloadingontransitionstart&&!v.lazy.initialimageloaded)&&v.lazy.load()},ontransitionend:function(){v.params.lazyloading&&!v.params.lazyloadingontransitionstart&&v.lazy.load()}},v.scrollbar={istouched:!1,setdragposition:function(e){var a=v.scrollbar,t=r()?"touchstart"===e.type||"touchmove"===e.type?e.targettouches[0].pagex:e.pagex||e.clientx:"touchstart"===e.type||"touchmove"===e.type?e.targettouches[0].pagey:e.pagey||e.clienty,s=t-a.track.offset()[r()?"left":"top"]-a.dragsize/2,i=-v.mintranslate()*a.movedivider,n=-v.maxtranslate()*a.movedivider;i>s?s=i:s>n&&(s=n),s=-s/a.movedivider,v.updateprogress(s),v.setwrappertranslate(s,!0)},dragstart:function(e){var a=v.scrollbar;a.istouched=!0,e.preventdefault(),e.stoppropagation(),a.setdragposition(e),cleartimeout(a.dragtimeout),a.track.transition(0),v.params.scrollbarhide&&a.track.css("opacity",1),v.wrapper.transition(100),a.drag.transition(100),v.emit("onscrollbardragstart",v)},dragmove:function(e){var a=v.scrollbar;a.istouched&&(e.preventdefault?e.preventdefault():e.returnvalue=!1,a.setdragposition(e),v.wrapper.transition(0),a.track.transition(0),a.drag.transition(0),v.emit("onscrollbardragmove",v))},dragend:function(e){var a=v.scrollbar;a.istouched&&(a.istouched=!1,v.params.scrollbarhide&&(cleartimeout(a.dragtimeout),a.dragtimeout=settimeout(function(){a.track.css("opacity",0),a.track.transition(400)},1e3)),v.emit("onscrollbardragend",v),v.params.scrollbarsnaponrelease&&v.slidereset())},enabledraggable:function(){var e=v.scrollbar,t=v.support.touch?e.track:document;a(e.track).on(v.touchevents.start,e.dragstart),a(t).on(v.touchevents.move,e.dragmove),a(t).on(v.touchevents.end,e.dragend)},disabledraggable:function(){var e=v.scrollbar,t=v.support.touch?e.track:document;a(e.track).off(v.touchevents.start,e.dragstart),a(t).off(v.touchevents.move,e.dragmove),a(t).off(v.touchevents.end,e.dragend)},set:function(){if(v.params.scrollbar){var e=v.scrollbar;e.track=a(v.params.scrollbar),e.drag=e.track.find(".swiper-scrollbar-drag"),0===e.drag.length&&(e.drag=a('
'),e.track.append(e.drag)),e.drag[0].style.width="",e.drag[0].style.height="",e.tracksize=r()?e.track[0].offsetwidth:e.track[0].offsetheight,e.divider=v.size/v.virtualsize,e.movedivider=e.divider*(e.tracksize/v.size),e.dragsize=e.tracksize*e.divider,r()?e.drag[0].style.width=e.dragsize+"px":e.drag[0].style.height=e.dragsize+"px",e.divider>=1?e.track[0].style.display="none":e.track[0].style.display="",v.params.scrollbarhide&&(e.track[0].style.opacity=0)}},settranslate:function(){if(v.params.scrollbar){var e,a=v.scrollbar,t=(v.translate||0,a.dragsize);e=(a.tracksize-a.dragsize)*v.progress,v.rtl&&r()?(e=-e,e>0?(t=a.dragsize-e,e=0):-e+a.dragsize>a.tracksize&&(t=a.tracksize+e)):0>e?(t=a.dragsize+e,e=0):e+a.dragsize>a.tracksize&&(t=a.tracksize-e),r()?(v.support.transforms3d?a.drag.transform("translate3d("+e+"px, 0, 0)"):a.drag.transform("translatex("+e+"px)"),a.drag[0].style.width=t+"px"):(v.support.transforms3d?a.drag.transform("translate3d(0px, "+e+"px, 0)"):a.drag.transform("translatey("+e+"px)"),a.drag[0].style.height=t+"px"),v.params.scrollbarhide&&(cleartimeout(a.timeout),a.track[0].style.opacity=1,a.timeout=settimeout(function(){a.track[0].style.opacity=0,a.track.transition(400)},1e3))}},settransition:function(e){v.params.scrollbar&&v.scrollbar.drag.transition(e)}},v.controller={linearspline:function(e,a){this.x=e,this.y=a,this.lastindex=e.length-1;var t,s;this.x.length;this.interpolate=function(e){return e?(s=r(this.x,e),t=s-1,(e-this.x[t])*(this.y[s]-this.y[t])/(this.x[s]-this.x[t])+this.y[t]):0};var r=function(){var e,a,t;return function(s,r){for(a=-1,e=s.length;e-a>1;)s[t=e+a>>1]<=r?a=t:e=t;return e}}()},getinterpolatefunction:function(e){v.controller.spline||(v.controller.spline=v.params.loop?new v.controller.linearspline(v.slidesgrid,e.slidesgrid):new v.controller.linearspline(v.snapgrid,e.snapgrid))},settranslate:function(e,a){function s(a){e=a.rtl&&"horizontal"===a.params.direction?-v.translate:v.translate,"slide"===v.params.controlby&&(v.controller.getinterpolatefunction(a),i=-v.controller.spline.interpolate(-e)),i&&"container"!==v.params.controlby||(r=(a.maxtranslate()-a.mintranslate())/(v.maxtranslate()-v.mintranslate()),i=(e-v.mintranslate())*r+a.mintranslate()),v.params.controlinverse&&(i=a.maxtranslate()-i),a.updateprogress(i),a.setwrappertranslate(i,!1,v),a.updateactiveindex()}var r,i,n=v.params.control;if(v.isarray(n))for(var o=0;ot;t++){var r=v.slides.eq(t),i=r.attr("data-hash");if(i===e&&!r.hasclass(v.params.slideduplicateclass)){var n=r.index();v.slideto(n,a,v.params.runcallbacksoninit,!0)}}}},sethash:function(){v.hashnav.initialized&&v.params.hashnav&&(document.location.hash=v.slides.eq(v.activeindex).attr("data-hash")||"")}},v.disablekeyboardcontrol=function(){a(document).off("keydown",p)},v.enablekeyboardcontrol=function(){a(document).on("keydown",p)},v.mousewheel={event:!1,lastscrolltime:(new window.date).gettime()},v.params.mousewheelcontrol){try{new window.wheelevent("wheel"),v.mousewheel.event="wheel"}catch(g){}v.mousewheel.event||void 0===document.onmousewheel||(v.mousewheel.event="mousewheel"),v.mousewheel.event||(v.mousewheel.event="dommousescroll")}v.disablemousewheelcontrol=function(){return v.mousewheel.event?(v.container.off(v.mousewheel.event,d),!0):!1},v.enablemousewheelcontrol=function(){return v.mousewheel.event?(v.container.on(v.mousewheel.event,d),!0):!1},v.parallax={settranslate:function(){v.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){c(this,v.progress)}),v.slides.each(function(){var e=a(this);e.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var a=math.min(math.max(e[0].progress,-1),1);c(this,a)})})},settransition:function(e){"undefined"==typeof e&&(e=v.params.speed),v.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var t=a(this),s=parseint(t.attr("data-swiper-parallax-duration"),10)||e;0===e&&(s=0),t.transition(s)})}},v._plugins=[];for(var b in v.plugins){var o=v.plugins[b](v,v.params[b]);o&&v._plugins.push(o)}return v.callplugins=function(e){for(var a=0;a'),notify:function(e){var a=v.a11y.liveregion;0!==a.length&&(a.html(""),a.html(e))},init:function(){if(v.params.nextbutton){var e=a(v.params.nextbutton);v.a11y.makefocusable(e),v.a11y.addrole(e,"button"),v.a11y.addlabel(e,v.params.nextslidemessage)}if(v.params.prevbutton){var t=a(v.params.prevbutton);v.a11y.makefocusable(t),v.a11y.addrole(t,"button"),v.a11y.addlabel(t,v.params.prevslidemessage)}a(v.container).append(v.a11y.liveregion)},initpagination:function(){v.params.pagination&&v.params.paginationclickable&&v.bullets&&v.bullets.length&&v.bullets.each(function(){var e=a(this);v.a11y.makefocusable(e),v.a11y.addrole(e,"button"),v.a11y.addlabel(e,v.params.paginationbulletmessage.replace(/{{index}}/,e.index()+1))})},destroy:function(){v.a11y.liveregion&&v.a11y.liveregion.length>0&&v.a11y.liveregion.remove()}},v.init=function(){v.params.loop&&v.createloop(),v.updatecontainersize(),v.updateslidessize(),v.updatepagination(),v.params.scrollbar&&v.scrollbar&&(v.scrollbar.set(),v.params.scrollbardraggable&&v.scrollbar.enabledraggable()),"slide"!==v.params.effect&&v.effects[v.params.effect]&&(v.params.loop||v.updateprogress(),v.effects[v.params.effect].settranslate()),v.params.loop?v.slideto(v.params.initialslide+v.loopedslides,0,v.params.runcallbacksoninit):(v.slideto(v.params.initialslide,0,v.params.runcallbacksoninit),0===v.params.initialslide&&(v.parallax&&v.params.parallax&&v.parallax.settranslate(),v.lazy&&v.params.lazyloading&&(v.lazy.load(),v.lazy.initialimageloaded=!0))),v.attachevents(),v.params.observer&&v.support.observer&&v.initobservers(),v.params.preloadimages&&!v.params.lazyloading&&v.preloadimages(),v.params.autoplay&&v.startautoplay(),v.params.keyboardcontrol&&v.enablekeyboardcontrol&&v.enablekeyboardcontrol(),v.params.mousewheelcontrol&&v.enablemousewheelcontrol&&v.enablemousewheelcontrol(),v.params.hashnav&&v.hashnav&&v.hashnav.init(),v.params.a11y&&v.a11y&&v.a11y.init(),v.emit("oninit",v)},v.cleanupstyles=function(){v.container.removeclass(v.classnames.join(" ")).removeattr("style"),v.wrapper.removeattr("style"),v.slides&&v.slides.length&&v.slides.removeclass([v.params.slidevisibleclass,v.params.slideactiveclass,v.params.slidenextclass,v.params.slideprevclass].join(" ")).removeattr("style").removeattr("data-swiper-column").removeattr("data-swiper-row"),v.paginationcontainer&&v.paginationcontainer.length&&v.paginationcontainer.removeclass(v.params.paginationhiddenclass),v.bullets&&v.bullets.length&&v.bullets.removeclass(v.params.bulletactiveclass),v.params.prevbutton&&a(v.params.prevbutton).removeclass(v.params.buttondisabledclass),v.params.nextbutton&&a(v.params.nextbutton).removeclass(v.params.buttondisabledclass),v.params.scrollbar&&v.scrollbar&&(v.scrollbar.track&&v.scrollbar.track.length&&v.scrollbar.track.removeattr("style"),v.scrollbar.drag&&v.scrollbar.drag.length&&v.scrollbar.drag.removeattr("style"))},v.destroy=function(e,a){v.detachevents(),v.stopautoplay(),v.params.scrollbar&&v.scrollbar&&v.params.scrollbardraggable&&v.scrollbar.disabledraggable(),v.params.loop&&v.destroyloop(),a&&v.cleanupstyles(),v.disconnectobservers(),v.params.keyboardcontrol&&v.disablekeyboardcontrol&&v.disablekeyboardcontrol(),v.params.mousewheelcontrol&&v.disablemousewheelcontrol&&v.disablemousewheelcontrol(),v.params.a11y&&v.a11y&&v.a11y.destroy(),v.emit("ondestroy"),e!==!1&&(v=null)},v.init(),v}};t.prototype={issafari:function(){var e=navigator.useragent.tolowercase();return e.indexof("safari")>=0&&e.indexof("chrome")<0&&e.indexof("android")<0}(),isuiwebview:/(iphone|ipod|ipad).*applewebkit(?!.*safari)/i.test(navigator.useragent),isarray:function(e){return"[object array]"===object.prototype.tostring.apply(e)},browser:{ie:window.navigator.pointerenabled||window.navigator.mspointerenabled,ietouch:window.navigator.mspointerenabled&&window.navigator.msmaxtouchpoints>1||window.navigator.pointerenabled&&window.navigator.maxtouchpoints>1},device:function(){var e=navigator.useragent,a=e.match(/(android);?[\s\/]+([\d.]+)?/),t=e.match(/(ipad).*os\s([\d_]+)/),s=e.match(/(ipod)(.*os\s([\d_]+))?/),r=!t&&e.match(/(iphone\sos)\s([\d_]+)/);return{ios:t||r||s,android:a}}(),support:{touch:window.modernizr&&modernizr.touch===!0||function(){return!!("ontouchstart"in window||window.documenttouch&&document instanceof documenttouch)}(),transforms3d:window.modernizr&&modernizr.csstransforms3d===!0||function(){var e=document.createelement("div").style;return"webkitperspective"in e||"mozperspective"in e||"operspective"in e||"msperspective"in e||"perspective"in e}(),flexbox:function(){for(var e=document.createelement("div").style,a="alignitems webkitalignitems webkitboxalign msflexalign mozboxalign webkitflexdirection msflexdirection mozboxdirection mozboxorient webkitboxdirection webkitboxorient".split(" "),t=0;t