import{j as a}from"./llFuKhWI.js";function c(t){if("scrollBehavior"in window.document.documentElement.style)window.scrollTo(t);else{const o=t.left?t.left:0,l=t.top?t.top:0;window.scrollTo(o,l)}}function n(t,e={}){var r;const o=a("navbarHeight",()=>0);e={navbarOffset:!0,...e};const l=((e==null?void 0:e.offset)??0)+(e.navbarOffset?o.value:0),f=((r=document.querySelector(t))==null?void 0:r.getBoundingClientRect().top)+window.scrollY;c({top:f-l,behavior:"smooth"})}function u(t,e={}){const o=a("navbarHeight",()=>0);e={navbarOffset:!0,...e};const l=((e==null?void 0:e.offset)??0)+(e.navbarOffset?o.value:0);c({top:t-l,behavior:"smooth"})}export{u as a,n as s};