1import{p as d,s as C,d as O,b as W,a as Z,f as q,G as A,g as D,i as F,r as H}from"./i18n-BNqz_7Hf.js";import{ah as J,M as z,a7 as K,$ as c,Z as a,ac as U,Q as k,S as G,T as B,t as V,a as M,O as Q,aa as g,a2 as P,R as T,N as R,a3 as X}from"./index-DyDV80mF.js";import{S as Y}from"./index-C98PN5VF.js";import"./StreamingBar.svelte_svelte_type_style_lang-BBkG7dHC.js";import{B as $}from"./Index.svelte_svelte_type_style_lang-D8p4Tv1c.js";import"./ScrollFade.svelte_svelte_type_style_lang-TE7AlcUh.js";import"./snippet-BUxtOdPE.js";import"./Clear-rceICmIX.js";import"./html-BULpyJYr.js";import"./index-B_pwUImq.js";var ee=T('<div><button class="toggle-button svelte-1uruprb" aria-label="Toggle Sidebar"><div class="chevron svelte-1uruprb"><span class="chevron-left svelte-1uruprb"></span></div></button> <div class="sidebar-content svelte-1uruprb"><!></div></div>');function te(b,t){z(t,!0);let m=d(t,"open",15,!0),e=d(t,"position",11,"left"),v=d(t,"elem_classes",19,()=>[]),_=d(t,"elem_id",3,""),w=d(t,"onexpand",3,()=>{}),x=d(t,"oncollapse",3,()=>{}),n=g(!1),s=g(!1),r,f=g(0),y=P(()=>typeof t.width=="number"?`${t.width}px`:t.width),i=g(!1);function p(){if(!r.closest(".wrap"))return;const l=r.closest(".wrap")?.getBoundingClientRect();if(!l)return;const u=r.getBoundingClientRect(),h=e()==="left"?l.left:window.innerWidth-l.right;c(f,Math.max(0,u.width-h+30),!0)}K(()=>{r.closest(".wrap")?.classList.add("sidebar-parent"),p(),window.addEventListener("resize",p),document.documentElement.style.setProperty("--overlap-amount",`${a(f)}px`),c(n,!0);const u=window.matchMedia("(prefers-reduced-motion: reduce)");c(i,u.matches,!0);const h=N=>{c(i,N.matches,!0)};return u.addEventListener("change",h),()=>{window.removeEventListener("resize",p),u.removeEventListener("change",h)}}),U(()=>{a(n)&&c(s,m(),!0)});let j=P(()=>v()?.join(" ")||"");var o=ee();let E;var L=k(o);L.__click=()=>{c(s,!a(s)),m(a(s)),a(s)?w()?.():x()?.()};var S=G(L,2),I=k(S);C(I,t,"default",{}),B(S),B(o),O(o,l=>r=l,()=>r),V(()=>{E=W(o,1,`sidebar ${a(j)??""}`,"svelte-1uruprb",E,{open:a(s),right:e()==="right","reduce-motion":a(i)}),Z(o,"id",_()),q(o,`width: ${a(y)??""}; ${e()??""}: calc(${a(y)??""} * -1)`)}),M(b,o),Q()}J(["click"]);var se=T("<!> <!>",1);function me(b,t){z(t,!0);const m=H(t,["$$slots","$$events","$$legacy"]),e=new A(m);var v=se(),_=R(v);Y(_,D({get autoscroll(){return e.shared.autoscroll},get i18n(){return e.i18n}},()=>e.shared.loading_status));var w=G(_,2);{var x=n=>{te(n,{get width(){return e.props.width},onexpand:()=>e.dispatch("expand"),oncollapse:()=>e.dispatch("collapse"),get elem_classes(){return e.shared.elem_classes},get elem_id(){return e.shared.elem_id},get open(){return e.props.open},set open(s){e.props.open=s},get position(){return e.props.position},set position(s){e.props.position=s},children:(s,r)=>{$(s,{children:(f,y)=>{var i=X(),p=R(i);C(p,t,"default",{}),M(f,i)},$$slots:{default:!0}})},$$slots:{default:!0}})};F(w,n=>{e.shared.visible&&n(x)})}M(b,v),Q()}export{me as default};
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.