1import{a as i,i as re,_ as oe,n as Z}from"./CQQO3TBR.js";import ce from"./C4SNe_-K.js";import{r as ie,U as q,R as ue,az as K,l as s,i as r,aj as t,o as p,ae as c,j as x,k as o,M as $,F as v,a6 as w,p as C,aC as R,b as F,J as de,a5 as d,Y as a,h as z,ap as fe,L as Q}from"./BuvPVRVk.js";import{u as pe,f as ve}from"./CNwXPuUd.js";import{u as he}from"./BON_HPWM.js";import{E as S}from"./Bbu3D_Gn.js";import{_ as me}from"./DlAUqK2U.js";import"./CbclB9TA.js";import"./CH1qIGf0.js";const _e="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20xmlns:dc='http://purl.org/dc/elements/1.1/'%20xmlns:cc='http://creativecommons.org/ns%23'%20xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23'%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='40%2040%20122.4325%20122.34125'%20height='80'%20width='80'%20xml:space='preserve'%20version='1.1'%20id='svg2'%3e%3cmetadata%20id='metadata8'%3e%3crdf:RDF%3e%3ccc:Work%20rdf:about=''%3e%3cdc:format%3eimage/svg+xml%3c/dc:format%3e%3cdc:type%20rdf:resource='http://purl.org/dc/dcmitype/StillImage'%20/%3e%3c/cc:Work%3e%3c/rdf:RDF%3e%3c/metadata%3e%3cdefs%20id='defs6'%3e%3cclipPath%20id='clipPath16'%20clipPathUnits='userSpaceOnUse'%3e%3cpath%20id='path18'%20d='m%200,161.873%20161.946,0%20L%20161.946,0%200,0%200,161.873%20Z'%20/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20transform='matrix(1.25,0,0,-1.25,0,202.34125)'%20id='g10'%3e%3cg%20id='g12'%3e%3cg%20clip-path='url(%23clipPath16)'%20id='g14'%3e%3cg%20transform='translate(52.4477,88.1268)'%20id='g20'%3e%3cpath%20id='path22'%20style='fill:%23000000;fill-opacity:1;fill-rule:nonzero;stroke:none'%20d='m%200,0%20c%200,7.6%206.179,13.779%2013.77,13.779%207.6,0%2013.779,-6.179%2013.779,-13.779%200,-2.769%20-2.238,-5.007%20-4.998,-5.007%20-2.761,0%20-4.999,2.238%2
10-4.999,5.007%200,2.078%20-1.695,3.765%20-3.782,3.765%20C%2011.693,3.765%209.997,2.078%209.997,0%209.997,-2.769%207.76,-5.007%204.999,-5.007%202.238,-5.007%200,-2.769%200,0%20m%2057.05,-23.153%20c%200,-2.771%20-2.237,-5.007%20-4.998,-5.007%20l%20-46.378,0%20c%20-2.761,0%20-4.999,2.236%20-4.999,5.007%200,2.769%202.238,5.007%204.999,5.007%20l%2046.378,0%20c%202.761,0%204.998,-2.238%204.998,-5.007%20M%2035.379,-2.805%20c%20-1.545,2.291%20-0.941,5.398%201.35,6.943%20l%2011.594,7.83%20c%202.273,1.58%205.398,0.941%206.943,-1.332%201.545,-2.29%200.941,-5.398%20-1.35,-6.943%20l%20-11.594,-7.83%20c%20-0.852,-0.586%20-1.829,-0.87%20-2.788,-0.87%20-1.607,0%20-3.187,0.781%20-4.155,2.202%20m%2031.748,-30.786%20c%200,-0.945%20-0.376,-1.852%20-1.045,-2.522%20l%20-8.617,-8.617%20c%20-0.669,-0.668%20-1.576,-1.045%20-2.523,-1.045%20l%20-52.833,0%20c%20-0.947,0%20-1.854,0.377%20-2.523,1.045%20l%20-8.617,8.617%20c%20-0.669,0.67%20-1.045,1.577%20-1.045,2.522%20l%200,52.799%20c%200,0.947%200.376,1.854%201.045,2.522%20l%208.617,8.619%20c%200.669,0.668%201.576,1.044%202.523,1.044%20l%2052.833,0%20c%200.947,0%201.854,-0.376%202.523,-1.044%20l%208.617,-8.619%20c%200.669,-0.668%201.045,-1.575%201.045,-2.522%20l%200,-52.799%20z%20m%207.334,61.086%20-11.25,11.25%20c%20-1.705,1.705%20-4.018,2.663%20-6.428,2.663%20l%20-56.523,0%20c%20-2.412,0%20-4.725,-0.959%20-6.43,-2.665%20L%20-17.412,27.494%20c%20-1.704,-1.705%20-2.661,-4.016%20-2.661,-6.427%20l%200,-56.515%20c%200,-2.411%200.958,-4.725%202.663,-6.428%20l%2011.25,-11.25%20c%201.705,-1.705%204.017,-2.662%206.428,-2.662%20l%2056.515,0%20c%202.41,0%204.723,0.957%206.428,2.662%20l%2011.25,11.25%20c%201.705,1.703%202.663,4.017%202.663,6.428%20l%200,56.514%20c%200,2.412%20-0.958,4.724%20-2.663,6.429'%20/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",ge=["href","target","rel"],be=["href","onClick"],ke=["href","target","rel","onClick"],ye={key:1,class:"nav-stars"},xe={key:1,class:"nav-stars"},we=["aria-expanded"],Ce={key:0,class:"navpanel"},Se={key:"root",class:"navpanel__view"},Be=["href","onClick"],Ee={key:0,class:"navpanel__rule"},Pe=["onClick"],Te=["href","target","rel","onClick"],Ne={key:1,class:"nav-stars"},Le={key:"sub",class:"navpanel__view"},$e=["href","target","rel"],ze={class:"navpanel__childlabel"},De={key:0,class:"navpanel__childdesc"},He=32,Me=ie({__name:"NavTop",props:{title:{},titleHref:{},links:{}},setup(m){const _=m,D=z(()=>i({href:_.titleHref})),X=he(),{track:O}=fe(),{stars:ee,load:te}=pe();(_.links??[]).some(n=>n.stars)&&q(te);function g(n){const l=n.stars?ee.value[n.stars.toLowerCase()]:void 0;return l===void 0?"":ve(l)}const B=z(()=>(_.links??[]).filter(n=>Z(n)==="left")),E=z(()=>(_.links??[]).filter(n=>Z(n)==="right")),f=d(!1),b=d(null),H=d(!0),U=d(null);function P(){f.value=!f.value,f.value||(b.value=null)}function ae(n){H.value=!0,b.value=n,Q(()=>U.value?.focus())}function ne(){H.value=!1,b.value=null}function V(n,l){if(O("Nav click",{section:n.label}),!re(n.href))return;const u=n.href.split("#")[1];if(!u)return;l.preventDefault();const y=document.getElementById(u);if(!y){location.href=`/#${u}`;return}history.replaceState(null,"",`${location.pathname}#${u}`);const e=window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;y.scrollIntoView({behavior:e?"auto":"smooth",block:"start"})}function W(n,l){P(),V(n,l)}function A(){const n=window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;window.scrollTo({top:0,behavior:n?"auto":"smooth"})}function se(n){location.pathname==="/"&&(n.preventDefault(),A())}function le(n){const l=_.titleHref;l&&l!==location.pathname||(n.preventDefault(),A())}const k=d(null),T=d(null),j=d(null),G=d(null),J=z(()=>k.value===null?"hidden lg:flex":k.value?"flex":"hidden");function N(){const n=T.value,l=j.value,u=G.value;!n||!l||!u||(k.value=u.scrollWidth<=n.clientWidth-l.offsetWidth-He)}let M;const L=d(null);let I;function Y(){const n=L.value?.offsetHeight;n&&document.documentElement.style.setProperty("--nav-h",`${n}px`)}return q(()=>{N(),M=new ResizeObserver(N),T.value&&M.observe(T.value),document.fonts?.ready.then(N).catch(()=>{}),Y(),I=new ResizeObserver(Y),L.value&&I.observe(L.value)}),ue(()=>{M?.disconnect(),I?.disconnect()}),K(()=>_.links,()=>Q(N),{deep:!0}),K(k,n=>{n&&(f.value=!1)}),(n,l)=>{const u=oe,y=ce;return a(),s("nav",de({ref_key:"root",ref:L},t(X),{class:"on-dark bg-black/60 backdrop-blur-md text-white sticky top-0 p-2 px-4 z-20 border-b-2 border-b-robot-900/10"}),[r("div",{ref_key:"bar",ref:T,class:"flex items-center gap-4"},[r("div",{ref_key:"brand",ref:j,class:"shrink-0 flex items-center gap-2"},[r("a",{class:"unstyled no-underline flex items-center",href:"/","aria-label":"Home",onClick:se},[...l[0]||(l[0]=[r("img",{src:_e,class:"invert rf-logo",width:24,height:24,alt:""},null,-1)])]),r("a",{class:"unstyled no-underline font-ocr text-xl",href:m.titleHref||"#",target:t(D)?"_blank":void 0,rel:t(D)?"noopener noreferrer":void 0,onClick:le},[p(c(m.title)+" ",1),t(D)?(a(),x(t(S),{key:0,class:"nav-extlink","aria-hidden":"true"})):o("",!0)],8,ge)],512),t(B).length?(a(),s("div",{key:0,class:$(["links nav-group nav-group--left",t(J)])},[(a(!0),s(v,null,w(t(B),e=>(a(),s("a",{key:e.label,href:e.href,class:"unstyled nav-link",onClick:h=>V(e,h)},[r("span",null,c(e.label),1)],8,be))),128))],2)):o("",!0),t(E).length?(a(),s("div",{key:1,class:$(["links nav-group nav-group--right ml-auto",t(J)])},[(a(!0),s(v,null,w(t(E),e=>(a(),s(v,{key:e.label},[e.items?.length?(a(),x(u,{key:0,label:e.label,items:e.items},null,8,["label","items"])):(a(),s("a",{key:1,href:e.href,class:"unstyled nav-link",target:t(i)(e)?"_blank":void 0,rel:t(i)(e)?"noopener noreferrer":void 0,onClick:h=>t(O)("Nav click",{section:e.label})},[r("span",null,c(e.label),1),t(i)(e)?(a(),x(t(S),{key:0,class:"nav-extlink","aria-hidden":"true"})):o("",!0),g(e)?(a(),s("span",ye,[C(y,{class:"nav-staricon"}),p(c(g(e)),1)])):o("",!0)],8,ke))],64))),128))],2)):o("",!0),m.links?.length?(a(),s("div",{key:2,ref_key:"ghost",ref:G,"aria-hidden":"true",class:"links nav-ghost"},[(a(!0),s(v,null,w(m.links,e=>(a(),s("span",{key:e.label,class:"nav-link"},[r("span",null,c(e.label),1),t(i)(e)?(a(),x(t(S),{key:0,class:"nav-extlink","aria-hidden":"true"})):o("",!0),g(e)?(a(),s("span",xe,[C(y,{class:"nav-staricon"}),p(c(g(e)),1)])):o("",!0)]))),128))],512)):o("",!0),m.links?.length?(a(),s("button",{key:3,class:$(["ml-auto",t(k)===null?"lg:hidden":t(k)?"hidden":"block"]),"aria-expanded":t(f),"aria-label":"Toggle navigation",onClick:P},[r("span",{class:$(["hamburger",t(f)&&"is-open"]),"aria-hidden":"true"},[...l[1]||(l[1]=[r("span",null,null,-1),r("span",null,null,-1),r("span",null,null,-1),r("span",null,null,-1)])],2)],10,we)):o("",!0)],512),C(F,{name:"navdrop"},{default:R(()=>[t(f)?(a(),s("div",Ce,[C(F,{name:t(H)?"navslide-fwd":"navslide-back",mode:"out-in"},{default:R(()=>[t(b)?(a(),s("div",Le,[r("button",{ref_key:"backButton",ref:U,type:"button",class:"navpanel__back",onClick:ne},[l[3]||(l[3]=r("span",{class:"navpanel__chev","aria-hidden":"true"},"â¹",-1)),p(" "+c(t(b).label),1)],512),(a(!0),s(v,null,w(t(b).items,e=>(a(),s("a",{key:e.href,href:e.href,class:"navpanel__child",target:t(i)(e)?"_blank":void 0,rel:t(i)(e)?"noopener noreferrer":void 0,onClick:P},[r("span",ze,[p(c(e.label)+" ",1),t(i)(e)?(a(),x(t(S),{key:0,class:"nav-extlink","aria-hidden":"true"})):o("",!0)]),e.description?(a(),s("span",De,c(e.description),1)):o("",!0)],8,$e))),128))])):(a(),s("div",Se,[(a(!0),s(v,null,w(t(B),e=>(a(),s("a",{key:e.label,href:e.href,class:"navpanel__item",onClick:h=>W(e,h)},c(e.label),9,Be))),128)),t(B).length&&t(E).length?(a(),s("hr",Ee)):o("",!0),(a(!0),s(v,null,w(t(E),e=>(a(),s(v,{key:e.label}
1,[e.items?.length?(a(),s("button",{key:0,type:"button",class:"navpanel__item navpanel__item--drill","aria-expanded":!1,onClick:h=>ae(e)},[p(c(e.label)+" ",1),l[2]||(l[2]=r("span",{class:"navpanel__chev","aria-hidden":"true"},"âº",-1))],8,Pe)):(a(),s("a",{key:1,href:e.href,class:"navpanel__item",target:t(i)(e)?"_blank":void 0,rel:t(i)(e)?"noopener noreferrer":void 0,onClick:h=>W(e,h)},[p(c(e.label)+" ",1),t(i)(e)?(a(),x(t(S),{key:0,class:"nav-extlink","aria-hidden":"true"})):o("",!0),g(e)?(a(),s("span",Ne,[C(y,{class:"nav-staricon"}),p(c(g(e)),1)])):o("",!0)],8,Te))],64))),128))]))]),_:1},8,["name"])])):o("",!0)]),_:1}),C(F,{name:"navfade"},{default:R(()=>[t(f)?(a(),s("div",{key:0,class:"navpanel__scrim",onClick:P})):o("",!0)]),_:1})],16)}}}),Ge=me(Me,[["__scopeId","data-v-af14c086"]]);export{Ge 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.