import{s as C,c as I,u as L,g as S,d as A,o as H,b as N}from"./scheduler.9bc65507.js";import{S as j,i as q,g as _,r as B,s as D,h as g,j as v,u as M,f as p,c as P,k as u,a as V,y as w,v as z,E as F,d as y,t as E,w as G}from"./index.707bf1b6.js";import{g as J}from"./globals.7f7f1b26.js";import{I as K}from"./Heading.342b1fa6.js";const{window:O}=J;function Q(o){let s,t,f,r,c,h,i,d,n;r=new K({props:{classNames:"text-smd"}});const m=o[4].default,a=I(m,o,o[3],null);return{c(){s=_("div"),t=_("a"),f=_("span"),B(r.$$.fragment),h=D(),a&&a.c(),this.h()},l(e){s=g(e,"DIV",{class:!0});var l=v(s);t=g(l,"A",{id:!0,class:!0,href:!0});var b=v(t);f=g(b,"SPAN",{});var k=v(f);M(r.$$.fragment,k),k.forEach(p),b.forEach(p),h=P(l),a&&a.l(l),l.forEach(p),this.h()},h(){u(t,"id",o[0]),u(t,"class","header-link block pr-0.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(t,"href",c=`#${o[0]}`),u(s,"class","relative group rounded-md")},m(e,l){V(e,s,l),w(s,t),w(t,f),z(r,f,null),w(s,h),a&&a.m(s,null),o[5](s),i=!0,d||(n=F(O,"hashchange",o[2]),d=!0)},p(e,[l]){(!i||l&1)&&u(t,"id",e[0]),(!i||l&1&&c!==(c=`#${e[0]}`))&&u(t,"href",c),a&&a.p&&(!i||l&8)&&L(a,m,e,e[3],i?A(m,e[3],l,null):S(e[3]),null)},i(e){i||(y(r.$$.fragment,e),y(a,e),i=!0)},o(e){E(r.$$.fragment,e),E(a,e),i=!1},d(e){e&&p(s),G(r),a&&a.d(e),o[5](null),d=!1,n()}}}const $="bg-yellow-50 dark:bg-[#494a3d]";function R(o,s,t){let{$$slots:f={},$$scope:r}=s,{anchor:c}=s,h;function i(){const{hash:n}=window.location,m=n.substring(1);h&&h.classList.remove(...$.split(" ")),m===c&&h.classList.add(...$.split(" "))}H(()=>{i()});function d(n){N[n?"unshift":"push"](()=>{h=n,t(1,h)})}return o.$$set=n=>{"anchor"in n&&t(0,c=n.anchor),"$$scope"in n&&t(3,r=n.$$scope)},[c,h,i,r,f,d]}class Y extends j{constructor(s){super(),q(this,s,R,Q,C,{anchor:0})}}export{Y as E};
