!function(){"use strict";var e=window.VAMTAM=window.VAMTAM||{};e.debounce=function(e,t=300,n=!1){var i;return function(){var a=this,o=arguments,r=n&&!i;clearTimeout(i),i=setTimeout(function(){i=null,n||e.apply(a,o)},t),r&&e.apply(a,o)}},e.offset=function(e){var t=e.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,i=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+i,left:t.left+n}},e.scroll_handlers=[],e.latestKnownScrollY=0;var t=!1;e.addScrollHandler=function(t){requestAnimationFrame(function(){t.init(),e.scroll_handlers.push(t),t.measure(e.latestKnownScrollY),t.mutate(e.latestKnownScrollY)})},e.onScroll=function(){e.latestKnownScrollY=window.pageYOffset,t||(t=!0,requestAnimationFrame(function(){var n;for(n=0;n<e.scroll_handlers.length;n++)e.scroll_handlers[n].measure(e.latestKnownScrollY);for(n=0;n<e.scroll_handlers.length;n++)e.scroll_handlers[n].mutate(e.latestKnownScrollY);t=!1}))},window.addEventListener("scroll",e.onScroll,{passive:!0}),e.load_script=function(e,t){var n=document.createElement("script");n.type="text/javascript",n.async=!0,n.src=e,t&&(n.onload=t),document.getElementsByTagName("script")[0].before(n)},e.load_style=function(e,t,n,i){var a=document.createElement("link");a.rel="stylesheet",a.type="text/css",a.media=t,a.href=e,n&&(a.onload=n),i?i.after(a):document.getElementsByTagName("link")[0].before(a)},e.isBelowMaxDeviceWidth=function(){return!window.matchMedia("(min-width: "+VAMTAM_FRONT.max_breakpoint+"px)").matches},e.isMaxDeviceWidth=function(){return window.matchMedia("(min-width: "+VAMTAM_FRONT.max_breakpoint+"px)").matches},e.isMediumDeviceOrWider=function(){return window.matchMedia("(min-width: "+VAMTAM_FRONT.medium_breakpoint+"px)").matches},e.isMobileBrowser=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2,e.getScrollbarWidth=()=>window.innerWidth-document.documentElement.clientWidth;let n=!1;e.waitForLoad=function(e){n?e():window.addEventListener("load",e)},window.addEventListener("load",function(){n=!0})}(),function(e,t){"use strict";var n,i,a=e("header.main-header").find(".header-contents"),o=document.getElementById("vamtam-fallback-main-menu-toggle"),r=document.querySelector("#main-menu > .mega-menu-wrap > .mega-menu-toggle"),s=function(){clearTimeout(n),n=setTimeout(l,200)},l=function(){window.removeEventListener("scroll",s,{passive:!0}),t.blockStickyHeaderAnimation=!1,i&&i()},c=function(e,n,l){requestAnimationFrame(function(){var n=e.offset().top;t.blockStickyHeaderAnimation=!0;var c;c=a.height()||0;var d=n-t.adminBarHeight-c;i=l,window.addEventListener("scroll",s,{passive:!0}),window.scroll({left:0,top:d,behavior:"smooth"}),e.attr("id")&&(history.pushState?history.pushState(null,null,"#"+e.attr("id")):window.location.hash=e.attr("id")),o&&o.classList.remove("mega-menu-open"),r&&r.classList.remove("mega-menu-open")})};if(e(document.body).on("click",".vamtam-animated-page-scroll[href], .vamtam-animated-page-scroll [href], .vamtam-animated-page-scroll [data-href]",function(t){var n=e(this).prop("href")||e(this).data("href"),i=e("#"+n.split("#")[1]),a=document.createElement("a");a.href=n,i.length&&a.pathname===window.location.pathname&&(o&&o.classList.remove("mega-menu-open"),r&&r.classList.remove("mega-menu-open"),c(i),t.preventDefault())}),""!==window.location.hash&&(e('.vamtam-animated-page-scroll[href*="'+window.location.hash+'"]').length||e('.vamtam-animated-page-scroll [href*="'+window.location.hash+'"]').length||e('.vamtam-animated-page-scroll [data-href*="'+window.location.hash+'"]').length)){var d=e(window.location.hash);d.length>0&&e(window).add("html, body, #page").scrollTop(0),setTimeout(function(){c(d)},400)}}(jQuery,window.VAMTAM),function(e){"use strict";window.VAMTAM=window.VAMTAM||{},e(function(){var t,n;window.VAMTAM.adminBarHeight=document.body.classList.contains("admin-bar")?32:0,/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&requestAnimationFrame(function(){document.documentElement.classList.add("ios-safari")}),navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")&&requestAnimationFrame(function(){document.documentElement.classList.add("safari")}),n=document.body,window.addEventListener("scroll",function(){clearTimeout(t),requestAnimationFrame(function(){n.classList.add("disable-hover"),t=setTimeout(function(){n.classList.remove("disable-hover")},300)})},{passive:!0}),document.addEventListener("click",function(e){e.target.closest(".vamtam-trigger-print")&&(window.print(),e.preventDefault())}),window.VAMTAM.resizeElements=function(){e("#page .media-inner,\t\t\t\t.wp-block-embed-vimeo:not(.wp-has-aspect-ratio),\t\t\t\t:not(.wp-block-embed__wrapper) > .vamtam-video-frame").find("iframe, object, embed, video").each(function(){setTimeout(function(){requestAnimationFrame(function(){var t=this.offsetWidth;this.style.width="100%","0"===this.width&&"0"===this.height?this.style.height=9*t/16+"px":this.style.height=this.height*t/this.width+"px",e(this).trigger("vamtam-video-resized")}.bind(this))}.bind(this),50)}),setTimeout(function(){requestAnimationFrame(function(){e(".mejs-time-rail").css("width","-=1px")})},100)},window.addEventListener("resize",window.VAMTAM.debounce(window.VAMTAM.resizeElements,100),!1),window.VAMTAM.resizeElements(),e(document).on("ajaxSuccess",function(t,n,i){if(i.data&&"string"==typeof i.data){if("wishlist_remove"===i.data.split("&").map(e=>e.split("=")).reduce((e,t)=>(e[t[0]]=t[1],e),{}).action){const t=JSON.parse(n.responseText);1===t.status&&0===t.count&&(e(".vamtam-empty-wishlist-notice").show(),e("table.woosw-items").hide())}}})});var t=function(){var t=document.querySelectorAll(".vamtam-overlay-trigger"),n=[],i=window.VAMTAM.isBelowMaxDeviceWidth(),a=function(t){var i=t.currentTarget;if(e(i).hasClass("elementor-menu-toggle")){var o=e(i).closest(".elementor-row");o.length||(o=e(i).closest(".elementor-container")),o.hasClass("vamtam-overlay-trigger--overlay")&&(o.removeClass("vamtam-overlay-trigger--overlay"),i.removeEventListener("click",a),n.forEach(function(e){e.overlayTarget!==i&&e.closeTrigger!==i||(e.isActive=!1)}))}e(".vamtam-overlay-trigger--overlay .vamtam-overlay-element:visible").length<2&&(e("html, body").removeClass("vamtam-disable-scroll"),e("#scroll-to-top").removeClass("hidden"))},o=function(t){var i=t.currentTarget;if(e(i).hasClass("elementor-menu-toggle")){var o=e(i).closest(".elementor-row");if(o.length||(o=e(i).closest(".elementor-container")),o.hasClass("vamtam-menu-nav-overlay-inside")||(o.addClass("vamtam-menu-nav-overlay-inside"),e(o).find(".vamtam-overlay-element").css("top",e(o)[0].getBoundingClientRect().top+e(o).height()+"px")),o.hasClass("vamtam-overlay-trigger--overlay"))return;o.addClass("vamtam-overlay-trigger--overlay"),n.forEach(function(e){e.overlayTarget!==i&&e.closeTrigger!==i||(e.isActive=!0)})}e("html, body").addClass("vamtam-disable-scroll"),e("#scroll-to-top").addClass("hidden"),function(t){if(e(t).hasClass("elementor-menu-toggle"))t.removeEventListener("click",a),t.addEventListener("click",a)}(i)};if(t.forEach(function(t){if(e(t).hasClass("elementor-widget-nav-menu")){var i=e(t).find(".elementor-menu-toggle")[0];i.removeEventListener("click",o),i.addEventListener("click",o),n.push({overlayTarget:t,closeTrigger:i,isActive:!1});var a=e(t).closest(".elementor-row");return a.length||(a=e(t).closest(".elementor-container")),void e('<span class="vamtam-overlay-element"></span>').appendTo(a)}}),t.length){document.addEventListener("click",function(e){n.forEach(function(t){t.isActive&&(e.target===t.overlayTarget||t.overlayTarget.contains(e.target)||t.closeTrigger.click())})},!0),window.addEventListener("resize",window.VAMTAM.debounce(function(){var e=window.VAMTAM.isBelowMaxDeviceWidth();i!==e&&(n.forEach(function(e){e.isActive&&e.closeTrigger.click()}),i=e)},200),!1)}};document.addEventListener("DOMContentLoaded",function(){window.VAMTAM.load_script(VAMTAM_FRONT.jspath+"low-priority.js"),t(),jQuery("html").css("--vamtam-scrollbar-width",window.VAMTAM.getScrollbarWidth()+"px")},{passive:!0})}(jQuery),function(e){"use strict";window.VAMTAM=window.VAMTAM||{},window.VAMTAM.CUSTOM_ANIMATIONS={},window.VAMTAM.CUSTOM_ANIMATIONS={init:function(){},onDomReady:function(){this.VamtamCustomAnimations.init(),this.VamtamCustomAnimations.scrollBasedAnims()},VamtamCustomAnimations:{init:function(){this.registerAnimations(),this.utils.watchScrollDirection()},registerAnimations:function(){var e=this;["stickyHeader"].forEach(function(t){e[t].apply(e)})},stickyHeader:function(){var t=e(".vamtam-sticky-header"),n=this;t.length&&(t.length>1&&(t=t[0]),function(){var i,a=e(t).hasClass("vamtam-sticky-header--transparent-header"),o=e(t).innerHeight(),r=function(){e(t).removeClass("vamtam-sticky-header--fixed-shown"),e(t).hasClass("vamtam-sticky-header--fixed-hidden")||e(t).addClass("vamtam-sticky-header--fixed-hidden"),i="fixedHiddenState"},s=function(){e(t).removeClass("vamtam-sticky-header--fixed-hidden"),e(t).hasClass("vamtam-sticky-header--fixed-shown")||e(t).addClass("vamtam-sticky-header--fixed-shown"),i="fixedShownState"},l=function(){e(t).removeClass("vamtam-sticky-header--fixed-shown"),e(t).removeClass("vamtam-sticky-header--fixed-hidden"),i="noAnimState"};(()=>{const n=e("body").css("padding-left"),i=e("body").css("padding-right"),a=e(t).parents('[data-elementor-type="header"]').first();a.length&&(parseInt(n)&&a.css("--vamtam-sticky-mleft",`-${n}`),parseInt(i)&&a.css("--vamtam-sticky-mright",`-${i}`))})();const c=(e=!1)=>{window.pageYOffset>=10?r():e||window.addEventListener("load",function(){i||setTimeout(()=>{c(!0)},10)})};c();var d,m=null,u=window.scrollY;window.addEventListener("scroll",function(c){null!==m&&clearTimeout(m),m=setTimeout(function(){u=window.scrollY},500);var h=window.VAMTAM.debounce(function(){if("#document"===c.target.nodeName){if(e(t).find("a:hover").length||e(".vamtam-header-mega-menu:visible").length)return void(a&&"fixedShownState"!==i&&s());var m=n.utils.getScrollDirection();d!==m&&(u=window.scrollY),d=m;const c=Math.abs(window.scrollY-u);if(window.scrollY>o&&c<20)return;if("up"===m)return void(window.pageYOffset>=10?"fixedShownState"!==i&&s():"noAnimState"!==i&&l());if("down"===m&&(window.pageYOffset>=10||a)){var h=!e(t).find(".elementor-menu-cart--shown").length;"fixedHiddenState"!==i&&h&&r()}}},25);window.VAMTAM.isMaxDeviceWidth()?requestAnimationFrame(h):"noAnimState"!==i&&l()},{passive:!0})}())},scrollBasedAnims:function(){var t=document.querySelectorAll(['[data-settings*="growFromLeftScroll"]','[data-settings*="growFromRightScroll"]'].join(", "));if(!t.length)return;var n,i={},a=this,o=function(e){e.forEach(function(e){var t=e.boundingClientRect.y,n=e.isIntersecting,o=e.target,r=Math.abs(parseFloat((100*e.intersectionRatio).toFixed(2))),s=i[o.dataset.vamtam_anim_id].lastScrollPercentage,l=i[o.dataset.vamtam_anim_id].lastScrollY,c=i[o.dataset.vamtam_anim_id].animateEl,d=function(){window.requestAnimationFrame(function(){c.style.setProperty("--vamtam-scroll-ratio",r+"%")})};n&&l!==t&&("down"===a.utils.getScrollDirection()?s<r&&d():d()),i[o.dataset.vamtam_anim_id].lastScrollY=t,i[o.dataset.vamtam_anim_id].lastScrollPercentage=r})};const r=function(){var e,t=[];for(e=1;e<=50;e++){var n=e/50;t.push(n)}return t.push(0),t}();t.forEach(function(t){var a;n||(n=new IntersectionObserver(o,{root:null,rootMargin:"20% 0% 20% 0%",threshold:r}));if(t.style.setProperty("--vamtam-scroll-ratio","1%"),t.classList.contains("elementor-widget")||t.classList.contains("elementor-column"))(a=t.parentElement).setAttribute("data-vamtam_anim_id",t.dataset.id);else{e(t).before('<div class="vamtam-scroll-anim-wrap" data-vamtam_anim_id="'+t.dataset.id+'"></div>');var s=e(t).prev(".vamtam-scroll-anim-wrap");e(s).append(t),a=s[0]}i[t.dataset.id]={lastScrollY:"",lastScrollPercentage:"",observeEl:a,animateEl:t},n.observe(a)})},utils:{getAdminBarHeight:function(){return window.VAMTAM.adminBarHeight},watchScrollDirection:function(){var e=function(){return this.lastScrollTop=0,this.utils=this,{init:function(){},measure:function(e){this.direction=e>this.lastScrollTop?"down":"up"}.bind(this),mutate:function(e){this.utils.getScrollDirection=function(){return this.direction},this.lastScrollTop=e<=0?0:e}.bind(this)}}.bind(this);window.VAMTAM.addScrollHandler(e())},isTouchDevice:function(){const e=" -webkit- -moz- -o- -ms- ".split(" ");return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)||function(e){return window.matchMedia(e).matches}(["(",e.join("touch-enabled),("),"heartz",")"].join(""))}}}},window.VAMTAM.CUSTOM_ANIMATIONS.init(),document.addEventListener("DOMContentLoaded",function(){window.VAMTAM.CUSTOM_ANIMATIONS.onDomReady()},!0)}(jQuery);