1import{j as m}from"./jsx-runtime-u17CrQMm.js";import{a as o}from"./lucide-icons-BdfAlm2w.js";const a=3e3,d="https://www.google.com/favicon.ico",u=o.createContext(void 0);function h(){const e=o.useContext(u);if(e===void 0)throw new Error("useNetwork must be used within a NetworkProvider");return e}function k(){return new Promise(e=>{if(typeof window>"u"){e(!1);return}const t=new Image,r=setTimeout(()=>{t.src="",e(!0)},a);t.onload=()=>{clearTimeout(r),e(!1)},t.onerror=()=>{clearTimeout(r),e(!0)},t.src=`${d}?t=${Date.now()}`})}function p({children:e}){const[t,r]=o.useState(!1),[w,c]=o.useState(!0),i=async()=>{c(!0);let s=!0;for(let n=1;n<=3&&(s=await k(),console.log(`[checkNetworkAccess][attempt ${n}/3][needsProxy]:`,s),!!s);n++)n<3&&await new Promise(f=>setTimeout(f,a));r(s),c(!1)};return o.useEffect(()=>{i()},[]),m.jsx(u.Provider,{value:{needsProxy:t,checking:w,recheck:i},children:e})}export{p as N,h 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.