!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(e){return math.floor(e)}function i(){y.autoplaytimeoutid=settimeout(function(){y.params.loop?(y.fixloop(),y._slidenext(),y.emit("onautoplay",y)):y.isend?s.autoplaystoponlast?y.stopautoplay():(y._slideto(0),y.emit("onautoplay",y)):(y._slidenext(),y.emit("onautoplay",y))},y.params.autoplay)}function n(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}if(0!==s.length)return s[0]}function o(e,a){a=a||{};var t=window.mutationobserver||window.webkitmutationobserver,s=new t(function(e){e.foreach(function(e){y.onresize(!0),y.emit("onobserverupdate",y,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}),y.observers.push(s)}function l(e){e.originalevent&&(e=e.originalevent);var a=e.keycode||e.charcode;if(!y.params.allowswipetonext&&(y.ishorizontal()&&39===a||!y.ishorizontal()&&40===a))return!1;if(!y.params.allowswipetoprev&&(y.ishorizontal()&&37===a||!y.ishorizontal()&&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(y.container.parents(".swiper-slide").length>0&&0===y.container.parents(".swiper-slide-active").length)return;var s={left:window.pagexoffset,top:window.pageyoffset},r=window.innerwidth,i=window.innerheight,n=y.container.offset();y.rtl&&(n.left=n.left-y.container[0].scrollleft);for(var o=[[n.left,n.top],[n.left+y.width,n.top],[n.left,n.top+y.height],[n.left+y.width,n.top+y.height]],l=0;l=s.left&&p[0]<=s.left+r&&p[1]>=s.top&&p[1]<=s.top+i&&(t=!0)}if(!t)return}y.ishorizontal()?((37===a||39===a)&&(e.preventdefault?e.preventdefault():e.returnvalue=!1),(39===a&&!y.rtl||37===a&&y.rtl)&&y.slidenext(),(37===a&&!y.rtl||39===a&&y.rtl)&&y.slideprev()):((38===a||40===a)&&(e.preventdefault?e.preventdefault():e.returnvalue=!1),40===a&&y.slidenext(),38===a&&y.slideprev())}}function p(e){e.originalevent&&(e=e.originalevent);var a=y.mousewheel.event,t=0,s=y.rtl?-1:1;if("mousewheel"===a)if(y.params.mousewheelforcetoaxis)if(y.ishorizontal()){if(!(math.abs(e.wheeldeltax)>math.abs(e.wheeldeltay)))return;t=e.wheeldeltax*s}else{if(!(math.abs(e.wheeldeltay)>math.abs(e.wheeldeltax)))return;t=e.wheeldeltay}else t=math.abs(e.wheeldeltax)>math.abs(e.wheeldeltay)?-e.wheeldeltax*s:-e.wheeldeltay;else if("dommousescroll"===a)t=-e.detail;else if("wheel"===a)if(y.params.mousewheelforcetoaxis)if(y.ishorizontal()){if(!(math.abs(e.deltax)>math.abs(e.deltay)))return;t=-e.deltax*s}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*s:-e.deltay;if(0!==t){if(y.params.mousewheelinvert&&(t=-t),y.params.freemode){var r=y.getwrappertranslate()+t*y.params.mousewheelsensitivity,i=y.isbeginning,n=y.isend;if(r>=y.mintranslate()&&(r=y.mintranslate()),r<=y.maxtranslate()&&(r=y.maxtranslate()),y.setwrappertransition(0),y.setwrappertranslate(r),y.updateprogress(),y.updateactiveindex(),(!i&&y.isbeginning||!n&&y.isend)&&y.updateclasses(),y.params.freemodesticky?(cleartimeout(y.mousewheel.timeout),y.mousewheel.timeout=settimeout(function(){y.slidereset()},300)):y.params.lazyloading&&y.lazy&&y.lazy.load(),0===r||r===y.maxtranslate())return}else{if((new window.date).gettime()-y.mousewheel.lastscrolltime>60)if(0>t)if(y.isend&&!y.params.loop||y.animating){if(y.params.mousewheelreleaseonedges)return!0}else y.slidenext();else if(y.isbeginning&&!y.params.loop||y.animating){if(y.params.mousewheelreleaseonedges)return!0}else y.slideprev();y.mousewheel.lastscrolltime=(new window.date).gettime()}return y.params.autoplay&&y.stopautoplay(),e.preventdefault?e.preventdefault():e.returnvalue=!1,!1}}function d(e,t){e=a(e);var s,r,i,n=y.rtl?-1:1;s=e.attr("data-swiper-parallax")||"0",r=e.attr("data-swiper-parallax-x"),i=e.attr("data-swiper-parallax-y"),r||i?(r=r||"0",i=i||"0"):y.ishorizontal()?(r=s,i="0"):(i=s,r="0"),r=r.indexof("%")>=0?parseint(r,10)*t*n+"%":r*t*n+"px",i=i.indexof("%")>=0?parseint(i,10)*t+"%":i*t+"px",e.transform("translate3d("+r+", "+i+",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 c={direction:"horizontal",toucheventstarget:"container",initialslide:0,speed:300,autoplay:!1,autoplaydisableoninteraction:!0,autoplaystoponlast:!1,iosedgeswipedetection:!1,iosedgeswipethreshold:20,freemode:!1,freemodemomentum:!0,freemodemomentumratio:1,freemodemomentumbounce:!0,freemodemomentumbounceratio:1,freemodesticky:!1,freemodeminimumvelocity:.02,autoheight:!1,setwrappersize:!1,virtualtranslate:!1,effect:"slide",coverflow:{rotate:50,stretch:0,depth:100,modifier:1,slideshadows:!0},flip:{slideshadows:!0,limitrotation:!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,breakpoints:void 0,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,uniquenavelements:!0,pagination:null,paginationelement:"span",paginationclickable:!1,paginationhide:!1,paginationbulletrender:null,paginationprogressrender:null,paginationfractionrender:null,paginationcustomrender:null,paginationtype:"bullets",resistance:!0,resistanceratio:.85,nextbutton:null,prevbutton:null,watchslidesprogress:!1,watchslidesvisibility:!1,grabcursor:!1,preventclicks:!0,preventclickspropagation:!0,slidetoclickedslide:!1,lazyloading:!1,lazyloadinginprevnext:!1,lazyloadinginprevnextamount: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",paginationcurrentclass:"swiper-pagination-current",paginationtotalclass:"swiper-pagination-total",paginationhiddenclass:"swiper-pagination-hidden",paginationprogressbarclass:"swiper-pagination-progressbar",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},m=s&&s.virtualtranslate;s=s||{};var f={};for(var g in s)if("object"!=typeof s[g]||null===s[g]||(s[g].nodetype||s[g]===window||s[g]===document||"undefined"!=typeof dom7&&s[g]instanceof dom7||"undefined"!=typeof jquery&&s[g]instanceof jquery))f[g]=s[g];else{f[g]={};for(var h in s[g])f[g][h]=s[g][h]}for(var v in c)if("undefined"==typeof s[v])s[v]=c[v];else if("object"==typeof s[v])for(var w in c[v])"undefined"==typeof s[v][w]&&(s[v][w]=c[v][w]);var y=this;if(y.params=s,y.originalparams=f,y.classnames=[],"undefined"!=typeof a&&"undefined"!=typeof dom7&&(a=dom7),("undefined"!=typeof a||(a="undefined"==typeof dom7?window.dom7||window.zepto||window.jquery:dom7))&&(y.$=a,y.currentbreakpoint=void 0,y.getactivebreakpoint=function(){if(!y.params.breakpoints)return!1;var e,a=!1,t=[];for(e in y.params.breakpoints)y.params.breakpoints.hasownproperty(e)&&t.push(e);t.sort(function(e,a){return parseint(e,10)>parseint(a,10)});for(var s=0;s=window.innerwidth&&!a&&(a=e);return a||"max"},y.setbreakpoint=function(){var e=y.getactivebreakpoint();if(e&&y.currentbreakpoint!==e){var a=e in y.params.breakpoints?y.params.breakpoints[e]:y.originalparams,t=y.params.loop&&a.slidesperview!==y.params.slidesperview;for(var s in a)y.params[s]=a[s];y.currentbreakpoint=e,t&&y.destroyloop&&y.reloop(!0)}},y.params.breakpoints&&y.setbreakpoint(),y.container=a(e),0!==y.container.length)){if(y.container.length>1){var b=[];return y.container.each(function(){b.push(new t(this,s))}),b}y.container[0].swiper=y,y.container.data("swiper",y),y.classnames.push("swiper-container-"+y.params.direction),y.params.freemode&&y.classnames.push("swiper-container-free-mode"),y.support.flexbox||(y.classnames.push("swiper-container-no-flexbox"),y.params.slidespercolumn=1),y.params.autoheight&&y.classnames.push("swiper-container-autoheight"),(y.params.parallax||y.params.watchslidesvisibility)&&(y.params.watchslidesprogress=!0),["cube","coverflow","flip"].indexof(y.params.effect)>=0&&(y.support.transforms3d?(y.params.watchslidesprogress=!0,y.classnames.push("swiper-container-3d")):y.params.effect="slide"),"slide"!==y.params.effect&&y.classnames.push("swiper-container-"+y.params.effect),"cube"===y.params.effect&&(y.params.resistanceratio=0,y.params.slidesperview=1,y.params.slidespercolumn=1,y.params.slidespergroup=1,y.params.centeredslides=!1,y.params.spacebetween=0,y.params.virtualtranslate=!0,y.params.setwrappersize=!1),("fade"===y.params.effect||"flip"===y.params.effect)&&(y.params.slidesperview=1,y.params.slidespercolumn=1,y.params.slidespergroup=1,y.params.watchslidesprogress=!0,y.params.spacebetween=0,y.params.setwrappersize=!1,"undefined"==typeof m&&(y.params.virtualtranslate=!0)),y.params.grabcursor&&y.support.touch&&(y.params.grabcursor=!1),y.wrapper=y.container.children("."+y.params.wrapperclass),y.params.pagination&&(y.paginationcontainer=a(y.params.pagination),y.params.uniquenavelements&&"string"==typeof y.params.pagination&&y.paginationcontainer.length>1&&1===y.container.find(y.params.pagination).length&&(y.paginationcontainer=y.container.find(y.params.pagination)),"bullets"===y.params.paginationtype&&y.params.paginationclickable?y.paginationcontainer.addclass("swiper-pagination-clickable"):y.params.paginationclickable=!1,y.paginationcontainer.addclass("swiper-pagination-"+y.params.paginationtype)),(y.params.nextbutton||y.params.prevbutton)&&(y.params.nextbutton&&(y.nextbutton=a(y.params.nextbutton),y.params.uniquenavelements&&"string"==typeof y.params.nextbutton&&y.nextbutton.length>1&&1===y.container.find(y.params.nextbutton).length&&(y.nextbutton=y.container.find(y.params.nextbutton))),y.params.prevbutton&&(y.prevbutton=a(y.params.prevbutton),y.params.uniquenavelements&&"string"==typeof y.params.prevbutton&&y.prevbutton.length>1&&1===y.container.find(y.params.prevbutton).length&&(y.prevbutton=y.container.find(y.params.prevbutton)))),y.ishorizontal=function(){return"horizontal"===y.params.direction},y.rtl=y.ishorizontal()&&("rtl"===y.container[0].dir.tolowercase()||"rtl"===y.container.css("direction")),y.rtl&&y.classnames.push("swiper-container-rtl"),y.rtl&&(y.wrongrtl="-webkit-box"===y.wrapper.css("display")),y.params.slidespercolumn>1&&y.classnames.push("swiper-container-multirow"),y.device.android&&y.classnames.push("swiper-container-android"),y.container.addclass(y.classnames.join(" ")),y.translate=0,y.progress=0,y.velocity=0,y.lockswipetonext=function(){y.params.allowswipetonext=!1},y.lockswipetoprev=function(){y.params.allowswipetoprev=!1},y.lockswipes=function(){y.params.allowswipetonext=y.params.allowswipetoprev=!1},y.unlockswipetonext=function(){y.params.allowswipetonext=!0},y.unlockswipetoprev=function(){y.params.allowswipetoprev=!0},y.unlockswipes=function(){y.params.allowswipetonext=y.params.allowswipetoprev=!0},y.params.grabcursor&&(y.container[0].style.cursor="move",y.container[0].style.cursor="-webkit-grab",y.container[0].style.cursor="-moz-grab",y.container[0].style.cursor="grab"),y.imagestoload=[],y.imagesloaded=0,y.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()},y.preloadimages=function(){function e(){"undefined"!=typeof y&&null!==y&&(void 0!==y.imagesloaded&&y.imagesloaded++,y.imagesloaded===y.imagestoload.length&&(y.params.updateonimagesready&&y.update(),y.emit("onimagesready",y)))}y.imagestoload=y.container.find("img");for(var a=0;a=0&&(a=parsefloat(a.replace("%",""))/100*y.size),y.virtualsize=-a,y.rtl?y.slides.css({marginleft:"",margintop:""}):y.slides.css({marginright:"",marginbottom:""});var n;y.params.slidespercolumn>1&&(n=math.floor(y.slides.length/y.params.slidespercolumn)===y.slides.length/y.params.slidespercolumn?y.slides.length:math.ceil(y.slides.length/y.params.slidespercolumn)*y.params.slidespercolumn,"auto"!==y.params.slidesperview&&"row"===y.params.slidespercolumnfill&&(n=math.max(n,y.params.slidesperview*y.params.slidespercolumn)));var o,l=y.params.slidespercolumn,p=n/l,d=p-(y.params.slidespercolumn*p-y.slides.length);for(e=0;e1){var c,m,f;"column"===y.params.slidespercolumnfill?(m=math.floor(e/l),f=e-m*l,(m>d||m===d&&f===l-1)&&++f>=l&&(f=0,m++),c=m+f*n/l,u.css({"-webkit-box-ordinal-group":c,"-moz-box-ordinal-group":c,"-ms-flex-order":c,"-webkit-order":c,order:c})):(f=math.floor(e/p),m=e-f*p),u.css({"margin-top":0!==f&&y.params.spacebetween&&y.params.spacebetween+"px"}).attr("data-swiper-column",m).attr("data-swiper-row",f)}"none"!==u.css("display")&&("auto"===y.params.slidesperview?(o=y.ishorizontal()?u.outerwidth(!0):u.outerheight(!0),y.params.roundlengths&&(o=r(o))):(o=(y.size-(y.params.slidesperview-1)*a)/y.params.slidesperview,y.params.roundlengths&&(o=r(o)),y.ishorizontal()?y.slides[e].style.width=o+"px":y.slides[e].style.height=o+"px"),y.slides[e].swiperslidesize=o,y.slidessizesgrid.push(o),y.params.centeredslides?(t=t+o/2+s/2+a,0===e&&(t=t-y.size/2-a),math.abs(t)<.001&&(t=0),i%y.params.slidespergroup===0&&y.snapgrid.push(t),y.slidesgrid.push(t)):(i%y.params.slidespergroup===0&&y.snapgrid.push(t),y.slidesgrid.push(t),t=t+o+a),y.virtualsize+=o+a,s=o,i++)}y.virtualsize=math.max(y.virtualsize,y.size)+y.params.slidesoffsetafter;var g;if(y.rtl&&y.wrongrtl&&("slide"===y.params.effect||"coverflow"===y.params.effect)&&y.wrapper.css({width:y.virtualsize+y.params.spacebetween+"px"}),(!y.support.flexbox||y.params.setwrappersize)&&(y.ishorizontal()?y.wrapper.css({width:y.virtualsize+y.params.spacebetween+"px"}):y.wrapper.css({height:y.virtualsize+y.params.spacebetween+"px"})),y.params.slidespercolumn>1&&(y.virtualsize=(o+y.params.spacebetween)*n,y.virtualsize=math.ceil(y.virtualsize/y.params.slidespercolumn)-y.params.spacebetween,y.wrapper.css({width:y.virtualsize+y.params.spacebetween+"px"}),y.params.centeredslides)){for(g=[],e=0;e1&&y.snapgrid.push(y.virtualsize-y.size)}0===y.snapgrid.length&&(y.snapgrid=[0]),0!==y.params.spacebetween&&(y.ishorizontal()?y.rtl?y.slides.css({marginleft:a+"px"}):y.slides.css({marginright:a+"px"}):y.slides.css({marginbottom:a+"px"})),y.params.watchslidesprogress&&y.updateslidesoffset()}},y.updateslidesoffset=function(){for(var e=0;e=0&&i0&&n<=y.size||0>=i&&n>=y.size;o&&y.slides.eq(t).addclass(y.params.slidevisibleclass)}s.progress=y.rtl?-r:r}}},y.updateprogress=function(e){"undefined"==typeof e&&(e=y.translate||0);var a=y.maxtranslate()-y.mintranslate(),t=y.isbeginning,s=y.isend;0===a?(y.progress=0,y.isbeginning=y.isend=!0):(y.progress=(e-y.mintranslate())/a,y.isbeginning=y.progress<=0,y.isend=y.progress>=1),y.isbeginning&&!t&&y.emit("onreachbeginning",y),y.isend&&!s&&y.emit("onreachend",y),y.params.watchslidesprogress&&y.updateslidesprogress(e),y.emit("onprogress",y,y.progress)},y.updateactiveindex=function(){var e,a,t,s=y.rtl?y.translate:-y.translate;for(a=0;a=y.slidesgrid[a]&&s=y.slidesgrid[a]&&s=y.slidesgrid[a]&&(e=a);(0>e||"undefined"==typeof e)&&(e=0),t=math.floor(e/y.params.slidespergroup),t>=y.snapgrid.length&&(t=y.snapgrid.length-1),e!==y.activeindex&&(y.snapindex=t,y.previousindex=y.activeindex,y.activeindex=e,y.updateclasses())},y.updateclasses=function(){y.slides.removeclass(y.params.slideactiveclass+" "+y.params.slidenextclass+" "+y.params.slideprevclass);var e=y.slides.eq(y.activeindex);e.addclass(y.params.slideactiveclass);var t=e.next("."+y.params.slideclass).addclass(y.params.slidenextclass);y.params.loop&&0===t.length&&y.slides.eq(0).addclass(y.params.slidenextclass);var s=e.prev("."+y.params.slideclass).addclass(y.params.slideprevclass);if(y.params.loop&&0===s.length&&y.slides.eq(-1).addclass(y.params.slideprevclass),y.paginationcontainer&&y.paginationcontainer.length>0){var r,i=y.params.loop?math.ceil((y.slides.length-2*y.loopedslides)/y.params.slidespergroup):y.snapgrid.length;if(y.params.loop?(r=math.ceil((y.activeindex-y.loopedslides)/y.params.slidespergroup),r>y.slides.length-1-2*y.loopedslides&&(r-=y.slides.length-2*y.loopedslides),r>i-1&&(r-=i),0>r&&"bullets"!==y.params.paginationtype&&(r=i+r)):r="undefined"!=typeof y.snapindex?y.snapindex:y.activeindex||0,"bullets"===y.params.paginationtype&&y.bullets&&y.bullets.length>0&&(y.bullets.removeclass(y.params.bulletactiveclass),y.paginationcontainer.length>1?y.bullets.each(function(){a(this).index()===r&&a(this).addclass(y.params.bulletactiveclass)}):y.bullets.eq(r).addclass(y.params.bulletactiveclass)),"fraction"===y.params.paginationtype&&(y.paginationcontainer.find("."+y.params.paginationcurrentclass).text(r+1),y.paginationcontainer.find("."+y.params.paginationtotalclass).text(i)),"progress"===y.params.paginationtype){var n=(r+1)/i,o=n,l=1;y.ishorizontal()||(l=n,o=1),y.paginationcontainer.find("."+y.params.paginationprogressbarclass).transform("translate3d(0,0,0) scalex("+o+") scaley("+l+")").transition(y.params.speed)}"custom"===y.params.paginationtype&&y.params.paginationcustomrender&&(y.paginationcontainer.html(y.params.paginationcustomrender(y,r+1,i)),y.emit("onpaginationrendered",y,y.paginationcontainer[0]))}y.params.loop||(y.params.prevbutton&&y.prevbutton&&y.prevbutton.length>0&&(y.isbeginning?(y.prevbutton.addclass(y.params.buttondisabledclass),y.params.a11y&&y.a11y&&y.a11y.disable(y.prevbutton)):(y.prevbutton.removeclass(y.params.buttondisabledclass),y.params.a11y&&y.a11y&&y.a11y.enable(y.prevbutton))),y.params.nextbutton&&y.nextbutton&&y.nextbutton.length>0&&(y.isend?(y.nextbutton.addclass(y.params.buttondisabledclass),y.params.a11y&&y.a11y&&y.a11y.disable(y.nextbutton)):(y.nextbutton.removeclass(y.params.buttondisabledclass),y.params.a11y&&y.a11y&&y.a11y.enable(y.nextbutton))))},y.updatepagination=function(){if(y.params.pagination&&y.paginationcontainer&&y.paginationcontainer.length>0){var e="";if("bullets"===y.params.paginationtype){for(var a=y.params.loop?math.ceil((y.slides.length-2*y.loopedslides)/y.params.slidespergroup):y.snapgrid.length,t=0;a>t;t++)e+=y.params.paginationbulletrender?y.params.paginationbulletrender(t,y.params.bulletclass):"<"+y.params.paginationelement+' class="'+y.params.bulletclass+'">";y.paginationcontainer.html(e),y.bullets=y.paginationcontainer.find("."+y.params.bulletclass),y.params.paginationclickable&&y.params.a11y&&y.a11y&&y.a11y.initpagination()}"fraction"===y.params.paginationtype&&(e=y.params.paginationfractionrender?y.params.paginationfractionrender(y,y.params.paginationcurrentclass,y.params.paginationtotalclass):' / ',y.paginationcontainer.html(e)),"progress"===y.params.paginationtype&&(e=y.params.paginationprogressrender?y.params.paginationprogressrender(y,y.params.paginationprogressbarclass):'',y.paginationcontainer.html(e)),"custom"!==y.params.paginationtype&&y.emit("onpaginationrendered",y,y.paginationcontainer[0])}},y.update=function(e){function a(){s=math.min(math.max(y.translate,y.maxtranslate()),y.mintranslate()),y.setwrappertranslate(s),y.updateactiveindex(),y.updateclasses()}if(y.updatecontainersize(),y.updateslidessize(),y.updateprogress(),y.updatepagination(),y.updateclasses(),y.params.scrollbar&&y.scrollbar&&y.scrollbar.set(),e){var t,s;y.controller&&y.controller.spline&&(y.controller.spline=void 0),y.params.freemode?(a(),y.params.autoheight&&y.updateautoheight()):(t=("auto"===y.params.slidesperview||y.params.slidesperview>1)&&y.isend&&!y.params.centeredslides?y.slideto(y.slides.length-1,0,!1,!0):y.slideto(y.activeindex,0,!1,!0),t||a())}else y.params.autoheight&&y.updateautoheight()},y.onresize=function(e){y.params.breakpoints&&y.setbreakpoint();var a=y.params.allowswipetoprev,t=y.params.allowswipetonext;y.params.allowswipetoprev=y.params.allowswipetonext=!0,y.updatecontainersize(),y.updateslidessize(),("auto"===y.params.slidesperview||y.params.freemode||e)&&y.updatepagination(),y.params.scrollbar&&y.scrollbar&&y.scrollbar.set(),y.controller&&y.controller.spline&&(y.controller.spline=void 0);var s=!1;if(y.params.freemode){var r=math.min(math.max(y.translate,y.maxtranslate()),y.mintranslate());y.setwrappertranslate(r),y.updateactiveindex(),y.updateclasses(),y.params.autoheight&&y.updateautoheight()}else y.updateclasses(),s=("auto"===y.params.slidesperview||y.params.slidesperview>1)&&y.isend&&!y.params.centeredslides?y.slideto(y.slides.length-1,0,!1,!0):y.slideto(y.activeindex,0,!1,!0);y.params.lazyloading&&!s&&y.lazy&&y.lazy.load(),y.params.allowswipetoprev=a,y.params.allowswipetonext=t};var x=["mousedown","mousemove","mouseup"];window.navigator.pointerenabled?x=["pointerdown","pointermove","pointerup"]:window.navigator.mspointerenabled&&(x=["mspointerdown","mspointermove","mspointerup"]),y.touchevents={start:y.support.touch||!y.params.simulatetouch?"touchstart":x[0],move:y.support.touch||!y.params.simulatetouch?"touchmove":x[1],end:y.support.touch||!y.params.simulatetouch?"touchend":x[2]},(window.navigator.pointerenabled||window.navigator.mspointerenabled)&&("container"===y.params.toucheventstarget?y.container:y.wrapper).addclass("swiper-wp8-"+y.params.direction),y.initevents=function(e){var a=e?"off":"on",t=e?"removeeventlistener":"addeventlistener",r="container"===y.params.toucheventstarget?y.container[0]:y.wrapper[0],i=y.support.touch?r:document,n=y.params.nested?!0:!1;y.browser.ie?(r[t](y.touchevents.start,y.ontouchstart,!1),i[t](y.touchevents.move,y.ontouchmove,n),i[t](y.touchevents.end,y.ontouchend,!1)):(y.support.touch&&(r[t](y.touchevents.start,y.ontouchstart,!1),r[t](y.touchevents.move,y.ontouchmove,n),r[t](y.touchevents.end,y.ontouchend,!1)),!s.simulatetouch||y.device.ios||y.device.android||(r[t]("mousedown",y.ontouchstart,!1),document[t]("mousemove",y.ontouchmove,n),document[t]("mouseup",y.ontouchend,!1))),window[t]("resize",y.onresize),y.params.nextbutton&&y.nextbutton&&y.nextbutton.length>0&&(y.nextbutton[a]("click",y.onclicknext),y.params.a11y&&y.a11y&&y.nextbutton[a]("keydown",y.a11y.onenterkey)),y.params.prevbutton&&y.prevbutton&&y.prevbutton.length>0&&(y.prevbutton[a]("click",y.onclickprev),y.params.a11y&&y.a11y&&y.prevbutton[a]("keydown",y.a11y.onenterkey)),y.params.pagination&&y.params.paginationclickable&&(y.paginationcontainer[a]("click","."+y.params.bulletclass,y.onclickindex),y.params.a11y&&y.a11y&&y.paginationcontainer[a]("keydown","."+y.params.bulletclass,y.a11y.onenterkey)),(y.params.preventclicks||y.params.preventclickspropagation)&&r[t]("click",y.preventclicks,!0)},y.attachevents=function(){y.initevents()},y.detachevents=function(){y.initevents(!0)},y.allowclick=!0,y.preventclicks=function(e){y.allowclick||(y.params.preventclicks&&e.preventdefault(),y.params.preventclickspropagation&&y.animating&&(e.stoppropagation(),e.stopimmediatepropagation()))},y.onclicknext=function(e){e.preventdefault(),(!y.isend||y.params.loop)&&y.slidenext()},y.onclickprev=function(e){e.preventdefault(),(!y.isbeginning||y.params.loop)&&y.slideprev()},y.onclickindex=function(e){e.preventdefault();var t=a(this).index()*y.params.slidespergroup;y.params.loop&&(t+=y.loopedslides),y.slideto(t)},y.updateclickedslide=function(e){var t=n(e,"."+y.params.slideclass),s=!1;if(t)for(var r=0;ry.slides.length-y.loopedslides+y.params.slidesperview/2?(y.fixloop(),o=y.wrapper.children("."+y.params.slideclass+'[data-swiper-slide-index="'+i+'"]:not(.swiper-slide-duplicate)').eq(0).index(),settimeout(function(){y.slideto(o)},0)):y.slideto(o):o>y.slides.length-y.params.slidesperview?(y.fixloop(),o=y.wrapper.children("."+y.params.slideclass+'[data-swiper-slide-index="'+i+'"]:not(.swiper-slide-duplicate)').eq(0).index(),settimeout(function(){y.slideto(o)},0)):y.slideto(o)}else y.slideto(o)}};var t,s,c,z,m,p,i,k,e,b,d="input, select, textarea, button",l=date.now(),h=[];y.animating=!1,y.touches={startx:0,starty:0,currentx:0,currenty:0,diff:0};var g,a;if(y.ontouchstart=function(e){if(e.originalevent&&(e=e.originalevent),g="touchstart"===e.type,g||!("which"in e)||3!==e.which){if(y.params.noswiping&&n(e,"."+y.params.noswipingclass))return void(y.allowclick=!0);if(!y.params.swipehandler||n(e,y.params.swipehandler)){var t=y.touches.currentx="touchstart"===e.type?e.targettouches[0].pagex:e.pagex,s=y.touches.currenty="touchstart"===e.type?e.targettouches[0].pagey:e.pagey;if(!(y.device.ios&&y.params.iosedgeswipedetection&&t<=y.params.iosedgeswipethreshold)){if(t=!0,s=!1,c=!0,m=void 0,a=void 0,y.touches.startx=t,y.touches.starty=s,z=date.now(),y.allowclick=!0,y.updatecontainersize(),y.swipedirection=void 0,y.params.threshold>0&&(k=!1),"touchstart"!==e.type){var r=!0;a(e.target).is(d)&&(r=!1),document.activeelement&&a(document.activeelement).is(d)&&document.activeelement.blur(),r&&e.preventdefault()}y.emit("ontouchstart",y,e)}}}},y.ontouchmove=function(e){if(e.originalevent&&(e=e.originalevent),!g||"mousemove"!==e.type){if(e.preventedbynestedswiper)return y.touches.startx="touchmove"===e.type?e.targettouches[0].pagex:e.pagex,void(y.touches.starty="touchmove"===e.type?e.targettouches[0].pagey:e.pagey);if(y.params.onlyexternal)return y.allowclick=!1,void(t&&(y.touches.startx=y.touches.currentx="touchmove"===e.type?e.targettouches[0].pagex:e.pagex,y.touches.starty=y.touches.currenty="touchmove"===e.type?e.targettouches[0].pagey:e.pagey,z=date.now()));if(g&&document.activeelement&&e.target===document.activeelement&&a(e.target).is(d))return s=!0,void(y.allowclick=!1);if(c&&y.emit("ontouchmove",y,e),!(e.targettouches&&e.targettouches.length>1)){if(y.touches.currentx="touchmove"===e.type?e.targettouches[0].pagex:e.pagex,y.touches.currenty="touchmove"===e.type?e.targettouches[0].pagey:e.pagey,"undefined"==typeof m){var t=180*math.atan2(math.abs(y.touches.currenty-y.touches.starty),math.abs(y.touches.currentx-y.touches.startx))/math.pi;m=y.ishorizontal()?t>y.params.touchangle:90-t>y.params.touchangle}if(m&&y.emit("ontouchmoveopposite",y,e),"undefined"==typeof a&&y.browser.ietouch&&(y.touches.currentx!==y.touches.startx||y.touches.currenty!==y.touches.starty)&&(a=!0),t){if(m)return void(t=!1);if(a||!y.browser.ietouch){y.allowclick=!1,y.emit("onslidermove",y,e),e.preventdefault(),y.params.touchmovestoppropagation&&!y.params.nested&&e.stoppropagation(),s||(s.loop&&y.fixloop(),i=y.getwrappertranslate(),y.setwrappertransition(0),y.animating&&y.wrapper.trigger("webkittransitionend transitionend otransitionend mstransitionend mstransitionend"),y.params.autoplay&&y.autoplaying&&(y.params.autoplaydisableoninteraction?y.stopautoplay():y.pauseautoplay()),b=!1,y.params.grabcursor&&(y.container[0].style.cursor="move",y.container[0].style.cursor="-webkit-grabbing",y.container[0].style.cursor="-moz-grabbin",y.container[0].style.cursor="grabbing")),s=!0;var r=y.touches.diff=y.ishorizontal()?y.touches.currentx-y.touches.startx:y.touches.currenty-y.touches.starty;r*=y.params.touchratio,y.rtl&&(r=-r),y.swipedirection=r>0?"prev":"next",p=r+i;var i=!0;if(r>0&&p>y.mintranslate()?(i=!1,y.params.resistance&&(p=y.mintranslate()-1+math.pow(-y.mintranslate()+i+r,y.params.resistanceratio))):0>r&&pp&&(p=i),!y.params.allowswipetoprev&&"prev"===y.swipedirection&&p>i&&(p=i),y.params.followfinger){if(y.params.threshold>0){if(!(math.abs(r)>y.params.threshold||k))return void(p=i);if(!k)return k=!0,y.touches.startx=y.touches.currentx,y.touches.starty=y.touches.currenty,p=i,void(y.touches.diff=y.ishorizontal()?y.touches.currentx-y.touches.startx:y.touches.currenty-y.touches.starty)}(y.params.freemode||y.params.watchslidesprogress)&&y.updateactiveindex(),y.params.freemode&&(0===h.length&&h.push({position:y.touches[y.ishorizontal()?"startx":"starty"],time:z}),h.push({position:y.touches[y.ishorizontal()?"currentx":"currenty"],time:(new window.date).gettime()})),y.updateprogress(p),y.setwrappertranslate(p)}}}}}},y.ontouchend=function(e){if(e.originalevent&&(e=e.originalevent),c&&y.emit("ontouchend",y,e),c=!1,t){y.params.grabcursor&&s&&t&&(y.container[0].style.cursor="move",y.container[0].style.cursor="-webkit-grab",y.container[0].style.cursor="-moz-grab",y.container[0].style.cursor="grab");var t=date.now(),s=t-z;if(y.allowclick&&(y.updateclickedslide(e),y.emit("ontap",y,e),300>s&&t-l>300&&(e&&cleartimeout(e),e=settimeout(function(){y&&(y.params.paginationhide&&y.paginationcontainer.length>0&&!a(e.target).hasclass(y.params.bulletclass)&&y.paginationcontainer.toggleclass(y.params.paginationhiddenclass),y.emit("onclick",y,e))},300)),300>s&&300>t-l&&(e&&cleartimeout(e),y.emit("ondoubletap",y,e))),l=date.now(),settimeout(function(){y&&(y.allowclick=!0)},0),!t||!s||!y.swipedirection||0===y.touches.diff||p===i)return void(t=s=!1);t=s=!1;var r;if(r=y.params.followfinger?y.rtl?y.translate:-y.translate:-p,y.params.freemode){if(r<-y.mintranslate())return void y.slideto(y.activeindex);if(r>-y.maxtranslate())return void(y.slides.length1){var i=h.pop(),n=h.pop(),o=i.position-n.position,l=i.time-n.time;y.velocity=o/l,y.velocity=y.velocity/2,math.abs(y.velocity)150||(new window.date).gettime()-i.time>300)&&(y.velocity=0)}else y.velocity=0;h.length=0;var p=1e3*y.params.freemodemomentumratio,d=y.velocity*p,u=y.translate+d;y.rtl&&(u=-u);var c,m=!1,f=20*math.abs(y.velocity)*y.params.freemodemomentumbounceratio;if(uy.mintranslate())y.params.freemodemomentumbounce?(u-y.mintranslate()>f&&(u=y.mintranslate()+f),c=y.mintranslate(),m=!0,b=!0):u=y.mintranslate();else if(y.params.freemodesticky){var g,h=0;for(h=0;h-u){g=h;break}u=math.abs(y.snapgrid[g]-u)=y.params.longswipesms)&&(y.updateprogress(),y.updateactiveindex()))}var v,w=0,b=y.slidessizesgrid[0];for(v=0;v=y.slidesgrid[v]&&r=y.slidesgrid[v]&&(w=v,b=y.slidesgrid[y.slidesgrid.length-1]-y.slidesgrid[y.slidesgrid.length-2]);var x=(r-y.slidesgrid[w])/b;if(s>y.params.longswipesms){if(!y.params.longswipes)return void y.slideto(y.activeindex);"next"===y.swipedirection&&(x>=y.params.longswipesratio?y.slideto(w+y.params.slidespergroup):y.slideto(w)),"prev"===y.swipedirection&&(x>1-y.params.longswipesratio?y.slideto(w+y.params.slidespergroup):y.slideto(w))}else{if(!y.params.shortswipes)return void y.slideto(y.activeindex);"next"===y.swipedirection&&y.slideto(w+y.params.slidespergroup),"prev"===y.swipedirection&&y.slideto(w)}}},y._slideto=function(e,a){return y.slideto(e,a,!0,!0)},y.slideto=function(e,a,t,s){"undefined"==typeof t&&(t=!0),"undefined"==typeof e&&(e=0),0>e&&(e=0),y.snapindex=math.floor(e/y.params.slidespergroup),y.snapindex>=y.snapgrid.length&&(y.snapindex=y.snapgrid.length-1);var r=-y.snapgrid[y.snapindex];y.params.autoplay&&y.autoplaying&&(s||!y.params.autoplaydisableoninteraction?y.pauseautoplay(a):y.stopautoplay()),y.updateprogress(r);for(var i=0;i=math.floor(100*y.slidesgrid[i])&&(e=i);return!y.params.allowswipetonext&&ry.translate&&r>y.maxtranslate()&&(y.activeindex||0)!==e?!1:("undefined"==typeof a&&(a=y.params.speed),y.previousindex=y.activeindex||0,y.activeindex=e,y.rtl&&-r===y.translate||!y.rtl&&r===y.translate?(y.params.autoheight&&y.updateautoheight(),y.updateclasses(),"slide"!==y.params.effect&&y.setwrappertranslate(r),!1):(y.updateclasses(),y.ontransitionstart(t),0===a?(y.setwrappertranslate(r),y.setwrappertransition(0),y.ontransitionend(t)):(y.setwrappertranslate(r),y.setwrappertransition(a),y.animating||(y.animating=!0,y.wrapper.transitionend(function(){y&&y.ontransitionend(t)}))),!0))},y.ontransitionstart=function(e){"undefined"==typeof e&&(e=!0),y.params.autoheight&&y.updateautoheight(),y.lazy&&y.lazy.ontransitionstart(),e&&(y.emit("ontransitionstart",y),y.activeindex!==y.previousindex&&(y.emit("onslidechangestart",y),y.activeindex>y.previousindex?y.emit("onslidenextstart",y):y.emit("onslideprevstart",y)))},y.ontransitionend=function(e){y.animating=!1,y.setwrappertransition(0),"undefined"==typeof e&&(e=!0),y.lazy&&y.lazy.ontransitionend(),e&&(y.emit("ontransitionend",y),y.activeindex!==y.previousindex&&(y.emit("onslidechangeend",y),y.activeindex>y.previousindex?y.emit("onslidenextend",y):y.emit("onslideprevend",y))),y.params.hashnav&&y.hashnav&&y.hashnav.sethash()},y.slidenext=function(e,a,t){if(y.params.loop){if(y.animating)return!1;y.fixloop();y.container[0].clientleft;return y.slideto(y.activeindex+y.params.slidespergroup,a,e,t)}return y.slideto(y.activeindex+y.params.slidespergroup,a,e,t)},y._slidenext=function(e){return y.slidenext(!0,e,!0)},y.slideprev=function(e,a,t){if(y.params.loop){if(y.animating)return!1;y.fixloop();y.container[0].clientleft;return y.slideto(y.activeindex-1,a,e,t)}return y.slideto(y.activeindex-1,a,e,t)},y._slideprev=function(e){return y.slideprev(!0,e,!0)},y.slidereset=function(e,a,t){return y.slideto(y.activeindex,a,e)},y.setwrappertransition=function(e,a){y.wrapper.transition(e),"slide"!==y.params.effect&&y.effects[y.params.effect]&&y.effects[y.params.effect].settransition(e),y.params.parallax&&y.parallax&&y.parallax.settransition(e),y.params.scrollbar&&y.scrollbar&&y.scrollbar.settransition(e),y.params.control&&y.controller&&y.controller.settransition(e,a),y.emit("onsettransition",y,e)},y.setwrappertranslate=function(e,a,t){var s=0,i=0,n=0;y.ishorizontal()?s=y.rtl?-e:e:i=e,y.params.roundlengths&&(s=r(s),i=r(i)),y.params.virtualtranslate||(y.support.transforms3d?y.wrapper.transform("translate3d("+s+"px, "+i+"px, "+n+"px)"):y.wrapper.transform("translate("+s+"px, "+i+"px)")),y.translate=y.ishorizontal()?s:i;var o,l=y.maxtranslate()-y.mintranslate();o=0===l?0:(e-y.mintranslate())/l,o!==y.progress&&y.updateprogress(e),a&&y.updateactiveindex(),"slide"!==y.params.effect&&y.effects[y.params.effect]&&y.effects[y.params.effect].settranslate(y.translate),y.params.parallax&&y.parallax&&y.parallax.settranslate(y.translate),y.params.scrollbar&&y.scrollbar&&y.scrollbar.settranslate(y.translate),y.params.control&&y.controller&&y.controller.settranslate(y.translate,t),y.emit("onsettranslate",y,y.translate)},y.gettranslate=function(e,a){var t,s,r,i;return"undefined"==typeof a&&(a="x"),y.params.virtualtranslate?y.rtl?-y.translate:y.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])),y.rtl&&s&&(s=-s),s||0)},y.getwrappertranslate=function(e){return"undefined"==typeof e&&(e=y.ishorizontal()?"x":"y"),y.gettranslate(y.wrapper[0],e)},y.observers=[],y.initobservers=function(){if(y.params.observeparents)for(var e=y.container.parents(),a=0;ae.length&&(y.loopedslides=e.length);var t,s=[],r=[];for(e.each(function(t,i){var n=a(this);t=e.length-y.loopedslides&&s.push(i),n.attr("data-swiper-slide-index",t)}),t=0;t=0;t--)y.wrapper.prepend(a(s[t].clonenode(!0)).addclass(y.params.slideduplicateclass))},y.destroyloop=function(){y.wrapper.children("."+y.params.slideclass+"."+y.params.slideduplicateclass).remove(),y.slides.removeattr("data-swiper-slide-index")},y.reloop=function(e){var a=y.activeindex-y.loopedslides;y.destroyloop(),y.createloop(),y.updateslidessize(),e&&y.slideto(a+y.loopedslides,0,!1)},y.fixloop=function(){var e;y.activeindex=2*y.loopedslides||y.activeindex>y.slides.length-2*y.params.slidesperview)&&(e=-y.slides.length+y.activeindex+y.loopedslides,e+=y.loopedslides,y.slideto(e,0,!1,!0))},y.appendslide=function(e){if(y.params.loop&&y.destroyloop(),"object"==typeof e&&e.length)for(var a=0;aa&&t--;t=math.max(t,0)}else a=e,y.slides[a]&&y.slides.eq(a).remove(),t>a&&t--,t=math.max(t,0);y.params.loop&&y.createloop(),y.params.observer&&y.support.observer||y.update(!0),y.params.loop?y.slideto(t+y.loopedslides,0,!1):y.slideto(t,0,!1)},y.removeallslides=function(){for(var e=[],a=0;a'),t.append(d)),0===u.length&&(u=a('
'),t.append(u)),d.length&&(d[0].style.opacity=math.max(-s,0)),u.length&&(u[0].style.opacity=math.max(s,0))}t.transform("translate3d("+l+"px, "+p+"px, 0px) rotatex("+o+"deg) rotatey("+n+"deg)")}},settransition:function(e){if(y.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),y.params.virtualtranslate&&0!==e){var t=!1;y.slides.eq(y.activeindex).transitionend(function(){if(!t&&y&&a(this).hasclass(y.params.slideactiveclass)){t=!0,y.animating=!1;for(var e=["webkittransitionend","transitionend","otransitionend","mstransitionend","mstransitionend"],s=0;s'),y.wrapper.append(e)),e.css({height:y.width+"px"})):(e=y.container.find(".swiper-cube-shadow"),0===e.length&&(e=a('
'),y.container.append(e))));for(var s=0;s=o&&o>-1&&(t=90*s+90*o,y.rtl&&(t=90*-s-90*o)),r.transform(u),y.params.cube.slideshadows){var c=y.ishorizontal()?r.find(".swiper-slide-shadow-left"):r.find(".swiper-slide-shadow-top"),m=y.ishorizontal()?r.find(".swiper-slide-shadow-right"):r.find(".swiper-slide-shadow-bottom");0===c.length&&(c=a('
'),r.append(c)),0===m.length&&(m=a('
'),r.append(m)),c.length&&(c[0].style.opacity=math.max(-o,0)),m.length&&(m[0].style.opacity=math.max(o,0))}}if(y.wrapper.css({"-webkit-transform-origin":"50% 50% -"+y.size/2+"px","-moz-transform-origin":"50% 50% -"+y.size/2+"px","-ms-transform-origin":"50% 50% -"+y.size/2+"px","transform-origin":"50% 50% -"+y.size/2+"px"}),y.params.cube.shadow)if(y.ishorizontal())e.transform("translate3d(0px, "+(y.width/2+y.params.cube.shadowoffset)+"px, "+-y.width/2+"px) rotatex(90deg) rotatez(0deg) scale("+y.params.cube.shadowscale+")");else{var f=math.abs(t)-90*math.floor(math.abs(t)/90),g=1.5-(math.sin(2*f*math.pi/360)/2+math.cos(2*f*math.pi/360)/2),h=y.params.cube.shadowscale,v=y.params.cube.shadowscale/g,w=y.params.cube.shadowoffset;e.transform("scale3d("+h+", 1, "+v+") translate3d(0px, "+(y.height/2+w)+"px, "+-y.height/2/v+"px) rotatex(-90deg)")}var b=y.issafari||y.isuiwebview?-y.size/2:0;y.wrapper.transform("translate3d(0px,0,"+b+"px) rotatex("+(y.ishorizontal()?0:t)+"deg) rotatey("+(y.ishorizontal()?-t:0)+"deg)")},settransition:function(e){y.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),y.params.cube.shadow&&!y.ishorizontal()&&y.container.find(".swiper-cube-shadow").transition(e)}},coverflow:{settranslate:function(){for(var e=y.translate,t=y.ishorizontal()?-e+y.width/2:-e+y.height/2,s=y.ishorizontal()?y.params.coverflow.rotate:-y.params.coverflow.rotate,r=y.params.coverflow.depth,i=0,n=y.slides.length;n>i;i++){var o=y.slides.eq(i),l=y.slidessizesgrid[i],p=o[0].swiperslideoffset,d=(t-p-l/2)/l*y.params.coverflow.modifier,u=y.ishorizontal()?s*d:0,c=y.ishorizontal()?0:s*d,m=-r*math.abs(d),f=y.ishorizontal()?0:y.params.coverflow.stretch*d,g=y.ishorizontal()?y.params.coverflow.stretch*d:0;math.abs(g)<.001&&(g=0),math.abs(f)<.001&&(f=0),math.abs(m)<.001&&(m=0),math.abs(u)<.001&&(u=0),math.abs(c)<.001&&(c=0);var h="translate3d("+g+"px,"+f+"px,"+m+"px) rotatex("+c+"deg) rotatey("+u+"deg)";if(o.transform(h),o[0].style.zindex=-math.abs(math.round(d))+1,y.params.coverflow.slideshadows){var v=y.ishorizontal()?o.find(".swiper-slide-shadow-left"):o.find(".swiper-slide-shadow-top"),w=y.ishorizontal()?o.find(".swiper-slide-shadow-right"):o.find(".swiper-slide-shadow-bottom");0===v.length&&(v=a('
'),o.append(v)),0===w.length&&(w=a('
'),o.append(w)),v.length&&(v[0].style.opacity=d>0?d:0),w.length&&(w[0].style.opacity=-d>0?-d:0)}}if(y.browser.ie){var b=y.wrapper[0].style;b.perspectiveorigin=t+"px 50%"}},settransition:function(e){y.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}}},y.lazy={initialimageloaded:!1,loadimageinslide:function(e,t){if("undefined"!=typeof e&&("undefined"==typeof t&&(t=!0),0!==y.slides.length)){var s=y.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");y.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(),y.params.loop&&t){var a=s.attr("data-swiper-slide-index");if(s.hasclass(y.params.slideduplicateclass)){var o=y.wrapper.children('[data-swiper-slide-index="'+a+'"]:not(.'+y.params.slideduplicateclass+")");y.lazy.loadimageinslide(o.index(),!1)}else{var l=y.wrapper.children("."+y.params.slideduplicateclass+'[data-swiper-slide-index="'+a+'"]');y.lazy.loadimageinslide(l.index(),!1)}}y.emit("onlazyimageready",y,s[0],e[0])}),y.emit("onlazyimageload",y,s[0],e[0])})}},load:function(){var e;if(y.params.watchslidesvisibility)y.wrapper.children("."+y.params.slidevisibleclass).each(function(){y.lazy.loadimageinslide(a(this).index())});else if(y.params.slidesperview>1)for(e=y.activeindex;e1||y.params.lazyloadinginprevnextamount&&y.params.lazyloadinginprevnextamount>1){var t=y.params.lazyloadinginprevnextamount,s=y.params.slidesperview,r=math.min(y.activeindex+s+math.max(t,s),y.slides.length),i=math.max(y.activeindex-math.max(s,t),0);for(e=y.activeindex+y.params.slidesperview;r>e;e++)y.slides[e]&&y.lazy.loadimageinslide(e);for(e=i;e0&&y.lazy.loadimageinslide(n.index());var o=y.wrapper.children("."+y.params.slideprevclass);o.length>0&&y.lazy.loadimageinslide(o.index())}},ontransitionstart:function(){y.params.lazyloading&&(y.params.lazyloadingontransitionstart||!y.params.lazyloadingontransitionstart&&!y.lazy.initialimageloaded)&&y.lazy.load()},ontransitionend:function(){y.params.lazyloading&&!y.params.lazyloadingontransitionstart&&y.lazy.load()}},y.scrollbar={istouched:!1,setdragposition:function(e){var a=y.scrollbar,t=y.ishorizontal()?"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()[y.ishorizontal()?"left":"top"]-a.dragsize/2,r=-y.mintranslate()*a.movedivider,i=-y.maxtranslate()*a.movedivider;r>s?s=r:s>i&&(s=i),s=-s/a.movedivider,y.updateprogress(s),y.setwrappertranslate(s,!0)},dragstart:function(e){var a=y.scrollbar;a.istouched=!0,e.preventdefault(),e.stoppropagation(),a.setdragposition(e),cleartimeout(a.dragtimeout),a.track.transition(0),y.params.scrollbarhide&&a.track.css("opacity",1),y.wrapper.transition(100),a.drag.transition(100),y.emit("onscrollbardragstart",y)},dragmove:function(e){var a=y.scrollbar;a.istouched&&(e.preventdefault?e.preventdefault():e.returnvalue=!1,a.setdragposition(e),y.wrapper.transition(0),a.track.transition(0),a.drag.transition(0),y.emit("onscrollbardragmove",y))},dragend:function(e){var a=y.scrollbar;a.istouched&&(a.istouched=!1,y.params.scrollbarhide&&(cleartimeout(a.dragtimeout),a.dragtimeout=settimeout(function(){a.track.css("opacity",0),a.track.transition(400)},1e3)),y.emit("onscrollbardragend",y),y.params.scrollbarsnaponrelease&&y.slidereset())},enabledraggable:function(){var e=y.scrollbar,t=y.support.touch?e.track:document;a(e.track).on(y.touchevents.start,e.dragstart),a(t).on(y.touchevents.move,e.dragmove),a(t).on(y.touchevents.end,e.dragend)},disabledraggable:function(){var e=y.scrollbar,t=y.support.touch?e.track:document;a(e.track).off(y.touchevents.start,e.dragstart),a(t).off(y.touchevents.move,e.dragmove),a(t).off(y.touchevents.end,e.dragend)},set:function(){if(y.params.scrollbar){var e=y.scrollbar;e.track=a(y.params.scrollbar),y.params.uniquenavelements&&"string"==typeof y.params.scrollbar&&e.track.length>1&&1===y.container.find(y.params.scrollbar).length&&(e.track=y.container.find(y.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=y.ishorizontal()?e.track[0].offsetwidth:e.track[0].offsetheight,e.divider=y.size/y.virtualsize,e.movedivider=e.divider*(e.tracksize/y.size),e.dragsize=e.tracksize*e.divider,y.ishorizontal()?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="",y.params.scrollbarhide&&(e.track[0].style.opacity=0)}},settranslate:function(){if(y.params.scrollbar){var e,a=y.scrollbar,t=(y.translate||0,a.dragsize);e=(a.tracksize-a.dragsize)*y.progress,y.rtl&&y.ishorizontal()?(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),y.ishorizontal()?(y.support.transforms3d?a.drag.transform("translate3d("+e+"px, 0, 0)"):a.drag.transform("translatex("+e+"px)"),a.drag[0].style.width=t+"px"):(y.support.transforms3d?a.drag.transform("translate3d(0px, "+e+"px, 0)"):a.drag.transform("translatey("+e+"px)"),a.drag[0].style.height=t+"px"),y.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){y.params.scrollbar&&y.scrollbar.drag.transition(e)}},y.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){y.controller.spline||(y.controller.spline=y.params.loop?new y.controller.linearspline(y.slidesgrid,e.slidesgrid):new y.controller.linearspline(y.snapgrid,e.snapgrid))},settranslate:function(e,a){function s(a){e=a.rtl&&"horizontal"===a.params.direction?-y.translate:y.translate,"slide"===y.params.controlby&&(y.controller.getinterpolatefunction(a),i=-y.controller.spline.interpolate(-e)),i&&"container"!==y.params.controlby||(r=(a.maxtranslate()-a.mintranslate())/(y.maxtranslate()-y.mintranslate()),i=(e-y.mintranslate())*r+a.mintranslate()),y.params.controlinverse&&(i=a.maxtranslate()-i),a.updateprogress(i),a.setwrappertranslate(i,!1,y),a.updateactiveindex()}var r,i,n=y.params.control;if(y.isarray(n))for(var o=0;ot;t++){var r=y.slides.eq(t),i=r.attr("data-hash");if(i===e&&!r.hasclass(y.params.slideduplicateclass)){var n=r.index();y.slideto(n,a,y.params.runcallbacksoninit,!0)}}}},sethash:function(){y.hashnav.initialized&&y.params.hashnav&&(document.location.hash=y.slides.eq(y.activeindex).attr("data-hash")||"")}},y.disablekeyboardcontrol=function(){y.params.keyboardcontrol=!1,a(document).off("keydown",l)},y.enablekeyboardcontrol=function(){y.params.keyboardcontrol=!0,a(document).on("keydown",l)},y.mousewheel={event:!1,lastscrolltime:(new window.date).gettime()},y.params.mousewheelcontrol){try{new window.wheelevent("wheel"),y.mousewheel.event="wheel"}catch(o){(window.wheelevent||y.container[0]&&"wheel"in y.container[0])&&(y.mousewheel.event="wheel")}!y.mousewheel.event&&window.wheelevent,y.mousewheel.event||void 0===document.onmousewheel||(y.mousewheel.event="mousewheel"),y.mousewheel.event||(y.mousewheel.event="dommousescroll")}y.disablemousewheelcontrol=function(){return y.mousewheel.event?(y.container.off(y.mousewheel.event,p),!0):!1},y.enablemousewheelcontrol=function(){return y.mousewheel.event?(y.container.on(y.mousewheel.event,p),!0):!1},y.parallax={settranslate:function(){y.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){d(this,y.progress)}),y.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);d(this,a)})})},settransition:function(e){"undefined"==typeof e&&(e=y.params.speed),y.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)})}},y._plugins=[];for(var n in y.plugins){var r=y.plugins[n](y,y.params[n]);r&&y._plugins.push(r)}return y.callplugins=function(e){for(var a=0;a'),notify:function(e){var a=y.a11y.liveregion;0!==a.length&&(a.html(""),a.html(e))},init:function(){y.params.nextbutton&&y.nextbutton&&y.nextbutton.length>0&&(y.a11y.makefocusable(y.nextbutton),y.a11y.addrole(y.nextbutton,"button"),y.a11y.addlabel(y.nextbutton,y.params.nextslidemessage)),y.params.prevbutton&&y.prevbutton&&y.prevbutton.length>0&&(y.a11y.makefocusable(y.prevbutton),y.a11y.addrole(y.prevbutton,"button"),y.a11y.addlabel(y.prevbutton,y.params.prevslidemessage)),a(y.container).append(y.a11y.liveregion)},initpagination:function(){y.params.pagination&&y.params.paginationclickable&&y.bullets&&y.bullets.length&&y.bullets.each(function(){var e=a(this);y.a11y.makefocusable(e),y.a11y.addrole(e,"button"),y.a11y.addlabel(e,y.params.paginationbulletmessage.replace(/{{index}}/,e.index()+1))})},destroy:function(){y.a11y.liveregion&&y.a11y.liveregion.length>0&&y.a11y.liveregion.remove()}},y.init=function(){y.params.loop&&y.createloop(),y.updatecontainersize(),y.updateslidessize(),y.updatepagination(),y.params.scrollbar&&y.scrollbar&&(y.scrollbar.set(),y.params.scrollbardraggable&&y.scrollbar.enabledraggable()),"slide"!==y.params.effect&&y.effects[y.params.effect]&&(y.params.loop||y.updateprogress(),y.effects[y.params.effect].settranslate()),y.params.loop?y.slideto(y.params.initialslide+y.loopedslides,0,y.params.runcallbacksoninit):(y.slideto(y.params.initialslide,0,y.params.runcallbacksoninit),0===y.params.initialslide&&(y.parallax&&y.params.parallax&&y.parallax.settranslate(),y.lazy&&y.params.lazyloading&&(y.lazy.load(),y.lazy.initialimageloaded=!0))),y.attachevents(),y.params.observer&&y.support.observer&&y.initobservers(),y.params.preloadimages&&!y.params.lazyloading&&y.preloadimages(),y.params.autoplay&&y.startautoplay(),y.params.keyboardcontrol&&y.enablekeyboardcontrol&&y.enablekeyboardcontrol(),y.params.mousewheelcontrol&&y.enablemousewheelcontrol&&y.enablemousewheelcontrol(),y.params.hashnav&&y.hashnav&&y.hashnav.init(),y.params.a11y&&y.a11y&&y.a11y.init(),y.emit("oninit",y)},y.cleanupstyles=function(){y.container.removeclass(y.classnames.join(" ")).removeattr("style"),y.wrapper.removeattr("style"),y.slides&&y.slides.length&&y.slides.removeclass([y.params.slidevisibleclass,y.params.slideactiveclass,y.params.slidenextclass,y.params.slideprevclass].join(" ")).removeattr("style").removeattr("data-swiper-column").removeattr("data-swiper-row"),y.paginationcontainer&&y.paginationcontainer.length&&y.paginationcontainer.removeclass(y.params.paginationhiddenclass),y.bullets&&y.bullets.length&&y.bullets.removeclass(y.params.bulletactiveclass),y.params.prevbutton&&a(y.params.prevbutton).removeclass(y.params.buttondisabledclass),y.params.nextbutton&&a(y.params.nextbutton).removeclass(y.params.buttondisabledclass),y.params.scrollbar&&y.scrollbar&&(y.scrollbar.track&&y.scrollbar.track.length&&y.scrollbar.track.removeattr("style"),y.scrollbar.drag&&y.scrollbar.drag.length&&y.scrollbar.drag.removeattr("style"))},y.destroy=function(e,a){y.detachevents(),y.stopautoplay(),y.params.scrollbar&&y.scrollbar&&y.params.scrollbardraggable&&y.scrollbar.disabledraggable(),y.params.loop&&y.destroyloop(),a&&y.cleanupstyles(),y.disconnectobservers(),y.params.keyboardcontrol&&y.disablekeyboardcontrol&&y.disablekeyboardcontrol(),y.params.mousewheelcontrol&&y.disablemousewheelcontrol&&y.disablemousewheelcontrol(),y.params.a11y&&y.a11y&&y.a11y.destroy(),y.emit("ondestroy"),e!==!1&&(y=null)},y.init(),y}};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;t0x3400&&code<0x9fc3)||(code>0xf900&&code<0xfa6a);if(!ischinese){result+=letter;continue}index=src.indexof(letter);if(index!==-1){result+=des.charat(index)}else{result+=letter}}return result}function tranattr(element,attr,tot){var i,attrvalue;if(attr instanceof array){for(i=0;iprevious',nextarrow:'',autoplay:!1,autoplayspeed:3e3,centermode:!1,centerpadding:"50px",cssease:"ease",custompaging:function(b,c){return a('',neko_nextarrow=''; !function(a,b,c){"use strict";!function(b){"function"==typeof define&&define.amd?define(["jquery"],b):"object"==typeof exports?module.exports=b(require("jquery")):b(a.jquery)}(function(d){function e(a,b){return this.$element=d(a),b&&("string"===d.type(b.delay)||"number"===d.type(b.delay))&&(b.delay={show:b.delay,hide:b.delay}),this.options=d.extend({},i,b),this._defaults=i,this._name=f,this._targetclick=!1,this.init(),k.push(this.$element),this}var f="webuipopover",g="webui-popover",h="webui.popover",i={placement:"auto",container:null,width:"auto",height:"auto",trigger:"click",style:"",selector:!1,delay:{show:null,hide:300},async:{type:"get",before:null,success:null,error:null},cache:!0,multi:!1,arrow:!0,title:"",content:"",closeable:!1,padding:!0,url:"",type:"html",direction:"",animation:null,template:'

 

',backdrop:!1,dismissible:!0,onshow:null,onhide:null,abortxhr:!0,autohide:!1,offsettop:0,offsetleft:0,iframeoptions:{frameborder:"0",allowtransparency:"true",id:"",name:"",scrolling:"",onload:"",height:"",width:""},hideempty:!1},j=g+"-rtl",k=[],l=d('
'),m=0,n=!1,o=-2e3,p=d(b),q=function(a,b){return isnan(a)?b||0:number(a)},r=function(a){return a.data("plugin_"+f)},s=function(){for(var a=null,b=0;b").attr("src",this.geturl()),b=this;return d.each(this._defaults.iframeoptions,function(c){"undefined"!=typeof b.options.iframeoptions[c]&&a.attr(c,b.options.iframeoptions[c])}),a},getcontent:function(){if(this.geturl())switch(this.options.type){case"iframe":this.content=this.getiframe();break;case"html":try{this.content=d(this.geturl()),this.content.is(":visible")||this.content.show()}catch(a){throw new error("unable to get popover content. invalid selector specified.")}}else if(!this.content){var b="";if(b=d.isfunction(this.options.content)?this.options.content.apply(this.$element[0],[this]):this.options.content,this.content=this.$element.attr("data-content")||b,!this.content){var c=this.$element.next();c&&c.hasclass(g+"-content")&&(this.content=c)}}return this.content},setcontent:function(a){var b=this.gettarget(),c=this.getcontentelement();"string"==typeof a?c.html(a):a instanceof d&&(c.html(""),this.options.cache?a.removeclass(g+"-content").appendto(c):a.clone(!0,!0).removeclass(g+"-content").appendto(c)),this.$target=b},isasync:function(){return"async"===this.options.type},setcontentasync:function(a){var b=this;this.xhr||(this.xhr=d.ajax({url:this.geturl(),type:this.options.async.type,cache:this.getcache(),beforesend:function(a,c){b.options.async.before&&b.options.async.before(b,a,c)},success:function(c){b.bindbodyevents(),a&&d.isfunction(a)?b.content=a.apply(b.$element[0],[c]):b.content=c,b.setcontent(b.content);var e=b.getcontentelement();e.removeattr("style"),b.displaycontent(),b.options.async.success&&b.options.async.success(b,c)},complete:function(){b.xhr=null},error:function(a,c){b.options.async.error&&b.options.async.error(b,a,c)}}))},bindbodyevents:function(){n||(this.options.dismissible&&"click"===this.gettrigger()?u?p.off("touchstart.webui-popover").on("touchstart.webui-popover",d.proxy(this.bodytouchstarthandler,this)):(p.off("keyup.webui-popover").on("keyup.webui-popover",d.proxy(this.escapehandler,this)),p.off("click.webui-popover").on("click.webui-popover",d.proxy(this.bodyclickhandler,this))):"hover"===this.gettrigger()&&p.off("touchend.webui-popover").on("touchend.webui-popover",d.proxy(this.bodyclickhandler,this)))},mouseenterhandler:function(a){var b=this;a&&this.options.selector&&(b=this.delegate(a.currenttarget)),b._timeout&&cleartimeout(b._timeout),b._entertimeout=settimeout(function(){b.gettarget().is(":visible")||b.show()},this.getdelayshow())},mouseleavehandler:function(){var a=this;cleartimeout(a._entertimeout),a._timeout=settimeout(function(){a.hide()},this.gethidedelay())},escapehandler:function(a){27===a.keycode&&this.hideall()},bodytouchstarthandler:function(a){var b=this,c=d(a.currenttarget);c.on("touchend",function(a){b.bodyclickhandler(a),c.off("touchend")}),c.on("touchmove",function(){c.off("touchend")})},bodyclickhandler:function(a){n=!0;for(var b=!0,c=0;c=f&&j.x<=h&&j.y>=g&&j.y<=i;if(l){b=!1;break}}}b&&s()},inittargetevents:function(){"hover"===this.gettrigger()&&this.$target.off("mouseenter mouseleave").on("mouseenter",d.proxy(this.mouseenterhandler,this)).on("mouseleave",d.proxy(this.mouseleavehandler,this)),this.$target.find(".close").off("click").on("click",d.proxy(this.hide,this,!0))},getplacement:function(a){var b,c=this.options.container,d=c.innerwidth(),e=c.innerheight(),f=c.scrolltop(),g=c.scrollleft(),h=math.max(0,a.left-g),i=math.max(0,a.top-f);b="function"==typeof this.options.placement?this.options.placement.call(this,this.gettarget()[0],this.$element[0]):this.$element.data("placement")||this.options.placement;var j="horizontal"===b,k="vertical"===b,l="auto"===b||j||k;return l?b=d/3>h?e/3>i?j?"right-bottom":"bottom-right":2*e/3>i?k?e/2>=i?"bottom-right":"top-right":"right":j?"right-top":"top-right":2*d/3>h?e/3>i?j?d/2>=h?"right-bottom":"left-bottom":"bottom":2*e/3>i?j?d/2>=h?"right":"left":e/2>=i?"bottom":"top":j?d/2>=h?"right-top":"left-top":"top":e/3>i?j?"left-bottom":"bottom-left":2*e/3>i?k?e/2>=i?"bottom-left":"top-left":"left":j?"left-top":"top-left":"auto-top"===b?b=d/3>h?"top-right":2*d/3>h?"top":"top-left":"auto-bottom"===b?b=d/3>h?"bottom-right":2*d/3>h?"bottom":"bottom-left":"auto-left"===b?b=e/3>i?"left-top":2*e/3>i?"left":"left-bottom":"auto-right"===b&&(b=e/3>i?"right-bottom":2*e/3>i?"right":"right-top"),b},getelementposition:function(){var a=this.$element[0].getboundingclientrect(),c=this.options.container,e=c.css("position");if(c.is(b.body)||"static"===e)return d.extend({},this.$element.offset(),{width:this.$element[0].offsetwidth||a.width,height:this.$element[0].offsetheight||a.height});if("fixed"===e){var f=c[0].getboundingclientrect();return{top:a.top-f.top+c.scrolltop(),left:a.left-f.left+c.scrollleft(),width:a.width,height:a.height}}return"relative"===e?{top:this.$element.offset().top-c.offset().top,left:this.$element.offset().left-c.offset().left,width:this.$element[0].offsetwidth||a.width,height:this.$element[0].offsetheight||a.height}:void 0},gettargetpositin:function(a,c,d,e){var f=a,g=this.options.container,h=this.$element.outerwidth(),i=this.$element.outerheight(),j=b.documentelement.scrolltop+g.scrolltop(),k=b.documentelement.scrollleft+g.scrollleft(),l={},m=null,n=this.options.arrow?20:0,p=10,q=n+p>h?n:0,r=n+p>i?n:0,s=0,t=b.documentelement.clientheight+j,u=b.documentelement.clientwidth+k,v=f.left+f.width/2-q>0,w=f.left+f.width/2+q0,y=f.top+f.height/2+re;e++){var i=h[e];t[i]=0}return t}function n(t){var e=getcomputedstyle(t);return e||a("style returned "+e+". are you running this code in a hidden iframe on firefox? see http://bit.ly/getsizebug1"),e}function o(){if(!d){d=!0;var e=document.createelement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderstyle="solid",e.style.borderwidth="1px 2px 3px 4px",e.style.boxsizing="border-box";var i=document.body||document.documentelement;i.appendchild(e);var o=n(e);r.isboxsizeouter=s=200==t(o.width),i.removechild(e)}}function r(e){if(o(),"string"==typeof e&&(e=document.queryselector(e)),e&&"object"==typeof e&&e.nodetype){var r=n(e);if("none"==r.display)return i();var a={};a.width=e.offsetwidth,a.height=e.offsetheight;for(var d=a.isborderbox="border-box"==r.boxsizing,l=0;u>l;l++){var c=h[l],f=r[c],m=parsefloat(f);a[c]=isnan(m)?0:m}var p=a.paddingleft+a.paddingright,g=a.paddingtop+a.paddingbottom,y=a.marginleft+a.marginright,v=a.margintop+a.marginbottom,_=a.borderleftwidth+a.borderrightwidth,e=a.bordertopwidth+a.borderbottomwidth,z=d&&s,b=t(r.width);b!==!1&&(a.width=b+(z?0:p+_));var x=t(r.height);return x!==!1&&(a.height=x+(z?0:g+e)),a.innerwidth=a.width-(p+_),a.innerheight=a.height-(g+e),a.outerwidth=a.width+y,a.outerheight=a.height+v,a}}var s,a="undefined"==typeof console?e:function(t){console.error(t)},h=["paddingleft","paddingright","paddingtop","paddingbottom","marginleft","marginright","margintop","marginbottom","borderleftwidth","borderrightwidth","bordertopwidth","borderbottomwidth"],u=h.length,d=!1;return r}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesselector=e()}(window,function(){"use strict";var t=function(){var t=element.prototype;if(t.matches)return"matches";if(t.matchesselector)return"matchesselector";for(var e=["webkit","moz","ms","o"],i=0;is?"round":"floor";r=math[a](r),this.cols=math.max(r,1)},i.prototype.getcontainerwidth=function(){var t=this._getoption("fitwidth"),i=t?this.element.parentnode:this.element,n=e(i);this.containerwidth=n&&n.innerwidth},i.prototype._getitemlayoutposition=function(t){t.getsize();var e=t.size.outerwidth%this.columnwidth,i=e&&1>e?"round":"ceil",n=math[i](t.size.outerwidth/this.columnwidth);n=math.min(n,this.cols);for(var o=this._getcolgroup(n),r=math.min.apply(math,o),s=o.indexof(r),a={x:this.columnwidth*s,y:r},h=r+t.size.outerheight,u=this.cols+1-o.length,d=0;u>d;d++)this.colys[s+d]=h;return a},i.prototype._getcolgroup=function(t){if(2>t)return this.colys;for(var e=[],i=this.cols+1-t,n=0;i>n;n++){var o=this.colys.slice(n,n+t);e[n]=math.max.apply(math,o)}return e},i.prototype._managestamp=function(t){var i=e(t),n=this._getelementoffset(t),o=this._getoption("originleft"),r=o?n.left:n.right,s=r+i.outerwidth,a=math.floor(r/this.columnwidth);a=math.max(0,a);var h=math.floor(s/this.columnwidth);h-=s%this.columnwidth?0:1,h=math.min(this.cols-1,h);for(var u=this._getoption("origintop"),d=(u?n.top:n.bottom)+i.outerheight,l=a;h>=l;l++)this.colys[l]=math.max(d,this.colys[l])},i.prototype._getcontainersize=function(){this.maxy=math.max.apply(math,this.colys);var t={height:this.maxy};return this._getoption("fitwidth")&&(t.width=this._getcontainerfitwidth()),t},i.prototype._getcontainerfitwidth=function(){for(var t=0,e=this.cols;--e&&0===this.colys[e];)t++;return(this.cols-t)*this.columnwidth-this.gutter},i.prototype.needsresizelayout=function(){var t=this.containerwidth;return this.getcontainerwidth(),t!=this.containerwidth},i}); !function(a,b){"object"==typeof exports?module.exports=b(require("spin.js")):"function"==typeof define&&define.amd?define(["spin"],b):a.ladda=b(a.spinner)}(this,function(a){"use strict";function b(a){if("undefined"==typeof a)return void console.warn("ladda button target must be defined.");if(/ladda-button/i.test(a.classname)||(a.classname+=" ladda-button"),a.hasattribute("data-style")||a.setattribute("data-style","expand-right"),!a.queryselector(".ladda-label")){var b=document.createelement("span");b.classname="ladda-label",i(a,b)}var c,d=a.queryselector(".ladda-spinner");d||(d=document.createelement("span"),d.classname="ladda-spinner"),a.appendchild(d);var e,f={start:function(){return c||(c=g(a)),a.setattribute("disabled",""),a.setattribute("data-loading",""),cleartimeout(e),c.spin(d),this.setprogress(0),this},startafter:function(a){return cleartimeout(e),e=settimeout(function(){f.start()},a),this},stop:function(){return a.removeattribute("disabled"),a.removeattribute("data-loading"),cleartimeout(e),c&&(e=settimeout(function(){c.stop()},1e3)),this},toggle:function(){return this.isloading()?this.stop():this.start(),this},setprogress:function(b){b=math.max(math.min(b,1),0);var c=a.queryselector(".ladda-progress");0===b&&c&&c.parentnode?c.parentnode.removechild(c):(c||(c=document.createelement("div"),c.classname="ladda-progress",a.appendchild(c)),c.style.width=(b||0)*a.offsetwidth+"px")},enable:function(){return this.stop(),this},disable:function(){return this.stop(),a.setattribute("disabled",""),this},isloading:function(){return a.hasattribute("data-loading")},remove:function(){cleartimeout(e),a.removeattribute("disabled",""),a.removeattribute("data-loading",""),c&&(c.stop(),c=null);for(var b=0,d=j.length;d>b;b++)if(f===j[b]){j.splice(b,1);break}}};return j.push(f),f}function c(a,b){for(;a.parentnode&&a.tagname!==b;)a=a.parentnode;return b===a.tagname?a:void 0}function d(a){for(var b=["input","textarea","select"],c=[],d=0;dg;g++)!function(){var a=f[g];if("function"==typeof a.addeventlistener){var h=b(a),i=-1;a.addeventlistener("click",function(b){var f=!0,g=c(a,"form");if("undefined"!=typeof g)if("function"==typeof g.checkvalidity)f=g.checkvalidity();else for(var j=d(g),k=0;ka;a++)j[a].stop()}function g(b){var c,d,e=b.offsetheight;0===e&&(e=parsefloat(window.getcomputedstyle(b).height)),e>32&&(e*=.8),b.hasattribute("data-spinner-size")&&(e=parseint(b.getattribute("data-spinner-size"),10)),b.hasattribute("data-spinner-color")&&(c=b.getattribute("data-spinner-color")),b.hasattribute("data-spinner-lines")&&(d=parseint(b.getattribute("data-spinner-lines"),10));var f=.2*e,g=.6*f,h=7>f?2:3;return new a({color:c||"#fff",lines:d||12,radius:f,length:g,width:h,zindex:"auto",top:"auto",left:"auto",classname:""})}function h(a){for(var b=[],c=0;c',barclass:null,handleclass:null,disabledclass:"is-disabled",draggingclass:"is-dragging",hoveringclass:"is-hovering",direction:"vertical",barlength:null,handlelength:null,minhandlelength:30,maxhandlelength:null,mousedrag:!0,touchdrag:!0,pointerdrag:!0,clickmove:!0,clickmovestep:.3,mousewheel:!0,mousewheelspeed:50,keyboard:!0,usecsstransforms3d:!0,usecsstransforms:!0,usecsstransitions:!0,duration:"500",easing:"ease"},d=function(t,e,n,i){var a=function(t,e){return 1-3*e+3*t},s=function(t,e){return 3*e-6*t},o=function(t){return 3*t},r=function(t,e,n){return((a(e,n)*t+s(e,n))*t+o(e))*t},h=function(t,e,n){return 3*a(e,n)*t*t+2*s(e,n)*t+o(e)},l=function(e){for(var i=e,a=0;a<4;++a){var s=h(i,t,n);if(0===s)return i;var o=r(i,t,n)-e;i-=o/s}return i};return t===e&&n===i?{css:"linear",fn:function(t){return t}}:{css:"cubic-bezier("+t+","+e+","+n+","+i+")",fn:function(t){return r(l(t),e,i)}}},c={ease:d(.25,.1,.25,1),linear:d(0,0,1,1),"ease-in":d(.42,0,1,1),"ease-out":d(0,0,.58,1),"ease-in-out":d(.42,0,.58,1)};date.now||(date.now=function(){return(new date).gettime()});for(var f=["webkit","moz"],g=0;g").get(0).style,a={csstransforms:function(){return boolean(s("transform"))},csstransforms3d:function(){return boolean(s("perspective"))},csstransitions:function(){return boolean(s("transition"))},cssanimations:function(){return boolean(s("animation"))}},s=function(t,e){var a=!1,s=t.charat(0).touppercase()+t.slice(1);return void 0!==i[t]&&(a=t),a||r.default.each(n,function(t,e){return void 0===i[e+s]||(a="-"+e.tolowercase()+"-"+s,!1)}),e?a:!!a},o=function(t){return s(t,!0)};a.csstransitions()&&(t.transition=new string(o("transition")),t.transition.end=e.transition.end[t.transition]),a.cssanimations()&&(t.animation=new string(o("animation")),t.animation.end=e.animation.end[t.animation]),a.csstransforms()&&(t.transform=new string(o("transform")),t.transform3d=a.csstransforms3d()),"ontouchstart"in window||window.documenttouch&&document instanceof window.documenttouch?t.touch=!0:t.touch=!1,window.pointerevent||window.mspointerevent?t.pointer=!0:t.pointer=!1,t.prefixpointerevent=function(t){return window.mspointerevent?"mspointer"+t.charat(9).touppercase()+t.substr(10):t}}(p);var m="asscrollbar",b=function(){function t(e){var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];n(this,t),this.$bar=(0,r.default)(e),i=this.options=r.default.extend({},u,i,this.$bar.data("options")||{}),e.direction=this.options.direction,this.classes={directionclass:i.namespace+"-"+i.direction,barclass:i.barclass?i.barclass:i.namespace,handleclass:i.handleclass?i.handleclass:i.namespace+"-handle"},"vertical"===this.options.direction?this.attributes={axis:"y",position:"top",length:"height",clientlength:"clientheight"}:"horizontal"===this.options.direction&&(this.attributes={axis:"x",position:"left",length:"width",clientlength:"clientwidth"}),this._states={},this._drag={time:null,pointer:null},this._frameid=null,this.handleposition=0,this.easing=c[this.options.easing]||c.ease,this.init()}return l(t,[{key:"init",value:function(){var t=this.options;this.$handle=this.$bar.find(this.options.handleselector),0===this.$handle.length?this.$handle=(0,r.default)(t.handletemplate.replace(/\{\{handle\}\}/g,this.classes.handleclass)).appendto(this.$bar):this.$handle.addclass(this.classes.handleclass),this.$bar.addclass(this.classes.barclass).addclass(this.classes.directionclass).attr("draggable",!1),t.skin&&this.$bar.addclass(t.skin),null!==t.barlength&&this.setbarlength(t.barlength),null!==t.handlelength&&this.sethandlelength(t.handlelength),this.updatelength(),this.bindevents(),this.trigger("ready")}},{key:"trigger",value:function(t){for(var e=arguments.length,n=array(e>1?e-1:0),i=1;i0}},{key:"enter",value:function(t){void 0===this._states[t]&&(this._states[t]=0),this._states[t]++}},{key:"leave",value:function(t){this._states[t]--}},{key:"eventname",value:function(t){if("string"!=typeof t||""===t)return"."+this.options.namespace;t=t.split(" ");for(var e=t.length,n=0;n0||(i>=t.barlength&&n<0||(i-=t.options.mousewheelspeed*n,t.move(i,!0),!1))}),this.$bar.on(this.eventname("mouseenter"),function(){t.$bar.addclass(t.options.hoveringclass),t.enter("hovering"),t.trigger("hover")}),this.$bar.on(this.eventname("mouseleave"),function(){t.$bar.removeclass(t.options.hoveringclass),t.is("hovering")&&(t.leave("hovering"),t.trigger("hovered"))}),this.options.keyboard&&(0,r.default)(document).on(this.eventname("keydown"),function(e){if((!e.isdefaultprevented||!e.isdefaultprevented())&&t.is("hovering")){for(var n=document.activeelement;n.shadowroot;)n=n.shadowroot.activeelement;if(!(0,r.default)(n).is(":input,select,option,[contenteditable]")){var i=0,a=null,s=40,o=35,h=36,l=37,u=34,d=33,c=39,f=32,g=38,v=63233,p=63275,m=63273,b=63234,y=63277,w=63276,k=63235,c=63232;switch(e.which){case l:case c:i=-30;break;case g:case v:i=-30;break;case c:case b:i=30;break;case s:case k:i=30;break;case d:case w:i=-90;break;case f:case u:case y:i=-90;break;case o:case p:a="100%";break;case h:case m:a=0;break;default:return}(i||null!==a)&&(i?t.moveby(i,!0):null!==a&&t.moveto(a,!0),e.preventdefault())}}})}},{key:"onclick",value:function(t){var e=3;if(t.which!==e&&t.target!==this.$handle[0]){this._drag.time=(new date).gettime(),this._drag.pointer=this.pointer(t);var n=this.$handle.offset(),i=this.distance({x:n.left,y:n.top},this._drag.pointer),a=1;i>0?i-=this.handlelength:(i=math.abs(i),a=-1),i>this.barlength*this.options.clickmovestep&&(i=this.barlength*this.options.clickmovestep),this.moveby(a*i,!0)}}},{key:"ondragstart",value:function(t){var e=this,n=3;if(t.which!==n){this.$bar.addclass(this.options.draggingclass),this._drag.time=(new date).gettime(),this._drag.pointer=this.pointer(t);var i=function(){e.enter("dragging"),e.trigger("drag")};this.options.mousedrag&&((0,r.default)(document).on(this.eventname("mouseup"),r.default.proxy(this.ondragend,this)),(0,r.default)(document).one(this.eventname("mousemove"),r.default.proxy(function(){(0,r.default)(document).on(e.eventname("mousemove"),r.default.proxy(e.ondragmove,e)),i()},this))),this.options.touchdrag&&p.touch&&((0,r.default)(document).on(this.eventname("touchend"),r.default.proxy(this.ondragend,this)),(0,r.default)(document).one(this.eventname("touchmove"),r.default.proxy(function(){(0,r.default)(document).on(e.eventname("touchmove"),r.default.proxy(e.ondragmove,e)),i()},this))),this.options.pointerdrag&&p.pointer&&((0,r.default)(document).on(this.eventname(p.prefixpointerevent("pointerup")),r.default.proxy(this.ondragend,this)),(0,r.default)(document).one(this.eventname(p.prefixpointerevent("pointermove")),r.default.proxy(function(){(0,r.default)(document).on(e.eventname(p.prefixpointerevent("pointermove")),r.default.proxy(e.ondragmove,e)),i()},this))),(0,r.default)(document).on(this.eventname("blur"),r.default.proxy(this.ondragend,this))}}},{key:"ondragmove",value:function(t){var e=this.distance(this._drag.pointer,this.pointer(t));this.is("dragging")&&(t.preventdefault(),this.moveby(e,!0))}},{key:"ondragend",value:function(){(0,r.default)(document).off(this.eventname("mousemove mouseup touchmove touchend pointermove pointerup mspointermove mspointerup blur")),this.$bar.removeclass(this.options.draggingclass),this.handleposition=this.gethandleposition(),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))}},{key:"pointer",value:function(t){var e={x:null,y:null};return t=t.originalevent||t||window.event,t=t.touches&&t.touches.length?t.touches[0]:t.changedtouches&&t.changedtouches.length?t.changedtouches[0]:t,t.pagex?(e.x=t.pagex,e.y=t.pagey):(e.x=t.clientx,e.y=t.clienty),e}},{key:"distance",value:function(t,e){return"vertical"===this.options.direction?e.y-t.y:e.x-t.x}},{key:"setbarlength",value:function(t,e){"undefined"!=typeof t&&this.$bar.css(this.attributes.length,t),e!==!1&&this.updatelength()}},{key:"sethandlelength",value:function(t,e){"undefined"!=typeof t&&(tthis.options.maxhandlelength&&(t=this.options.maxhandlelength),this.$handle.css(this.attributes.length,t),e!==!1&&this.updatelength(t))}},{key:"updatelength",value:function(t,e){"undefined"!=typeof t?this.handlelength=t:this.handlelength=this.gethandlelenght(),"undefined"!=typeof e?this.barlength=e:this.barlength=this.getbarlength()}},{key:"getbarlength",value:function(){return this.$bar[0][this.attributes.clientlength]}},{key:"gethandlelenght",value:function(){return this.$handle[0][this.attributes.clientlength]}},{key:"gethandleposition",value:function(){var t=void 0;if(this.options.usecsstransforms&&p.transform){if(t=s(this.$handle.css(p.transform)),!t)return 0;t="x"===this.attributes.axis?t[12]||t[4]:t[13]||t[5]}else t=this.$handle.css(this.attributes.position);return parsefloat(t.replace("px",""))}},{key:"makehandlepositionstyle",value:function(t){var e=void 0,n="0",i="0";this.options.usecsstransforms&&p.transform?("x"===this.attributes.axis?n=t+"px":i=t+"px",e=p.transform.tostring(),t=this.options.usecsstransforms3d&&p.transform3d?"translate3d("+n+","+i+",0)":"translate("+n+","+i+")"):e=this.attributes.position;var a={};return a[e]=t,a}},{key:"sethandleposition",value:function(t){var e=this.makehandlepositionstyle(t);this.$handle.css(e),this.is("dragging")||(this.handleposition=parsefloat(t))}},{key:"moveto",value:function(t,e,n){var s="undefined"==typeof t?"undefined":h(t);"string"===s&&(i(t)&&(t=a(t)*(this.barlength-this.handlelength)),t=parsefloat(t),s="number"),"number"===s&&this.move(t,e,n)}},{key:"moveby",value:function(t,e,n){var s="undefined"==typeof t?"undefined":h(t);"string"===s&&(i(t)&&(t=a(t)*(this.barlength-this.handlelength)),t=parsefloat(t),s="number"),"number"===s&&this.move(this.handleposition+t,e,n)}},{key:"move",value:function(t,e,n){"number"!=typeof t||this.is("disabled")||(t<0?t=0:t+this.handlelength>this.barlength&&(t=this.barlength-this.handlelength),this.is("dragging")||n===!0?(this.sethandleposition(t),e&&this.trigger("change",t/(this.barlength-this.handlelength))):this.domove(t,this.options.duration,this.options.easing,e))}},{key:"domove",value:function(t,e,n,i){var a=this,s=void 0;this.enter("moving"),e=e?e:this.options.duration,n=n?n:this.options.easing;var r=this.makehandlepositionstyle(t);for(s in r)if({}.hasownproperty.call(r,s))break;this.options.usecsstransitions&&p.transition?(this.enter("transition"),this.preparetransition(s,e,n),this.$handle.one(p.transition.end,function(){a.$handle.css(p.transition,""),i&&a.trigger("change",t/(a.barlength-a.handlelength)),a.leave("transition"),a.leave("moving")}),this.sethandleposition(t)):!function(){a.enter("animating");var e=o(),n=a.gethandleposition(),s=t,r=function t(o){var r=(o-e)/a.options.duration;r>1&&(r=1),r=a.easing.fn(r);var h=10,l=parsefloat(n+r*(s-n),h);a.sethandleposition(l),i&&a.trigger("change",l/(a.barlength-a.handlelength)),1===r?(window.cancelanimationframe(a._frameid),a._frameid=null,a.leave("animating"),a.leave("moving")):a._frameid=window.requestanimationframe(t)};a._frameid=window.requestanimationframe(r)}()}},{key:"preparetransition",value:function(t,e,n,i){var a=[];t&&a.push(t),e&&(r.default.isnumeric(e)&&(e+="ms"),a.push(e)),n?a.push(n):a.push(this.easing.css),i&&a.push(i),this.$handle.css(p.transition,a.join(" "))}},{key:"enable",value:function(){this._states.disabled=0,this.$bar.removeclass(this.options.disabledclass),this.trigger("enable")}},{key:"disable",value:function(){this._states.disabled=1,this.$bar.addclass(this.options.disabledclass),this.trigger("disable")}},{key:"destroy",value:function(){this.$handle.removeclass(this.classes.handleclass),this.$bar.removeclass(this.classes.barclass).removeclass(this.classes.directionclass).attr("draggable",null),this.options.skin&&this.$bar.removeclass(this.options.skin),this.$bar.off(this.eventname()),this.$handle.off(this.eventname()),this.trigger("destroy")}}],[{key:"registereasing",value:function(t){for(var e=arguments.length,n=array(e>1?e-1:0),i=1;i1?n-1:0),a=1;a1&&(t=1),100*parsefloat(t).tofixed(4)+"%"}function a(t){return parsefloat(t.slice(0,-1)/100,10)}var r=e(t),l="function"==typeof symbol&&"symbol"==typeof symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof symbol&&t.constructor===symbol&&t!==symbol.prototype?"symbol":typeof t},h=function(){function t(t,e){for(var i=0;i23)}(),u="asscrollable",d=0,v=function(){function t(e,s){i(this,t),this.$element=(0,r.default)(e),s=this.options=r.default.extend({},c,s||{},this.$element.data("options")||{}),this.classes={wrap:s.namespace,content:s.namespace+"-content",container:s.namespace+"-container",bar:s.namespace+"-bar",barhide:s.namespace+"-bar-hide",skin:s.skin},this.attributes={vertical:{axis:"y",overflow:"overflow-y",scroll:"scrolltop",scrolllength:"scrollheight",pageoffset:"pageyoffset",ffpadding:"padding-right",length:"height",clientlength:"clientheight",offset:"offsetheight",crosslength:"width",crossclientlength:"clientwidth",crossoffset:"offsetwidth"},horizontal:{axis:"x",overflow:"overflow-x",scroll:"scrollleft",scrolllength:"scrollwidth",pageoffset:"pagexoffset",ffpadding:"padding-bottom",length:"width",clientlength:"clientwidth",offset:"offsetwidth",crosslength:"height",crossclientlength:"clientheight",crossoffset:"offsetheight"}},this._states={},this.horizontal=null,this.vertical=null,this.$bar=null,this._frameid=null,this._timeoutid=null,this.instanceid=++d,this.easing=r.default.asscrollbar.geteasing(this.options.easing)||r.default.asscrollbar.geteasing("ease"),this.init()}return h(t,[{key:"init",value:function(){var t=this.$element.css("position");switch(this.options.containerselector?(this.$container=this.$element.find(this.options.containerselector),this.$wrap=this.$element,"static"===t&&this.$wrap.css("position","relative")):(this.$container=this.$element.wrap("
"),this.$wrap=this.$container.parent(),this.$wrap.height(this.$element.height()),"static"!==t?this.$wrap.css("position",t):this.$wrap.css("position","relative")),this.options.contentselector?this.$content=this.$container.find(this.options.contentselector):(this.$content=this.$container.wrap("
"),this.$container=this.$content.parent()),this.options.direction){case"vertical":this.vertical=!0;break;case"horizontal":this.horizontal=!0;break;case"both":this.horizontal=!0,this.vertical=!0;break;case"auto":var e=this.$element.css("overflow-x"),i=this.$element.css("overflow-y");"scroll"!==e&&"auto"!==e||(this.horizontal=!0),"scroll"!==i&&"auto"!==i||(this.vertical=!0)}(this.vertical||this.horizontal)&&(this.$wrap.addclass(this.classes.wrap),this.$container.addclass(this.classes.container),this.$content.addclass(this.classes.content),this.options.skin&&this.$wrap.addclass(this.classes.skin),this.$wrap.addclass(this.options.enabledclass),this.vertical&&(this.$wrap.addclass(this.classes.wrap+"-vertical"),this.initlayout("vertical"),this.createbar("vertical")),this.horizontal&&(this.$wrap.addclass(this.classes.wrap+"-horizontal"),this.initlayout("horizontal"),this.createbar("horizontal")),this.bindevents(),this.trigger("ready"))}},{key:"bindevents",value:function(){var t=this;if(this.options.responsive&&((0,r.default)(window).on(this.eventnamewithid("orientationchange"),function(){t.update()}),(0,r.default)(window).on(this.eventnamewithid("resize"),this.throttle(function(){t.update()},this.options.throttle))),this.horizontal||this.vertical){var e=this;this.$wrap.on(this.eventname("mouseenter"),function(){e.$wrap.addclass(t.options.hoveringclass),e.enter("hovering"),e.trigger("hover")}),this.$wrap.on(this.eventname("mouseleave"),function(){e.$wrap.removeclass(t.options.hoveringclass),e.is("hovering")&&(e.leave("hovering"),e.trigger("hovered"))}),this.options.showonhover&&(this.options.showonbarhover?this.$bar.on("asscrollbar::hover",function(){e.horizontal&&e.showbar("horizontal"),e.vertical&&e.showbar("vertical")}).on("asscrollbar::hovered",function(){e.horizontal&&e.hidebar("horizontal"),e.vertical&&e.hidebar("vertical")}):(this.$element.on(u+"::hover",r.default.proxy(this.showbar,this)),this.$element.on(u+"::hovered",r.default.proxy(this.hidebar,this)))),this.$container.on(this.eventname("scroll"),function(){if(e.horizontal){var t=e.offsetleft;e.offsetleft=e.getoffset("horizontal"),t!==e.offsetleft&&(e.trigger("scroll",e.getpercentoffset("horizontal"),"horizontal"),0===e.offsetleft&&e.trigger("scrolltop","horizontal"),e.offsetleft===e.getscrolllength("horizontal")&&e.trigger("scrollend","horizontal"))}if(e.vertical){var i=e.offsettop;e.offsettop=e.getoffset("vertical"),i!==e.offsettop&&(e.trigger("scroll",e.getpercentoffset("vertical"),"vertical"),0===e.offsettop&&e.trigger("scrolltop","vertical"),e.offsettop===e.getscrolllength("vertical")&&e.trigger("scrollend","vertical"))}}),this.$element.on(u+"::scroll",function(t,i,s,n){e.is("scrolling")||(e.enter("scrolling"),e.$wrap.addclass(e.options.scrollingclass));var a=i.getbarapi(n);a.moveto(o(s),!1,!0),cleartimeout(e._timeoutid),e._timeoutid=settimeout(function(){e.$wrap.removeclass(e.options.scrollingclass),e.leave("scrolling")},200)}),this.$bar.on("asscrollbar::change",function(t,i,s){"string"==typeof t.target.direction&&e.scrollto(t.target.direction,o(s),!1,!0)}),this.$bar.on("asscrollbar::drag",function(){e.$wrap.addclass(e.options.draggingclass)}).on("asscrollbar::dragged",function(){e.$wrap.removeclass(e.options.draggingclass)})}if(!this.options.mousewheelcontroloutside){this.$container.on('mousewheel',function(event){if(e.vertical){var delta=(event.originalevent.wheeldelta)?event.originalevent.wheeldelta:-(event.originalevent.detail||0);if((delta>0&&e.offsettop===0)||(delta<0&&e.offsettop===e.getscrolllength('vertical')))event.preventdefault()}})}}},{key:"unbindevents",value:function(){this.$wrap.off(this.eventname()),this.$element.off(u+"::scroll").off(u+"::hover").off(u+"::hovered"),this.$container.off(this.eventname()),(0,r.default)(window).off(this.eventnamewithid())}},{key:"initlayout",value:function(t){"vertical"===t&&this.$container.css("height",this.$wrap.height());var e=this.attributes[t],i=this.$container[0],s=i.parentnode[e.crossclientlength],n=this.getbrowserscrollbarwidth(t);this.$content.css(e.crosslength,s+"px"),this.$container.css(e.crosslength,n+s+"px"),0===n&&f&&this.$container.css(e.ffpadding,16)}},{key:"createbar",value:function(t){var e=r.default.extend(this.options.scrollbar,{namespace:this.classes.bar,direction:t,usecsstransitions:!1,keyboard:!1}),i=(0,r.default)("
");i.asscrollbar(e),this.options.showonhover&&i.addclass(this.classes.barhide),i.appendto(this.$wrap),this["$"+t]=i,null===this.$bar?this.$bar=i:this.$bar=this.$bar.add(i),this.updatebarhandle(t)}},{key:"trigger",value:function(t){for(var e=arguments.length,i=array(e>1?e-1:0),s=1;s0}},{key:"enter",value:function(t){void 0===this._states[t]&&(this._states[t]=0),this._states[t]++}},{key:"leave",value:function(t){this._states[t]--}},{key:"eventname",value:function(t){if("string"!=typeof t||""===t)return"."+this.options.namespace;t=t.split(" ");for(var e=t.length,i=0;ie?(n&&(cleartimeout(n),n=null),l=d,r=t.apply(o,a),n||(o=a=null)):n||(n=settimeout(h,v)),r}}},{key:"getbrowserscrollbarwidth",value:function(t){var e=this.attributes[t],i=void 0,s=void 0;return e.scrollbarwidth?e.scrollbarwidth:(i=document.createelement("div"),s=i.style,s.position="absolute",s.width="100px",s.height="100px",s.overflow="scroll",s.top="-9999px",document.body.appendchild(i),e.scrollbarwidth=i[e.offset]-i[e.clientlength],document.body.removechild(i),e.scrollbarwidth)}},{key:"getoffset",value:function(t){var e=this.attributes[t],i=this.$container[0];return i[e.pageoffset]||i[e.scroll]}},{key:"getpercentoffset",value:function(t){return this.getoffset(t)/this.getscrolllength(t)}},{key:"getcontainerlength",value:function(t){return this.$container[0][this.attributes[t].clientlength]}},{key:"getscrolllength",value:function(t){var e=this.$content[0][this.attributes[t].scrolllength];return e-this.getcontainerlength(t)}},{key:"scrollto",value:function(t,e,i,s){var o="undefined"==typeof e?"undefined":l(e);"string"===o&&(n(e)&&(e=a(e)*this.getscrolllength(t)),e=parsefloat(e),o="number"),"number"===o&&this.move(t,e,i,s)}},{key:"scrollby",value:function(t,e,i,s){var o="undefined"==typeof e?"undefined":l(e);"string"===o&&(n(e)&&(e=a(e)*this.getscrolllength(t)),e=parsefloat(e),o="number"),"number"===o&&this.move(t,this.getoffset(t)+e,i,s)}},{key:"move",value:function(t,e,i,n){var o=this;if(this[t]===!0&&"number"==typeof e){this.enter("moving"),e<0?e=0:e>this.getscrolllength(t)&&(e=this.getscrolllength(t));var a=this.attributes[t],r=this,l=function(){r.leave("moving")};n?(this.$container[0][a.scroll]=e,i!==!1&&this.trigger("change",e/this.getscrolllength(t),t),l()):!function(){o.enter("animating");var n=s(),h=o.getoffset(t),c=e,f=function s(o){var f=(o-n)/r.options.duration;f>1&&(f=1),f=r.easing.fn(f);var u=parsefloat(h+f*(c-h),10);r.$container[0][a.scroll]=u,i!==!1&&r.trigger("change",e/r.getscrolllength(t),t),1===f?(window.cancelanimationframe(r._frameid),r._frameid=null,r.leave("animating"),l()):r._frameid=window.requestanimationframe(s)};o._frameid=window.requestanimationframe(f)}()}}},{key:"scrollxto",value:function(t,e,i){return this.scrollto("horizontal",t,e,i)}},{key:"scrollyto",value:function(t,e,i){return this.scrollto("vertical",t,e,i)}},{key:"scrollxby",value:function(t,e,i){return this.scrollby("horizontal",t,e,i)}},{key:"scrollyby",value:function(t,e,i){return this.scrollby("vertical",t,e,i)}},{key:"getbar",value:function(t){return t&&this["$"+t]?this["$"+t]:this.$bar}},{key:"getbarapi",value:function(t){return this.getbar(t).data("asscrollbar")}},{key:"getbarx",value:function(){return this.getbar("horizontal")}},{key:"getbary",value:function(){return this.getbar("vertical")}},{key:"showbar",value:function(t){this.getbar(t).removeclass(this.classes.barhide)}},{key:"hidebar",value:function(t){this.getbar(t).addclass(this.classes.barhide)}},{key:"updatebarhandle",value:function(t){var e=this.getbarapi(t);if(e){var i=this.getcontainerlength(t),s=this.getscrolllength(t);s>0?(e.is("disabled")&&e.enable(),e.sethandlelength(e.getbarlength()*i/(s+i),!0)):e.disable()}}},{key:"disable",value:function(){this.is("disabled")||(this.enter("disabled"),this.$wrap.addclass(this.options.disabledclass).removeclass(this.options.enabledclass),this.unbindevents(),this.unstyle()),this.trigger("disable")}},{key:"enable",value:function(){this.is("disabled")&&(this.leave("disabled"),this.$wrap.addclass(this.options.enabledclass).removeclass(this.options.disabledclass),this.bindevents(),this.update()),this.trigger("enable")}},{key:"update",value:function(){this.is("disabled")||this.$element.is(":visible")&&(this.vertical&&(this.initlayout("vertical"),this.updatebarhandle("vertical")),this.horizontal&&(this.initlayout("horizontal"),this.updatebarhandle("horizontal")))}},{key:"unstyle",value:function(){this.horizontal&&(this.$container.css({height:"","padding-bottom":""}),this.$content.css({height:""})),this.vertical&&(this.$container.css({width:"",height:"","padding-right":""}),this.$content.css({width:""})),this.options.containerselector||this.$wrap.css({height:""})}},{key:"destroy",value:function(){this.$wrap.removeclass(this.classes.wrap+"-vertical").removeclass(this.classes.wrap+"-horizontal").removeclass(this.classes.wrap).removeclass(this.options.enabledclass).removeclass(this.classes.disabledclass),this.unstyle(),this.$bar&&this.$bar.remove(),this.unbindevents(),this.options.containerselector?this.$container.removeclass(this.classes.container):this.$container.unwrap(),this.options.contentselector||this.$content.unwrap(),this.$content.removeclass(this.classes.content),this.$element.data(u,null),this.trigger("destroy")}}],[{key:"setdefaults",value:function(t){r.default.extend(c,r.default.isplainobject(t)&&t)}}]),t}(),g={version:"0.4.6"},p="asscrollable",b=r.default.fn.asscrollable,m=function(t){for(var e=this,i=arguments.length,s=array(i>1?i-1:0),n=1;n [data-role='content']",containerselector:"> [data-role='container']"}}}]),scrollable}(_plugin3.default);_plugin3.default.register(name,scrollable),exports.default=scrollable}); !function(a){"use strict";function b(a,b){return a+".touchspin_"+b}function c(c,d){return a.map(c,function(a){return b(a,d)})}var d=0;a.fn.touchspin=function(b){if("destroy"===b)return void this.each(function(){var b=a(this),d=b.data();a(document).off(c(["mouseup","touchend","touchcancel","mousemove","touchmove","scroll","scrollstart"],d.spinnerid).join(" "))});var e={min:0,max:100,initval:"",replacementval:"",step:1,decimals:0,stepinterval:100,forcestepdivisibility:"round",stepintervaldelay:500,verticalbuttons:!1,verticalupclass:"glyphicon glyphicon-chevron-up",verticaldownclass:"glyphicon glyphicon-chevron-down",prefix:"",postfix:"",prefix_extraclass:"",postfix_extraclass:"",booster:!0,boostat:10,maxboostedstep:!1,mousewheel:!0,buttondown_class:"btn btn-default",buttonup_class:"btn btn-default",buttondown_txt:"-",buttonup_txt:"+"},f={min:"min",max:"max",initval:"init-val",replacementval:"replacement-val",step:"step",decimals:"decimals",stepinterval:"step-interval",verticalbuttons:"vertical-buttons",verticalupclass:"vertical-up-class",verticaldownclass:"vertical-down-class",forcestepdivisibility:"force-step-divisibility",stepintervaldelay:"step-interval-delay",prefix:"prefix",postfix:"postfix",prefix_extraclass:"prefix-extra-class",postfix_extraclass:"postfix-extra-class",booster:"booster",boostat:"boostat",maxboostedstep:"max-boosted-step",mousewheel:"mouse-wheel",buttondown_class:"button-down-class",buttonup_class:"button-up-class",buttondown_txt:"button-down-txt",buttonup_txt:"button-up-txt"};return this.each(function(){function g(){if(!j.data("alreadyinitialized")){if(j.data("alreadyinitialized",!0),d+=1,j.data("spinnerid",d),!j.is("input"))return void console.log("must be an input.");j(),h(),u(),m(),p(),q(),r(),s(),d.input.css("display","block")}}function h(){""!==b.initval&&""===j.val()&&j.val(b.initval)}function i(a){l(a),u();var b=d.input.val();""!==b&&(b=number(d.input.val()),d.input.val(b.tofixed(b.decimals)))}function j(){b=a.extend({},e,k,k(),b)}function k(){var b={};return a.each(f,function(a,c){var d="bts-"+c;j.is("[data-"+d+"]")&&(b[a]=j.data(d))}),b}function l(b){b=a.extend({},b,b)}function m(){var a=j.val(),b=j.parent();""!==a&&(a=number(a).tofixed(b.decimals)),j.data("initvalue",a).val(a),j.addclass("form-control"),b.hasclass("input-group")?n(b):o()}function n(b){b.addclass("bootstrap-touchspin");var c,d,e=j.prev(),f=j.next(),g=''+b.prefix+"",h=''+b.postfix+"";e.hasclass("input-group-btn")?(c='",e.append(c)):(c='",a(c).insertbefore(j)),f.hasclass("input-group-btn")?(d='",f.prepend(d)):(d='",a(d).insertafter(j)),a(g).insertbefore(j),a(h).insertafter(j),c=b}function o(){var b;b=b.verticalbuttons?'
'+b.prefix+''+b.postfix+'
':'
'+b.prefix+''+b.postfix+'
",c=a(b).insertbefore(j),a(".bootstrap-touchspin-prefix",c).after(j),j.hasclass("input-sm")?c.addclass("input-group-sm"):j.hasclass("input-lg")&&c.addclass("input-group-lg")}function p(){d={down:a(".bootstrap-touchspin-down",c),up:a(".bootstrap-touchspin-up",c),input:a("input",c),prefix:a(".bootstrap-touchspin-prefix",c).addclass(b.prefix_extraclass),postfix:a(".bootstrap-touchspin-postfix",c).addclass(b.postfix_extraclass)}}function q(){""===b.prefix&&d.prefix.hide(),""===b.postfix&&d.postfix.hide()}function r(){j.on("keydown",function(a){var b=a.keycode||a.which;38===b?("up"!==m&&(w(),z()),a.preventdefault()):40===b&&("down"!==m&&(x(),y()),a.preventdefault())}),j.on("keyup",function(a){var b=a.keycode||a.which;38===b?a():40===b&&a()}),j.on("blur",function(){u()}),d.down.on("keydown",function(a){var b=a.keycode||a.which;(32===b||13===b)&&("down"!==m&&(x(),y()),a.preventdefault())}),d.down.on("keyup",function(a){var b=a.keycode||a.which;(32===b||13===b)&&a()}),d.up.on("keydown",function(a){var b=a.keycode||a.which;(32===b||13===b)&&("up"!==m&&(w(),z()),a.preventdefault())}),d.up.on("keyup",function(a){var b=a.keycode||a.which;(32===b||13===b)&&a()}),d.down.on("mousedown.touchspin",function(a){d.down.off("touchstart.touchspin"),j.is(":disabled")||(x(),y(),a.preventdefault(),a.stoppropagation())}),d.down.on("touchstart.touchspin",function(a){d.down.off("mousedown.touchspin"),j.is(":disabled")||(x(),y(),a.preventdefault(),a.stoppropagation())}),d.up.on("mousedown.touchspin",function(a){d.up.off("touchstart.touchspin"),j.is(":disabled")||(w(),z(),a.preventdefault(),a.stoppropagation())}),d.up.on("touchstart.touchspin",function(a){d.up.off("mousedown.touchspin"),j.is(":disabled")||(w(),z(),a.preventdefault(),a.stoppropagation())}),d.up.on("mouseout touchleave touchend touchcancel",function(a){m&&(a.stoppropagation(),a())}),d.down.on("mouseout touchleave touchend touchcancel",function(a){m&&(a.stoppropagation(),a())}),d.down.on("mousemove touchmove",function(a){m&&(a.stoppropagation(),a.preventdefault())}),d.up.on("mousemove touchmove",function(a){m&&(a.stoppropagation(),a.preventdefault())}),a(document).on(c(["mouseup","touchend","touchcancel"],d).join(" "),function(a){m&&(a.preventdefault(),a())}),a(document).on(c(["mousemove","touchmove","scroll","scrollstart"],d).join(" "),function(a){m&&(a.preventdefault(),a())}),j.on("mousewheel dommousescroll",function(a){if(b.mousewheel&&j.is(":focus")){var b=a.originalevent.wheeldelta||-a.originalevent.deltay||-a.originalevent.detail;a.stoppropagation(),a.preventdefault(),0>b?x():w()}})}function s(){j.on("touchspin.uponce",function(){a(),w()}),j.on("touchspin.downonce",function(){a(),x()}),j.on("touchspin.startupspin",function(){z()}),j.on("touchspin.startdownspin",function(){y()}),j.on("touchspin.stopspin",function(){a()}),j.on("touchspin.updatesettings",function(a,b){i(b)})}function t(a){switch(b.forcestepdivisibility){case"round":return(math.round(a/b.step)*b.step).tofixed(b.decimals);case"floor":return(math.floor(a/b.step)*b.step).tofixed(b.decimals);case"ceil":return(math.ceil(a/b.step)*b.step).tofixed(b.decimals);default:return a}}function u(){var a,b,c;return a=j.val(),""===a?void(""!==b.replacementval&&(j.val(b.replacementval),j.trigger("change"))):void(b.decimals>0&&"."===a||(b=parsefloat(a),isnan(b)&&(b=""!==b.replacementval?b.replacementval:0),c=b,b.tostring()!==a&&(c=b),bb.max&&(c=b.max),c=t(c),number(a).tostring()!==c.tostring()&&(j.val(c),j.trigger("change"))))}function v(){if(b.booster){var a=math.pow(2,math.floor(l/b.boostat))*b.step;return b.maxboostedstep&&a>b.maxboostedstep&&(a=b.maxboostedstep,e=math.round(e/a)*a),math.max(b.step,a)}return b.step}function w(){u(),e=parsefloat(d.input.val()),isnan(e)&&(e=0);var a=e,b=v();e+=b,e>b.max&&(e=b.max,j.trigger("touchspin.on.max"),a()),d.input.val(number(e).tofixed(b.decimals)),a!==e&&j.trigger("change")}function x(){u(),e=parsefloat(d.input.val()),isnan(e)&&(e=0);var a=e,b=v();e-=b,e{{buttons}}",ok:"",cancel:""},input:"",message:"

{{message}}

",log:"
{{message}}
"},defaultdialogs:{buttons:{holder:"",ok:"",cancel:""},input:"",message:"

{{message}}

",log:"
{{message}}
"},build:function(t){var e=this.dialogs.buttons.ok,o="
"+this.dialogs.message.replace("{{message}}",t.message);return"confirm"!==t.type&&"prompt"!==t.type||(e=this.dialogs.buttons.cancel+this.dialogs.buttons.ok),"prompt"===t.type&&(o+=this.dialogs.input),o=(o+this.dialogs.buttons.holder+"
").replace("{{buttons}}",e).replace("{{ok}}",this.oklabel).replace("{{cancel}}",this.cancellabel)},setcloselogonclick:function(t){this.closelogonclick=!!t},close:function(t,e){this.closelogonclick&&t.addeventlistener("click",function(){o(t)}),e=e&&!isnan(+e)?+e:this.delay,0>e?o(t):e>0&&settimeout(function(){o(t)},e)},dialog:function(t,e,o,n){return this.setup({type:e,message:t,onokay:o,oncancel:n})},log:function(t,e,o){var n=document.queryselectorall(".alertify-logs > div");if(n){var i=n.length-this.maxlogitems;if(i>=0)for(var a=0,l=i+1;l>a;a++)this.close(n[a],-1)}this.notify(t,e,o)},setlogposition:function(t){this.logcontainerclass="alertify-logs "+t},setuplogcontainer:function(){var t=document.queryselector(".alertify-logs"),e=this.logcontainerclass;return t||(t=document.createelement("div"),t.classname=e,this.parent.appendchild(t)),t.classname!==e&&(t.classname=e),t},notify:function(e,o,n){var i=this.setuplogcontainer(),a=document.createelement("div");a.classname=o||"default",t.logtemplatemethod?a.innerhtml=t.logtemplatemethod(e):a.innerhtml=e,"function"==typeof n&&a.addeventlistener("click",n),i.appendchild(a),settimeout(function(){a.classname+=" show"},10),this.close(a,this.delay)},setup:function(t){function e(e){"function"!=typeof e&&(e=function(){}),i&&i.addeventlistener("click",function(i){t.onokay&&"function"==typeof t.onokay&&(l?t.onokay(l.value,i):t.onokay(i)),e(l?{buttonclicked:"ok",inputvalue:l.value,event:i}:{buttonclicked:"ok",event:i}),o(n)}),a&&a.addeventlistener("click",function(i){t.oncancel&&"function"==typeof t.oncancel&&t.oncancel(i),e({buttonclicked:"cancel",event:i}),o(n)}),l&&l.addeventlistener("keyup",function(t){13===t.which&&i.click()})}var n=document.createelement("div");n.classname="alertify hide",n.innerhtml=this.build(t);var i=n.queryselector(".ok"),a=n.queryselector(".cancel"),l=n.queryselector("input"),s=n.queryselector("label");l&&("string"==typeof this.promptplaceholder&&(s?s.textcontent=this.promptplaceholder:l.placeholder=this.promptplaceholder),"string"==typeof this.promptvalue&&(l.value=this.promptvalue));var r;return"function"==typeof promise?r=new promise(e):e(),this.parent.appendchild(n),settimeout(function(){n.classlist.remove("hide"),l&&t.type&&"prompt"===t.type?(l.select(),l.focus()):i&&i.focus()},100),r},okbtn:function(t){return this.oklabel=t,this},setdelay:function(t){return t=t||0,this.delay=isnan(t)?this.defaultdelay:parseint(t,10),this},cancelbtn:function(t){return this.cancellabel=t,this},setmaxlogitems:function(t){this.maxlogitems=parseint(t||this.defaultmaxlogitems)},theme:function(t){switch(t.tolowercase()){case"bootstrap":this.dialogs.buttons.ok="",this.dialogs.buttons.cancel="",this.dialogs.input="";break;case"purecss":this.dialogs.buttons.ok="",this.dialogs.buttons.cancel="";break;case"mdl":case"material-design-light":this.dialogs.buttons.ok="",this.dialogs.buttons.cancel="",this.dialogs.input="
";break;case"angular-material":this.dialogs.buttons.ok="",this.dialogs.buttons.cancel="",this.dialogs.input="
";break;case"default":default:this.dialogs.buttons.ok=this.defaultdialogs.buttons.ok,this.dialogs.buttons.cancel=this.defaultdialogs.buttons.cancel,this.dialogs.input=this.defaultdialogs.input}},reset:function(){this.parent=document.body,this.theme("default"),this.okbtn(this.defaultoklabel),this.cancelbtn(this.defaultcancellabel),this.setmaxlogitems(),this.promptvalue="",this.promptplaceholder="",this.delay=this.defaultdelay,this.setcloselogonclick(this.closelogonclickdefault),this.setlogposition("bottom left"),this.logtemplatemethod=null},injectcss:function(){if(!document.queryselector("#alertifycss")){var t=document.getelementsbytagname("head")[0],e=document.createelement("style");e.type="text/css",e.id="alertifycss",e.innerhtml=".alertify-logs>*{padding:12px 24px;color:#fff;box-shadow:0 2px 5px 0 rgba(0,0,0,.2);border-radius:1px}.alertify-logs>*,.alertify-logs>.default{background:rgba(0,0,0,.8)}.alertify-logs>.error{background:rgba(244,67,54,.8)}.alertify-logs>.success{background:rgba(76,175,80,.9)}.alertify{position:fixed;background-color:rgba(0,0,0,.3);left:0;right:0;top:0;bottom:0;width:100%;height:100%;z-index:1}.alertify.hide{opacity:0;pointer-events:none}.alertify,.alertify.show{box-sizing:border-box;transition:all .33s cubic-bezier(.25,.8,.25,1)}.alertify,.alertify *{box-sizing:border-box}.alertify .dialog{padding:12px}.alertify .alert,.alertify .dialog{width:100%;margin:0 auto;position:relative;top:50%;transform:translatey(-50%)}.alertify .alert>*,.alertify .dialog>*{width:400px;max-width:95%;margin:0 auto;text-align:center;padding:12px;background:#fff;box-shadow:0 2px 4px -1px rgba(0,0,0,.14),0 4px 5px 0 rgba(0,0,0,.098),0 1px 10px 0 rgba(0,0,0,.084)}.alertify .alert .msg,.alertify .dialog .msg{padding:12px;margin-bottom:12px;margin:0;text-align:left}.alertify .alert input:not(.form-control),.alertify .dialog input:not(.form-control){margin-bottom:15px;width:100%;font-size:100%;padding:12px}.alertify .alert input:not(.form-control):focus,.alertify .dialog input:not(.form-control):focus{outline-offset:-2px}.alertify .alert nav,.alertify .dialog nav{text-align:right}.alertify .alert nav button:not(.btn):not(.pure-button):not(.md-button):not(.mdl-button),.alertify .dialog nav button:not(.btn):not(.pure-button):not(.md-button):not(.mdl-button){background:transparent;box-sizing:border-box;color:rgba(0,0,0,.87);position:relative;outline:0;border:0;display:inline-block;-ms-flex-align:center;-ms-grid-row-align:center;align-items:center;padding:0 6px;margin:6px 8px;line-height:36px;min-height:36px;white-space:nowrap;min-width:88px;text-align:center;text-transform:uppercase;font-size:14px;text-decoration:none;cursor:pointer;border:1px solid transparent;border-radius:2px}.alertify .alert nav button:not(.btn):not(.pure-button):not(.md-button):not(.mdl-button):active,.alertify .alert nav button:not(.btn):not(.pure-button):not(.md-button):not(.mdl-button):hover,.alertify .dialog nav button:not(.btn):not(.pure-button):not(.md-button):not(.mdl-button):active,.alertify .dialog nav button:not(.btn):not(.pure-button):not(.md-button):not(.mdl-button):hover{background-color:rgba(0,0,0,.05)}.alertify .alert nav button:not(.btn):not(.pure-button):not(.md-button):not(.mdl-button):focus,.alertify .dialog nav button:not(.btn):not(.pure-button):not(.md-button):not(.mdl-button):focus{border:1px solid rgba(0,0,0,.1)}.alertify .alert nav button.btn,.alertify .dialog nav button.btn{margin:6px 4px}.alertify-logs{position:fixed;z-index:1}.alertify-logs.bottom,.alertify-logs:not(.top){bottom:16px}.alertify-logs.left,.alertify-logs:not(.right){left:16px}.alertify-logs.left>*,.alertify-logs:not(.right)>*{float:left;transform:translatez(0);height:auto}.alertify-logs.left>.show,.alertify-logs:not(.right)>.show{left:0}.alertify-logs.left>*,.alertify-logs.left>.hide,.alertify-logs:not(.right)>*,.alertify-logs:not(.right)>.hide{left:-110%}.alertify-logs.right{right:16px}.alertify-logs.right>*{float:right;transform:translatez(0)}.alertify-logs.right>.show{right:0;opacity:1}.alertify-logs.right>*,.alertify-logs.right>.hide{right:-110%;opacity:0}.alertify-logs.top{top:0}.alertify-logs>*{box-sizing:border-box;transition:all .4s cubic-bezier(.25,.8,.25,1);position:relative;clear:both;backface-visibility:hidden;perspective:1000;max-height:0;margin:0;padding:0;overflow:hidden;opacity:0;pointer-events:none}.alertify-logs>.show{margin-top:12px;opacity:1;max-height:1000px;padding:12px;pointer-events:auto}",t.insertbefore(e,t.firstchild)}},removecss:function(){var t=document.queryselector("#alertifycss");t&&t.parentnode&&t.parentnode.removechild(t)}};t.theme('bootstrap');return t.injectcss(),{_$$alertify:t,parent:function(e){t.parent=e},reset:function(){return t.reset(),this},alert:function(e,o,n){return t.dialog(e,"alert",o,n)||this},confirm:function(e,o,n){return t.dialog(e,"confirm",o,n)||this},prompt:function(e,o,n){return t.dialog(e,"prompt",o,n)||this},log:function(e,o){return t.log(e,"default",o),this},theme:function(e){return t.theme(e),this},success:function(e,o){return t.log(e,"success",o),this},error:function(e,o){return t.log(e,"error",o),this},cancelbtn:function(e){return t.cancelbtn(e),this},okbtn:function(e){return t.okbtn(e),this},delay:function(e){return t.setdelay(e),this},placeholder:function(e){return t.promptplaceholder=e,this},defaultvalue:function(e){return t.promptvalue=e,this},maxlogitems:function(e){return t.setmaxlogitems(e),this},closelogonclick:function(e){return t.setcloselogonclick(!!e),this},logposition:function(e){return t.setlogposition(e||""),this},setlogtemplate:function(e){return t.logtemplatemethod=e,this},clearlogs:function(){return t.setuplogcontainer().innerhtml="",this},version:t.version}}var e=500,o=function(t){if(t){var o=function(){t&&t.parentnode&&t.parentnode.removechild(t)};t.classlist.remove("show"),t.classlist.add("hide"),t.addeventlistener("transitionend",o),settimeout(o,e)}};if("undefined"!=typeof module&&module&&module.exports){module.exports=function(){return new t};var n=new t;for(var i in n)module.exports[i]=n[i]}else"function"==typeof define&&define.amd?define(function(){return new t}):window.alertify=new t}(); !function(global,factory){if("function"==typeof define&&define.amd)define("/plugin/alertify",["exports","plugin"],factory);else if("undefined"!=typeof exports)factory(exports,require("plugin"));else{var mod={exports:{}};factory(mod.exports,global.plugin),global.pluginalertify=mod.exports}}(this,function(exports,_plugin2){"use strict";object.defineproperty(exports,"__esmodule",{value:!0});var _plugin3=babelhelpers.interoprequiredefault(_plugin2),name="alertify",alertify=function(_plugin){function alertify(){return babelhelpers.classcallcheck(this,alertify),babelhelpers.possibleconstructorreturn(this,(alertify.__proto__||object.getprototypeof(alertify)).apply(this,arguments))} return babelhelpers.inherits(alertify,_plugin),babelhelpers.createclass(alertify,[{key:"getname",value:function(){return name}},{key:"render",value:function(){this.options.labelok&&(this.options.okbtn=this.options.labelok),this.options.labelcancel&&(this.options.cancelbtn=this.options.labelcancel),this.$el.data("alertifywrapapi",this)}},{key:"show",value:function(){if("undefined"!=typeof alertify){var options=this.options,$self=this.$el;switch("undefined"!=typeof options.delay&&alertify.delay(options.delay),"undefined"!=typeof options.theme&&alertify.theme(options.theme),"undefined"!=typeof options.cancelbtn&&alertify.cancelbtn(options.cancelbtn),"undefined"!=typeof options.okbtn&&alertify.okbtn(options.okbtn),"undefined"!=typeof options.placeholder&&alertify.delay(options.placeholder),"undefined"!=typeof options.defaultvalue&&alertify.delay(options.defaultvalue),"undefined"!=typeof options.maxlogitems&&alertify.delay(options.maxlogitems),"undefined"!=typeof options.closelogonclick&&alertify.delay(options.closelogonclick),"undefined"!=typeof options.logcontainerclass&&alertify.logposition(options.logcontainerclass),options.type){case"confirm":alertify.confirm(options.confirmtitle,function(){if(options.successmessage){alertify.success(options.successmessage)}else{if($self[0].tagname=='a'){location.href=$self.attr("href");}else if($self[0].tagname=='button'||$self[0].tagname=='input'){if(typeof $self.attr('table-delet')!='undefined'){if($self.data('url')){$self.nekoformajaxdel();}else $self.parents("form").submit();}else $self.parents("form").submit();}}},function(){if(options.errormessage)alertify.error(options.errormessage)});break;case"prompt":alertify.prompt(options.prompttitle,function(str,ev){var message=options.successmessage.replace("%s",str);alertify.success(message)},function(ev){alertify.error(options.errormessage)});break;case"log":alertify.log(options.logmessage);break;case"success":alertify.success(options.successmessage);break;case"error":alertify.error(options.errormessage);break;default:alertify.alert(options.alertmessage)}}}}],[{key:"getdefaults",value:function(){return{type:"alert",delay:5e3,theme:"bootstrap",labelcancel:'取消',labelok:'确定',logcontainerdefaultclass:"alertify-logs right"}}},{key:"api",value:function(){return"click|show"}}]),alertify}(_plugin3.default);_plugin3.default.register(name,alertify),exports.default=alertify}); (function($, window, document, undefined) { var $window = $(window), placeholder_base64='data:image/png;base64,ivborw0kggoaaaansuheugaaaaeaaaabcayaaaaffcsjaaaaaxnsr0iars4c6qaaaarnqu1baacxjwv8yquaaaajcehzcwaadsqaaa7eazurdhsaaaansurbvbhxyzh8+pb/aaffa0nnpuclaaaaaelftksuqmcc'; $.fn.lazyload = function(options) { var elements = this; var $container; var settings = { threshold : 30, failure_limit : 1000, event : "scroll", effect : "fadein", effect_speed : null, container : window, data_attribute : "original", data_srcset : 'srcset', skip_invisible : true, appear : null, load : null, placeholder : neko_lazyloadbg, }; function update() { var counter = 0; elements.each(function() { var $this = $(this); if (settings.skip_invisible && !$this.is(":visible")) { return; } if ($.abovethetop(this, settings) || $.leftofbegin(this, settings)) { } else if (!$.belowthefold(this, settings) && !$.rightoffold(this, settings)) { $this.trigger("appear"); counter = 0; } else { if (++counter > settings.failure_limit) { return false; } } }); } if(options) { if (undefined !== options.failurelimit) { options.failure_limit = options.failurelimit; delete options.failurelimit; } if (undefined !== options.effectspeed) { options.effect_speed = options.effectspeed; delete options.effectspeed; } $.extend(settings, options); } $container = (settings.container === undefined || settings.container === window) ? $window : $(settings.container); if (0 === settings.event.indexof("scroll")) { $container.on(settings.event, function() { return update(); }); } if(settings.placeholder=='base64') settings.placeholder=placeholder_base64; this.attr({'data-lazyload':true}); this.each(function(index) { var self = this, $self = $(self), original = $self.attr("data-" + settings.data_attribute), placeholder=settings.placeholder, placeholder_ok=placeholder!=placeholder_base64?true:false; if (original && !$self.hasclass('imgloading')) { if($self.is("img")){ if($self.attr("src")){ return true; }else{ self.loaded = false; $self.attr("src", placeholder); if(placeholder_ok && !$self.hasclass('imgloading')) $self.addclass('imgloading'); } }else{ self.loaded = false; } } $self.one("appear", function() { if (!this.loaded) { if (settings.appear) { var elements_left = elements.length; settings.appear.call(self, elements_left, settings); } var srcset = $self.attr("data-" + settings.data_srcset); $("") .one("load", function() { $self.hide(); if ($self.is("img")) { if(srcset) $self.attr("srcset", srcset); $self.attr("src", original); } else { $self.css("background-image", "url('" + original + "')"); if(srcset) $self.css("background-image", "-webkit-image-set(" + srcset + ")"); } $self[settings.effect](settings.effect_speed); $self.one('load', function() { $self.removeclass('imgloading'); $self.next('canvas').fadeout("normal",function(){ $self.next('canvas').remove(); }); }); self.loaded = true; var temp = $.grep(elements, function(element) { return !element.loaded; }); elements = $(temp); if (settings.load) { var elements_left = elements.length; settings.load.call(self, elements_left, settings); } }).attr({srcset:srcset,src:original}).removeclass('imgloading').next('canvas').fadeout("normal",function(){ $("").next('canvas').remove(); }); } }); if (0 !== settings.event.indexof("scroll")) { $self.on(settings.event, function() { if (!self.loaded) { $self.trigger("appear"); } }); } }); $window.on("resize", function() { update(); }); if ((/(?:iphone|ipod|ipad).*os 5/gi).test(navigator.appversion)) { $window.on("pageshow", function(event) { if (event.originalevent && event.originalevent.persisted) { elements.each(function() { $(this).trigger("appear"); }); } }); } $(document).ready(function() { update(); }); return this; }; $.belowthefold = function(element, settings) { var fold; if (settings.container === undefined || settings.container === window) { fold = (window.innerheight ? window.innerheight : $window.height()) + $window.scrolltop(); } else { fold = $(settings.container).offset().top + $(settings.container).height(); } return fold <= $(element).offset().top - settings.threshold; }; $.rightoffold = function(element, settings) { var fold; if (settings.container === undefined || settings.container === window) { fold = $window.width() + $window.scrollleft(); } else { fold = $(settings.container).offset().left + $(settings.container).width(); } return fold <= $(element).offset().left - settings.threshold; }; $.abovethetop = function(element, settings) { var fold; if (settings.container === undefined || settings.container === window) { fold = $window.scrolltop(); } else { fold = $(settings.container).offset().top; } return fold >= $(element).offset().top + settings.threshold + $(element).height(); }; $.leftofbegin = function(element, settings) { var fold; if (settings.container === undefined || settings.container === window) { fold = $window.scrollleft(); } else { fold = $(settings.container).offset().left; } return fold >= $(element).offset().left + settings.threshold + $(element).width(); }; $.inviewport = function(element, settings) { return !$.rightoffold(element, settings) && !$.leftofbegin(element, settings) && !$.belowthefold(element, settings) && !$.abovethetop(element, settings); }; $.extend($.expr[":"], { "below-the-fold" : function(a) { return $.belowthefold(a, {threshold : 0}); }, "above-the-top" : function(a) { return !$.belowthefold(a, {threshold : 0}); }, "right-of-screen": function(a) { return $.rightoffold(a, {threshold : 0}); }, "left-of-screen" : function(a) { return !$.rightoffold(a, {threshold : 0}); }, "in-viewport" : function(a) { return $.inviewport(a, {threshold : 0}); }, "above-the-fold" : function(a) { return !$.belowthefold(a, {threshold : 0}); }, "right-of-fold" : function(a) { return $.rightoffold(a, {threshold : 0}); }, "left-of-fold" : function(a) { return !$.rightoffold(a, {threshold : 0}); } }); })(jquery, window, document); (function(){ $(function(){ var $nekoeditor_table=$(".neko-editor table"); if($nekoeditor_table.length) $nekoeditor_table.tablexys(); $('.neko-editor img[width][height],.neko-editor img[style*="width:"][style*="height:"]').each(function(){ if($(this).attr('width')>$(this).parent().width()||parseint($(this).css('width'))>$(this).parent().width()) $(this).removeattr('height').height(''); }); if(m.device_type=='m'){ var editorimg_gallery_open=true; $(".neko-editor").each(function(){ if($("img",this).length && !$(this).hasclass('no-gallery')){ var $self=$(this), imgsizeset=true; $("img",this).one('click',function(){ var $img=$(this); if(imgsizeset){ $self.find('img').each(function(){ var src=$(this).attr('src'), size=''; if($(this).data('width')){ size=$(this).data('width')+'x'+$(this).data('height'); }else if($(this).attr('width') && $(this).attr('height')){ size=$(this).attr('width')+'x'+$(this).attr('height'); } if(!($(this).parents('a').length && $(this).parents('a').find('img').length==1)) $(this).wrapall(''); var $this_photoswipe_a=$(this).parents('.photoswipe-a'); $this_photoswipe_a.attr({href:src,'data-med':src}); if(size){ $this_photoswipe_a.attr({'data-size':size,'data-med-size':size}); }else{ if($(this).data('original') && $(this).data('original')==$(this).attr('src')){ var sizes=$(this)[0].naturalwidth+'x'+$(this)[0].naturalheight; $this_photoswipe_a.attr({'data-size':sizes,'data-med-size':sizes}); } $(this).imageloadfunalone(function(imgs){ var sizes=imgs.width+'x'+imgs.height; $this_photoswipe_a.attr({'data-size':sizes,'data-med-size':sizes}); }) } }); imgsizeset=false; } if(editorimg_gallery_open){ settimeout(function(){ $.initphotoswipefromdom('.neko-editor','.photoswipe-a');//(需调用photoswipe插件) editorimg_gallery_open=false; $img.click(); },300); } }); } }); } breakpoints.on('xs',{ enter:function(){ $(".neko-editor iframe.ueditor_baidumap").each(function(index, el) { var src=$(this).attr('src'), width=src.match(/width=(\w+)/)[1], new_width=$(this).width()-4; src=src.replace('&width='+width+'&','&width='+new_width+'&'); $(this).attr('src',src); }); } }); $(".neko-editor .neko-editor-tab").each(function(index1, el1) { var html=''; $(this).prev('.neko-editor-tabcontent').find('.tab-pane').each(function(index2, el2) { var thisid='neko-editor-tabcontent'+index1+'-'+index2; $(this).attr('id',thisid); if(!index2) $(this).addclass('active'); html+='
  • '+(index2+1)+'
  • '; }); $('.pagination',this).html(html); }); settimeout(function(){ $(".neko-editor .neko-editor-tab .pagination li").click(function(event) { var $obj=$($(this).attr('href')); settimeout(function(){ if($(window).scrolltop()>$obj.offset().top) $('html,body').stop().animate({scrolltop:$obj.offset().top}, 300); },300); }); },0) }); })(); (function(){ $(function(){ if($('.neko-product-list').length){ var $nekopro_original=$(".neko-product-list [data-original]"); if($nekopro_original.length){ var $pro_fluid=$(".neko-product-list .container-fluid"); if($pro_fluid.length){ $pro_fluid.each(function(){ var $self=$(this); $(this).width($(this).width()); settimeout(function(){ $self.width(''); },2000) }); } } } if($('#neko-grid').length){ settimeout(function(){ nekoanimonscroll('neko-grid'); },500) } var $neko_showpro_navtab=$('.neko-showproduct-navtabs'); if($neko_showpro_navtab.length) $neko_showpro_navtab.navtabswiper(); var $showprotype2=$('.neko-showproduct.pagetype2'); if($showprotype2.length){ $showprotype2.find('.navbar').wrap('
    '); var $pro_navbar=$showprotype2.find('.navbar'), pro_navbar_t=$pro_navbar.offset().top, pro_navbar_fixclass='navbar-fixed-top animation-slide-top', $protype2_navtabs_a=$pro_navbar.find('.neko-showproduct-navtabs li a'), pronavbarstop=0, pronavbarscroll=function(){ var st=$(window).scrolltop(); if(st>pro_navbar_t){ if(!$pro_navbar.hasclass(pro_navbar_fixclass)) $pro_navbar.addclass(pro_navbar_fixclass).parent().height($pro_navbar.height()); }else if($pro_navbar.hasclass(pro_navbar_fixclass)){ $pro_navbar.removeclass(pro_navbar_fixclass).parent().height(''); } if(!pronavbarstop){ $protype2_navtabs_a.each(function(){ var offsettop=protabtop($(this),$pro_navbar); if(st>=(offsettop-50)) pronavactive($(this)); }); } }; pronavbarscroll(); $(window).scroll(function(){ pronavbarscroll(); }); $protype2_navtabs_a.click(function(e){ e.preventdefault(); pronavbarstop=1; var $self=$(this), scrolltopint=setinterval(function(){ var st=$(window).scrolltop(), scroll_goto=protabtop($self,$pro_navbar); pronavactive($self); if(st>=scroll_goto-1 || st+$(window).height()>=$(document).height()-1){ settimeout(function(){ pronavbarstop=0; },300); clearinterval(scrolltopint); } $('html,body').animate({scrolltop:scroll_goto},300,"linear"); },300) }) } if(m.id && $('#neko-imgs-slick').length && $('textarea[name="neko_product_video"]').val()){ $.include('images/js/shop_video.js',function(){ $('#neko-imgs-slick').nekoshopvideo(); }) } }); function pronavactive(dom){ dom.addclass('active').parent().siblings('li').find('.nav-link').removeclass('active'); } function protabtop(dom,topdom){ var offsettop=$(dom.attr("href")).offset().top-topdom.height(); return offsettop; } window.nekoanimonscroll=function(obj){ new animonscroll( document.getelementbyid(obj),{ minduration:0.4, maxduration:0.7, viewportfactor:0.2 }); } })(); function swiperanimatecache(){for(allboxes=window.document.documentelement.queryselectorall(".ani"),i=0;i'); $(".scroll-container").css('padding-top', $m.height()+'px'); myswiper = new swiper('.j-scroll-con', { direction: 'vertical', speed: 800, slidesperview: 'auto', mousewheelcontrol: true, pagination: '.j-pagination', paginationclickable: true, paginationtype: 'custom', mousewheel: true, simulatetouch: false, nested: true, paginationcustomrender: function (swiper, currect, total) { var $html = ''; for (var i = 1; i <= total; i++) { if (currect == i) { $html += '
  • '; }else { $html += '
  • '; } } return $html;//返回所有的页码html }, oninit: function(swiper) { swiperanimatecache(swiper); //隐藏动画元素 swiperanimate(swiper); //初始化完成开始动画 }, onslidechangeend: function(swiper) { swiperanimate(swiper); //每个slide切换结束时也运行当前slide动画 }, ontransitionend: function(swiper){ if(swiper.progress==1){ swiper.activeindex=swiper.slides.length-1 } } }) $(".j-pagination").on("click", "li", function(){ var index = $(this).index(); myswiper.slideto(index); }); window.onresize = function(){ myswiper.onresize(); } }, cutfont: function(){ nekoui['head_nav_neko_76_3_1'].find('.j-cut-font').on("click", function(){ var $this = $(this); var text = $this.find('a').text(); if( text == '简体' ){ $("body").s2t(); $this.find('a').text('繁体'); }else if( text == '繁体' ) { $("body").t2s(); $this.find('a').text('简体'); } }); } }; var x = new nekoui(nekoui_fun['head_nav_neko_76_3_1']); nekoui_fun['banner_neko_11_4_2'] = { name: 'banner_neko_11_4_2', init: function() { if (nekoui['banner_neko_11_4_2'].length) { nekobanner_slide='.banner_neko_11_4_2 .slick-slide'; var img = nekoui['banner_neko_11_4_2'].find('.cover-image').eq(0), slide = nekoui['banner_neko_11_4_2'].find('.slick-slide'); if (img.length > 0) { var bh = img.data('height').split('|'), fade = img.data('fade'), autoplayspeed = img.data('autoplayspeed'), speed = img.data('speed'); img.imageloadfun(function() { $(nekobanner_slide+' .banner-text').each(function(index, el) { var position=$(this).data('position').split('|'); $(this).addclass(breakpoints.is('xs')?position[1]:position[0]); }).find('.banner-btn a').hover(function() { var color=$(this).data('style').split('|'); $(this).css({background:color[2],'border-color':color[2],color:color[3]}); }, function() { var color=$(this).data('style').split('|'); $(this).css({background:color[0],'border-color':color[0],color:color[1]}); }); for (var i = 0; i < bh.length; i++) { if (bh[i] == 0) { bh[i] = 'auto'; } } breakpoints.on('md lg', { enter: function() { nekoui['banner_neko_11_4_2'].find('.cover-image').height(bh[0]); } }) breakpoints.on('sm', { enter: function() { nekoui['banner_neko_11_4_2'].find('.cover-image').height(bh[1]); } }) breakpoints.on('xs', { enter: function() { nekoui['banner_neko_11_4_2'].find('.cover-image').height(bh[2]); } }) if (slide.length > 1) { nekoui['banner_neko_11_4_2'].slick({ autoplay: true, autoplayspeed: autoplayspeed, pauseonhover: false, swipe: true, arrow: !1, lazyloadprevnext: true, dots: !0, fade: fade, adaptiveheight: true, cssease: 'ease-out', speed: speed }).on('setposition', function(event, slick) { nekoui['banner_neko_11_4_2'].find('.cover-image').css('display', 'block'); $('.banner_neko_11_4_2 .slick-slide .banner-text').hide(); $('.banner_neko_11_4_2 .slick-slide.slick-active .banner-text').show(); }); } }) } } }, getrgb: function() { var tips = $('.banner_neko_11_4_2-warrper').find('.banner-tips'), background = tips.data('hex'); if (tips.length) { var hex = background.split('|')[0], opacity = background.split('|')[1]; var bgcolor = rgb2color(hex, opacity); tips.css('background', bgcolor); } function rgb2color(hex, opacity) { var reg = /^#([0-9a-fa-f]{3}|[0-9a-fa-f]{6})$/; var c = hex.tolowercase(); if (c && reg.test(c)) { if (c.length === 4) { var a = '#'; for (var i = 1; i < 4; i++) { a += c.slice(i, i + 1).concat(c.slice(i, i + 1)); } c = a; } var b = []; for (var i = 1; i < 7; i += 2) { b.push(parseint('0x' + c.slice(i, i + 2))); } return "rgba(" + b.join(',') + ',' + opacity + ')'; } else { return c } } } }; var banner = nekoui(nekoui_fun['banner_neko_11_4_2']); nekoui_fun['foot_info_neko_65_1_3'] = { name: 'foot_info_neko_65_1_3', cntotc: function() { var b = $('.foot_info_neko_65_1_3 .btn-cntotc'); b.on('click', function(event) { var lang = $(this).attr('data-tolang'); if (lang == 'tc') { $('body').s2t(); $(this).attr('data-tolang', 'cn'); $(this).text('简'); } else if (lang == 'cn') { $('body').t2s(); $(this).attr('data-tolang', 'tc'); $(this).text('繁'); } }); }, bg: function() { $('.foot_info_neko_65_1_3_bottom[data-bg]').each(function(index, el) { var background = $(this).attr('data-bg'), hex = background.split('|')[0], hextwo = background.split('|')[1], opacity = background.split('|')[2], bgcolor = rgb2color(hex, opacity), bgcolortwo = rgb2color(hextwo, opacity), ifbotc = $('.foot_info_neko_65_1_3_bottom').data('ifbotc'); if(ifbotc){ $(this).css('background', bgcolor); }else{ $(this).css('background', bgcolortwo); } }); function rgb2color(hex, opacity) { var reg = /^#([0-9a-fa-f]{3}|[0-9a-fa-f]{6})$/; var c = hex.tolowercase(); if (c && reg.test(c)) { if (c.length === 4) { var a = '#'; for (var i = 1; i < 4; i++) { a += c.slice(i, i + 1).concat(c.slice(i, i + 1)); } c = a; } var b = []; for (var i = 1; i < 7; i += 2) { b.push(parseint('0x' + c.slice(i, i + 2))); } return "rgba(" + b.join(',') + ',' + opacity + ')'; } else { return c } } }, padding:function(){ if(nekoui['foot_info_neko_65_1_3'].length){ var h_m=$('.foot_info_neko_65_1_3_bottom').height(); $(window).resize(function(){ pd(); }) function pd(){ if($('.foot_info_neko_65_1_3_bottom').hasclass('iskeshi') || $(window).width()<768){ nekoui['foot_info_neko_65_1_3'].css("padding-bottom",h_m); $(".shop-product-intro .cart-favorite").css("bottom",h_m); } } pd(); } }, qq:function(){ $(".foot_info_neko_65_1_3_bottom .item").each(function(){ var href=$(this).attr("href"); if(href.indexof("http://wpa.qq.com/")>=0){ var patt1 = /uin=\d+&/; var qq=href.match(patt1); var ua = window.navigator.useragent.tolowercase(); if (/(iphone|ipad|ipod|ios)/i.test(navigator.useragent) || /(android)/i.test(navigator.useragent)) { if(ua.match(/micromessenger/i) != "micromessenger"){ $(this).attr("href","mqqwpa://im/chat?chat_type=wpa&"+qq[0]+"version=1&src_type=web&web_src=oicqzone.com"); } } } }); } }; var foot_info = new nekoui(nekoui_fun['foot_info_neko_65_1_3']); nekoui_fun['back_top_neko_76_1_4'] = { name:'back_top_neko_76_1_4', init: function() { var m = nekoui['back_top_neko_76_1_4'];//此处对应的最外层的那个css类名 m.click(function(){ $('html,body').animate({'scrolltop':0},300); }); m.appendto('body'); $(window).scroll(function(){ if($(this).scrolltop()>$(this).height()){ $(".j-back-to").show(); }else { $(".j-back-to").hide(); } }); } }; var x = new nekoui(nekoui_fun['back_top_neko_76_1_4']); (function(e) { function s(a) { var b = a.zoom, c = a.q, g = a.r, k = a.e, f = a.g; this.data = a; this.u = this.b = null; this.za = 0; this.zoom = b; this.v = !0; this.r = this.interval = this.t = this.p = 0; var q = this, m; q.b = e("
    "); var p = e(""); b.options.variablemagnification && p.bind("mousewheel", function(a, b) { q.zoom.ia(0.1 * b); return ! 1 }); q.u = p; p.width(q.zoom.e); p.height(q.zoom.g); d.ja && q.u.css("-webkit-transform", "perspective(400px)"); var l = q.b; l.append(p); var h = e("
    "); a.caption ? ("html" == b.options.captiontype ? m = a.caption: "attr" == b.options.captiontype && (m = e("
    " + a.caption + "
    ")), m.css("display", "block"), h.css({ width: k }), l.append(h), h.append(m), e("body").append(l), this.r = m.outerheight(), "bottom" == b.options.captionposition ? h.css("top", f) : (h.css("top", 0), this.za = this.r)) : e("body").append(l); l.css({ opacity: 0, width: k, height: f + this.r }); this.zoom.c = "auto" === b.options.minmagnification ? math.max(k / b.a.width(), f / b.a.height()) : b.options.minmagnification; this.zoom.b = "auto" === b.options.maxmagnification ? p.width() / b.a.width() : b.options.maxmagnification; a = l.height(); this.v = !1; b.options.zoomflyout ? (f = b.a.offset(), f.left += b.d / 2, f.top += b.c / 2, l.offset(f), l.width(0), l.height(0), l.animate({ left: c, top: g, width: k, height: a, opacity: 1 }, { duration: b.options.animationtime, complete: function() { q.v = !0 } })) : (l.offset({ left: c, top: g }), l.width(k), l.height(a), l.animate({ opacity: 1 }, { duration: b.options.animationtime, complete: function() { q.v = !0 } })) } function x(a, b, c) { this.a = a; this.ba = a[0]; this.ca = c; this.va = !0; var g = this; this.interval = setinterval(function() { 0 < g.ba.width && 0 < g.ba.height && (clearinterval(g.interval), g.va = !1, g.ca(a)) }, 100); this.ba.src = b } function d(a, b) { function c() { k.update(); window.qa(c) } function g() { var c; c = "" != b.image ? b.image: "" + a.attr("src"); k.sa(); b.lazyloadzoom ? a.bind("touchstart.preload " + k.options.mousetriggerevent + ".preload", function() { k.o(c, b.zoomimage) }) : k.o(c, b.zoomimage) } var k = this; b = e.extend({},e.fn.cloudzoom.defaults, b); var f = d.qa(a, e.fn.cloudzoom.attr); b = e.extend({},b, f); 1 > b.easing && (b.easing = 1); f = a.parent(); f.is("a") && "" == b.zoomimage && (b.zoomimage = f.attr("href"), f.removeattr("href")); f = e("
    "); e("body").append(f); this.z = f.width(); this.y = f.height(); b.zoomwidth && (this.z = b.zoomwidth, this.y = b.zoomheight); f.remove(); this.options = b; this.a = a; this.g = this.e = this.d = this.c = 0; this.h = this.m = null; this.j = this.n = 0; this.d = { x: 0, y: 0 }; this.ua = this.caption = ""; this.ea = { x: 0, y: 0 }; this.k = []; this.pa = 0; this.oa = ""; this.b = this.v = this.u = null; this.t = ""; this.l = this.s = this.aa = !1; this.g = null; this.ha = this.oa = !1; this.l = null; this.id = ++d.id; this.i = this.ua = this.ta = 0; this.o = this.h = null; this.wa = this.b = this.c = this.f = this.i = this.ja = 0; this.na(a); this.ma = !1; this.n = this.a = this.da = this.ca = 0; if (a.is(":hidden")) var q = setinterval(function() { a.is(":hidden") || (clearinterval(q), g()) }, 100); else g(); c() } function v(a, b) { var c = b.uriescapemethod; return "escape" == c ? escape(a) : "encodeuri" == c ? encodeuri(a) : a } function h(a) { for (var b = "", c, g = c("charcodeat"), d = a[g](0) - 32, e = 1; e < a.length - 1; e++) c = a[g](e), c ^= d & 31, d++, b += string[c("fromcharcode")](c); a[g](e); return b } function c(a) { return a; } function y(a) { var b = a || window.event, c = [].slice.call(arguments, 1), g = 0, d = 0, f = 0; a = e.event.fix(b); a.type = "mousewheel"; b.wheeldelta && (g = b.wheeldelta / 120); b.detail && (g = -b.detail / 3); f = g; void 0 !== b.axis && b.axis === b.horizontal_axis && (f = 0, d = -1 * g); void 0 !== b.wheeldeltay && (f = b.wheeldeltay / 120); void 0 !== b.wheeldeltax && (d = -1 * b.wheeldeltax / 120); c.unshift(a, g, d, f); return (e.event.dispatch || e.event.handle).apply(this, c) } var t = ["dommousescroll", "mousewheel"]; if (e.event.fixhooks) for (var n = t.length; n;) e.event.fixhooks[t[--n]] = e.event.mousehooks; e.event.special.mousewheel = { setup: function() { if (this.addeventlistener) for (var a = t.length; a;) this.addeventlistener(t[--a], y, !1); else this.onmousewheel = y }, teardown: function() { if (this.removeeventlistener) for (var a = t.length; a;) this.removeeventlistener(t[--a], y, !1); else this.onmousewheel = null } }; e.fn.extend({ mousewheel: function(a) { return a ? this.bind("mousewheel", a) : this.trigger("mousewheel") }, unmousewheel: function(a) { return this.unbind("mousewheel", a) } }); window.qa = function() { return window.requestanimationframe || window.webkitrequestanimationframe || window.mozrequestanimationframe || window.orequestanimationframe || window.msrequestanimationframe || function(a) { window.settimeout(a, 20) } } (); var n = document.getelementsbytagname("script"), w = n[n.length - 1].src.lastindexof("/"), z; z = "undefined" != typeof window.cloudzoom ? window.cloudzoom.path: n[n.length - 1].src.slice(0, w); var n = window, d = n[h("$bphd|`ee&")], u = !0, e = !1, f = h("%kisiyz2"), w = h("&vrzjbj_hj?").length, a = !1, b = !1; 5 == w ? b = !0 : 4 == w && (a = !0); d.xa = 1e9; e(window).bind("resize.cloudzoom", function() { d.xa = e(this).width() }); e(window).trigger("resize.cloudzoom"); d.prototype.j = function() { return "inside" === this.options.zoomposition || d.xa <= this.options.autoinside ? !0 : !1 }; d.prototype.update = function() { var a = this.h; null != a && (this.q(this.d, 0), this.f != this.i && (this.i += (this.f - this.i) / this.options.easing, 1e-4 > math.abs(this.f - this.i) && (this.i = this.f), this.na()), a.update()) }; d.id = 0; d.prototype.ha = function(a) { var b = this.t.replace(/^\/|\/$/g, ""); if (0 == this.k.length) return { href: this.options.zoomimage, title: this.a.attr("title") }; if (void 0 != a) return this.k; a = []; for (var c = 0; c < this.k.length && this.k[c].href.replace(/^\/|\/$/g, "") != b; c++); for (b = 0; b < this.k.length; b++) a[b] = this.k[c], c++, c >= this.k.length && (c = 0); return a }; d.prototype.getgallerylist = d.prototype.ha; d.prototype.p = function() { cleartimeout(this.ja); null != this.o && this.o.remove() }; d.prototype.sa = function() { var a = this; this.oa || this.a.bind("mouseover.prehov mousemove.prehov mouseout.prehov", function(b) { a.g = "mouseout" == b.type ? null: { pagex: b.pagex, pagey: b.pagey } }) }; d.prototype.ea = function() { this.g = null; this.a.unbind("mouseover.prehov mousemove.prehov mouseout.prehov") }; d.prototype.o = function(a, b) { var c = this; c.a.unbind("touchstart.preload " + c.options.mousetriggerevent + ".preload"); c.sa(); this.p(); e("body").children(".cloudzoom-fade-" + c.id).remove(); null != this.v && (this.v.cancel(), this.v = null); null != this.u && (this.u.cancel(), this.u = null); this.t = "" != b && void 0 != b ? b: a; this.l = this.s = !1; ! c.options.galleryfade || !c.aa || c.j() && null != c.h || (c.l = e(new image).css({ position: "absolute" }), c.l.attr("src", c.a.attr("src")), c.l.width(c.a.width()), c.l.height(c.a.height()), c.l.offset(c.a.offset()), c.l.addclass("cloudzoom-fade-" + c.id), e("body").append(c.l)); this.ma(); var g = e(new image); this.u = new x(g, a, function(a, b) { c.u = null; c.l = !0; c.a.attr("src", g.attr("src")); e("body").children(".cloudzoom-fade-" + c.id).fadeout(c.options.fadetime, function() { e(this).remove(); c.l = null }); void 0 !== b ? (c.p(), c.options.errorcallback({ $element: c.a, type: "image_not_found", data: b.ga })) : c.ra() }) }; d.prototype.ma = function() { var a = this; a.ja = settimeout(function() { a.o = e("
    "); e("body").append(a.o); var b = a.o.width(), g = a.o.height(), b = a.a.offset().left + a.a.width() / 2 - b / 2, g = a.a.offset().top + a.a.height() / 2 - g / 2; a.o.offset({ left: b, top: g }) }, 250); var b = e(new image); this.v = new x(b, this.t, function(c, g) { a.v = null; a.s = !0; a.e = b[0].width; a.g = b[0].height; void 0 !== g ? (a.p(), a.options.errorcallback({ $element: a.a, type: "image_not_found", data: g.ga })) : a.ra() }) }; d.prototype.loadimage = d.prototype.o; d.prototype.ba = function() { alert("cloud zoom api ok") }; d.prototype.apitest = d.prototype.ba; d.prototype.s = function() { null != this.h && (this.a.trigger("cloudzoom_end_zoom"), this.h.$()); this.h = null }; d.prototype.$ = function() { e(document).unbind("mousemove." + this.id); this.a.unbind(); null != this.b && (this.b.unbind(), this.s()); this.a.removedata("cloudzoom"); e("body").children(".cloudzoom-fade-" + this.id).remove(); this.ma = !0 }; d.prototype.destroy = d.prototype.$; d.prototype.da = function(a) { if (!this.options.hoverintentdelay) return ! 1; 0 === this.a && (this.a = (new date).gettime(), this.ca = a.pagex, this.da = a.pagey); var b = a.pagex - this.ca, c = a.pagey - this.da, b = math.sqrt(b * b + c * c); this.ca = a.pagex; this.da = a.pagey; a = (new date).gettime(); b <= this.options.hoverintentdistance ? this.n += a - this.a: this.a = a; if (this.n < this.options.hoverintentdelay) return ! 0; this.n = this.a = 0; return ! 1 }; d.prototype.w = function() { var a = this; a.a.bind(a.options.mousetriggerevent + ".trigger", function(b) { if (!a.x() && null == a.b && !a.da(b)) { var c = a.a.offset(); b = new d.f(b.pagex - c.left, b.pagey - c.top); a.m(); a.w(); a.q(b, 0); a.d = b } }) }; d.prototype.x = function() { if (this.ma || !this.s || !this.l) return ! 0; if (!1 === this.options.disablezoom) return ! 1; if (!0 === this.options.disablezoom) return ! 0; if ("auto" == this.options.disablezoom) { if (!isnan(this.options.maxmagnification) && 1 < this.options.maxmagnification) return ! 1; if (this.a.width() >= this.e) return ! 0 } return ! 1 }; d.prototype.ra = function() { var a = this; if (a.s && a.l) { this.la(); a.e = a.a.width() * this.i; a.g = a.a.height() * this.i; this.p(); this.ga(); null != a.h && (a.s(), a.w(), a.h.attr("src", v(this.a.attr("src"), this.options)), a.q(a.ea, 0)); if (!a.aa) { a.aa = !0; e(document).bind("mspointerup." + this.id + " mousemove." + this.id, function(b) { if (null != a.b) { var c = a.a.offset(), g = !0, c = new d.f(b.pagex - math.floor(c.left), b.pagey - math.floor(c.top)); if ( - 1 > c.x || c.x > a.d || 0 > c.y || c.y > a.c) g = !1, a.options.permazoom || (a.b.remove(), a.s(), a.b = null); a.ha = !1; "mspointerup" === b.type && (a.ha = !0); g && (a.d = c) } }); a.w(); var b = 0, c = 0, g = 0, k = function(a, b) { return math.sqrt((a.pagex - b.pagex) * (a.pagex - b.pagex) + (a.pagey - b.pagey) * (a.pagey - b.pagey)) }; a.a.css({ "-ms-touch-action": "none", "-ms-user-select": "none" }); a.a.bind("touchstart touchmove touchend", function(e) { if (a.x()) return ! 0; var f = a.a.offset(), h = e.originalevent, l = { x: 0, y: 0 }, r = h.type; if ("touchend" == r && 0 == h.touches.length) return a.fa(r, l), !1; l = new d.f(h.touches[0].pagex - math.floor(f.left), h.touches[0].pagey - math.floor(f.top)); a.d = l; if ("touchstart" == r && 1 == h.touches.length && null == a.b) return a.fa(r, l), !1; 2 > b && 2 == h.touches.length && (c = a.f, g = k(h.touches[0], h.touches[1])); b = h.touches.length; 2 == b && a.options.variablemagnification && (f = k(h.touches[0], h.touches[1]) / g, a.f = a.j() ? c * f: c / f, a.f < a.c && (a.f = a.c), a.f > a.b && (a.f = a.b)); a.fa("touchmove", l); e.preventdefault(); e.stoppropagation(); return e.returnvalue = !1 }); if (null != a.g) { if (this.x()) return; var f = a.a.offset(), f = new d.f(a.g.pagex - f.left, a.g.pagey - f.top); a.m(); a.w(); a.q(f, 0); a.d = f } } a.ea(); a.a.trigger("cloudzoom_ready") } }; d.prototype.fa = function(a, b) { var c = this; switch (a) { case "touchstart": if (null != c.b) break; cleartimeout(c.interval); c.interval = settimeout(function() { c.m(); c.w(); c.q(b, c.j / 2); c.update() }, 150); break; case "touchend": cleartimeout(c.interval); null == c.b ? c.ya() : c.options.permazoom || (c.b.remove(), c.b = null, c.s()); break; case "touchmove": null == c.b && (cleartimeout(c.interval), c.m(), c.w()) } }; d.prototype.na = function() { var a = this.i; if (null != this.b) { var b = this.h; this.n = b.b.width() / (this.a.width() * a) * this.a.width(); this.j = b.b.height() / (this.a.height() * a) * this.a.height(); this.j -= b.r / a; this.m.width(this.n); this.m.height(this.j); this.q(this.ea, 0) } }; d.prototype.ia = function(a) { this.f += a; this.f < this.c && (this.f = this.c); this.f > this.b && (this.f = this.b) }; d.prototype.na = function(a) { this.caption = null; "attr" == this.options.captiontype ? (a = a.attr(this.options.captionsource), "" != a && void 0 != a && (this.caption = a)) : "html" == this.options.captiontype && (a = e(this.options.captionsource), a.length && (this.caption = a.clone(), a.css("display", "none"))) }; d.prototype.ia = function(a, b) { if ("html" == b.captiontype) { var c; c = e(b.captionsource); c.length && c.css("display", "none") } }; d.prototype.la = function() { this.f = this.i = "auto" === this.options.startmagnification ? this.e / this.a.width() : this.options.startmagnification }; d.prototype.w = function() { var a = this; a.a.trigger("cloudzoom_start_zoom"); this.la(); a.e = a.a.width() * this.i; a.g = a.a.height() * this.i; var b = this.m, c = a.d, g = a.c, d = a.e, f = a.g, h = a.caption; if (a.j()) { b.width(a.d / a.e * a.d); b.height(a.c / a.g * a.c); b.css("display", "none"); var m = a.options.zoomoffsetx, p = a.options.zoomoffsety; a.options.autoinside && (m = p = 0); a.h = new s({ zoom: a, q: a.a.offset().left + m, r: a.a.offset().top + p, e: a.d, g: a.c, caption: h, k: a.options.zoominsideclass }); a.ka(a.h.b); a.h.b.bind("touchmove touchstart touchend", function(b) { a.a.trigger(b); return ! 1 }) } else if (isnan(a.options.zoomposition)) m = e(a.options.zoomposition), b.width(m.width() / a.e * a.d), b.height(m.height() / a.g * a.c), b.fadein(a.options.fadetime), a.options.zoomfullsize || "full" == a.options.zoomsizemode ? (b.width(a.d), b.height(a.c), b.css("display", "none"), a.h = new s({ zoom: a, q: m.offset().left, r: m.offset().top, e: a.e, g: a.g, caption: h, k: a.options.zoomclass })) : a.h = new s({ zoom: a, q: m.offset().left, r: m.offset().top, e: m.width(), g: m.height(), caption: h, k: a.options.zoomclass }); else { var m = a.options.zoomoffsetx, p = a.options.zoomoffsety, l = !1; if (this.options.lenswidth) { var r = this.options.lenswidth, n = this.options.lensheight; r > c && (r = c); n > g && (n = g); b.width(r); b.height(n) } d *= b.width() / c; f *= b.height() / g; r = a.options.zoomsizemode; if (a.options.zoomfullsize || "full" == r) d = a.e, f = a.g, b.width(a.d), b.height(a.c), b.css("display", "none"), l = !0; else if (a.options.zoommatchsize || "image" == r) b.width(a.d / a.e * a.d), b.height(a.c / a.g * a.c), d = a.d, f = a.c; else if ("zoom" === r || this.options.zoomwidth) b.width(a.z / a.e * a.d), b.height(a.y / a.g * a.c), d = a.z, f = a.y; c = [[c / 2 - d / 2, -f], [c - d, -f], [c, -f], [c, 0], [c, g / 2 - f / 2], [c, g - f], [c, g], [c - d, g], [c / 2 - d / 2, g], [0, g], [ - d, g], [ - d, g - f], [ - d, g / 2 - f / 2], [ - d, 0], [ - d, -f], [0, -f]]; m += c[a.options.zoomposition][0]; p += c[a.options.zoomposition][1]; l || b.fadein(a.options.fadetime); a.h = new s({ zoom: a, q: a.a.offset().left + m, r: a.a.offset().top + p, e: d, g: f, caption: h, k: a.options.zoomclass }) } a.h.p = void 0; a.n = b.width(); a.j = b.height(); this.options.variablemagnification && a.m.bind("mousewheel", function(b, c) { a.ia(0.1 * c); return ! 1 }) }; d.prototype.la = function() { return this.h ? !0 : !1 }; d.prototype.iszoomopen = d.prototype.la; d.prototype.fa = function() { this.a.unbind(this.options.mousetriggerevent + ".trigger"); var a = this; null != this.b && (this.b.remove(), this.b = null); this.s(); settimeout(function() { a.w() }, 1) }; d.prototype.closezoom = d.prototype.fa; d.prototype.ya = function() { var a = this; this.a.unbind(a.options.mousetriggerevent + ".trigger"); this.a.trigger("click"); settimeout(function() { a.w() }, 1) }; d.prototype.ka = function(a) { var b = this; a.bind("mousedown." + b.id + " mouseup." + b.id, function(a) { "mousedown" === a.type ? b.wa = (new date).gettime() : (b.ha && (b.b && b.b.remove(), b.s(), b.b = null), 250 >= (new date).gettime() - b.wa && b.ya()) }) }; d.prototype.m = function() { 5 == f.length && !1 == e && (u = !0); var a = this, b; a.ga(); a.m = e("