(()=>{functions(r){lete=[],c=newUint8Array(1024);for(;;){letn=0;try{n=Javy.IO.readSync(0,c)}catch(o){if(o.message.includes("os error 29"))break;thrownewError("Error reading from stdin")}if(n<0)thrownewError("Error reading from stdin");if(n===0)break;if(e=[...e,...c.subarray(0,n)],!e.includes(10))continue;lett=0;for(leto=0;t<e.length;t++)if(e[t]===10){letu=e.splice(o,t+1),d=newUint8Array(u),a;try{a=JSON.parse(newTextDecoder().decode(d))}catch(l){thrownewError(`Error parsing JSON '${newTextDecoder().decode(d)}' from stdin: ${l.message}`)}r(a),o=t+1}e=e.slice(t)}}functionf(r){leti=newTextEncoder().encode(JSON.stringify(r)+`