1import{a9 as p}from"./B30BqIw0.js";function u(){const i=p();i._batchMediaState||(i._batchMediaState={pendingIds:new Set,pendingResolvers:new Map,flushScheduled:!1,cache:new Map});const e=i._batchMediaState;async function o(){e.flushScheduled=!1;const s=[...e.pendingIds],t=new Map(e.pendingResolvers);if(e.pendingIds=new Set,e.pendingResolvers=new Map,!!s.length)try{const a=await $fetch("/api/cache/media",{query:{ids:s.join(",")}}),c=Array.isArray(a)?a:[];for(const n of c)e.cache.set(n.id,n);const f=new Map(c.map(n=>[n.id,n]));for(const[n,h]of t)h.forEach(d=>d(f.get(n)))}catch{for(const[,a]of t)a.forEach(c=>c(void 0))}}async function r(s){if(!(!s||typeof s!="string"))return e.cache.has(s)?e.cache.get(s):new Promise(t=>{e.pendingIds.add(s),e.pendingResolvers.has(s)||e.pendingResolvers.set(s,[]),e.pendingResolvers.get(s).push(t),e.flushScheduled||(e.flushScheduled=!0,Promise.resolve().then(o))})}return{getMedia:r}}export{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.