(()=>{"use strict";const e=window.wp.i18n,t=e=>Math.abs(parseInt(e,10)),a=(e,t,a)=>{const n=new CustomEvent(`wpcf7${t}`,{bubbles:!0,detail:a});"string"==typeof e&&(e=document.querySelector(e)),e.dispatchEvent(n)},n=(e,t)=>{const n=new Map([["init","init"],["validation_failed","invalid"],["acceptance_missing","unaccepted"],["spam","spam"],["aborted","aborted"],["mail_sent","sent"],["mail_failed","failed"],["submitting","submitting"],["resetting","resetting"],["validating","validating"],["payment_required","payment-required"]]);n.has(t)&&(t=n.get(t)),Array.from(n.values()).includes(t)||(t=`custom-${t=(t=t.replace(/[^0-9a-z]+/i," ").trim()).replace(/\s+/,"-")}`);const r=e.getAttribute("data-status");if(e.wpcf7.status=t,e.setAttribute("data-status",t),e.classList.add(t),r&&r!==t){e.classList.remove(r);const t={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,prevStatus:r};a(e,"statuschanged",t)}return t},r=e=>{const{root:t,namespace:a="contact-form-7/v1"}=wpcf7.api;return c.reduceRight(((e,t)=>a=>t(a,e)),(e=>{let n,r,{url:c,path:o,endpoint:s,headers:i,body:l,data:p,...d}=e;"string"==typeof s&&(n=a.replace(/^\/|\/$/g,""),r=s.replace(/^\//,""),o=r?n+"/"+r:n),"string"==typeof o&&(-1!==t.indexOf("?")&&(o=o.replace("?","&")),o=o.replace(/^\//,""),c=t+o),i={Accept:"application/json, */*;q=0.1",...i},delete i["X-WP-Nonce"],p&&(l=JSON.stringify(p),i["Content-Type"]="application/json");const f={code:"fetch_error",message:"You are probably offline."},u={code:"invalid_json",message:"The response is not a valid JSON response."};return window.fetch(c||o||window.location.href,{...d,headers:i,body:l}).then((e=>Promise.resolve(e).then((e=>{if(e.status>=200&&e.status<300)return e;throw e})).then((e=>{if(204===e.status)return null;if(e&&e.json)return e.json().catch((()=>{throw u}));throw u}))),(()=>{throw f}))}))(e)},c=[];function o(e,t={}){const{target:a,scope:r=e,...c}=t;if(void 0===e.wpcf7?.schema)return;const o={...e.wpcf7.schema};if(void 0!==a){if(!e.contains(a))return;if(!a.closest(".wpcf7-form-control-wrap[data-name]"))return;if(a.closest(".novalidate"))return}const p=r.querySelectorAll(".wpcf7-form-control-wrap"),d=Array.from(p).reduce(((e,t)=>(t.closest(".novalidate")||t.querySelectorAll(":where(input, textarea, select):enabled").forEach((t=>{if(t.name)switch(t.type){case"button":case"image":case"reset":case"submit":break;case"checkbox":case"radio":t.checked&&e.append(t.name,t.value);break;case"select-multiple":for(const a of t.selectedOptions)e.append(t.name,a.value);break;case"file":for(const a of t.files)e.append(t.name,a);break;default:e.append(t.name,t.value)}})),e)),new FormData),f=e.getAttribute("data-status");Promise.resolve(n(e,"validating")).then((n=>{if(void 0!==swv){const n=swv.validate(o,d,t);for(const t of p){if(void 0===t.dataset.name)continue;const c=t.dataset.name;if(n.has(c)){const{error:t,validInputs:a}=n.get(c);i(e,c),void 0!==t&&s(e,c,t,{scope:r}),l(e,c,null!=a?a:[])}if(t.contains(a))break}}})).finally((()=>{n(e,f)}))}r.use=e=>{c.unshift(e)};const s=(e,t,a,n)=>{const{scope:r=e,...c}=null!=n?n:{},o=`${e.wpcf7?.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,""),s=e.querySelector(`.wpcf7-form-control-wrap[data-name="${t}"] .wpcf7-form-control`);(()=>{const t=document.createElement("li");t.setAttribute("id",o),s&&s.id?t.insertAdjacentHTML("beforeend",`<a href="#${s.id}">${a}</a>`):t.insertAdjacentText("beforeend",a),e.wpcf7.parent.querySelector(".screen-reader-response ul").appendChild(t)})(),r.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((e=>{const t=document.createElement("span");t.classList.add("wpcf7-not-valid-tip"),t.setAttribute("aria-hidden","true"),t.insertAdjacentText("beforeend",a),e.appendChild(t),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","true")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.classList.add("wpcf7-not-valid"),e.setAttribute("aria-describedby",o),"function"==typeof e.setCustomValidity&&e.setCustomValidity(a),e.closest(".use-floating-validation-tip")&&(e.addEventListener("focus",(e=>{t.setAttribute("style","display: none")})),t.addEventListener("click",(e=>{t.setAttribute("style","display: none")})))}))}))},i=(e,t)=>{const a=`${e.wpcf7?.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,"");e.wpcf7.parent.querySelector(`.screen-reader-response ul li#${a}`)?.remove(),e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((e=>{e.querySelector(".wpcf7-not-valid-tip")?.remove(),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","false")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.removeAttribute("aria-describedby"),e.classList.remove("wpcf7-not-valid"),"function"==typeof e.setCustomValidity&&e.setCustomValidity("")}))}))},l=(e,t,a)=>{e.querySelectorAll(`[data-reflection-of="${t}"]`).forEach((e=>{if("output"===e.tagName.toLowerCase()){const t=e;0===a.length&&a.push(t.dataset.default),a.slice(0,1).forEach((e=>{e instanceof File&&(e=e.name),t.textContent=e}))}else e.querySelectorAll("output").forEach((e=>{e.hasAttribute("data-default")?0===a.length?e.removeAttribute("hidden"):e.setAttribute("hidden","hidden"):e.remove()})),a.forEach((a=>{a instanceof File&&(a=a.name);const n=document.createElement("output");n.setAttribute("name",t),n.textContent=a,e.appendChild(n)}))}))};function p(e,t={}){if(wpcf7.blocked)return d(e),void n(e,"submitting");const c=new FormData(e);t.submitter&&t.submitter.name&&c.append(t.submitter.name,t.submitter.value);const o={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(c,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:c};r({endpoint:`contact-forms/${e.wpcf7.id}/feedback`,method:"POST",body:c,wpcf7:{endpoint:"feedback",form:e,detail:o}}).then((t=>{const r=n(e,t.status);return o.status=t.status,o.apiResponse=t,["invalid","unaccepted","spam","aborted"].includes(r)?a(e,r,o):["sent","failed"].includes(r)&&a(e,`mail${r}`,o),a(e,"submit",o),t})).then((t=>{t.posted_data_hash&&(e.querySelector('input[name="_wpcf7_posted_data_hash"]').value=t.posted_data_hash),"mail_sent"===t.status&&(e.reset(),e.wpcf7.resetOnMailSent=!0),t.invalid_fields&&t.invalid_fields.forEach((t=>{s(e,t.field,t.message)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').insertAdjacentText("beforeend",t.message),e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=t.message}))})).catch((e=>console.error(e)))}r.use(((e,t)=>{if(e.wpcf7&&"feedback"===e.wpcf7.endpoint){const{form:t,detail:r}=e.wpcf7;d(t),a(t,"beforesubmit",r),n(t,"submitting")}return t(e)}));const d=e=>{e.querySelectorAll(".wpcf7-form-control-wrap").forEach((t=>{t.dataset.name&&i(e,t.dataset.name)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').innerText="",e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=""}))};function f(e){const t=new FormData(e),c={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(t,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:t};r({endpoint:`contact-forms/${e.wpcf7.id}/refill`,method:"GET",wpcf7:{endpoint:"refill",form:e,detail:c}}).then((t=>{e.wpcf7.resetOnMailSent?(delete e.wpcf7.resetOnMailSent,n(e,"mail_sent")):n(e,"init"),c.apiResponse=t,a(e,"reset",c)})).catch((e=>console.error(e)))}r.use(((e,t)=>{if(e.wpcf7&&"refill"===e.wpcf7.endpoint){const{form:t,detail:a}=e.wpcf7;d(t),n(t,"resetting")}return t(e)}));const u=(e,t)=>{for(const a in t){const n=t[a];e.querySelectorAll(`input[name="${a}"]`).forEach((e=>{e.value=""})),e.querySelectorAll(`img.wpcf7-captcha-${a.replaceAll(":","")}`).forEach((e=>{e.setAttribute("src",n)}));const r=/([0-9]+)\.(png|gif|jpeg)$/.exec(n);r&&e.querySelectorAll(`input[name="_wpcf7_captcha_challenge_${a}"]`).forEach((e=>{e.value=r[1]}))}},m=(e,t)=>{for(const a in t){const n=t[a][0],r=t[a][1];e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${a}"]`).forEach((e=>{e.querySelector(`input[name="${a}"]`).value="",e.querySelector(".wpcf7-quiz-label").textContent=n,e.querySelector(`input[name="_wpcf7_quiz_answer_${a}"]`).value=r}))}};function w(e){const a=new FormData(e);e.wpcf7={id:t(a.get("_wpcf7")),status:e.getAttribute("data-status"),pluginVersion:a.get("_wpcf7_version"),locale:a.get("_wpcf7_locale"),unitTag:a.get("_wpcf7_unit_tag"),containerPost:t(a.get("_wpcf7_container_post")),parent:e.closest(".wpcf7"),get schema(){return wpcf7.schemas.get(this.id)}},wpcf7.schemas.set(e.wpcf7.id,void 0),e.querySelectorAll(".has-spinner").forEach((e=>{e.insertAdjacentHTML("afterend",'<span class="wpcf7-spinner"></span>')})),(e=>{e.querySelectorAll(".wpcf7-exclusive-checkbox").forEach((t=>{t.addEventListener("change",(t=>{const a=t.target.getAttribute("name");e.querySelectorAll(`input[type="checkbox"][name="${a}"]`).forEach((e=>{e!==t.target&&(e.checked=!1)}))}))}))})(e),(e=>{e.querySelectorAll(".has-free-text").forEach((t=>{const a=t.querySelector("input.wpcf7-free-text"),n=t.querySelector('input[type="checkbox"], input[type="radio"]');a.disabled=!n.checked,e.addEventListener("change",(e=>{a.disabled=!n.checked,e.target===n&&n.checked&&a.focus()}))}))})(e),(e=>{e.querySelectorAll(".wpcf7-validates-as-url").forEach((e=>{e.addEventListener("change",(t=>{let a=e.value.trim();a&&!a.match(/^[a-z][a-z0-9.+-]*:/i)&&-1!==a.indexOf(".")&&(a=a.replace(/^\/+/,""),a="http://"+a),e.value=a}))}))})(e),(e=>{if(!e.querySelector(".wpcf7-acceptance")||e.classList.contains("wpcf7-acceptance-as-validation"))return;const t=()=>{let t=!0;e.querySelectorAll(".wpcf7-acceptance").forEach((e=>{if(!t||e.classList.contains("optional"))return;const a=e.querySelector('input[type="checkbox"]');(e.classList.contains("invert")&&a.checked||!e.classList.contains("invert")&&!a.checked)&&(t=!1)})),e.querySelectorAll(".wpcf7-submit").forEach((e=>{e.disabled=!t}))};t(),e.addEventListener("change",(e=>{t()})),e.addEventListener("wpcf7reset",(e=>{t()}))})(e),(e=>{const a=(e,a)=>{const n=t(e.getAttribute("data-starting-value")),r=t(e.getAttribute("data-maximum-value")),c=t(e.getAttribute("data-minimum-value")),o=e.classList.contains("down")?n-a.value.trim().length:a.value.trim().length;e.setAttribute("data-current-value",o),e.innerText=o,r&&r<a.value.length?e.classList.add("too-long"):e.classList.remove("too-long"),c&&a.value.length<c?e.classList.add("too-short"):e.classList.remove("too-short")},n=t=>{t={init:!1,...t},e.querySelectorAll(".wpcf7-character-count").forEach((n=>{const r=n.getAttribute("data-target-name"),c=e.querySelector(`[name="${r}"]`);c&&(c.value=c.defaultValue,a(n,c),t.init&&c.addEventListener("keyup",(e=>{a(n,c)})))}))};n({init:!0}),e.addEventListener("wpcf7reset",(e=>{n()}))})(e),window.addEventListener("load",(t=>{wpcf7.cached&&e.reset()})),e.addEventListener("reset",(t=>{wpcf7.reset(e)})),e.addEventListener("submit",(t=>{wpcf7.submit(e,{submitter:t.submitter}),t.preventDefault()})),e.addEventListener("wpcf7submit",(t=>{t.detail.apiResponse.captcha&&u(e,t.detail.apiResponse.captcha),t.detail.apiResponse.quiz&&m(e,t.detail.apiResponse.quiz)})),e.addEventListener("wpcf7reset",(t=>{t.detail.apiResponse.captcha&&u(e,t.detail.apiResponse.captcha),t.detail.apiResponse.quiz&&m(e,t.detail.apiResponse.quiz)})),e.addEventListener("change",(t=>{t.target.closest(".wpcf7-form-control")&&wpcf7.validate(e,{target:t.target})})),e.addEventListener("wpcf7statuschanged",(t=>{const a=t.detail.status;e.querySelectorAll(".active-on-any").forEach((e=>{e.removeAttribute("inert"),e.classList.remove("active-on-any")})),e.querySelectorAll(`.inert-on-${a}`).forEach((e=>{e.setAttribute("inert","inert"),e.classList.add("active-on-any")}))}))}document.addEventListener("DOMContentLoaded",(t=>{var a;if("undefined"!=typeof wpcf7)if(void 0!==wpcf7.api)if("function"==typeof window.fetch)if("function"==typeof window.FormData)if("function"==typeof NodeList.prototype.forEach)if("function"==typeof String.prototype.replaceAll){wpcf7={init:w,submit:p,reset:f,validate:o,schemas:new Map,...null!==(a=wpcf7)&&void 0!==a?a:{}},document.querySelectorAll("form .wpcf7[data-wpcf7-id]").forEach((t=>{const a=document.createElement("p");a.setAttribute("class","wpcf7-form-in-wrong-place");const n=document.createElement("strong");n.append((0,e.__)("Error:","contact-form-7"));const r=(0,e.__)("This contact form is placed in the wrong place.","contact-form-7");a.append(n," ",r),t.replaceWith(a)})),document.querySelectorAll(".wpcf7 > form").forEach((e=>{wpcf7.init(e),e.closest(".wpcf7").classList.replace("no-js","js")}));for(const e of wpcf7.schemas.keys())r({endpoint:`contact-forms/${e}/feedback/schema`,method:"GET"}).then((t=>{wpcf7.schemas.set(e,t)}))}else console.error("Your browser does not support String.replaceAll().");else console.error("Your browser does not support NodeList.forEach().");else console.error("Your browser does not support window.FormData().");else console.error("Your browser does not support window.fetch().");else console.error("wpcf7.api is not defined.");else console.error("wpcf7 is not defined.")}))})();
!function(){"use strict";var t=window.VAMTAM=window.VAMTAM||{};t.debounce=function(t,e=300,o=!1){var n;return function(){var a=this,i=arguments,r=o&&!n;clearTimeout(n),n=setTimeout(function(){n=null,o||t.apply(a,i)},e),r&&t.apply(a,i)}},t.offset=function(t){var e=t.getBoundingClientRect(),o=window.pageXOffset||document.documentElement.scrollLeft,n=window.pageYOffset||document.documentElement.scrollTop;return{top:e.top+n,left:e.left+o}},t.scroll_handlers=[],t.latestKnownScrollY=0;var e=!1;t.addScrollHandler=function(e){requestAnimationFrame(function(){e.init(),t.scroll_handlers.push(e),e.measure(t.latestKnownScrollY),e.mutate(t.latestKnownScrollY)})},t.onScroll=function(){t.latestKnownScrollY=window.pageYOffset,e||(e=!0,requestAnimationFrame(function(){var o;for(o=0;o<t.scroll_handlers.length;o++)t.scroll_handlers[o].measure(t.latestKnownScrollY);for(o=0;o<t.scroll_handlers.length;o++)t.scroll_handlers[o].mutate(t.latestKnownScrollY);e=!1}))},window.addEventListener("scroll",t.onScroll,{passive:!0}),t.load_script=function(t,e){var o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src=t,e&&(o.onload=e),document.getElementsByTagName("script")[0].before(o)},t.load_style=function(t,e,o,n){var a=document.createElement("link");a.rel="stylesheet",a.type="text/css",a.media=e,a.href=t,o&&(a.onload=o),n?n.after(a):document.getElementsByTagName("link")[0].before(a)},t.isBelowMaxDeviceWidth=function(){return!window.matchMedia("(min-width: "+VAMTAM_FRONT.max_breakpoint+"px)").matches},t.isMaxDeviceWidth=function(){return window.matchMedia("(min-width: "+VAMTAM_FRONT.max_breakpoint+"px)").matches},t.isMediumDeviceOrWider=function(){return window.matchMedia("(min-width: "+VAMTAM_FRONT.medium_breakpoint+"px)").matches},t.isSmallDeviceWidth=function(){return window.matchMedia("(max-width: "+(VAMTAM_FRONT.medium_breakpoint-1)+"px)").matches},t.isMobileBrowser=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2,t.getScrollbarWidth=()=>window.innerWidth-document.documentElement.clientWidth;let o=!1;t.waitForLoad=function(t){o?t():window.addEventListener("load",t)},window.addEventListener("load",function(){o=!0})}(),function(t,e,o){"use strict";var n,a,i=t("header.main-header").find(".header-contents"),r=document.getElementById("vamtam-fallback-main-menu-toggle"),c=document.querySelector("#main-menu > .mega-menu-wrap > .mega-menu-toggle"),s=function(){clearTimeout(n),n=setTimeout(d,200)},d=function(){window.removeEventListener("scroll",s,{passive:!0}),e.blockStickyHeaderAnimation=!1,a&&a()},m=function(t,o,n){requestAnimationFrame(function(){var o=t.offset().top;e.blockStickyHeaderAnimation=!0;var d;d=i.height()||0;var m=o-e.adminBarHeight-d;a=n,window.addEventListener("scroll",s,{passive:!0}),window.scroll({left:0,top:m,behavior:"smooth"}),t.attr("id")&&(history.pushState?history.pushState(null,null,"#"+t.attr("id")):window.location.hash=t.attr("id")),r&&r.classList.remove("mega-menu-open"),c&&c.classList.remove("mega-menu-open")})};if(t(document.body).on("click",".vamtam-animated-page-scroll[href], .vamtam-animated-page-scroll [href], .vamtam-animated-page-scroll [data-href]",function(e){var o=t(this).prop("href")||t(this).data("href"),n=t("#"+o.split("#")[1]),a=document.createElement("a");a.href=o,n.length&&a.pathname===window.location.pathname&&(r&&r.classList.remove("mega-menu-open"),c&&c.classList.remove("mega-menu-open"),m(n),e.preventDefault())}),""!==window.location.hash&&(t('.vamtam-animated-page-scroll[href*="'+window.location.hash+'"]').length||t('.vamtam-animated-page-scroll [href*="'+window.location.hash+'"]').length||t('.vamtam-animated-page-scroll [data-href*="'+window.location.hash+'"]').length)){var l=t(window.location.hash);l.length>0&&t(window).add("html, body, #page").scrollTop(0),setTimeout(function(){m(l)},400)}document.addEventListener("DOMContentLoaded",function(){if("elementorFrontend"in window&&!window.elementorFrontend.isEditMode()){let e,n,a=document.querySelectorAll(".vamtam-menu-click-on-hover a"),i=document.querySelector(".elementor-location-header"),r=!1,c=null;const s=function(){i.style.zIndex=o,i.style.position=o,r&&t(document.body).click(),c=null,r=!1};t(document.body).on("mouseenter",".dialog-widget-content",function(){clearTimeout(e)}),t(document.body).on("mouseleave",".dialog-widget-content",function(){e=setTimeout(s,500)}),t(document.body).on("mouseenter",".elementor-nav-menu > .menu-item-has-children, .vamtam-menu-click-on-hover",function(t){t.target!==c&&(clearTimeout(e),clearTimeout(n),s())}),a.forEach(function(o){o.addEventListener("mouseenter",function(a){a.preventDefault(),a.stopPropagation(),c===o||r?clearTimeout(e):(c=o,n=setTimeout(()=>{i.style.zIndex=9999,i.style.position="relative",r=!0,t(o).click()},200))}),o.addEventListener("mouseleave",function(){clearTimeout(n),r?e=setTimeout(s,500):(c=null,r=!1)}),o.innerHTML+='<span class="sub-arrow"><i class="fas fa-chevron-down"></i></span>'})}})}(jQuery,window.VAMTAM),function(t){"use strict";window.VAMTAM=window.VAMTAM||{},t(function(){var e,o;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")}),o=document.body,window.addEventListener("scroll",function(){clearTimeout(e),requestAnimationFrame(function(){o.classList.add("disable-hover"),e=setTimeout(function(){o.classList.remove("disable-hover")},300)})},{passive:!0}),document.addEventListener("click",function(t){t.target.closest(".vamtam-trigger-print")&&(window.print(),t.preventDefault())}),window.VAMTAM.resizeElements=function(){t("#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 e=this.offsetWidth;this.style.width="100%","0"===this.width&&"0"===this.height?this.style.height=9*e/16+"px":this.style.height=this.height*e/this.width+"px",t(this).trigger("vamtam-video-resized")}.bind(this))}.bind(this),50)}),setTimeout(function(){requestAnimationFrame(function(){t(".mejs-time-rail").css("width","-=1px")})},100)},window.addEventListener("resize",window.VAMTAM.debounce(window.VAMTAM.resizeElements,100),!1),window.VAMTAM.resizeElements(),t(document).on("ajaxSuccess",function(e,o,n){if(n.data&&"string"==typeof n.data){if("wishlist_remove"===n.data.split("&").map(t=>t.split("=")).reduce((t,e)=>(t[e[0]]=e[1],t),{}).action){const e=JSON.parse(o.responseText);1===e.status&&0===e.count&&(t(".vamtam-empty-wishlist-notice").show(),t("table.woosw-items").hide())}}})});var e=function(){var e=document.querySelectorAll(".vamtam-overlay-trigger"),o=[],n=window.VAMTAM.isBelowMaxDeviceWidth(),a=function(e){var n=e.currentTarget;if(t(n).hasClass("elementor-menu-toggle")){var i=t(n).closest(".elementor-row");i.length||(i=t(n).closest(".elementor-container")),i.hasClass("vamtam-overlay-trigger--overlay")&&(i.removeClass("vamtam-overlay-trigger--overlay"),n.removeEventListener("click",a),o.forEach(function(t){t.overlayTarget!==n&&t.closeTrigger!==n||(t.isActive=!1)}))}t(".vamtam-overlay-trigger--overlay .vamtam-overlay-element:visible").length<2&&(t("html, body").removeClass("vamtam-disable-scroll"),t("#scroll-to-top").removeClass("hidden"))},i=function(e){var n=e.currentTarget;if(t(n).hasClass("elementor-menu-toggle")){var i=t(n).closest(".elementor-row");if(i.length||(i=t(n).closest(".elementor-container")),i.hasClass("vamtam-menu-nav-overlay-inside")||(i.addClass("vamtam-menu-nav-overlay-inside"),t(i).find(".vamtam-overlay-element").css("top",t(i)[0].getBoundingClientRect().top+t(i).height()+"px")),i.hasClass("vamtam-overlay-trigger--overlay"))return;i.addClass("vamtam-overlay-trigger--overlay"),o.forEach(function(t){t.overlayTarget!==n&&t.closeTrigger!==n||(t.isActive=!0)})}t("html, body").addClass("vamtam-disable-scroll"),t("#scroll-to-top").addClass("hidden"),function(e){if(t(e).hasClass("elementor-menu-toggle"))e.removeEventListener("click",a),e.addEventListener("click",a)}(n)};if(e.forEach(function(e){if(t(e).hasClass("elementor-widget-nav-menu")){var n=t(e).find(".elementor-menu-toggle")[0];n.removeEventListener("click",i),n.addEventListener("click",i),o.push({overlayTarget:e,closeTrigger:n,isActive:!1});var a=t(e).closest(".elementor-row");return a.length||(a=t(e).closest(".elementor-container")),void t('<span class="vamtam-overlay-element"></span>').appendTo(a)}}),e.length){document.addEventListener("click",function(t){o.forEach(function(e){e.isActive&&(t.target===e.overlayTarget||e.overlayTarget.contains(t.target)||e.closeTrigger.click())})},!0),window.addEventListener("resize",window.VAMTAM.debounce(function(){var t=window.VAMTAM.isBelowMaxDeviceWidth();n!==t&&(o.forEach(function(t){t.isActive&&t.closeTrigger.click()}),n=t)},200),!1)}};document.addEventListener("DOMContentLoaded",function(){window.VAMTAM.load_script(VAMTAM_FRONT.jspath+"low-priority.js"),e(),jQuery("html").css("--vamtam-scrollbar-width",window.VAMTAM.getScrollbarWidth()+"px")},{passive:!0})}(jQuery),function(t,e){"use strict";window.Cookies=window.Cookies||{get:function(t){var e=("; "+document.cookie).split("; "+t+"=");if(2===e.length)return e.pop().split(";").shift()}},t(function(){var o=t(".fixed-header-box .cart-dropdown"),n=t(".vamtam-cart-dropdown-link"),a=t(".products",n),i=t(".elementor-widget-woocommerce-menu-cart"),r=i.length,c=r&&t(i).find(".vamtam-elementor-menu-cart__header .item-count"),s="wc_add_to_cart_params"in window&&window.wc_add_to_cart_params.is_cart;function d(){s&&document.querySelectorAll(".woocommerce-cart-form__contents").forEach(function(e){!t(e).hasClass("shop_table")&&!t(e).parent().hasClass("vamtam-cart-main")&&t(e).removeClass("woocommerce-cart-form__contents")})}function m(){const e=t("#elementor-menu-cart__toggle_button:visible");t.each(e,function(t,e){e.click()})}var l=function(e){const o=t(".elementor-widget-woocommerce-menu-cart.vamtam-has-theme-widget-styles .elementor-menu-cart__toggle_button");let n=!1;if(t.each(o,function(o,a){if(t(a).is(e.target)||t(a).has(e.target).length)return n=!0,!1}),n)return e.preventDefault(),s?(e.stopImmediatePropagation(),!1):window.VAMTAM.isMobileBrowser?(e.stopImmediatePropagation(),window.location=window.wc_add_to_cart_params.cart_url,!1):(t("body").addClass("vamtam-disable-scroll"),t("#scroll-to-top").addClass("hidden"),void t(e.target).closest(".elementor-top-section").css("z-index","1000"))},u=function(e,o){(t(e.target).is(".elementor-menu-cart__container, .vamtam-close-cart, .e-close-cart-custom-icon")||"no-target"===e&&o)&&(t("body").removeClass("vamtam-disable-scroll"),t("#scroll-to-top").removeClass("hidden"),t(e.target).closest("section.elementor-element").css("z-index",""))};function f(){document.querySelectorAll(".elementor-widget-woocommerce-menu-cart.vamtam-has-theme-widget-styles .elementor-menu-cart__toggle_wrapper").forEach(function(t){t.removeEventListener("click",l),t.addEventListener("click",l,!0)});document.querySelectorAll(".elementor-widget-woocommerce-menu-cart.vamtam-has-theme-widget-styles .elementor-menu-cart__container .elementor-menu-cart__close-button, .elementor-widget-woocommerce-menu-cart.vamtam-has-theme-widget-styles .elementor-menu-cart__container").forEach(function(t){t.removeEventListener("click",u),t.addEventListener("click",u)})}function w(e){const o=t("#scroll-to-top.vamtam-scroll-to-top"),n=t(".woocommerce-notices-wrapper .woocommerce-message");o.length&&(e?o.css("bottom","10px"):n.length?o.css("bottom",n.outerHeight()+10+"px"):o.css("bottom","95px"))}f();const h=r?"vamtam_elementor_menu_cart_fragments wc_fragments_loaded":"added_to_cart removed_from_cart wc_fragments_refreshed wc_fragments_loaded";function v(e){if(e){t(".woocommerce-notices-wrapper").empty().append(e);var o=t(".woocommerce-notices-wrapper").find(".vamtam-close-notice-btn");if(!o.length)return;o[0].addEventListener("click",function(){var e=t(this).closest(".woocommerce-message");e.fadeOut("fast"),w(!0),setTimeout(function(){e.remove()},2e3)}),setTimeout(function(){var t=o.closest(".woocommerce-message");t.fadeOut("fast"),setTimeout(function(){t.remove(),w(!0)},2e3)},1e4)}}if(t(document.body).on(h,function(){var e=parseInt(Cookies.get("woocommerce_items_in_cart")||0,10);if(e>0)if(r){i.removeClass("hidden");var n=i[0].querySelectorAll(".cart_item .quantity select, .cart_item .quantity .vamtam-quantity-input"),s=!1,m=i.find("#elementor-menu-cart__toggle_button .elementor-button-icon-qty");n.length||(n=i[0].querySelectorAll(".cart_item .product-quantity"),s=!0);var l=0;n.forEach(function(t){const e=s?t.textContent:t.value;l+=parseInt(e,10)}),c.text("("+l+")"),t.each(m,function(e,o){const n=parseInt(t(o).attr("data-counter"),10);l!==n&&t(o).attr("data-counter",l)})}else{var h=0,v=document.querySelector(".widget_shopping_cart"),p=v?v.querySelectorAll("li .quantity"):[];if(v){for(var g=0;g<p.length;g++)h+=parseInt(p[g].innerHTML.split("<span")[0].replace(/[^\d]/g,""),10);h=h>=0?h:"",a.text(h),a.removeClass("cart-empty"),o.removeClass("hidden")}}else if(r){var _=i.hasClass("elementor-menu-cart--empty-indicator-hide");i.toggleClass("hidden",_),c.text("(0)"),u("no-target",!0)}else{var y=o.hasClass("show-if-empty");a.addClass("cart-empty"),a.text("0"),o.toggleClass("hidden",!y)}document.body.classList.toggle("vamtam-wc-cart-empty",0===e),!!t("body").hasClass("single-product")&&t(".woocommerce-notices-wrapper .woocommerce-message").length&&w(),f(),d()}),function(){if(t("body").hasClass("single-product")&&!t(".sold-individually").length){const e=t(".stock.in-stock"),o=t('input[name="quantity"][max="1"][min="1"]');e.length&&o.length&&e.addClass("last-one")}}(),t(document).on("click",'.woocommerce-cart button[name="apply_coupon"]:not(".e-apply-coupon"):visible',function(e){e.preventDefault();t('input[type="submit"][name="apply_coupon"]').trigger("click")}),!document.body.classList.contains("vamtam-limited-layout")){t(document).on("click",".single_add_to_cart_button, .products.vamtam-wc.table-layout .add_to_cart_button:not(.product_type_variable)",function(e){var o=t(this),n=o.closest("form.cart"),a=o.val(),i=n.find("input[name=quantity]").val()||1,c=n.find("input[name=product_id]").val()||a,s=n.find("input[name=variation_id]").val()||0,d=s,l=n.find("input[name=add-to-cart].wc-booking-product-id").val(),u=n.hasClass("grouped_form"),f=n.parent(".elementor-product-external").length&&"get"===n.attr("method"),w=o.closest(".products.vamtam-wc.table-layout").length,h=n.find(".thwepo-extra-options").length,p={};if(!o.parents(".elementor-widget-woocommerce-product-add-to-cart.vamtam-has-disable-theme-ajax-atc").length)if(e.preventDefault(),f)window.open(n.attr("action"),"_blank");else{if(u){c=parseInt(n.find("input[name=add-to-cart]").val());var g=n.find('[id^="product-"]');t.each(g,function(e,o){var n,a=t(o).find(".add_to_cart_button"),i=t(o).attr("id").substr(8);n=a.length?parseInt(a.attr("data-quantity"))||0:parseInt(t(o).find("input.qty").val())||0,p[i]=n})}if(w){if("yes"!==window.VAMTAM_FRONT.enable_ajax_add_to_cart)return void n.submit();{const t=o.closest("tr.vamtam-product");t.length&&(i=t.find("input[name=quantity]").val()||1,c=o.attr("data-product_id")||a)}}if(window.wc_add_to_cart_params){var _={};if(l){const t=new FormData(n[0]);t.forEach(function(e,o){"add-to-cart"===o?_.product_id=e:_[o.replace("wc_bookings_field","")]=e,o.includes("[]")?_[o]=t.getAll(o):_[o]=e}),_.is_wc_booking=!0}else if(u){if(_={product_id:c,products:p,is_grouped:!0},h){new FormData(n[0]).forEach(function(t,e){"add-to-cart"!==e&&(_[e]=t)})}}else if(d){_={product_id:c,is_variable:!0};const t=new FormData(n[0]);t.forEach(function(e,o){"add-to-cart"===o?_.product_id=e:o.includes("[]")?_[o]=t.getAll(o):_[o]=e})}else{_={product_id:c};const t=new FormData(n[0]);t.forEach(function(e,o){"add-to-cart"===o?_.product_id||(_.product_id=e):o.includes("[]")?_[o]=t.getAll(o):_[o]=e})}return _.product_sku="",_.quantity=i,_.variation_id=s,_.action="woocommerce_ajax_add_to_cart",t(document.body).trigger("adding_to_cart",[o,_]),t.ajax({type:"post",url:window.wc_add_to_cart_params.ajax_url,data:_,beforeSend:function(){o.removeClass("added").addClass("loading")},complete:function(t){t.error?o.removeClass("loading"):o.addClass("added").removeClass("loading")},success:function(e){if(e.error)v(e.notice),t(document.body).trigger("wc_fragments_refreshed");else{if(e.redirect_to_cart)return void(window.location=window.wc_add_to_cart_params.cart_url);if(r)if(w){!window.VAMTAM.isMobileBrowser&&o.parents('.vamtam-has-adc-triggers-menu-cart[data-widget_type="woocommerce-products.products_table_layout"]').length&&setTimeout(()=>{m()},500)}else{!window.VAMTAM.isMobileBrowser&&setTimeout(()=>{m()},500)}else v(e.fragments.notice);t(document.body).trigger("added_to_cart",[e.fragments,e.cart_hash,o])}}}),!1}}}),t(document).on("click",".woocommerce-mini-cart .woocommerce-cart-form__cart-item .product-remove > a",function(){t(this).parents(".woocommerce-cart-form__cart-item").css({"pointer-events":"none",transition:"opacity .3s ease",opacity:"0.5"})}),window.wc_add_to_cart_params&&t(document).on("click",".mini_cart_item a.remove, .woocommerce-mini-cart .woocommerce-cart-form__cart-item .product-remove > a:not([class])",function(e){e.preventDefault();var o=t(this),n=t(this).attr("data-product_id"),a=t(this).attr("data-cart_item_key"),i=t(this).parents(".mini_cart_item, .woocommerce-cart-form__cart-item");t.ajax({type:"post",dataType:"json",url:window.wc_add_to_cart_params.ajax_url,data:{action:"product_remove",product_id:n,cart_item_key:a},beforeSend:function(){i.css("pointer-events","none").css("opacity","0.5"),t("body").css("cursor","wait")},complete:function(){t("body").css("cursor","default")},success:function(e){e&&e.fragments?t(document.body).trigger("removed_from_cart",[e.fragments,e.cart_hash,o]):window.location=o.attr("href")},error:function(){window.location=o.attr("href")}})});const o=".woocommerce-cart-form__cart-item .vamtam-quantity";t(document).on("change",`${o} select, ${o} input`,e.debounce(function(e){e.preventDefault();var o=t(".woocommerce-cart").length,n=t(this).val(),a=t(this).attr("data-product_id"),i=t(this).attr("data-cart_item_key"),r=t(this).parents(".mini_cart_item, .woocommerce-cart-form__cart-item");if(o){var c=t('input[type="submit"][name="update_cart"]');return c.prop("disabled",!1),void c.trigger("click")}window.wc_add_to_cart_params&&t.ajax({type:"post",dataType:"json",url:window.wc_add_to_cart_params.ajax_url,data:{action:"update_item_from_cart",product_id:a,cart_item_key:i,product_quantity:n},beforeSend:function(){r.css("pointer-events","none").css("opacity","0.5"),t("body").css("cursor","wait")},complete:function(){r.css("pointer-events","auto").css("opacity","1"),t("body").css("cursor","default")},success:function(e){e&&e.fragments&&t(document.body).trigger("wc_fragment_refresh")},error:function(){}})}))}window.addEventListener("load",function(){!function(){const e=t(document.body).hasClass("woocommerce-checkout"),o=e&&t("form.checkout"),n=e&&t(".woocommerce > .woocommerce-notices-wrapper").first();if(!e||!o.length||!n.length)return;t(document.body).on("checkout_error",function(){const t=o.find(".woocommerce-NoticeGroup.woocommerce-NoticeGroup-checkout");n.append(t)})}(),r&&(f(),d())}),r&&t(document).ajaxComplete((e,o,n)=>{const a=o.responseJSON,i=a&&a.fragments,r=n.data&&-1!==n.data.indexOf("action=elementor_menu_cart_fragments");i&&r&&t(document.body).trigger("vamtam_elementor_menu_cart_fragments")})}),document.addEventListener("DOMContentLoaded",function(){!function(){const t=new URLSearchParams({action:"vamtam_get_woosw_buttons"});let e={};document.querySelectorAll(".woosw-btn").forEach(o=>{let n=parseInt(o.dataset.id,10);t.append("id[]",n),e[n]=o}),0!==Object.keys(e).length&&fetch(VAMTAM_FRONT.ajaxurl,{method:"POST",body:t}).then(t=>t.json()).then(t=>{for(let o in t)e[o].outerHTML=t[o]})}()})}(jQuery,window.VAMTAM),function(t){"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 t=this;["stickyHeader"].forEach(function(e){t[e].apply(t)})},stickyHeader:function(){var e=t(".vamtam-sticky-header"),o=this;e.length&&(e.length>1&&(e=e[0]),function(){var n,a=t(e).hasClass("vamtam-sticky-header--transparent-header"),i=t(e).innerHeight(),r=function(){t(e).removeClass("vamtam-sticky-header--fixed-shown"),t(e).hasClass("vamtam-sticky-header--fixed-hidden")||t(e).addClass("vamtam-sticky-header--fixed-hidden"),n="fixedHiddenState"},c=function(){t(e).removeClass("vamtam-sticky-header--fixed-hidden"),t(e).hasClass("vamtam-sticky-header--fixed-shown")||t(e).addClass("vamtam-sticky-header--fixed-shown"),n="fixedShownState"},s=function(){t(e).removeClass("vamtam-sticky-header--fixed-shown"),t(e).removeClass("vamtam-sticky-header--fixed-hidden"),n="noAnimState"};(()=>{const o=t("body").css("padding-left"),n=t("body").css("padding-right"),a=t(e).parents('[data-elementor-type="header"]').first();a.length&&(parseInt(o)&&a.css("--vamtam-sticky-mleft",`-${o}`),parseInt(n)&&a.css("--vamtam-sticky-mright",`-${n}`))})();const d=(t=!1)=>{window.pageYOffset>=10?r():t||window.addEventListener("load",function(){n||setTimeout(()=>{d(!0)},10)})};d();var m,l=null,u=window.scrollY;window.addEventListener("scroll",function(d){null!==l&&clearTimeout(l),l=setTimeout(function(){u=window.scrollY},500);var f=window.VAMTAM.debounce(function(){if("#document"===d.target.nodeName){if(t(e).find("a:hover").length||t(".vamtam-header-mega-menu:visible").length)return void(a&&"fixedShownState"!==n&&c());var l=o.utils.getScrollDirection();m!==l&&(u=window.scrollY),m=l;const d=Math.abs(window.scrollY-u);if(window.scrollY>i&&d<20)return;if("up"===l)return void(window.pageYOffset>=10?"fixedShownState"!==n&&c():"noAnimState"!==n&&s());if("down"===l&&(window.pageYOffset>=10||a)){var f=!t(e).find(".elementor-menu-cart--shown").length;"fixedHiddenState"!==n&&f&&r()}}},25);window.VAMTAM.isMaxDeviceWidth()?requestAnimationFrame(f):"noAnimState"!==n&&s()},{passive:!0})}())},scrollBasedAnims:function(){var e=document.querySelectorAll(['[data-settings*="growFromLeftScroll"]','[data-settings*="growFromRightScroll"]'].join(", "));if(!e.length)return;var o,n={},a=this,i=function(t){t.forEach(function(t){var e=t.boundingClientRect.y,o=t.isIntersecting,i=t.target,r=Math.abs(parseFloat((100*t.intersectionRatio).toFixed(2))),c=n[i.dataset.vamtam_anim_id].lastScrollPercentage,s=n[i.dataset.vamtam_anim_id].lastScrollY,d=n[i.dataset.vamtam_anim_id].animateEl,m=function(){window.requestAnimationFrame(function(){d.style.setProperty("--vamtam-scroll-ratio",r+"%")})};o&&s!==e&&("down"===a.utils.getScrollDirection()?c<r&&m():m()),n[i.dataset.vamtam_anim_id].lastScrollY=e,n[i.dataset.vamtam_anim_id].lastScrollPercentage=r})};const r=function(){var t,e=[];for(t=1;t<=50;t++){var o=t/50;e.push(o)}return e.push(0),e}();e.forEach(function(e){var a;o||(o=new IntersectionObserver(i,{root:null,rootMargin:"20% 0% 20% 0%",threshold:r}));if(e.style.setProperty("--vamtam-scroll-ratio","1%"),e.classList.contains("elementor-widget")||e.classList.contains("elementor-column"))(a=e.parentElement).setAttribute("data-vamtam_anim_id",e.dataset.id);else{t(e).before('<div class="vamtam-scroll-anim-wrap" data-vamtam_anim_id="'+e.dataset.id+'"></div>');var c=t(e).prev(".vamtam-scroll-anim-wrap");t(c).append(e),a=c[0]}n[e.dataset.id]={lastScrollY:"",lastScrollPercentage:"",observeEl:a,animateEl:e},o.observe(a)})},utils:{getAdminBarHeight:function(){return window.VAMTAM.adminBarHeight},watchScrollDirection:function(){var t=function(){return this.lastScrollTop=0,this.utils=this,{init:function(){},measure:function(t){this.direction=t>this.lastScrollTop?"down":"up"}.bind(this),mutate:function(t){this.utils.getScrollDirection=function(){return this.direction},this.lastScrollTop=t<=0?0:t}.bind(this)}}.bind(this);window.VAMTAM.addScrollHandler(t())},isTouchDevice:function(){const t=" -webkit- -moz- -o- -ms- ".split(" ");return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)||function(t){return window.matchMedia(t).matches}(["(",t.join("touch-enabled),("),"heartz",")"].join(""))}}}},window.VAMTAM.CUSTOM_ANIMATIONS.init(),document.addEventListener("DOMContentLoaded",function(){window.VAMTAM.CUSTOM_ANIMATIONS.onDomReady()},!0)}(jQuery);