import{EventEmitterasf}from"node-mock-http/_polyfill/events";import{Bufferash}from"node-mock-http/_polyfill/buffer";functiono(n){thrownewError(`${n} is not implemented yet!`)}classiextendsf{__unenv__={};readableEncoding=null;readableEnded=!0;readableFlowing=!1;readableHighWaterMark=0;readableLength=0;readableObjectMode=!1;readableAborted=!1;readableDidRead=!1;closed=!1;errored=null;readable=!1;destroyed=!1;staticfrom(e,t){returnnewi(t)}constructor(e){super()}_read(e){}read(e){}setEncoding(e){returnthis}pause(){returnthis}resume(){returnthis}isPaused(){return!0}unpipe(e){returnthis}unshift(e,t){}wrap(e){returnthis}push(e,t){return!1}_destroy(e,t){this.removeAllListeners()}destroy(e){returnthis.destroyed=!0,this._destroy(e),this}pipe(e,t){return{}}compose(e,t){thrownewError("Method not implemented.")}[Symbol.asyncDispose](){returnthis.destroy(),Promise.resolve()}async*[Symbol.asyncIterator](){throwo("Readable.asyncIterator")}iterator(e){throwo("Readable.iterator")}map(e,t){throwo("Readable.map")}filter(e,t){throwo("Readable.filter")}forEach(e,t){throwo("Readable.forEach")}reduce(e,t,r){throwo("Readable.reduce")}find(e,t){throwo("Readable.find")}findIndex(e,t){throwo("Readable.findIndex")}some(e,t){throwo("Readable.some")}toArray(e){throwo("Readable.toArray")}every(e,t){throwo("Readable.every")}flatMap(e,t){throwo("Readable.flatMap")}drop(e,t){throwo("Readable.drop")}take(e,t){throwo("Readable.take")}asIndexedPairs(e){throwo("Readable.asIndexedPairs")}}classlextendsf{__unenv__={};writable=!0;writableEnded=!1;writableFinished=!1;writableHighWaterMark=0;writableLength=0;writableObjectMode=!1;writableCorked=0;closed=!1;errored=null;writableNeedDrain=!1;destroyed=!1;_data;_encoding="utf8";constructor(e){super()}pipe(e,t){return{}}_write(e,t,r){if(this.writableEnded){r&&r();return}if(this._data===void0)this._data=e;else{consts=typeofthis._data=="string"?h.from(this._data,this._encoding||t||"utf8"):this._data,a=typeofe=="string"?h.from(e,t||this._encoding||"utf8"):e;this._data=h.concat([s,a])}this._encoding=t,r&&r()}_writev(e,t){}_destroy(e,t){}_final(e){}write(e,t,r){consts=typeoft=="string"?this._encoding:"utf8",a=typeoft=="function"?t:typeofr=="function"?r:void0;returnthis._write(e,s,a),!0}setDefaultEncoding(e){returnthis}end(e,t,r){consts=typeofe=="function"?e:typeoft=="function"?t:typeofr=="function"?r:void0;if(this.writableEnded)returns&&s(),this;consta=e===s?void0:e;if(a){constu=t===s?void0:t;this.write(a,u,s)}returnthis.writableEnded=!0,this.writableFinished=!0,this.emit("close"),this.emit("finish"),this}cork(){}uncork(){}destroy(e){returnthis.destroyed=!0,deletethis._data,this.removeAllListeners(),this}compose(e,t){thrownewError("Method not implemented.")}}constc=class{allowHalfOpen=!0;_destroy;constructor(e=newi,t=newl){Object.assign(this,e),Object.assign(this,t),this._destroy=g(e._destroy,t._destroy)}};function_(){returnObject.assign(c.prototype,i.prototype),Object.assign(c.prototype,l.prototype),c}functiong(...n){returnfunction(...e){for(consttofn)t(...e)}}constm=_();classAextendsm{__unenv__={};bufferSize=0;bytesRead=0;bytesWritten=0;connecting=!1;destroyed=!1;pending=!1;localAddress="";localPort=0;remoteAddress="";remoteFamily="";remotePort=0;autoSelectFamilyAttemptedAddresses=[];readyState="readOnly";constructor(e){super()}write(e,t,r){return!1}connect(e,t,r){returnthis}end(e,t,r){returnthis}setEncoding(e){returnthis}pause(){returnthis}resume(){returnthis}setTimeout(e,t){returnthis}setNoDelay(e){returnthis}setKeepAlive(e,t){returnthis}address(){return{}}unref(){returnthis}ref(){returnthis}destroySoon(){this.destroy()}resetAndDestroy(){conste=newError("ERR_SOCKET_CLOSED");returne.code="ERR_SOCKET_CLOSED",this.destroy(e),this}}classyextendsi{aborted=!1;httpVersion="1.1";httpVersionMajor=1;httpVersionMinor=1;complete=!0;connection;socket;headers={};trailers={};method="GET";url="/";statusCode=200;statusMessage="";closed=!1;errored=null;readable=!1;constructor(e){super(),this.socket=this.connection=e||newA}getrawHeaders(){c