PageSourceSearch

https://pipe.orf.at/globus-2026/code/webimage-dhALTqpG.js

js orf.at collected 2026-09-24 08:25:29 UTC 966 bytes, 1 lines download raw bytes

1import{t as f}from"./basedecoder-DJQ4wI5Z.js";var l=class extends f{constructor(s){if(super(s),typeof createImageBitmap>"u")throw new Error("Cannot decode WebImage as `createImageBitmap` is not available");if(typeof document>"u"&&typeof OffscreenCanvas>"u")throw new Error("Cannot decode WebImage as neither `document` nor `OffscreenCanvas` is not available")}async decodeBlock(s){const c=new Blob([s]),e=await createImageBitmap(c);let t;typeof document<"u"?(t=document.createElement("canvas"),t.width=e.width,t.height=e.height):t=new OffscreenCanvas(e.width,e.height);const d=t.getContext("2d");d.drawImage(e,0,0);const r=d.getImageData(0,0,e.width,e.height).data,i=this.parameters.samplesPerPixel||4;if(i===4)return r.buffer;if(i===3){const a=new Uint8ClampedArray(e.width*e.height*3);for(let n=0,o=0;n<a.length;n+=3,o+=4)a[n]=r[o],a[n+1]=r[o+1],a[n+2]=r[o+2];return a.buffer}else throw new Error(`Unsupported SamplesPerPixel value: ${i}`)}};export{l as default};

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.