1(function(){"use strict";self.onmessage=async s=>{var m,l,I;const{id:o,blob:n,mimeType:e}=s.data,_=s.data.maxDim??2560,d=s.data.quality??.85,E=s.data.minSize??15e5,a=()=>self.postMessage({id:o,blob:null});if(!e.startsWith("image/")||e==="image/gif"||e==="image/svg+xml")return a();try{const t=await createImageBitmap(n),{width:M,height:g}=t,i=Math.min(1,_/Math.max(M,g));if(i===1&&n.size<E)return(m=t.close)==null||m.call(t),a();const f=Math.max(1,Math.round(M*i)),h=Math.max(1,Math.round(g*i)),r=new OffscreenCanvas(f,h),u=r.getContext("2d");if(!u)return(l=t.close)==null||l.call(t),a();u.drawImage(t,0,0,f,h),(I=t.close)==null||I.call(t);const c=await r.convertToBlob({type:"image/jpeg",quality:d});if(!c||c.size>=n.size)return a();self.postMessage({id:o,blob:c})}catch{a()}}})();
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.