vardr=Object.create;varsn=Object.defineProperty;varfr=Object.getOwnPropertyDescriptor;varhr=Object.getOwnPropertyNames;varxr=Object.getPrototypeOf,vr=Object.prototype.hasOwnProperty;varbr=(i,e,t)=>eini?sn(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;varO=(i,e)=>()=>(e||i((e={exports:{}}).exports,e),e.exports);vargr=(i,e,t,n)=>{if(e&&typeofe=="object"||typeofe=="function")for(letaofhr(e))!vr.call(i,a)&&a!==t&&sn(i,a,{get:()=>e[a],enumerable:!(n=fr(e,a))||n.enumerable});returni};varV=(i,e,t)=>(t=i!=null?dr(xr(i)):{},gr(e||!i||!i.__esModule?sn(t,"default",{value:i,enumerable:!0}):t,i));varq=(i,e,t)=>(br(i,typeofe!="symbol"?e+"":e,t),t),on=(i,e,t)=>{if(!e.has(i))throwTypeError("Cannot "+t)};varr=(i,e,t)=>(on(i,e,"read from private field"),t?t.call(i):e.get(i)),C=(i,e,t)=>{if(e.has(i))throwTypeError("Cannot add the same private member more than once");einstanceofWeakSet?e.add(i):e.set(i,t)},y=(i,e,t,n)=>(on(i,e,"write to private field"),n?n.call(i,t):e.set(i,t),t),xt=(i,e,t,n)=>({set_(a){y(i,e,a,t)},get_(){returnr(i,e,n)}}),E=(i,e,t)=>(on(i,e,"access private method"),t);varFa=O((Ql,ka)=>{varTa=require("stream").Stream,ec=require("util");ka.exports=xe;functionxe(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}ec.inherits(xe,Ta);xe.create=function(i,e){vart=newthis;e=e||{};for(varnine)t[n]=e[n];t.source=i;vara=i.emit;returni.emit=function(){returnt._handleEmit(arguments),a.apply(i,arguments)},i.on("error",function(){}),t.pauseStream&&i.pause(),t};Object.defineProperty(xe.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){returnthis.source.readable}});xe.prototype.setEncoding=function(){returnthis.source.setEncoding.apply(this.source,arguments)};xe.prototype.resume=function(){this._released||this.release(),this.source.resume()};xe.prototype.pause=function(){this.source.pause()};xe.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(i){this.emit.apply(this,i)}.bind(this)),this._bufferedEvents=[]};xe.prototype.pipe=function(){vari=Ta.prototype.pipe.apply(this,arguments);returnthis.resume(),i};xe.prototype._handleEmit=function(i){if(this._released){this.emit.apply(this,i);return}i[0]==="data"&&(this.dataSize+=i[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(i)};xe.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;vari="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",newError(i))}}});varUa=O((Zl,ja)=>{varic=require("util"),Oa=require("stream").Stream,Ba=Fa();ja.exports=P;functionP(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}ic.inherits(P,Oa);P.create=function(i){vare=newthis;i=i||{};for(vartini)e[t]=i[t];returne};P.isStreamLike=function(i){returntypeofi!="function"&&typeofi!="string"&&typeofi!="boolean"&&typeofi!="number"&&!Buffer.isBuffer(i)};P.prototype.append=function(i){vare=P.isStreamLike(i);if(e){if(!(iinstanceofBa)){vart=Ba.create(i,{maxDataSize:1/0,pauseStream:this.pauseStreams});i.on("data",this._checkDataSize.bind(this)),i=t}this._handleErrors(i),this.pauseStreams&&i.pause()}returnthis._streams.push(i),this};P.prototype.pipe=function(i,e){returnOa.prototype.pipe.call(this,i,e),this.resume(),i};P.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{dothis._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};P.prototype._realGetNext=function(){vari=this._streams.shift();if(typeofi>"u"){this.end();return}if(typeofi!="function"){this._pipeNext(i);return}vare=i;e(function(t){varn=P.isStreamLike(t);n&&(t.on("data",this._checkDataSize.bind(this)),this._handleErrors(t)),
`;B.DEFAULT_CONTENT_TYPE="application/octet-stream";B.prototype.append=function(i,e,t){t=t||{},typeof t=="string"&&(t={filename:t});var n=gn.prototype.append.bind(this);if(typeof e=="number"&&(e=""+e),os.isArray(e)){this._error(new Error("Arrays are not supported."));return}var a=this._multiPartHeader(i,e,t),s=this._multiPartFooter();n(a),n(e),n(s),this._trackLength(a,e,t)};B.prototype._trackLength=function(i,e,t){var n=0;t.knownLength!=null?n+=+t.knownLength:Buffer.isBuffer(e)?n=e.length:typeof e=="string"&&(n=Buffer.byteLength(e)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(i)+B.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&e.hasOwnProperty("httpVersion"))&&!(e instanceof Uc))&&(t.knownLength||this._valuesToMeasure.push(e))};B.prototype._lengthRetriever=function(i,e){i.hasOwnProperty("fd")?i.end!=null&&i.end!=1/0&&i.start!=null?e(null,i.end+1-(i.start?i.start:0)):jc.stat(i.path,function(t,n){var a;if(t){e(t);return}a=n.size-(i.start?i.start:0),e(null,a)}):i.hasOwnProperty("httpVersion")?e(null,+i.headers["content-length"]):i.hasOwnProperty("httpModule")?(i.on("response",function(t){i.pause(),e(null,+t.headers["content-length"])}),i.resume()):e("Unknown stream")};B.prototype._multiPartHeader=function(i,e,t){if(typeof t.header=="string")return t.header;var n=this._getContentDisposition(e,t),a=this._getContentType(e,t),s="",o={"Content-Disposition":["form-data",'name="'+i+'"'].concat(n||[]),"Content-Type":[].concat(a||[])};typeof t.header=="object"&&bn(o,t.header);var c;for(var p in o)o.hasOwnProperty(p)&&(c=o[p],c!=null&&(Array.isArray(c)||(c=[c]),c.length&&(s+=p+": "+c.join("; ")+B.LINE_BREAK)));return"--"+this.getBoundary()+B.LINE_BREAK+s+B.LINE_BREAK};B.prototype._getContentDisposition=function(i,e){var t,n;return typeof e.filepath=="string"?t=xn.normalize(e.filepath).replace(/\\/g,"/"):e.filename||i.name||i.path?t=xn.basename(e.filename||i.name||i.path):i.readable&&i.hasOwnProperty("httpVersion")&&(t=xn.basename(i.client._httpMessage.path||"")),t&&(n='filename="'+t+'"'),n};B.prototype._getContentType=function(i,e){var t=e.contentType;return!t&&i.name&&(t=vn.lookup(i.name)),!t&&i.path&&(t=vn.lookup(i.path)),!t&&i.readable&&i.hasOwnProperty("httpVersion")&&(t=i.headers["content-type"]),!t&&(e.filepath||e.filename)&&(t=vn.lookup(e.filepath||e.filename)),!t&&typeof i=="object"&&(t=B.DEFAULT_CONTENT_TYPE),t};B.prototype._multiPartFooter=function(){return function(i){var e=B.LINE_BREAK,t=this._streams.length===0;t&&(e+=this._lastBoundary()),i(e)}.bind(this)};B.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+B.LINE_BREAK};B.prototype.getHeaders=function(i){var e,t={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in i)i.hasOwnProperty(e)&&(t[e.toLowerCase()]=i[e]);return t};B.prototype.setBoundary=function(i){this._boundary=i};B.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};B.prototype.getBuffer=function(){for(var i=new Buffer.alloc(0),e=this.getBoundary(),t=0,n=this._streams.length;t<n;t++)typeof this._streams[t]!="function"&&(Buffer.isBuffer(this._streams[t])?i=Buffer.concat([i,this._streams[t]]):i=Buffer.concat([i,Buffer.from(this._streams[t])]),(typeof this._streams[t]!="string"||this._streams[t].substring(2,e.length+2)!==e)&&(i=Buffer.concat([i,Buffer.from(B.LINE_BREAK)])));return Buffer.concat([i,Buffer.from(this._lastBoundary())])};B.prototype._generateBoundary=function(){for(var i="--------------------------",e=0;e<24;e++)i+=Math.floor(Math.random()*10).toString(16);this._boundary=i};B.prototype.getLengthSync=function(){var i=this._overheadLength+this._valueLength;return this._streams.length&&(i+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),i};B.prototype.hasKnownLength=function(){var i=!0;return this._valuesToMeasure.length&&(i=!1),i};B.prototype.getLength=function(i){var e=this._overheadLength+this._valueLength;if(this._streams.length&&(e+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(i
`).map(e=>e.trim()).join(" ")};Ss.O=function(i){return this.inspectOpts.colors=this.useColors,kt.inspect(i,this.inspectOpts)}});var Ts=O((vm,kn)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?kn.exports=Rs():kn.exports=_s()});var Fs=O((bm,ks)=>{var Ji;ks.exports=function(){if(!Ji){try{Ji=Ts()("follow-redirects")}catch{}typeof Ji!="function"&&(Ji=function(){})}Ji.apply(null,arguments)}});var Ps=O((gm,Un)=>{var ii=require("url"),Fn=ii.URL,wp=require("http"),Ep=require("https"),js=require("stream").Writable,Us=require("assert"),Is=Fs(),On=["abort","aborted","connect","error","socket","timeout"],jn=Object.create(null);On.forEach(function(i){jn[i]=function(e,t,n){this._redirectable.emit(i,e,t,n)}});var Cp=Yi("ERR_INVALID_URL","Invalid URL",TypeError),Bs=Yi("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Ap=Yi("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),Rp=Yi("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Sp=Yi("ERR_STREAM_WRITE_AFTER_END","write after end");function re(i,e){js.call(this),this._sanitizeOptions(i),this._options=i,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var t=this;this._onNativeResponse=function(n){t._processResponse(n)},this._performRequest()}re.prototype=Object.create(js.prototype);re.prototype.abort=function(){qs(this._currentRequest),this.emit("abort")};re.prototype.write=function(i,e,t){if(this._ending)throw new Sp;if(!ti(i)&&!kp(i))throw new TypeError("data should be a string, Buffer or Uint8Array");if(Ki(e)&&(t=e,e=null),i.length===0){t&&t();return}this._requestBodyLength+i.length<=this._options.maxBodyLength?(this._requestBodyLength+=i.length,this._requestBodyBuffers.push({data:i,encoding:e}),this._currentRequest.write(i,e,t)):(this.emit("error",new Rp),this.abort())};re.prototype.end=function(i,e,t){if(Ki(i)?(t=i,i=e=null):Ki(e)&&(t=e,e=null),!i)this._ended=this._ending=!0,this._currentRequest.end(null,null,t);else{var n=this,a=this._currentRequest;this.write(i,e,function(){n._ended=!0,a.end(null,null,t)}),this._ending=!0}};re.prototype.setHeader=function(i,e){this._options.headers[i]=e,this._currentRequest.setHeader(i,e)};re.prototype.removeHeader=function(i){delete this._options.headers[i],this._currentRequest.removeHeader(i)};re.prototype.setTimeout=function(i,e){var t=this;function n(o){o.setTimeout(i),o.removeListener("timeout",o.destroy),o.addListener("timeout",o.destroy)}function a(o){t._timeout&&clearTimeout(t._timeout),t._timeout=setTimeout(function(){t.emit("timeout"),s()},i),n(o)}function s(){t._timeout&&(clearTimeout(t._timeout),t._timeout=null),t.removeListener("abort",s),t.removeListener("error",s),t.removeListener("response",s),e&&t.removeListener("timeout",e),t.socket||t._currentRequest.removeListener("socket",a)}return e&&this.on("timeout",e),this.socket?a(this.socket):this._currentRequest.once("socket",a),this.on("socket",n),this.on("abort",s),this.on("error",s),this.on("response",s),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(i){re.prototype[i]=function(e,t){return this._currentRequest[i](e,t)}});["aborted","connection","socket"].forEach(function(i){Object.defineProperty(re.prototype,i,{get:function(){return this._currentRequest[i]}})});re.prototype._sanitizeOptions=function(i){if(i.headers||(i.headers={}),i.host&&(i.hostname||(i.hostname=i.host),delete i.host),!i.pathname&&i.path){var e=i.path.indexOf("?");e<0?i.pathname=i.path:(i.pathname=i.path.substring(0,e),i.search=i.path.substring(e))}};re.prototype._performRequest=function(){var i=this._options.protocol,e=this._options.nativeProtocols[i];if(!e){this.emit("error",new TypeError("Unsupported protocol "+i));return}if(this._options.agents){var t=i.slice(0,-1);this._options.agent=this._options.agents[t]}var n=this._currentRequest=e.request(this._options,this._onNativeResponse);n._redirectable=this;for(var a of On)n.on(a,jn[a]);if(this._currentUrl=/^\//.test(this._options.path
`)},_domwindow:function(){return n("domwindow")},_bigint:function(a){return n("bigint:"+a.toString())},_process:function(){return n("process")},_timer:function(){return n("timer")},_pipe:function(){return n("pipe")},_tcp:function(){return n("tcp")},_udp:function(){return n("udp")},_tty:function(){return n("tty")},_statwatcher:function(){return n("statwatcher")},_securecontext:function(){return n("securecontext")},_connection:function(){return n("connection")},_zlib:function(){return n("zlib")},_context:function(){return n("context")},_nodescript:function(){return n("nodescript")},_httpparser:function(){return n("httpparser")},_dataview:function(){return n("dataview")},_signal:function(){return n("signal")},_fsevent:function(){return n("fsevent")},_tlswrap:function(){return n("tlswrap")}}}function _o(){return{buf:"",write:function(i){this.buf+=i},end:function(i){this.buf+=i},read:function(){return this.buf}}}});var Bo=O((Yf,Fo)=>{Fo.exports={STRING:2,BOOLEAN:4,BYTES:4,NUMBER:8,Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8}});var Uo=O($t=>{"use strict";$t.byteLength=Qp;$t.toByteArray=el;$t.fromByteArray=nl;var ke=[],fe=[],Xp=typeof Uint8Array<"u"?Uint8Array:Array,ia="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(li=0,Oo=ia.length;li<Oo;++li)ke[li]=ia[li],fe[ia.charCodeAt(li)]=li;var li,Oo;fe["-".charCodeAt(0)]=62;fe["_".charCodeAt(0)]=63;function jo(i){var e=i.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=i.indexOf("=");t===-1&&(t=e);var n=t===e?0:4-t%4;return[t,n]}function Qp(i){var e=jo(i),t=e[0],n=e[1];return(t+n)*3/4-n}function Zp(i,e,t){return(e+t)*3/4-t}function el(i){var e,t=jo(i),n=t[0],a=t[1],s=new Xp(Zp(i,n,a)),o=0,c=a>0?n-4:n,p;for(p=0;p<c;p+=4)e=fe[i.charCodeAt(p)]<<18|fe[i.charCodeAt(p+1)]<<12|fe[i.charCodeAt(p+2)]<<6|fe[i.charCodeAt(p+3)],s[o++]=e>>16&255,s[o++]=e>>8&255,s[o++]=e&255;return a===2&&(e=fe[i.charCodeAt(p)]<<2|fe[i.charCodeAt(p+1)]>>4,s[o++]=e&255),a===1&&(e=fe[i.charCodeAt(p)]<<10|fe[i.charCodeAt(p+1)]<<4|fe[i.charCodeAt(p+2)]>>2,s[o++]=e>>8&255,s[o++]=e&255),s}function il(i){return ke[i>>18&63]+ke[i>>12&63]+ke[i>>6&63]+ke[i&63]}function tl(i,e,t){for(var n,a=[],s=e;s<t;s+=3)n=(i[s]<<16&16711680)+(i[s+1]<<8&65280)+(i[s+2]&255),a.push(il(n));return a.join("")}function nl(i){for(var e,t=i.length,n=t%3,a=[],s=16383,o=0,c=t-n;o<c;o+=s)a.push(tl(i,o,o+s>c?c:o+s));return n===1?(e=i[t-1],a.push(ke[e>>2]+ke[e<<4&63]+"==")):n===2&&(e=(i[t-2]<<8)+i[t-1],a.push(ke[e>>10]+ke[e>>4&63]+ke[e<<2&63]+"=")),a.join("")}});var Io=O(ta=>{ta.read=function(i,e,t,n,a){var s,o,c=a*8-n-1,p=(1<<c)-1,l=p>>1,u=-7,m=t?a-1:0,v=t?-1:1,b=i[e+m];for(m+=v,s=b&(1<<-u)-1,b>>=-u,u+=c;u>0;s=s*256+i[e+m],m+=v,u-=8);for(o=s&(1<<-u)-1,s>>=-u,u+=n;u>0;o=o*256+i[e+m],m+=v,u-=8);if(s===0)s=1-l;else{if(s===p)return o?NaN:(b?-1:1)*(1/0);o=o+Math.pow(2,n),s=s-l}return(b?-1:1)*o*Math.pow(2,s-n)};ta.write=function(i,e,t,n,a,s){var o,c,p,l=s*8-a-1,u=(1<<l)-1,m=u>>1,v=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:s-1,h=n?1:-1,x=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(p=Math.pow(2,-o))<1&&(o--,p*=2),o+m>=1?e+=v/p:e+=v*Math.pow(2,1-m),e*p>=2&&(o++,p/=2),o+m>=u?(c=0,o=u):o+m>=1?(c=(e*p-1)*Math.pow(2,a),o=o+m):(c=e*Math.pow(2,m-1)*Math.pow(2,a),o=0));a>=8;i[t+b]=c&255,b+=h,c/=256,a-=8);for(o=o<<a|c,l+=a;l>0;i[t+b]=o&255,b+=h,o/=256,l-=8);i[t+b-h]|=x*128}});var Qo=O(Li=>{"use strict";var na=Uo(),Ui=Io(),Lo=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Li.Buffer=f;Li.SlowBuffer=pl;Li.INSPECT_MAX_BYTES=50;var Vt=2147483647;Li.kMaxLength=Vt;f.TYPED_ARRAY_SUPPORT=al();!f.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function al(){try{let i=new Uint8Array(1),e={foo:function(){return 42}};ret
`).forEach(function(o){a=o.indexOf(":"),t=o.substring(0,a).trim().toLowerCase(),n=o.substring(a+1).trim(),!(!t||e[t]&&$c[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)}),e};var bs=Symbol("internals");function $i(i){return i&&String(i).trim().toLowerCase()}function St(i){return i===!1||i==null?i:d.isArray(i)?i.map(St):String(i)}function Vc(i){let e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=t.exec(i);)e[n[1]]=n[2];return e}var Gc=i=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(i.trim());functionRn(i,e,t,n,a){if(d.isFunction(n))returnn.call(this,e,t);if(a&&(e=t),!!d.isString(e)){if(d.isString(n))returne.indexOf(n)!==-1;if(d.isRegExp(n))returnn.test(e)}}functionJc(i){returni.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}functionKc(i,e){lett=d.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(i,n+t,{value:function(a,s,o){returnthis[n].call(this,e,a,s,o)},configurable:!0})})}vargi=class{constructor(e){e&&this.set(e)}set(e,t,n){leta=this;functions(c,p,l){letu=$i(p);if(!u)thrownewError("header name must be a non-empty string");letm=d.findKey(a,u);(!m||a[m]===void0||l===!0||l===void0&&a[m]!==!1)&&(a[m||p]=St(c))}leto=(c,p)=>d.forEach(c,(l,u)=>s(l,u,p));returnd.isPlainObject(e)||einstanceofthis.constructor?o(e,t):d.isString(e)&&(e=e.trim())&&!Gc(e)?o(vs(e),t):e!=null&&s(t,e,n),this}get(e,t){if(e=$i(e),e){letn=d.findKey(this,e);if(n){leta=this[n];if(!t)returna;if(t===!0)returnVc(a);if(d.isFunction(t))returnt.call(this,a,n);if(d.isRegExp(t))returnt.exec(a);thrownewTypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=$i(e),e){letn=d.findKey(this,e);return!!(n&&this[n]!==void0&&(!t||Rn(this,this[n],n,t)))}return!1}delete(e,t){letn=this,a=!1;functions(o){if(o=$i(o),o){letc=d.findKey(n,o);c&&(!t||Rn(n,n[c],c,t))&&(deleten[c],a=!0)}}returnd.isArray(e)?e.forEach(s):s(e),a}clear(e){lett=Object.keys(this),n=t.length,a=!1;for(;n--;){lets=t[n];(!e||Rn(this,this[s],s,e,!0))&&(deletethis[s],a=!0)}returna}normalize(e){lett=this,n={};returnd.forEach(this,(a,s)=>{leto=d.findKey(n,s);if(o){t[o]=St(a),deletet[s];return}letc=e?Jc(s):String(s).trim();c!==s&&deletet[s],t[c]=St(a),n[c]=!0}),this}concat(...e){returnthis.constructor.concat(this,...e)}toJSON(e){lett=Object.create(null);returnd.forEach(this,(n,a)=>{n!=null&&n!==!1&&(t[a]=e&&d.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){returnObject.entries(this.toJSON())[Symbol.iterator]()}toString(){returnObject.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
`)?this.buffer="":this.buffer=n.pop();for(let a of n){let s=null;try{s=JSON.parse(a)}catch(o){this.errLogger.write(JSON.stringify(o,Object.getOwnPropertyNames(o))+`
`);continue}this.handleRequest(s).then(o=>{this.sendResponse(o)})}}}async handleRequest(e){let t=[0,null];try{if(!this.agent)throw new Error(`Agentnotbound.
`)}bind(e){this.agent=e;for(let t of pr)this.agent.on(t,n=>{this.sendResponse([0,n])})}listen(){this.inStream.on("data",this.handleInput.bind(this))}};var $l=new Zt,lr=new en;lr.bind($l);lr.listen();