(()=>{"use strict";var e,t={284(){const e={get(e){try{return window.localStorage.getItem(e)}catch(e){return null}},set(e,t){try{window.localStorage.setItem(e,t)}catch(e){}}},t=(t,n=!1)=>{if(!(t instanceof HTMLElement&&t.classList.contains("calio-countdown")))return;if(!n&&"yes"===t.dataset.calioCountdownInit)return;n&&t.__calioCountdownTimer&&(window.clearInterval(t.__calioCountdownTimer),t.__calioCountdownTimer=null),t.dataset.calioCountdownInit="yes";const o=(t=>{if("evergreen"===(t.dataset.type||"due")){const n=Number(t.dataset.hours||24),o="1"===t.dataset.recurring,r="calio_evergreen_"+n+"_"+(t.closest(".elementor-element")?.dataset.id||"global"),a=Number(e.get(r)||0),i=Date.now(),c=a>i?a:i+36e5*n;return e.set(r,String(c)),{target:c,key:r,recurring:o,hours:n}}return{target:t.dataset.date?new Date(t.dataset.date).getTime():NaN,key:"",recurring:!1,hours:0}})(t);if(!o.target||Number.isNaN(o.target))return;const r=t.nextElementSibling?.classList.contains("calio-countdown-expired")?t.nextElementSibling:null;let a=!1;const i=()=>{const n=Date.now();let i=Math.max(o.target-n,0);0===i&&o.recurring&&o.key&&(o.target=n+36e5*o.hours,e.set(o.key,String(o.target)),i=o.target-n,a=!1);const c=Math.floor(i/1e3),s={days:Math.floor(c/86400),hours:Math.floor(c%86400/3600),minutes:Math.floor(c%3600/60),seconds:c%60};Object.keys(s).forEach(e=>{const n=t.querySelector('[data-unit="'+e+'"]');n&&(n.textContent=String(s[e]).padStart(2,"0"))}),0===i&&(a||(a=!0,"redirect"===t.dataset.expire&&t.dataset.redirect?window.location.href=t.dataset.redirect:"hide"!==t.dataset.expire?r&&(t.style.display="none",r.style.display="grid"):t.style.display="none"))};i();const c=window.setInterval(i,1e3);t.__calioCountdownTimer=c},n=(e=document,n={})=>{const o=Boolean(n.force),r=e instanceof HTMLElement||e instanceof Document?e:document;r instanceof HTMLElement&&r.matches(".calio-countdown")?t(r,o):r.querySelectorAll(".calio-countdown").forEach(e=>t(e,o))},o=(e=!1)=>{n(document,{force:e})};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{o()}):o();let r=!1;const a=()=>!!r||!!window.elementorFrontend?.hooks&&(window.elementorFrontend.hooks.addAction("frontend/element_ready/calio-countdown.default",e=>{const t=e?.[0]||document;n(t,{force:!0})}),r=!0,!0);if(window.addEventListener("elementor/frontend/init",a),!a()){let e=0;const t=window.setInterval(()=>{e+=1,(a()||e>=40)&&window.clearInterval(t)},250)}window.MutationObserver&&new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.forEach(e=>{e instanceof HTMLElement&&n(e,{force:!0})})})}).observe(document.documentElement,{childList:!0,subtree:!0})}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,o),a.exports}o.m=t,e=[],o.O=(t,n,r,a)=>{if(!n){var i=1/0;for(l=0;l<e.length;l++){for(var[n,r,a]=e[l],c=!0,s=0;s<n.length;s++)(!1&a||i>=a)&&Object.keys(o.O).every(e=>o.O[e](n[s]))?n.splice(s--,1):(c=!1,a<i&&(i=a));if(c){e.splice(l--,1);var d=r();void 0!==d&&(t=d)}}return t}a=a||0;for(var l=e.length;l>0&&e[l-1][2]>a;l--)e[l]=e[l-1];e[l]=[n,r,a]},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={211:0,5179:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var r,a,[i,c,s]=n,d=0;if(i.some(t=>0!==e[t])){for(r in c)o.o(c,r)&&(o.m[r]=c[r]);if(s)var l=s(o)}for(t&&t(n);d<i.length;d++)a=i[d],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return o.O(l)},n=globalThis.webpackChunkcalio_addon=globalThis.webpackChunkcalio_addon||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var r=o.O(void 0,[5179],()=>o(284));r=o.O(r)})();