(()=>{let t=document.querySelectorAll('[class*="pbg-animation-"]');const e=window.innerHeight||document.documentElement.clientHeight;window.addEventListener("DOMContentLoaded",()=>{if(t.length>0){const n=()=>{t.forEach(t=>{let n;const i="pbg-animation-",a=Array.from(t.classList).find(t=>t.includes(i));a&&(n=a.replace(i,""));const o=PBG_EntranceAnimation[n];if(!o)return;let s="Desktop";const{breakPoints:l}=PBG_EntranceAnimation;window.matchMedia(l.desktop).matches?s="Desktop":window.matchMedia(l.tablet).matches&&!window.matchMedia(l.mobile).matches?s="Tablet":window.matchMedia(l.mobile).matches&&(s="Mobile");const c=o?.animation;let d;if(d="none"===c?.[s]?"":c?.[s]&&""!==c?.[s]?c?.[s]||"":"Mobile"===s&&(c?.Tablet||c?.Desktop)||"Tablet"===s&&c?.Desktop||c?.Desktop||"",d){t.getBoundingClientRect().top<=e&&(t.classList.add(d),t.style.animationTimingFunction=o.curve,t.style.animationDuration=o.duration?`${o.duration}ms`:"",t.style.animationDelay=o.delay?`${o.delay}ms`:"")}})};window.addEventListener("scroll",n),n()}})})();