import{ab as $,r as b,aB as P,a3 as D,j as V,B as j,z,L as G,ah as M,k as q,az as E,d as W,D as A,o as h,G as k,c as F,w as S,v as w,t as I,at as U,e as g,n as O,O as T,f as l,ae as C,V as H,W as Y,_ as y}from"./llFuKhWI.js";import{u as R}from"./BYxIZdj_.js";import{s as J,a as K}from"./BIPg2yNz.js";const Q={ids:[],ignoreBottomIntersections:[],offsetElementSelector:$.sectionNav},L=b(""),X=(v={})=>{const n={...Q,...v},_=R(),{y:u}=P(),d=[...n.ids].reverse(),r=b(),i=b(""),m=D(n.ids.reduce((e,t)=>({...e,[t]:null}),{})),a=V("navbarHeight",()=>0),f=()=>{let e=0;if(n.offsetElementSelector){const t=document.querySelector(n.offsetElementSelector);e=(t==null?void 0:t.offsetHeight)??0}return _.isDesktopOrGreater.value?a.value+e:a.value},p=e=>{e.forEach(o=>{m[o.target.id]=o});const t=Object.values(m).reduce((o,s)=>{var N,B;return s===null||n.ignoreBottomIntersections.includes(s.target.id)&&(((N=s.rootBounds)==null?void 0:N.top)??0)