1import{C as e,Et as t,F as n,G as r,I as i,K as a,L as o,Rt as s,St as c,Tt as l,V as u,W as d,Wt as f,Y as p,at as m,bt as h,c as g,gt as _,ht as v,q as y,st as b,tt as x,w as S,y as C,zt as w}from"./ADgAMhAY.js";import{r as T}from"./9UEQW3Ry.js";import"./tTSrAR-7.js";import{t as E}from"./CBlAkRQ_.js";import{t as D}from"./B3VH3IKy.js";var O=p(`<li class="svelte-1dx26b8"><a class="page svelte-1dx26b8"> </a></li>`),k=p(`<li class="svelte-1dx26b8"><h3 class="svelte-1dx26b8"> </h3> <ul class="svelte-1dx26b8"></ul></li>`),A=p(`<nav aria-label="Docs" class="svelte-1dx26b8"><ul class="sidebar svelte-1dx26b8"></ul></nav>`);function j(e,t){w(t,!0);let n;D(({from:e,to:t})=>{e?.route.id===`/docs/[...path]`&&e.params.path.split(`/`)[0]!==t.params.path.split(`/`)[0]&&n.scrollTo(0,0)});var a=A(),l=h(a);i(l,21,()=>t.contents??[],o,(e,t)=>{var n=k(),a=h(n),s=h(a,!0);f(a);var l=c(a,2);i(l,21,()=>m(t).children,o,(e,t)=>{let n=()=>m(t).metadata,i=()=>m(t).slug;var a=O(),o=h(a),s=h(o,!0);f(o),f(a),v(()=>{C(o,`aria-current`,`/${i()}`===T.url.pathname?`page`:void 0),C(o,`href`,`/${i()??``}`),r(s,n().title)}),y(e,a)}),f(l),f(n),v(()=>r(s,m(t).metadata.title)),y(e,n)}),f(l),f(a),g(a,e=>n=e,()=>n),y(e,a),s()}var M=p(`<span class="svelte-1snaxqk"></span>`),N=p(`<div role="tooltip"><div class="tooltip svelte-1snaxqk"><!></div></div>`);function P(r,i){w(i,!0);let a=t(!1),o,c=t(0),u=t(`calc(100vw - 2 * var(--sk-page-padding-side))`);_(()=>{(async()=>{let e=window.innerWidth;l(a,!0),await b();let t=(e-parseFloat(getComputedStyle(o.parentElement).width))/2,n=o.getBoundingClientRect();l(c,Math.min(e-t-n.right,-20),!0),l(u,n.width+`px`)})()});var d=N();let p,C;var T=h(d);E(h(T),{children:(e,t)=>{var r=M();n(r,()=>i.html,!0),f(r),y(e,r)},$$slots:{default:!0}}),f(T),g(T,e=>o=e,()=>o),f(d),v(()=>{p=S(d,1,`tooltip-container svelte-1snaxqk`,null,p,{visible:m(a)}),C=e(d,``,C,{width:m(u),left:`${i.x??``}px`,top:`${i.y??``}px`,"--offset":`${m(c)??``}px`})}),x(`mouseenter`,d,function(...e){i.onmouseenter?.apply(this,e)}),x(`mouseleave`,d,function(...e){i.onmouseleave?.apply(this,e)}),y(r,d),s()}var F=`highlight`;function I(){u(()=>{let e,t=null,n;function r(){e&&=(a(e),t?.classList.remove(F),t=null)}function i(i){if(i.buttons!==0)return;let a=i.target.closest(`.twoslash-hover`);if(!a||(clearTimeout(n),a===t))return;r();let o=a.querySelector(`.twoslash-popover`)?.innerHTML;if(o){let i=a.getBoundingClientRect(),s=(i.left+i.right)/2+window.scrollX,c=i.top+window.scrollY;e=d(P,{target:document.body,props:{html:o,x:s,y:c,onmouseenter:()=>{clearTimeout(n)},onmouseleave:()=>{clearTimeout(n),n=setTimeout(r,0)}}}),t=a,t.classList.add(F)}}function o(e){let t=e.target;for(;t;){if(t.classList.contains(`twoslash-hover`)){n=setTimeout(r,0);return}t=t.parentElement}}return window.addEventListener(`mouseover`,i),window.addEventListener(`mouseout`,o),()=>{window.removeEventListener(`mouseover`,i),window.removeEventListener(`mouseout`,o)}})}export{j as n,I as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.