document.addEventListener("DOMContentLoaded",(()=>{const t=document.createElement("button");t.id="fb-scroll-to-top",t.setAttribute("aria-label","Scroll to top"),t.innerHTML='\n        <svg width="12" height="14" viewBox="0 0 12 14" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">\n        <path d="M1 6L6 1M6 1L11 6M6 1V13" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>\n        </svg>\n    ',document.body.appendChild(t),window.addEventListener("scroll",(()=>{window.scrollY>300?t.classList.add("visible"):t.classList.remove("visible")})),t.addEventListener("click",(()=>{window.scrollTo({top:0,behavior:"smooth"})}))}));