1import{a as d}from"./movie-card-runtime-BsWugIRi.js";import"./react-vendor-P5XnYvWb.js";import"./vite-runtime-mxn4OsD4.js";import"./native-environment-ChodKNAD.js";function v(){let e=!1,t,r;const i=()=>{if(e||t||document.visibilityState==="hidden"||typeof crypto.randomUUID!="function")return;const a=crypto.randomUUID(),n=async c=>{if(!e){t=new AbortController;try{if((await d("/v1/sites/traffic/visits",{method:"POST",auth:"none",cache:"no-store",body:{request_id:a},signal:t.signal,timeoutMs:4e3})).status>=500)throw new Error("Statistics unavailable")}catch{!e&&c===0&&(r=setTimeout(()=>{n(1)},6e4))}finally{t=void 0}}};n(0)};i();const s=setInterval(i,15*6e4),o=()=>{e=!0,t==null||t.abort(),clearInterval(s),r&&clearTimeout(r),window.removeEventListener("pagehide",o)};return window.addEventListener("pagehide",o,{once:!0}),o}export{v as startSiteTraffic};
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.