1!function(t,e,i,s){var n="qubelyCarousel";function o(e,i){this.element=e,this.elementWidth=0,this._name=n,this.item=null,this.delta=1,this.isAnimating=!1,this.isDragging=!1,this.timer=0,this._timeoutId1=0,this._timeoutId2=0,this._dotControllerTimeId=0,this._lastViewPort=0,this.itemWidth=0,this._clones=0,this._items=0,this._itemCoordinate=[],this.coordinate={x:0,y:0},this.prevCoordinate={x:0,y:0,diff:0,dragPointer:-1},this._defaults=t.fn.qubelyCarousel.defaults,this.options=t.extend({},this._defaults,i),this.options.speed>this.options.interval&&(this.options.speed=this.options.interval),this.init()}t.extend(o.prototype,{init:function(){this.buildCache(),this.createHtmlDom(),this.applyBasicStyle(),this.bindEvents(),this.triggerOnStart(),this.options.autoplay&&this.startLoop()},triggerOnStart:function(){if(this.options.dot_indicator&&this.options.dots){const t=this.$dotContainer.find("li.active");this.animateDotIndicator(t,"start")}},destroy:function(){this.unbindEvents(),this.$outerStage.children(".clone").remove(),this.$outerStage.unwrap(),this.$outerStage.children().unwrap(),this.$sliderList.unwrap(),this.options.dots&&this.$dotContainer.parent(".qubely-carousel-dots").remove(),this.options.nav&&this.$nextBtn.parent(".qubely-carousel-nav-control").remove(),this.$element.removeData(this._name)},buildCache:function(){this.$element=t(this.element)},unbindEvents:function(){this.$element.off("."+this._name)},createHtmlDom:function(){this.createOuterStage(),this.itemProfessor(),this.options.nav&&this.createNavigationController(),this.options.dots&&this.createDotsController(),this.cloneItems()},itemProfessor:function(){this._numberOfItems=this.$element.find(".qubely-carousel-item").length;let t=this.options.centerPadding,e=this.options.margin,i=null;void 0!==this.options.responsive&&(i=this.parseResponsiveViewPort()),null!==i&&(this.options.centerPaddingMode&&(t=void 0===i.centerPadding?this.options.centerPadding:i.centerPadding),i.margin&&(e=parseInt(i.margin))),this.options.items=null===i?this.options.items:void 0===i.items?this.options.items:i.items,this.elementWidth=this.$element.outerWidth()+e,this.itemWidth=this.options.center?Math.abs((this.elementWidth-t)/this.options.items):Math.abs(this.elementWidth/this.options.items),this._clones=this._numberOfItems>this.options.items?Math.ceil(this._numberOfItems/2):this.options.items,this._maxL=this.itemWidth*(this._numberOfItems+(this._clones-1)),this._minL=!1===this.options.center?this.itemWidth*this._clones:this.itemWidth*this._clones-t/2},cloneItems:function(){let t=[],e=[];for(let i=0;i<this._clones;i++)i<this.options.items&&this.$element.find(`.qubely-carousel-item:nth-child(${i+1})`).addClass("active"),t.push(this.$element.find(`.qubely-carousel-item:nth-child(${this._numberOfItems-i})`).clone(!0).addClass("clone").removeClass("active")),e.push(this.$element.find(`.qubely-carousel-item:nth-child(${i+1})`).clone(!0).addClass("clone").removeClass("active"));this.appendBefore(t),this.appendAfter(e),this.calculateItemCoordinate()},appendBefore:function(t){t.map(t=>{this.$outerStage.prepend(t)})},appendAfter:function(t){t.map(t=>{this.$outerStage.append(t)})},calculateItemCoordinate:function(){let t=this;this.$outerStage.children().each(function(e,i){t._itemCoordinate.push((e+1)*t.itemWidth)})},createOuterStage:function(){this.sliderList=i.createElement("div"),this.sliderList.setAttribute("class","qubely-carousel-extended-list"),this.outerStage=i.createElement("div"),this.outerStage.setAttribute("class","qubely-carousel-extended-outer-stage"),this.outerStage.innerHTML=this.$element.html(),!0===this.options.center&&this.$element.addClass("qubely-carousel-extended-center"),this.sliderList.append(this.outerStage),this.$element.html(this.sliderList),this.$outerStage=t(this.outerStage),this.$sliderList=t(this.sliderList)},createNavigationController:function(){let e=i.createElement("div");e.setAttribute("class","qubely-carousel-nav-control"),this.$element.append(e),this.nextBtn=i.createElement("span"),this.nextBtn.setAttribute("class","next-control nav-control"),this.prevBtn=i.createElement("span"),this.prevBtn.setAttribute("class","prev-control nav
1-control"),e.append(this.nextBtn),e.append(this.prevBtn),this.nextNavIcon=i.createElement("span"),this.nextNavIcon.setAttribute("class","arrowright2"==this.options.arrowStyle?"fas fa-angle-right":"fas fa-arrow-right"),this.nextBtn.append(this.nextNavIcon),this.prevNavIcon=i.createElement("span"),this.prevNavIcon.setAttribute("class","arrowright2"==this.options.arrowStyle?"fas fa-angle-left":"fas fa-arrow-left"),this.prevBtn.append(this.prevNavIcon),this.$nextBtn=t(this.nextBtn),this.$prevBtn=t(this.prevBtn)},createDotsController:function(){let e=i.createElement("div");e.setAttribute("class","qubely-carousel-dots"),this.$element.append(e);let s=this,n=i.createElement("ul"),o=null;void 0!==this.options.responsive&&(o=this.parseResponsiveViewPort());let a=null===o?this.options.items:void 0===o.items?this.options.items:o.items,r=Math.floor(this._numberOfItems/a);if(r>1)for(var h=0;h<r;h++){let e=i.createElement("li");if(e.setAttribute("class","qubely-carousel-dot-"+h),t(e).css({"-webkit-transition":"all 0.5s linear 0s"}),0===h&&t(e).addClass("active"),s.options.dot_indicator){let t=i.createElement("span");t.setAttribute("class","dot-indicator"),e.append(t)}n.append(e)}e.append(n),this.$element.append(e),this.$dotContainer=t(n)},applyBasicStyle:function(){let e=0,i={},s=this.options.margin,n=null,o=this.options.centerPadding;void 0!==this.options.responsive&&(n=this.parseResponsiveViewPort()),null!==n&&(this.options.centerPaddingMode&&(o=void 0===n.centerPadding?this.options.centerPadding:n.centerPadding),n.margin&&(s=parseInt(n.margin))),i.width=this.itemWidth-s+"px",s>0&&(i.marginRight=s+"px"),this.$element.find(".qubely-carousel-item").each(function(){e++,t(this).css(i)}),this._currentPosition=this._clones*this.itemWidth,!0===this.options.center&&(this._currentPosition=this._clones*this.itemWidth-o/2),this.$outerStage.css({"-webkit-transition-duration":"0s","-webkit-transform":`translate3D(-${this._currentPosition}px,0px,0px)`,width:e*this.itemWidth+"px"}),this._items=e,this.updateResponsiveView()},startLoop:function(){this.timer=setInterval(()=>{!1===this.isAnimating&&this.Next()},this.options.interval)},stopLoop:function(){clearInterval(this.timer),this.timer=0},Next:function(t){-1===this.delta&&(this.delta=1),this.updateItemStyle(t)},Prev:function(t){1===this.delta&&(this.delta=-1),this.updateItemStyle(t)},slideFromPosition:function(t,e){let i=this.itemWidth*(this.options.items*t),s=0===t?this._minL:this._minL+i;this.$outerStage.css({"-webkit-transition":`all ${this.options.speed}ms linear 0s`,"-webkit-transform":`translate3D(-${s}px,0px,0px)`}),this._currentPosition=s,this.delta=e,this.processActivationWorker()},updateDotsFromPosition:function(t){let e=this.$dotContainer.find("li.active").removeClass("active"),i=this.$dotContainer.find("li:nth-child("+t+")").addClass("active");this.options.dot_indicator&&(this.animateDotIndicator(e,"stop"),this._dotControllerTimeId>0&&(clearTimeout(this._dotControllerTimeId),this._dotControllerTimeId=0),this._dotControllerTimeId=setTimeout(()=>{this.animateDotIndicator(i,"start")},this.options.speed)),i.css({"-webkit-transition":"all 0.5s linear 0s"})},animateDotIndicator:function(t,e){if("stop"===e&&t.find(".dot-indicator").removeClass("active").css({"-webkit-transition-duration":"0s"}),"start"===e){const e=Math.abs(this.options.interval-this.options.speed);t.find(".dot-indicator").addClass("active").css({"-webkit-transition-duration":e+"ms"})}},updateItemStyle:function(t){this._timeoutId1>0&&(clearTimeout(this._timeoutId1),this._timeoutId1=0);let e=-1===this.prevCoordinate.dragPointer?0:this.prevCoordinate.dragPointer,i=this._currentPosition,s=this.itemWidth+parseInt(e);t&&1===this.delta&&(s=parseInt(e));let n=1===this.delta?i+s:i-s;if(n>this._maxL&&(t?n=this.options.center?this._minL:this._minL-this.itemWidth:(this.$outerStage.css({transition:"0s","-webkit-transform":`translate3D(-${this._minL-this.itemWidth}px,0px,0px)`}),n=this._minL)),i<this._minL&&(t?n=this._maxL-2*this.itemWidth:(this.$outerStage.css({transition:"0s","-webkit-transform":`translate3D(-${this._maxL}px,0px,0px)`}),n=this._maxL-this.itemWidth)),this.isDragging){let t=this._itemCoordinate,e=!1,i=null,s=this.options.centerPadding;void 0!==this.options.responsive&&(i=this.parseResponsiveViewPort()),null!==i&&this.options.centerPaddingMode&&(s=void 0===i.centerPadding?this.options.centerPadding:i.centerPadding);for(var o=0;o<t.length&&(t[o]>n&&(n=!0===this.options.center?t[o]-s/2:t[o],e=!0),!0!==e);o++);}this._timeoutId1=setTimeout(()=>{this.$outerStage.css({"-webkit-transition":`all ${this.options.speed}ms linear 0s`,"-webkit-transform":`translate3D(-${n}px,0px,0px)`})},100),this._currentPosition=n,this.processActivationWorker(),this.options.autoplay&&0===this.timer&&this.startLoop()},processActivationWorker:function(){let t=this._currentPosition,e=Math.floor(t/this.itemWidth);e=this.options.center?e+1:e;let i=Math.floor(Math.abs(parseInt(this.options.items)+parseInt(e)));this.$outerStage.find(".active").removeClass("active");for(let t=e;t<i;t++)this.$outerStage.children(":eq("+t+")").addClass("active");let s=Math.floor((e-this._clones)/this.options.items)+1;this.options.dots&&(this.$dotContainer.find(".active").removeClass("active"),this.$dotContainer.find("li:nth-child("+s+")").addClass("active"))},dragoverActionToNextItem:function(t){let e=this._currentPosition+parseInt(t);e>this._maxL&&(parseInt(t)>this.itemWidth&&(t-=this.itemWidth),e=this._minL-this.itemWidth+parseInt(t)),this._timeoutId2>0&&(clearTimeout(this._timeoutId2),this._timeoutId2=0),this._timeoutId2=setTimeout(()=>{this.$outerStage.css({"-webkit-transition":"all 0s linear 0s","-webkit-transform":`translate3D(-${e}px,0px,0px)`})},0)},dragoverActionToPrevItem:function(t){let e=this._currentPosition-parseInt(t);e<this._minL-this.itemWidth&&(e>0&&parseInt(t)>this.itemWidth&&(t-=this.itemWidth),e=this._maxL-parseInt(t)),this._timeoutId2>0&&(clearTimeout(this._timeoutId2),this._timeoutId2=0),this._timeoutId2=setTimeout(()=>{this.$outerStage.css({"-webkit-transition":"all 0s linear 0s","-webkit-transform":`translate3D(-${e}px,0px,0px)`})},0)},resetCoordiante:function(){this.prevCoordinate={x:0,y:0,diff:0,dragPointer:-1},this.coordinate={x:0,y:0},this.options.autoplay&&0===this.timer&&this.startLoop()},backToStage:function(){const t=this.prevCoordinate.diff;let e=this._currentPosition;e!==this._maxL&&e!==this._minL-this.itemWidth||(t>0&&(e=this._minL-this.itemWidth),t<0&&(e=this._maxL)),this._timeoutId1>0&&(clearTimeout(this._timeoutId1),this._timeoutId1=0),this._timeoutId1=setTimeout(()=>{this.$outerStage.css({"-webkit-transition":`all ${this.options.speed}ms linear 0s`,"-webkit-transform":`translate3D(-${e}px,0px,0px)`})},100)},bindEvents:function(){const i=this;t(".qubely_woo_carousel_wrapper .qubely_adtocart_button").on("click",function(e){e.preventDefault();let i=t(this).attr("id");endPoint=qubely_urls.ajax+"?action=qubely_add_to_cart",jQuery.ajax({url:endPoint,type:"POST",data:{id:i,quantity:1},beforeSend:()=>{t(this).addClass("loading")},success:e=>{let{quantity:i}=t(this)[0].dataset;void 0===i&&(i=0),i=parseInt(i)+1,t(this).attr("data-quantity",i),t(this).removeClass("loading"),t(this).html(`${i} in Cart`)},error:(t,e,i)=>console.log(t,e,i)})}),i.options.nav&&(i.$nextBtn.on("click."+i._name,function(t){!1===i.isAnimating&&(i.options.autoplay&&i.stopLoop(),i.Next(),i.checkCallBackMethod.call(i))}),i.$prevBtn.on("click."+i._name,function(t){!1===i.isAnimating&&(i.Prev(),i.options.autoplay&&i.stopLoop(),i.checkCallBackMethod.call(i))})),i.options.dots&&i.$dotContainer.find("li").each(function(e){t(this).on("click."+i._name,function(s){if(t(this).hasClass("active")||!0===i.isAnimating)return!1;i.options.autoplay&&i.stopLoop();let n=t(this).parent().find("li.active"),o=i.$dotContainer.find("li").index(n)>e?-1:1;i.slideFromPosition(e,o),i.updateDotsFromPosition(e+1),i.checkCallBackMethod.call(i)})}),i.options.dragable&&(i.$outerStage.on("mousedown."+i._name,t.proxy(i.onDragStart,i)),i.$outerStage.on("mouseup."+i._name+" touchend."+i._name,t.proxy(i.onDragEnd,i)),i.$outerStage.on("touchstart."+i._name,t.proxy(i.onDragStart,i)),i.$outerStage.on("touchcancel."+i._name,t.proxy(i.onDragEnd,i))),t(e).focus(function(){i.options.autoplay&&0===i.timer&&i.startLoop()}),t(e).blur(function(){i.options.autoplay&&i.stopLoop()}),t(e).on("resize."+i._name,t.proxy(i.windowResize,i))},windowResize:function(t){void 0!==t&&this.updateResponsiveView()},parseResponsiveViewPort:function(){let t=this.options.responsive;if(void 0===t)return;let i=null,s=e.innerWidth;for(let e=0;e<t.length;e++)if(s>t[e].viewport){i=t[e];break}return null===i&&(i=t[t.length-1]),i},updateResponsiveView:function(){if(void 0===this.options.responsive)return;
1let t=e.innerHeight,i=this.parseResponsiveViewPort();if("full"===i.height){if(this._lastViewPort===t)return;this._lastViewPort=t,this.$outerStage.css({height:t+"px"})}else{if(this._lastViewPort===i.height)return;this._lastViewPort=i.height,this.$outerStage.css({height:i.height})}},getPosition:function(t){let i={x:null,y:null};return(t=(t=t.originalEvent||t||e.event).touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t).pageX?(i.x=t.pageX,i.y=t.pageY):(i.x=t.clientX,i.y=t.clientY),i},onDragStart:function(e){if(3===e.which||2===e.which)return!1;const s=this;let n=s.getPosition(e);s.coordinate.x=n.x,s.coordinate.y=n.y,t(i).one("mousemove."+s._name+" touchmove."+s._name,t.proxy(function(e){t(i).on("mousemove."+s._name+" touchmove."+s._name,t.proxy(s.onDragMove,s)),e.preventDefault()},this)),s.isDragging=!0},onDragMove:function(i){const s=this;if(!1===s.isDragging)return;s.options.autoplay&&s.stopLoop();const n=s.getPosition(i),o=s.coordinate;if(s.prevCoordinate.x!==n.x){const t=o.x-n.x;let e=(1*Math.abs(t)).toFixed(0);s.prevCoordinate={x:n.x,y:n.y,diff:t,dragPointer:e},t>0&&s.dragoverActionToNextItem(e),t<0&&s.dragoverActionToPrevItem(e)}i.preventDefault(),t(e).on("mouseup",()=>{this.handleDragEnd()})},onDragEnd:function(t){this.handleDragEnd()},handleDragEnd:function(){const t=this;if(t.isDragging){let e=t.prevCoordinate.diff;Math.abs(e)>100?(e>0&&t.Next(!0),e<0&&t.Prev(!0)):t.backToStage(),t.isDragging=!1}t.resetCoordiante()},checkCallBackMethod:function(){this.callback()},callback:function(){let t=this.options.onChange;if("function"==typeof t){const e=this.$element.find(".qubely-carousel-item").length;let i={item:this.item,items:e,element:this.$element};t.call(this.element,i)}}}),t.fn.qubelyCarousel=function(e){return this.each(function(){t.data(this,n)||t.data(this,n,new o(this,e))}),this},t.fn.qubelyCarousel.defaults={items:4,autoplay:!1,center:!1,centerPadding:150,centerPaddingMode:!1,margin:10,dragable:!1,speed:800,interval:4500,onChange:null,dots:!0,dot_indicator:!1,nav:!0,infiniteLoop:!0,arrowStyle:"arrowright"}}(jQuery,window,document),jQuery(function(t){t.fn.themeum_qubely_carousel=function(){let e=0;if(t(".qubely-carousel.qubely-carousel-wrapper").length>0){const i=t(".qubely-carousel.qubely-carousel-wrapper");for(;e<i.length;){let s=i[e];const{nav:n,dots:o,speed:a,margin:r,center:h,dragable:l,autoplay:d,interval:c,responsive:u,arrowStyle:p,infiniteLoop:m,dot_indicator:f,centerPadding:g,centerPaddingMode:v}=JSON.parse(decodeURIComponent(s.dataset.options));t(".qubely-carousel.qubely-carousel-wrapper").eq(e).qubelyCarousel({nav:n,dots:o,speed:a,margin:r,center:h,dragable:l,interval:c,autoplay:d,arrowStyle:p,infiniteLoop:m,responsive:[...u],centerPadding:v?g:0,centerPaddingMode:v,dot_indicator:f,onChange:function(t){}}),e++}}},t(".qubely-carousel.qubely-carousel-wrapper").themeum_qubely_carousel()});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.