!function(R){var Z={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}};R.fn.bxSlider=function(e){if(0===this.length)return this;if(1
'),D.viewport=L.parent(),D.settings.ariaLive&&!D.settings.ticker&&D.viewport.attr("aria-live","polite"),D.loader=R('
'),D.viewport.prepend(D.loader),L.css({width:"horizontal"===D.settings.mode?1e3*D.children.length+215+"%":"auto",position:"relative"}),D.usingCSS&&D.settings.easing?L.css("-"+D.cssPrefix+"-transition-timing-function",D.settings.easing):D.settings.easing||(D.settings.easing="swing"),D.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),D.viewport.parent().css({maxWidth:r()}),D.settings.pager||D.settings.controls||D.viewport.parent().css({margin:"0 auto 0px"}),D.children.css({float:"horizontal"===D.settings.mode?"left":"none",listStyle:"none",position:"relative"}),D.children.css("width",l()),"horizontal"===D.settings.mode&&0'),D.settings.captions&&m(),D.active.last=D.settings.startSlide===c()-1,D.settings.video&&L.fitVids(),"all"!==D.settings.preloadImages&&!D.settings.ticker||(t=D.children),D.settings.ticker?D.settings.pager=!1:(D.settings.controls&&f(),D.settings.auto&&D.settings.autoControls&&x(),D.settings.pager&&v(),(D.settings.controls||D.settings.autoControls||D.settings.pager)&&D.viewport.after(D.controls.el)),n(t,o)},n=function(t,e){var i=t.find('img:not([src=""]), iframe').length,s=0;0===i?e():t.find('img:not([src=""]), iframe').each(function(){R(this).one("load error",function(){++s===i&&e()}).each(function(){this.complete&&R(this).trigger("load")})})},o=function(){var t,e;D.settings.infiniteLoop&&"fade"!==D.settings.mode&&!D.settings.ticker&&(e="vertical"===D.settings.mode?D.settings.minSlides:D.settings.maxSlides,t=D.children.slice(0,e).clone(!0).addClass("bx-clone"),e=D.children.slice(-e).clone(!0).addClass("bx-clone"),D.settings.ariaHidden&&(t.attr("aria-hidden",!0),e.attr("aria-hidden",!0)),L.append(t).prepend(e)),D.loader.remove(),h(),"vertical"===D.settings.mode&&(D.settings.adaptiveHeight=!0),D.viewport.height(a()),L.redrawSlider(),D.settings.onSliderLoad.call(L,D.active.index),D.initialized=!0,D.settings.responsive&&R(window).bind("resize",H),D.settings.auto&&D.settings.autoStart&&(1=D.children.length?t.add(D.children.eq(i-1)):t.add(D.children.eq(s+i))}else t=D.children.eq(D.active.index);else t=D.children;return"vertical"===D.settings.mode?(t.each(function(t){e+=R(this).outerHeight()}),0e&&!D.carousel||"vertical"===D.settings.mode)t=e;else if(1D.maxThreshold)return t;eD.maxThreshold?D.settings.maxSlides:(t=D.children.first().width()+D.settings.slideMargin,Math.floor((D.viewport.width()+D.settings.slideMargin)/t)):"vertical"===D.settings.mode&&(e=D.settings.minSlides),e},c=function(){var t=0,e=0,i=0;if(0D.settings.maxSlides&&D.active.last&&!D.settings.infiniteLoop?"horizontal"===D.settings.mode?(t=(e=D.children.last()).position(),p(-(t.left-(D.viewport.width()-e.outerWidth())),"reset",0)):"vertical"===D.settings.mode&&(e=D.children.length-D.settings.minSlides,t=D.children.eq(e).position(),p(-t.top,"reset",0)):(t=D.children.eq(D.active.index*g()).position(),D.active.index===c()-1&&(D.active.last=!0),void 0!==t&&("horizontal"===D.settings.mode?p(-t.left,"reset",0):"vertical"===D.settings.mode&&p(-t.top,"reset",0)))},p=function(t,e,i,s){var n;D.usingCSS?(n="vertical"===D.settings.mode?"translate3d(0, "+t+"px, 0)":"translate3d("+t+"px, 0, 0)",L.css("-"+D.cssPrefix+"-transition-duration",i/1e3+"s"),"slide"===e?(L.css(D.animProp,n),0!==i?L.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(t){R(t.target).is(L)&&(L.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),k())}):k()):"reset"===e?L.css(D.animProp,n):"ticker"===e&&(L.css("-"+D.cssPrefix+"-transition-timing-function","linear"),L.css(D.animProp,n),0!==i?L.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(t){R(t.target).is(L)&&(L.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),p(s.resetValue,"reset",0),M())}):(p(s.resetValue,"reset",0),M()))):((n={})[D.animProp]=t,"slide"===e?L.animate(n,i,D.settings.easing,function(){k()}):"reset"===e?L.css(D.animProp,t):"ticker"===e&&L.animate(n,i,"linear",function(){p(s.resetValue,"reset",0),M()}))},u=function(){for(var t="",e="",i=c(),s=0;s'+e+"
";D.pagerEl.html(t)},v=function(){D.settings.pagerCustom?D.pagerEl=R(D.settings.pagerCustom):(D.pagerEl=R('
'),D.settings.pagerSelector?R(D.settings.pagerSelector).html(D.pagerEl):D.controls.el.addClass("bx-has-pager").append(D.pagerEl),u()),D.pagerEl.on("click touchend","a",T)},f=function(){D.controls.next=R(''+D.settings.nextText+""),D.controls.prev=R(''+D.settings.prevText+""),D.controls.next.bind("click touchend",S),D.controls.prev.bind("click touchend",b),D.settings.nextSelector&&R(D.settings.nextSelector).append(D.controls.next),D.settings.prevSelector&&R(D.settings.prevSelector).append(D.controls.prev),D.settings.nextSelector||D.settings.prevSelector||(D.controls.directionEl=R('
'),D.controls.directionEl.append(D.controls.prev).append(D.controls.next),D.controls.el.addClass("bx-has-controls-direction").append(D.controls.directionEl))},x=function(){D.controls.start=R('"),D.controls.stop=R('"),D.controls.autoEl=R('
'),D.controls.autoEl.on("click",".bx-start",w),D.controls.autoEl.on("click",".bx-stop",C),D.settings.autoControlsCombine?D.controls.autoEl.append(D.controls.start):D.controls.autoEl.append(D.controls.start).append(D.controls.stop),D.settings.autoControlsSelector?R(D.settings.autoControlsSelector).html(D.controls.autoEl):D.controls.el.addClass("bx-has-controls-auto").append(D.controls.autoEl),P(D.settings.autoStart?"stop":"start")},m=function(){D.children.each(function(t){var e=R(this).find("img:first").attr("title");void 0!==e&&(""+e).length&&R(this).append('
'+e+"
")})},S=function(t){t.preventDefault(),D.controls.el.hasClass("disabled")||(D.settings.auto&&D.settings.stopAutoOnClick&&L.stopAuto(),L.goToNextSlide())},b=function(t){t.preventDefault(),D.controls.el.hasClass("disabled")||(D.settings.auto&&D.settings.stopAutoOnClick&&L.stopAuto(),L.goToPrevSlide())},w=function(t){L.startAuto(),t.preventDefault()},C=function(t){L.stopAuto(),t.preventDefault()},T=function(t){t.preventDefault(),D.controls.el.hasClass("disabled")||(D.settings.auto&&D.settings.stopAutoOnClick&&L.stopAuto(),void 0!==(t=R(t.currentTarget)).attr("data-slide-index")&&(t=parseInt(t.attr("data-slide-index")))!==D.active.index&&L.goToSlide(t))},E=function(i){var t=D.children.length;if("short"===D.settings.pagerType)return 1s.right||i.bottoms.bottom)},I=function(t){var e=document.activeElement.tagName.toLowerCase();if(null==new RegExp(e,["i"]).exec("input|textarea")&&F(L))return 39===t.keyCode?(S(t),!1):37===t.keyCode?(b(t),!1):void 0},N=function(){D.touch={start:{x:0,y:0},end:{x:0,y:0}},D.viewport.bind("touchstart",X),D.viewport.on("click",".bxslider a",function(t){D.viewport.hasClass("click-disabled")&&(t.preventDefault(),D.viewport.removeClass("click-disabled"))})},X=function(t){D.controls.el.addClass("disabled"),D.working?(t.preventDefault(),D.controls.el.removeClass("disabled")):(D.touch.originalPos=L.position(),t=void 0!==(t=t.originalEvent).changedTouches?t.changedTouches:[t],D.touch.start.x=t[0].pageX,D.touch.start.y=t[0].pageY,D.viewport.bind("touchmove",q),D.viewport.bind("touchend",A))},q=function(t){var e=t.originalEvent,e=void 0!==e.changedTouches?e.changedTouches:[e],i=Math.abs(e[0].pageX-D.touch.start.x),s=Math.abs(e[0].pageY-D.touch.start.y),n=0,o=0;(s<3*i&&D.settings.preventDefaultSwipeX||i<3*s&&D.settings.preventDefaultSwipeY)&&t.preventDefault(),"fade"!==D.settings.mode&&D.settings.oneToOneTouch&&(n="horizontal"===D.settings.mode?(o=e[0].pageX-D.touch.start.x,D.touch.originalPos.left+o):(o=e[0].pageY-D.touch.start.y,D.touch.originalPos.top+o),p(n,"reset",0))},A=function(t){D.viewport.unbind("touchmove",q),D.controls.el.removeClass("disabled");var t=t.originalEvent,e=void 0!==t.changedTouches?t.changedTouches:[t],i=0,s=0;D.touch.end.x=e[0].pageX,D.touch.end.y=e[0].pageY,"fade"===D.settings.mode?(s=Math.abs(D.touch.start.x-D.touch.end.x))>=D.settings.swipeThreshold&&(D.touch.start.x>D.touch.end.x?L.goToNextSlide():L.goToPrevSlide(),L.stopAuto()):(i="horizontal"===D.settings.mode?(s=D.touch.end.x-D.touch.start.x,D.touch.originalPos.left):(s=D.touch.end.y-D.touch.start.y,D.touch.originalPos.top),(D.settings.infiniteLoop||!(0===D.active.index&&0=D.settings.swipeThreshold?(s<0?L.goToNextSlide():L.goToPrevSlide(),L.stopAuto()):p(i,"reset",200)),D.viewport.unbind("touchend",A),"function"==typeof PointerEvent&&void 0===t.pointerId||D.viewport.get(0).releasePointerCapture&&D.viewport.get(0).releasePointerCapture(D.pointerId)},H=function(t){var e,i;D.initialized&&(D.working?window.setTimeout(H,10):(e=R(window).width(),i=R(window).height(),Y===e&&V===i||(Y=e,V=i,L.redrawSlider(),D.settings.onSliderResize.call(L,D.active.index))))},W=function(t){var e=d();D.settings.ariaHidden&&!D.settings.ticker&&(D.children.attr("aria-hidden","true"),D.children.slice(t,t+e).attr("aria-hidden","false"))},L.goToSlide=function(t,e){var i,s=!0,n=0,o={left:0,top:0},r=null;if(D.oldIndex=D.active.index,D.active.index=(i=t)<0?D.settings.infiniteLoop?c()-1:D.active.index:i>=c()?D.settings.infiniteLoop?0:D.active.index:i,!D.working&&D.active.index!==D.oldIndex){if(D.working=!0,void 0!==(s=D.settings.onSlideBefore.call(L,D.children.eq(D.active.index),D.oldIndex,D.active.index))&&!s)return D.active.index=D.oldIndex,void(D.working=!1);"next"===e?D.settings.onSlideNext.call(L,D.children.eq(D.active.index),D.oldIndex,D.active.index)||(s=!1):"prev"!==e||D.settings.onSlidePrev.call(L,D.children.eq(D.active.index),D.oldIndex,D.active.index)||(s=!1),D.active.last=D.active.index>=c()-1,(D.settings.pager||D.settings.pagerCustom)&&E(D.active.index),D.settings.controls&&y(),"fade"===D.settings.mode?(D.settings.adaptiveHeight&&D.viewport.height()!==a()&&D.viewport.animate({height:a()},D.settings.adaptiveHeightSpeed),D.children.filter(":visible").fadeOut(D.settings.speed).css({zIndex:0}),D.children.eq(D.active.index).css("zIndex",D.settings.slideZIndex+1).fadeIn(D.settings.speed,function(){R(this).css("zIndex",D.settings.slideZIndex),k()})):(D.settings.adaptiveHeight&&D.viewport.height()!==a()&&D.viewport.animate({height:a()},D.settings.adaptiveHeightSpeed),!D.settings.infiniteLoop&&D.carousel&&D.active.last?"horizontal"===D.settings.mode?(o=(r=D.children.eq(D.children.length-1)).position(),n=D.viewport.width()-r.outerWidth()):(i=D.children.length-D.settings.minSlides,o=D.children.eq(i).position()):D.carousel&&D.active.last&&"prev"===e?(s=1===D.settings.moveSlides?D.settings.maxSlides-g():(c()-1)*g()-(D.children.length-D.settings.maxSlides),o=(r=L.children(".bx-clone").eq(s)).position()):"next"===e&&0===D.active.index?(o=L.find("> .bx-clone").eq(D.settings.maxSlides).position(),D.active.last=!1):0<=t&&(i=t*parseInt(g()),o=D.children.eq(i).position()),void 0!==o?(s="horizontal"===D.settings.mode?-(o.left-n):-o.top,p(s,"slide",D.settings.speed)):D.working=!1),D.settings.ariaHidden&&W(D.active.index*g())}},L.goToNextSlide=function(){var t;!D.settings.infiniteLoop&&D.active.last||(t=parseInt(D.active.index)+1,L.goToSlide(t,"next"))},L.goToPrevSlide=function(){var t;!D.settings.infiniteLoop&&0===D.active.index||(t=parseInt(D.active.index)-1,L.goToSlide(t,"prev"))},L.startAuto=function(t){D.interval||(D.interval=setInterval(function(){"next"===D.settings.autoDirection?L.goToNextSlide():L.goToPrevSlide()},D.settings.pause),D.settings.autoControls&&!0!==t&&P("stop"))},L.stopAuto=function(t){D.interval&&(clearInterval(D.interval),D.interval=null,D.settings.autoControls&&!0!==t&&P("start"))},L.getCurrentSlide=function(){return D.active.index},L.getCurrentSlideElement=function(){return D.children.eq(D.active.index)},L.getSlideElement=function(t){return D.children.eq(t)},L.getSlideCount=function(){return D.children.length},L.isWorking=function(){return D.working},L.redrawSlider=function(){D.children.add(L.find(".bx-clone")).outerWidth(l()),D.viewport.css("height",a()),D.settings.ticker||h(),D.active.last&&(D.active.index=c()-1),D.active.index>=c()&&(D.active.last=!0),D.settings.pager&&!D.settings.pagerCustom&&(u(),E(D.active.index)),D.settings.ariaHidden&&W(D.active.index*g())},L.destroySlider=function(){D.initialized&&(D.initialized=!1,R(".bx-clone",this).remove(),D.children.each(function(){void 0!==R(this).data("origStyle")?R(this).attr("style",R(this).data("origStyle")):R(this).removeAttr("style")}),void 0!==R(this).data("origStyle")?this.attr("style",R(this).data("origStyle")):R(this).removeAttr("style"),R(this).unwrap().unwrap(),D.controls.el&&D.controls.el.remove(),D.controls.next&&D.controls.next.remove(),D.controls.prev&&D.controls.prev.remove(),D.pagerEl&&D.settings.controls&&!D.settings.pagerCustom&&D.pagerEl.remove(),R(".bx-caption",this).remove(),D.controls.autoEl&&D.controls.autoEl.remove(),clearInterval(D.interval),D.settings.responsive&&R(window).unbind("resize",H),D.settings.keyboardEnabled&&R(document).unbind("keydown",I),R(this).removeData("bxSlider"))},L.reloadSlider=function(t){void 0!==t&&(e=t),L.destroySlider(),s(),R(L).data("bxSlider",this)},s(),R(L).data("bxSlider",this),this}}(jQuery);