window.stylitThemeInit||(window.stylitThemeInit=!0,window.StylitBaseElement=class extends HTMLElement{constructor(){super(),(this.$container=this).activeClassName="stylit-active"}isTrue(t){return!0===t||"true"===t}throttle(i,s){let a=0;return function(...t){var e=(new Date).getTime();if(!(e-a{e.classList.contains(t)||e.classList.add(t)}):e.classList.contains(t)||e.classList.add(t)},removeClass(t,e){t&&t.classList.remove(e)},hasClass(t,e){return!(!t||!t.classList.length)&&t.classList.contains(e)},imageOnLoad(t,e){if(!(-1{this.addClass(o,"stylit-image-loaded")},a)}catch(t){console.error(t)}else{this.addClass(t,i);try{var r=t.parentNode.parentNode,d=r.querySelector(".stylit-image-loading__cover");d&&r.removeChild(d),setTimeout(function(){t.classList.add("stylit-image-loaded")},a)}catch(t){console.log("err",t)}}}},isMobile(){return window.innerWidth<1e3},getSectionConfig(t){var e={threshold:.7,thresholdMobile:.3},t=t.querySelector("[data-stylit-section]");return t?{...e,threshold:t.dataset.stylitAnimateThreshold||e.threshold,thresholdMobile:t.dataset.stylitAnimateThresholdMobile||e.thresholdMobile}:e},initAnimate:function(){var i="stylit-finished",s=this.isMobile();"IntersectionObserver"in window&&document.querySelectorAll(".stylit__component").forEach(t=>{var e;t.classList.contains("stylit-section-no-animate")||(e=this.getSectionConfig(t),new IntersectionObserver((t,e)=>{t.forEach(t=>{t.isIntersecting&&(t.target.querySelectorAll(`[stylit-animated]:not(.${i})`).forEach(t=>{var e;t.classList.contains(i)||("stylit-no-animate"===t.getAttribute("stylit-animated")?t.removeAttribute("stylit-animated"):(e=t.attributes["stylit-animated"].value,t.classList.add(e||"stylit-animate_fade_in")))}),e.unobserve(t.target))})},{rootMargin:"0px",threshold:s?e.thresholdMobile:e.threshold}).observe(t))})},loadSources(){document.querySelectorAll("template[stylit-source]").forEach(t=>{t=t.innerHTML.trim();JSON.parse(t).forEach(t=>{this.loadSource(t)})})},loadSource({type:t,src:e,async:i=!0,childLib:s}){var a;window.stylitTheme.loadedSource[e]||(window.stylitTheme.loadedSource[e]=e,"script"===t?((a=document.createElement("script")).src=e,a.async=i,a.onload=function(){s&&window.stylitTheme.loadSource(s)},document.body.appendChild(a)):"stylesheet"===t&&((i=document.createElement("link")).rel="stylesheet",i.href=e,document.head.appendChild(i)))}},window.addEventListener("DOMContentLoaded",function(){stylitTheme.initAnimate(),stylitTheme.loadSources()}),document.addEventListener("shopify:section:load",()=>{stylitTheme.initAnimate(),stylitTheme.loadSources()}),window.addEventListener("resize",()=>{stylitTheme.loadSources(),stylitTheme.initAnimate()}),stylitTheme.loadSources(),stylitTheme.initAnimate());