!function(U){var j={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,slideZIndex:50,wrapperClass:"bx-wrapper",touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,ariaLive:!0,ariaHidden:!0,keyboardEnabled:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",stopAutoOnClick:!1,autoHover:!1,autoDelay:0,autoSlideForOnePage:!1,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,shrinkItems:!1,onSliderLoad:function(){return!0},onSlideBefore:function(){return!0},onSlideAfter:function(){return!0},onSlideNext:function(){return!0},onSlidePrev:function(){return!0},onSliderResize:function(){return!0},onAutoChange:function(){return!0}};U.fn.bxSlider=function(e){if(0===this.length)return this;if(1<this.length)return this.each(function(){U(this).bxSlider(e)}),this;var n,t,s,o,a,r,l,d,c,g,p,u,h,v,f,x,m,S,w,b,C,O,T,k,P,E,M,y,F,N,I,B,z,X,Y,V,A,q,D,H,W={},L=this,R=U(window).width(),Z=U(window).height();if(!U(L).data("bxSlider"))return n=function(){U(L).data("bxSlider")||(W.settings=U.extend({},j,e),W.settings.slideWidth=parseInt(W.settings.slideWidth),W.children=L.children(W.settings.slideSelector),W.children.length<W.settings.minSlides&&(W.settings.minSlides=W.children.length),W.children.length<W.settings.maxSlides&&(W.settings.maxSlides=W.children.length),W.settings.randomStart&&(W.settings.startSlide=Math.floor(Math.random()*W.children.length)),W.active={index:W.settings.startSlide},W.carousel=1<W.settings.minSlides||1<W.settings.maxSlides,W.carousel&&(W.settings.preloadImages="all"),W.minThreshold=W.settings.minSlides*W.settings.slideWidth+(W.settings.minSlides-1)*W.settings.slideMargin,W.maxThreshold=W.settings.maxSlides*W.settings.slideWidth+(W.settings.maxSlides-1)*W.settings.slideMargin,W.working=!1,W.controls={},W.interval=null,W.animProp="vertical"===W.settings.mode?"top":"left",W.usingCSS=W.settings.useCSS&&"fade"!==W.settings.mode&&function(){for(var t=document.createElement("div"),e=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"],i=0;i<e.length;i++)if(void 0!==t.style[e[i]])return W.cssPrefix=e[i].replace("Perspective","").toLowerCase(),W.animProp="-"+W.cssPrefix+"-transform",!0;return!1}(),"vertical"===W.settings.mode&&(W.settings.maxSlides=W.settings.minSlides),L.data("origStyle",L.attr("style")),L.children(W.settings.slideSelector).each(function(){U(this).data("origStyle",U(this).attr("style"))}),t())},t=function(){var t=W.children.eq(W.settings.startSlide);L.wrap('<div class="'+W.settings.wrapperClass+'"><div class="bx-viewport"></div></div>'),W.viewport=L.parent(),W.settings.ariaLive&&!W.settings.ticker&&W.viewport.attr("aria-live","polite"),W.loader=U('<div class="bx-loading" />'),W.viewport.prepend(W.loader),L.css({width:"horizontal"===W.settings.mode?1e3*W.children.length+215+"%":"auto",position:"relative"}),W.viewport.on("scroll",function(){this.scrollLeft=0,this.scrollTop=0}),W.usingCSS&&W.settings.easing?L.css("-"+W.cssPrefix+"-transition-timing-function",W.settings.easing):W.settings.easing||(W.settings.easing="swing"),W.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),W.viewport.parent().css({maxWidth:r()}),W.children.css({float:"horizontal"===W.settings.mode?"left":"none",listStyle:"none",position:"relative"}),W.children.css("width",l()),"horizontal"===W.settings.mode&&0<W.settings.slideMargin&&W.children.css("marginRight",W.settings.slideMargin),"vertical"===W.settings.mode&&0<W.settings.slideMargin&&W.children.css("marginBottom",W.settings.slideMargin),"fade"===W.settings.mode&&(W.children.css({position:"absolute",zIndex:0,display:"none"}),W.children.eq(W.settings.startSlide).css({zIndex:W.settings.slideZIndex,display:"block"})),W.controls.el=U('<div class="bx-controls" />'),W.settings.captions&&m(),W.active.last=W.settings.startSlide===c()-1,W.settings.video&&L.fitVids(),"none"===W.settings.preloadImages?t=null:"all"!==W.settings.preloadImages&&!W.settings.ticker||(t=W.children),W.settings.ticker?W.settings.pager=!1:(W.settings.controls&&f(),W.settings.auto&&W.settings.autoControls&&x(),W.settings.pager&&v(),(W.settings.controls||W.settings.autoControls||W.settings.pager)&&W.viewport.after(W.controls.el)),null===t?o():s(t,o)},s=function(t,e){var i=t.find('img:not([src=""]), iframe').length,n=0;0===i?e():t.find('img:not([src=""]), iframe').each(function(){U(this).one("load error",function(){++n===i&&e()}).each(function(){!this.complete&&""!=this.src||U(this).trigger("load")})})},o=function(){var t,e;W.settings.infiniteLoop&&"fade"!==W.settings.mode&&!W.settings.ticker&&(e="vertical"===W.settings.mode?W.settings.minSlides:W.settings.maxSlides,t=W.children.slice(0,e).clone(!0).addClass("bx-clone"),e=W.children.slice(-e).clone(!0).addClass("bx-clone"),W.settings.ariaHidden&&(t.attr("aria-hidden",!0),e.attr("aria-hidden",!0)),L.append(t).prepend(e)),W.loader.remove(),p(),"vertical"===W.settings.mode&&(W.settings.adaptiveHeight=!0),W.viewport.height(a()),L.redrawSlider(),W.settings.onSliderLoad.call(L,W.active.index),W.initialized=!0,W.settings.responsive&&U(window).on("resize",D),W.settings.auto&&W.settings.autoStart&&(1<c()||W.settings.autoSlideForOnePage)&&F(),W.settings.ticker&&N(),W.settings.pager&&T(W.settings.startSlide),W.settings.controls&&E(),W.settings.touchEnabled&&!W.settings.ticker&&X(),W.settings.keyboardEnabled&&!W.settings.ticker&&U(document).keydown(z)},a=function(){var e=0,t=U();if("vertical"===W.settings.mode||W.settings.adaptiveHeight)if(W.carousel){var n=1===W.settings.moveSlides?W.active.index:W.active.index*g(),t=W.children.eq(n);for(i=1;i<=W.settings.maxSlides-1;i++)t=n+i>=W.children.length?t.add(W.children.eq(i-1)):t.add(W.children.eq(n+i))}else t=W.children.eq(W.active.index);else t=W.children;return"vertical"===W.settings.mode?(t.each(function(t){e+=U(this).outerHeight()}),0<W.settings.slideMargin&&(e+=W.settings.slideMargin*(W.settings.minSlides-1))):e=Math.max.apply(Math,t.map(function(){return U(this).outerHeight(!1)}).get()),"border-box"===W.viewport.css("box-sizing")?e+=parseFloat(W.viewport.css("padding-top"))+parseFloat(W.viewport.css("padding-bottom"))+parseFloat(W.viewport.css("border-top-width"))+parseFloat(W.viewport.css("border-bottom-width")):"padding-box"===W.viewport.css("box-sizing")&&(e+=parseFloat(W.viewport.css("padding-top"))+parseFloat(W.viewport.css("padding-bottom"))),e},r=function(){var t="100%";return t=0<W.settings.slideWidth?"horizontal"===W.settings.mode?W.settings.maxSlides*W.settings.slideWidth+(W.settings.maxSlides-1)*W.settings.slideMargin:W.settings.slideWidth:t},l=function(){var t=W.settings.slideWidth,e=W.viewport.width();if(0===W.settings.slideWidth||W.settings.slideWidth>e&&!W.carousel||"vertical"===W.settings.mode)t=e;else if(1<W.settings.maxSlides&&"horizontal"===W.settings.mode){if(e>W.maxThreshold)return t;e<W.minThreshold?t=(e-W.settings.slideMargin*(W.settings.minSlides-1))/W.settings.minSlides:W.settings.shrinkItems&&(t=Math.floor((e+W.settings.slideMargin)/Math.ceil((e+W.settings.slideMargin)/(t+W.settings.slideMargin))-W.settings.slideMargin))}return t},d=function(){var t,e=1;return"horizontal"===W.settings.mode&&0<W.settings.slideWidth?e=W.viewport.width()<W.minThreshold?W.settings.minSlides:W.viewport.width()>W.maxThreshold?W.settings.maxSlides:(t=W.children.first().width()+W.settings.slideMargin,Math.floor((W.viewport.width()+W.settings.slideMargin)/t)||1):"vertical"===W.settings.mode&&(e=W.settings.minSlides),e},c=function(){var t=0,e=0,i=0;if(0<W.settings.moveSlides){if(!W.settings.infiniteLoop){for(;e<W.children.length;)++t,e=i+d(),i+=W.settings.moveSlides<=d()?W.settings.moveSlides:d();return i}t=Math.ceil(W.children.length/g())}else t=Math.ceil(W.children.length/d());return t},g=function(){return 0<W.settings.moveSlides&&W.settings.moveSlides<=d()?W.settings.moveSlides:d()},p=function(){var t,e;W.children.length>W.settings.maxSlides&&W.active.last&&!W.settings.infiniteLoop?"horizontal"===W.settings.mode?(t=(e=W.children.last()).position(),u(-(t.left-(W.viewport.width()-e.outerWidth())),"reset",0)):"vertical"===W.settings.mode&&(e=W.children.length-W.settings.minSlides,t=W.children.eq(e).position(),u(-t.top,"reset",0)):(t=W.children.eq(W.active.index*g()).position(),W.active.index===c()-1&&(W.active.last=!0),void 0!==t&&("horizontal"===W.settings.mode?u(-t.left,"reset",0):"vertical"===W.settings.mode&&u(-t.top,"reset",0)))},u=function e(t,i,n,s){var o;W.usingCSS?(o="vertical"===W.settings.mode?"translate3d(0, "+t+"px, 0)":"translate3d("+t+"px, 0, 0)",L.css("-"+W.cssPrefix+"-transition-duration",n/1e3+"s"),"slide"===i?(L.css(W.animProp,o),0!==n?L.on("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(t){U(t.target).is(L)&&(L.off("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),k())}):k()):"reset"===i?L.css(W.animProp,o):"ticker"===i&&(L.css("-"+W.cssPrefix+"-transition-timing-function","linear"),L.css(W.animProp,o),0!==n?L.on("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(t){U(t.target).is(L)&&(L.off("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),e(s.resetValue,"reset",0),I())}):(e(s.resetValue,"reset",0),I()))):((o={})[W.animProp]=t,"slide"===i?L.animate(o,n,W.settings.easing,function(){k()}):"reset"===i?L.css(W.animProp,t):"ticker"===i&&L.animate(o,n,"linear",function(){e(s.resetValue,"reset",0),I()}))},h=function(){for(var t="",e="",i=c(),n=0;n<i;n++)e="",W.settings.buildPager&&U.isFunction(W.settings.buildPager)||W.settings.pagerCustom?(e=W.settings.buildPager(n),W.pagerEl.addClass("bx-custom-pager")):(e=n+1,W.pagerEl.addClass("bx-default-pager")),t+='<div class="bx-pager-item"><a href="" data-slide-index="'+n+'" class="bx-pager-link">'+e+"</a></div>";W.pagerEl.html(t)},v=function(){W.settings.pagerCustom?W.pagerEl=U(W.settings.pagerCustom):(W.pagerEl=U('<div class="bx-pager" />'),W.settings.pagerSelector?U(W.settings.pagerSelector).html(W.pagerEl):W.controls.el.addClass("bx-has-pager").append(W.pagerEl),h()),W.pagerEl.on("click touchend","a",O)},f=function(){W.controls.next=U('<a class="bx-next" href="">'+W.settings.nextText+"</a>"),W.controls.prev=U('<a class="bx-prev" href="">'+W.settings.prevText+"</a>"),W.controls.next.on("click touchend",S),W.controls.prev.on("click touchend",w),W.settings.nextSelector&&U(W.settings.nextSelector).append(W.controls.next),W.settings.prevSelector&&U(W.settings.prevSelector).append(W.controls.prev),W.settings.nextSelector||W.settings.prevSelector||(W.controls.directionEl=U('<div class="bx-controls-direction" />'),W.controls.directionEl.append(W.controls.prev).append(W.controls.next),W.controls.el.addClass("bx-has-controls-direction").append(W.controls.directionEl))},x=function(){W.controls.start=U('<div class="bx-controls-auto-item"><a class="bx-start" href="">'+W.settings.startText+"</a></div>"),W.controls.stop=U('<div class="bx-controls-auto-item"><a class="bx-stop" href="">'+W.settings.stopText+"</a></div>"),W.controls.autoEl=U('<div class="bx-controls-auto" />'),W.controls.autoEl.on("click",".bx-start",b),W.controls.autoEl.on("click",".bx-stop",C),W.settings.autoControlsCombine?W.controls.autoEl.append(W.controls.start):W.controls.autoEl.append(W.controls.start).append(W.controls.stop),W.settings.autoControlsSelector?U(W.settings.autoControlsSelector).html(W.controls.autoEl):W.controls.el.addClass("bx-has-controls-auto").append(W.controls.autoEl),P(W.settings.autoStart?"stop":"start")},m=function(){W.children.each(function(t){var e=U(this).find("img:first").attr("title");void 0!==e&&(""+e).length&&U(this).append('<div class="bx-caption"><span>'+e+"</span></div>")})},S=function(t){t.preventDefault(),W.controls.el.hasClass("disabled")||(W.settings.auto&&W.settings.stopAutoOnClick&&L.stopAuto(),L.goToNextSlide())},w=function(t){t.preventDefault(),W.controls.el.hasClass("disabled")||(W.settings.auto&&W.settings.stopAutoOnClick&&L.stopAuto(),L.goToPrevSlide())},b=function(t){L.startAuto(),t.preventDefault()},C=function(t){L.stopAuto(),t.preventDefault()},O=function(t){t.preventDefault(),W.controls.el.hasClass("disabled")||(W.settings.auto&&W.settings.stopAutoOnClick&&L.stopAuto(),void 0!==(t=U(t.currentTarget)).attr("data-slide-index")&&(t=parseInt(t.attr("data-slide-index")))!==W.active.index&&L.goToSlide(t))},T=function(i){var t=W.children.length;if("short"===W.settings.pagerType)return 1<W.settings.maxSlides&&(t=Math.ceil(W.children.length/W.settings.maxSlides)),void W.pagerEl.html(i+1+W.settings.pagerShortSeparator+t);W.pagerEl.find("a").removeClass("active"),W.pagerEl.each(function(t,e){U(e).find("a").eq(i).addClass("active")})},k=function(){var t;W.settings.infiniteLoop&&(t="",0===W.active.index?t=W.children.eq(0).position():W.active.index===c()-1&&W.carousel?t=W.children.eq((c()-1)*g()).position():W.active.index===W.children.length-1&&(t=W.children.eq(W.children.length-1).position()),t&&("horizontal"===W.settings.mode?u(-t.left,"reset",0):"vertical"===W.settings.mode&&u(-t.top,"reset",0))),W.working=!1,W.settings.onSlideAfter.call(L,W.children.eq(W.active.index),W.oldIndex,W.active.index)},P=function(t){W.settings.autoControlsCombine?W.controls.autoEl.html(W.controls[t]):(W.controls.autoEl.find("a").removeClass("active"),W.controls.autoEl.find("a:not(.bx-"+t+")").addClass("active"))},E=function(){1===c()?(W.controls.prev.addClass("disabled"),W.controls.next.addClass("disabled")):!W.settings.infiniteLoop&&W.settings.hideControlOnEnd&&(0===W.active.index?(W.controls.prev.addClass("disabled"),W.controls.next.removeClass("disabled")):W.active.index===c()-1?(W.controls.next.addClass("disabled"),W.controls.prev.removeClass("disabled")):(W.controls.prev.removeClass("disabled"),W.controls.next.removeClass("disabled")))},M=function(){L.startAuto()},y=function(){L.stopAuto()},F=function(){0<W.settings.autoDelay?setTimeout(L.startAuto,W.settings.autoDelay):(L.startAuto(),U(window).focus(M).blur(y)),W.settings.autoHover&&L.hover(function(){W.interval&&(L.stopAuto(!0),W.autoPaused=!0)},function(){W.autoPaused&&(L.startAuto(!0),W.autoPaused=null)})},N=function(){var t,e,i,n,s,o,r,a,l=0;"next"===W.settings.autoDirection?L.append(W.children.clone().addClass("bx-clone")):(L.prepend(W.children.clone().addClass("bx-clone")),t=W.children.first().position(),l="horizontal"===W.settings.mode?-t.left:-t.top),u(l,"reset",0),W.settings.pager=!1,W.settings.controls=!1,W.settings.autoControls=!1,W.settings.tickerHover&&(W.usingCSS?(n="horizontal"===W.settings.mode?4:5,W.viewport.hover(function(){e=L.css("-"+W.cssPrefix+"-transform"),i=parseFloat(e.split(",")[n]),u(i,"reset",0)},function(){a=0,W.children.each(function(t){a+="horizontal"===W.settings.mode?U(this).outerWidth(!0):U(this).outerHeight(!0)}),s=W.settings.speed/a,o="horizontal"===W.settings.mode?"left":"top",r=s*(a-Math.abs(parseInt(i))),I(r)})):W.viewport.hover(function(){L.stop()},function(){a=0,W.children.each(function(t){a+="horizontal"===W.settings.mode?U(this).outerWidth(!0):U(this).outerHeight(!0)}),s=W.settings.speed/a,o="horizontal"===W.settings.mode?"left":"top",r=s*(a-Math.abs(parseInt(L.css(o)))),I(r)})),I()},I=function(t){var t=t||W.settings.speed,e={left:0,top:0},i={left:0,top:0};"next"===W.settings.autoDirection?e=L.find(".bx-clone").first().position():i=W.children.first().position(),e="horizontal"===W.settings.mode?-e.left:-e.top,i="horizontal"===W.settings.mode?-i.left:-i.top,u(e,"ticker",t,{resetValue:i})},B=function(t){var e=U(window),i={top:e.scrollTop(),left:e.scrollLeft()},n=t.offset();return i.right=i.left+e.width(),i.bottom=i.top+e.height(),n.right=n.left+t.outerWidth(),n.bottom=n.top+t.outerHeight(),!(i.right<n.left||i.left>n.right||i.bottom<n.top||i.top>n.bottom)},z=function(t){var e=document.activeElement.tagName.toLowerCase();if(null==new RegExp(e,["i"]).exec("input|textarea")&&B(L))return 39===t.keyCode?(S(t),!1):37===t.keyCode?(w(t),!1):void 0},X=function(){W.touch={start:{x:0,y:0},end:{x:0,y:0}},W.viewport.on("MSPointerDown pointerdown",Y),W.viewport.on("click",".bxslider a",function(t){W.viewport.hasClass("click-disabled")&&(t.preventDefault(),W.viewport.removeClass("click-disabled"))})},Y=function(t){var e;"touchstart"!==t.type&&t.target.matches("a")||(t.preventDefault(),W.controls.el.addClass("disabled"),W.working?W.controls.el.removeClass("disabled"):(W.touch.originalPos=L.position(),e=void 0!==(t=t.originalEvent).changedTouches?t.changedTouches:[t],"function"==typeof PointerEvent&&void 0===t.pointerId||(W.touch.start.x=e[0].pageX,W.touch.start.y=e[0].pageY,W.viewport.get(0).setPointerCapture&&(W.pointerId=t.pointerId,W.viewport.get(0).setPointerCapture(W.pointerId)),W.originalClickTarget=t.originalTarget||t.target,W.originalClickButton=t.button,W.originalClickButtons=t.buttons,W.originalEventType=t.type,W.hasMove=!1,W.viewport.on("touchmove MSPointerMove pointermove",A),W.viewport.on("touchend MSPointerUp pointerup",q),W.viewport.on("MSPointerCancel pointercancel",V))))},V=function t(e){e.preventDefault(),u(W.touch.originalPos.left,"reset",0),W.controls.el.removeClass("disabled"),W.viewport.off("MSPointerCancel pointercancel",t),W.viewport.off("touchmove MSPointerMove pointermove",A),W.viewport.off("touchend MSPointerUp pointerup",q),W.viewport.get(0).releasePointerCapture&&W.viewport.get(0).releasePointerCapture(W.pointerId)},A=function(t){var e=t.originalEvent,e=void 0!==e.changedTouches?e.changedTouches:[e],i=Math.abs(e[0].pageX-W.touch.start.x),n=Math.abs(e[0].pageY-W.touch.start.y),s=0,o=0;W.hasMove=!0,(n<3*i&&W.settings.preventDefaultSwipeX||i<3*n&&W.settings.preventDefaultSwipeY)&&t.preventDefault(),"touchmove"!==t.type&&t.preventDefault(),"fade"!==W.settings.mode&&W.settings.oneToOneTouch&&(s="horizontal"===W.settings.mode?(o=e[0].pageX-W.touch.start.x,W.touch.originalPos.left+o):(o=e[0].pageY-W.touch.start.y,W.touch.originalPos.top+o),u(s,"reset",0))},q=function t(e){e.preventDefault(),W.viewport.off("touchmove MSPointerMove pointermove",A),W.controls.el.removeClass("disabled");var e=e.originalEvent,e=void 0!==e.changedTouches?e.changedTouches:[e],i=0,n=0;W.touch.end.x=e[0].pageX,W.touch.end.y=e[0].pageY,"fade"===W.settings.mode?(n=Math.abs(W.touch.start.x-W.touch.end.x))>=W.settings.swipeThreshold&&(W.touch.start.x>W.touch.end.x?L.goToNextSlide():L.goToPrevSlide(),L.stopAuto()):(i="horizontal"===W.settings.mode?(n=W.touch.end.x-W.touch.start.x,W.touch.originalPos.left):(n=W.touch.end.y-W.touch.start.y,W.touch.originalPos.top),(W.settings.infiniteLoop||!(0===W.active.index&&0<n||W.active.last&&n<0))&&Math.abs(n)>=W.settings.swipeThreshold?(n<0?L.goToNextSlide():L.goToPrevSlide(),L.stopAuto()):u(i,"reset",200)),W.viewport.off("touchend MSPointerUp pointerup",t),W.viewport.get(0).releasePointerCapture&&W.viewport.get(0).releasePointerCapture(W.pointerId),!1!==W.hasMove||0!==W.originalClickButton&&"touchstart"!==W.originalEventType||U(W.originalClickTarget).trigger({type:"click",button:W.originalClickButton,buttons:W.originalClickButtons})},D=function t(e){var i,n;W.initialized&&(W.working?window.setTimeout(t,10):(i=U(window).width(),n=U(window).height(),R===i&&Z===n||(R=i,Z=n,L.redrawSlider(),W.settings.onSliderResize.call(L,W.active.index))))},H=function(t){var e=d();W.settings.ariaHidden&&!W.settings.ticker&&(W.children.attr("aria-hidden","true"),W.children.slice(t,t+e).attr("aria-hidden","false"))},L.goToSlide=function(t,e){var i,n=!0,s=0,o={left:0,top:0},r=null;if(W.oldIndex=W.active.index,W.active.index=(i=t)<0?W.settings.infiniteLoop?c()-1:W.active.index:i>=c()?W.settings.infiniteLoop?0:W.active.index:i,!W.working&&W.active.index!==W.oldIndex){if(W.working=!0,void 0!==(n=W.settings.onSlideBefore.call(L,W.children.eq(W.active.index),W.oldIndex,W.active.index))&&!n)return W.active.index=W.oldIndex,void(W.working=!1);"next"===e?W.settings.onSlideNext.call(L,W.children.eq(W.active.index),W.oldIndex,W.active.index)||(n=!1):"prev"!==e||W.settings.onSlidePrev.call(L,W.children.eq(W.active.index),W.oldIndex,W.active.index)||(n=!1),W.active.last=W.active.index>=c()-1,(W.settings.pager||W.settings.pagerCustom)&&T(W.active.index),W.settings.controls&&E(),"fade"===W.settings.mode?(W.settings.adaptiveHeight&&W.viewport.height()!==a()&&W.viewport.animate({height:a()},W.settings.adaptiveHeightSpeed),W.children.filter(":visible").fadeOut(W.settings.speed).css({zIndex:0}),W.children.eq(W.active.index).css("zIndex",W.settings.slideZIndex+1).fadeIn(W.settings.speed,function(){U(this).css("zIndex",W.settings.slideZIndex),k()})):(W.settings.adaptiveHeight&&W.viewport.height()!==a()&&W.viewport.animate({height:a()},W.settings.adaptiveHeightSpeed),!W.settings.infiniteLoop&&W.carousel&&W.active.last?"horizontal"===W.settings.mode?(o=(r=W.children.eq(W.children.length-1)).position(),s=W.viewport.width()-r.outerWidth()):(i=W.children.length-W.settings.minSlides,o=W.children.eq(i).position()):W.carousel&&W.active.last&&"prev"===e?(n=1===W.settings.moveSlides?W.settings.maxSlides-g():(c()-1)*g()-(W.children.length-W.settings.maxSlides),o=(r=L.children(".bx-clone").eq(n)).position()):"next"===e&&0===W.active.index?(o=L.find("> .bx-clone").eq(W.settings.maxSlides).position(),W.active.last=!1):0<=t&&(i=t*parseInt(g()),o=W.children.eq(i).position()),void 0!==o&&(n="horizontal"===W.settings.mode?-(o.left-s):-o.top,u(n,"slide",W.settings.speed)),W.working=!1),W.settings.ariaHidden&&H(W.active.index*g())}},L.goToNextSlide=function(){var t;!W.settings.infiniteLoop&&W.active.last||!0!==W.working&&(t=parseInt(W.active.index)+1,L.goToSlide(t,"next"))},L.goToPrevSlide=function(){var t;!W.settings.infiniteLoop&&0===W.active.index||!0===W.working||(t=parseInt(W.active.index)-1,L.goToSlide(t,"prev"))},L.startAuto=function(t){W.interval||(W.interval=setInterval(function(){"next"===W.settings.autoDirection?L.goToNextSlide():L.goToPrevSlide()},W.settings.pause),W.settings.onAutoChange.call(L,!0),W.settings.autoControls&&!0!==t&&P("stop"))},L.stopAuto=function(t){W.autoPaused&&(W.autoPaused=!1),W.interval&&(clearInterval(W.interval),W.interval=null,W.settings.onAutoChange.call(L,!1),W.settings.autoControls&&!0!==t&&P("start"))},L.getCurrentSlide=function(){return W.active.index},L.getCurrentSlideElement=function(){return W.children.eq(W.active.index)},L.getSlideElement=function(t){return W.children.eq(t)},L.getSlideCount=function(){return W.children.length},L.isWorking=function(){return W.working},L.redrawSlider=function(){W.children.add(L.find(".bx-clone")).outerWidth(l()),W.viewport.css("height",a()),W.settings.ticker||p(),W.active.last&&(W.active.index=c()-1),W.active.index>=c()&&(W.active.last=!0),W.settings.pager&&!W.settings.pagerCustom&&(h(),T(W.active.index)),W.settings.ariaHidden&&H(W.active.index*g())},L.destroySlider=function(){W.initialized&&(W.initialized=!1,U(".bx-clone",this).remove(),W.children.each(function(){void 0!==U(this).data("origStyle")?U(this).attr("style",U(this).data("origStyle")):U(this).removeAttr("style")}),void 0!==U(this).data("origStyle")?this.attr("style",U(this).data("origStyle")):U(this).removeAttr("style"),U(this).unwrap().unwrap(),W.controls.el&&W.controls.el.remove(),W.controls.next&&W.controls.next.remove(),W.controls.prev&&W.controls.prev.remove(),W.pagerEl&&W.settings.controls&&!W.settings.pagerCustom&&W.pagerEl.remove(),U(".bx-caption",this).remove(),W.controls.autoEl&&W.controls.autoEl.remove(),clearInterval(W.interval),W.settings.responsive&&U(window).off("resize",D),W.settings.keyboardEnabled&&U(document).off("keydown",z),U(this).removeData("bxSlider"),U(window).off("blur",y).off("focus",M))},L.reloadSlider=function(t){void 0!==t&&(e=t),L.destroySlider(),n(),U(L).data("bxSlider",this)},n(),U(L).data("bxSlider",this),this}}(jQuery);