function ShaderX(a){var b={container:null,sizeContainer:null,autoPlay:!0,vertexShader:"",fragmentShader:"",width:0,height:0,mouseMove:!1,distImage:!1};this.options=jQuery.extend({},b,a),this.container=this.options.container,this.pixelRatio=window.devicePixelRatio,this.uniforms={},this.time=0,this.progress=0,this.empty=!0,this.images={},this.texture1=null,this.texture2=null,this.resizing=!1,this.resizingTimeout=0,this.border=0,this.scale=1,this.drawn=!1,this.runned=!1,this.mouseX=0,this.mouseY=0,this.loadedTextures={},this.options.autoPlay&&this.init()}var woodmartThemeModule={};!function(a){woodmartThemeModule.supports_html5_storage=!1;try{woodmartThemeModule.supports_html5_storage="sessionStorage"in window&&null!==window.sessionStorage,window.sessionStorage.setItem("wd","test"),window.sessionStorage.removeItem("wd")}catch(b){woodmartThemeModule.supports_html5_storage=!1}woodmartThemeModule.$window=a(window),woodmartThemeModule.$document=a(document),woodmartThemeModule.$body=a("body"),woodmartThemeModule.windowWidth=woodmartThemeModule.$window.width(),woodmartThemeModule.removeURLParameter=function(a,b){var c=a.split("?");if(c.length>=2){for(var d=encodeURIComponent(b)+"=",e=c[1].split(/[&;]/g),f=e.length;f-- >0;)-1!==e[f].lastIndexOf(d,0)&&e.splice(f,1);return c[0]+(e.length>0?"?"+e.join("&"):"")}return a},woodmartThemeModule.removeDuplicatedStylesFromHTML=function(b,c){var d=a('<div class="temp-wrapper"></div>').append(b),e=d.find("link"),f=0,g=!1;if(0===e.length||"yes"===woodmart_settings.combined_css)return void c(b);setTimeout(function(){f<=e.length&&!g&&(c(a(d.html())),g=!0)},500),e.each(function(){var b=a(this),h=b.attr("id"),i=b.attr("href");b.remove(),void 0===woodmart_page_css[h]?a("head").append(b.on("load",function(){f++,woodmart_page_css[h]=i,f>=e.length&&!g&&(c(a(d.html())),g=!0)})):++f>=e.length&&!g&&(c(a(d.html())),g=!0)})},woodmartThemeModule.debounce=function(a,b,c){var d;return function(){var e=this,f=arguments,g=function(){d=null,c||a.apply(e,f)},h=c&&!d;clearTimeout(d),d=setTimeout(g,b),h&&a.apply(e,f)}},woodmartThemeModule.wdElementorAddAction=function(a,b){woodmartThemeModule.$window.on("elementor/frontend/init",function(){elementorFrontend.isEditMode()&&elementorFrontend.hooks.addAction(a,b)})},woodmartThemeModule.wdElementorAddAction("frontend/element_ready/section",function(a){a.removeClass("wd-animated"),a.data("wd-waypoint",""),a.removeClass("wd-anim-ready"),woodmartThemeModule.$document.trigger("wdElementorSectionReady")}),woodmartThemeModule.wdElementorAddAction("frontend/element_ready/global",function(a){a.attr("style")&&0===a.attr("style").indexOf("transform:translate3d")&&!a.hasClass("wd-parallax-on-scroll")&&a.attr("style",""),a.removeClass("wd-animated"),a.data("wd-waypoint",""),a.removeClass("wd-anim-ready"),woodmartThemeModule.$document.trigger("wdElementorGlobalReady")}),woodmartThemeModule.wdElementorAddAction("frontend/element_ready/column",function(a){a.attr("style")&&0===a.attr("style").indexOf("transform:translate3d")&&!a.hasClass("wd-parallax-on-scroll")&&a.attr("style",""),a.removeClass("wd-animated"),a.data("wd-waypoint",""),a.removeClass("wd-anim-ready"),setTimeout(function(){woodmartThemeModule.$document.trigger("wdElementorColumnReady")},100)}),woodmartThemeModule.setupMainCarouselArg=function(){woodmartThemeModule.$mainCarouselWrapper=a(".woocommerce-product-gallery");var b=1;(woodmartThemeModule.$mainCarouselWrapper.hasClass("thumbs-position-centered")||woodmartThemeModule.$mainCarouselWrapper.hasClass("thumbs-position-carousel_two_columns"))&&(b=2),woodmartThemeModule.mainCarouselArg={rtl:woodmartThemeModule.$body.hasClass("rtl"),items:b,autoplay:woodmart_settings.product_slider_autoplay,autoplayTimeout:3e3,loop:woodmart_settings.product_slider_autoplay,center:woodmartThemeModule.$mainCarouselWrapper.hasClass("thumbs-position-centered"),startPosition:woodmartThemeModule.$mainCarouselWrapper.hasClass("thumbs-position-centered")?woodmart_settings.centered_gallery_start:0,dots:"yes"===woodmart_settings.product_slider_dots,nav:!0,autoHeight:"yes"===woodmart_settings.product_slider_auto_height,navText:!1,navClass:["owl-prev wd-btn-arrow","owl-next wd-btn-arrow"]}},woodmartThemeModule.shopLoadMoreBtn=".wd-products-load-more.load-on-scroll",woodmartThemeModule.$window.on("elementor/frontend/init",function(){elementorFrontend.isEditMode()&&"enabled"===woodmart_settings.elementor_no_gap&&(elementorFrontend.hooks.addAction("frontend/element_ready/section",function(a){var b=a.data("model-cid");if(void 0!==elementorFrontend.config.elements.data[b]){elementorFrontend.config.elements.data[b].attributes.content_width.size||a.addClass("wd-negative-gap")}}),elementor.channels.editor.on("change:section",function(b){var c=b.elementSettingsModel.changed;if(void 0!==c.content_width){var d=b._parent.model.id,e=a(".elementor-element-"+d);c.content_width.size?e.removeClass("wd-negative-gap"):e.addClass("wd-negative-gap")}}))}),woodmartThemeModule.$window.on("load",function(){a(".wd-preloader").delay(parseInt(woodmart_settings.preloader_delay)).addClass("preloader-hide"),a(".wd-preloader-style").remove(),setTimeout(function(){a(".wd-preloader").remove()},200)})}(jQuery),window.onload=function(){var a=["keydown","scroll","mouseover","touchmove","touchstart","mousedown","mousemove"],b=function(a){jQuery(window).trigger("wdEventStarted"),c()},c=function(){a.forEach(function(a){window.removeEventListener(a,b)})},d=function(a){window.addEventListener(a,b)};a.forEach(function(a){d(a)})},function(a){woodmartThemeModule.adminBarSliderMenu=function(){var b=a(".wd-slider-wrapper"),c=a("#wpadminbar");b.length>0&&c.length>0&&(c.find("#wp-admin-bar-theme-dashboard #wp-admin-bar-theme-dashboard-default").append('<li id="wp-admin-bar-woodmart_slider" class="menupop"><a class="ab-item" href="/wp-admin/edit.php?post_type=woodmart_slide">Slider<span class="wp-admin-bar-arrow" aria-hidden="true"></span></a><div class="ab-sub-wrapper"><ul class="ab-submenu"></ul></div></li>'),b.each(function(){var b=a(this),c=b.data("id"),d=b.data("slider"),e=a("#wp-admin-bar-woodmart_slider > .ab-sub-wrapper > .ab-submenu");d&&(e.append('<li id="'+c+'" class="menupop"><a href="'+d.url+'" class="ab-item" target="_blank">'+d.title+'<span class="wp-admin-bar-arrow" aria-hidden="true"></span></a><div class="ab-sub-wrapper"><ul class="ab-submenu"></ul></div></li>'),b.find(".wd-slide").each(function(){var b=a(this),d=(b.data("id"),b.data("slide"));e.find("#"+c+" > .ab-sub-wrapper > .ab-submenu").append('<li><a href="'+d.url+'" class="ab-item" target="_blank">'+d.title+"</a></li>")}))}))},woodmartThemeModule.adminBarSliderMenu()}(jQuery),function(a){a.each(["frontend/element_ready/wd_blog.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.blogLoadMore()})}),woodmartThemeModule.blogLoadMore=function(){var b=".wd-blog-load-more.load-on-scroll",c=!1;woodmartThemeModule.clickOnScrollButton(b,!1,!1),a(".wd-blog-load-more").on("click",function(d){d.preventDefault();var e=a(this);if(!c&&!e.hasClass("no-more-posts")){c=!0;var f=e.parent().siblings(".wd-blog-holder"),g=f.data("source"),h="woodmart_get_blog_"+g,i=woodmart_settings.ajaxurl,j="json",k="POST",l=f.data("atts"),m=f.data("paged");e.addClass("loading");var n={atts:l,paged:m,action:h};"main_loop"===g&&(i=e.attr("href"),k="GET",n={}),a.ajax({url:i,data:n,dataType:j,method:k,success:function(c){woodmartThemeModule.removeDuplicatedStylesFromHTML(c.items,function(d){var h=a(d);h&&(f.hasClass("masonry-container")?(f.append(h).isotope("appended",h),f.imagesLoaded().progress(function(){f.isotope("layout"),woodmartThemeModule.clickOnScrollButton(b,!0,!1)})):(f.append(h),f.imagesLoaded().progress(function(){woodmartThemeModule.clickOnScrollButton(b,!0,!1)})),"yes"===woodmart_settings.load_more_button_page_url&&window.history.pushState("","",c.currentPage),f.data("paged",m+1),"main_loop"===g&&(e.attr("href",c.nextPage),"no-more-posts"===c.status&&e.hide().remove())),"no-more-posts"===c.status&&(e.addClass("no-more-posts"),e.hide())})},error:function(){console.log("ajax error")},complete:function(){e.removeClass("loading"),c=!1}})}})},a(document).ready(function(){woodmartThemeModule.blogLoadMore()})}(jQuery),function(a){a.each(["frontend/element_ready/wd_accordion.default","frontend/element_ready/wd_single_product_tabs.default","frontend/element_ready/wd_single_product_reviews.default"],function(b,c){woodmartThemeModule.wdElementorAddAction(c,function(b){woodmartThemeModule.accordion(),a(".wc-tabs-wrapper, .woocommerce-tabs").trigger("init"),b.find("#rating").parent().find("> .stars").remove(),b.find("#rating").trigger("init")})}),woodmartThemeModule.accordion=function(){var b=window.location.hash,c=window.location.href;a(".woocommerce-review-link").on("click",function(){a(".tabs-layout-accordion .wd-accordion-title.tab-title-reviews:not(.active)").click()}),a(".wd-accordion").each(function(){var d=a(this),e=d.find("> .wd-accordion-item > .wd-accordion-title"),f=d.find("> .wd-accordion-item > .wd-accordion-content"),g="wd-active",h=d.data("state"),i=300;if(!d.hasClass("wd-inited")){var j=function(a){return e.filter('[data-accordion-index="'+a+'"]').hasClass(g)},k=function(a){var b=e.filter('[data-accordion-index="'+a+'"]'),c=f.filter('[data-accordion-index="'+a+'"]');b.addClass(g),c.stop(!0,!0).slideDown(i).addClass(g),"first"!==h||d.hasClass("wd-inited")||c.stop(!0,!0).show().css("display","block"),d.addClass("wd-inited"),woodmartThemeModule.$document.trigger("resize.vcRowBehaviour"),woodmartThemeModule.$document.trigger("wood-images-loaded")},l=function(){var a=e.filter("."+g),b=f.filter("."+g);a.removeClass(g),b.stop(!0,!0).slideUp(i).removeClass(g)},m=function(){return e.first().data("accordion-index")};"first"===h&&k(m()),e.off("click").on("click",function(){var b=a(this),c=a(this).data("accordion-index"),d=j(c),e=b.parent().index(),f=b.parent().siblings().find(".wd-active").parent(".wd-tab-wrapper").index();(b.hasClass("wd-active")||-1===e)&&(f=e),d?l():(l(),k(c)),b.parents(".tabs-layout-accordion")&&setTimeout(function(){if(woodmartThemeModule.$window.width()<1024&&e>f){var c=a(".sticky-header"),d=c.length>0?c.outerHeight():0;a("html, body").animate({scrollTop:b.offset().top-b.outerHeight()-d-50},500)}},i)}),(b.toLowerCase().indexOf("comment-")>=0||"#reviews"===b||"#tab-reviews"===b||c.indexOf("comment-page-")>0||c.indexOf("cpage=")>0)&&d.find(".tab-title-reviews").trigger("click")}})},a(document).ready(function(){woodmartThemeModule.accordion()})}(jQuery),function(a){a.each(["frontend/element_ready/wd_banner_carousel.default","frontend/element_ready/wd_banner.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.bannersHover()})}),woodmartThemeModule.bannersHover=function(){void 0!==a.fn.panr&&a(".promo-banner.banner-hover-parallax").panr({sensitivity:20,scale:!1,scaleOnHover:!0,scaleTo:1.15,scaleDuration:.34,panY:!0,panX:!0,panDuration:.5,resetPanOnMouseLeave:!0})},a(document).ready(function(){woodmartThemeModule.bannersHover()})}(jQuery),function(a){woodmartThemeModule.buttonSmoothScroll=function(){a(".wd-button-wrapper.wd-smooth-scroll a").on("click",function(b){b.stopPropagation(),b.preventDefault();var c=a(this),d=c.parent().data("smooth-time"),e=c.parent().data("smooth-offset"),f=c.attr("href").split("#")[1],g=a("#"+f);if(!(g.length<1)){var h=g.offset().top;a("html, body").animate({scrollTop:h-e},d)}})},a(document).ready(function(){woodmartThemeModule.buttonSmoothScroll()})}(jQuery),function(a){a.each(["frontend/element_ready/wd_button.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.buttonShowMore()})}),woodmartThemeModule.buttonShowMore=function(){a(".wd-collapsible-content").each(function(){var b=a(this);b.find(".wd-collapsible-button").on("click",function(a){a.preventDefault(),b.toggleClass("wd-opened")})})},a(document).ready(function(){woodmartThemeModule.buttonShowMore()})}(jQuery),function(a){a.each(["frontend/element_ready/wd_popup.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.contentPopup()})}),woodmartThemeModule.contentPopup=function(){void 0!==a.fn.magnificPopup&&a(".wd-open-popup").magnificPopup({type:"inline",removalDelay:500,tClose:woodmart_settings.close,tLoading:woodmart_settings.loading,callbacks:{beforeOpen:function(){this.st.mainClass="mfp-move-horizontal content-popup-wrapper"},open:function(){woodmartThemeModule.$document.trigger("wood-images-loaded")}}})},a(document).ready(function(){woodmartThemeModule.contentPopup()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdProductsTabsLoaded wdUpdateWishlist wdShopPageInit wdArrowsLoadProducts wdLoadMoreLoadProducts",function(){woodmartThemeModule.countDownTimer()}),a.each(["frontend/element_ready/wd_products.default","frontend/element_ready/wd_products_tabs.default","frontend/element_ready/wd_countdown_timer.default","frontend/element_ready/wd_single_product_countdown.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.countDownTimer()})}),woodmartThemeModule.countDownTimer=function(){a(".wd-timer").each(function(){var b=a(this);dayjs.extend(window.dayjs_plugin_utc),dayjs.extend(window.dayjs_plugin_timezone);var c=dayjs.tz(b.data("end-date"),b.data("timezone"));b.countdown(c.toDate(),function(a){b.html(a.strftime('<span class="countdown-days">%-D <span>'+woodmart_settings.countdown_days+'</span></span> <span class="countdown-hours">%H <span>'+woodmart_settings.countdown_hours+'</span></span> <span class="countdown-min">%M <span>'+woodmart_settings.countdown_mins+'</span></span> <span class="countdown-sec">%S <span>'+woodmart_settings.countdown_sec+"</span></span>"))})})},a(document).ready(function(){woodmartThemeModule.countDownTimer()})}(jQuery),function(a){a.each(["frontend/element_ready/wd_counter.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.visibleElements()})}),woodmartThemeModule.counterShortcode=function(a){"done"!==a.attr("data-state")&&parseInt(a.text())===a.data("final")&&a.prop("Counter",0).animate({Counter:a.text()},{duration:3e3,easing:"swing",step:function(b){b>=a.data("final")&&a.attr("data-state","done"),a.text(Math.ceil(b))}})},woodmartThemeModule.visibleElements=function(){a(".woodmart-counter .counter-value").each(function(){var b=a(this);b.waypoint(function(){woodmartThemeModule.counterShortcode(b)},{offset:"100%"})})},a(document).ready(function(){woodmartThemeModule.visibleElements()})}(jQuery),function(a){a.each(["frontend/element_ready/wd_google_map.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.googleMapInit()})}),woodmartThemeModule.googleMapInit=function(){a(".google-map-container").each(function(){var b=a(this),c=b.data("map-args"),d={locations:[{lat:c.latitude,lon:c.longitude,icon:c.marker_icon,animation:google.maps.Animation.DROP}],controls_on_map:!1,map_div:"#"+c.selector,start:1,map_options:{zoom:parseInt(c.zoom),scrollwheel:"yes"===c.mouse_zoom}};c.json_style&&!c.elementor?(d.styles={},d.styles[woodmart_settings.google_map_style_text]=JSON.parse(c.json_style)):c.json_style&&c.elementor&&(d.styles={},d.styles[woodmart_settings.google_map_style_text]=JSON.parse(atob(c.json_style))),"yes"===c.marker_text_needed&&(d.locations[0].html=c.marker_text),"button"===c.init_type?b.find(".wd-init-map").on("click",function(a){a.preventDefault(),b.hasClass("wd-map-inited")||(b.addClass("wd-map-inited"),new Maplace(d).Load())}):"scroll"===c.init_type?woodmartThemeModule.$window.on("scroll",function(){if(window.innerHeight+woodmartThemeModule.$window.scrollTop()+parseInt(c.init_offset)>b.offset().top){if(b.hasClass("wd-map-inited"))return;b.addClass("wd-map-inited"),new Maplace(d).Load()}}):"interaction"===c.init_type?woodmartThemeModule.$window.on("wdEventStarted",function(){new Maplace(d).Load()}):new Maplace(d).Load()});var b=a(".google-map-container-with-content");woodmartThemeModule.$window.on("resize",function(){b.css({height:b.find(".wd-google-map.with-content").outerHeight()})})},a(document).ready(function(){woodmartThemeModule.googleMapInit()})}(jQuery),function(a){a.each(["frontend/element_ready/wd_image_hotspot.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.imageHotspot()})}),woodmartThemeModule.imageHotspot=function(){function b(){a(".wd-image-hotspot .hotspot-content").each(function(){var b=a(this);b.removeClass("hotspot-overflow-right hotspot-overflow-left"),b.attr("style","");var c=b.offset().left,d=woodmartThemeModule.$window.width()-(c+b.outerWidth());woodmartThemeModule.windowWidth>768&&(c<=0&&b.addClass("hotspot-overflow-right"),d<=0&&b.addClass("hotspot-overflow-left")),woodmartThemeModule.windowWidth<=768&&(c<=0&&b.css("marginLeft",Math.abs(c-15)+"px"),d<=0&&b.css("marginLeft",d-15+"px"))})}a(".wd-image-hotspot").each(function(){var c=a(this),d=c.find(".hotspot-btn");!c.parents(".wd-image-hotspot-wrapper").hasClass("hotspot-action-click")&&woodmartThemeModule.$window.width()>1024||(d.on("click",function(){return c.hasClass("hotspot-opened")?c.removeClass("hotspot-opened"):(c.addClass("hotspot-opened"),c.siblings().removeClass("hotspot-opened")),b(),woodmartThemeModule.$document.trigger("wood-images-loaded"),!1}),woodmartThemeModule.$document.on("click",function(b){var d=b.target;if(c.hasClass("hotspot-opened")&&!a(d).is(".wd-image-hotspot")&&!a(d).parents().is(".wd-image-hotspot"))return c.removeClass("hotspot-opened"),!1}))}),a(".wd-image-hotspot-wrapper").each(function(){var b=a(this);b.imagesLoaded(function(){b.addClass("loaded")})})},a(document).ready(function(){woodmartThemeModule.imageHotspot()})}(jQuery),function(a){a.each(["frontend/element_ready/wd_images_gallery.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.imagesGalleryMasonry(),woodmartThemeModule.imagesGalleryJustified()})}),woodmartThemeModule.imagesGalleryMasonry=function(){if(void 0!==a.fn.isotope&&void 0!==a.fn.imagesLoaded){var b=a(".view-masonry .gallery-images");b.imagesLoaded(function(){b.isotope({gutter:0,isOriginLeft:!woodmartThemeModule.$body.hasClass("rtl"),itemSelector:".wd-gallery-item"})})}},woodmartThemeModule.imagesGalleryJustified=function(){a(".view-justified").each(function(){a(this).find(".gallery-images").justifiedGallery({margins:1,cssAnimation:!0})})},a(document).ready(function(){woodmartThemeModule.imagesGalleryMasonry(),woodmartThemeModule.imagesGalleryJustified()})}(jQuery),function(a){a.each(["frontend/element_ready/wd_infobox_carousel.default","frontend/element_ready/wd_infobox.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.infoboxSvg()})}),woodmartThemeModule.infoboxSvg=function(){a(".wd-info-box.with-animation").each(function(){var b=a(this);b.find(".info-svg-wrapper > svg").length>0&&new Vivus(b.find(".info-svg-wrapper > svg")[0],{type:"delayed",duration:200,start:"inViewport",animTimingFunction:Vivus.EASE_OUT},function(){})})},a(document).ready(function(){woodmartThemeModule.infoboxSvg()})}(jQuery),function(a){woodmartThemeModule.instagramAjaxQuery=function(){a(".instagram-widget").each(function(){var b=a(this);if(b.hasClass("instagram-with-error")){var c=b.data("username"),d=b.data("atts"),e=c.indexOf("#")>-1?"explore/tags/"+c.substr(1):c,f="https://www.instagram.com/"+e+"/";b.addClass("loading"),a.ajax({url:f,success:function(c){a.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_instagram_ajax_query",body:c,atts:d},dataType:"json",method:"POST",success:function(a){b.parent().html(a),woodmartThemeModule.$document.trigger("wdInstagramAjaxSuccess")},error:function(){console.log("instagram ajax error")}})},error:function(){console.log("instagram ajax error")}})}})},a(document).ready(function(){woodmartThemeModule.instagramAjaxQuery()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.offCanvasColumnBtn()}),a.each(["frontend/element_ready/column","frontend/element_ready/wd_builder_off_canvas_column_btn.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.offCanvasColumnBtn()})}),woodmartThemeModule.offCanvasColumnBtn=function(){var b=a(".wd-close-side"),c=a('[class*="wd-col-offcanvas"]'),d=c.hasClass("wd-alignment-left")?"left":"right",e=a(".wd-off-canvas-btn, .wd-off-canvas-btn + .wd-sidebar-opener"),f=woodmartThemeModule.$window.width(),g=function(){c.removeClass("wd-left wd-right").addClass("wd-side-hidden wd-"+d+" wd-inited"),0===c.find(".wd-heading").length&&c.prepend('<div class="wd-heading"><div class="close-side-widget wd-action-btn wd-style-text wd-cross-icon"><a href="#" rel="nofollow">'+woodmart_settings.off_canvas_column_close_btn_text+"</a></div></div>"),e.on("click",function(a){a.preventDefault(),c.addClass("wd-scroll wd-opened"),b.addClass("wd-close-side-opened"),c.find(" .elementor-widget-wrap").first().addClass("wd-scroll-content")})};"elementor"===woodmart_settings.current_page_builder&&(c.hasClass("wd-col-offcanvas-lg")&&f>=1024||c.hasClass("wd-col-offcanvas-md-sm")&&768<=f&&f<=1024||c.hasClass("wd-col-offcanvas-sm")&&f<=767)?g():"wpb"===woodmart_settings.current_page_builder&&(c.hasClass("wd-col-offcanvas-lg")&&f>=992||c.hasClass("wd-col-offcanvas-md-sm")&&768<=f&&f<=991||c.hasClass("wd-col-offcanvas-sm")&&f<=767)?g():(e.off("click"),a(".elementor-column").removeClass("wd-side-hidden wd-inited wd-scroll wd-opened wd-left wd-right"),a(".wpb_column").removeClass("wd-side-hidden wd-inited wd-scroll wd-opened wd-left wd-right"),b.removeClass("wd-close-side-opened"),c.find(" .elementor-widget-wrap").first().removeClass("wd-scroll-content"),c.find(".wd-heading").remove()),e.on("click",function(a){a.preventDefault()}),woodmartThemeModule.$body.on("pjax:beforeSend",function(){a(".wd-close-side, .close-side-widget").trigger("click")}),woodmartThemeModule.$body.on("click touchstart",".wd-close-side, .close-side-widget",function(){c.removeClass("wd-opened"),b.removeClass("wd-close-side-opened")})},woodmartThemeModule.$window.on("resize",woodmartThemeModule.debounce(function(){woodmartThemeModule.offCanvasColumnBtn()},300)),a(document).ready(function(){woodmartThemeModule.offCanvasColumnBtn()})}(jQuery),function(a){a.each(["frontend/element_ready/wd_slider.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.sliderAnimations(),woodmartThemeModule.carouselInitFlickity(),woodmartThemeModule.sliderLazyLoad()})}),woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.sliderAnimations(),woodmartThemeModule.carouselInitFlickity(),woodmartThemeModule.sliderLazyLoad()}),woodmartThemeModule.sliderClearAnimations=function(b,c){c&&b.find('[class*="wpb_animate"]').each(function(){for(var b,c=a(this),d=c.attr("class").split(" "),e=0;e<d.length;e++)d[e].indexOf("wd-anim-name_")>=0&&(b=d[e].split("_")[1]);c.removeClass("wpb_start_animation animated").removeClass(b)}),b.siblings().find('[class*="wpb_animate"]').each(function(){for(var b,c=a(this),d=c.attr("class").split(" "),e=0,f=0;f<d.length;f++)d[f].indexOf("wd-anim-delay_")>=0&&(e=parseInt(d[f].split("_")[1])),d[f].indexOf("wd-anim-name_")>=0&&(b=d[f].split("_")[1]);setTimeout(function(){c.removeClass("wpb_start_animation animated").removeClass(b)},e)})},woodmartThemeModule.sliderAnimations=function(){a(".wd-slider").each(function(){function b(a,b){var d=c.find(".wd-slide").eq(a);woodmartThemeModule.sliderClearAnimations(d,b),woodmartThemeModule.runAnimations(d,b)}var c=a(this);c.find('[class*="wd-animation"]').each(function(){a(this).addClass("wd-animation-ready")}),b(0,!0),c.on("change.flickity",function(a,c){b(c,!1)})})},woodmartThemeModule.runAnimations=function(b,c){b.siblings().find('[class*="wd-animation"]').removeClass("wd-animated"),b.find('[class*="wd-animation"]').each(function(){for(var b=a(this),d=b.attr("class").split(" "),e=0,f=0;f<d.length;f++)d[f].indexOf("wd_delay_")>=0&&(e=parseInt(d[f].split("_")[2]));c&&(e+=500),setTimeout(function(){b.addClass("wd-animated")},e)}),b.find('[class*="wpb_animate"]').each(function(){for(var b,d=a(this),e=d.attr("class").split(" "),f=0,g=0;g<e.length;g++)e[g].indexOf("wd-anim-delay_")>=0&&(f=parseInt(e[g].split("_")[1])),e[g].indexOf("wd-anim-name_")>=0&&(b=e[g].split("_")[1]);c&&(f+=500),setTimeout(function(){d.removeClass("wd-off-anim").addClass("wpb_start_animation animated").addClass(b)},f)})},woodmartThemeModule.sliderLazyLoad=function(){function b(b,c){var d=c.find(".wd-slide").eq(b),e=c.find('[id="'+d.attr("id")+'"]');c.find(".wd-slide").eq(b+1).addClass("woodmart-loaded"),d.addClass("woodmart-loaded"),e.each(function(){a(this).addClass("woodmart-loaded")})}woodmartThemeModule.$window.on("wdEventStarted",function(){a(".wd-slider").each(function(){b(0,a(this))})}),a(".wd-slider").on("change.flickity",function(c,d){b(d,a(this))})},woodmartThemeModule.carouselInitFlickity=function(){function b(a){if(!(woodmartThemeModule.windowWidth<=1024&&a.hasClass("disable-owl-mobile"))){var b=!0;(a.hasClass("anim-fade")||a.hasClass("anim-parallax"))&&a.find(".wd-slide").length<=2&&(b=!1);var c={contain:!0,percentPosition:!0,cellAlign:"left",rightToLeft:woodmartThemeModule.$body.hasClass("rtl"),pageDots:"yes"!==a.data("hide_pagination_control"),prevNextButtons:"yes"!==a.data("hide_prev_next_buttons"),autoPlay:"yes"===a.data("autoplay")&&parseInt(a.data("speed")),pauseAutoPlayOnHover:"yes"!==a.data("autoplay"),adaptiveHeight:!0,imagesLoaded:!0,wrapAround:b,fade:a.hasClass("anim-fade"),on:{ready:function(){setTimeout(function(){woodmartThemeModule.$document.trigger("wdCarouselFlickityInited")},100)}}};if(a.find(".wd-slider").flickity(c),setTimeout(function(){a.find(".wd-slider").addClass("wd-enabled")},100),a.find(".wd-slider").on("dragStart.flickity",function(){a.find(".wd-slider").addClass("wd-dragging")}),a.find(".wd-slider").on("dragEnd.flickity",function(){a.find(".wd-slider").removeClass("wd-dragging")}),a.hasClass("anim-parallax")){var d=a.find(".wd-slider").data("flickity"),e=a.find(".wd-slide .wd-slide-bg");a.find(".wd-slider").on("scroll.flickity",function(){d.slides.forEach(function(a,b){var c=e[b],f=0===b?Math.abs(d.x)>d.slidesWidth?d.slidesWidth+d.x+d.slides[d.slides.length-1].outerWidth+a.target:a.target+d.x:b===d.slides.length-1&&Math.abs(d.x)+d.slides[b].outerWidth<d.slidesWidth?a.target-d.slidesWidth+d.x-d.slides[b].outerWidth:a.target+d.x;c.style.transform="translateX("+-.5*f+"px)"})})}}}woodmartThemeModule.$body.hasClass("single-woodmart_slide")||(a(".wd-slider-wrapper:not(.scroll-init)").each(function(){b(a(this))}),void 0!==a.fn.waypoint&&a(".wd-slider-wrapper.scroll-init").waypoint(function(){b(a(a(this)[0].element))},{offset:"100%"}))},a(document).ready(function(){woodmartThemeModule.sliderAnimations(),woodmartThemeModule.carouselInitFlickity(),woodmartThemeModule.sliderLazyLoad()})}(jQuery),function(a){a.each(["frontend/element_ready/wd_tabs.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.tabs()})}),woodmartThemeModule.tabs=function(){a(".wd-tabs").each(function(){var b=a(this),c=b.find(".wd-nav-tabs > li"),d=b.find(".wd-tab-content-wrapper > .wd-tab-content"),e="wd-in",f=100;c.on("click",function(b){b.preventDefault();var c=a(this),g=c.index(),h=d.eq(g);h.siblings().removeClass(e),setTimeout(function(){c.siblings().removeClass("wd-active"),h.siblings().removeClass("wd-active")},f),setTimeout(function(){c.addClass("wd-active"),h.siblings().removeClass("wd-active"),h.addClass("wd-active")},f),setTimeout(function(){h.addClass(e)},2*f)}),a(c[0]).hasClass("wd-active")||a(c[0]).trigger("click"),setTimeout(function(){b.addClass("wd-inited")},2*f)})},a(document).ready(function(){woodmartThemeModule.tabs()})}(jQuery),function(a){woodmartThemeModule.videoPoster=function(){a(".wd-video-poster-wrapper").on("click",function(){var b=a(this),c=b.parent().find("iframe"),d=c.attr("src"),e=d+"&autoplay=1";d.indexOf("vimeo.com")+1&&(e=d+"?autoplay=1"),c.attr("src",e),b.addClass("hidden-poster")})},a(document).ready(function(){woodmartThemeModule.videoPoster()})}(jQuery),function(a){a.each(["frontend/element_ready/wd_3d_view.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.view3d()})}),woodmartThemeModule.view3d=function(){function b(a){var b=a.data("args");if(!b||a.hasClass("wd-threed-view-inited"))return!1;a.ThreeSixty({totalFrames:b.frames_count,endFrame:b.frames_count,currentFrame:1,imgList:".threed-view-images",progress:".spinner",imgArray:b.images,height:b.height,width:b.width,responsive:!0,navigation:!0,framerate:woodmart_settings.three_sixty_framerate}),a.addClass("wd-threed-view-inited")}a(".wd-threed-view:not(.wd-product-threed)").each(function(){b(a(this))}),a(".product-360-button a").on("click",function(c){c.preventDefault(),b(a(".wd-threed-view.wd-product-threed"))})},a(document).ready(function(){woodmartThemeModule.view3d()})}(jQuery),function(a){woodmartThemeModule.ageVerify=function(){"undefined"!=typeof Cookies&&"yes"===woodmart_settings.age_verify&&"confirmed"!==Cookies.get("woodmart_age_verify")&&(a.magnificPopup.open({items:{src:".wd-age-verify"},type:"inline",closeOnBgClick:!1,closeBtnInside:!1,showCloseBtn:!1,enableEscapeKey:!1,removalDelay:500,tClose:woodmart_settings.close,tLoading:woodmart_settings.loading,callbacks:{beforeOpen:function(){this.st.mainClass="mfp-move-horizontal wd-promo-popup-wrapper"}}}),a(".wd-age-verify-allowed").on("click",function(b){b.preventDefault(),Cookies.set("woodmart_age_verify","confirmed",{expires:parseInt(woodmart_settings.age_verify_expires),path:"/",secure:woodmart_settings.cookie_secure_param}),a.magnificPopup.close()}),a(".wd-age-verify-forbidden").on("click",function(b){b.preventDefault(),a(".wd-age-verify").addClass("wd-forbidden")}))},a(document).ready(function(){woodmartThemeModule.ageVerify()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.ajaxSearch()}),a.each(["frontend/element_ready/wd_search.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.ajaxSearch()})}),woodmartThemeModule.ajaxSearch=function(){if(void 0!==a.fn.devbridgeAutocomplete){var b=function(a){return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")};a("form.woodmart-ajax-search").each(function(){var c=a(this),d=parseInt(c.data("count")),e=parseInt(c.data("thumbnail")),f=parseInt(c.data("symbols_count")),g=c.find('[name="product_cat"]'),h=c.parent().find(".wd-dropdown-results > .wd-scroll-content"),i=c.data("post_type"),j=woodmart_settings.ajaxurl+"?action=woodmart_ajax_search",k=parseInt(c.data("price")),l=c.data("sku");d>0&&(j+="&number="+d),j+="&post_type="+i,h.on("click",".view-all-results",function(){c.submit()}),g.length&&""!==g.val()&&(j+="&product_cat="+g.val()),c.find('[type="text"]').on("focus keyup",function(){var m=a(this);if(!m.hasClass("wd-search-inited")){if(m.devbridgeAutocomplete({serviceUrl:j,appendTo:h,minChars:f,deferRequestBy:woodmart_settings.ajax_search_delay,onSelect:function(a){a.permalink.length>0&&(window.location.href=a.permalink)},onHide:function(){h.parent().removeClass("wd-opened")},onSearchStart:function(){c.addClass("search-loading")},beforeRender:function(b){a(b).find(".suggestion-divider-title").parent().addClass("suggestion-divider"),b[0].childElementCount>2&&a(b).append('<div class="view-all-results"><span>'+woodmart_settings.all_results+"</span></div>"),a(b).removeAttr("style")},onSearchComplete:function(){c.removeClass("search-loading"),woodmartThemeModule.$document.trigger("wood-images-loaded")},formatResult:function(a,c){"&"===c&&(c="&#038;");var d="("+b(c)+")",f="";return a.divider&&(f+=' <h5 class="suggestion-divider-title">'+a.divider+"</h5>"),
e&&a.thumbnail&&(f+=' <div class="suggestion-thumb">'+a.thumbnail+"</div>"),a.value&&(f+=' <div class="suggestion-content set-cont-mb-s reset-last-child">',f+='<h4 class="wd-entities-title">'+a.value.replace(new RegExp(d,"gi"),"<strong>$1</strong>").replace(/&lt;(\/?strong)&gt;/g,"<$1>")+"</h4>"),l&&a.sku&&(f+=' <p class="suggestion-sku">'+a.sku+"</p>"),k&&a.price&&(f+=' <p class="price">'+a.price+"</p>"),a.value&&(f+=" </div>"),a.no_found&&(f='<span class="no-found-msg">'+a.value+"</span>"),h.parent().addClass("wd-opened"),f}}),g.length){var n=c.find('[type="text"]').devbridgeAutocomplete(),o=woodmart_settings.ajaxurl+"?action=woodmart_ajax_search";d>0&&(o+="&number="+d),o+="&post_type="+i,g.on("cat_selected",function(){""!==g.val()?n.setOptions({serviceUrl:o+"&product_cat="+g.val()}):n.setOptions({serviceUrl:o}),n.hide(),n.onValueChange()})}m.addClass("wd-search-inited")}}),woodmartThemeModule.$document.on("click",function(b){var d=b.target;a(d).is(".wd-search-form")||a(d).parents().is(".wd-search-form")||a(d).is(".wd-search-full-screen")||a(d).parents().is(".wd-search-full-screen")||c.find('[type="text"]').devbridgeAutocomplete("hide")}),a(".wd-dropdown-results > .wd-scroll-content").on("click",function(a){a.stopPropagation()})})}},a(document).ready(function(){woodmartThemeModule.ajaxSearch()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdElementorSectionReady wdElementorColumnReady wdElementorGlobalReady",function(){woodmartThemeModule.animations()}),woodmartThemeModule.animations=function(){void 0!==a.fn.waypoint&&a('[class*="wd-animation"]').each(function(){var b=a(this);"inited"===b.data("wd-waypoint")||b.parents(".wd-autoplay-animations-off").length>0||(b.data("wd-waypoint","inited"),b.waypoint(function(){for(var b=a(a(this)[0].element),c=b.attr("class").split(" "),d=0,e=0;e<c.length;e++)c[e].indexOf("wd_delay_")>=0&&(d=c[e].split("_")[2]);b.addClass("wd-animation-ready"),setTimeout(function(){b.addClass("wd-animated")},d)},{offset:"90%"}))})},a(document).ready(function(){woodmartThemeModule.animations()})}(jQuery),function(a){woodmartThemeModule.animationsOffset=function(){void 0!==a.fn.waypoint&&a(".wpb_animate_when_almost_visible:not(.wpb_start_animation)").waypoint(function(){a(a(this)[0].element).addClass("wpb_start_animation animated")},{offset:"100%"})},a(document).ready(function(){woodmartThemeModule.animationsOffset()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdShopPageInit wdBackHistory",function(){woodmartThemeModule.backHistory()}),woodmartThemeModule.backHistory=function(){a(".wd-back-btn > a").on("click",function(b){b.preventDefault(),history.go(-1),setTimeout(function(){a(".filters-area").removeClass("filters-opened").stop().hide(),woodmartThemeModule.$window.width()<=1024&&a(".wd-nav-product-cat").removeClass("categories-opened").stop().hide(),woodmartThemeModule.$document.trigger("wdBackHistory")},20)})},a(document).ready(function(){woodmartThemeModule.backHistory()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdBackHistory wdProductsTabsLoaded wdActionAfterAddToCart wdShopPageInit wdArrowsLoadProducts wdLoadMoreLoadProducts wdUpdateWishlist wdQuickViewOpen wdQuickShopSuccess wdProductBaseHoverIconsResize",function(){woodmartThemeModule.btnsToolTips()}),a.each(["frontend/element_ready/wd_products.default","frontend/element_ready/wd_products_tabs.default","frontend/element_ready/wd_single_product_nav.default","frontend/element_ready/wd_single_product_size_guide_button.default","frontend/element_ready/wd_single_product_compare_button.default","frontend/element_ready/wd_single_product_wishlist_button.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.btnsToolTips()})}),woodmartThemeModule.btnsToolTips=function(){a('.woodmart-css-tooltip, .wd-buttons[class*="wd-pos-r"] div > a').on("mouseenter touchstart",function(){var b=a(this);!b.hasClass("wd-add-img-msg")&&a(window).width()<=1024||b.hasClass("wd-tooltip-inited")||(b.find(".wd-tooltip-label").remove(),b.addClass("wd-tltp").prepend('<span class="wd-tooltip-label">'+b.text()+"</span>"),b.addClass("wd-tooltip-inited"))}),woodmartThemeModule.windowWidth<=1024||a(".wd-tooltip, .wd-hover-icons .wd-buttons .wd-action-btn:not(.wd-add-btn) > a, .wd-hover-icons .wd-buttons .wd-add-btn, body:not(.catalog-mode-on):not(.login-see-prices) .wd-hover-base .wd-bottom-actions .wd-action-btn.wd-style-icon:not(.wd-add-btn) > a, body:not(.catalog-mode-on):not(.login-see-prices) .wd-hover-base .wd-bottom-actions .wd-action-btn.wd-style-icon.wd-add-btn, .wd-hover-base .wd-compare-btn > a, .wd-products-nav .wd-btn-back, .wd-single-action-btn .wd-action-btn.wd-style-icon a").on("mouseenter touchstart",function(){var b=a(this);b.hasClass("wd-tooltip-inited")||(b.tooltip({animation:!1,container:"body",trigger:"hover",boundary:"window",title:function(){var b=a(this);return b.find(".added_to_cart").length>0?b.find(".add_to_cart_button").text():b.find(".add_to_cart_button").length>0?b.find(".add_to_cart_button").text():b.text()}}),b.tooltip("show"),b.addClass("wd-tooltip-inited"))})},a(document).ready(function(){woodmartThemeModule.btnsToolTips()})}(jQuery),function(a){woodmartThemeModule.callPhotoSwipe=function(a,b){woodmartThemeModule.$body.hasClass("rtl")&&(a=b.length-a-1,b=b.reverse());var c={index:a,shareButtons:[{id:"facebook",label:woodmart_settings.share_fb,url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:woodmart_settings.tweet,url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:woodmart_settings.pin_it,url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"},{id:"download",label:woodmart_settings.download_image,url:"{{raw_image_url}}",download:!0}],closeOnScroll:woodmart_settings.photoswipe_close_on_scroll};woodmartThemeModule.$body.find(".pswp").remove(),woodmartThemeModule.$body.append(woodmart_settings.photoswipe_template);var d=document.querySelectorAll(".pswp")[0];new PhotoSwipe(d,PhotoSwipeUI_Default,b,c).init()}}(jQuery),function(a){woodmartThemeModule.clickOnScrollButton=function(b,c,d){if("function"==typeof a.fn.waypoint){var e=a(b);if(0!==e.length){e.trigger("wd-waypoint-destroy"),d||(d=0);var f=new Waypoint({element:e[0],handler:function(){e.trigger("click")},offset:function(){return woodmartThemeModule.$window.outerHeight()+parseInt(d)}});e.data("waypoint-inited",!0).off("wd-waypoint-destroy").on("wd-waypoint-destroy",function(){e.data("waypoint-inited")&&(f.destroy(),e.data("waypoint-inited",!1))})}}}}(jQuery),function(a){woodmartThemeModule.cookiesPopup=function(){var b=woodmart_settings.cookies_version;if("undefined"!=typeof Cookies&&"accepted"!==Cookies.get("woodmart_cookies_"+b)){var c=a(".wd-cookies-popup");setTimeout(function(){c.addClass("popup-display"),c.on("click",".cookies-accept-btn",function(a){a.preventDefault(),d()})},2500);var d=function(){c.removeClass("popup-display").addClass("popup-hide"),Cookies.set("woodmart_cookies_"+b,"accepted",{expires:60,path:"/",secure:woodmart_settings.cookie_secure_param})}}},a(document).ready(function(){woodmartThemeModule.cookiesPopup()})}(jQuery),function(a){woodmartThemeModule.footerWidgetsAccordion=function(){woodmartThemeModule.windowWidth>=576||a(".footer-widget-collapse .widget-title").on("click",function(){var b=a(this),c=b.parent(),d=c.find("> *:not(.widget-title)");c.hasClass("footer-widget-opened")?(c.removeClass("footer-widget-opened"),d.stop().slideUp(200)):(c.addClass("footer-widget-opened"),d.stop().slideDown(200),woodmartThemeModule.$document.trigger("wood-images-loaded"))})},a(document).ready(function(){woodmartThemeModule.footerWidgetsAccordion()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdPjaxStart",function(){woodmartThemeModule.hideShopSidebar()}),woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.hiddenSidebar()}),woodmartThemeModule.hiddenSidebar=function(){var b=woodmartThemeModule.$body.hasClass("rtl")?"right":"left";(woodmartThemeModule.$body.hasClass("offcanvas-sidebar-desktop")&&woodmartThemeModule.windowWidth>1024||woodmartThemeModule.$body.hasClass("offcanvas-sidebar-tablet")&&woodmartThemeModule.windowWidth<=1024)&&(a(".area-sidebar-shop").addClass("wd-side-hidden wd-"+b+" wd-inited wd-scroll"),a(".area-sidebar-shop .widget-area").addClass("wd-scroll-content")),woodmartThemeModule.$body.hasClass("offcanvas-sidebar-mobile")&&woodmartThemeModule.windowWidth<=768&&(a(".sidebar-container").addClass("wd-side-hidden wd-"+b+" wd-inited wd-scroll"),a(".sidebar-container .widget-area").addClass("wd-scroll-content")),woodmartThemeModule.$body.off("click",".wd-show-sidebar-btn, .wd-sidebar-opener").on("click",".wd-show-sidebar-btn, .wd-sidebar-opener",function(b){b.preventDefault(),a(".sidebar-container").hasClass("wd-opened")?woodmartThemeModule.hideShopSidebar():c()}),woodmartThemeModule.$body.on("click touchstart",".wd-close-side, .close-side-widget",function(){woodmartThemeModule.hideShopSidebar()});var c=function(){a(".sidebar-container").addClass("wd-opened"),a(".wd-close-side").addClass("wd-close-side-opened")};woodmartThemeModule.$document.trigger("wdHiddenSidebarsInited")},woodmartThemeModule.hideShopSidebar=function(){a(".sidebar-container").removeClass("wd-opened"),a(".wd-close-side").removeClass("wd-close-side-opened")},a(document).ready(function(){woodmartThemeModule.hiddenSidebar()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdHiddenSidebarsInited",function(){woodmartThemeModule.lazyLoading()}),a.each(["frontend/element_ready/wd_products.default","frontend/element_ready/wd_products_tabs.default","frontend/element_ready/wd_product_categories.default","frontend/element_ready/wd_products_brands.default","frontend/element_ready/wd_blog.default","frontend/element_ready/wd_images_gallery.default","frontend/element_ready/wd_product_categories.default","frontend/element_ready/wd_slider.default","frontend/element_ready/wd_banner_carousel.default","frontend/element_ready/wd_banner.default","frontend/element_ready/wd_infobox_carousel.default","frontend/element_ready/wd_infobox.default","frontend/element_ready/wd_instagram.default","frontend/element_ready/wd_testimonials.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.lazyLoading()})}),woodmartThemeModule.lazyLoading=function(){function b(){f=f||setTimeout(function(){f=null,c()},100)}function c(){g.length&&requestAnimationFrame(function(){for(var a,b,c,f=parseInt(woodmart_settings.lazy_loading_offset),h=window.pageYOffset,i=h+window.innerHeight+f,j=0;j<g.length;)a=g[j].getBoundingClientRect(),b=h+a.top,c=b+a.height,h<c&&i>b&&!g[j].loaded?d(g[j],j):j++;e=g.length})}function d(a){function b(){requestAnimationFrame(function(){a.classList.add("wd-loaded");var b=jQuery(a).parents(".view-masonry .gallery-images, .grid-masonry, .masonry-container");b.length>0&&b.isotope("layout");var c=jQuery(a).parents(".categories-masonry");c.length>0&&c.packery()})}a.onload=b,null!==a.querySelector("img")&&(a.querySelector("img").onload=b,a.querySelector("img").src=a.dataset.woodSrc,a.querySelector("source").srcset=a.dataset.woodSrc,void 0!==a.dataset.srcset&&(a.querySelector("img").srcset=a.dataset.srcset)),a.src=a.dataset.woodSrc,void 0!==a.dataset.srcset&&(a.srcset=a.dataset.srcset),a.loaded=!0}if(window.addEventListener&&window.requestAnimationFrame&&document.getElementsByClassName){var e,f,g=document.getElementsByClassName("wd-lazy-load");if(woodmartThemeModule.$document.on("wood-images-loaded added_to_cart updated_checkout",function(){c()}),woodmartThemeModule.$body.on("click",".wd-header-mobile-nav > a, .wd-nav-opener, .wd-btn-show-cat",function(){woodmartThemeModule.$document.trigger("wood-images-loaded")}),a(".wd-scroll-content").on("scroll",function(){woodmartThemeModule.$document.trigger("wood-images-loaded")}),a(".wc-tabs > li").on("click",function(){woodmartThemeModule.$document.trigger("wood-images-loaded")}),window.addEventListener("scroll",b,!1),window.addEventListener("resize",b,!1),MutationObserver){new MutationObserver(function(){g.length!==e&&c()}).observe(document.body,{subtree:!0,childList:!0,attributes:!0,characterData:!0})}c()}},a(document).ready(function(){woodmartThemeModule.lazyLoading()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdPortfolioPjaxComplete",function(){woodmartThemeModule.masonryLayout()}),a.each(["frontend/element_ready/wd_blog.default","frontend/element_ready/wd_portfolio.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.masonryLayout()})}),woodmartThemeModule.masonryLayout=function(){if(void 0!==a.fn.isotope&&void 0!==a.fn.imagesLoaded){var b=a(".masonry-container");b.imagesLoaded(function(){b.isotope({gutter:0,isOriginLeft:!woodmartThemeModule.$body.hasClass("rtl"),itemSelector:".blog-design-masonry, .blog-design-mask, .masonry-item"})})}},a(document).ready(function(){woodmartThemeModule.masonryLayout()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdPortfolioLoadMoreLoaded",function(){woodmartThemeModule.mfpPopup()}),woodmartThemeModule.mfpPopup=function(){void 0!==a.fn.magnificPopup&&a(".gallery").magnificPopup({delegate:"a",type:"image",removalDelay:500,tClose:woodmart_settings.close,tLoading:woodmart_settings.loading,callbacks:{beforeOpen:function(){this.st.image.markup=this.st.image.markup.replace("mfp-figure","mfp-figure mfp-with-anim"),this.st.mainClass="mfp-move-horizontal"}},image:{verticalFit:!0},gallery:{enabled:!0,navigateByImgClick:!0}})},a(document).ready(function(){woodmartThemeModule.mfpPopup()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdInstagramAjaxSuccess wdLoadDropdownsSuccess wdProductsTabsLoaded wdShopPageInit",function(){woodmartThemeModule.owlCarouselInit()}),a.each(["frontend/element_ready/wd_products.default","frontend/element_ready/wd_products_tabs.default","frontend/element_ready/wd_product_categories.default","frontend/element_ready/wd_products_brands.default","frontend/element_ready/wd_blog.default","frontend/element_ready/wd_portfolio.default","frontend/element_ready/wd_images_gallery.default","frontend/element_ready/wd_product_categories.default","frontend/element_ready/wd_banner_carousel.default","frontend/element_ready/wd_infobox_carousel.default","frontend/element_ready/wd_instagram.default","frontend/element_ready/wd_testimonials.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.owlCarouselInit()})}),woodmartThemeModule.owlCarouselInit=function(){function b(b){function c(){var b=d.find(".owl-item.active").find(".wd-slide").attr("id"),c=d.find('[id="'+b+'"]');d.find(".owl-item.pseudo-active").removeClass("pseudo-active"),c.each(function(){var b=a(this);b.parent().hasClass("active")||b.parent().addClass("pseudo-active")})}var d=b.find(".owl-carousel");if(!(woodmartThemeModule.windowWidth<=1024&&b.hasClass("disable-owl-mobile")||d.hasClass("owl-loaded"))){var e={rtl:woodmartThemeModule.$body.hasClass("rtl"),items:b.data("desktop")?b.data("desktop"):1,responsive:{1025:{items:b.data("desktop")?b.data("desktop"):1},769:{items:b.data("tablet_landscape")?b.data("tablet_landscape"):1},577:{items:b.data("tablet")?b.data("tablet"):1},0:{items:b.data("mobile")?b.data("mobile"):1}},autoplay:"yes"===b.data("autoplay"),autoplayHoverPause:"yes"===b.data("autoplay"),autoplayTimeout:b.data("speed")?b.data("speed"):5e3,dots:"yes"!==b.data("hide_pagination_control"),nav:"yes"!==b.data("hide_prev_next_buttons"),autoHeight:"yes"===b.data("autoheight"),slideBy:void 0!==b.data("scroll_per_page")?1:"page",navText:!1,navClass:["owl-prev wd-btn-arrow","owl-next wd-btn-arrow"],center:"yes"===b.data("center_mode"),loop:"yes"===b.data("wrap"),dragEndSpeed:b.data("dragendspeed")?b.data("dragendspeed"):200};b.data("sliding_speed")&&(e.smartSpeed=b.data("sliding_speed"),e.dragEndSpeed=b.data("sliding_speed")),b.data("animation")&&(e.animateOut=b.data("animation"),e.mouseDrag=!0),b.data("content_animation")&&(c(),e.onTranslated=function(){c()}),woodmartThemeModule.$window.on("vc_js",function(){d.trigger("refresh.owl.carousel")}),d.find("link").appendTo("head"),d.owlCarousel(e),"yes"===b.data("autoheight")&&d.imagesLoaded(function(){d.trigger("refresh.owl.carousel")})}}a("[data-owl-carousel]:not(.scroll-init):not(.wd-slider-wrapper)").each(function(){b(a(this))}),void 0!==a.fn.waypoint&&a("[data-owl-carousel].scroll-init:not(.wd-slider-wrapper)").waypoint(function(){b(a(a(this)[0].element))},{offset:"100%"})},a(document).ready(function(){woodmartThemeModule.owlCarouselInit()})}(jQuery),function(a){woodmartThemeModule.parallax=function(){woodmartThemeModule.windowWidth<=1024||a(".wd-parallax").each(function(){var b=a(this);if(b.hasClass("wpb_column")){var c=b.find("> .vc_column-inner");b.removeClass("wd-parallax"),c.addClass("wd-parallax"),c.parallax("50%",.3)}else b.parallax("50%",.3)})},a(document).ready(function(){woodmartThemeModule.parallax()})}(jQuery),function(a){woodmartThemeModule.photoswipeImages=function(){a(".photoswipe-images").each(function(){var c=a(this);c.on("click","a",function(d){d.preventDefault();var e=a(d.currentTarget).data("index")-1,f=b(c,[]);woodmartThemeModule.callPhotoSwipe(e,f)})});var b=function(b,d){var e,f,g,h;return b.find("a").each(function(){var b=a(this);e=b.attr("href"),f=b.data("width"),g=b.data("height"),h=b.attr("title"),c(d,e)||d.push({src:e,w:f,h:g,title:h})}),d},c=function(a,b){var c;for(c=0;c<a.length;c++)if(a[c].src===b)return!0;return!1}},a(document).ready(function(){woodmartThemeModule.photoswipeImages()})}(jQuery),function(a){woodmartThemeModule.promoPopup=function(){var b=woodmart_settings.promo_version;if("undefined"!=typeof Cookies&&!(woodmartThemeModule.$body.hasClass("page-template-maintenance")||"yes"!==woodmart_settings.enable_popup||"yes"===woodmart_settings.promo_popup_hide_mobile&&woodmartThemeModule.windowWidth<768||"confirmed"!==Cookies.get("woodmart_age_verify")&&"yes"===woodmart_settings.age_verify)){var c=!1,d=Cookies.get("woodmart_shown_pages"),e=function(){a.magnificPopup.open({items:{src:".wd-promo-popup"},type:"inline",removalDelay:500,tClose:woodmart_settings.close,tLoading:woodmart_settings.loading,callbacks:{beforeOpen:function(){this.st.mainClass="mfp-move-horizontal wd-promo-popup-wrapper"},close:function(){Cookies.set("woodmart_popup_"+b,"shown",{expires:parseInt(woodmart_settings.promo_version_cookie_expires),path:"/",secure:woodmart_settings.cookie_secure_param})}}}),woodmartThemeModule.$document.trigger("wood-images-loaded")};if(a(".woodmart-open-newsletter").on("click",function(a){a.preventDefault(),e()}),d||(d=0),d<woodmart_settings.popup_pages)return d++,Cookies.set("woodmart_shown_pages",d,{expires:7,path:"/",secure:woodmart_settings.cookie_secure_param}),!1;"shown"!==Cookies.get("woodmart_popup_"+b)&&("scroll"===woodmart_settings.popup_event?woodmartThemeModule.$window.on("scroll",function(){if(c)return!1;woodmartThemeModule.$document.scrollTop()>=woodmart_settings.popup_scroll&&(e(),c=!0)}):setTimeout(function(){e()},woodmart_settings.popup_delay))}},a(document).ready(function(){woodmartThemeModule.promoPopup()})}(jQuery),function(a){woodmartThemeModule.scrollTop=function(){var b=a(".scrollToTop");woodmartThemeModule.$window.on("scroll",function(){a(this).scrollTop()>100?b.addClass("button-show"):b.removeClass("button-show")}),b.on("click",function(){return a("html, body").animate({scrollTop:0},800),!1})},a(document).ready(function(){woodmartThemeModule.scrollTop()})}(jQuery),function(a){woodmartThemeModule.searchFullScreen=function(){var b=a(".wd-search-full-screen");woodmartThemeModule.$body.on("click",".wd-header-search.wd-display-full-screen > a",function(b){b.preventDefault(),a(this).parent().find(".wd-search-dropdown").length>0||woodmartThemeModule.$body.hasClass("global-search-dropdown")||(f()?d():setTimeout(function(){e()},10))}),woodmartThemeModule.$body.on("click",".wd-close-search a, .main-page-wrapper, .header-banner",function(b){!a(b.target).is(".wd-close-search a")&&a(b.target).closest(".wd-search-full-screen").length||f()&&d()});var c=function(a){27===a.keyCode&&(d(),woodmartThemeModule.$body.unbind("keyup",c))},d=function(){woodmartThemeModule.$body.removeClass("wd-search-opened"),b.removeClass("wd-opened")},e=function(){var e,g=a("#wpadminbar"),h=g.length>0?g.outerHeight():0,i=a(".whb-sticked"),j=a(".whb-main-header");i.length>0?e=a(".whb-clone").length>0?i.outerHeight()+h:j.outerHeight()+h:(e=j.outerHeight()+h,woodmartThemeModule.$body.hasClass("header-banner-display")&&(e+=a(".header-banner").outerHeight())),b.css("top",e),woodmartThemeModule.$body.on("keyup",c),woodmartThemeModule.$body.addClass("wd-search-opened"),b.addClass("wd-opened"),setTimeout(function(){b.find('input[type="text"]').trigger("focus"),woodmartThemeModule.windowWidth>1024&&woodmartThemeModule.$window.one("scroll",function(){f()&&d()})},300)},f=function(){return woodmartThemeModule.$body.hasClass("wd-search-opened")}},a(document).ready(function(){woodmartThemeModule.searchFullScreen()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdElementorColumnReady",function(){woodmartThemeModule.stickyColumn()}),woodmartThemeModule.stickyColumn=function(){a(".woodmart-sticky-column").each(function(){for(var b=a(this),c=150,d=b.attr("class").split(" "),e=0;e<d.length;e++)if(d[e].indexOf("wd_sticky_offset_")>=0){var f=d[e].split("_");c=parseInt(f[3])}b.find(" > .vc_column-inner > .wpb_wrapper").trigger("sticky_kit:detach"),b.find(" > .vc_column-inner > .wpb_wrapper").stick_in_parent({offset_top:c})}),a(".wd-elementor-sticky-column").each(function(){for(var b=a(this),c=150,d=b.attr("class").split(" "),e=0;e<d.length;e++)if(d[e].indexOf("wd_sticky_offset_")>=0){var f=d[e].split("_");c=parseInt(f[3])}var g=b.find("> .elementor-column-wrap > .elementor-widget-wrap");g.length<=0&&(g=b.find("> .elementor-widget-wrap")),g.stick_in_parent({offset_top:c})})},a(document).ready(function(){woodmartThemeModule.stickyColumn()})}(jQuery),function(a){woodmartThemeModule.stickyFooter=function(){if(woodmartThemeModule.$body.hasClass("sticky-footer-on")&&!(woodmartThemeModule.$window.width()<=1024)){var b=a(".footer-container"),c=a(".main-page-wrapper"),d=a(".wd-prefooter"),e=woodmartThemeModule.$window;d.length>0&&(c=d);var f=function(){c.css({marginBottom:b.outerHeight()})};e.on("resize",f),b.imagesLoaded(function(){f()});var g=function(){if(a("html").hasClass("browser-Safari")){var c=e.scrollTop();woodmartThemeModule.$document.outerHeight()-b.outerHeight()<c+b.outerHeight()+e.outerHeight()?b.addClass("visible-footer"):b.removeClass("visible-footer")}};g(),e.on("scroll",g)}},a(document).ready(function(){woodmartThemeModule.stickyFooter()})}(jQuery),function(a){woodmartThemeModule.stickySocialButtons=function(){a(".wd-sticky-social").addClass("buttons-loaded")},a(document).ready(function(){woodmartThemeModule.stickySocialButtons()})}(jQuery),function(a){woodmartThemeModule.widgetsHidable=function(){woodmartThemeModule.$document.on("click",".widget-hidable .widget-title",function(){var b=a(this),c=b.siblings("ul, div, form, label, select");b.parent().toggleClass("widget-hidden"),c.stop().slideToggle(200)})},a(document).ready(function(){woodmartThemeModule.widgetsHidable()})}(jQuery),function(a){woodmartThemeModule.headerBanner=function(){var b=woodmart_settings.header_banner_version;if("undefined"!=typeof Cookies&&"closed"!==Cookies.get("woodmart_tb_banner_"+b)&&"no"!==woodmart_settings.header_banner_close_btn&&"no"!==woodmart_settings.header_banner_enabled){woodmartThemeModule.$body.hasClass("page-template-maintenance")||woodmartThemeModule.$body.addClass("header-banner-display"),a(".header-banner").on("click",".close-header-banner",function(a){a.preventDefault(),c()});var c=function(){woodmartThemeModule.$body.removeClass("header-banner-display").addClass("header-banner-hide"),Cookies.set("woodmart_tb_banner_"+b,"closed",{expires:parseInt(woodmart_settings.banner_version_cookie_expires),path:"/",secure:woodmart_settings.cookie_secure_param})}}},a(document).ready(function(){woodmartThemeModule.headerBanner()})}(jQuery),function(a){woodmartThemeModule.headerBuilder=function(){function b(){k||(k=!0,f.addClass("whb-sticked"),d())}function c(){k&&(k=!1,f.removeClass("whb-sticked"),d())}function d(){f.hasClass("whb-boxed")&&(a(".wd-offsets-calculated .wd-dropdown-menu").attr("style",""),a(".wd-offsets-calculated").removeClass("wd-offsets-calculated"),woodmartThemeModule.$window.trigger("wdHeaderBuilderStickyChanged"))}var e,f=a(".whb-header"),g=a(".header-banner"),h=a(".whb-sticky-row"),i="",j=woodmartThemeModule.$window,k=!1,l=300,m="",n=f.hasClass("whb-hide-on-scroll");if(h.each(function(){var b=a(this);if(b[0].offsetHeight>10)return i=b,!1}),f.hasClass("whb-sticky-real")||f.hasClass("whb-scroll-slide")){var o=a("#wpadminbar"),p=f.find(".whb-main-header")[0].offsetHeight,q=o.length>0?o[0].offsetHeight:0;if(f.hasClass("whb-sticky-real")){if(0===i.length||i[0].offsetHeight<10)return;f.addClass("whb-sticky-prepared").css({paddingTop:p}),l=Math.ceil(i.offset().top)-q}f.hasClass("whb-scroll-slide")&&(l=p+q)}if(f.hasClass("whb-sticky-clone")){var r=[];r.cloneClass=f.find(".whb-general-header").attr("class"),n&&(r.wrapperClasses="whb-hide-on-scroll"),m=woodmart_settings.whb_header_clone,m=m.replace(/<%([^%>]+)?%>/g,function(b){var c=b.slice(2,-2);return f.find(c).length?a("<div>").append(f.find(c).first().clone()).html():void 0!==r[c]?r[c]:""}),m=m.replace(/<link[^>]*>/g,""),f.after(m),f=f.parent().find(".whb-clone"),f.find(".whb-row").removeClass("whb-flex-equal-sides").addClass("whb-flex-flex-middle")}j.on("scroll",function(){var d=l,h=woodmartThemeModule.$window.scrollTop(),i=woodmartThemeModule.$window.height(),j=woodmartThemeModule.$document.height();g.length>0&&woodmartThemeModule.$body.hasClass("header-banner-display")&&(d+=g[0].offsetHeight),!a(".close-header-banner").length&&f.hasClass("whb-scroll-stick")&&(d=l),h>d?b():c();var k=100;f.hasClass("whb-scroll-stick")&&(k=500),n&&(e-h>0&&h>d?(f.addClass("whb-scroll-up"),f.removeClass("whb-scroll-down")):h-e>0&&h+i!==j&&h>d+k?(f.addClass("whb-scroll-down"),f.removeClass("whb-scroll-up")):h<=d?(f.removeClass("whb-scroll-down"),f.removeClass("whb-scroll-up")):h+i>=j-5&&(f.addClass("whb-scroll-up"),f.removeClass("whb-scroll-down"))),e=h}),woodmartThemeModule.$document.trigger("wdHeaderBuilderInited")},woodmartThemeModule.$window.on("wdEventStarted",function(){woodmartThemeModule.headerBuilder()})}(jQuery),function(a){woodmartThemeModule.mobileSearchIcon=function(){woodmartThemeModule.$body.on("click",".wd-header-search-mobile:not(.wd-display-full-screen)",function(b){b.preventDefault();var c=a(".mobile-nav");c.hasClass("wd-opened")||(c.addClass("wd-opened"),a(".wd-close-side").addClass("wd-close-side-opened"),a(".mobile-nav .searchform").find('input[type="text"]').trigger("focus"))})},a(document).ready(function(){woodmartThemeModule.mobileSearchIcon()})}(jQuery),function(a){woodmartThemeModule.fullScreenMenu=function(){a(".wd-header-fs-nav > a").on("click",function(b){b.preventDefault(),a(".wd-fs-menu").addClass("wd-opened")}),woodmartThemeModule.$document.on("keyup",function(b){27===b.keyCode&&a(".wd-fs-close").click()}),a(".wd-fs-close").on("click",function(){a(".wd-fs-menu").removeClass("wd-opened"),setTimeout(function(){a(".wd-nav-fs .menu-item-has-children").removeClass("sub-menu-open"),a(".wd-nav-fs .menu-item-has-children .wd-nav-opener").removeClass("wd-active")},200)}),a(".wd-nav-fs > .menu-item-has-children > a, .wd-nav-fs .wd-dropdown-fs-menu.wd-design-default .menu-item-has-children > a").append('<span class="wd-nav-opener"></span>'),a(".wd-nav-fs").on("click",".wd-nav-opener",function(b){b.preventDefault();var c=a(this),d=c.parent().parent();d.hasClass("sub-menu-open")?(d.removeClass("sub-menu-open"),c.removeClass("wd-active")):(d.siblings(".sub-menu-open").find(".wd-nav-opener").removeClass("wd-active"),d.siblings(".sub-menu-open").removeClass("sub-menu-open"),d.addClass("sub-menu-open"),c.addClass("wd-active"))})},a(document).ready(function(){woodmartThemeModule.fullScreenMenu()})}(jQuery),function(a){woodmartThemeModule.menuDropdownsAJAX=function(){function b(b){function c(a){Object.keys(a).forEach(function(c){woodmartThemeModule.removeDuplicatedStylesFromHTML(a[c],function(a){b.find('[data-id="'+c+'"]').replaceWith(a),b.addClass("dropdowns-loaded"),setTimeout(function(){b.removeClass("dropdowns-loading")},1e3)})}),woodmartThemeModule.$document.trigger("wdLoadDropdownsSuccess")}b.addClass("dropdowns-loading");var d=woodmart_settings.menu_storage_key+"_"+b.attr("id"),e=!1,f=b.find(".dropdown-load-ajax"),g=[];if(f.each(function(){g.push(a(this).find(".dropdown-html-placeholder").data("id"))}),woodmart_settings.ajax_dropdowns_save&&woodmartThemeModule.supports_html5_storage){var h=localStorage.getItem(d);try{e=JSON.parse(h)}catch(i){console.log("cant parse Json",i)}}e?c(e):a.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_load_html_dropdowns",ids:g},dataType:"json",method:"POST",success:function(a){"success"===a.status?(c(a.data),woodmart_settings.ajax_dropdowns_save&&woodmartThemeModule.supports_html5_storage&&localStorage.setItem(d,JSON.stringify(a.data))):console.log("loading html dropdowns returns wrong data - ",a.message)},error:function(){console.log("loading html dropdowns ajax error")}})}woodmartThemeModule.$body.on("mousemove",function(){a(".menu").has(".dropdown-load-ajax").each(function(){var c=a(this);c.hasClass("dropdowns-loading")||c.hasClass("dropdowns-loaded")||b(c)})})},a(document).ready(function(){woodmartThemeModule.menuDropdownsAJAX()})}(jQuery),function(a){woodmartThemeModule.menuOffsets=function(){var b=function(a){var b,c,d,e=a.find(" > .wd-dropdown-menu"),f=e.outerWidth(),g=e.offset();if(e.attr("style",""),f&&g)if(e.hasClass("wd-design-full-width"))c=woodmartThemeModule.$window.width(),woodmartThemeModule.$body.hasClass("rtl")?(d=c-g.left-f)+f>=c&&(b=d+f-c,e.css({right:-b})):g.left+f>=c&&(b=g.left+f-c,e.css({left:-b}));else if(e.hasClass("wd-design-sized")||e.hasClass("wd-design-default")){c=woodmart_settings.site_width,(woodmartThemeModule.$window.width()<c||!c||a.parents(".whb-header").hasClass("whb-full-width"))&&(c=woodmartThemeModule.$window.width()),d=c-g.left-f;var h,i=15,j=(woodmartThemeModule.$window.width()-c)/2;woodmartThemeModule.$body.hasClass("rtl")?(h=j+d)+f>=c&&(b=h+f-c,e.css({right:-b-i})):(h=g.left-j)+f>=c&&(b=h+f-c,e.css({left:-b-i}))}};a(".wd-header-main-nav ul.menu > li, .wd-header-secondary-nav ul.menu > li, .widget_nav_mega_menu ul.menu > li").each(function(){function c(){d.hasClass("wd-offsets-calculated")||(d.find(" > .menu-item-has-children").each(function(){b(a(this))}),woodmartThemeModule.$document.trigger("resize.vcRowBehaviour"),d.addClass("wd-offsets-calculated"))}var d=a(this);d.hasClass("menu-item")&&(d=a(this).parent()),d.on("mouseenter mousemove",function(){c()}),woodmartThemeModule.$window.on("wdHeaderBuilderStickyChanged",c),"yes"===woodmart_settings.clear_menu_offsets_on_resize&&setTimeout(function(){woodmartThemeModule.$window.on("resize",woodmartThemeModule.debounce(function(){d.removeClass("wd-offsets-calculated"),d.find(" > .menu-item-has-children > .wd-dropdown-menu").attr("style","")},300))},2e3)})},woodmartThemeModule.$window.on("wdEventStarted",function(){woodmartThemeModule.menuOffsets()})}(jQuery),function(a){woodmartThemeModule.menuSetUp=function(){function b(){woodmartThemeModule.$window.width()<=1024?c.find(" > .menu-item-has-children.wd-event-hover").each(function(){a(this).data("original-event","hover").removeClass("wd-event-hover").addClass("wd-event-click")}):c.find(" > .wd-event-click").each(function(){var b=a(this);"hover"===b.data("original-event")&&b.removeClass("wd-event-click").addClass("wd-event-hover")})}var c=a(".wd-nav"),d="wd-opened"
;a(".mobile-nav").find("ul.wd-nav-mobile").find(" > li").has(".wd-dropdown-menu").addClass("menu-item-has-children"),woodmartThemeModule.$document.on("click",".wd-nav > .wd-event-click > a",function(b){b.preventDefault();var e=a(this);e.parent().hasClass(d)||c.find("."+d).removeClass(d),e.parent().toggleClass(d)}),woodmartThemeModule.$document.on("click",function(b){var e=b.target;a("."+d).length>0&&!a(e).is(".wd-event-hover")&&!a(e).parents().is(".wd-event-hover")&&!a(e).parents().is("."+d)&&c.find("."+d).removeClass(d)}),"yes"===woodmart_settings.menu_item_hover_to_click_on_responsive&&(b(),woodmartThemeModule.$window.on("resize",woodmartThemeModule.debounce(function(){b()},300)))},a(document).ready(function(){woodmartThemeModule.menuSetUp()})}(jQuery),function(a){woodmartThemeModule.mobileNavigation=function(){function b(){e.addClass("wd-opened"),g.addClass("wd-close-side-opened"),woodmartThemeModule.$document.trigger("wood-images-loaded")}function c(){e.removeClass("wd-opened"),g.removeClass("wd-close-side-opened"),a(".mobile-nav .searchform input[type=text]").blur()}var d=woodmartThemeModule.$body,e=a(".mobile-nav"),f=a(".mobile-nav .wd-nav-mobile .menu-item-has-children"),g=a(".wd-close-side");f.append('<span class="wd-nav-opener"></span>'),e.on("click",".wd-nav-opener",function(b){b.preventDefault();var c=a(this),d=c.parent();d.hasClass("opener-page")?(d.removeClass("opener-page").find("> ul").slideUp(200),d.removeClass("opener-page").find(".wd-dropdown-menu .container > ul, .wd-dropdown-menu > ul").slideUp(200),d.find("> .wd-nav-opener").removeClass("wd-active")):(d.addClass("opener-page").find("> ul").slideDown(200),d.addClass("opener-page").find(".wd-dropdown-menu .container > ul, .wd-dropdown-menu > ul").slideDown(200),d.find("> .wd-nav-opener").addClass("wd-active")),woodmartThemeModule.$document.trigger("wood-images-loaded")}),e.on("click",".wd-nav-mob-tab li",function(b){b.preventDefault();var c=a(this),d=c.data("menu");c.hasClass("wd-active")||(c.parent().find(".wd-active").removeClass("wd-active"),c.addClass("wd-active"),a(".wd-nav-mobile").removeClass("wd-active"),a(".mobile-"+d+"-menu").addClass("wd-active"),woodmartThemeModule.$document.trigger("wood-images-loaded"))}),d.on("click",".wd-header-mobile-nav > a",function(a){a.preventDefault(),e.hasClass("wd-opened")?c():b()}),d.on("click touchstart",".wd-close-side",function(){c()}),d.on("click",".mobile-nav .login-side-opener",function(){c()})},a(document).ready(function(){woodmartThemeModule.mobileNavigation()})}(jQuery),function(a){woodmartThemeModule.moreCategoriesButton=function(){a(".wd-more-cat").each(function(){var b=a(this);b.find(".wd-more-cat-btn a").on("click",function(a){a.preventDefault(),b.toggleClass("wd-show-cat")})})},a(document).ready(function(){woodmartThemeModule.moreCategoriesButton()})}(jQuery),function(a){woodmartThemeModule.onePageMenu=function(){var b=function(b){var d=a("html, body"),e=a("#"+b+', .wd-menu-anchor[data-id="'+b+'"]');if(d.stop(!0),!(e.length<1)){var f=e.offset().top;d.animate({scrollTop:f-woodmart_settings.one_page_menu_offset},800),setTimeout(function(){c(b)},800)}},c=function(b){var c;a(".onepage-link").each(function(){var d=a(this);(c=d.find("> a").attr("href").split("#")[1])===b&&(d.siblings().removeClass("current-menu-item"),d.addClass("current-menu-item"))})};if(woodmartThemeModule.$body.on("click",".onepage-link > a",function(c){var d=a(this),e=d.attr("href").split("#")[1];a("#"+e).length<1&&a('.wd-menu-anchor[data-id="'+e+'"]').length<1||(c.stopPropagation(),c.preventDefault(),b(e),a(".wd-close-side").trigger("click"),a(".wd-fs-close").trigger("click"))}),woodmartThemeModule.$window.scroll(function(){var b=woodmartThemeModule.$window.scrollTop(),d=a(".onepage-link:first");b<50&&d.length&&c(d.find("> a").attr("href").split("#")[1])}),a(".onepage-link").length>0){a(".entry-content > .vc_section, .entry-content > .vc_row").waypoint(function(){var b=a(a(this)[0].element),d=b.attr("id");c(d)},{offset:150}),a(".wd-menu-anchor").waypoint(function(){c(a(a(this)[0].element).data("id"))},{offset:function(){return a(a(this)[0].element).data("offset")}});var d=window.location.hash.split("#")[1];window.location.hash.length>1&&setTimeout(function(){b(d)},500)}},a(document).ready(function(){woodmartThemeModule.onePageMenu()})}(jQuery),function(a){woodmartThemeModule.simpleDropdown=function(){a(".wd-search-cat").each(function(){function b(){h.addClass("wd-opened"),void 0!==a.fn.devbridgeAutocomplete&&e.parent().siblings('[type="text"]').devbridgeAutocomplete("hide"),setTimeout(function(){woodmartThemeModule.$document.trigger("wdSimpleDropdownOpened")},300)}function c(){h.removeClass("wd-opened")}function d(){if(!(woodmartThemeModule.$window.width()<=768||i.hasClass("wd-padding-inited")||"yes"!==woodmart_settings.search_input_padding)){var a=e.innerWidth()+e.parent().siblings(".searchsubmit").innerWidth()+17,b="padding-right";woodmartThemeModule.$body.hasClass("rtl")&&(b="padding-left"),i.css(b,a),i.addClass("wd-padding-inited")}}var e=a(this),f=e.find("> a"),g=e.find("> input"),h=e.find("> .wd-dropdown"),i=e.parent().parent().find(".s");i.on("focus",function(){d()}),woodmartThemeModule.$document.on("click",function(b){var d=b.target;if(h.hasClass("wd-opened")&&!a(d).is(".wd-search-cat")&&!a(d).parents().is(".wd-search-cat"))return c(),!1}),f.on("click",function(a){return a.preventDefault(),h.hasClass("wd-opened")?c():b(),!1}),h.on("click","a",function(b){b.preventDefault();var e=a(this),i=e.data("val"),j=e.text();h.find(".current-item").removeClass("current-item"),e.parent().addClass("current-item"),0!==i?h.find("ul:not(.children) > li:first-child").show():0===i&&h.find("ul:not(.children) > li:first-child").hide(),f.find("span").text(j),g.val(i).trigger("cat_selected"),c(),d()})})},a(document).ready(function(){woodmartThemeModule.simpleDropdown()})}(jQuery),function(a){woodmartThemeModule.ajaxPortfolio=function(){if("no"!==woodmart_settings.ajax_portfolio&&void 0!==a.fn.pjax){woodmartThemeModule.$body.on("click",".tax-project-cat .wd-pagination a, .post-type-archive-portfolio .wd-pagination a",function(){b(!0)}),woodmartThemeModule.$document.pjax(".wd-type-links .wd-nav-portfolio a, .tax-project-cat .wd-pagination a, .post-type-archive-portfolio .wd-pagination a",".main-page-wrapper",{timeout:woodmart_settings.pjax_timeout,scrollTo:!1,renderCallback:function(a,b,c){woodmartThemeModule.removeDuplicatedStylesFromHTML(b,function(b){a.html(b),c(),woodmartThemeModule.$document.trigger("wdPortfolioPjaxComplete"),woodmartThemeModule.$document.trigger("wood-images-loaded")})}}),woodmartThemeModule.$document.on("pjax:start",function(){var b=a(".site-content");b.removeClass("ajax-loaded"),b.addClass("ajax-loading"),woodmartThemeModule.$document.trigger("wdPortfolioPjaxStart"),woodmartThemeModule.$window.trigger("scroll.loaderVerticalPosition")}),woodmartThemeModule.$document.on("pjax:end",function(){a(".site-content").removeClass("ajax-loading")}),woodmartThemeModule.$document.on("pjax:complete",function(){(woodmartThemeModule.$body.hasClass("tax-project-cat")||woodmartThemeModule.$body.hasClass("post-type-archive-portfolio"))&&(woodmartThemeModule.$document.trigger("wood-images-loaded"),b(!1),a(".wd-ajax-content").removeClass("wd-loading"))});var b=function(b){if("no"===woodmart_settings.ajax_scroll&&!1===b)return!1;var c=a(woodmart_settings.ajax_scroll_class),d=c.offset().top-woodmart_settings.ajax_scroll_offset;a("html, body").stop().animate({scrollTop:d},400)}}},a(document).ready(function(){woodmartThemeModule.ajaxPortfolio()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdPortfolioLoadMoreLoaded wdPortfolioPjaxComplete",function(){woodmartThemeModule.portfolioEffects()}),a.each(["frontend/element_ready/wd_portfolio.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.portfolioEffects()})}),woodmartThemeModule.portfolioEffects=function(){void 0!==a.fn.panr&&a(".wd-portfolio-holder .portfolio-parallax").panr({sensitivity:15,scale:!1,scaleOnHover:!0,scaleTo:1.12,scaleDuration:.45,panY:!0,panX:!0,panDuration:1.5,resetPanOnMouseLeave:!0})},a(document).ready(function(){woodmartThemeModule.portfolioEffects()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdPortfolioPjaxComplete",function(){woodmartThemeModule.portfolioLoadMore()}),a.each(["frontend/element_ready/wd_portfolio.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.portfolioLoadMore()})}),woodmartThemeModule.portfolioLoadMore=function(){if("function"==typeof a.fn.waypoint){var b=a(".wd-portfolio-load-more.load-on-scroll").waypoint(function(){a(".wd-portfolio-load-more.load-on-scroll").trigger("click")},{offset:"100%"}),c=!1;a(".wd-portfolio-load-more").on("click",function(d){d.preventDefault();var e=a(this);if(!c&&!e.hasClass("no-more-posts")){c=!0;var f,g=e.parent().parent().find(".wd-portfolio-holder"),h=g.data("source"),i="woodmart_get_portfolio_"+h,j=woodmart_settings.ajaxurl,k="json",l="POST",m=g.data("atts"),n=g.data("paged");e.addClass("loading");var o={atts:m,paged:n,action:i};"main_loop"===h&&(j=e.attr("href"),l="GET",o={}),a.ajax({url:j,data:o,dataType:k,method:l,success:function(c){woodmartThemeModule.removeDuplicatedStylesFromHTML(c.items,function(d){var h=a(d);h&&(g.hasClass("masonry-container")?(g.append(h).isotope("appended",h),g.imagesLoaded().progress(function(){g.isotope("layout"),clearTimeout(f),f=setTimeout(function(){b=a(".wd-portfolio-load-more.load-on-scroll").waypoint(function(){a(".wd-portfolio-load-more.load-on-scroll").trigger("click")},{offset:"100%"})},1e3)})):g.append(h),g.data("paged",n+1),e.attr("href",c.nextPage),"yes"===woodmart_settings.load_more_button_page_url&&window.history.pushState("","",c.currentPage)),woodmartThemeModule.$document.trigger("wdPortfolioLoadMoreLoaded"),"no-more-posts"===c.status&&(e.addClass("no-more-posts"),e.hide())})},error:function(){console.log("ajax error")},complete:function(){e.removeClass("loading"),c=!1}})}})}},a(document).ready(function(){woodmartThemeModule.portfolioLoadMore()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdPortfolioPjaxComplete",function(){woodmartThemeModule.portfolioMasonryFilters()}),a.each(["frontend/element_ready/wd_portfolio.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.portfolioMasonryFilters()})}),woodmartThemeModule.portfolioMasonryFilters=function(){var b=a(".wd-nav-portfolio");b.on("click","li",function(c){c.preventDefault();var d=a(this),e=d.attr("data-filter");setTimeout(function(){woodmartThemeModule.$document.trigger("wood-images-loaded")},300),b.find(".wd-active").removeClass("wd-active"),d.addClass("wd-active"),d.parents(".portfolio-filter").siblings(".masonry-container.wd-portfolio-holder").isotope({filter:e})})},a(document).ready(function(){woodmartThemeModule.portfolioMasonryFilters()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdPortfolioPjaxComplete",function(){woodmartThemeModule.portfolioPhotoSwipe()}),a.each(["frontend/element_ready/wd_portfolio.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.portfolioPhotoSwipe()})}),woodmartThemeModule.portfolioPhotoSwipe=function(){woodmartThemeModule.$document.on("click",".portfolio-enlarge",function(c){c.preventDefault();var d=a(this),e=d.parents(".owl-item");0===e.length&&(e=d.parents(".portfolio-entry"));var f=e.index(),g=b();woodmartThemeModule.callPhotoSwipe(f,g)});var b=function(){var b=[];return a(".portfolio-entry").find("figure a img").each(function(){var c=a(this);b.push({src:c.attr("src"),w:c.attr("width")?c.attr("width"):"300",h:c.attr("height")?c.attr("height"):"300"})}),b}},a(document).ready(function(){woodmartThemeModule.portfolioPhotoSwipe()})}(jQuery),ShaderX.prototype={init:function(){var a=this;window.addEventListener("resize",function(){a.resize()}),this.options.autoPlay&&(this.runned=!0,this.render(),this.raf())},render:function(){this.container.hasClass("wd-with-webgl")||(this.createCanvas(),this.container.append(this.canvas),this.container.addClass("wd-with-webgl")),this.gl&&(this.progress>0&&this.progress<1||!this.drawn)&&(this.renderCanvas(),this.drawn=!0)},createCanvas:function(){if(this.canvas=document.createElement("CANVAS"),this.gl=this.canvas.getContext("webgl"),!this.gl)return void console.log("WebGL is not supported");this.canvas.width=this.options.width*this.pixelRatio,this.canvas.height=this.options.height*this.pixelRatio;var a=this.createShader(this.gl.VERTEX_SHADER,this.options.vertexShader),b=this.createShader(this.gl.FRAGMENT_SHADER,this.options.fragmentShader);this.program=this.createProgram(a,b);var c=this.gl.getAttribLocation(this.program,"a_position"),d=this.gl.createBuffer();this.gl.bindBuffer(this.gl.ARRAY_BUFFER,d);var e=0,f=this.options.width*this.pixelRatio,g=0,h=this.options.height*this.pixelRatio,i=[e,g,f,g,e,h,e,h,f,g,f,h];this.gl.bufferData(this.gl.ARRAY_BUFFER,new Float32Array(i),this.gl.STATIC_DRAW),this.gl.viewport(0,0,this.gl.canvas.width,this.gl.canvas.height),this.gl.clearColor(0,0,0,0),this.gl.clear(this.gl.COLOR_BUFFER_BIT),this.gl.useProgram(this.program);var j=[2/this.gl.canvas.width,0,0,0,-2/this.gl.canvas.height,0,-1,1,1];this.addUniform("3fv","u_matrix",j),this.addUniform("1f","u_flipY",1),this.addUniform("1f","u_time",0),this.addUniform("2f","u_pixels",[this.options.width*this.pixelRatio,this.options.height*this.pixelRatio]),this.addUniform("1f","u_progress",0),this.addUniform("2f","u_resolution",[this.gl.canvas.width,this.gl.canvas.height]),this.addUniform("2f","u_uvRate",[1,1]),this.addUniform("1f","u_scale",this.scale),this.options.mouseMove&&this.addUniform("2f","u_mouse",[.5,0]),this.gl.enableVertexAttribArray(c);var k=this.gl.FLOAT;this.gl.vertexAttribPointer(c,2,k,!1,0,0);var l=this.gl.getAttribLocation(this.program,"a_texCoord"),m=this.gl.createBuffer();if(this.gl.bindBuffer(this.gl.ARRAY_BUFFER,m),this.gl.bufferData(this.gl.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),this.gl.STATIC_DRAW),this.gl.enableVertexAttribArray(l),this.gl.vertexAttribPointer(l,2,this.gl.FLOAT,!1,0,0),this.texture1&&this.loadImageTexture(this.texture1,0),this.options.distImage){var n=new Image;this.requestCORSIfNotSameOrigin(n,this.options.distImage),n.src=this.options.distImage;var o=this;n.onload=function(){o.loadImageTexture(n,2)}}},raf:function(){function a(){if(b.time+=.03,b.updateUniform("u_time",b.time),b.options.mouseMove){var c=b.getUniform("u_mouse"),d=c[0],e=c[1],f=d?d+.05*(b.mouseX-d):b.mouseX,g=e?e+.05*(b.mouseY-e):b.mouseY;b.updateUniform("u_mouse",[f,g])}b.progress<0&&(b.progress=0),b.progress>1&&(b.progress=1),b.updateUniform("u_progress",b.progress),b.updateUniform("u_scale",b.scale),b.render(),b.requestID=window.requestAnimationFrame(a)}if(this.canvas){var b=this;a()}},resize:function(){var a=this;clearTimeout(this.resizingTimeout),this.resizingTimeout=setTimeout(function(){if(a.canvas){var b=Math.floor(a.options.sizeContainer.outerWidth()*a.pixelRatio),c=Math.floor(a.options.sizeContainer.outerHeight()*a.pixelRatio);a.gl.canvas.width===b&&a.gl.canvas.height===c||(a.gl.canvas.width=b,a.gl.canvas.height=c),a.updateUniform("u_resolution",[b,c]),a.updateUniform("u_pixels",[b,c]),a.updateUniform("u_uvRate",[1,c/b]),a.gl.viewport(0,0,b,c),a.drawn=!1}},500)},run:function(){this.runned||(this.runned=!0,this.render(),this.raf())},stop:function(){this.runned&&(window.cancelAnimationFrame(this.requestID),this.destroyCanvas(),this.container.find("canvas").remove(),this.container.removeClass("wd-with-webgl"),this.runned=!1)},renderCanvas:function(){if(this.empty)return!1;this.gl.drawArrays(this.gl.TRIANGLES,0,6)},destroyCanvas:function(){this.gl&&(this.canvas=null,this.gl.getExtension("WEBGL_lose_context").loseContext(),this.gl=null)},createShader:function(a,b){var c=this.gl.createShader(a);if(this.gl.shaderSource(c,b),this.gl.compileShader(c),this.gl.getShaderParameter(c,this.gl.COMPILE_STATUS))return c;console.log(this.gl.getShaderInfoLog(c)),this.gl.deleteShader(c)},createProgram:function(a,b){var c=this.gl.createProgram();if(this.gl.attachShader(c,a),this.gl.attachShader(c,b),this.gl.linkProgram(c),this.gl.getProgramParameter(c,this.gl.LINK_STATUS))return c;console.log(this.gl.getProgramInfoLog(c)),this.gl.deleteProgram(c)},addUniform:function(a,b,c){var d=this.gl.getUniformLocation(this.program,b);this.uniforms[b]={location:d,type:a},!1!==c&&this.updateUniform(b,c)},updateUniform:function(a,b){if(this.gl){var c=this.uniforms[a];switch(c.type){case"1f":this.gl.uniform1f(c.location,b);break;case"2f":this.gl.uniform2f(c.location,b[0],b[1]);break;case"1i":this.gl.uniform1i(c.location,b);break;case"3fv":this.gl.uniformMatrix3fv(c.location,!1,b)}}},getUniform:function(a,b){if(this.gl){var c=this.uniforms[a];return this.gl.getUniform(this.program,c.location)}},getImageId:function(a){var b=a.split("/");return b[b.length-3]+"-"+b[b.length-2]+"-"+b[b.length-1]},loadImage:function(a,b,c,d){var e,f=this.getImageId(a);if(this.images[f]){if(e=this.images[f],d)return;return 0===b?this.texture1=e:1===b&&(this.texture2=e),this.loadImageTexture(e,b),this.empty=!1,this.drawn=!1,void(c&&c())}e=new Image,this.requestCORSIfNotSameOrigin(e,a),e.src=a;var g=this;e.onload=function(){g.images[f]=e,d||(0===b?g.texture1=e:g.texture2=e,g.loadImageTexture(e,b),g.empty=!1,g.drawn=!1,c&&c())}},requestCORSIfNotSameOrigin:function(a,b){new URL(b,window.location.href).origin!==window.location.origin&&(a.crossOrigin="")},loadImageTexture:function(a,b){if(this.gl){var c;if(this.loadedTextures[b]){c=this.loadedTextures[b];var d=this.gl.TEXTURE0+b;this.gl.activeTexture(d),this.gl.bindTexture(this.gl.TEXTURE_2D,c),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.gl.RGBA,this.gl.UNSIGNED_BYTE,a),this.addUniform("1i","u_image"+b,b),this.addUniform("2f","u_image"+b+"_size",[a.width,a.height])}else{c=this.gl.createTexture();var d=this.gl.TEXTURE0+b;this.gl.activeTexture(d),this.gl.bindTexture(this.gl.TEXTURE_2D,c),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,this.gl.CLAMP_TO_EDGE),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,this.gl.CLAMP_TO_EDGE),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MIN_FILTER,this.gl.LINEAR),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MAG_FILTER,this.gl.LINEAR),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.gl.RGBA,this.gl.UNSIGNED_BYTE,a),this.addUniform("1i","u_image"+b,b),this.addUniform("2f","u_image"+b+"_size",[a.width,a.height]),this.updateUniform("u_flipY",-1)}}},replaceImage:function(a){var b=this;this.getImageId(a);this.texture2&&(b.loadImageTexture(this.texture2,0),b.loadImageTexture(this.texture2,1));var c=function(a){return a*(2-a)};this.loadImage(a,1,function(){function a(){if(j+=i,b.progress=c(j),b.progress>=1)return void window.cancelAnimationFrame(d);d=window.requestAnimationFrame(a)}var d,e=1300,f=60,g=1e3/f,h=e/g,i=1/h,j=0;b.progress=0,a()})}},woodmartThemeModule.shaders={matrixVertex:"attribute vec2 a_texCoord;attribute vec2 a_position;uniform mat3 u_matrix;void main(){\tgl_Position=vec4(( u_matrix * vec3(a_position, 1)).xy, 0, 1);\ta_texCoord;}",sliderWithNoise:"precision mediump float;uniform float u_time;uniform float u_progress;uniform sampler2D u_image0;uniform vec2 u_image0_size;uniform sampler2D u_image1;uniform vec2 u_image1_size;uniform vec2 u_pixels;uniform vec2 u_mouse;uniform vec2 u_uvRate;uniform float u_scale;float rand (vec2 seed){\treturn fract(sin(dot(seed, vec2(1.29898,7.8233))) * 4.37585453123);}float noise(vec2 position){\tvec2 block_position=floor(position);\tfloat top_left_value=rand (block_position);\tfloat top_right_value=rand (block_position + vec2(1.0, 0.0));\tfloat bottom_left_value=rand (block_position + vec2(0.0, 1.0));\tfloat bottom_right_value=rand (block_position + vec2(1.0, 1.0));\tvec2 computed_value=smoothstep(0.0, 1.0, fract(position));\treturn mix(top_left_value, top_right_value, computed_value.x)\t\t+ (bottom_left_value  - top_left_value)  * computed_value.y * (1.0 - computed_value.x)\t\t+ (bottom_right_value - top_right_value) * computed_value.x * computed_value.y\t\t- 0.5;}void main(){\tvec2 uv=gl_FragCoord.xy/u_pixels.xy;\tuv.y=1.0 - uv.y;\tvec2 uv2=uv;\tvec2 s=u_pixels.xy/10.;\tvec2 i=u_image0_size/10.;\tfloat rs=s.x / s.y;\tfloat ri=i.x / i.y;\tvec2 new=rs < ri ? vec2(i.x * s.y / i.y, s.y):vec2(s.x, i.y * s.x / i.x);\tvec2 offset=(rs < ri ? vec2((new.x - s.x) / 2.0, 0.0):vec2(0.0, (new.y - s.y) / 2.0)) / new;\tuv=uv * s / new + offset;\ti=u_image1_size/10.;\tri=i.x / i.y;\tnew=rs < ri ? vec2(i.x * s.y / i.y, s.y):vec2(s.x, i.y * s.x / i.x);\toffset=(rs < ri ? vec2((new.x - s.x) / 2.0, 0.0):vec2(0.0, (new.y - s.y) / 2.0)) / new;\tuv2=uv2 * s / new + offset;\tfloat delayValue=clamp(u_progress, 0., 1.);   float d=distance(u_mouse*u_uvRate, uv*u_uvRate);\tfloat ppp=((u_progress - .5) * (u_progress - .5) - .25);\tvec2 uv_offset=ppp * 1.1 * vec2(noise(uv * 10.0 + sin(u_time + uv.x * 5.0)) / 10.0, noise(uv * 10.0 + cos(u_time + uv.y * 5.0)) / 10.0);\tuv +=uv_offset;\tuv2 +=uv_offset;\tuv=(uv - vec2(.5, .5)) * u_scale + 0.5;\tvec4 rgba1=texture2D(u_image0, uv);\tvec4 rgba2=texture2D(u_image1, uv2);\tvec4 rgba=mix(rgba1, rgba2, delayValue);\tgl_FragColor=rgba;}",sliderPattern:"precision mediump float;uniform float u_time;uniform float u_progress;uniform sampler2D u_image0;uniform vec2 u_image0_size;uniform sampler2D u_image1;uniform vec2 u_image1_size;uniform sampler2D u_image2;uniform vec2 u_image2_size;uniform vec2 u_pixels;void main(){\tvec2 uv=gl_FragCoord.xy/u_pixels.xy;\tuv.y=1.0 - uv.y;\tvec2 uv2=uv;\tvec2 s=u_pixels.xy/10.;\tvec2 i=u_image0_size/10.;\tfloat rs=s.x / s.y;\tfloat ri=i.x / i.y;\tvec2 new=rs < ri ? vec2(i.x * s.y / i.y, s.y):vec2(s.x, i.y * s.x / i.x);\tvec2 offset=(rs < ri ? vec2((new.x - s.x) / 2.0, 0.0):vec2(0.0, (new.y - s.y) / 2.0)) / new;\tuv=uv * s / new + offset;\ti=u_image1_size/10.;\tri=i.x / i.y;\tnew=rs < ri ? vec2(i.x * s.y / i.y, s.y):vec2(s.x, i.y * s.x / i.x);\toffset=(rs < ri ? vec2((new.x - s.x) / 2.0, 0.0):vec2(0.0, (new.y - s.y) / 2.0)) / new;\tuv2=uv2 * s / new + offset;vec4 disp=texture2D(u_image2, uv);float effectFactor=0.4;vec2 distortedPosition=vec2(uv.x + u_progress * (disp.r*effectFactor), uv.y);vec2 distortedPosition2=vec2(uv.x - (1.0 - u_progress) * (disp.r*effectFactor), uv.y);vec4 _texture=texture2D(u_image0, distortedPosition);vec4 _texture2=texture2D(u_image1, distortedPosition2);vec4 finalTexture=mix(_texture, _texture2, u_progress);gl_FragColor=finalTexture;}",sliderWithWave:"precision mediump float;uniform float u_time;uniform float u_progress;uniform sampler2D u_image0;uniform vec2 u_image0_size;uniform sampler2D u_image1;uniform vec2 u_image1_size;uniform vec2 u_pixels;uniform vec2 u_mouse;uniform vec2 u_uvRate;uniform float u_scale;    vec2 mirrored(vec2 v){        vec2 m=mod(v,2.);        return mix(m,2.0 - m, step(1.0 ,m));    }    float tri(float p){        return mix(p,1.0 - p, step(0.5 ,p))*2.;    }void main(){\tvec2 uv=gl_FragCoord.xy/u_pixels.xy;\tuv.y=1.0 - uv.y;\tvec2 uv2=uv;\tvec2 s=u_pixels.xy/10.;\tvec2 i=u_image0_size.xy/10.;\tfloat rs=s.x / s.y;\tfloat ri=i.x / i.y;\tvec2 new=rs < ri ? vec2(i.x * s.y / i.y, s.y):vec2(s.x, (i.y * s.x) / i.x);\tvec2 offset=(rs < ri ? vec2((new.x - s.x) / 2.0, 0.0):vec2(0.0, (new.y - s.y) / 2.0)) / new;\tuv=uv * s / new + offset;\ti=u_image1_size.xy/10.;\tri=i.x / i.y;\tnew=rs < ri ? vec2(i.x * s.y / i.y, s.y):vec2(s.x, i.y * s.x / i.x);\toffset=(rs < ri ? vec2((new.x - s.x) / 2.0, 0.0):vec2(0.0, (new.y - s.y) / 2.0)) / new;\tuv2=uv2 * s / new + offset;    float delayValue=u_progress*6.5 - uv.y*2. + uv.x - 3.0;    vec2 accel=vec2(0.5,2.);    delayValue=clamp(delayValue,0.,1.);    vec2 translateValue=u_progress + delayValue*accel;    vec2 translateValue1=vec2(-0.5,1.)* translateValue;    vec2 translateValue2=vec2(-0.5,1.)* (translateValue - 1. - accel);    vec2 w=sin(sin(u_time) * vec2(0,0.3) + uv.yx*vec2(0,4.))*vec2(0,0.5);    vec2 xy=w*(tri(u_progress)*0.5 + tri(delayValue)*0.5);    vec2 uv1=uv + translateValue1 + xy;    uv2=uv2 + translateValue2 + xy;    vec4 rgba1=texture2D(u_image0,mirrored(uv1));    vec4 rgba2=texture2D(u_image1,mirrored(uv2));    vec4 rgba=mix(rgba1,rgba2,delayValue);\tgl_FragColor=rgba;}",hoverWave:"precision mediump float;uniform float u_time;uniform float u_progress;uniform sampler2D u_image;uniform vec2 u_pixels;uniform vec2 u_mouse;uniform vec2 u_uvRate;uniform float u_scale;void main(){\tvec2 uv=gl_FragCoord.xy/u_pixels.xy;\tuv.y=1.0 - uv.y;\tfloat d=distance(u_mouse*u_uvRate, uv*u_uvRate);\tfloat ppp=((u_progress - .5) * (u_progress - .5) - .25);\tfloat dY=sin(uv.y * 44.005 + u_time * 4.5) * 0.02 * ppp;\tfloat dX=sin(uv.x * 30.005 + u_time * 3.2) * 0.02 * ppp;\tif(u_progress > 0.&&d < .1){\t   dX *=smoothstep(0., .15, (.15 - d)) * 5.;\t   dY *=smoothstep(0., .15, (.15 - d)) * 5.;\t}\tuv.y +=dY;\tuv.x +=dX;\tgl_FragColor=texture2D(u_image, uv);}"},function(a){woodmartThemeModule.$document.on("wdCarouselFlickityInited",function(){woodmartThemeModule.sliderDistortion()}),woodmartThemeModule.sliderDistortion=function(){var b=a(".wd-slider-wrapper.anim-distortion");void 0===ShaderX||woodmartThemeModule.$body.hasClass("single-woodmart_slide")||b.each(function(){var b=a(this),c=b.find(".wd-slide"),d=c.eq(0).data("image-url"),e=c.eq(1).data("image-url");if(!b.hasClass("webgl-inited")&&d&&e){b.addClass("webgl-inited");var f=new ShaderX({container:b.find(".flickity-viewport"),sizeContainer:b,vertexShader:woodmartThemeModule.shaders.matrixVertex,fragmentShader:woodmartThemeModule.shaders[woodmart_settings.slider_distortion_effect]?woodmartThemeModule.shaders[woodmart_settings.slider_distortion_effect]:woodmartThemeModule.shaders.sliderWithWave,width:b.outerWidth(),height:b.outerHeight(),distImage:"sliderPattern"===woodmart_settings.slider_distortion_effect&&woodmart_settings.theme_url+"/images/dist11.jpg"});f.loadImage(d,0,function(){b.addClass("wd-canvas-image-loaded")}),f.loadImage(d,1),f.loadImage(e,0,void 0,!0),b.on("change.flickity",function(a,b){(d=c.eq(b).data("image-url"))&&(f.replaceImage(d),c.eq(b+1).length>0&&(e=c.eq(b+1).data("image-url"))&&f.loadImage(e,0,void 0,!0))})}})}}(jQuery),function(a){a.each(["frontend/element_ready/wd_products.default","frontend/element_ready/wd_products_tabs.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.addToCart()})}),woodmartThemeModule.addToCart=function(){var b,c=0;woodmartThemeModule.$body.on("added_to_cart",function(){if("popup"===woodmart_settings.add_to_cart_action){var b=['<div class="added-to-cart">',"<h3>"+woodmart_settings.added_to_cart+"</h3>",'<a href="#" class="btn btn-style-link btn-color-default close-popup">'+woodmart_settings.continue_shopping+"</a>",'<a href="'+woodmart_settings.cart_url+'" class="btn btn-color-primary view-cart">'+woodmart_settings.view_cart+"</a>","</div>"].join("");a.magnificPopup.open({removalDelay:500,tClose:woodmart_settings.close,tLoading:woodmart_settings.loading,callbacks:{beforeOpen:function(){this.st.mainClass="mfp-move-horizontal cart-popup-wrapper"}},items:{src:'<div class="mfp-with-anim wd-popup white-popup popup-added_to_cart">'+b+"</div>",type:"inline"}}),a(".white-popup").on("click",".close-popup",function(b){b.preventDefault(),a.magnificPopup.close()}),d()}else if("widget"===woodmart_settings.add_to_cart_action){clearTimeout(c);var e=a(".act-scroll .wd-header-cart .wd-dropdown-cart, .whb-sticked .wd-header-cart .wd-dropdown-cart");e.length>0?e.addClass("wd-opened"):a(".whb-header .wd-header-cart .wd-dropdown-cart").addClass("wd-opened");var f=a(".cart-widget-opener");f.length>0&&f.first().trigger("click"),c=setTimeout(function(){a(".wd-dropdown-cart").removeClass("wd-opened")},3500),d()}woodmartThemeModule.$document.trigger("wdActionAfterAddToCart")});var d=function(){if("yes"!==woodmart_settings.add_to_cart_action_timeout)return!1;clearTimeout(b),b=setTimeout(function(){a(".wd-close-side").trigger("click"),a.magnificPopup.close()},1e3*parseInt(woodmart_settings.add_to_cart_action_timeout_number))}},a(document).ready(function(){woodmartThemeModule.addToCart()})}(jQuery),function(a){woodmartThemeModule.addToCartAllTypes=function(){0!=woodmart_settings.ajax_add_to_cart&&woodmartThemeModule.$body.on("submit","form.cart",function(b){var c=a(this),d=c.parents(".single-product-page");if(0===d.length&&(d=c.parents(".product-quick-view")),!(d.hasClass("product-type-external")||d.hasClass("product-type-zakeke")||d.hasClass("product-type-gift-card"))){b.preventDefault();var e=c.find(".single_add_to_cart_button"),f=c.serialize();f+="&action=woodmart_ajax_add_to_cart",e.val()&&(f+="&add-to-cart="+e.val()),e.removeClass("added not-added"),e.addClass("loading"),woodmartThemeModule.$body.trigger("adding_to_cart",[e,f]),a.ajax({url:woodmart_settings.ajaxurl,data:f,method:"POST",success:function(b){if(b){if(window.location.toString().replace("add-to-cart","added-to-cart"),b.error&&b.product_url)return void(window.location=b.product_url);if("yes"===woodmart_settings.cart_redirect_after_add)window.location=woodmart_settings.cart_url;else{e.removeClass("loading");var c=b.fragments,d=b.cart_hash;c&&a.each(c,function(b){a(b).addClass("updating")}),c&&a.each(c,function(b,c){a(b).replaceWith(c)});var f=a(".woocommerce-notices-wrapper");f.empty(),b.notices.indexOf("error")>0?(f.append(b.notices),e.addClass("not-added")):("widget"===woodmart_settings.add_to_cart_action&&a.magnificPopup.close(),e.addClass("added"),woodmartThemeModule.$body.trigger("added_to_cart",[c,d,e]))}}},error:function(){console.log("ajax adding to cart error")},complete:function(){}})}})},a(document).ready(function(){woodmartThemeModule.addToCartAllTypes()})}(jQuery),function(a){woodmartThemeModule.ajaxFilters=function(){if(woodmartThemeModule.$body.hasClass("woodmart-ajax-shop-on")&&void 0!==a.fn.pjax&&!woodmartThemeModule.$body.hasClass("single-product")&&!woodmartThemeModule.$body.hasClass("elementor-editor-active")&&0!==a('.products[data-source="main_loop"]').length){var b=!1;woodmartThemeModule.$body.on("click",".post-type-archive-product .products-footer .woocommerce-pagination a",function(){c(!0)}),woodmartThemeModule.$document.pjax(woodmart_settings.ajax_links,".main-page-wrapper",{timeout:woodmart_settings.pjax_timeout,scrollTo:!1,renderCallback:function(a,b,c){woodmartThemeModule.removeDuplicatedStylesFromHTML(b,function(b){a.html(b),c(),woodmartThemeModule.$document.trigger("wdShopPageInit"),woodmartThemeModule.$document.trigger("wood-images-loaded")})}}),"click"===woodmart_settings.price_filter_action?woodmartThemeModule.$document.on("click",".widget_price_filter form .button",function(){var b=a(".widget_price_filter form");return a.pjax({container:".main-page-wrapper",timeout:woodmart_settings.pjax_timeout,url:b.attr("action"),data:b.serialize(),scrollTo:!1,renderCallback:function(a,b,c){woodmartThemeModule.removeDuplicatedStylesFromHTML(b,function(b){a.html(b),c(),woodmartThemeModule.$document.trigger("wdShopPageInit"),woodmartThemeModule.$document.trigger("wood-images-loaded")})}}),!1}):"submit"===woodmart_settings.price_filter_action&&woodmartThemeModule.$document.on("submit",".widget_price_filter form",function(b){a.pjax.submit(b,".main-page-wrapper")}),woodmartThemeModule.$document.on("pjax:error",function(a,b,c){console.log("pjax error "+c)}),woodmartThemeModule.$document.on("pjax:start",function(){var b=a(".site-content");b.removeClass("ajax-loaded"),b.addClass("ajax-loading"),woodmartThemeModule.$document.trigger("wdPjaxStart"),woodmartThemeModule.$window.trigger("scroll.loaderVerticalPosition")}),woodmartThemeModule.$document.on("pjax:complete",function(){
woodmartThemeModule.$window.off("scroll.loaderVerticalPosition"),c(!1),woodmartThemeModule.$document.trigger("wood-images-loaded"),a(".wd-scroll-content").on("scroll",function(){woodmartThemeModule.$document.trigger("wood-images-loaded")}),"undefined"!=typeof woodmart_wpml_js_data&&woodmart_wpml_js_data.languages&&a.each(woodmart_wpml_js_data.languages,function(b,c){a(".wpml-ls-item-"+c.code+" .wpml-ls-link").attr("href",c.url)})}),woodmartThemeModule.$document.on("pjax:beforeReplace",function(){a(".filters-area").hasClass("filters-opened")&&"yes"===woodmart_settings.shop_filters_close&&(b=!0,woodmartThemeModule.$body.addClass("body-filters-opened"))}),woodmartThemeModule.$document.on("wdShopPageInit",function(){var c=a(".site-content");b&&(a(".filters-area").css("display","block"),woodmartThemeModule.openFilters(200),b=!1),c.removeClass("ajax-loading"),c.addClass("ajax-loaded")});var c=function(b){if("no"===woodmart_settings.ajax_scroll&&!1===b)return!1;var c=a(woodmart_settings.ajax_scroll_class),d=c.offset().top-woodmart_settings.ajax_scroll_offset;a("html, body").stop().animate({scrollTop:d},400)}}},a(document).ready(function(){woodmartThemeModule.ajaxFilters()})}(jQuery),function(a){woodmartThemeModule.cartWidget=function(){var b=woodmartThemeModule.$body,c=a(".cart-widget-side"),d=a(".wd-close-side");b.on("click",".cart-widget-opener",function(a){h()||i()||a.preventDefault(),g()?e():setTimeout(function(){f()},10)}),b.on("click touchstart",".wd-close-side",function(){g()&&e()}),b.on("click",".close-side-widget",function(a){a.preventDefault(),g()&&e()}),woodmartThemeModule.$document.on("keyup",function(a){27===a.keyCode&&g()&&e()});var e=function(){c.removeClass("wd-opened"),d.removeClass("wd-close-side-opened")},f=function(){if(h()||i())return!1;c.addClass("wd-opened"),d.addClass("wd-close-side-opened")},g=function(){return c.hasClass("wd-opened")},h=function(){return woodmartThemeModule.$body.hasClass("woocommerce-cart")},i=function(){return woodmartThemeModule.$body.hasClass("woocommerce-checkout")}},a(document).ready(function(){woodmartThemeModule.cartWidget()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdBackHistory wdShopPageInit",function(){woodmartThemeModule.categoriesAccordion()}),woodmartThemeModule.categoriesAccordion=function(){if("no"!==woodmart_settings.categories_toggle){var b=a(".widget_product_categories"),c=b.find(".product-categories"),d=300;c.find(".cat-parent").each(function(){var b=a(this);b.find(" > .wd-cats-toggle").length>0||0!==b.find(" > .children").length&&0!==b.find(" > .children > *").length&&b.append('<div class="wd-cats-toggle"></div>')}),c.on("click",".wd-cats-toggle",function(){var b=a(this),c=b.prev();c.hasClass("list-shown")?(b.removeClass("toggle-active"),c.stop().slideUp(d).removeClass("list-shown")):(c.parent().parent().find("> li > .list-shown").slideUp().removeClass("list-shown"),c.parent().parent().find("> li > .toggle-active").removeClass("toggle-active"),b.addClass("toggle-active"),c.stop().slideDown(d).addClass("list-shown"))}),c.find("li.current-cat.cat-parent, li.current-cat-parent").length>0&&c.find("li.current-cat.cat-parent, li.current-cat-parent").find("> .wd-cats-toggle").trigger("click")}},a(document).ready(function(){woodmartThemeModule.categoriesAccordion()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.categoriesDropdowns()}),woodmartThemeModule.categoriesDropdowns=function(){a(".dropdown_product_cat").on("change",function(){var b=a(this);if(""!==b.val()){var c,d=woodmart_settings.home_url;c=d.indexOf("?")>0?d+"&product_cat="+b.val():d+"?product_cat="+b.val(),location.href=c}else location.href=woodmart_settings.shop_url}),a(".widget_product_categories").each(function(){var b=a(this).find("select");a().selectWoo&&b.selectWoo({minimumResultsForSearch:5,width:"100%",allowClear:!0,placeholder:woodmart_settings.product_categories_placeholder,language:{noResults:function(){return woodmart_settings.product_categories_no_results}}})})},a(document).ready(function(){woodmartThemeModule.categoriesDropdowns()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.categoriesMenuBtns(),woodmartThemeModule.categoriesMenu()}),woodmartThemeModule.categoriesMenu=function(){var b=a(".wd-nav-product-cat");woodmartThemeModule.$window.width()>1024&&b.stop().attr("style","");var c=200;b.each(function(){var b=a(this),d=b.parents(".wd-nav-accordion-mb-on"),e=d.find("wd-btn-show-cat"),f=d.hasClass("wd-nav-accordion-mb-on"),g=function(){return b.hasClass("categories-opened")},h=function(){e.addClass("wd-active"),b.addClass("categories-opened").stop().slideDown(c),woodmartThemeModule.$document.trigger("wood-images-loaded")},i=function(){e.removeClass("wd-active"),b.removeClass("categories-opened").stop().slideUp(c)};d.find(".wd-nav-opener").off("click").on("click",function(b){var d=a(this);b.preventDefault(),d.closest(".has-sub").find("> ul").hasClass("child-open")?d.removeClass("wd-active").closest(".has-sub").find("> ul").slideUp(c).removeClass("child-open"):d.addClass("wd-active").closest(".has-sub").find("> ul").slideDown(c).addClass("child-open"),woodmartThemeModule.$document.trigger("wood-images-loaded")}),d.find(".wd-btn-show-cat > a").off("click").on("click",function(a){a.preventDefault(),f&&(g(b)?i():(h(),woodmartThemeModule.$document.trigger("wood-images-loaded")))}),d.find(".wd-nav-product-cat a").off("click").on("click",function(c){a(c.target).hasClass("wd-nav-opener")||(i(),b.stop().attr("style",""))})})},woodmartThemeModule.categoriesMenuBtns=function(){a(".wd-nav-product-cat").each(function(){if(!(woodmartThemeModule.windowWidth>1024)){var b=a(this);b.find("li > ul").parent().find(".wd-nav-opener").remove(),b.find("li > ul").parent().addClass("has-sub").append('<span class="wd-nav-opener"></span>')}})},woodmartThemeModule.$window.on("resize",woodmartThemeModule.debounce(function(){woodmartThemeModule.categoriesMenuBtns(),woodmartThemeModule.categoriesMenu()},300)),a(document).ready(function(){woodmartThemeModule.categoriesMenuBtns(),woodmartThemeModule.categoriesMenu()})}(jQuery),function(a){woodmartThemeModule.commentImage=function(){function b(a){c.prepend('<ul class="woocommerce-error" role="alert"><li>'+a+"</li></ul>")}a("form.comment-form").attr("enctype","multipart/form-data");var c=a(".comment-form"),d=c.find("#wd-add-img-btn"),e=[];0!==d.length&&(a.each(woodmart_settings.comment_images_upload_mimes,function(a,b){e.push(String(b))}),c.find("#wd-add-img-btn").on("change",function(){c.find(".wd-add-img-count").text(woodmart_settings.comment_images_added_count_text.replace("%s",this.files.length))}),c.on("submit",function(f){c.find(".woocommerce-error").remove();var g=!1,h=!1;d[0].files.length>woodmart_settings.comment_images_count&&(b(woodmart_settings.comment_images_count_text),f.preventDefault()),d[0].files.length<=0&&"yes"===woodmart_settings.single_product_comment_images_required&&(b(woodmart_settings.comment_required_images_error_text),f.preventDefault()),Array.prototype.forEach.call(d[0].files,function(b){var c=b.size,d=String(b.type);c>woodmart_settings.comment_images_upload_size&&(g=!0),a.inArray(d,e)<0&&(h=!0)}),g&&(b(woodmart_settings.comment_images_upload_size_text),f.preventDefault()),h&&(b(woodmart_settings.comment_images_upload_mimes_text),f.preventDefault())}))},a(document).ready(function(){woodmartThemeModule.commentImage()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.filterDropdowns()}),woodmartThemeModule.filterDropdowns=function(){function b(b){var c=b.parent(".wd-widget-layered-nav-dropdown-form");woodmartThemeModule.$body.hasClass("woodmart-ajax-shop-on")&&void 0!==a.fn.pjax&&a.pjax({container:".main-page-wrapper",timeout:woodmart_settings.pjax_timeout,url:c.attr("action"),data:c.serialize(),scrollTo:!1,renderCallback:function(a,b,c){woodmartThemeModule.removeDuplicatedStylesFromHTML(b,function(b){a.html(b),c(),woodmartThemeModule.$document.trigger("wdShopPageInit"),woodmartThemeModule.$document.trigger("wood-images-loaded")})}})}a(".wd-widget-layered-nav-dropdown-form").each(function(){var b=a(this),c=b.find("select"),d=c.data("slug");c.on("change",function(){var b=a(this).val();a("input[name=filter_"+d+"]").val(b)}),a().selectWoo&&c.selectWoo({placeholder:c.data("placeholder"),minimumResultsForSearch:5,width:"100%",allowClear:!c.attr("multiple"),language:{noResults:function(){return c.data("noResults")}}}).on("select2:unselecting",function(){a(this).data("unselecting",!0)}).on("select2:opening",function(b){var c=a(this);c.data("unselecting")&&(c.removeData("unselecting"),b.preventDefault())})}),a(".wd-widget-layered-nav-dropdown__submit").on("click",function(){var c=a(this);c.siblings("select").attr("multiple")&&woodmartThemeModule.$body.hasClass("woodmart-ajax-shop-on")&&(b(c),c.prop("disabled",!0))}),a(".wd-widget-layered-nav-dropdown-form select").on("change",function(){var c=a(this);if(!woodmartThemeModule.$body.hasClass("woodmart-ajax-shop-on"))return void c.parent().submit();c.attr("multiple")||b(c)})},a(document).ready(function(){woodmartThemeModule.filterDropdowns()})}(jQuery),function(a){woodmartThemeModule.filtersArea=function(){var b=a(".filters-area"),c=200;woodmartThemeModule.$body.on("click",".open-filters",function(a){a.preventDefault(),d()?e():(woodmartThemeModule.openFilters(c),setTimeout(function(){woodmartThemeModule.$document.trigger("wdFiltersOpened")},c))}),"no"===woodmart_settings.shop_filters_close&&woodmartThemeModule.$body.on("click",woodmart_settings.ajax_links,function(){d()&&e()});var d=function(){return b=a(".filters-area"),b.hasClass("filters-opened")},e=function(){b=a(".filters-area"),b.removeClass("filters-opened"),b.stop().slideUp(c)}},woodmartThemeModule.openFilters=function(b){var c=a(".filters-area");c.stop().slideDown(b),setTimeout(function(){c.addClass("filters-opened"),woodmartThemeModule.$document.trigger("wdFiltersOpened"),woodmartThemeModule.$body.removeClass("body-filters-opened"),woodmartThemeModule.$document.trigger("wood-images-loaded")},b)},a(document).ready(function(){woodmartThemeModule.filtersArea()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdShopPageInit wdProductsTabsLoaded wdArrowsLoadProducts wdLoadMoreLoadProducts wdUpdateWishlist",function(){woodmartThemeModule.gridQuantity()}),a.each(["frontend/element_ready/wd_products.default","frontend/element_ready/wd_products_tabs.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.gridQuantity()})}),woodmartThemeModule.gridQuantity=function(){a(".product-grid-item").on("change input",".quantity .qty",function(){var b=a(this),c=b.parent().parent().find(".add_to_cart_button");c.attr("data-quantity",b.val()),c.attr("href","?add-to-cart="+c.attr("data-product_id")+"&quantity="+b.val())})},a(document).ready(function(){woodmartThemeModule.gridQuantity()})}(jQuery),function(a){woodmartThemeModule.headerCategoriesMenu=function(){if(!(woodmartThemeModule.windowWidth>1024)){var b=a(".wd-header-cats"),c=b.find(".categories-menu-dropdown"),d=b.find(".menu-item-has-children"),e=(b.find(".menu-opener"),200);d.find("> a").before('<span class="drop-category"></span>'),c.on("click",".drop-category",function(){var b=a(this),c=b.parent().find("> .wd-dropdown-menu, >.sub-sub-menu");c.hasClass("child-open")?(b.removeClass("act-icon"),c.slideUp(e).removeClass("child-open")):(b.addClass("act-icon"),c.slideDown(e).addClass("child-open"))}),b.on("click",".menu-opener",function(a){a.preventDefault(),f()?h():g()}),c.on("click","a",function(){h(),c.stop().attr("style","")});var f=function(){return c.hasClass("categories-opened")},g=function(){c.addClass("categories-opened").stop().slideDown(e)},h=function(){c.removeClass("categories-opened").stop().slideUp(e)}}},a(document).ready(function(){woodmartThemeModule.headerCategoriesMenu()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdReplaceMainGalleryNotQuickView wdShowVariationNotQuickView wdResetVariation",function(){woodmartThemeModule.initZoom()}),a.each(["frontend/element_ready/wd_single_product_gallery.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.initZoom()})}),woodmartThemeModule.initZoom=function(){function b(a){a.find("img").data("large_image_width")>a.width()&&(a.trigger("zoom.destroy"),a.zoom(d))}var c=a(".woocommerce-product-gallery__wrapper:not(.quick-view-gallery)");if("yes"!==woodmart_settings.zoom_enable)return!1;var d={touch:!1};"ontouchstart"in window&&(d.on="click");var e=a(".woocommerce-product-gallery");e.hasClass("thumbs-position-bottom")||e.hasClass("thumbs-position-left")?(c.on("changed.owl.carousel",function(a){b(c.find(".product-image-wrap").eq(a.item.index).find(".woocommerce-product-gallery__image"))}),b(c.find(".product-image-wrap").eq(0).find(".woocommerce-product-gallery__image"))):c.find(".product-image-wrap").each(function(){b(a(this).find(".woocommerce-product-gallery__image"))})},a(document).ready(function(){woodmartThemeModule.initZoom()})}(jQuery),function(a){woodmartThemeModule.loginDropdown=function(){woodmartThemeModule.windowWidth<=1024||a(".wd-dropdown-register").each(function(){var b=a(this),c=b.find(".login-dropdown-inner");c.find('input[id="username"]').on("click",function(){b.addClass("wd-active-login").removeClass("wd-active-link")}),c.find('input[id="username"]').on("input",function(){b.hasClass("wd-active-login")&&b.removeClass("wd-active-login").addClass("wd-active-link")}),c.find("input").not('[id="username"]').on("click",function(){b.removeClass("wd-active-login").removeClass("wd-active-link")}),woodmartThemeModule.$document.click(function(a){void 0!==a.target.className.length&&-1===a.target.className.indexOf("wd-dropdown-register")&&-1===a.target.className.indexOf("input-text")&&b.removeClass("wd-active-login").removeClass("wd-active-link")}),a(".wd-dropdown-register").on("mouseout",function(){b.hasClass("wd-active-link")&&b.removeClass("wd-active-link")}).on("mouseleave",function(){b.hasClass("wd-active-link")&&b.removeClass("wd-active-link")})})},a(document).ready(function(){woodmartThemeModule.loginDropdown()})}(jQuery),function(a){woodmartThemeModule.loginSidebar=function(){var b=woodmartThemeModule.$body,c=a(".login-form-side"),d=a(".wd-close-side");a(".login-side-opener").on("click",function(a){a.preventDefault(),g()?e():setTimeout(function(){f()},10)}),b.on("click touchstart",".wd-close-side",function(){g()&&e()}),b.on("click",".close-side-widget",function(a){a.preventDefault(),g()&&e()}),woodmartThemeModule.$document.on("keyup",function(a){27===a.keyCode&&g()&&e()});var e=function(){c.removeClass("wd-opened"),d.removeClass("wd-close-side-opened")},f=function(){c.find("form").removeClass("hidden-form"),c.addClass("wd-opened"),d.addClass("wd-close-side-opened")};c.find(".woocommerce-notices-wrapper > ul").length>0&&f();var g=function(){return c.hasClass("wd-opened")}},a(document).ready(function(){woodmartThemeModule.loginSidebar()})}(jQuery),function(a){woodmartThemeModule.loginTabs=function(){var b=a(".wd-register-tabs"),c=b.find(".wd-switch-to-register"),d=a(".col-register-text h2"),e=b.find(".login-info"),f="active-register",g=c.data("login"),h=c.data("register"),i=c.data("login-title"),j=c.data("reg-title");c.on("click",function(c){c.preventDefault(),m()?l():k(),woodmartThemeModule.$window.width()<768&&a("html, body").stop().animate({scrollTop:b.offset().top-90},400)});var k=function(){b.addClass(f),c.text(g),e.length>0&&d.text(i)},l=function(){b.removeClass(f),c.text(h),e.length>0&&d.text(j)},m=function(){return b.hasClass(f)}},a(document).ready(function(){woodmartThemeModule.loginTabs()})}(jQuery),function(a){woodmartThemeModule.miniCartQuantity=function(){var b;woodmartThemeModule.$document.on("change input",".woocommerce-mini-cart .quantity .qty",function(){var c=a(this),d=c.val(),e=c.parents(".woocommerce-mini-cart-item").data("key"),f=woodmart_settings.cart_hash_key,g=woodmart_settings.fragment_name;clearTimeout(b),b=setTimeout(function(){c.parents(".mini_cart_item").addClass("wd-loading"),a.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_update_cart_item",item_id:e,qty:d},success:function(b){b&&b.fragments&&(a.each(b.fragments,function(c,d){if(a(c).hasClass("widget_shopping_cart_content")){var f=a(d).find('.woocommerce-mini-cart-item[data-key="'+e+'"]'),g=a(d).find(".shopping-cart-widget-footer"),h=a(c).find('.woocommerce-mini-cart-item[data-key="'+e+'"]');b.cart_hash?(h.replaceWith(f),a(".shopping-cart-widget-footer").replaceWith(g)):a(c).replaceWith(d)}else a(c).replaceWith(d)}),woodmartThemeModule.supports_html5_storage&&(sessionStorage.setItem(g,JSON.stringify(b.fragments)),localStorage.setItem(f,b.cart_hash),sessionStorage.setItem(f,b.cart_hash),b.cart_hash&&sessionStorage.setItem("wc_cart_created",(new Date).getTime())),woodmartThemeModule.$body.trigger("wc_fragments_refreshed"))},dataType:"json",method:"GET"})},500)})},a(document).ready(function(){woodmartThemeModule.miniCartQuantity()})}(jQuery),function(a){woodmartThemeModule.onRemoveFromCart=function(){"no"!==woodmart_settings.woocommerce_ajax_add_to_cart&&woodmartThemeModule.$document.on("click",".widget_shopping_cart .remove",function(b){b.preventDefault(),a(this).parent().addClass("removing-process")})},a(document).ready(function(){woodmartThemeModule.onRemoveFromCart()})}(jQuery),function(a){woodmartThemeModule.product360Button=function(){void 0!==a.fn.magnificPopup&&a(".product-360-button a").magnificPopup({type:"inline",mainClass:"mfp-fade",preloader:!1,tClose:woodmart_settings.close,tLoading:woodmart_settings.loading,fixedContentPos:!1,removalDelay:500,callbacks:{beforeOpen:function(){this.st.mainClass="mfp-move-horizontal"},open:function(){woodmartThemeModule.$window.trigger("resize")}}})},a(document).ready(function(){woodmartThemeModule.product360Button()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.productFilters()}),a.each(["frontend/element_ready/wd_product_filters.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.productFilters()})}),woodmartThemeModule.productFilters=function(){var b=function(a,b){if(0!==a.length){var c=a.val();c.indexOf(",")>0?a.val(c.replace(","+b,"").replace(b+",","")):a.val(c.replace(b,""))}},c=function(b){e(b),f(b),woodmartThemeModule.$body.hasClass("woodmart-ajax-shop-on")&&void 0!==a.fn.pjax&&b.hasClass("with-ajax")&&(a.pjax({container:".main-page-wrapper",timeout:woodmart_settings.pjax_timeout,url:b.attr("action"),data:b.serialize(),scrollTo:!1,renderCallback:function(a,b,c){woodmartThemeModule.removeDuplicatedStylesFromHTML(b,function(b){a.html(b),c(),woodmartThemeModule.$document.trigger("wdShopPageInit"),woodmartThemeModule.$document.trigger("wood-images-loaded")})}}),b.find(".wd-pf-btn button, .filter_price_slider_amount button").prop("disabled",!0))},d=a(".wd-pf-checkboxes");d.on("click",".selected-value",function(){var d=a(this),e=d.parents(".wd-pf-checkboxes"),f=e.find(".result-input"),g=d.data("title");if("price-filter"===g){var h=d.data("min"),i=d.data("max"),j=e.find(".price_slider_widget");return j.slider("values",0,h),j.slider("values",1,i),e.find(".min_price").val(""),e.find(".max_price").val(""),0===a(".wd-product-filters .wd-pf-btn button").length&&c(d.parents(".wd-product-filters")),void woodmartThemeModule.$body.trigger("filter_price_slider_slide",[h,i,h,i,j])}b(f,g),e.find('.pf-value[data-val="'+g+'"]').parent().removeClass("chosen"),0===a(".wd-product-filters .wd-pf-btn button").length&&c(d.parents(".wd-product-filters")),d.remove()}),d.each(function(){var b=a(this),c=b.find(".wd-pf-title"),d=(c.siblings(".wd-pf-dropdown"),b.hasClass("multi_select"));c.on("click",function(d){var f=d.target;a(f).is(c.find(".selected-value"))||(b.hasClass("wd-opened")?e():(b.addClass("wd-opened"),setTimeout(function(){woodmartThemeModule.$document.trigger("wdProductFiltersOpened")},300)))}),woodmartThemeModule.$document.on("click",function(f){var g=f.target;(b.hasClass("wd-opened")&&d&&!a(g).is(b)&&!a(g).parents().is(b)||!d&&!a(g).is(c)&&!a(g).parents().is(c))&&e()});var e=function(){b.removeClass("wd-opened")}}),a(".wd-pf-checkboxes li > .pf-value").on("click",function(d){d.preventDefault();var e=a(this),f=e.parent(),g=e.parents(".wd-pf-checkboxes"),h=g.find(".result-input"),i=g.find(".wd-pf-results"),j=g.hasClass("multi_select"),k=h.val(),l=e.data("title"),m=e.data("val");j?f.hasClass("chosen")?(b(h,m),i.find('li[data-title="'+m+'"]').remove(),f.removeClass("chosen")):(""===k?h.val(m):h.val(k+","+m),i.prepend('<li class="selected-value" data-title="'+m+'">'+l+"</li>"),f.addClass("chosen")):f.hasClass("chosen")?(h.val(""),i.find(".selected-value").remove(),f.removeClass("chosen")):(h.val(m),i.find(".selected-value").remove(),i.prepend('<li class="selected-value" data-title="'+m+'">'+l+"</li>"),f.parents(".wd-scroll-content").find(".chosen").removeClass("chosen"),f.addClass("chosen")),0===a(".wd-product-filters .wd-pf-btn button").length&&c(e.parents(".wd-product-filters"))});var e=function(b){b.find(".wd-pf-checkboxes").each(function(){var c=a(this);c.find('input[type="hidden"]').length>0&&!c.find('input[type="hidden"]').val()?c.find('input[type="hidden"]').remove():c.hasClass("wd-pf-categories")&&b.attr("action",woodmart_settings.shop_url)})},f=function(a){var b=a.find(".wd-pf-categories .chosen .pf-value");b.length>0&&a.attr("action",b.attr("href"))};woodmartThemeModule.$body.on("filter_price_slider_create filter_price_slider_slide",function(a,b,c,d,e,f){var g=accounting.formatMoney(b,{symbol:woocommerce_price_slider_params.currency_format_symbol,decimal:woocommerce_price_slider_params.currency_format_decimal_sep,thousand:woocommerce_price_slider_params.currency_format_thousand_sep,precision:woocommerce_price_slider_params.currency_format_num_decimals,format:woocommerce_price_slider_params.currency_format}),h=accounting.formatMoney(c,{symbol:woocommerce_price_slider_params.currency_format_symbol,decimal:woocommerce_price_slider_params.currency_format_decimal_sep,thousand:woocommerce_price_slider_params.currency_format_thousand_sep,precision:woocommerce_price_slider_params.currency_format_num_decimals,format:woocommerce_price_slider_params.currency_format});f.siblings(".filter_price_slider_amount").find("span.from").html(g),f.siblings(".filter_price_slider_amount").find("span.to").html(h);var i=f.parents(".wd-pf-checkboxes").find(".wd-pf-results"),j=i.find(".selected-value");b===d&&c===e?j.remove():0===j.length?i.prepend('<li class="selected-value" data-title="price-filter" data-min="'+d+'" data-max="'+e+'">'+g+" - "+h+"</li>"):j.html(g+" - "+h),woodmartThemeModule.$body.trigger("price_slider_updated",[b,c])}),a(".wd-pf-price-range .price_slider_widget").each(function(){var b=a(this),c=b.siblings(".filter_price_slider_amount").find(".min_price"),d=b.siblings(".filter_price_slider_amount").find(".max_price"),e=parseInt(c.data("min")),f=parseInt(d.data("max")),g=parseInt(c.val()),h=parseInt(d.val());a(".price_slider_widget, .price_label").show(),b.slider({range:!0,animate:!0,min:e,max:f,values:[g,h],create:function(){g===e&&h===f&&(c.val(""),d.val("")),woodmartThemeModule.$body.trigger("filter_price_slider_create",[g,h,e,f,b])},slide:function(a,g){g.values[0]===e&&g.values[1]===f?(c.val(""),d.val("")):(c.val(g.values[0]),d.val(g.values[1])),woodmartThemeModule.$body.trigger("filter_price_slider_slide",[g.values[0],g.values[1],e,f,b])},change:function(a,b){woodmartThemeModule.$body.trigger("price_slider_change",[b.values[0],b.values[1]])}})}),a(".wd-product-filters").one("click",".wd-pf-btn button, .filter_price_slider_amount button",function(){var b=a(this),d=b.parents(".wd-product-filters");c(d)}),a(".wd-pf-checkboxes .chosen > .pf-value").each(function(){var b=a(this);b.parents(".wd-pf-checkboxes").find(".wd-pf-results").prepend('<li class="selected-value" data-title="'+b.data("val")+'">'+b.data("title")+"</li>")})},a(document).ready(function(){woodmartThemeModule.productFilters()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdShopPageInit wdUpdateWishlist wdArrowsLoadProducts wdLoadMoreLoadProducts wdProductsTabsLoaded wdArrowsLoadProducts wdBackHistory",function(){woodmartThemeModule.productHover()}),woodmartThemeModule.wcTabsHoverFix=function(){a(".wc-tabs > li").on("click",function(){woodmartThemeModule.productHover()})},woodmartThemeModule.$document.on("wdProductMoreDescriptionOpen",function(a,b){woodmartThemeModule.productHoverRecalc(b)}),a.each(["frontend/element_ready/wd_products.default","frontend/element_ready/wd_products_tabs.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.productHover()})}),woodmartThemeModule.productHoverRecalc=function(a){if(!a.hasClass("product-in-carousel")){var b=a.find(".fade-in-block").outerHeight();a.find(".content-product-imagin").css({marginBottom:-b}),a.addClass("hover-ready")}},woodmartThemeModule.productHover=function(){function b(a){if(!a.data("column_width")){var b=a.outerWidth(),c=a.data("columns"),d=b/c;a.data("column_width",d)}}var c=a(".wd-hover-base");woodmartThemeModule.windowWidth<=1024&&(c.on("click",function(b){var c=a(this),d="state-hover";c.hasClass(d)||"no"!==woodmart_settings.base_hover_mobile_click||(b.preventDefault(),a("."+d).removeClass(d),c.addClass(d))}),woodmartThemeModule.$document.on("click touchstart",function(b){0===a(b.target).closest(".state-hover").length&&a(".state-hover").removeClass("state-hover")})),c.on("mouseenter mousemove touchstart",function(){var b=a(this),c=b.find(".xts-more-desc");c.hasClass("wd-height-calculated")||(b.imagesLoaded(function(){woodmartThemeModule.productHoverRecalc(b)}),c.addClass("wd-height-calculated"))}),a(".wd-products-holder").on("mouseenter mousemove touchstart",function(){b(a(this))}),c.on("mouseenter mousemove touchstart",function(){if(woodmart_settings.hover_width_small){var c=a(this);b(c.parent(".wd-products-holder"));var d=c.parent(".wd-products-holder").data("column_width");d&&(255>d||woodmartThemeModule.windowWidth<=1024?(c.find(".wd-add-btn").parent().addClass("wd-add-small-btn"),c.find(".wd-add-btn").removeClass("wd-add-btn-replace").addClass("wd-action-btn wd-style-icon wd-add-cart-icon")):(woodmartThemeModule.$body.hasClass("catalog-mode-on")||woodmartThemeModule.$body.hasClass("login-see-prices"))&&c.find(".wd-bottom-actions .wd-action-btn").removeClass("wd-style-icon").addClass("wd-style-text"),woodmartThemeModule.$document.trigger("wdProductBaseHoverIconsResize"))}})},a(document).ready(function(){woodmartThemeModule.productHover(),woodmartThemeModule.wcTabsHoverFix()})}(jQuery),function(a){woodmartThemeModule.productImages=function(){var b,c=a(".woocommerce-product-gallery"),d=a(".woocommerce-product-gallery__wrapper"),e=c.find(".thumbnails"),f=".woodmart-show-product-gallery";e.addClass("thumbnails-ready"),c.hasClass("image-action-popup")&&(f+=", .woocommerce-product-gallery__image a"),c.on("click",".woocommerce-product-gallery__image a",function(a){a.preventDefault()}),c.on("click",f,function(c){c.preventDefault(),b=a(this).attr("href");var d=h();woodmartThemeModule.callPhotoSwipe(g(c),d)}),e.on("click",".image-link",function(a){a.preventDefault()});var g=function(b){return d.hasClass("owl-carousel")?d.find(".owl-item.active").index():a(b.currentTarget).parent().parent().index()},h=function(){var b=[];return d.find("figure a img").each(function(){var c=a(this),d=c.attr("data-large_image"),e=c.attr("data-large_image_width"),f=c.attr("data-large_image_height"),g=c.data("caption");b.push({src:d,w:e,h:f,title:"yes"===woodmart_settings.product_images_captions&&g})}),b}},a(document).ready(function(){woodmartThemeModule.productImages()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdReplaceMainGallery",function(){woodmartThemeModule.productImagesGallery()}),a.each(["frontend/element_ready/wd_single_product_gallery.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(a){woodmartThemeModule.productImagesGallery(),a.find(".woocommerce-product-gallery").css("opacity","1")})}),woodmartThemeModule.productImagesGallery=function(){woodmartThemeModule.setupMainCarouselArg(),a(".woocommerce-product-gallery").each(function(){function b(){void 0!==a.fn.owlCarousel&&(g.trigger("destroy.owl.carousel"),g.addClass("owl-carousel").owlCarousel(woodmartThemeModule.mainCarouselArg),woodmartThemeModule.$document.trigger("wood-images-loaded"))}function c(){var b="";g.find(".woocommerce-product-gallery__image").each(function(){var c=a(this),d=c.data("thumb"),e=c.find("a img").attr("alt"),f=c.find("a img").attr("title");f||(f=c.find("a picture").attr("title")),b+='<div class="product-image-thumbnail"><img alt="'+e+'" title="'+f+'" src="'+d+'" /></div>'}),h.hasClass("slick-slider")?h.slick("unslick"):h.hasClass("owl-carousel")&&h.trigger("destroy.owl.carousel"),h.empty(),h.append(b)}function d(){h.slick({slidesToShow:woodmart_settings.product_gallery.thumbs_slider.items.vertical_items,slidesToScroll:woodmart_settings.product_gallery.thumbs_slider.items.vertical_items,vertical:!0,verticalSwiping:!0,infinite:!1}),h.on("click",".product-image-thumbnail",function(){g.trigger("to.owl.carousel",a(this).index())}),g.on("changed.owl.carousel",function(a){var b=a.item.index;h.slick("slickGoTo",b),h.find(".active-thumb").removeClass("active-thumb"),h.find(".product-image-thumbnail").eq(b).addClass("active-thumb")}),h.find(".product-image-thumbnail").eq(0).addClass("active-thumb"),h.imagesLoaded(function(){h.slick("setPosition")})}function e(){if(void 0!==a.fn.owlCarousel){h.addClass("owl-carousel").owlCarousel({rtl:woodmartThemeModule.$body.hasClass("rtl"),items:woodmart_settings.product_gallery.thumbs_slider.items.desktop,responsive:{1025:{items:woodmart_settings.product_gallery.thumbs_slider.items.desktop},769:{items:woodmart_settings.product_gallery.thumbs_slider.items.tablet_landscape},577:{items:woodmart_settings.product_gallery.thumbs_slider.items.tablet},0:{items:woodmart_settings.product_gallery.thumbs_slider.items.mobile}},dots:!1,nav:!0,navText:!1,navClass:["owl-prev wd-btn-arrow","owl-next wd-btn-arrow"]});var b=h.owlCarousel();h.on("mouseup",".owl-item",function(){var c=a(this).index();b.trigger("to.owl.carousel",c),g.trigger("to.owl.carousel",c)}),g.on("changed.owl.carousel",function(a){var c=a.item.index;b.trigger("to.owl.carousel",c),h.find(".active-thumb").removeClass("active-thumb"),h.find(".product-image-thumbnail").eq(c).addClass("active-thumb")}),h.find(".product-image-thumbnail").eq(0).addClass("active-thumb")}}var f=a(this),g=f.find(".woocommerce-product-gallery__wrapper:not(.quick-view-gallery)"),h=f.find(".thumbnails");h.addClass("thumbnails-ready"),(f.hasClass("thumbs-position-without")||f.hasClass("thumbs-position-centered")||f.hasClass("thumbs-position-bottom")||f.hasClass("thumbs-position-left")||f.hasClass("thumbs-position-carousel_two_columns"))&&("yes"===woodmart_settings.product_slider_auto_height?f.imagesLoaded(function(){b()}):b()),woodmartThemeModule.$window.width()<=1024&&(f.hasClass("thumbs-position-bottom_combined")||f.hasClass("thumbs-position-bottom_column")||f.hasClass("thumbs-position-bottom_grid"))&&b(),0!==h.length&&(c(),f.hasClass("thumbs-position-left")&&woodmartThemeModule.$body.width()>1024&&void 0!==a.fn.slick?d():e())})},woodmartThemeModule.$window.on("elementor/frontend/init",function(){elementorFrontend.isEditMode()&&woodmartThemeModule.$window.on("resize",woodmartThemeModule.debounce(function(){woodmartThemeModule.productImagesGallery()},300))}),a(document).ready(function(){woodmartThemeModule.productImagesGallery()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdShopPageInit wdLoadMoreLoadProducts wdArrowsLoadProducts wdProductsTabsLoaded wdUpdateWishlist",function(){woodmartThemeModule.productMoreDescription()}),
a.each(["frontend/element_ready/wd_products.default","frontend/element_ready/wd_products_tabs.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.productMoreDescription()})}),woodmartThemeModule.productMoreDescription=function(){a(".wd-hover-base").on("mouseenter touchstart",function(){var b=a(this).find(".wd-more-desc"),c=b.find(".wd-more-desc-inner"),d=b.find(".wd-more-desc-btn");if(!b.hasClass("wd-more-desc-calculated")){var e=b.outerHeight(),f=c.outerHeight(),g=f-e;g>30?d.addClass("wd-shown"):g>0&&b.css("height",e+g),b.addClass("wd-more-desc-calculated")}}),woodmartThemeModule.$body.on("click",".wd-more-desc-btn",function(b){b.preventDefault();var c=a(this);c.parent().addClass("wd-more-desc-full"),woodmartThemeModule.$document.trigger("wdProductMoreDescriptionOpen",[c.parents(".wd-hover-base")])})},a(document).ready(function(){woodmartThemeModule.productMoreDescription()})}(jQuery),function(a){woodmartThemeModule.productVideo=function(){void 0!==a.fn.magnificPopup&&a(".product-video-button a").magnificPopup({tClose:woodmart_settings.close,tLoading:woodmart_settings.loading,type:"iframe",removalDelay:500,iframe:{markup:'<div class="mfp-iframe-scaler mfp-with-anim"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" allowfullscreen></iframe></div>',patterns:{youtube:{index:"youtube.com/",id:"v=",src:"//www.youtube.com/embed/%id%?rel=0&autoplay=1"}}},preloader:!1,fixedContentPos:!1,callbacks:{beforeOpen:function(){this.st.mainClass="mfp-move-horizontal"}}})},a(document).ready(function(){woodmartThemeModule.productVideo()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdProductsTabsLoaded",function(){woodmartThemeModule.productsLoadMore()}),a.each(["frontend/element_ready/wd_products.default","frontend/element_ready/wd_products_tabs.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.productsLoadMore()})}),woodmartThemeModule.productsLoadMore=function(){var b,c=!1;a(".wd-products-element").each(function(){function e(){q=woodmartThemeModule.$window.height()/2,r=woodmartThemeModule.$window.outerWidth(!0),o=f.outerWidth(!0),i=woodmartThemeModule.$window.scrollTop(),j=f.offset().top-q,k=f.offset().left-x,l=o+f.offset().left+x-v.outerWidth(),p=u.outerHeight(),n=f.height()-p,m=j+n,woodmartThemeModule.$window.width()<=1024&&(k+=35,l-=35),u.css({left:k+"px"}),v.css({left:l+"px"}),i<j||i>m?(t.removeClass("show-arrow"),w.addClass("hidden-loader")):(t.addClass("show-arrow"),w.removeClass("hidden-loader"))}var f=a(this),g=[],h=f.find(".wd-products-holder");if(h.hasClass("pagination-arrows")){g[1]={items:h.html(),status:"have-posts"};var i,j,k,l,m,n,o,p,q,r,s=woodmartThemeModule.$body,t=f.find(".products-footer"),u=t.find(".wd-products-load-prev"),v=t.find(".wd-products-load-next"),w=f.find(".wd-products-loader"),x=50;s.hasClass("rtl")&&(u=v,v=t.find(".wd-products-load-prev")),woodmartThemeModule.$window.on("scroll",function(){e()}),setTimeout(function(){e()},500),f.find(".wd-products-load-prev, .wd-products-load-next").on("click",function(e){e.preventDefault();var f=a(this);if(!c&&!f.hasClass("disabled")){c=!0,clearInterval(b);var h=f.parent().parent().prev(),i=f.parent().find(".wd-products-load-next"),j=f.parent().find(".wd-products-load-prev"),k=h.data("atts"),l="woodmart_get_products_shortcode",m=woodmart_settings.ajaxurl,n="json",o="POST",p=h.attr("data-paged");if(p++,f.hasClass("wd-products-load-prev")){if(p<2)return;p-=2}d("arrows",k,m,l,n,o,p,h,f,g,function(c){var d=h.hasClass("products-bordered-grid");if(d||h.addClass("wd-animated-products"),c.items.length&&(h.html(c.items).attr("data-paged",p),h.imagesLoaded().progress(function(){h.parent().trigger("recalc")}),woodmartThemeModule.$document.trigger("wood-images-loaded"),woodmartThemeModule.$document.trigger("wdArrowsLoadProducts")),woodmartThemeModule.$window.width()<768&&a("html, body").stop().animate({scrollTop:h.offset().top-150},400),!d){var e=0;b=setInterval(function(){h.find(".product-grid-item").eq(e).addClass("wd-animated"),e++},100)}p>1?j.removeClass("disabled"):j.addClass("disabled"),"no-more-posts"===c.status?i.addClass("disabled"):i.removeClass("disabled")})}})}}),woodmartThemeModule.clickOnScrollButton(woodmartThemeModule.shopLoadMoreBtn,!1,woodmart_settings.infinit_scroll_offset),woodmartThemeModule.$document.off("click",".wd-products-load-more").on("click",".wd-products-load-more",function(b){if(b.preventDefault(),!c){c=!0;var f=a(this),g=f.parent().siblings(".wd-products-holder"),h=g.data("source"),i="woodmart_get_products_"+h,j=woodmart_settings.ajaxurl,k="POST",l=g.data("atts"),m=g.data("paged");m++,"main_loop"===h&&(j=a(this).attr("href"),k="GET"),d("load-more",l,j,i,"json",k,m,g,f,[],function(a){a.items.length&&(g.hasClass("grid-masonry")?e(g,a.items):g.append(a.items),"no-more-posts"!==a.status&&g.imagesLoaded().progress(function(){woodmartThemeModule.clickOnScrollButton(woodmartThemeModule.shopLoadMoreBtn,!0,woodmart_settings.infinit_scroll_offset)}),woodmartThemeModule.$document.trigger("wood-images-loaded"),woodmartThemeModule.$document.trigger("wdLoadMoreLoadProducts"),g.data("paged",m)),"main_loop"===h&&(f.attr("href",a.nextPage),"no-more-posts"===a.status&&f.hide().remove()),"no-more-posts"===a.status&&f.hide()})}});var d=function(b,d,e,f,g,h,i,j,k,l,m){var n={atts:d,paged:i,action:f,woo_ajax:1};if("GET"===h&&(e=woodmartThemeModule.removeURLParameter(e,"loop"),e=woodmartThemeModule.removeURLParameter(e,"woo_ajax")),l[i])return j.addClass("loading"),void setTimeout(function(){m(l[i]),j.removeClass("loading"),c=!1},300);if("arrows"===b&&j.addClass("loading").parent().addClass("element-loading"),k.addClass("loading"),"woodmart_get_products_main_loop"===f){n={loop:j.find(".product").last().data("loop"),woo_ajax:1}}a.ajax({url:e,data:n,dataType:g,method:h,success:function(b){woodmartThemeModule.removeDuplicatedStylesFromHTML(b.items,function(c){b.items=c,l[i]=b,m(b),"yes"===woodmart_settings.load_more_button_page_url&&(window.history.pushState("","",b.currentPage+window.location.search),a(".woocommerce-breadcrumb").replaceWith(b.breadcrumbs))})},error:function(){console.log("ajax error")},complete:function(){"arrows"===b&&j.removeClass("loading").parent().removeClass("element-loading"),k.removeClass("loading"),c=!1}})},e=function(b,c){var d=a(c);b.append(d).isotope("appended",d),b.imagesLoaded().progress(function(){b.isotope("layout")})}},a(document).ready(function(){woodmartThemeModule.productsLoadMore()})}(jQuery),function(a){a.each(["frontend/element_ready/wd_products_tabs.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.productsTabs()})}),woodmartThemeModule.productsTabs=function(){var b=!1;a(".wd-products-tabs").each(function(){var d=a(this),e=d.find(".wd-tab-content"),f=[];e.find(".owl-carousel").length<1&&(f[0]={html:e.html()}),d.find(".products-tabs-title li").on("click",function(d){d.preventDefault();var g=a(this),h=g.data("atts"),i=g.index();b||g.hasClass("wd-active")||(b=!0,c(h,i,e,g,f,function(a){a.html&&woodmartThemeModule.removeDuplicatedStylesFromHTML(a.html,function(a){e.html(a),e.removeClass("loading").parent().removeClass("element-loading"),g.removeClass("loading"),woodmartThemeModule.$document.trigger("wdProductsTabsLoaded"),woodmartThemeModule.$document.trigger("wood-images-loaded")})}))}),setTimeout(function(){d.addClass("wd-inited")},200)});var c=function(c,d,e,f,g,h){if(f.parent().find(".wd-active").removeClass("wd-active"),f.addClass("wd-active"),g[d])return e.addClass("loading"),void setTimeout(function(){b=!1,h(g[d]),e.removeClass("loading")},300);e.addClass("loading").parent().addClass("element-loading"),f.addClass("loading"),a.ajax({url:woodmart_settings.ajaxurl,data:{atts:c,action:"woodmart_get_products_tab_shortcode"},dataType:"json",method:"POST",success:function(a){b=!1,g[d]=a,h(a)},error:function(){console.log("ajax error")},complete:function(){b=!1}})}},a(document).ready(function(){woodmartThemeModule.productsTabs()})}(jQuery),function(a){a.each(["frontend/element_ready/wd_products.default","frontend/element_ready/wd_products_tabs.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.quickShop()})}),woodmartThemeModule.quickShop=function(){function b(a){a.find(".variations_form").wc_variation_form().find(".variations select:eq(0)").trigger("change"),a.find(".variations_form").trigger("wc_variation_form")}if("no"!==woodmart_settings.quick_shop){woodmartThemeModule.$document.on("click",".product-grid-item.product-type-variable .add_to_cart_button",function(c){c.preventDefault();var d=a(this),e=d.parents(".product").first(),f=e.find(".wd-quick-shop"),g=e.data("id"),h="btn-loading";if(!d.hasClass(h)){if(e.hasClass("quick-shop-loaded"))return e.addClass("quick-shop-shown"),void woodmartThemeModule.$body.trigger("woodmart-quick-view-displayed");d.addClass(h),e.addClass("wd-loading-quick-shop"),a.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_quick_shop",id:g},method:"get",success:function(a){woodmartThemeModule.removeDuplicatedStylesFromHTML(a,function(a){f.append(a),b(e),woodmartThemeModule.$document.trigger("wdQuickShopSuccess"),d.removeClass(h),e.removeClass("wd-loading-quick-shop"),e.addClass("quick-shop-shown quick-shop-loaded"),woodmartThemeModule.$body.trigger("woodmart-quick-view-displayed")})}})}}).on("click",".quick-shop-close",function(b){b.preventDefault(),a(this).parents(".product").removeClass("quick-shop-shown")}),woodmartThemeModule.$body.on("added_to_cart",function(){a(".product").removeClass("quick-shop-shown")})}},a(document).ready(function(){woodmartThemeModule.quickShop()})}(jQuery),function(a){a.each(["frontend/element_ready/wd_products.default","frontend/element_ready/wd_products_tabs.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.quickViewInit()})}),woodmartThemeModule.$document.on("wdReplaceMainGallery",function(){woodmartThemeModule.quickViewCarousel()}),woodmartThemeModule.quickViewInit=function(){woodmartThemeModule.$document.on("click",".open-quick-view",function(b){if(b.preventDefault(),a(".open-quick-view").hasClass("loading"))return!0;var c=a(this),d=c.data("id"),e=c.data("loop-name"),f=c.data("loop"),g="",h="",i=a(".quick-view").find('[data-loop-name="'+e+'"]');c.addClass("loading"),void 0!==i[f-1]&&(g=i.eq(f-1).addClass("quick-view-prev"),g=a("<div>").append(g.clone()).html()),void 0!==i[f+1]&&(h=i.eq(f+1).addClass("quick-view-next"),h=a("<div>").append(h.clone()).html()),woodmartThemeModule.quickViewLoad(d,c,g,h)})},woodmartThemeModule.quickViewCarousel=function(){if(void 0!==a.fn.owlCarousel){var b=a(".product-quick-view .woocommerce-product-gallery__wrapper");b.trigger("destroy.owl.carousel"),b.addClass("owl-carousel").owlCarousel({rtl:woodmartThemeModule.$body.hasClass("rtl"),items:1,dots:!1,nav:!0,navText:!1,navClass:["owl-prev wd-btn-arrow","owl-next wd-btn-arrow"]})}},woodmartThemeModule.quickViewLoad=function(b,c){var d={id:b,action:"woodmart_quick_view"},e=function(b){var c=a(b);a.magnificPopup.open({items:{src:c,type:"inline"},tClose:woodmart_settings.close,tLoading:woodmart_settings.loading,removalDelay:500,callbacks:{beforeOpen:function(){this.st.mainClass="mfp-move-horizontal quick-view-wrapper"},open:function(){var b=a(".variations_form");b.each(function(){a(this).wc_variation_form().find(".variations select:eq(0)").trigger("change")}),b.trigger("wc_variation_form"),woodmartThemeModule.$body.trigger("woodmart-quick-view-displayed"),woodmartThemeModule.$document.trigger("wdQuickViewOpen"),setTimeout(function(){woodmartThemeModule.$document.trigger("wdQuickViewOpen300")},300),woodmartThemeModule.quickViewCarousel()}}})};a.ajax({url:woodmart_settings.ajaxurl,data:d,method:"get",success:function(b){woodmartThemeModule.removeDuplicatedStylesFromHTML(b,function(b){woodmart_settings.quickview_in_popup_fix?(a.magnificPopup.close(),setTimeout(function(){e(b)},500)):e(b)})},complete:function(){c.removeClass("loading")}})},a(document).ready(function(){woodmartThemeModule.quickViewInit(),woodmartThemeModule.quickViewCarousel()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdFiltersOpened wdShopPageInit wdPjaxStart",function(){woodmartThemeModule.shopLoader()}),woodmartThemeModule.shopLoader=function(){var b=function(){var b=a('.products[data-source="main_loop"], .wd-portfolio-holder[data-source="main_loop"]'),c=b.parent().find(".wd-sticky-loader");if(!(b.length<1)){var d=woodmartThemeModule.$window.height()/2,e=woodmartThemeModule.$window.scrollTop(),f=b.offset().top-d+45,g=b.height(),h=f+g-170;e<f?(c.addClass("wd-position-top"),c.removeClass("wd-position-stick")):e>h?(c.addClass("wd-position-bottom"),c.removeClass("wd-position-stick")):(c.addClass("wd-position-stick"),c.removeClass("wd-position-top wd-position-bottom"))}};woodmartThemeModule.$window.off("scroll.loaderVerticalPosition"),woodmartThemeModule.$window.on("scroll.loaderVerticalPosition",b)},a(document).ready(function(){woodmartThemeModule.shopLoader()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdProductsTabsLoaded wdShopPageInit",function(){woodmartThemeModule.shopMasonry()}),a.each(["frontend/element_ready/wd_products.default","frontend/element_ready/wd_products_tabs.default","frontend/element_ready/wd_products_brands.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.shopMasonry()})}),woodmartThemeModule.shopMasonry=function(){function b(){var b=a(".categories-masonry"),c=b.hasClass("categories-style-masonry")?".product-category.product":".col-lg-3.product-category.product";b.imagesLoaded(function(){b.packery({resizable:!1,isOriginLeft:!woodmartThemeModule.$body.hasClass("rtl"),packery:{gutter:0,columnWidth:c},itemSelector:".product-category.product"})})}if(void 0!==a.fn.isotope&&void 0!==a.fn.packery&&void 0!==a.fn.imagesLoaded){var c=a(".elements-grid.grid-masonry");c.imagesLoaded(function(){c.isotope({isOriginLeft:!woodmartThemeModule.$body.hasClass("rtl"),itemSelector:".product-category.product, .product-grid-item"})}),woodmartThemeModule.$window.on("resize",function(){b()}),b()}},a(document).ready(function(){woodmartThemeModule.shopMasonry()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.shopPageInit()}),woodmartThemeModule.shopPageInit=function(){woodmartThemeModule.clickOnScrollButton(woodmartThemeModule.shopLoadMoreBtn,!1,woodmart_settings.infinit_scroll_offset),a("body > .tooltip").remove(),woodmartThemeModule.$body.on("updated_wc_div",function(){woodmartThemeModule.$document.trigger("wood-images-loaded")}),woodmartThemeModule.$document.trigger("resize.vcRowBehaviour")}}(jQuery),function(a){woodmartThemeModule.singleProductTabsAccordion=function(){var b=a(".woocommerce-tabs");b.length<=0||"accordion"===b.data("layout")||a(".site-content").hasClass("wd-builder-on")||(woodmartThemeModule.$window.width()<=1024?(b.removeClass("tabs-layout-tabs wc-tabs-wrapper").addClass("tabs-layout-accordion wd-accordion wd-style-default"),b.find(".wd-accordion-item .entry-content").addClass("wd-accordion-content wd-scroll").find(".wc-tab-inner").addClass("wd-scroll-content"),a(".single-product-page").removeClass("tabs-type-tabs").addClass("tabs-type-accordion")):(b.addClass("tabs-layout-tabs wc-tabs-wrapper").removeClass("tabs-layout-accordion wd-accordion wd-style-default"),b.find(".wd-accordion-item .entry-content").removeClass("wd-accordion-content wd-scroll").find(".wc-tab-inner").removeClass("wd-scroll-content"),a(".single-product-page").addClass("tabs-type-tabs").removeClass("tabs-type-accordion")))},woodmartThemeModule.$window.on("resize",woodmartThemeModule.debounce(function(){woodmartThemeModule.singleProductTabsAccordion(),woodmartThemeModule.accordion(),woodmartThemeModule.$document.trigger("resize.vcRowBehaviour")},300)),a(document).ready(function(){woodmartThemeModule.singleProductTabsAccordion()})}(jQuery),function(a){woodmartThemeModule.singleProductTabsCommentsFix=function(){var b=window.location.href,c=window.location.hash,d=woodmartThemeModule.$body.find(".wc-tabs, ul.tabs").first();a(".single-product-page").hasClass("reviews-location-separate")&&(c.toLowerCase().indexOf("comment-")>=0||"#reviews"===c||"#tab-reviews"===c?d.find("li:first a").click():(b.indexOf("comment-page-")>0||b.indexOf("cpage=")>0)&&d.find("li:first a").click())},a(document).ready(function(){woodmartThemeModule.singleProductTabsCommentsFix()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.sortByWidget()}),woodmartThemeModule.sortByWidget=function(){if(woodmartThemeModule.$body.hasClass("woodmart-ajax-shop-on")&&void 0!==a.fn.pjax){var b=a(".woocommerce-ordering");b.on("change","select.orderby",function(){var b=a(this).closest("form");b.find('[name="_pjax"]').remove(),a.pjax({container:".main-page-wrapper",timeout:woodmart_settings.pjax_timeout,url:"?"+b.serialize(),scrollTo:!1,renderCallback:function(a,b,c){woodmartThemeModule.removeDuplicatedStylesFromHTML(b,function(b){a.html(b),c(),woodmartThemeModule.$document.trigger("wdShopPageInit"),woodmartThemeModule.$document.trigger("wood-images-loaded")})}})}),b.on("submit",function(a){a.preventDefault(a)})}},a(document).ready(function(){woodmartThemeModule.sortByWidget()})}(jQuery),function(a){woodmartThemeModule.stickyAddToCart=function(){var b=a("form.cart, .out-of-stock"),c=a(".wd-sticky-btn");if(!(c.length<=0||b.length<=0||woodmartThemeModule.$window.width()<=768&&!woodmartThemeModule.$body.hasClass("wd-sticky-btn-on-mb"))){var d=b.offset().top+b.outerHeight(),e=a(".scrollToTop"),f=function(){var a=woodmartThemeModule.$window.scrollTop();d<a?(c.addClass("wd-sticky-btn-shown"),e.addClass("wd-sticky-btn-shown")):d>a&&(c.removeClass("wd-sticky-btn-shown"),e.removeClass("wd-sticky-btn-shown"))};f(),woodmartThemeModule.$window.on("scroll",f),a(".wd-sticky-add-to-cart").on("click",function(b){b.preventDefault(),a("html, body").animate({scrollTop:a(".elementor-widget-woocommerce-product-title,.summary-inner .product_title").offset().top},800)}),a(".wd-sticky-btn .wd-wishlist-btn a").on("click",function(b){a(this).hasClass("added")||b.preventDefault(),a(".summary-inner > .wd-wishlist-btn a").trigger("click")}),woodmartThemeModule.$document.on("added_to_wishlist",function(){a(".wd-sticky-btn .wd-wishlist-btn a").addClass("added")}),a(".wd-sticky-btn .wd-compare-btn a").on("click",function(b){a(this).hasClass("added")||b.preventDefault(),a(".summary-inner > .wd-compare-btn a").trigger("click")}),woodmartThemeModule.$document.on("added_to_compare",function(){a(".wd-sticky-btn .wd-compare-btn a").addClass("added")}),a(".wd-sticky-btn-cart .qty").on("change",function(){a(".summary-inner .qty").val(a(this).val())}),a(".summary-inner .qty").on("change",function(){a(".wd-sticky-btn-cart .qty").val(a(this).val())})}},a(document).ready(function(){woodmartThemeModule.stickyAddToCart()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdHeaderBuilderInited",function(){woodmartThemeModule.stickyDetails()}),woodmartThemeModule.stickyDetails=function(){if(woodmartThemeModule.$body.hasClass("woodmart-product-sticky-on")&&!(woodmartThemeModule.$window.width()<=1024)){a(".entry-summary").each(function(){var b=a(this),c=parseInt(woodmart_settings.sticky_product_details_offset),d=b.find(".summary-inner"),e=b.parent().find(".product-images-inner");d.trigger("sticky_kit:detach"),e.trigger("sticky_kit:detach"),e.imagesLoaded(function(){var a=d.outerHeight()-e.outerHeight();a<-100?d.stick_in_parent({offset_top:c}):a>100&&e.stick_in_parent({offset_top:c}),woodmartThemeModule.$window.on("resize",woodmartThemeModule.debounce(function(){woodmartThemeModule.$window.width()<=1024?(d.trigger("sticky_kit:detach"),e.trigger("sticky_kit:detach")):d.outerHeight()<e.outerHeight()?d.stick_in_parent({offset_top:c}):e.stick_in_parent({offset_top:c})},300))})})}},a(document).ready(function(){woodmartThemeModule.stickyDetails()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.stickySidebarBtn()}),woodmartThemeModule.stickySidebarBtn=function(){var b=a(".wd-show-sidebar-btn"),c=a(".wd-sidebar-opener.wd-on-shop:not(.toolbar)");if(!(c.length<=0||b.length<=0||woodmartThemeModule.$window.width()>=1024)){var d=function(){b.offset().top+b.outerHeight()<woodmartThemeModule.$window.scrollTop()?c.addClass("wd-sticky"):c.removeClass("wd-sticky")};d(),woodmartThemeModule.$window.on("scroll",d),woodmartThemeModule.$window.on("resize",d)}},a(document).ready(function(){woodmartThemeModule.stickySidebarBtn()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdShopPageInit wdArrowsLoadProducts wdLoadMoreLoadProducts wdProductsTabsLoaded",function(){woodmartThemeModule.swatchesLimit()}),woodmartThemeModule.swatchesLimit=function(){a(".wd-swatches-divider").on("click",function(){var b=a(this).parent();b.find(".wd-swatch").removeClass("wd-hidden"),b.addClass("wd-all-shown")})},a(document).ready(function(){woodmartThemeModule.swatchesLimit()})}(jQuery),function(a){a.each(["frontend/element_ready/wd_products.default","frontend/element_ready/wd_products_tabs.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.swatchesOnGrid()})}),woodmartThemeModule.swatchesOnGrid=function(){woodmartThemeModule.$body.on("click",".swatch-on-grid",function(){var b,c,d,e=a(this),f=e.data("image-src"),g=e.data("image-srcset"),h=e.data("image-sizes");if(void 0!==f&&""!==f){var i=e.parents(".product-grid-item"),j=i.find(".product-image-link > img, .product-image-link > picture > img"),k=i.find(".product-image-link picture source"),l=j.data("original-src"),m=j.data("original-srcset"),n=j.data("original-sizes");void 0===l&&j.data("original-src",j.attr("src")),void 0===m&&j.data("original-srcset",j.attr("srcset")),void 0===n&&j.data("original-sizes",j.attr("sizes")),e.hasClass("active-swatch")?(b=l,c=m,d=n,e.removeClass("active-swatch"),i.removeClass("product-swatched")):(e.parent().find(".active-swatch").removeClass("active-swatch"),e.addClass("active-swatch"),i.addClass("product-swatched"),b=f,c=g,d=h),j.attr("src")!==b&&(i.addClass("wd-loading-image"),j.attr("src",b).attr("srcset",c).attr("image_sizes",d).one("load",function(){i.removeClass("wd-loading-image")}),k.length>0&&k.attr("srcset",c).attr("image_sizes",d))}})},a(document).ready(function(){woodmartThemeModule.swatchesOnGrid()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdQuickShopSuccess wdQuickViewOpen wdUpdateWishlist",function(){woodmartThemeModule.swatchesVariations()}),a.each(["frontend/element_ready/wd_single_product_add_to_cart.default"],function(b,c){woodmartThemeModule.wdElementorAddAction(c,function(b){b.find(".variations_form").each(function(){a(this).wc_variation_form()}),woodmartThemeModule.swatchesVariations()})}),woodmartThemeModule.swatchesVariations=function(){woodmartThemeModule.setupMainCarouselArg();var b=a(".variations_form"),c=!1,d=!1,e=b.data("product_variations"),f=!1===e;a(".variations_form .label").on("click",function(b){a(this).siblings(".value").hasClass("with-swatches")&&b.preventDefault()}),b.each(function(){var b=a(this);b.data("swatches")||(b.data("swatches",!0),b.data("product_variations")||b.find(".swatches-select").find("> div").addClass("swatch-enabled"),a(".swatches-select > div").hasClass("active-swatch")&&b.addClass("variation-swatch-selected"),b.on("click",".swatches-select > div",function(){var c=a(this),d=c.data("value"),e=c.parent().data("id"),f=c.data("title");g(b),c.hasClass("active-swatch")||c.hasClass("swatch-disabled")||(b.find("select#"+e).val(d).trigger("change"),c.parent().find(".active-swatch").removeClass("active-swatch"),c.addClass("active-swatch"),g(b),("yes"===woodmart_settings.swatches_labels_name&&woodmartThemeModule.$window.width()>=769||woodmartThemeModule.$window.width()<=768)&&(c.parents("tr").find(" > th .wd-attr-selected").remove(),c.parents("tr").find(" > th").append('<span class="wd-attr-selected">'+f+"</span>")))}).on("woocommerce_update_variation_values",function(){g(b)}).on("click",".reset_variations",function(){b.find(".active-swatch").removeClass("active-swatch"),("yes"===woodmart_settings.swatches_labels_name&&woodmartThemeModule.$window.width()>=769||woodmartThemeModule.$window.width()<=768)&&b.find(".wd-attr-selected").html("")}).on("reset_data",function(){var d=a(this),e=!0,f=!1;b.find(".variations select").each(function(){0===(d.val()||"").length?e=!1:f=!0}),e&&d.parent().find(".active-swatch").removeClass("active-swatch"),b.removeClass("variation-swatch-selected");var i=a(".woocommerce-product-gallery__wrapper.owl-carousel"),k=a(".woocommerce-product-gallery");if(g(b),p("default",b),i.hasClass("owl-carousel")){"yes"===woodmart_settings.product_slider_auto_height?(!h()&&j("default",b)&&c&&i.trigger("destroy.owl.carousel"),a(".product-images").imagesLoaded(function(){i=i.owlCarousel(woodmartThemeModule.mainCarouselArg),i.trigger("refresh.owl.carousel")})):(i=i.owlCarousel(woodmartThemeModule.mainCarouselArg),i.trigger("refresh.owl.carousel"));var l=k.hasClass("thumbs-position-centered")?woodmart_settings.centered_gallery_start:0;h()&&(l=0),i.trigger("to.owl.carousel",l),woodmartThemeModule.$document.trigger("wdResetVariation")}}).on("found_variation",function(a,c){f&&p(c.variation_id,b,c)}).on("reset_image",function(){var c=a(".thumbnails .product-image-thumbnail img").first();h()||i(b)||c.wc_reset_variation_attr("src")}).on("show_variation",function(e,f){if(("yes"===woodmart_settings.swatches_labels_name&&woodmartThemeModule.$window.width()>=769||woodmartThemeModule.$window.width()<=768)&&!d&&(b.find(".active-swatch").each(function(){var b=a(this),c=b.data("title");b.parents("tr").find(".wd-attr-selected").html(c)}),d=!0),f.image.src){var g=b.parents(".single-product-content").find('.thumbnails .product-image-thumbnail img[data-o_src="'+f.image.thumb_src+'"]').length>0,k=b.parents(".single-product-content").find(".thumbnails .product-image-thumbnail img").first(),l=b.parents(".single-product-content").find(".woocommerce-product-gallery .woocommerce-product-gallery__image > a").first().data("o_href");g&&k.wc_reset_variation_attr("src"),i(b)||p(f.variation_id,b)||(k.attr("src")!==f.image.thumb_src&&k.wc_set_variation_attr("src",f.image.src),woodmartThemeModule.$document.trigger("wdShowVariationNotQuickView")),b.addClass("variation-swatch-selected"),i(b)||h()||l===f.image.full_src||n();var m=a(".woocommerce-product-gallery__wrapper.owl-carousel");if(m.hasClass("owl-carousel")){"yes"===woodmart_settings.product_slider_auto_height?(!h()&&j(f.variation_id,b)&&c&&m.trigger("destroy.owl.carousel"),a(".product-images").imagesLoaded(function(){m=m.owlCarousel(woodmartThemeModule.mainCarouselArg),m.trigger("refresh.owl.carousel")})):(m=m.owlCarousel(woodmartThemeModule.mainCarouselArg),m.trigger("refresh.owl.carousel"));var o=a(".images .thumbnails");m.trigger("to.owl.carousel",0),o.hasClass("owl-carousel")?(o.owlCarousel().trigger("to.owl.carousel",0),o.find(".active-thumb").removeClass("active-thumb"),o.find(".product-image-thumbnail").eq(0).addClass("active-thumb")):o.hasClass("slick-slider")&&(o.slick("slickGoTo",0),o.find(".product-image-thumbnail").eq(0).hasClass("active-thumb")||(o.find(".active-thumb").removeClass("active-thumb"),o.find(".product-image-thumbnail").eq(0).addClass("active-thumb")))}}}))});var g=function(b){b.data("product_variations")&&b.find(".variations select").each(function(){var b=a(this),c=b.parent().find(".swatches-select"),d=b.html();d=a(d),c.find("> div").removeClass("swatch-enabled").addClass("swatch-disabled"),d.each(function(){var b=a(this).val();a(this).hasClass("enabled")?c.find('div[data-value="'+b+'"]').removeClass("swatch-disabled").addClass("swatch-enabled"):c.find('div[data-value="'+b+'"]').addClass("swatch-disabled").removeClass("swatch-enabled")})})},h=function(){return a(".single-product-content").hasClass("product-quick-view")},i=function(a){return a.parent().hasClass("quick-shop-form")},j=function(a,b){return"old"===woodmart_settings.variation_gallery_storage_method?k(a):l(a,b)},k=function(a){if("undefined"!=typeof woodmart_variation_gallery_data||"undefined"!=typeof woodmart_qv_variation_gallery_data){var b=h()?woodmart_qv_variation_gallery_data:woodmart_variation_gallery_data;return void 0!==b&&b&&b[a]}},l=function(a,b){var c=o(b);return void 0!==c&&c&&c[a]&&c[a].length>1},m=function(a){return void 0!==a&&a&&a[key]&&a[key].length>1},n=function(){if(0!==a(".woocommerce-product-gallery__wrapper").length&&("yes"===woodmart_settings.swatches_scroll_top_desktop&&woodmartThemeModule.$window.width()>=1024||"yes"===woodmart_settings.swatches_scroll_top_mobile&&woodmartThemeModule.$window.width()<=1024)){var b=a("html, body");b.stop(!0),woodmartThemeModule.$window.on("mousedown wheel DOMMouseScroll mousewheel keyup touchmove",function(){b.stop(!0)}),b.animate({scrollTop:a(".woocommerce-product-gallery__wrapper").offset().top-150},800),a(".wd-swatch").tooltip("hide")}},o=function(a,b){void 0===b&&(b=!1);var c=a.data("product_variations");b&&(c=b),c||(c=a.data("wd_product_variations"));var d=[];return c?("object"!=typeof c||Array.isArray(c)?("string"==typeof c&&(c=JSON.parse(c)),c.forEach(function(a){d[a.variation_id]=a.additional_variation_images,d.default=a.additional_variation_images_default})):(d[c.variation_id]=c.additional_variation_images,d.default=c.additional_variation_images_default,a.data("wd_product_variations",JSON.stringify([{additional_variation_images_default:c.additional_variation_images_default}]))),d):d},p=function(b,d,e){if(void 0===e&&(e=!1),"old"===woodmart_settings.variation_gallery_storage_method){if(!j(b,d)||i(d)||"default"===b&&!c)return!1;q(b,d)}else{if(!j(b,d)&&!e||e&&!m||i(d)||"default"===b&&!c)return!1;var f=o(d,e);r(f[b],d)}return a(".woocommerce-product-gallery__image").trigger("zoom.destroy"),woodmartThemeModule.$document.trigger("wdReplaceMainGallery"),h()||woodmartThemeModule.$document.trigger("wdReplaceMainGalleryNotQuickView"),c="default"!==b,woodmartThemeModule.$window.trigger("resize"),!0},q=function(a,b){var c=h()?woodmart_qv_variation_gallery_data:woodmart_variation_gallery_data,d=c[a],e=b.parents(".single-product-content").find(".woocommerce-product-gallery__wrapper");e.empty();for(var f=0;f<d.length;f++){var g='<div class="product-image-wrap"><figure data-thumb="'+d[f].data_thumb+'" class="woocommerce-product-gallery__image">';h()||(g+='<a href="'+d[f].href+'">'),g+=d[f].image,h()||(g+="</a>"),g+="</figure></div>",e.append(g)}},r=function(a,b){var c=b.parents(".product").find(".woocommerce-product-gallery__wrapper");c.empty();for(var d in a)if(a.hasOwnProperty(d)){var e='<div class="product-image-wrap"><figure class="woocommerce-product-gallery__image" data-thumb="'+a[d].thumbnail_src+'">';h()||(e+='<a href="'+a[d].full_src+'" data-elementor-open-lightbox="no">');var f=a[d].srcset?'srcset="'+a[d].srcset+'"':"";e+='<img width="'+a[d].width+'" height="'+a[d].height+'" src="'+a[d].src+'" class="'+a[d].class+'" alt="'+a[d].alt+'" title="'+a[d].title+'" data-caption="'+a[d].data_caption+'" data-src="'+a[d].data_src+'"  data-large_image="'+a[d].data_large_image+'" data-large_image_width="'+a[d].data_large_image_width+'" data-large_image_height="'+a[d].data_large_image_height+'" '+f+' sizes="'+a[d].sizes+'" />',h()||(e+="</a>"),e+="</figure></div>",c.append(e)}}},a(document).ready(function(){woodmartThemeModule.swatchesVariations()})}(jQuery),function(a){a(document).ready(function(){a("body").on("added_to_cart removed_from_cart",function(b,c){c&&a.each(c,function(b,c){a(b.replace("_wd","")).replaceWith(c)})})}),a("body").on("wc_fragments_refreshed wc_fragments_loaded",function(){if("undefined"!=typeof wc_cart_fragments_params){var b=JSON.parse(sessionStorage.getItem(wc_cart_fragments_params.fragment_name));b&&a.each(b,function(b,c){a(b.replace("_wd","")).replaceWith(c)})
}})}(jQuery),function(a){a.each(["frontend/element_ready/wd_single_product_add_to_cart.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.variationsPrice()})}),woodmartThemeModule.variationsPrice=function(){"no"!==woodmart_settings.single_product_variations_price&&a(".variations_form").each(function(){var b=a(this),c=b.parents(".site-content").find(" p.price"),d=c.html();b.on("show_variation",function(a,b){b.price_html.length>1&&c.html(b.price_html)}),b.on("hide_variation",function(){c.html(d)})})},a(document).ready(function(){woodmartThemeModule.variationsPrice()})}(jQuery),function(a){woodmartThemeModule.wishlist=function(){function b(b){var c=a(".wd-wishlist-content"),d=a(".wd-header-wishlist");d.length>0&&d.find(".wd-tools-count").text(b.count),c.length>0&&!c.hasClass("wd-wishlist-preview")&&woodmartThemeModule.removeDuplicatedStylesFromHTML(b.wishlist_content,function(a){c.replaceWith(a)}),woodmartThemeModule.$document.trigger("wdUpdateWishlist")}var c="woodmart_wishlist_count";if(woodmartThemeModule.$body.hasClass("logged-in")&&(c+="_logged"),woodmart_settings.is_multisite&&(c+="_"+woodmart_settings.current_blog_id),"undefined"!=typeof Cookies){var d=a(".wd-header-wishlist"),e=Cookies.get(c);if(d.length>0)if(void 0!==e)try{var f=JSON.parse(e);d.find(".wd-tools-count").text(f)}catch(g){console.log("cant parse cookies json")}else d.find(".wd-tools-count").text(0);woodmartThemeModule.$body.on("click",".wd-wishlist-btn a",function(c){var d=a(this);d.hasClass("added")||c.preventDefault();var e=d.data("product-id"),f=d.data("added-text"),g=d.data("key");if(d.hasClass("added"))return!0;d.addClass("loading"),a.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_add_to_wishlist",product_id:e,key:g},dataType:"json",method:"GET",success:function(a){a?(d.addClass("added"),woodmartThemeModule.$document.trigger("added_to_wishlist"),a.wishlist_content&&b(a),d.find("span").length>0?d.find("span").text(f):d.text(f)):console.log("something wrong loading wishlist data ",a)},error:function(){console.log("We cant add to wishlist. Something wrong with AJAX response. Probably some PHP conflict.")},complete:function(){d.removeClass("loading")}})}),woodmartThemeModule.$body.on("click",".wd-wishlist-remove",function(c){c.preventDefault();var d=a(this),e=d.data("product-id"),f=d.data("key");if(d.hasClass("added"))return!0;d.addClass("loading"),a.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_remove_from_wishlist",product_id:e,key:f},dataType:"json",method:"GET",success:function(a){a.wishlist_content?b(a):console.log("something wrong loading wishlist data ",a)},error:function(){console.log("We cant remove from wishlist. Something wrong with AJAX response. Probably some PHP conflict.")},complete:function(){d.removeClass("loading")}})})}},a(document).ready(function(){woodmartThemeModule.wishlist()})}(jQuery),function(a){woodmartThemeModule.woocommerceComments=function(){var b=window.location.hash,c=window.location.href;(b.toLowerCase().indexOf("comment-")>=0||"#reviews"===b||"#tab-reviews"===b||c.indexOf("comment-page-")>0||c.indexOf("cpage=")>0||"#tab-wd_additional_tab"===b||"#tab-wd_custom_tab"===b)&&(setTimeout(function(){window.scrollTo(0,0)},1),setTimeout(function(){a(b).length>0&&(a(".woocommerce-tabs a[href="+b+"]").trigger("click"),a("html, body").stop().animate({scrollTop:a(b).offset().top-100},400))},10))},a(document).ready(function(){woodmartThemeModule.woocommerceComments()})}(jQuery),function(a){woodmartThemeModule.woocommerceNotices=function(){woodmartThemeModule.$body.on("click",".woocommerce-error, .woocommerce-info, .woocommerce-message, div.wpcf7-response-output, #yith-wcwl-popup-message, .mc4wp-alert, .dokan-store-contact .alert-success, .yith_ywraq_add_item_product_message",function(){b(a(this))});var b=function(a){a.removeClass("shown-notice").addClass("hidden-notice")}},a(document).ready(function(){woodmartThemeModule.woocommerceNotices()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdBackHistory wdShopPageInit",function(){woodmartThemeModule.woocommercePriceSlider()}),woodmartThemeModule.woocommercePriceSlider=function(){var b=a(".price_slider_amount"),c=a(".price_slider_amount #min_price"),d=a(".price_slider_amount #max_price"),e=a(".products");if("undefined"==typeof woocommerce_price_slider_params||c.length<1||!a.fn.slider)return!1;var f=a(".price_slider");if(void 0===f.slider("instance")){a("input#min_price, input#max_price").hide(),a(".price_slider, .price_label").show();var g=c.data("min"),h=d.data("max"),i=b.data("step")||1,j=parseInt(g,10),k=parseInt(h,10);e.attr("data-min_price")&&e.attr("data-min_price").length>0&&(j=parseInt(e.attr("data-min_price"),10)),e.attr("data-max_price")&&e.attr("data-max_price").length>0&&(k=parseInt(e.attr("data-max_price"),10)),f.slider({range:!0,animate:!0,min:g,max:h,step:i,values:[j,k],create:function(){c.val(j),d.val(k),woodmartThemeModule.$body.trigger("price_slider_create",[j,k])},slide:function(b,c){a("input#min_price").val(c.values[0]),a("input#max_price").val(c.values[1]),woodmartThemeModule.$body.trigger("price_slider_slide",[c.values[0],c.values[1]])},change:function(a,b){woodmartThemeModule.$body.trigger("price_slider_change",[b.values[0],b.values[1]])}}),setTimeout(function(){woodmartThemeModule.$body.trigger("price_slider_create",[j,k]),f.find(".ui-slider-range").length>1&&f.find(".ui-slider-range").first().remove()},10)}},a(document).ready(function(){woodmartThemeModule.woocommercePriceSlider()})}(jQuery),function(a){woodmartThemeModule.woocommerceQuantity=function(){String.prototype.getDecimals||(String.prototype.getDecimals=function(){var a=this,b=(""+a).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return b?Math.max(0,(b[1]?b[1].length:0)-(b[2]?+b[2]:0)):0}),woodmartThemeModule.$document.on("click",".plus, .minus",function(){var b=a(this),c=b.closest(".quantity").find(".qty"),d=parseFloat(c.val()),e=parseFloat(c.attr("max")),f=parseFloat(c.attr("min")),g=c.attr("step");d&&""!==d&&"NaN"!==d||(d=0),""!==e&&"NaN"!==e||(e=""),""!==f&&"NaN"!==f||(f=0),"any"!==g&&""!==g&&void 0!==g&&"NaN"!=parseFloat(g)||(g="1"),b.is(".plus")?e&&d>=e?c.val(e):c.val((d+parseFloat(g)).toFixed(g.getDecimals())):f&&d<=f?c.val(f):d>0&&c.val((d-parseFloat(g)).toFixed(g.getDecimals())),c.trigger("change")})},a(document).ready(function(){woodmartThemeModule.woocommerceQuantity()})}(jQuery),function(a){woodmartThemeModule.woocommerceWrappTable=function(){a(".shop_table:not(.shop_table_responsive):not(.woocommerce-checkout-review-order-table)").wrap("<div class='responsive-table'></div>")},a(document).ready(function(){woodmartThemeModule.woocommerceWrappTable()})}(jQuery),function(a){woodmartThemeModule.woodmartCompare=function(){function b(b){var c=a(".wd-header-compare");c.length>0&&c.find(".wd-tools-count").text(b.count);var d=a(".wd-compare-table");d.length>0&&d.replaceWith(b.table)}var c="woodmart_compare_list";if(woodmart_settings.is_multisite&&(c+="_"+woodmart_settings.current_blog_id),"undefined"!=typeof Cookies){var d=woodmartThemeModule.$body,e=a(".wd-header-compare"),f=Cookies.get(c);if(e.length>0)if(void 0!==f)try{var g=JSON.parse(f);e.find(".wd-tools-count").text(g.length)}catch(h){console.log("cant parse cookies json")}else e.find(".wd-tools-count").text(0);d.on("click",".wd-compare-btn a",function(c){var d=a(this),e=d.data("id"),f=d.data("added-text");if(d.hasClass("added"))return!0;c.preventDefault(),d.addClass("loading"),jQuery.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_add_to_compare",id:e},dataType:"json",method:"GET",success:function(a){a.table?(b(a),woodmartThemeModule.$document.trigger("added_to_compare")):console.log("something wrong loading compare data ",a)},error:function(){console.log("We cant add to compare. Something wrong with AJAX response. Probably some PHP conflict.")},complete:function(){d.removeClass("loading").addClass("added"),d.find("span").length>0?d.find("span").text(f):d.text(f)}})}),d.on("click",".wd-compare-remove",function(c){c.preventDefault();var d=a(this),e=d.data("id");d.addClass("loading"),jQuery.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_remove_from_compare",id:e},dataType:"json",method:"GET",success:function(a){a.table?b(a):console.log("something wrong loading compare data ",a)},error:function(){console.log("We cant remove product compare. Something wrong with AJAX response. Probably some PHP conflict.")},complete:function(){d.addClass("loading")}})})}},a(document).ready(function(){woodmartThemeModule.woodmartCompare()})}(jQuery);
!function(){"use strict";function a(d){if(!d)throw new Error("No options passed to Waypoint constructor");if(!d.element)throw new Error("No element option passed to Waypoint constructor");if(!d.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+b,this.options=a.Adapter.extend({},a.defaults,d),this.element=this.options.element,this.adapter=new a.Adapter(this.element),this.callback=d.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=a.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=a.Context.findOrCreateByElement(this.options.context),a.offsetAliases[this.options.offset]&&(this.options.offset=a.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),c[this.key]=this,b+=1}var b=0,c={};a.prototype.queueTrigger=function(a){this.group.queueTrigger(this,a)},a.prototype.trigger=function(a){this.enabled&&this.callback&&this.callback.apply(this,a)},a.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete c[this.key]},a.prototype.disable=function(){return this.enabled=!1,this},a.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},a.prototype.next=function(){return this.group.next(this)},a.prototype.previous=function(){return this.group.previous(this)},a.invokeAll=function(a){var b=[];for(var d in c)b.push(c[d]);for(var e=0,f=b.length;e<f;e++)b[e][a]()},a.destroyAll=function(){a.invokeAll("destroy")},a.disableAll=function(){a.invokeAll("disable")},a.enableAll=function(){a.Context.refreshAll();for(var b in c)c[b].enabled=!0;return this},a.refreshAll=function(){a.Context.refreshAll()},a.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},a.viewportWidth=function(){return document.documentElement.clientWidth},a.adapters=[],a.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},a.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=a}(),function(){"use strict";function a(a){window.setTimeout(a,1e3/60)}function b(a){this.element=a,this.Adapter=e.Adapter,this.adapter=new this.Adapter(a),this.key="waypoint-context-"+c,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},a.waypointContextKey=this.key,d[a.waypointContextKey]=this,c+=1,e.windowContext||(e.windowContext=!0,e.windowContext=new b(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var c=0,d={},e=window.Waypoint,f=window.onload;b.prototype.add=function(a){var b=a.options.horizontal?"horizontal":"vertical";this.waypoints[b][a.key]=a,this.refresh()},b.prototype.checkEmpty=function(){var a=this.Adapter.isEmptyObject(this.waypoints.horizontal),b=this.Adapter.isEmptyObject(this.waypoints.vertical),c=this.element==this.element.window;a&&b&&!c&&(this.adapter.off(".waypoints"),delete d[this.key])},b.prototype.createThrottledResizeHandler=function(){function a(){b.handleResize(),b.didResize=!1}var b=this;this.adapter.on("resize.waypoints",function(){b.didResize||(b.didResize=!0,e.requestAnimationFrame(a))})},b.prototype.createThrottledScrollHandler=function(){function a(){b.handleScroll(),b.didScroll=!1}var b=this;this.adapter.on("scroll.waypoints",function(){b.didScroll&&!e.isTouch||(b.didScroll=!0,e.requestAnimationFrame(a))})},b.prototype.handleResize=function(){e.Context.refreshAll()},b.prototype.handleScroll=function(){var a={},b={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var c in b){var d=b[c],e=d.newScroll>d.oldScroll,f=e?d.forward:d.backward;for(var g in this.waypoints[c]){var h=this.waypoints[c][g];if(null!==h.triggerPoint){var i=d.oldScroll<h.triggerPoint,j=d.newScroll>=h.triggerPoint,k=i&&j,l=!i&&!j;(k||l)&&(h.queueTrigger(f),a[h.group.id]=h.group)}}}for(var m in a)a[m].flushTriggers();this.oldScroll={x:b.horizontal.newScroll,y:b.vertical.newScroll}},b.prototype.innerHeight=function(){return this.element==this.element.window?e.viewportHeight():this.adapter.innerHeight()},b.prototype.remove=function(a){delete this.waypoints[a.axis][a.key],this.checkEmpty()},b.prototype.innerWidth=function(){return this.element==this.element.window?e.viewportWidth():this.adapter.innerWidth()},b.prototype.destroy=function(){var a=[];for(var b in this.waypoints)for(var c in this.waypoints[b])a.push(this.waypoints[b][c]);for(var d=0,e=a.length;d<e;d++)a[d].destroy()},b.prototype.refresh=function(){var a,b=this.element==this.element.window,c=b?void 0:this.adapter.offset(),d={};this.handleScroll(),a={horizontal:{contextOffset:b?0:c.left,contextScroll:b?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:b?0:c.top,contextScroll:b?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};for(var f in a){var g=a[f];for(var h in this.waypoints[f]){var i,j,k,l,m,n=this.waypoints[f][h],o=n.options.offset,p=n.triggerPoint,q=0,r=null==p;n.element!==n.element.window&&(q=n.adapter.offset()[g.offsetProp]),"function"==typeof o?o=o.apply(n):"string"==typeof o&&(o=parseFloat(o),n.options.offset.indexOf("%")>-1&&(o=Math.ceil(g.contextDimension*o/100))),i=g.contextScroll-g.contextOffset,n.triggerPoint=Math.floor(q+i-o),j=p<g.oldScroll,k=n.triggerPoint>=g.oldScroll,l=j&&k,m=!j&&!k,!r&&l?(n.queueTrigger(g.backward),d[n.group.id]=n.group):!r&&m?(n.queueTrigger(g.forward),d[n.group.id]=n.group):r&&g.oldScroll>=n.triggerPoint&&(n.queueTrigger(g.forward),d[n.group.id]=n.group)}}return e.requestAnimationFrame(function(){for(var a in d)d[a].flushTriggers()}),this},b.findOrCreateByElement=function(a){return b.findByElement(a)||new b(a)},b.refreshAll=function(){for(var a in d)d[a].refresh()},b.findByElement=function(a){return d[a.waypointContextKey]},window.onload=function(){f&&f(),b.refreshAll()},e.requestAnimationFrame=function(b){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||a).call(window,b)},e.Context=b}(),function(){"use strict";function a(a,b){return a.triggerPoint-b.triggerPoint}function b(a,b){return b.triggerPoint-a.triggerPoint}function c(a){this.name=a.name,this.axis=a.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),d[this.axis][this.name]=this}var d={vertical:{},horizontal:{}},e=window.Waypoint;c.prototype.add=function(a){this.waypoints.push(a)},c.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},c.prototype.flushTriggers=function(){for(var c in this.triggerQueues){var d=this.triggerQueues[c],e="up"===c||"left"===c;d.sort(e?b:a);for(var f=0,g=d.length;f<g;f+=1){var h=d[f];(h.options.continuous||f===d.length-1)&&h.trigger([c])}}this.clearTriggerQueues()},c.prototype.next=function(b){this.waypoints.sort(a);var c=e.Adapter.inArray(b,this.waypoints);return c===this.waypoints.length-1?null:this.waypoints[c+1]},c.prototype.previous=function(b){this.waypoints.sort(a);var c=e.Adapter.inArray(b,this.waypoints);return c?this.waypoints[c-1]:null},c.prototype.queueTrigger=function(a,b){this.triggerQueues[b].push(a)},c.prototype.remove=function(a){var b=e.Adapter.inArray(a,this.waypoints);b>-1&&this.waypoints.splice(b,1)},c.prototype.first=function(){return this.waypoints[0]},c.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},c.findOrCreate=function(a){return d[a.axis][a.name]||new c(a)},e.Group=c}(),function(){"use strict";function a(a){this.$element=b(a)}var b=window.jQuery,c=window.Waypoint;b.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(b,c){a.prototype[c]=function(){var a=Array.prototype.slice.call(arguments);return this.$element[c].apply(this.$element,a)}}),b.each(["extend","inArray","isEmptyObject"],function(c,d){a[d]=b[d]}),c.adapters.push({name:"jquery",Adapter:a}),c.Adapter=a}(),function(){"use strict";function a(a){return function(){var c=[],d=arguments[0];return"function"==typeof arguments[0]&&(d=a.extend({},arguments[1]),d.handler=arguments[0]),this.each(function(){var e=a.extend({},d,{element:this});"string"==typeof e.context&&(e.context=a(this).closest(e.context)[0]),c.push(new b(e))}),c}}var b=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=a(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=a(window.Zepto))}();
!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports&&"function"==typeof require?require("jquery"):jQuery)}(function(a){"use strict";function b(a){return null==a?"":"string"==typeof a?a.trim():(a+"").replace("/^[\\s\ufeff ]+|[\\s\ufeff ]+$/g","")}function c(b,d){var e=function(){},f=this,g={ajaxSettings:{},autoSelectFirst:!1,appendTo:document.body,serviceUrl:null,lookup:null,onSelect:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:c.formatResult,delimiter:null,zIndex:9999,type:"GET",noCache:!1,onSearchStart:e,onSearchComplete:e,onSearchError:e,preserveInput:!1,containerClass:"autocomplete-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,preventBadQueries:!0,lookupFilter:function(a,b,c){return-1!==a.value.toLowerCase().indexOf(c)},paramName:"query",transformResult:function(a){return"string"==typeof a?JSON.parse(a):a},showNoSuggestionNotice:!1,noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:!1};f.element=b,f.el=a(b),f.suggestions=[],f.badQueries=[],f.selectedIndex=-1,f.currentValue=f.element.value,f.intervalId=0,f.cachedResponse={},f.onChangeInterval=null,f.onChange=null,f.isLocal=!1,f.suggestionsContainer=null,f.noSuggestionsContainer=null,f.options=a.extend({},g,d),f.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"},f.hint=null,f.hintValue="",f.selection=null,f.initialize(),f.setOptions(d)}var d=function(){return{escapeRegExChars:function(a){return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},createNode:function(a){var b=document.createElement("div");return b.className=a,b.style.position="absolute",b.style.display="none",b}}}(),e={ESC:27,TAB:9,RETURN:13,LEFT:37,UP:38,RIGHT:39,DOWN:40};c.utils=d,a.Autocomplete=c,c.formatResult=function(a,b){var c="("+d.escapeRegExChars(b)+")";return a.value.replace(new RegExp(c,"gi"),"<strong>$1</strong>").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/&lt;(\/?strong)&gt;/g,"<$1>")},c.prototype={killerFn:null,initialize:function(){var b,d=this,e="."+d.classes.suggestion,f=d.classes.selected,g=d.options;d.element.setAttribute("autocomplete","off"),d.killerFn=function(b){0===a(b.target).closest("."+d.options.containerClass).length&&(d.killSuggestions(),d.disableKillerFn())},d.noSuggestionsContainer=a('<div class="autocomplete-no-suggestion"></div>').html(this.options.noSuggestionNotice).get(0),d.suggestionsContainer=c.utils.createNode(g.containerClass),b=a(d.suggestionsContainer),b.appendTo(g.appendTo),"auto"!==g.width&&b.width(g.width),b.on("mouseover.autocomplete",e,function(){d.activate(a(this).data("index"))}),b.on("mouseout.autocomplete",function(){d.selectedIndex=-1,b.children("."+f).removeClass(f)}),b.on("click.autocomplete",e,function(){d.select(a(this).data("index"))}),d.fixPositionCapture=function(){d.visible&&d.fixPosition()},a(window).on("resize.autocomplete",d.fixPositionCapture),d.el.on("keydown.autocomplete",function(a){d.onKeyPress(a)}),d.el.on("keyup.autocomplete",function(a){d.onKeyUp(a)}),d.el.on("blur.autocomplete",function(){d.onBlur()}),d.el.on("focus.autocomplete",function(){d.onFocus()}),d.el.on("change.autocomplete",function(a){d.onKeyUp(a)}),d.el.on("input.autocomplete",function(a){d.onKeyUp(a)})},onFocus:function(){var a=this;a.fixPosition(),0===a.options.minChars&&0===a.el.val().length&&a.onValueChange()},onBlur:function(){this.enableKillerFn()},abortAjax:function(){var a=this;a.currentRequest&&(a.currentRequest.abort(),a.currentRequest=null)},setOptions:function(b){var c=this,d=c.options;a.extend(d,b),c.isLocal=Array.isArray(d.lookup),c.isLocal&&(d.lookup=c.verifySuggestionsFormat(d.lookup)),d.orientation=c.validateOrientation(d.orientation,"bottom"),a(c.suggestionsContainer).css({"max-height":d.maxHeight+"px",width:d.width+"px","z-index":d.zIndex})},clearCache:function(){this.cachedResponse={},this.badQueries=[]},clear:function(){this.clearCache(),this.currentValue="",this.suggestions=[]},disable:function(){var a=this;a.disabled=!0,clearInterval(a.onChangeInterval),a.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var b=this,c=a(b.suggestionsContainer),d=c.parent().get(0);if(d===document.body||b.options.forceFixPosition){var e=b.options.orientation,f=c.outerHeight(),g=b.el.outerHeight(),h=b.el.offset(),i={top:h.top,left:h.left};if("auto"===e){var j=a(window).height(),k=a(window).scrollTop(),l=-k+h.top-f,m=k+j-(h.top+g+f);e=Math.max(l,m)===l?"top":"bottom"}if(i.top+="top"===e?-f:g,d!==document.body){var n,o=c.css("opacity");b.visible||c.css("opacity",0).show(),n=c.offsetParent().offset(),i.top-=n.top,i.left-=n.left,b.visible||c.css("opacity",o).hide()}"auto"===b.options.width&&(i.width=b.el.outerWidth()-2+"px"),c.css(i)}},enableKillerFn:function(){var b=this;a(document).on("click.autocomplete",b.killerFn)},disableKillerFn:function(){var b=this;a(document).off("click.autocomplete",b.killerFn)},killSuggestions:function(){var a=this;a.stopKillSuggestions(),a.intervalId=window.setInterval(function(){a.visible&&(a.el.val(a.currentValue),a.hide()),a.stopKillSuggestions()},50)},stopKillSuggestions:function(){window.clearInterval(this.intervalId)},isCursorAtEnd:function(){var a,b=this,c=b.el.val().length,d=b.element.selectionStart;return"number"==typeof d?d===c:!document.selection||(a=document.selection.createRange(),a.moveStart("character",-c),c===a.text.length)},onKeyPress:function(a){var b=this;if(!b.disabled&&!b.visible&&a.which===e.DOWN&&b.currentValue)return void b.suggest();if(!b.disabled&&b.visible){switch(a.which){case e.ESC:b.el.val(b.currentValue),b.hide();break;case e.RIGHT:if(b.hint&&b.options.onHint&&b.isCursorAtEnd()){b.selectHint();break}return;case e.TAB:if(b.hint&&b.options.onHint)return void b.selectHint();if(-1===b.selectedIndex)return void b.hide();if(b.select(b.selectedIndex),!1===b.options.tabDisabled)return;break;case e.RETURN:if(-1===b.selectedIndex)return void b.hide();b.select(b.selectedIndex);break;case e.UP:b.moveUp();break;case e.DOWN:b.moveDown();break;default:return}a.stopImmediatePropagation(),a.preventDefault()}},onKeyUp:function(a){var b=this;if(!b.disabled){switch(a.which){case e.UP:case e.DOWN:return}clearInterval(b.onChangeInterval),b.currentValue!==b.el.val()&&(b.findBestHint(),b.options.deferRequestBy>0?b.onChangeInterval=setInterval(function(){b.onValueChange()},b.options.deferRequestBy):b.onValueChange())}},onValueChange:function(){var b=this,c=b.options,d=b.el.val(),e=b.getQuery(d);if(b.selection&&b.currentValue!==e&&(b.selection=null,(c.onInvalidateSelection||a.noop).call(b.element)),clearInterval(b.onChangeInterval),b.currentValue=d,b.selectedIndex=-1,c.triggerSelectOnValidInput&&b.isExactMatch(e))return void b.select(0);e.length<c.minChars?b.hide():b.getSuggestions(e)},isExactMatch:function(a){var b=this.suggestions;return 1===b.length&&b[0].value.toLowerCase()===a.toLowerCase()},getQuery:function(a){var c,d=this.options.delimiter;return d?(c=a.split(d),b(c[c.length-1])):a},getSuggestionsLocal:function(b){var c,d=this,e=d.options,f=b.toLowerCase(),g=e.lookupFilter,h=parseInt(e.lookupLimit,10);return c={suggestions:a.grep(e.lookup,function(a){return g(a,b,f)})},h&&c.suggestions.length>h&&(c.suggestions=c.suggestions.slice(0,h)),c},getSuggestions:function(b){var c,d,e,f,g=this,h=g.options,i=h.serviceUrl;if(h.params[h.paramName]=b,d=h.ignoreParams?null:h.params,!1!==h.onSearchStart.call(g.element,h.params)){if("function"==typeof h.lookup)return void h.lookup(b,function(a){g.suggestions=a.suggestions,g.suggest(),h.onSearchComplete.call(g.element,b,a.suggestions)});g.isLocal?c=g.getSuggestionsLocal(b):("function"==typeof i&&(i=i.call(g.element,b)),e=i+"?"+a.param(d||{}),c=g.cachedResponse[e]),c&&Array.isArray(c.suggestions)?(g.suggestions=c.suggestions,g.suggest(),h.onSearchComplete.call(g.element,b,c.suggestions)):g.isBadQuery(b)?h.onSearchComplete.call(g.element,b,[]):(g.abortAjax(),f={url:i,data:d,type:h.type,dataType:h.dataType},a.extend(f,h.ajaxSettings),g.currentRequest=a.ajax(f).done(function(a){var c;g.currentRequest=null,c=h.transformResult(a,b),g.processResponse(c,b,e),h.onSearchComplete.call(g.element,b,c.suggestions)}).fail(function(a,c,d){h.onSearchError.call(g.element,b,a,c,d)}))}},isBadQuery:function(a){if(!this.options.preventBadQueries)return!1;for(var b=this.badQueries,c=b.length;c--;)if(0===a.indexOf(b[c]))return!0;return!1},hide:function(){var b=this,c=a(b.suggestionsContainer);"function"==typeof b.options.onHide&&b.visible&&b.options.onHide.call(b.element,c),b.visible=!1,b.selectedIndex=-1,clearInterval(b.onChangeInterval),a(b.suggestionsContainer).hide(),b.signalHint(null)},suggest:function(){if(0===this.suggestions.length)return void(this.options.showNoSuggestionNotice?this.noSuggestions():this.hide());var b,c=this,d=c.options,e=d.groupBy,f=d.formatResult,g=c.getQuery(c.currentValue),h=c.classes.suggestion,i=c.classes.selected,j=a(c.suggestionsContainer),k=a(c.noSuggestionsContainer),l=d.beforeRender,m="",n=function(a,c){var d=a.data[e];return b===d?"":'<div class="autocomplete-group"><strong>'+(b=d)+"</strong></div>"};if(d.triggerSelectOnValidInput&&c.isExactMatch(g))return void c.select(0);a.each(c.suggestions,function(a,b){e&&(m+=n(b,g,a)),m+='<div class="'+h+'" data-index="'+a+'">'+f(b,g)+"</div>"}),this.adjustContainerWidth(),k.detach(),j.html(m),"function"==typeof l&&l.call(c.element,j),c.fixPosition(),j.show(),d.autoSelectFirst&&(c.selectedIndex=0,j.scrollTop(0),j.children("."+h).first().addClass(i)),c.visible=!0,c.findBestHint()},noSuggestions:function(){var b=this,c=a(b.suggestionsContainer),d=a(b.noSuggestionsContainer);this.adjustContainerWidth(),d.detach(),c.empty(),c.append(d),b.fixPosition(),c.show(),b.visible=!0},adjustContainerWidth:function(){var b,c=this,d=c.options,e=a(c.suggestionsContainer);"auto"===d.width&&(b=c.el.outerWidth()-2,e.width(b>0?b:300))},findBestHint:function(){var b=this,c=b.el.val().toLowerCase(),d=null;c&&(a.each(b.suggestions,function(a,b){var e=0===b.value.toLowerCase().indexOf(c);return e&&(d=b),!e}),b.signalHint(d))},signalHint:function(b){var c="",d=this;b&&(c=d.currentValue+b.value.substr(d.currentValue.length)),d.hintValue!==c&&(d.hintValue=c,d.hint=b,(this.options.onHint||a.noop)(c))},verifySuggestionsFormat:function(b){return b.length&&"string"==typeof b[0]?a.map(b,function(a){return{value:a,data:null}}):b},validateOrientation:function(b,c){return b=a.trim(b||"").toLowerCase(),-1===a.inArray(b,["auto","bottom","top"])&&(b=c),b},processResponse:function(a,b,c){var d=this,e=d.options;a.suggestions=d.verifySuggestionsFormat(a.suggestions),e.noCache||(d.cachedResponse[c]=a,e.preventBadQueries&&0===a.suggestions.length&&d.badQueries.push(b)),b===d.getQuery(d.currentValue)&&(d.suggestions=a.suggestions,d.suggest())},activate:function(b){var c,d=this,e=d.classes.selected,f=a(d.suggestionsContainer),g=f.find("."+d.classes.suggestion);return f.find("."+e).removeClass(e),d.selectedIndex=b,-1!==d.selectedIndex&&g.length>d.selectedIndex?(c=g.get(d.selectedIndex),a(c).addClass(e),c):null},selectHint:function(){var b=this,c=a.inArray(b.hint,b.suggestions);b.select(c)},select:function(a){var b=this;b.hide(),b.onSelect(a)},moveUp:function(){var b=this;if(-1!==b.selectedIndex)return 0===b.selectedIndex?(a(b.suggestionsContainer).children().first().removeClass(b.classes.selected),b.selectedIndex=-1,b.el.val(b.currentValue),void b.findBestHint()):void b.adjustScroll(b.selectedIndex-1)},moveDown:function(){var a=this;a.selectedIndex!==a.suggestions.length-1&&a.adjustScroll(a.selectedIndex+1)},adjustScroll:function(b){var c=this,d=c.activate(b);if(d){var e,f,g,h=a(d).outerHeight();e=d.offsetTop,f=a(c.suggestionsContainer).scrollTop(),g=f+c.options.maxHeight-h,e<f?a(c.suggestionsContainer).scrollTop(e):e>g&&a(c.suggestionsContainer).scrollTop(e-c.options.maxHeight+h),c.options.preserveInput||c.el.val(c.getValue(c.suggestions[b].value)),c.signalHint(null)}},onSelect:function(a){var b=this,c=b.options.onSelect,d=b.suggestions[a];b.currentValue=b.getValue(d.value),b.currentValue===b.el.val()||b.options.preserveInput||b.el.val(b.currentValue),b.signalHint(null),b.suggestions=[],b.selection=d,"function"==typeof c&&c.call(b.element,d)},getValue:function(a){var b,c,d=this,e=d.options.delimiter;return e?(b=d.currentValue,c=b.split(e),1===c.length?a:b.substr(0,b.length-c[c.length-1].length)+a):a},dispose:function(){var b=this;b.el.off(".autocomplete").removeData("autocomplete"),b.disableKillerFn(),a(window).off("resize.autocomplete",b.fixPositionCapture),a(b.suggestionsContainer).remove()}},a.fn.devbridgeAutocomplete=function(b,d){var e="autocomplete";return 0===arguments.length?this.first().data(e):this.each(function(){var f=a(this),g=f.data(e);"string"==typeof b?g&&"function"==typeof g[b]&&g[b](d):(g&&g.dispose&&g.dispose(),g=new c(this,b),f.data(e,g))})}});
!function(a,b,c,d){function e(b,c){this.settings=null,this.options=a.extend({},e.Defaults,c),this.$element=a(b),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},a.each(["onResize","onThrottledResize"],a.proxy(function(b,c){this._handlers[c]=a.proxy(this[c],this)},this)),a.each(e.Plugins,a.proxy(function(a,b){this._plugins[a.charAt(0).toLowerCase()+a.slice(1)]=new b(this)},this)),a.each(e.Workers,a.proxy(function(b,c){this._pipe.push({filter:c.filter,run:a.proxy(c.run,this)})},this)),this.setup(),this.initialize()}e.Defaults={items:3,loop:!1,center:!1,rewind:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:b,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},e.Width={Default:"default",Inner:"inner",Outer:"outer"},e.Type={Event:"event",State:"state"},e.Plugins={},e.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(a){a.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(a){var b=this.settings.margin||"",c=!this.settings.autoWidth,d=this.settings.rtl,e={width:"auto","margin-left":d?b:"","margin-right":d?"":b};!c&&this.$stage.children().css(e),a.css=e}},{filter:["width","items","settings"],run:function(a){var b=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,c=null,d=this._items.length,e=!this.settings.autoWidth,f=[];for(a.items={merge:!1,width:b};d--;)c=this._mergers[d],c=this.settings.mergeFit&&Math.min(c,this.settings.items)||c,a.items.merge=c>1||a.items.merge,f[d]=e?b*c:this._items[d].width();this._widths=f}},{filter:["items","settings"],run:function(){var b=[],c=this._items,d=this.settings,e=Math.max(2*d.items,4),f=2*Math.ceil(c.length/2),g=d.loop&&c.length?d.rewind?e:Math.max(e,f):0,h="",i="";for(g/=2;g--;)b.push(this.normalize(b.length/2,!0)),h+=c[b[b.length-1]][0].outerHTML,b.push(this.normalize(c.length-1-(b.length-1)/2,!0)),i=c[b[b.length-1]][0].outerHTML+i;this._clones=b,a(h).addClass("cloned").appendTo(this.$stage),a(i).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var a=this.settings.rtl?1:-1,b=this._clones.length+this._items.length,c=-1,d=0,e=0,f=[];++c<b;)d=f[c-1]||0,e=this._widths[this.relative(c)]+this.settings.margin,f.push(d+e*a);this._coordinates=f}},{filter:["width","items","settings"],run:function(){var a=this.settings.stagePadding,b=this._coordinates,c={width:Math.ceil(Math.abs(b[b.length-1]))+2*a,"padding-left":a||"","padding-right":a||""};this.$stage.css(c)}},{filter:["width","items","settings"],run:function(a){var b=this._coordinates.length,c=!this.settings.autoWidth,d=this.$stage.children();if(c&&a.items.merge)for(;b--;)a.css.width=this._widths[this.relative(b)],d.eq(b).css(a.css);else c&&(a.css.width=a.items.width,d.css(a.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(a){a.current=a.current?this.$stage.children().index(a.current):0,a.current=Math.max(this.minimum(),Math.min(this.maximum(),a.current)),this.reset(a.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var a,b,c,d,e=this.settings.rtl?1:-1,f=2*this.settings.stagePadding,g=this.coordinates(this.current())+f,h=g+this.width()*e,i=[];for(c=0,d=this._coordinates.length;c<d;c++)a=this._coordinates[c-1]||0,b=Math.abs(this._coordinates[c])+f*e,(this.op(a,"<=",g)&&this.op(a,">",h)||this.op(b,"<",g)&&this.op(b,">",h))&&i.push(c);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+i.join("), :eq(")+")").addClass("active"),this.settings.center&&(this.$stage.children(".center").removeClass("center"),this.$stage.children().eq(this.current()).addClass("center"))}}],e.prototype.initialize=function(){if(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")){var b,c,e;b=this.$element.find("img"),c=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:d,e=this.$element.children(c).width(),b.length&&e<=0&&this.preloadAutoWidthImages(b)}this.$element.addClass(this.options.loadingClass),this.$stage=a("<"+this.settings.stageElement+' class="'+this.settings.stageClass+'"/>').wrap('<div class="'+this.settings.stageOuterClass+'"/>'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this.$element.is(":visible")?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},e.prototype.setup=function(){var b=this.viewport(),c=this.options.responsive,d=-1,e=null;c?(a.each(c,function(a){a<=b&&a>d&&(d=Number(a))}),e=a.extend({},this.options,c[d]),"function"==typeof e.stagePadding&&(e.stagePadding=e.stagePadding()),delete e.responsive,e.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+d))):e=a.extend({},this.options),this.trigger("change",{property:{name:"settings",value:e}}),this._breakpoint=d,this.settings=e,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},e.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},e.prototype.prepare=function(b){var c=this.trigger("prepare",{content:b});return c.data||(c.data=a("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(b)),this.trigger("prepared",{content:c.data}),c.data},e.prototype.update=function(){for(var b=0,c=this._pipe.length,d=a.proxy(function(a){return this[a]},this._invalidated),e={};b<c;)(this._invalidated.all||a.grep(this._pipe[b].filter,d).length>0)&&this._pipe[b].run(e),b++;this._invalidated={},!this.is("valid")&&this.enter("valid")},e.prototype.width=function(a){switch(a=a||e.Width.Default){case e.Width.Inner:case e.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},e.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},e.prototype.onThrottledResize=function(){b.clearTimeout(this.resizeTimer),this.resizeTimer=b.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},e.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.$element.is(":visible")&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},e.prototype.registerEventHandlers=function(){a.support.transition&&this.$stage.on(a.support.transition.end+".owl.core",a.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(b,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",a.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",a.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",a.proxy(this.onDragEnd,this)))},e.prototype.onDragStart=function(b){var d=null;3!==b.which&&(a.support.transform?(d=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","),d={x:d[16===d.length?12:4],y:d[16===d.length?13:5]}):(d=this.$stage.position(),d={x:this.settings.rtl?d.left+this.$stage.width()-this.width()+this.settings.margin:d.left,y:d.top}),this.is("animating")&&(a.support.transform?this.animate(d.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===b.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=a(b.target),this._drag.stage.start=d,this._drag.stage.current=d,this._drag.pointer=this.pointer(b),a(c).on("mouseup.owl.core touchend.owl.core",a.proxy(this.onDragEnd,this)),a(c).one("mousemove.owl.core touchmove.owl.core",a.proxy(function(b){var d=this.difference(this._drag.pointer,this.pointer(b));a(c).on("mousemove.owl.core touchmove.owl.core",a.proxy(this.onDragMove,this)),Math.abs(d.x)<Math.abs(d.y)&&this.is("valid")||(b.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},e.prototype.onDragMove=function(a){var b=null,c=null,d=null,e=this.difference(this._drag.pointer,this.pointer(a)),f=this.difference(this._drag.stage.start,e);this.is("dragging")&&(a.preventDefault(),this.settings.loop?(b=this.coordinates(this.minimum()),c=this.coordinates(this.maximum()+1)-b,f.x=((f.x-b)%c+c)%c+b):(b=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),c=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),d=this.settings.pullDrag?-1*e.x/5:0,f.x=Math.max(Math.min(f.x,b+d),c+d)),this._drag.stage.current=f,this.animate(f.x))},e.prototype.onDragEnd=function(b){var d=this.difference(this._drag.pointer,this.pointer(b)),e=this._drag.stage.current,f=d.x>0^this.settings.rtl?"left":"right";a(c).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==d.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(e.x,0!==d.x?f:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=f,(Math.abs(d.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},e.prototype.closest=function(b,c){var d=-1,e=30,f=this.width(),g=this.coordinates();return this.settings.freeDrag||a.each(g,a.proxy(function(a,h){return"left"===c&&b>h-e&&b<h+e?d=a:"right"===c&&b>h-f-e&&b<h-f+e?d=a+1:this.op(b,"<",h)&&this.op(b,">",g[a+1]||h-f)&&(d="left"===c?a+1:a),-1===d},this)),this.settings.loop||(this.op(b,">=",g[this.minimum()])?d=b=this.minimum():this.op(b,"<",g[this.maximum()])&&(d=b=this.maximum())),d},e.prototype.animate=function(b){var c=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),c&&(this.enter("animating"),this.trigger("translate")),a.support.transform3d&&a.support.transition?this.$stage.css({transform:"translate3d("+b+"px,0px,0px)",transition:this.speed()/1e3+"s"}):c?this.$stage.animate({left:b+"px"},this.speed(),this.settings.fallbackEasing,a.proxy(this.onTransitionEnd,this)):this.$stage.css({left:b+"px"})},e.prototype.is=function(a){return this._states.current[a]&&this._states.current[a]>0},e.prototype.current=function(a){if(a===d)return this._current;if(0===this._items.length)return d;if(a=this.normalize(a),this._current!==a){var b=this.trigger("change",{property:{name:"position",value:a}});b.data!==d&&(a=this.normalize(b.data)),this._current=a,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},e.prototype.invalidate=function(b){return"string"==typeof b&&(this._invalidated[b]=!0,this.is("valid")&&this.leave("valid")),a.map(this._invalidated,function(a,b){return b})},e.prototype.reset=function(a){(a=this.normalize(a))!==d&&(this._speed=0,this._current=a,this.suppress(["translate","translated"]),this.animate(this.coordinates(a)),this.release(["translate","translated"]))},e.prototype.normalize=function(a,b){var c=this._items.length,e=b?0:this._clones.length;return!this.isNumeric(a)||c<1?a=d:(a<0||a>=c+e)&&(a=((a-e/2)%c+c)%c+e/2),a},e.prototype.relative=function(a){return a-=this._clones.length/2,this.normalize(a,!0)},e.prototype.maximum=function(a){var b,c,d,e=this.settings,f=this._coordinates.length;if(e.loop)f=this._clones.length/2+this._items.length-1;else if(e.autoWidth||e.merge){for(b=this._items.length,c=this._items[--b].width(),d=this.$element.width();b--&&!((c+=this._items[b].width()+this.settings.margin)>d););f=b+1}else f=e.center?this._items.length-1:this._items.length-e.items;return a&&(f-=this._clones.length/2),Math.max(f,0)},e.prototype.minimum=function(a){return a?0:this._clones.length/2},e.prototype.items=function(a){return a===d?this._items.slice():(a=this.normalize(a,!0),this._items[a])},e.prototype.mergers=function(a){return a===d?this._mergers.slice():(a=this.normalize(a,!0),this._mergers[a])},e.prototype.clones=function(b){var c=this._clones.length/2,e=c+this._items.length,f=function(a){return a%2==0?e+a/2:c-(a+1)/2};return b===d?a.map(this._clones,function(a,b){return f(b)}):a.map(this._clones,function(a,c){return a===b?f(c):null})},e.prototype.speed=function(a){return a!==d&&(this._speed=a),this._speed},e.prototype.coordinates=function(b){var c,e=1,f=b-1;if(b===d)return a.map(this._coordinates,a.proxy(function(a,b){return this.coordinates(b)},this));if(this.settings.center){this.settings.rtl&&(e=-1,f=b+1),c=this._coordinates[b];var g=this.settings.rtl?this._coordinates[0]+this._coordinates[this._coordinates.length-1]:0;c+=(this.width()-c+(this._coordinates[f]||g))/2*e}else c=this._coordinates[f]||0;return c=Math.ceil(c)},e.prototype.duration=function(a,b,c){return 0===c?0:Math.min(Math.max(Math.abs(b-a),1),6)*Math.abs(c||this.settings.smartSpeed)},e.prototype.to=function(a,b){var c=this.current(),d=null,e=a-this.relative(c),f=(e>0)-(e<0),g=this._items.length,h=this.minimum(),i=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(e)>g/2&&(e+=-1*f*g),a=c+e,(d=((a-h)%g+g)%g+h)!==a&&d-e<=i&&d-e>0&&(c=d-e,a=d,this.reset(c))):this.settings.rewind?(i+=1,a=(a%i+i)%i):a=Math.max(h,Math.min(i,a)),this.speed(this.duration(c,a,b)),this.current(a),this.$element.is(":visible")&&this.update()},e.prototype.next=function(a){a=a||!1,this.to(this.relative(this.current())+1,a)},e.prototype.prev=function(a){a=a||!1,this.to(this.relative(this.current())-1,a)},e.prototype.onTransitionEnd=function(a){if(a!==d&&(a.stopPropagation(),(a.target||a.srcElement||a.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},e.prototype.viewport=function(){var d;if(this.options.responsiveBaseElement!==b)d=a(this.options.responsiveBaseElement).width();else if(b.innerWidth)d=b.innerWidth;else{if(!c.documentElement||!c.documentElement.clientWidth)throw"Can not detect viewport width.";d=c.documentElement.clientWidth}return d},e.prototype.replace=function(b){this.$stage.empty(),this._items=[],b&&(b=b instanceof jQuery?b:a(b)),this.settings.nestedItemSelector&&(b=b.find("."+this.settings.nestedItemSelector)),b.filter(function(){return 1===this.nodeType}).each(a.proxy(function(a,b){b=this.prepare(b),this.$stage.append(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},e.prototype.add=function(b,c){var e=this.relative(this._current);c=c===d?this._items.length:this.normalize(c,!0),b=b instanceof jQuery?b:a(b),this.trigger("add",{content:b,position:c}),b=this.prepare(b),0===this._items.length||c===this._items.length?(0===this._items.length&&this.$stage.append(b),0!==this._items.length&&this._items[c-1].after(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[c].before(b),this._items.splice(c,0,b),this._mergers.splice(c,0,1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[e]&&this.reset(this._items[e].index()),this.invalidate("items"),this.trigger("added",{content:b,position:c})},e.prototype.remove=function(a){(a=this.normalize(a,!0))!==d&&(this.trigger("remove",{content:this._items[a],position:a}),this._items[a].remove(),this._items.splice(a,1),this._mergers.splice(a,1),this.invalidate("items"),this.trigger("removed",{content:null,position:a}))},e.prototype.preloadAutoWidthImages=function(b){b.each(a.proxy(function(b,c){this.enter("pre-loading"),c=a(c),a(new Image).one("load",a.proxy(function(a){c.attr("src",a.target.src),c.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",c.attr("src")||c.attr("data-src")||c.attr("data-src-retina"))},this))},e.prototype.destroy=function(){this.$element.off(".owl.core"),this.$stage.off(".owl.core"),a(c).off(".owl.core"),!1!==this.settings.responsive&&(b.clearTimeout(this.resizeTimer),this.off(b,"resize",this._handlers.onThrottledResize));for(var d in this._plugins)this._plugins[d].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},e.prototype.op=function(a,b,c){var d=this.settings.rtl;switch(b){case"<":return d?a>c:a<c;case">":return d?a<c:a>c;case">=":return d?a<=c:a>=c;case"<=":return d?a>=c:a<=c}},e.prototype.on=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d):a.attachEvent&&a.attachEvent("on"+b,c)},e.prototype.off=function(a,b,c,d){a.removeEventListener?a.removeEventListener(b,c,d):a.detachEvent&&a.detachEvent("on"+b,c)},e.prototype.trigger=function(b,c,d,f,g){var h={item:{count:this._items.length,index:this.current()}},i=a.camelCase(a.grep(["on",b,d],function(a){return a}).join("-").toLowerCase()),j=a.Event([b,"owl",d||"carousel"].join(".").toLowerCase(),a.extend({relatedTarget:this},h,c));return this._supress[b]||(a.each(this._plugins,function(a,b){b.onTrigger&&b.onTrigger(j)}),this.register({type:e.Type.Event,name:b}),this.$element.trigger(j),this.settings&&"function"==typeof this.settings[i]&&this.settings[i].call(this,j)),j},e.prototype.enter=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]===d&&(this._states.current[b]=0),this._states.current[b]++},this))},e.prototype.leave=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]--},this))},e.prototype.register=function(b){if(b.type===e.Type.Event){if(a.event.special[b.name]||(a.event.special[b.name]={}),!a.event.special[b.name].owl){var c=a.event.special[b.name]._default;a.event.special[b.name]._default=function(a){return!c||!c.apply||a.namespace&&-1!==a.namespace.indexOf("owl")?a.namespace&&a.namespace.indexOf("owl")>-1:c.apply(this,arguments)},a.event.special[b.name].owl=!0}}else b.type===e.Type.State&&(this._states.tags[b.name]?this._states.tags[b.name]=this._states.tags[b.name].concat(b.tags):this._states.tags[b.name]=b.tags,this._states.tags[b.name]=a.grep(this._states.tags[b.name],a.proxy(function(c,d){return a.inArray(c,this._states.tags[b.name])===d},this)))},e.prototype.suppress=function(b){a.each(b,a.proxy(function(a,b){this._supress[b]=!0},this))},e.prototype.release=function(b){a.each(b,a.proxy(function(a,b){delete this._supress[b]},this))},e.prototype.pointer=function(a){var c={x:null,y:null};return a=a.originalEvent||a||b.event,a=a.touches&&a.touches.length?a.touches[0]:a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:a,a.pageX?(c.x=a.pageX,c.y=a.pageY):(c.x=a.clientX,c.y=a.clientY),c},e.prototype.isNumeric=function(a){return!isNaN(parseFloat(a))},e.prototype.difference=function(a,b){return{x:a.x-b.x,y:a.y-b.y}},a.fn.owlCarousel=function(b){var c=Array.prototype.slice.call(arguments,1);return this.each(function(){var d=a(this),f=d.data("owl.carousel");f||(f=new e(this,"object"==typeof b&&b),d.data("owl.carousel",f),a.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(b,c){f.register({type:e.Type.Event,name:c}),f.$element.on(c+".owl.carousel.core",a.proxy(function(a){a.namespace&&a.relatedTarget!==this&&(this.suppress([c]),f[c].apply(this,[].slice.call(arguments,1)),this.release([c]))},f))})),"string"==typeof b&&"_"!==b.charAt(0)&&f[b].apply(f,c)})},a.fn.owlCarousel.Constructor=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={autoRefresh:!0,autoRefreshInterval:500},e.prototype.watch=function(){this._interval||(this._visible=this._core.$element.is(":visible"),this._interval=b.setInterval(a.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},e.prototype.refresh=function(){this._core.$element.is(":visible")!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},e.prototype.destroy=function(){var a,c;b.clearInterval(this._interval);for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoRefresh=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":a.proxy(function(b){if(b.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(b.property&&"position"==b.property.name||"initialized"==b.type))for(var c=this._core.settings,e=c.center&&Math.ceil(c.items/2)||c.items,f=c.center&&-1*e||0,g=(b.property&&b.property.value!==d?b.property.value:this._core.current())+f,h=this._core.clones().length,i=a.proxy(function(a,b){this.load(b)},this);f++<e;)this.load(h/2+this._core.relative(g)),h&&a.each(this._core.clones(this._core.relative(g)),i),g++},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={lazyLoad:!1},e.prototype.load=function(c){var d=this._core.$stage.children().eq(c),e=d&&d.find(".owl-lazy");!e||a.inArray(d.get(0),this._loaded)>-1||(e.each(a.proxy(function(c,d){var e,f=a(d),g=b.devicePixelRatio>1&&f.attr("data-src-retina")||f.attr("data-src");this._core.trigger("load",{element:f,url:g},"lazy"),f.is("img")?f.one("load.owl.lazy",a.proxy(function(){f.css("opacity",1),this._core.trigger("loaded",{element:f,url:g},"lazy")},this)).attr("src",g):(e=new Image,e.onload=a.proxy(function(){f.css({"background-image":"url("+g+")",opacity:"1"}),this._core.trigger("loaded",{element:f,url:g},"lazy")},this),e.src=g)},this)),this._loaded.push(d.get(0)))},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this._core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Lazy=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&"position"==a.property.name&&this.update()},this),"loaded.owl.lazy":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&a.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},e.prototype.update=function(){var b=this._core._current,c=b+this._core.settings.items,d=this._core.$stage.children().toArray().slice(b,c),e=[],f=0;a.each(d,function(b,c){e.push(a(c).height())}),f=Math.max.apply(null,e),this._core.$stage.parent().height(f).addClass(this._core.settings.autoHeightClass)},e.prototype.destroy=function(){var a,b;for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoHeight=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.video&&this.isInFullScreen()&&a.preventDefault()},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"===a.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find(".owl-video");c.length&&(c.css("display","none"),this.fetch(c,a(b.content)))}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",a.proxy(function(a){this.play(a)},this))};e.Defaults={video:!1,videoHeight:!1,videoWidth:!1},e.prototype.fetch=function(a,b){var c=function(){return a.attr("data-vimeo-id")?"vimeo":a.attr("data-vzaar-id")?"vzaar":"youtube"}(),d=a.attr("data-vimeo-id")||a.attr("data-youtube-id")||a.attr("data-vzaar-id"),e=a.attr("data-width")||this._core.settings.videoWidth,f=a.attr("data-height")||this._core.settings.videoHeight,g=a.attr("href");if(!g)throw new Error("Missing video URL.");if(d=g.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),d[3].indexOf("youtu")>-1)c="youtube";else if(d[3].indexOf("vimeo")>-1)c="vimeo";else{if(!(d[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");c="vzaar"}d=d[6],this._videos[g]={type:c,id:d,width:e,height:f},b.attr("data-video",g),this.thumbnail(a,this._videos[g])},e.prototype.thumbnail=function(b,c){var d,e,f,g=c.width&&c.height?'style="width:'+c.width+"px;height:"+c.height+'px;"':"",h=b.find("img"),i="src",j="",k=this._core.settings,l=function(a){e='<div class="owl-video-play-icon"></div>',d=k.lazyLoad?'<div class="owl-video-tn '+j+'" '+i+'="'+a+'"></div>':'<div class="owl-video-tn" style="opacity:1;background-image:url('+a+')"></div>',b.after(d),b.after(e)};if(b.wrap('<div class="owl-video-wrapper"'+g+"></div>"),this._core.settings.lazyLoad&&(i="data-src",j="owl-lazy"),h.length)return l(h.attr(i)),h.remove(),!1;"youtube"===c.type?(f="//img.youtube.com/vi/"+c.id+"/hqdefault.jpg",l(f)):"vimeo"===c.type?a.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a[0].thumbnail_large,l(f)}}):"vzaar"===c.type&&a.ajax({type:"GET",url:"//vzaar.com/api/videos/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a.framegrab_url,l(f)}})},e.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},e.prototype.play=function(b){var c,d=a(b.target),e=d.closest("."+this._core.settings.itemClass),f=this._videos[e.attr("data-video")],g=f.width||"100%",h=f.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),e=this._core.items(this._core.relative(e.index())),this._core.reset(e.index()),"youtube"===f.type?c='<iframe width="'+g+'" height="'+h+'" src="//www.youtube.com/embed/'+f.id+"?autoplay=1&v="+f.id+'" frameborder="0" allowfullscreen></iframe>':"vimeo"===f.type?c='<iframe src="//player.vimeo.com/video/'+f.id+'?autoplay=1" width="'+g+'" height="'+h+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>':"vzaar"===f.type&&(c='<iframe frameborder="0"height="'+h+'"width="'+g+'" allowfullscreen mozallowfullscreen webkitAllowFullScreen src="//view.vzaar.com/'+f.id+'/player?autoplay=true"></iframe>'),a('<div class="owl-video-frame">'+c+"</div>").insertAfter(e.find(".owl-video")),this._playing=e.addClass("owl-video-playing"))},e.prototype.isInFullScreen=function(){var b=c.fullscreenElement||c.mozFullScreenElement||c.webkitFullscreenElement;return b&&a(b).parent().hasClass("owl-video-frame")},e.prototype.destroy=function(){var a,b;this._core.$element.off("click.owl.video");for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Video=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this.core=b,this.core.options=a.extend({},e.Defaults,this.core.options),this.swapping=!0,this.previous=d,this.next=d,this.handlers={"change.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&(this.previous=this.core.current(),this.next=a.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":a.proxy(function(a){a.namespace&&(this.swapping="translated"==a.type)},this),"translate.owl.carousel":a.proxy(function(a){a.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};e.Defaults={animateOut:!1,animateIn:!1},e.prototype.swap=function(){if(1===this.core.settings.items&&a.support.animation&&a.support.transition){this.core.speed(0);var b,c=a.proxy(this.clear,this),d=this.core.$stage.children().eq(this.previous),e=this.core.$stage.children().eq(this.next),f=this.core.settings.animateIn,g=this.core.settings.animateOut;this.core.current()!==this.previous&&(g&&(b=this.core.coordinates(this.previous)-this.core.coordinates(this.next),d.one(a.support.animation.end,c).css({left:b+"px"}).addClass("animated owl-animated-out").addClass(g)),f&&e.one(a.support.animation.end,c).addClass("animated owl-animated-in").addClass(f))}},e.prototype.clear=function(b){a(b.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},e.prototype.destroy=function(){var a,b
;for(a in this.handlers)this.core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Animate=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._timeout=null,this._paused=!1,this._handlers={"changed.owl.carousel":a.proxy(function(a){a.namespace&&"settings"===a.property.name?this._core.settings.autoplay?this.play():this.stop():a.namespace&&"position"===a.property.name&&this._core.settings.autoplay&&this._setAutoPlayInterval()},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":a.proxy(function(a,b,c){a.namespace&&this.play(b,c)},this),"stop.owl.autoplay":a.proxy(function(a){a.namespace&&this.stop()},this),"mouseover.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=a.extend({},e.Defaults,this._core.options)};e.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},e.prototype.play=function(a,b){this._paused=!1,this._core.is("rotating")||(this._core.enter("rotating"),this._setAutoPlayInterval())},e.prototype._getNextTimeout=function(d,e){return this._timeout&&b.clearTimeout(this._timeout),b.setTimeout(a.proxy(function(){this._paused||this._core.is("busy")||this._core.is("interacting")||c.hidden||this._core.next(e||this._core.settings.autoplaySpeed)},this),d||this._core.settings.autoplayTimeout)},e.prototype._setAutoPlayInterval=function(){this._timeout=this._getNextTimeout()},e.prototype.stop=function(){this._core.is("rotating")&&(b.clearTimeout(this._timeout),this._core.leave("rotating"))},e.prototype.pause=function(){this._core.is("rotating")&&(this._paused=!0)},e.prototype.destroy=function(){var a,b;this.stop();for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.autoplay=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){"use strict";var e=function(b){this._core=b,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":a.proxy(function(b){b.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+a(b.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,0,this._templates.pop())},this),"remove.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,1)},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&this.draw()},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)};e.Defaults={nav:!1,navText:["prev","next"],navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},e.prototype.initialize=function(){var b,c=this._core.settings;this._controls.$relative=(c.navContainer?a(c.navContainer):a("<div>").addClass(c.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=a("<"+c.navElement+">").addClass(c.navClass[0]).html(c.navText[0]).prependTo(this._controls.$relative).on("click",a.proxy(function(a){this.prev(c.navSpeed)},this)),this._controls.$next=a("<"+c.navElement+">").addClass(c.navClass[1]).html(c.navText[1]).appendTo(this._controls.$relative).on("click",a.proxy(function(a){this.next(c.navSpeed)},this)),c.dotsData||(this._templates=[a("<div>").addClass(c.dotClass).append(a("<span>")).prop("outerHTML")]),this._controls.$absolute=(c.dotsContainer?a(c.dotsContainer):a("<div>").addClass(c.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","div",a.proxy(function(b){var d=a(b.target).parent().is(this._controls.$absolute)?a(b.target).index():a(b.target).parent().index();b.preventDefault(),this.to(d,c.dotsSpeed)},this));for(b in this._overrides)this._core[b]=a.proxy(this[b],this)},e.prototype.destroy=function(){var a,b,c,d;for(a in this._handlers)this.$element.off(a,this._handlers[a]);for(b in this._controls)this._controls[b].remove();for(d in this.overides)this._core[d]=this._overrides[d];for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},e.prototype.update=function(){var a,b,c,d=this._core.clones().length/2,e=d+this._core.items().length,f=this._core.maximum(!0),g=this._core.settings,h=g.center||g.autoWidth||g.dotsData?1:g.dotsEach||g.items;if("page"!==g.slideBy&&(g.slideBy=Math.min(g.slideBy,g.items)),g.dots||"page"==g.slideBy)for(this._pages=[],a=d,b=0,c=0;a<e;a++){if(b>=h||0===b){if(this._pages.push({start:Math.min(f,a-d),end:a-d+h-1}),Math.min(f,a-d)===f)break;b=0,++c}b+=this._core.mergers(this._core.relative(a))}},e.prototype.draw=function(){var b,c=this._core.settings,d=this._core.items().length<=c.items,e=this._core.relative(this._core.current()),f=c.loop||c.rewind;this._controls.$relative.toggleClass("disabled",!c.nav||d),c.nav&&(this._controls.$previous.toggleClass("disabled",!f&&e<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!f&&e>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!c.dots||d),c.dots&&(b=this._pages.length-this._controls.$absolute.children().length,c.dotsData&&0!==b?this._controls.$absolute.html(this._templates.join("")):b>0?this._controls.$absolute.append(new Array(b+1).join(this._templates[0])):b<0&&this._controls.$absolute.children().slice(b).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(a.inArray(this.current(),this._pages)).addClass("active"))},e.prototype.onTrigger=function(b){var c=this._core.settings;b.page={index:a.inArray(this.current(),this._pages),count:this._pages.length,size:c&&(c.center||c.autoWidth||c.dotsData?1:c.dotsEach||c.items)}},e.prototype.current=function(){var b=this._core.relative(this._core.current());return a.grep(this._pages,a.proxy(function(a,c){return a.start<=b&&a.end>=b},this)).pop()},e.prototype.getPosition=function(b){var c,d,e=this._core.settings;return"page"==e.slideBy?(c=a.inArray(this.current(),this._pages),d=this._pages.length,b?++c:--c,c=this._pages[(c%d+d)%d].start):(c=this._core.relative(this._core.current()),d=this._core.items().length,b?c+=e.slideBy:c-=e.slideBy),c},e.prototype.next=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!0),b)},e.prototype.prev=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!1),b)},e.prototype.to=function(b,c,d){var e;!d&&this._pages.length?(e=this._pages.length,a.proxy(this._overrides.to,this._core)(this._pages[(b%e+e)%e].start,c)):a.proxy(this._overrides.to,this._core)(b,c)},a.fn.owlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){"use strict";var e=function(c){this._core=c,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":a.proxy(function(c){c.namespace&&"URLHash"===this._core.settings.startPosition&&a(b).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!c)return;this._hashes[c]=b.content}},this),"changed.owl.carousel":a.proxy(function(c){if(c.namespace&&"position"===c.property.name){var d=this._core.items(this._core.relative(this._core.current())),e=a.map(this._hashes,function(a,b){return a===d?b:null}).join();if(!e||b.location.hash.slice(1)===e)return;b.location.hash=e}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers),a(b).on("hashchange.owl.navigation",a.proxy(function(a){var c=b.location.hash.substring(1),e=this._core.$stage.children(),f=this._hashes[c]&&e.index(this._hashes[c]);f!==d&&f!==this._core.current()&&this._core.to(this._core.relative(f),!1,!0)},this))};e.Defaults={URLhashListener:!1},e.prototype.destroy=function(){var c,d;a(b).off("hashchange.owl.navigation");for(c in this._handlers)this._core.$element.off(c,this._handlers[c]);for(d in Object.getOwnPropertyNames(this))"function"!=typeof this[d]&&(this[d]=null)},a.fn.owlCarousel.Constructor.Plugins.Hash=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){function e(b,c){var e=!1,f=b.charAt(0).toUpperCase()+b.slice(1);return a.each((b+" "+h.join(f+" ")+f).split(" "),function(a,b){if(g[b]!==d)return e=!c||b,!1}),e}function f(a){return e(a,!0)}var g=a("<support>").get(0).style,h="Webkit Moz O ms".split(" "),i={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},j={csstransforms:function(){return!!e("transform")},csstransforms3d:function(){return!!e("perspective")},csstransitions:function(){return!!e("transition")},cssanimations:function(){return!!e("animation")}};j.csstransitions()&&(a.support.transition=new String(f("transition")),a.support.transition.end=i.transition.end[a.support.transition]),j.cssanimations()&&(a.support.animation=new String(f("animation")),a.support.animation.end=i.animation.end[a.support.animation]),j.csstransforms()&&(a.support.transform=new String(f("transform")),a.support.transform3d=j.csstransforms3d())}(window.Zepto||window.jQuery,window,document);
!function(){"use strict";var e=0,r={};function i(t){if(!t)throw new Error("No options passed to Waypoint constructor");if(!t.element)throw new Error("No element option passed to Waypoint constructor");if(!t.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=i.Adapter.extend({},i.defaults,t),this.element=this.options.element,this.adapter=new i.Adapter(this.element),this.callback=t.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=i.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=i.Context.findOrCreateByElement(this.options.context),i.offsetAliases[this.options.offset]&&(this.options.offset=i.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),r[this.key]=this,e+=1}i.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},i.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},i.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete r[this.key]},i.prototype.disable=function(){return this.enabled=!1,this},i.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},i.prototype.next=function(){return this.group.next(this)},i.prototype.previous=function(){return this.group.previous(this)},i.invokeAll=function(t){var e=[];for(var i in r)e.push(r[i]);for(var o=0,n=e.length;o<n;o++)e[o][t]()},i.destroyAll=function(){i.invokeAll("destroy")},i.disableAll=function(){i.invokeAll("disable")},i.enableAll=function(){for(var t in i.Context.refreshAll(),r)r[t].enabled=!0;return this},i.refreshAll=function(){i.Context.refreshAll()},i.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},i.viewportWidth=function(){return document.documentElement.clientWidth},i.adapters=[],i.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},i.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.VcWaypoint=i}(),function(){"use strict";function e(t){window.setTimeout(t,1e3/60)}var i=0,o={},y=window.VcWaypoint,t=window.onload;function n(t){this.element=t,this.Adapter=y.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,o[t.waypointContextKey]=this,i+=1,y.windowContext||(y.windowContext=!0,y.windowContext=new n(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}n.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},n.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical),i=this.element==this.element.window;t&&e&&!i&&(this.adapter.off(".vcwaypoints"),delete o[this.key])},n.prototype.createThrottledResizeHandler=function(){var t=this;function e(){t.handleResize(),t.didResize=!1}this.adapter.on("resize.vcwaypoints",function(){t.didResize||(t.didResize=!0,y.requestAnimationFrame(e))})},n.prototype.createThrottledScrollHandler=function(){var t=this;function e(){t.handleScroll(),t.didScroll=!1}this.adapter.on("scroll.vcwaypoints",function(){t.didScroll&&!y.isTouch||(t.didScroll=!0,y.requestAnimationFrame(e))})},n.prototype.handleResize=function(){y.Context.refreshAll()},n.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var i in e){var o=e[i],n=o.newScroll>o.oldScroll?o.forward:o.backward;for(var r in this.waypoints[i]){var s=this.waypoints[i][r];if(null!==s.triggerPoint){var a=o.oldScroll<s.triggerPoint,l=o.newScroll>=s.triggerPoint;(a&&l||!a&&!l)&&(s.queueTrigger(n),t[s.group.id]=s.group)}}}for(var h in t)t[h].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},n.prototype.innerHeight=function(){return this.element==this.element.window?y.viewportHeight():this.adapter.innerHeight()},n.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},n.prototype.innerWidth=function(){return this.element==this.element.window?y.viewportWidth():this.adapter.innerWidth()},n.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var o=0,n=t.length;o<n;o++)t[o].destroy()},n.prototype.refresh=function(){var t,e=this.element==this.element.window,i=e?void 0:this.adapter.offset(),o={};for(var n in this.handleScroll(),t={horizontal:{contextOffset:e?0:i.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:i.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}}){var r=t[n];for(var s in this.waypoints[n]){var a,l,h,p,c=this.waypoints[n][s],u=c.options.offset,d=c.triggerPoint,f=0,w=null==d;c.element!==c.element.window&&(f=c.adapter.offset()[r.offsetProp]),"function"==typeof u?u=u.apply(c):"string"==typeof u&&(u=parseFloat(u),-1<c.options.offset.indexOf("%")&&(u=Math.ceil(r.contextDimension*u/100))),a=r.contextScroll-r.contextOffset,c.triggerPoint=Math.floor(f+a-u),l=d<r.oldScroll,h=c.triggerPoint>=r.oldScroll,p=!l&&!h,!w&&(l&&h)?(c.queueTrigger(r.backward),o[c.group.id]=c.group):!w&&p?(c.queueTrigger(r.forward),o[c.group.id]=c.group):w&&r.oldScroll>=c.triggerPoint&&(c.queueTrigger(r.forward),o[c.group.id]=c.group)}}return y.requestAnimationFrame(function(){for(var t in o)o[t].flushTriggers()}),this},n.findOrCreateByElement=function(t){return n.findByElement(t)||new n(t)},n.refreshAll=function(){for(var t in o)o[t].refresh()},n.findByElement=function(t){return o[t.waypointContextKey]},window.onload=function(){t&&t(),n.refreshAll()},y.requestAnimationFrame=function(t){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||e).call(window,t)},y.Context=n}(),function(){"use strict";function s(t,e){return t.triggerPoint-e.triggerPoint}function a(t,e){return e.triggerPoint-t.triggerPoint}var e={vertical:{},horizontal:{}},i=window.VcWaypoint;function o(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),e[this.axis][this.name]=this}o.prototype.add=function(t){this.waypoints.push(t)},o.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},o.prototype.flushTriggers=function(){for(var t in this.triggerQueues){var e=this.triggerQueues[t],i="up"===t||"left"===t;e.sort(i?a:s);for(var o=0,n=e.length;o<n;o+=1){var r=e[o];(r.options.continuous||o===e.length-1)&&r.trigger([t])}}this.clearTriggerQueues()},o.prototype.next=function(t){this.waypoints.sort(s);var e=i.Adapter.inArray(t,this.waypoints);return e===this.waypoints.length-1?null:this.waypoints[e+1]},o.prototype.previous=function(t){this.waypoints.sort(s);var e=i.Adapter.inArray(t,this.waypoints);return e?this.waypoints[e-1]:null},o.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},o.prototype.remove=function(t){var e=i.Adapter.inArray(t,this.waypoints);-1<e&&this.waypoints.splice(e,1)},o.prototype.first=function(){return this.waypoints[0]},o.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},o.findOrCreate=function(t){return e[t.axis][t.name]||new o(t)},i.Group=o}(),function(){"use strict";var i=window.jQuery,t=window.VcWaypoint;function o(t){this.$element=i(t)}i.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(t,e){o.prototype[e]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[e].apply(this.$element,t)}}),i.each(["extend","inArray","isEmptyObject"],function(t,e){o[e]=i[e]}),t.adapters.push({name:"jquery",Adapter:o}),t.Adapter=o}(),function(){"use strict";var n=window.VcWaypoint;function t(o){return function(){var e=[],i=arguments[0];return o.isFunction(arguments[0])&&((i=o.extend({},arguments[1])).handler=arguments[0]),this.each(function(){var t=o.extend({},i,{element:this});"string"==typeof t.context&&(t.context=o(this).closest(t.context)[0]),e.push(new n(t))}),e}}window.jQuery&&(window.jQuery.fn.vcwaypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.vcwaypoint=t(window.Zepto))}();
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h="Close",i="BeforeClose",j="AfterClose",k="BeforeAppend",l="MarkupParse",m="Open",n="Change",o="mfp",p="."+o,q="mfp-ready",r="mfp-removing",s="mfp-prevent-close",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(a,c){b.ev.triggerHandler(o+a,c),b.st.callbacks&&(a=a.charAt(0).toLowerCase()+a.slice(1),b.st.callbacks[a]&&b.st.callbacks[a].apply(b,Array.isArray(c)?c:[c]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(b=new t,b.init(),a.magnificPopup.instance=b)},B=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};t.prototype={constructor:t,init:function(){var c=navigator.appVersion;b.isIE7=-1!==c.indexOf("MSIE 7."),b.isIE8=-1!==c.indexOf("MSIE 8."),b.isLowIE=b.isIE7||b.isIE8,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(!1===c.isObj){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e<h.length;e++)if(g=h[e],g.parsed&&(g=g.el[0]),g===c.el[0]){b.index=e;break}}else b.items=Array.isArray(c.items)?c.items:[c.items],b.index=c.index||0;if(b.isOpen)return void b.updateItemHTML();b.types=[],f="",c.mainEl&&c.mainEl.length?b.ev=c.mainEl.eq(0):b.ev=d,c.key?(b.popupsCache[c.key]||(b.popupsCache[c.key]={}),b.currTemplate=b.popupsCache[c.key]):b.currTemplate={},b.st=a.extend(!0,{},a.magnificPopup.defaults,c),b.fixedContentPos="auto"===b.st.fixedContentPos?!b.probablyMobile:b.st.fixedContentPos,b.st.modal&&(b.st.closeOnContentClick=!1,b.st.closeOnBgClick=!1,b.st.showCloseBtn=!1,b.st.enableEscapeKey=!1),b.bgOverlay||(b.bgOverlay=x("bg").on("click"+p,function(){b.close()}),b.wrap=x("wrap").attr("tabindex",-1).on("click"+p,function(a){b._checkIfClose(a.target)&&b.close()}),b.container=x("container",b.wrap)),b.contentContainer=x("content"),b.st.preloader&&(b.preloader=x("preloader",b.container,b.st.tLoading));var i=a.magnificPopup.modules;for(e=0;e<i.length;e++){var j=i[e];j=j.charAt(0).toUpperCase()+j.slice(1),b["init"+j].call(b)}y("BeforeOpen"),b.st.showCloseBtn&&(b.st.closeBtnInside?(w(l,function(a,b,c,d){c.close_replaceWith=z(d.type)}),f+=" mfp-close-btn-in"):b.wrap.append(z())),b.st.alignTop&&(f+=" mfp-align-top"),b.fixedContentPos?b.wrap.css({overflow:b.st.overflowY,overflowX:"hidden",overflowY:b.st.overflowY}):b.wrap.css({top:v.scrollTop(),position:"absolute"}),(!1===b.st.fixedBgPos||"auto"===b.st.fixedBgPos&&!b.fixedContentPos)&&b.bgOverlay.css({height:d.height(),position:"absolute"}),b.st.enableEscapeKey&&d.on("keyup"+p,function(a){27===a.keyCode&&b.close()}),v.on("resize"+p,function(){b.updateSize()}),b.st.closeOnContentClick||(f+=" mfp-auto-cursor"),f&&b.wrap.addClass(f);var k=b.wH=v.height(),n={};if(b.fixedContentPos&&b._hasScrollBar(k)){var o=b._getScrollbarSize();o&&(n.marginRight=o)}b.fixedContentPos&&(b.isIE7?a("body, html").css("overflow","hidden"):n.overflow="hidden");var r=b.st.mainClass;return b.isIE7&&(r+=" mfp-ie7"),r&&b._addClassToMFP(r),b.updateItemHTML(),y("BuildControls"),a("html").css(n),b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo||a(document.body)),b._lastFocusedEl=document.activeElement,setTimeout(function(){b.content?(b._addClassToMFP(q),b._setFocus()):b.bgOverlay.addClass(q),d.on("focusin"+p,b._onFocusIn)},16),b.isOpen=!0,b.updateSize(k),y(m),c},close:function(){b.isOpen&&(y(i),b.isOpen=!1,b.st.removalDelay&&!b.isLowIE&&b.supportsTransition?(b._addClassToMFP(r),setTimeout(function(){b._close()},b.st.removalDelay)):b._close())},_close:function(){y(h);var c=r+" "+q+" ";if(b.bgOverlay.detach(),b.wrap.detach(),b.container.empty(),b.st.mainClass&&(c+=b.st.mainClass+" "),b._removeClassFromMFP(c),b.fixedContentPos){var e={marginRight:""};b.isIE7?a("body, html").css("overflow",""):e.overflow="",a("html").css(e)}d.off("keyup"+p+" focusin"+p),b.ev.off(p),b.wrap.attr("class","mfp-wrap").removeAttr("style"),b.bgOverlay.attr("class","mfp-bg"),b.container.attr("class","mfp-container"),!b.st.showCloseBtn||b.st.closeBtnInside&&!0!==b.currTemplate[b.currItem.type]||b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach(),b.currItem=null,b.content=null,b.currTemplate=null,b.prevHeight=0,y(j)},updateSize:function(a){if(b.isIOS){var c=document.documentElement.clientWidth/window.innerWidth,d=window.innerHeight*c;b.wrap.css("height",d),b.wH=d}else b.wH=a||v.height();b.fixedContentPos||b.wrap.css("height",b.wH),y("Resize")},updateItemHTML:function(){var c=b.items[b.index];b.contentContainer.detach(),b.content&&b.content.detach(),c.parsed||(c=b.parseEl(b.index));var d=c.type;if(y("BeforeChange",[b.currItem?b.currItem.type:"",d]),b.currItem=c,!b.currTemplate[d]){var f=!!b.st[d]&&b.st[d].markup;y("FirstMarkupParse",f),b.currTemplate[d]=!f||a(f)}e&&e!==c.type&&b.container.removeClass("mfp-"+e+"-holder");var g=b["get"+d.charAt(0).toUpperCase()+d.slice(1)](c,b.currTemplate[d]);b.appendContent(g,d),c.preloaded=!0,y(n,c),e=c.type,b.container.prepend(b.contentContainer),y("AfterChange")},appendContent:function(a,c){b.content=a,a?b.st.showCloseBtn&&b.st.closeBtnInside&&!0===b.currTemplate[c]?b.content.find(".mfp-close").length||b.content.append(z()):b.content=a:b.content="",y(k),b.container.addClass("mfp-"+c+"-holder"),b.contentContainer.append(b.content)},parseEl:function(c){var d,e=b.items[c];if(e.tagName?e={el:a(e)}:(d=e.type,e={data:e,src:e.src}),e.el){for(var f=b.types,g=0;g<f.length;g++)if(e.el.hasClass("mfp-"+f[g])){d=f[g];break}e.src=e.el.attr("data-mfp-src"),e.src||(e.src=e.el.attr("href"))}return e.type=d||b.st.type||"inline",e.index=c,e.parsed=!0,b.items[c]=e,y("ElementParse",e),b.items[c]},addGroup:function(a,c){var d=function(d){d.mfpEl=this,b._openClick(d,a,c)};c||(c={});var e="click.magnificPopup";c.mainEl=a,c.items?(c.isObj=!0,a.off(e).on(e,d)):(c.isObj=!1,c.delegate?a.off(e).on(e,c.delegate,d):(c.items=a,a.off(e).on(e,d)))},_openClick:function(c,d,e){if((void 0!==e.midClick?e.midClick:a.magnificPopup.defaults.midClick)||2!==c.which&&!c.ctrlKey&&!c.metaKey){var f=void 0!==e.disableOn?e.disableOn:a.magnificPopup.defaults.disableOn;if(f)if("function"==typeof f){if(!f.call(b))return!0}else if(v.width()<f)return!0;c.type&&(c.preventDefault(),b.isOpen&&c.stopPropagation()),e.el=a(c.mfpEl),e.delegate&&(e.items=d.find(e.delegate)),b.open(e)}},updateStatus:function(a,d){if(b.preloader){c!==a&&b.container.removeClass("mfp-s-"+c),d||"loading"!==a||(d=b.st.tLoading);var e={status:a,text:d};y("UpdateStatus",e),a=e.status,d=e.text,b.preloader.html(d),b.preloader.find("a").on("click",function(a){a.stopImmediatePropagation()}),b.container.addClass("mfp-s-"+a),c=a}},_checkIfClose:function(c){if(!a(c).hasClass(s)){var d=b.st.closeOnContentClick,e=b.st.closeOnBgClick;if(d&&e)return!0;if(!b.content||a(c).hasClass("mfp-close")||b.preloader&&c===b.preloader[0])return!0;if(c===b.content[0]||a.contains(b.content[0],c)){if(d)return!0}else if(e&&a.contains(document,c))return!0;return!1}},_addClassToMFP:function(a){b.bgOverlay.addClass(a),b.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),b.wrap.removeClass(a)},_hasScrollBar:function(a){return(b.isIE7?d.height():document.body.scrollHeight)>(a||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).trigger("focus")},_onFocusIn:function(c){if(c.target!==b.wrap[0]&&!a.contains(b.wrap[0],c.target))return b._setFocus(),!1},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(a,c){if(void 0===c||!1===c)return!0;if(e=a.split("_"),e.length>1){var d=b.find(p+"-"+e[0]);if(d.length>0){var f=e[1];"replaceWith"===f?d[0]!==c[0]&&d.replaceWith(c):"img"===f?d.is("img")?d.attr("src",c):d.replaceWith('<img src="'+c+'" class="'+d.attr("class")+'" />'):d.attr(e[1],c)}}else b.find(p+"-"+a).html(c)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&times;</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},a.fn.magnificPopup=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("<div>");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I="ajax",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+"."+I,K),w("BeforeChange."+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y("ParseAjax",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var L,M=function(a){if(a.data&&void 0!==a.data.title)return a.data.title;var c=b.st.image.titleSrc;if(c){if("function"==typeof c)return c.call(b,a);if(a.el)return a.el.attr(c)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){if(d.naturalWidth>0)return void b._onImageHasSize(a);c>200&&clearInterval(L),c++,3===c?e(10):40===c?e(50):100===c&&e(500)},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,e<200?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),!(a=b._getItemToZoom()))return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(!(a=b._getItemToZoom()))return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return!!b.currItem.hasSize&&b.currItem.img},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var P="iframe",Q="//about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){if(e.indexOf(this.index)>-1)return this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:a<0?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery",g=Boolean(a.fn.mfpFastClick);if(b.direction=!0,!c||!c.enabled)return!1;f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){if(b.items.length>1)return b.next(),!1}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s),h=g?"mfpFastClick":"click";e[h](function(){b.prev()}),f[h](function(){b.next()}),b.isIE7&&(x("b",e[0],!1,!0),x("a",e[0],!1,!0),x("b",f[0],!1,!0),x("a",f[0],!1,!0)),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowLeft&&g&&b.arrowLeft.add(b.arrowRight).destroyMfpFastClick(),b.arrowRight=b.arrowLeft=null})},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('<img class="mfp-img" />').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),function(){var b="ontouchstart"in window,c=function(){v.off("touchmove"+e+" touchend"+e)},d="mfpFastClick",e="."+d;a.fn.mfpFastClick=function(d){return a(this).each(function(){var f,g=a(this);if(b){var h,i,j,k,l,m;g.on("touchstart"+e,function(a){k=!1,m=1,l=a.originalEvent?a.originalEvent.touches[0]:a.touches[0],i=l.clientX,j=l.clientY,v.on("touchmove"+e,function(a){l=a.originalEvent?a.originalEvent.touches:a.touches,m=l.length,l=l[0],(Math.abs(l.clientX-i)>10||Math.abs(l.clientY-j)>10)&&(k=!0,c())}).on("touchend"+e,function(a){c(),k||m>1||(f=!0,a.preventDefault(),clearTimeout(h),h=setTimeout(function(){f=!1},1e3),d())})})}g.on("click"+e,function(){f||d()})})},a.fn.destroyMfpFastClick=function(){a(this).off("touchstart"+e+" click"+e),b&&v.off("touchmove"+e+" touchend"+e)}}(),A()});
!function(a,b){"object"==typeof exports&&"undefined"!=typeof module?b(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],b):b(a.bootstrap={},a.jQuery)}(this,function(a,b){"use strict";function c(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}function d(a,b,d){return b&&c(a.prototype,b),d&&c(a,d),a}function e(){return e=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a},e.apply(this,arguments)}function f(a){var b=!1;return function(){b||(b=!0,window.Promise.resolve().then(function(){b=!1,a()}))}}function g(a){var b=!1;return function(){b||(b=!0,setTimeout(function(){b=!1,a()},na))}}function h(a){var b={};return a&&"[object Function]"===b.toString.call(a)}function i(a,b){if(1!==a.nodeType)return[];var c=getComputedStyle(a,null);return b?c[b]:c}function j(a){return"HTML"===a.nodeName?a:a.parentNode||a.host}function k(a){if(!a)return document.body;switch(a.nodeName){case"HTML":case"BODY":return a.ownerDocument.body;case"#document":return a.body}var b=i(a),c=b.overflow,d=b.overflowX;return/(auto|scroll)/.test(c+b.overflowY+d)?a:k(j(a))}function l(a){var b=a&&a.offsetParent,c=b&&b.nodeName;return c&&"BODY"!==c&&"HTML"!==c?-1!==["TD","TABLE"].indexOf(b.nodeName)&&"static"===i(b,"position")?l(b):b:a?a.ownerDocument.documentElement:document.documentElement}function m(a){var b=a.nodeName;return"BODY"!==b&&("HTML"===b||l(a.firstElementChild)===a)}function n(a){return null!==a.parentNode?n(a.parentNode):a}function o(a,b){if(!(a&&a.nodeType&&b&&b.nodeType))return document.documentElement;var c=a.compareDocumentPosition(b)&Node.DOCUMENT_POSITION_FOLLOWING,d=c?a:b,e=c?b:a,f=document.createRange();f.setStart(d,0),f.setEnd(e,0);var g=f.commonAncestorContainer;if(a!==g&&b!==g||d.contains(e))return m(g)?g:l(g);var h=n(a);return h.host?o(h.host,b):o(a,n(b).host)}function p(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",c="top"===b?"scrollTop":"scrollLeft",d=a.nodeName;if("BODY"===d||"HTML"===d){var e=a.ownerDocument.documentElement;return(a.ownerDocument.scrollingElement||e)[c]}return a[c]}function q(a,b){var c=arguments.length>2&&void 0!==arguments[2]&&arguments[2],d=p(b,"top"),e=p(b,"left"),f=c?-1:1;return a.top+=d*f,a.bottom+=d*f,a.left+=e*f,a.right+=e*f,a}function r(a,b){var c="x"===b?"Left":"Top",d="Left"===c?"Right":"Bottom";return parseFloat(a["border"+c+"Width"],10)+parseFloat(a["border"+d+"Width"],10)}function s(a,b,c,d){return Math.max(b["offset"+a],b["scroll"+a],c["client"+a],c["offset"+a],c["scroll"+a],sa()?c["offset"+a]+d["margin"+("Height"===a?"Top":"Left")]+d["margin"+("Height"===a?"Bottom":"Right")]:0)}function t(){var a=document.body,b=document.documentElement,c=sa()&&getComputedStyle(b);return{height:s("Height",a,b,c),width:s("Width",a,b,c)}}function u(a){return wa({},a,{right:a.left+a.width,bottom:a.top+a.height})}function v(a){var b={};if(sa())try{b=a.getBoundingClientRect();var c=p(a,"top"),d=p(a,"left");b.top+=c,b.left+=d,b.bottom+=c,b.right+=d}catch(m){}else b=a.getBoundingClientRect();var e={left:b.left,top:b.top,width:b.right-b.left,height:b.bottom-b.top},f="HTML"===a.nodeName?t():{},g=f.width||a.clientWidth||e.right-e.left,h=f.height||a.clientHeight||e.bottom-e.top,j=a.offsetWidth-g,k=a.offsetHeight-h;if(j||k){var l=i(a);j-=r(l,"x"),k-=r(l,"y"),e.width-=j,e.height-=k}return u(e)}function w(a,b){var c=sa(),d="HTML"===b.nodeName,e=v(a),f=v(b),g=k(a),h=i(b),j=parseFloat(h.borderTopWidth,10),l=parseFloat(h.borderLeftWidth,10),m=u({top:e.top-f.top-j,left:e.left-f.left-l,width:e.width,height:e.height});if(m.marginTop=0,m.marginLeft=0,!c&&d){var n=parseFloat(h.marginTop,10),o=parseFloat(h.marginLeft,10);m.top-=j-n,m.bottom-=j-n,m.left-=l-o,m.right-=l-o,m.marginTop=n,m.marginLeft=o}return(c?b.contains(g):b===g&&"BODY"!==g.nodeName)&&(m=q(m,b)),m}function x(a){var b=a.ownerDocument.documentElement,c=w(a,b),d=Math.max(b.clientWidth,window.innerWidth||0),e=Math.max(b.clientHeight,window.innerHeight||0),f=p(b),g=p(b,"left");return u({top:f-c.top+c.marginTop,left:g-c.left+c.marginLeft,width:d,height:e})}function y(a){var b=a.nodeName;return"BODY"!==b&&"HTML"!==b&&("fixed"===i(a,"position")||y(j(a)))}function z(a,b,c,d){var e={top:0,left:0},f=o(a,b);if("viewport"===d)e=x(f);else{var g=void 0;"scrollParent"===d?(g=k(j(b)),"BODY"===g.nodeName&&(g=a.ownerDocument.documentElement)):g="window"===d?a.ownerDocument.documentElement:d;var h=w(g,f);if("HTML"!==g.nodeName||y(f))e=h;else{var i=t(),l=i.height,m=i.width;e.top+=h.top-h.marginTop,e.bottom=l+h.top,e.left+=h.left-h.marginLeft,e.right=m+h.left}}return e.left+=c,e.top+=c,e.right-=c,e.bottom-=c,e}function A(a){return a.width*a.height}function B(a,b,c,d,e){var f=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===a.indexOf("auto"))return a;var g=z(c,d,f,e),h={top:{width:g.width,height:b.top-g.top},right:{width:g.right-b.right,height:g.height},bottom:{width:g.width,height:g.bottom-b.bottom},left:{width:b.left-g.left,height:g.height}},i=Object.keys(h).map(function(a){return wa({key:a},h[a],{area:A(h[a])})}).sort(function(a,b){return b.area-a.area}),j=i.filter(function(a){var b=a.width,d=a.height;return b>=c.clientWidth&&d>=c.clientHeight}),k=j.length>0?j[0].key:i[0].key,l=a.split("-")[1];return k+(l?"-"+l:"")}function C(a,b,c){return w(c,o(b,c))}function D(a){var b=getComputedStyle(a),c=parseFloat(b.marginTop)+parseFloat(b.marginBottom),d=parseFloat(b.marginLeft)+parseFloat(b.marginRight);return{width:a.offsetWidth+d,height:a.offsetHeight+c}}function E(a){var b={left:"right",right:"left",bottom:"top",top:"bottom"};return a.replace(/left|right|bottom|top/g,function(a){return b[a]})}function F(a,b,c){c=c.split("-")[0];var d=D(a),e={width:d.width,height:d.height},f=-1!==["right","left"].indexOf(c),g=f?"top":"left",h=f?"left":"top",i=f?"height":"width",j=f?"width":"height";return e[g]=b[g]+b[i]/2-d[i]/2,e[h]=c===h?b[h]-d[j]:b[E(h)],e}function G(a,b){return Array.prototype.find?a.find(b):a.filter(b)[0]}function H(a,b,c){if(Array.prototype.findIndex)return a.findIndex(function(a){return a[b]===c});var d=G(a,function(a){return a[b]===c});return a.indexOf(d)}function I(a,b,c){return(void 0===c?a:a.slice(0,H(a,"name",c))).forEach(function(a){a.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var c=a.function||a.fn;a.enabled&&h(c)&&(b.offsets.popper=u(b.offsets.popper),b.offsets.reference=u(b.offsets.reference),b=c(b,a))}),b}function J(){if(!this.state.isDestroyed){var a={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};a.offsets.reference=C(this.state,this.popper,this.reference),a.placement=B(this.options.placement,a.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),a.originalPlacement=a.placement,a.offsets.popper=F(this.popper,a.offsets.reference,a.placement),a.offsets.popper.position="absolute",a=I(this.modifiers,a),this.state.isCreated?this.options.onUpdate(a):(this.state.isCreated=!0,this.options.onCreate(a))}}function K(a,b){return a.some(function(a){var c=a.name;return a.enabled&&c===b})}function L(a){for(var b=[!1,"ms","Webkit","Moz","O"],c=a.charAt(0).toUpperCase()+a.slice(1),d=0;d<b.length-1;d++){var e=b[d],f=e?""+e+c:a;if(void 0!==document.body.style[f])return f}return null}function M(){return this.state.isDestroyed=!0,K(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[L("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function N(a){var b=a.ownerDocument;return b?b.defaultView:window}function O(a,b,c,d){var e="BODY"===a.nodeName,f=e?a.ownerDocument.defaultView:a;f.addEventListener(b,c,{passive:!0}),e||O(k(f.parentNode),b,c,d),d.push(f)}function P(a,b,c,d){c.updateBound=d,N(a).addEventListener("resize",c.updateBound,{passive:!0});var e=k(a);return O(e,"scroll",c.updateBound,c.scrollParents),c.scrollElement=e,c.eventsEnabled=!0,c}function Q(){this.state.eventsEnabled||(this.state=P(this.reference,this.options,this.state,this.scheduleUpdate))}function R(a,b){return N(a).removeEventListener("resize",b.updateBound),b.scrollParents.forEach(function(a){a.removeEventListener("scroll",b.updateBound)}),b.updateBound=null,b.scrollParents=[],b.scrollElement=null,b.eventsEnabled=!1,b}function S(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=R(this.reference,this.state))}function T(a){return""!==a&&!isNaN(parseFloat(a))&&isFinite(a)}function U(a,b){Object.keys(b).forEach(function(c){var d="";-1!==["width","height","top","right","bottom","left"].indexOf(c)&&T(b[c])&&(d="px"),a.style[c]=b[c]+d})}function V(a,b){Object.keys(b).forEach(function(c){!1!==b[c]?a.setAttribute(c,b[c]):a.removeAttribute(c)})}function W(a){return U(a.instance.popper,a.styles),V(a.instance.popper,a.attributes),a.arrowElement&&Object.keys(a.arrowStyles).length&&U(a.arrowElement,a.arrowStyles),a}function X(a,b,c,d,e){var f=C(e,b,a),g=B(c.placement,f,b,a,c.modifiers.flip.boundariesElement,c.modifiers.flip.padding);return b.setAttribute("x-placement",g),U(b,{position:"absolute"}),c}function Y(a,b){var c=b.x,d=b.y,e=a.offsets.popper,f=G(a.instance.modifiers,function(a){return"applyStyle"===a.name}).gpuAcceleration;void 0!==f&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var g=void 0!==f?f:b.gpuAcceleration,h=l(a.instance.popper),i=v(h),j={position:e.position},k={left:Math.floor(e.left),top:Math.floor(e.top),bottom:Math.floor(e.bottom),right:Math.floor(e.right)},m="bottom"===c?"top":"bottom",n="right"===d?"left":"right",o=L("transform"),p=void 0,q=void 0;if(q="bottom"===m?-i.height+k.bottom:k.top,p="right"===n?-i.width+k.right:k.left,g&&o)j[o]="translate3d("+p+"px, "+q+"px, 0)",j[m]=0,j[n]=0,j.willChange="transform";else{var r="bottom"===m?-1:1,s="right"===n?-1:1;j[m]=q*r,j[n]=p*s,j.willChange=m+", "+n}var t={"x-placement":a.placement};return a.attributes=wa({},t,a.attributes),a.styles=wa({},j,a.styles),a.arrowStyles=wa({},a.offsets.arrow,a.arrowStyles),a}function Z(a,b,c){var d=G(a,function(a){return a.name===b}),e=!!d&&a.some(function(a){return a.name===c&&a.enabled&&a.order<d.order});if(!e){var f="`"+b+"`",g="`"+c+"`";console.warn(g+" modifier is required by "+f+" modifier in order to work, be sure to include it before "+f+"!")}return e}function $(a,b){var c;if(!Z(a.instance.modifiers,"arrow","keepTogether"))return a;var d=b.element;if("string"==typeof d){if(!(d=a.instance.popper.querySelector(d)))return a}else if(!a.instance.popper.contains(d))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),a;var e=a.placement.split("-")[0],f=a.offsets,g=f.popper,h=f.reference,j=-1!==["left","right"].indexOf(e),k=j?"height":"width",l=j?"Top":"Left",m=l.toLowerCase(),n=j?"left":"top",o=j?"bottom":"right",p=D(d)[k];h[o]-p<g[m]&&(a.offsets.popper[m]-=g[m]-(h[o]-p)),h[m]+p>g[o]&&(a.offsets.popper[m]+=h[m]+p-g[o]),a.offsets.popper=u(a.offsets.popper);var q=h[m]+h[k]/2-p/2,r=i(a.instance.popper),s=parseFloat(r["margin"+l],10),t=parseFloat(r["border"+l+"Width"],10),v=q-a.offsets.popper[m]-s-t;return v=Math.max(Math.min(g[k]-p,v),0),a.arrowElement=d,a.offsets.arrow=(c={},va(c,m,Math.round(v)),va(c,n,""),c),a}function _(a){return"end"===a?"start":"start"===a?"end":a}function aa(a){var b=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=ya.indexOf(a),d=ya.slice(c+1).concat(ya.slice(0,c));return b?d.reverse():d}function ba(a,b){if(K(a.instance.modifiers,"inner"))return a;if(a.flipped&&a.placement===a.originalPlacement)return a;var c=z(a.instance.popper,a.instance.reference,b.padding,b.boundariesElement),d=a.placement.split("-")[0],e=E(d),f=a.placement.split("-")[1]||"",g=[];switch(b.behavior){case za.FLIP:g=[d,e];break;case za.CLOCKWISE:g=aa(d);break;case za.COUNTERCLOCKWISE:g=aa(d,!0);break;default:g=b.behavior}return g.forEach(function(h,i){if(d!==h||g.length===i+1)return a;d=a.placement.split("-")[0],e=E(d);var j=a.offsets.popper,k=a.offsets.reference,l=Math.floor,m="left"===d&&l(j.right)>l(k.left)||"right"===d&&l(j.left)<l(k.right)||"top"===d&&l(j.bottom)>l(k.top)||"bottom"===d&&l(j.top)<l(k.bottom),n=l(j.left)<l(c.left),o=l(j.right)>l(c.right),p=l(j.top)<l(c.top),q=l(j.bottom)>l(c.bottom),r="left"===d&&n||"right"===d&&o||"top"===d&&p||"bottom"===d&&q,s=-1!==["top","bottom"].indexOf(d),t=!!b.flipVariations&&(s&&"start"===f&&n||s&&"end"===f&&o||!s&&"start"===f&&p||!s&&"end"===f&&q);(m||r||t)&&(a.flipped=!0,(m||r)&&(d=g[i+1]),t&&(f=_(f)),a.placement=d+(f?"-"+f:""),a.offsets.popper=wa({},a.offsets.popper,F(a.instance.popper,a.offsets.reference,a.placement)),a=I(a.instance.modifiers,a,"flip"))}),a}function ca(a){var b=a.offsets,c=b.popper,d=b.reference,e=a.placement.split("-")[0],f=Math.floor,g=-1!==["top","bottom"].indexOf(e),h=g?"right":"bottom",i=g?"left":"top",j=g?"width":"height";return c[h]<f(d[i])&&(a.offsets.popper[i]=f(d[i])-c[j]),c[i]>f(d[h])&&(a.offsets.popper[i]=f(d[h])),a}function da(a,b,c,d){var e=a.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),f=+e[1],g=e[2];if(!f)return a;if(0===g.indexOf("%")){var h=void 0;switch(g){case"%p":h=c;break;case"%":case"%r":default:h=d}return u(h)[b]/100*f}if("vh"===g||"vw"===g){return("vh"===g?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*f}return f}function ea(a,b,c,d){var e=[0,0],f=-1!==["right","left"].indexOf(d),g=a.split(/(\+|\-)/).map(function(a){return a.trim()}),h=g.indexOf(G(g,function(a){return-1!==a.search(/,|\s/)}));g[h]&&-1===g[h].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var i=/\s*,\s*|\s+/,j=-1!==h?[g.slice(0,h).concat([g[h].split(i)[0]]),[g[h].split(i)[1]].concat(g.slice(h+1))]:[g];return j=j.map(function(a,d){var e=(1===d?!f:f)?"height":"width",g=!1;return a.reduce(function(a,b){return""===a[a.length-1]&&-1!==["+","-"].indexOf(b)?(a[a.length-1]=b,g=!0,a):g?(a[a.length-1]+=b,g=!1,a):a.concat(b)},[]).map(function(a){return da(a,e,b,c)})}),j.forEach(function(a,b){a.forEach(function(c,d){T(c)&&(e[b]+=c*("-"===a[d-1]?-1:1))})}),e}function fa(a,b){var c=b.offset,d=a.placement,e=a.offsets,f=e.popper,g=e.reference,h=d.split("-")[0],i=void 0;return i=T(+c)?[+c,0]:ea(c,f,g,h),"left"===h?(f.top+=i[0],f.left-=i[1]):"right"===h?(f.top+=i[0],f.left+=i[1]):"top"===h?(f.left+=i[0],f.top-=i[1]):"bottom"===h&&(f.left+=i[0],f.top+=i[1]),a.popper=f,a}function ga(a,b){var c=b.boundariesElement||l(a.instance.popper);a.instance.reference===c&&(c=l(c));var d=z(a.instance.popper,a.instance.reference,b.padding,c);b.boundaries=d;var e=b.priority,f=a.offsets.popper,g={primary:function(a){var c=f[a];return f[a]<d[a]&&!b.escapeWithReference&&(c=Math.max(f[a],d[a])),va({},a,c)},secondary:function(a){var c="right"===a?"left":"top",e=f[c];return f[a]>d[a]&&!b.escapeWithReference&&(e=Math.min(f[c],d[a]-("right"===a?f.width:f.height))),va({},c,e)}};return e.forEach(function(a){var b=-1!==["left","top"].indexOf(a)?"primary":"secondary";f=wa({},f,g[b](a))}),a.offsets.popper=f,a}function ha(a){var b=a.placement,c=b.split("-")[0],d=b.split("-")[1];if(d){var e=a.offsets,f=e.reference,g=e.popper,h=-1!==["bottom","top"].indexOf(c),i=h?"left":"top",j=h?"width":"height",k={start:va({},i,f[i]),end:va({},i,f[i]+f[j]-g[j])};a.offsets.popper=wa({},g,k[d])}return a}function ia(a){if(!Z(a.instance.modifiers,"hide","preventOverflow"))return a;var b=a.offsets.reference,c=G(a.instance.modifiers,function(a){return"preventOverflow"===a.name}).boundaries;if(b.bottom<c.top||b.left>c.right||b.top>c.bottom||b.right<c.left){if(!0===a.hide)return a;a.hide=!0,a.attributes["x-out-of-boundaries"]=""}else{if(!1===a.hide)return a;a.hide=!1,a.attributes["x-out-of-boundaries"]=!1}return a}function ja(a){var b=a.placement,c=b.split("-")[0],d=a.offsets,e=d.popper,f=d.reference,g=-1!==["left","right"].indexOf(c),h=-1===["top","left"].indexOf(c);return e[g?"left":"top"]=f[c]-(h?e[g?"width":"height"]:0),a.placement=E(b),a.offsets.popper=u(e),a}b=b&&b.hasOwnProperty("default")?b.default:b;for(var ka=function(a){function b(a){return{}.toString.call(a).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function c(){return{bindType:h.end,delegateType:h.end,handle:function(b){if(a(b.target).is(this))return b.handleObj.handler.apply(this,arguments)}}}function d(){return("undefined"==typeof window||!window.QUnit)&&{end:"transitionend"}}function e(b){var c=this,d=!1;return a(this).one(j.TRANSITION_END,function(){d=!0}),setTimeout(function(){d||j.triggerTransitionEnd(c)},b),this}function f(){h=d(),a.fn.emulateTransitionEnd=e,j.supportsTransitionEnd()&&(a.event.special[j.TRANSITION_END]=c())}function g(b){return b="function"==typeof a.escapeSelector?a.escapeSelector(b).substr(1):b.replace(/(:|\.|\[|\]|,|=|@)/g,"\\$1")}var h=!1,i=1e6,j={TRANSITION_END:"bsTransitionEnd",getUID:function(a){do{a+=~~(Math.random()*i)}while(document.getElementById(a));return a},getSelectorFromElement:function(b){var c=b.getAttribute("data-target");c&&"#"!==c||(c=b.getAttribute("href")||""),"#"===c.charAt(0)&&(c=g(c));try{return a(document).find(c).length>0?c:null}catch(d){return null}},reflow:function(a){return a.offsetHeight},triggerTransitionEnd:function(b){a(b).trigger(h.end)},supportsTransitionEnd:function(){return Boolean(h)},isElement:function(a){return(a[0]||a).nodeType},typeCheckConfig:function(a,c,d){for(var e in d)if(Object.prototype.hasOwnProperty.call(d,e)){var f=d[e],g=c[e],h=g&&j.isElement(g)?"element":b(g);if(!new RegExp(f).test(h))throw new Error(a.toUpperCase()+': Option "'+e+'" provided type "'+h+'" but expected type "'+f+'".')}}};return f(),j}(b),la="undefined"!=typeof window&&"undefined"!=typeof document,ma=["Edge","Trident","Firefox"],na=0,oa=0;oa<ma.length;oa+=1)if(la&&navigator.userAgent.indexOf(ma[oa])>=0){na=1;break}var pa=la&&window.Promise,qa=pa?f:g,ra=void 0,sa=function(){return void 0===ra&&(ra=-1!==navigator.appVersion.indexOf("MSIE 10")),ra},ta=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},ua=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),va=function(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a},wa=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a},xa=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ya=xa.slice(3),za={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},Aa={shift:{order:100,enabled:!0,fn:ha},offset:{order:200,enabled:!0,fn:fa,offset:0},preventOverflow:{order:300,enabled:!0,fn:ga,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:ca},arrow:{order:500,enabled:!0,fn:$,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:ba,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:ja},hide:{order:800,enabled:!0,fn:ia},computeStyle:{order:850,enabled:!0,fn:Y,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:W,onLoad:X,gpuAcceleration:void 0}},Ba={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Aa},Ca=function(){function a(b,c){var d=this,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ta(this,a),this.scheduleUpdate=function(){return requestAnimationFrame(d.update)},this.update=qa(this.update.bind(this)),this.options=wa({},a.Defaults,e),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=b&&b.jquery?b[0]:b,this.popper=c&&c.jquery?c[0]:c,this.options.modifiers={},Object.keys(wa({},a.Defaults.modifiers,e.modifiers)).forEach(function(b){d.options.modifiers[b]=wa({},a.Defaults.modifiers[b]||{},e.modifiers?e.modifiers[b]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(a){return wa({name:a},d.options.modifiers[a])}).sort(function(a,b){return a.order-b.order}),this.modifiers.forEach(function(a){a.enabled&&h(a.onLoad)&&a.onLoad(d.reference,d.popper,d.options,a,d.state)}),this.update();var f=this.options.eventsEnabled;f&&this.enableEventListeners(),this.state.eventsEnabled=f}return ua(a,[{key:"update",value:function(){return J.call(this)}},{key:"destroy",value:function(){return M.call(this)}},{key:"enableEventListeners",value:function(){return Q.call(this)}},{key:"disableEventListeners",value:function(){return S.call(this)}}]),a}();Ca.Utils=("undefined"!=typeof window?window:global).PopperUtils,Ca.placements=xa,Ca.Defaults=Ba;var Da=function(a){var b="tooltip",c="4.0.0",f="bs.tooltip",g="."+f,h=a.fn[b],i=150,j="bs-tooltip",k=new RegExp("(^|\\s)"+j+"\\S+","g"),l={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"},m={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},n={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},o={SHOW:"show",OUT:"out"},p={HIDE:"hide"+g,HIDDEN:"hidden"+g,SHOW:"show"+g,SHOWN:"shown"+g,INSERTED:"inserted"+g,CLICK:"click"+g,FOCUSIN:"focusin"+g,FOCUSOUT:"focusout"+g,MOUSEENTER:"mouseenter"+g,MOUSELEAVE:"mouseleave"+g},q={FADE:"fade",SHOW:"show"},r={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner",ARROW:".arrow"},s={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},t=function(){function h(a,b){if(void 0===Ca)throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=a,this.config=this._getConfig(b),this.tip=null,this._setListeners()}var t=h.prototype;return t.enable=function(){this._isEnabled=!0},t.disable=function(){this._isEnabled=!1},t.toggleEnabled=function(){this._isEnabled=!this._isEnabled},t.toggle=function(b){if(this._isEnabled)if(b){var c=this.constructor.DATA_KEY,d=a(b.currentTarget).data(c);d||(d=new this.constructor(b.currentTarget,this._getDelegateConfig()),a(b.currentTarget).data(c,d)),d._activeTrigger.click=!d._activeTrigger.click,d._isWithActiveTrigger()?d._enter(null,d):d._leave(null,d)}else{if(a(this.getTipElement()).hasClass(q.SHOW))return void this._leave(null,this);this._enter(null,this)}},t.dispose=function(){clearTimeout(this._timeout),a.removeData(this.element,this.constructor.DATA_KEY),a(this.element).off(this.constructor.EVENT_KEY),a(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&a(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,null!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},t.show=function(){var b=this;if("none"===a(this.element).css("display"))throw new Error("Please use show on visible elements");var c=a.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){a(this.element).trigger(c);var d=a.contains(this.element.ownerDocument.documentElement,this.element);if(c.isDefaultPrevented()||!d)return;var e=this.getTipElement(),f=ka.getUID(this.constructor.NAME);e.setAttribute("id",f),this.element.setAttribute("aria-describedby",f),this.setContent(),this.config.animation&&a(e).addClass(q.FADE);var g="function"==typeof this.config.placement?this.config.placement.call(this,e,this.element):this.config.placement,i=this._getAttachment(g);this.addAttachmentClass(i);var j=!1===this.config.container?document.body:a(this.config.container);a(e).data(this.constructor.DATA_KEY,this),a.contains(this.element.ownerDocument.documentElement,this.tip)||a(e).appendTo(j),a(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new Ca(this.element,e,{placement:i,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:r.ARROW},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(a){a.originalPlacement!==a.placement&&b._handlePopperPlacementChange(a)},onUpdate:function(a){b._handlePopperPlacementChange(a)}}),a(e).addClass(q.SHOW),"ontouchstart"in document.documentElement&&a("body").children().on("mouseover",null,a.noop);var k=function(){b.config.animation&&b._fixTransition();var c=b._hoverState;b._hoverState=null,a(b.element).trigger(b.constructor.Event.SHOWN),c===o.OUT&&b._leave(null,b)};ka.supportsTransitionEnd()&&a(this.tip).hasClass(q.FADE)?a(this.tip).one(ka.TRANSITION_END,k).emulateTransitionEnd(h._TRANSITION_DURATION):k()}},t.hide=function(b){var c=this,d=this.getTipElement(),e=a.Event(this.constructor.Event.HIDE),f=function(){c._hoverState!==o.SHOW&&d.parentNode&&d.parentNode.removeChild(d),c._cleanTipClass(),c.element.removeAttribute("aria-describedby"),a(c.element).trigger(c.constructor.Event.HIDDEN),null!==c._popper&&c._popper.destroy(),b&&b()};a(this.element).trigger(e),e.isDefaultPrevented()||(a(d).removeClass(q.SHOW),"ontouchstart"in document.documentElement&&a("body").children().off("mouseover",null,a.noop),this._activeTrigger[s.CLICK]=!1,this._activeTrigger[s.FOCUS]=!1,this._activeTrigger[s.HOVER]=!1,ka.supportsTransitionEnd()&&a(this.tip).hasClass(q.FADE)?a(d).one(ka.TRANSITION_END,f).emulateTransitionEnd(i):f(),this._hoverState="")},t.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},t.isWithContent=function(){return Boolean(this.getTitle())},t.addAttachmentClass=function(b){a(this.getTipElement()).addClass(j+"-"+b)},t.getTipElement=function(){return this.tip=this.tip||a(this.config.template)[0],this.tip},t.setContent=function(){var b=a(this.getTipElement());this.setElementContent(b.find(r.TOOLTIP_INNER),this.getTitle()),b.removeClass(q.FADE+" "+q.SHOW)},t.setElementContent=function(b,c){var d=this.config.html;"object"==typeof c&&(c.nodeType||c.jquery)?d?a(c).parent().is(b)||b.empty().append(c):b.text(a(c).text()):b[d?"html":"text"](c)},t.getTitle=function(){var a=this.element.getAttribute("data-original-title");return a||(a="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),a},t._getAttachment=function(a){return m[a.toUpperCase()]},t._setListeners=function(){var b=this;this.config.trigger.split(" ").forEach(function(c){if("click"===c)a(b.element).on(b.constructor.Event.CLICK,b.config.selector,function(a){return b.toggle(a)});else if(c!==s.MANUAL){var d=c===s.HOVER?b.constructor.Event.MOUSEENTER:b.constructor.Event.FOCUSIN,e=c===s.HOVER?b.constructor.Event.MOUSELEAVE:b.constructor.Event.FOCUSOUT;a(b.element).on(d,b.config.selector,function(a){return b._enter(a)}).on(e,b.config.selector,function(a){return b._leave(a)})}a(b.element).closest(".modal").on("hide.bs.modal",function(){return b.hide()})}),this.config.selector?this.config=e({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},t._fixTitle=function(){var a=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==a)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},t._enter=function(b,c){var d=this.constructor.DATA_KEY;return c=c||a(b.currentTarget).data(d),c||(c=new this.constructor(b.currentTarget,this._getDelegateConfig()),a(b.currentTarget).data(d,c)),b&&(c._activeTrigger["focusin"===b.type?s.FOCUS:s.HOVER]=!0),a(c.getTipElement()).hasClass(q.SHOW)||c._hoverState===o.SHOW?void(c._hoverState=o.SHOW):(clearTimeout(c._timeout),c._hoverState=o.SHOW,c.config.delay&&c.config.delay.show?void(c._timeout=setTimeout(function(){c._hoverState===o.SHOW&&c.show()},c.config.delay.show)):void c.show())},t._leave=function(b,c){var d=this.constructor.DATA_KEY;if(c=c||a(b.currentTarget).data(d),c||(c=new this.constructor(b.currentTarget,this._getDelegateConfig()),a(b.currentTarget).data(d,c)),b&&(c._activeTrigger["focusout"===b.type?s.FOCUS:s.HOVER]=!1),!c._isWithActiveTrigger()){if(clearTimeout(c._timeout),c._hoverState=o.OUT,!c.config.delay||!c.config.delay.hide)return void c.hide();c._timeout=setTimeout(function(){c._hoverState===o.OUT&&c.hide()},c.config.delay.hide)}},t._isWithActiveTrigger=function(){for(var a in this._activeTrigger)if(this._activeTrigger[a])return!0;return!1},t._getConfig=function(c){return c=e({},this.constructor.Default,a(this.element).data(),c),"number"==typeof c.delay&&(c.delay={show:c.delay,hide:c.delay}),"number"==typeof c.title&&(c.title=c.title.toString()),"number"==typeof c.content&&(c.content=c.content.toString()),ka.typeCheckConfig(b,c,this.constructor.DefaultType),c},t._getDelegateConfig=function(){var a={};if(this.config)for(var b in this.config)this.constructor.Default[b]!==this.config[b]&&(a[b]=this.config[b]);return a},t._cleanTipClass=function(){var b=a(this.getTipElement()),c=b.attr("class").match(k);null!==c&&c.length>0&&b.removeClass(c.join(""))},t._handlePopperPlacementChange=function(a){this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(a.placement))},t._fixTransition=function(){var b=this.getTipElement(),c=this.config.animation;null===b.getAttribute("x-placement")&&(a(b).removeClass(q.FADE),this.config.animation=!1,this.hide(),this.show(),this.config.animation=c)},h._jQueryInterface=function(b){return this.each(function(){var c=a(this).data(f),d="object"==typeof b&&b;if((c||!/dispose|hide/.test(b))&&(c||(c=new h(this,d),a(this).data(f,c)),"string"==typeof b)){if(void 0===c[b])throw new TypeError('No method named "'+b+'"');c[b]()}})},d(h,null,[{key:"VERSION",get:function(){return c}},{key:"Default",get:function(){return n}},{key:"NAME",get:function(){return b}},{key:"DATA_KEY",get:function(){return f}},{key:"Event",get:function(){return p}},{key:"EVENT_KEY",get:function(){return g}},{key:"DefaultType",get:function(){return l}}]),h}();return a.fn[b]=t._jQueryInterface,a.fn[b].Constructor=t,a.fn[b].noConflict=function(){return a.fn[b]=h,t._jQueryInterface},t}(b);!function(a){if(void 0===a)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var b=a.fn.jquery.split(" ")[0].split("."),c=9;if(b[0]<2&&b[1]<c||1===b[0]&&b[1]===c&&b[2]<1||b[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(b),a.Util=ka,a.Tooltip=Da,Object.defineProperty(a,"__esModule",{value:!0})});