document.addEventListener("DOMContentLoaded",()=>{const e=document.getElementById("header"),o=e?e.offsetHeight:0,t=document.querySelectorAll(".home-slider__item"),l=document.querySelectorAll(".home-slider-bullets__item"),s=document.getElementById("home-slider"),c=document.getElementById("home-slider-bullets");let d=0;const n=e=>{t.forEach((e,o)=>{const t=e.querySelector("video");t&&t.pause(),e.classList.remove("active")});const o=t[e],s=o.querySelector("video");s&&s.play(),o.classList.add("active"),l.forEach((o,t)=>{o.classList.toggle("active",t===e)}),d=e};l.forEach((e,o)=>{e.addEventListener("click",()=>{n(o);const e=t[o].offsetTop;window.scrollTo({top:e,behavior:"smooth"})})}),window.addEventListener("scroll",()=>{let e=!1;const l=s.offsetTop-(2*o+175),i=l+s.offsetHeight;window.scrollY>=l&&window.scrollY{const s=t.offsetTop-o,c=s+t.offsetHeight;window.scrollY>=s&&window.scrollY{const o=e.querySelector("video");o&&o.pause()})}),n(0)});