import{a2 as n,a3 as u,J as c,a4 as i}from"./index-20f16f2f.js";function h(){const e=n(),o=u();c(()=>e.hash,async()=>{if(!e.hash)return;await i();const a=e.hash.slice(1),t=document.getElementById(a);if(!t)return;const r=t.style.backgroundColor;t.style.backgroundColor="yellow",setTimeout(()=>{t.scrollIntoView({behavior:"smooth",block:"center"}),document.body.addEventListener("click",s=>{t.style.backgroundColor=r,s.target.tagName.toLowerCase()!=="a"&&o.replace({path:e.path,query:e.query})},{once:!0})},100)},{immediate:!0})}export{h as u};
