function PublicCarousel(){this.direction="next",this.pause=function(){this.stop()},this.play=function(){this.start()},this.action="play",this.cInterval=null,this.cTimeout=null,this.totalSlides=$(".carousel ul li").length,this.currentSlide=$(".carousel ul li:first-child"),this.currentSlideCount=1,this.transitionSpeed=16e3,document.querySelector(".carousel")?(this.message="Carousel found on page",this.init()):this.message="No Carousel on page"}mindtools="undefined"==typeof mindtools?new function(){}:mindtools,mindtools.public=void 0===mindtools.public?new function(){}:mindtools.public,PublicCarousel.prototype=function(t){var i={init:function(){var i=this;t("div.carousel button").on("click",function(){i.changeDirection(t(this).attr("data-dir"))}),t(".carousel ul li:gt(0)").hide(),t('.slide_indicator[data-slide="'+i.currentSlideCount+'"]').addClass("slide_select"),i.fade(i.transitionSpeed)},fade:function(t){var i=this;i.cInterval=setInterval(function(){i.doFade()},t)},doFade:function(){if("play"!=this.action)return!1;this.currentSlide.fadeOut(),this.changeSlide(),this.currentSlide.fadeIn()},stop:function(){this.action="stop"},start:function(){this.action="play"},changeSlide:function(){"next"==this.direction?(this.currentSlideCount==this.totalSlides?(this.currentSlide=t(".carousel ul li:first-child"),this.currentSlideCount=0):this.currentSlide=this.currentSlide.next("li"),this.currentSlideCount++):(this.direction="next",this.currentSlideCount<=0?(this.currentSlide=t(".carousel ul li:last-child"),this.currentSlideCount=this.totalSlides):this.currentSlide=this.currentSlide.prev("li")),t(".slide_indicator").removeClass("slide_select"),t('.slide_indicator[data-slide="'+this.currentSlideCount+'"]').addClass("slide_select")},changeDirection:function(t){var i=this;clearInterval(i.cInterval),clearTimeout(i.cTimeout),i.direction=t,"previous"==t&&i.currentSlideCount--,i.doFade(),i.cTimeout=setTimeout(function(){i.fade(i.transitionSpeed)},1e3)}};return i}(jQuery);