1import{u as s}from"./hUsAidxd.js";function c(t){const e=/^https?:\/\/(?:www\.)?github\.com\/([^/#?]+)\/([^/#?]+)/i.exec(t??"");return e?`${e[1]}/${e[2].replace(/\.git$/,"")}`.toLowerCase():null}function l(t){return t>=1e3?`${(t/1e3).toFixed(1).replace(/\.0$/,"")}k`:String(t)}function f(){const t=s("repo-stars",()=>({})),e=s("repo-stars-loaded",()=>!1);async function o(){if(!e.value){e.value=!0;try{const a=await $fetch("/livedata/stars.json");t.value=Object.fromEntries(a.map(({name:r,stars:u})=>[r.toLowerCase(),u]))}catch{}}}function n(a){const r=c(a);return r?t.value[r]:void 0}return{stars:t,starsFor:n,load:o}}export{l as f,f as u};
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.