UNPKG

setup-easy-setup

Version:
8 lines 459 kB
"use strict";var vl=Object.create;var zE=Object.defineProperty;var Vl=Object.getOwnPropertyDescriptor;var ql=Object.getOwnPropertyNames;var Wl=Object.getPrototypeOf,Ol=Object.prototype.hasOwnProperty;var I=(A,e)=>()=>(e||A((e={exports:{}}).exports,e),e.exports);var Pl=(A,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of ql(e))!Ol.call(A,s)&&s!==t&&zE(A,s,{get:()=>e[s],enumerable:!(r=Vl(e,s))||r.enumerable});return A};var ys=(A,e,t)=>(t=A!=null?vl(Wl(A)):{},Pl(e||!A||!A.__esModule?zE(t,"default",{value:A,enumerable:!0}):t,A));var ws=I(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.toCommandProperties=Mt.toCommandValue=void 0;function _l(A){return A==null?"":typeof A=="string"||A instanceof String?A:JSON.stringify(A)}Mt.toCommandValue=_l;function Zl(A){return Object.keys(A).length?{title:A.title,file:A.file,line:A.startLine,endLine:A.endLine,col:A.startColumn,endColumn:A.endColumn}:{}}Mt.toCommandProperties=Zl});var tQ=I(se=>{"use strict";var Xl=se&&se.__createBinding||(Object.create?function(A,e,t,r){r===void 0&&(r=t);var s=Object.getOwnPropertyDescriptor(e,t);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(A,r,s)}:function(A,e,t,r){r===void 0&&(r=t),A[r]=e[t]}),Kl=se&&se.__setModuleDefault||(Object.create?function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e})}:function(A,e){A.default=e}),jl=se&&se.__importStar||function(A){if(A&&A.__esModule)return A;var e={};if(A!=null)for(var t in A)t!=="default"&&Object.prototype.hasOwnProperty.call(A,t)&&Xl(e,A,t);return Kl(e,A),e};Object.defineProperty(se,"__esModule",{value:!0});se.issue=se.issueCommand=void 0;var zl=jl(require("os")),AQ=ws();function eQ(A,e,t){let r=new Rn(A,e,t);process.stdout.write(r.toString()+zl.EOL)}se.issueCommand=eQ;function $l(A,e=""){eQ(A,{},e)}se.issue=$l;var $E="::",Rn=class{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r}toString(){let e=$E+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=!0;for(let r in this.properties)if(this.properties.hasOwnProperty(r)){let s=this.properties[r];s&&(t?t=!1:e+=",",e+=`${r}=${eu(s)}`)}}return e+=`${$E}${Au(this.message)}`,e}};function Au(A){return(0,AQ.toCommandValue)(A).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function eu(A){return(0,AQ.toCommandValue)(A).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}});var iQ=I(ie=>{"use strict";var tu=ie&&ie.__createBinding||(Object.create?function(A,e,t,r){r===void 0&&(r=t);var s=Object.getOwnPropertyDescriptor(e,t);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(A,r,s)}:function(A,e,t,r){r===void 0&&(r=t),A[r]=e[t]}),ru=ie&&ie.__setModuleDefault||(Object.create?function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e})}:function(A,e){A.default=e}),Fn=ie&&ie.__importStar||function(A){if(A&&A.__esModule)return A;var e={};if(A!=null)for(var t in A)t!=="default"&&Object.prototype.hasOwnProperty.call(A,t)&&tu(e,A,t);return ru(e,A),e};Object.defineProperty(ie,"__esModule",{value:!0});ie.prepareKeyValueMessage=ie.issueFileCommand=void 0;var su=Fn(require("crypto")),rQ=Fn(require("fs")),kn=Fn(require("os")),sQ=ws();function iu(A,e){let t=process.env[`GITHUB_${A}`];if(!t)throw new Error(`Unable to find environment variable for file command ${A}`);if(!rQ.existsSync(t))throw new Error(`Missing file at path: ${t}`);rQ.appendFileSync(t,`${(0,sQ.toCommandValue)(e)}${kn.EOL}`,{encoding:"utf8"})}ie.issueFileCommand=iu;function nu(A,e){let t=`ghadelimiter_${su.randomUUID()}`,r=(0,sQ.toCommandValue)(e);if(A.includes(t))throw new Error(`Unexpected input: name should not contain the delimiter "${t}"`);if(r.includes(t))throw new Error(`Unexpected input: value should not contain the delimiter "${t}"`);return`${A}<<${t}${kn.EOL}${r}${kn.EOL}${t}`}ie.prepareKeyValueMessage=nu});var oQ=I(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.checkBypass=Yt.getProxyUrl=void 0;function ou(A){let e=A.protocol==="https:";if(nQ(A))return;let t=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(t)try{return new Ds(t)}catch{if(!t.startsWith("http://")&&!t.startsWith("https://"))return new Ds(`http://${t}`)}else return}Yt.getProxyUrl=ou;function nQ(A){if(!A.hostname)return!1;let e=A.hostname;if(gu(e))return!0;let t=process.env.no_proxy||process.env.NO_PROXY||"";if(!t)return!1;let r;A.port?r=Number(A.port):A.protocol==="http:"?r=80:A.protocol==="https:"&&(r=443);let s=[A.hostname.toUpperCase()];typeof r=="number"&&s.push(`${s[0]}:${r}`);for(let i of t.split(",").map(n=>n.trim().toUpperCase()).filter(n=>n))if(i==="*"||s.some(n=>n===i||n.endsWith(`.${i}`)||i.startsWith(".")&&n.endsWith(`${i}`)))return!0;return!1}Yt.checkBypass=nQ;function gu(A){let e=A.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}var Ds=class extends URL{constructor(e,t){super(e,t),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}});var aQ=I(xt=>{"use strict";var Om=require("net"),Eu=require("tls"),Nn=require("http"),gQ=require("https"),Qu=require("events"),Pm=require("assert"),au=require("util");xt.httpOverHttp=Bu;xt.httpsOverHttp=Cu;xt.httpOverHttps=cu;xt.httpsOverHttps=Iu;function Bu(A){var e=new xe(A);return e.request=Nn.request,e}function Cu(A){var e=new xe(A);return e.request=Nn.request,e.createSocket=EQ,e.defaultPort=443,e}function cu(A){var e=new xe(A);return e.request=gQ.request,e}function Iu(A){var e=new xe(A);return e.request=gQ.request,e.createSocket=EQ,e.defaultPort=443,e}function xe(A){var e=this;e.options=A||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||Nn.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(r,s,i,n){for(var o=QQ(s,i,n),g=0,E=e.requests.length;g<E;++g){var Q=e.requests[g];if(Q.host===o.host&&Q.port===o.port){e.requests.splice(g,1),Q.request.onSocket(r);return}}r.destroy(),e.removeSocket(r)})}au.inherits(xe,Qu.EventEmitter);xe.prototype.addRequest=function(e,t,r,s){var i=this,n=mn({request:e},i.options,QQ(t,r,s));if(i.sockets.length>=this.maxSockets){i.requests.push(n);return}i.createSocket(n,function(o){o.on("free",g),o.on("close",E),o.on("agentRemove",E),e.onSocket(o);function g(){i.emit("free",o,n)}function E(Q){i.removeSocket(o),o.removeListener("free",g),o.removeListener("close",E),o.removeListener("agentRemove",E)}})};xe.prototype.createSocket=function(e,t){var r=this,s={};r.sockets.push(s);var i=mn({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),ze("making CONNECT request");var n=r.request(i);n.useChunkedEncodingByDefault=!1,n.once("response",o),n.once("upgrade",g),n.once("connect",E),n.once("error",Q),n.end();function o(a){a.upgrade=!0}function g(a,B,c){process.nextTick(function(){E(a,B,c)})}function E(a,B,c){if(n.removeAllListeners(),B.removeAllListeners(),a.statusCode!==200){ze("tunneling socket could not be established, statusCode=%d",a.statusCode),B.destroy();var C=new Error("tunneling socket could not be established, statusCode="+a.statusCode);C.code="ECONNRESET",e.request.emit("error",C),r.removeSocket(s);return}if(c.length>0){ze("got illegal response body from proxy"),B.destroy();var C=new Error("got illegal response body from proxy");C.code="ECONNRESET",e.request.emit("error",C),r.removeSocket(s);return}return ze("tunneling connection has established"),r.sockets[r.sockets.indexOf(s)]=B,t(B)}function Q(a){n.removeAllListeners(),ze(`tunneling socket could not be established, cause=%s `,a.message,a.stack);var B=new Error("tunneling socket could not be established, cause="+a.message);B.code="ECONNRESET",e.request.emit("error",B),r.removeSocket(s)}};xe.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(t!==-1){this.sockets.splice(t,1);var r=this.requests.shift();r&&this.createSocket(r,function(s){r.request.onSocket(s)})}};function EQ(A,e){var t=this;xe.prototype.createSocket.call(t,A,function(r){var s=A.request.getHeader("host"),i=mn({},t.options,{socket:r,servername:s?s.replace(/:.*$/,""):A.host}),n=Eu.connect(0,i);t.sockets[t.sockets.indexOf(r)]=n,e(n)})}function QQ(A,e,t){return typeof A=="string"?{host:A,port:e,localAddress:t}:A}function mn(A){for(var e=1,t=arguments.length;e<t;++e){var r=arguments[e];if(typeof r=="object")for(var s=Object.keys(r),i=0,n=s.length;i<n;++i){var o=s[i];r[o]!==void 0&&(A[o]=r[o])}}return A}var ze;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?ze=function(){var A=Array.prototype.slice.call(arguments);typeof A[0]=="string"?A[0]="TUNNEL: "+A[0]:A.unshift("TUNNEL:"),console.error.apply(console,A)}:ze=function(){};xt.debug=ze});var CQ=I((Zm,BQ)=>{BQ.exports=aQ()});var _=I((Xm,cQ)=>{cQ.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kHeadersList:Symbol("headers list"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable")}});var O=I((Km,IQ)=>{"use strict";var iA=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}},bn=class A extends iA{constructor(e){super(e),Error.captureStackTrace(this,A),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}},Sn=class A extends iA{constructor(e){super(e),Error.captureStackTrace(this,A),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}},Un=class A extends iA{constructor(e){super(e),Error.captureStackTrace(this,A),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}},Ln=class A extends iA{constructor(e){super(e),Error.captureStackTrace(this,A),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}},Mn=class A extends iA{constructor(e,t,r,s){super(e),Error.captureStackTrace(this,A),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=s,this.status=t,this.statusCode=t,this.headers=r}},Yn=class A extends iA{constructor(e){super(e),Error.captureStackTrace(this,A),this.name="InvalidArgumentError",this.message=e||"Invalid Argument Error",this.code="UND_ERR_INVALID_ARG"}},xn=class A extends iA{constructor(e){super(e),Error.captureStackTrace(this,A),this.name="InvalidReturnValueError",this.message=e||"Invalid Return Value Error",this.code="UND_ERR_INVALID_RETURN_VALUE"}},Jn=class A extends iA{constructor(e){super(e),Error.captureStackTrace(this,A),this.name="AbortError",this.message=e||"Request aborted",this.code="UND_ERR_ABORTED"}},Gn=class A extends iA{constructor(e){super(e),Error.captureStackTrace(this,A),this.name="InformationalError",this.message=e||"Request information",this.code="UND_ERR_INFO"}},Tn=class A extends iA{constructor(e){super(e),Error.captureStackTrace(this,A),this.name="RequestContentLengthMismatchError",this.message=e||"Request body length does not match content-length header",this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}},Hn=class A extends iA{constructor(e){super(e),Error.captureStackTrace(this,A),this.name="ResponseContentLengthMismatchError",this.message=e||"Response body length does not match content-length header",this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}},vn=class A extends iA{constructor(e){super(e),Error.captureStackTrace(this,A),this.name="ClientDestroyedError",this.message=e||"The client is destroyed",this.code="UND_ERR_DESTROYED"}},Vn=class A extends iA{constructor(e){super(e),Error.captureStackTrace(this,A),this.name="ClientClosedError",this.message=e||"The client is closed",this.code="UND_ERR_CLOSED"}},qn=class A extends iA{constructor(e,t){super(e),Error.captureStackTrace(this,A),this.name="SocketError",this.message=e||"Socket error",this.code="UND_ERR_SOCKET",this.socket=t}},ps=class A extends iA{constructor(e){super(e),Error.captureStackTrace(this,A),this.name="NotSupportedError",this.message=e||"Not supported error",this.code="UND_ERR_NOT_SUPPORTED"}},Wn=class extends iA{constructor(e){super(e),Error.captureStackTrace(this,ps),this.name="MissingUpstreamError",this.message=e||"No upstream has been added to the BalancedPool",this.code="UND_ERR_BPL_MISSING_UPSTREAM"}},On=class A extends Error{constructor(e,t,r){super(e),Error.captureStackTrace(this,A),this.name="HTTPParserError",this.code=t?`HPE_${t}`:void 0,this.data=r?r.toString():void 0}},Pn=class A extends iA{constructor(e){super(e),Error.captureStackTrace(this,A),this.name="ResponseExceededMaxSizeError",this.message=e||"Response content exceeded max size",this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}},_n=class A extends iA{constructor(e,t,{headers:r,data:s}){super(e),Error.captureStackTrace(this,A),this.name="RequestRetryError",this.message=e||"Request retry error",this.code="UND_ERR_REQ_RETRY",this.statusCode=t,this.data=s,this.headers=r}};IQ.exports={HTTPParserError:On,UndiciError:iA,HeadersTimeoutError:Sn,HeadersOverflowError:Un,BodyTimeoutError:Ln,RequestContentLengthMismatchError:Tn,ConnectTimeoutError:bn,ResponseStatusCodeError:Mn,InvalidArgumentError:Yn,InvalidReturnValueError:xn,RequestAbortedError:Jn,ClientDestroyedError:vn,ClientClosedError:Vn,InformationalError:Gn,SocketError:qn,NotSupportedError:ps,ResponseContentLengthMismatchError:Hn,BalancedPoolMissingUpstreamError:Wn,ResponseExceededMaxSizeError:Pn,RequestRetryError:_n}});var lQ=I((jm,hQ)=>{"use strict";var Rs={},Zn=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let A=0;A<Zn.length;++A){let e=Zn[A],t=e.toLowerCase();Rs[e]=Rs[t]=t}Object.setPrototypeOf(Rs,null);hQ.exports={wellknownHeaderNames:Zn,headerNameLowerCasedRecord:Rs}});var J=I((zm,NQ)=>{"use strict";var yQ=require("assert"),{kDestroyed:wQ,kBodyUsed:uQ}=_(),{IncomingMessage:hu}=require("http"),Jt=require("stream"),lu=require("net"),{InvalidArgumentError:IA}=O(),{Blob:dQ}=require("buffer"),ks=require("util"),{stringify:uu}=require("querystring"),{headerNameLowerCasedRecord:du}=lQ(),[Xn,fQ]=process.versions.node.split(".").map(A=>Number(A));function fu(){}function Kn(A){return A&&typeof A=="object"&&typeof A.pipe=="function"&&typeof A.on=="function"}function DQ(A){return dQ&&A instanceof dQ||A&&typeof A=="object"&&(typeof A.stream=="function"||typeof A.arrayBuffer=="function")&&/^(Blob|File)$/.test(A[Symbol.toStringTag])}function yu(A,e){if(A.includes("?")||A.includes("#"))throw new Error('Query params cannot be passed when url already contains "?" or "#".');let t=uu(e);return t&&(A+="?"+t),A}function pQ(A){if(typeof A=="string"){if(A=new URL(A),!/^https?:/.test(A.origin||A.protocol))throw new IA("Invalid URL protocol: the URL must start with `http:` or `https:`.");return A}if(!A||typeof A!="object")throw new IA("Invalid URL: The URL argument must be a non-null object.");if(!/^https?:/.test(A.origin||A.protocol))throw new IA("Invalid URL protocol: the URL must start with `http:` or `https:`.");if(!(A instanceof URL)){if(A.port!=null&&A.port!==""&&!Number.isFinite(parseInt(A.port)))throw new IA("Invalid URL: port must be a valid integer or a string representation of an integer.");if(A.path!=null&&typeof A.path!="string")throw new IA("Invalid URL path: the path must be a string or null/undefined.");if(A.pathname!=null&&typeof A.pathname!="string")throw new IA("Invalid URL pathname: the pathname must be a string or null/undefined.");if(A.hostname!=null&&typeof A.hostname!="string")throw new IA("Invalid URL hostname: the hostname must be a string or null/undefined.");if(A.origin!=null&&typeof A.origin!="string")throw new IA("Invalid URL origin: the origin must be a string or null/undefined.");let e=A.port!=null?A.port:A.protocol==="https:"?443:80,t=A.origin!=null?A.origin:`${A.protocol}//${A.hostname}:${e}`,r=A.path!=null?A.path:`${A.pathname||""}${A.search||""}`;t.endsWith("/")&&(t=t.substring(0,t.length-1)),r&&!r.startsWith("/")&&(r=`/${r}`),A=new URL(t+r)}return A}function wu(A){if(A=pQ(A),A.pathname!=="/"||A.search||A.hash)throw new IA("invalid url");return A}function Du(A){if(A[0]==="["){let t=A.indexOf("]");return yQ(t!==-1),A.substring(1,t)}let e=A.indexOf(":");return e===-1?A:A.substring(0,e)}function pu(A){if(!A)return null;yQ.strictEqual(typeof A,"string");let e=Du(A);return lu.isIP(e)?"":e}function Ru(A){return JSON.parse(JSON.stringify(A))}function ku(A){return A!=null&&typeof A[Symbol.asyncIterator]=="function"}function Fu(A){return A!=null&&(typeof A[Symbol.iterator]=="function"||typeof A[Symbol.asyncIterator]=="function")}function Nu(A){if(A==null)return 0;if(Kn(A)){let e=A._readableState;return e&&e.objectMode===!1&&e.ended===!0&&Number.isFinite(e.length)?e.length:null}else{if(DQ(A))return A.size!=null?A.size:null;if(kQ(A))return A.byteLength}return null}function jn(A){return!A||!!(A.destroyed||A[wQ])}function RQ(A){let e=A&&A._readableState;return jn(A)&&e&&!e.endEmitted}function mu(A,e){A==null||!Kn(A)||jn(A)||(typeof A.destroy=="function"?(Object.getPrototypeOf(A).constructor===hu&&(A.socket=null),A.destroy(e)):e&&process.nextTick((t,r)=>{t.emit("error",r)},A,e),A.destroyed!==!0&&(A[wQ]=!0))}var bu=/timeout=(\d+)/;function Su(A){let e=A.toString().match(bu);return e?parseInt(e[1],10)*1e3:null}function Uu(A){return du[A]||A.toLowerCase()}function Lu(A,e={}){if(!Array.isArray(A))return A;for(let t=0;t<A.length;t+=2){let r=A[t].toString().toLowerCase(),s=e[r];s?(Array.isArray(s)||(s=[s],e[r]=s),s.push(A[t+1].toString("utf8"))):Array.isArray(A[t+1])?e[r]=A[t+1].map(i=>i.toString("utf8")):e[r]=A[t+1].toString("utf8")}return"content-length"in e&&"content-disposition"in e&&(e["content-disposition"]=Buffer.from(e["content-disposition"]).toString("latin1")),e}function Mu(A){let e=[],t=!1,r=-1;for(let s=0;s<A.length;s+=2){let i=A[s+0].toString(),n=A[s+1].toString("utf8");i.length===14&&(i==="content-length"||i.toLowerCase()==="content-length")?(e.push(i,n),t=!0):i.length===19&&(i==="content-disposition"||i.toLowerCase()==="content-disposition")?r=e.push(i,n)-1:e.push(i,n)}return t&&r!==-1&&(e[r]=Buffer.from(e[r]).toString("latin1")),e}function kQ(A){return A instanceof Uint8Array||Buffer.isBuffer(A)}function Yu(A,e,t){if(!A||typeof A!="object")throw new IA("handler must be an object");if(typeof A.onConnect!="function")throw new IA("invalid onConnect method");if(typeof A.onError!="function")throw new IA("invalid onError method");if(typeof A.onBodySent!="function"&&A.onBodySent!==void 0)throw new IA("invalid onBodySent method");if(t||e==="CONNECT"){if(typeof A.onUpgrade!="function")throw new IA("invalid onUpgrade method")}else{if(typeof A.onHeaders!="function")throw new IA("invalid onHeaders method");if(typeof A.onData!="function")throw new IA("invalid onData method");if(typeof A.onComplete!="function")throw new IA("invalid onComplete method")}}function xu(A){return!!(A&&(Jt.isDisturbed?Jt.isDisturbed(A)||A[uQ]:A[uQ]||A.readableDidRead||A._readableState&&A._readableState.dataEmitted||RQ(A)))}function Ju(A){return!!(A&&(Jt.isErrored?Jt.isErrored(A):/state: 'errored'/.test(ks.inspect(A))))}function Gu(A){return!!(A&&(Jt.isReadable?Jt.isReadable(A):/state: 'readable'/.test(ks.inspect(A))))}function Tu(A){return{localAddress:A.localAddress,localPort:A.localPort,remoteAddress:A.remoteAddress,remotePort:A.remotePort,remoteFamily:A.remoteFamily,timeout:A.timeout,bytesWritten:A.bytesWritten,bytesRead:A.bytesRead}}async function*Hu(A){for await(let e of A)yield Buffer.isBuffer(e)?e:Buffer.from(e)}var Ur;function vu(A){if(Ur||(Ur=require("stream/web").ReadableStream),Ur.from)return Ur.from(Hu(A));let e;return new Ur({async start(){e=A[Symbol.asyncIterator]()},async pull(t){let{done:r,value:s}=await e.next();if(r)queueMicrotask(()=>{t.close()});else{let i=Buffer.isBuffer(s)?s:Buffer.from(s);t.enqueue(new Uint8Array(i))}return t.desiredSize>0},async cancel(t){await e.return()}},0)}function Vu(A){return A&&typeof A=="object"&&typeof A.append=="function"&&typeof A.delete=="function"&&typeof A.get=="function"&&typeof A.getAll=="function"&&typeof A.has=="function"&&typeof A.set=="function"&&A[Symbol.toStringTag]==="FormData"}function qu(A){if(A){if(typeof A.throwIfAborted=="function")A.throwIfAborted();else if(A.aborted){let e=new Error("The operation was aborted");throw e.name="AbortError",e}}}function Wu(A,e){return"addEventListener"in A?(A.addEventListener("abort",e,{once:!0}),()=>A.removeEventListener("abort",e)):(A.addListener("abort",e),()=>A.removeListener("abort",e))}var Ou=!!String.prototype.toWellFormed;function Pu(A){return Ou?`${A}`.toWellFormed():ks.toUSVString?ks.toUSVString(A):`${A}`}function _u(A){if(A==null||A==="")return{start:0,end:null,size:null};let e=A?A.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return e?{start:parseInt(e[1]),end:e[2]?parseInt(e[2]):null,size:e[3]?parseInt(e[3]):null}:null}var FQ=Object.create(null);FQ.enumerable=!0;NQ.exports={kEnumerableProperty:FQ,nop:fu,isDisturbed:xu,isErrored:Ju,isReadable:Gu,toUSVString:Pu,isReadableAborted:RQ,isBlobLike:DQ,parseOrigin:wu,parseURL:pQ,getServerName:pu,isStream:Kn,isIterable:Fu,isAsyncIterable:ku,isDestroyed:jn,headerNameToString:Uu,parseRawHeaders:Mu,parseHeaders:Lu,parseKeepAliveTimeout:Su,destroy:mu,bodyLength:Nu,deepClone:Ru,ReadableStreamFrom:vu,isBuffer:kQ,validateHandler:Yu,getSocketInfo:Tu,isFormDataLike:Vu,buildURL:yu,throwIfAborted:qu,addAbortListener:Wu,parseRangeHeader:_u,nodeMajor:Xn,nodeMinor:fQ,nodeHasAutoSelectFamily:Xn>18||Xn===18&&fQ>=13,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"]}});var SQ=I(($m,bQ)=>{"use strict";var zn=Date.now(),$e,At=[];function Zu(){zn=Date.now();let A=At.length,e=0;for(;e<A;){let t=At[e];t.state===0?t.state=zn+t.delay:t.state>0&&zn>=t.state&&(t.state=-1,t.callback(t.opaque)),t.state===-1?(t.state=-2,e!==A-1?At[e]=At.pop():At.pop(),A-=1):e+=1}At.length>0&&mQ()}function mQ(){$e&&$e.refresh?$e.refresh():(clearTimeout($e),$e=setTimeout(Zu,1e3),$e.unref&&$e.unref())}var Fs=class{constructor(e,t,r){this.callback=e,this.delay=t,this.opaque=r,this.state=-2,this.refresh()}refresh(){this.state===-2&&(At.push(this),(!$e||At.length===1)&&mQ()),this.state=0}clear(){this.state=-1}};bQ.exports={setTimeout(A,e,t){return e<1e3?setTimeout(A,e,t):new Fs(A,e,t)},clearTimeout(A){A instanceof Fs?A.clear():clearTimeout(A)}}});var $n=I((Ab,UQ)=>{"use strict";var Xu=require("node:events").EventEmitter,Ku=require("node:util").inherits;function Ct(A){if(typeof A=="string"&&(A=Buffer.from(A)),!Buffer.isBuffer(A))throw new TypeError("The needle has to be a String or a Buffer.");let e=A.length;if(e===0)throw new Error("The needle cannot be an empty String/Buffer.");if(e>256)throw new Error("The needle cannot have a length bigger than 256.");this.maxMatches=1/0,this.matches=0,this._occ=new Array(256).fill(e),this._lookbehind_size=0,this._needle=A,this._bufpos=0,this._lookbehind=Buffer.alloc(e);for(var t=0;t<e-1;++t)this._occ[A[t]]=e-1-t}Ku(Ct,Xu);Ct.prototype.reset=function(){this._lookbehind_size=0,this.matches=0,this._bufpos=0};Ct.prototype.push=function(A,e){Buffer.isBuffer(A)||(A=Buffer.from(A,"binary"));let t=A.length;this._bufpos=e||0;let r;for(;r!==t&&this.matches<this.maxMatches;)r=this._sbmh_feed(A);return r};Ct.prototype._sbmh_feed=function(A){let e=A.length,t=this._needle,r=t.length,s=t[r-1],i=-this._lookbehind_size,n;if(i<0){for(;i<0&&i<=e-r;){if(n=this._sbmh_lookup_char(A,i+r-1),n===s&&this._sbmh_memcmp(A,i,r-1))return this._lookbehind_size=0,++this.matches,this.emit("info",!0),this._bufpos=i+r;i+=this._occ[n]}if(i<0)for(;i<0&&!this._sbmh_memcmp(A,i,e-i);)++i;if(i>=0)this.emit("info",!1,this._lookbehind,0,this._lookbehind_size),this._lookbehind_size=0;else{let o=this._lookbehind_size+i;return o>0&&this.emit("info",!1,this._lookbehind,0,o),this._lookbehind.copy(this._lookbehind,0,o,this._lookbehind_size-o),this._lookbehind_size-=o,A.copy(this._lookbehind,this._lookbehind_size),this._lookbehind_size+=e,this._bufpos=e,e}}if(i+=(i>=0)*this._bufpos,A.indexOf(t,i)!==-1)return i=A.indexOf(t,i),++this.matches,i>0?this.emit("info",!0,A,this._bufpos,i):this.emit("info",!0),this._bufpos=i+r;for(i=e-r;i<e&&(A[i]!==t[0]||Buffer.compare(A.subarray(i,i+e-i),t.subarray(0,e-i))!==0);)++i;return i<e&&(A.copy(this._lookbehind,0,i,i+(e-i)),this._lookbehind_size=e-i),i>0&&this.emit("info",!1,A,this._bufpos,i<e?i:e),this._bufpos=e,e};Ct.prototype._sbmh_lookup_char=function(A,e){return e<0?this._lookbehind[this._lookbehind_size+e]:A[e]};Ct.prototype._sbmh_memcmp=function(A,e,t){for(var r=0;r<t;++r)if(this._sbmh_lookup_char(A,e+r)!==this._needle[r])return!1;return!0};UQ.exports=Ct});var YQ=I((eb,MQ)=>{"use strict";var ju=require("node:util").inherits,LQ=require("node:stream").Readable;function Ao(A){LQ.call(this,A)}ju(Ao,LQ);Ao.prototype._read=function(A){};MQ.exports=Ao});var Ns=I((tb,xQ)=>{"use strict";xQ.exports=function(e,t,r){if(!e||e[t]===void 0||e[t]===null)return r;if(typeof e[t]!="number"||isNaN(e[t]))throw new TypeError("Limit "+t+" is not a valid number");return e[t]}});var HQ=I((rb,TQ)=>{"use strict";var GQ=require("node:events").EventEmitter,zu=require("node:util").inherits,JQ=Ns(),$u=$n(),Ad=Buffer.from(`\r \r `),ed=/\r\n/g,td=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function Gt(A){GQ.call(this),A=A||{};let e=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=JQ(A,"maxHeaderPairs",2e3),this.maxHeaderSize=JQ(A,"maxHeaderSize",80*1024),this.buffer="",this.header={},this.finished=!1,this.ss=new $u(Ad),this.ss.on("info",function(t,r,s,i){r&&!e.maxed&&(e.nread+i-s>=e.maxHeaderSize?(i=e.maxHeaderSize-e.nread+s,e.nread=e.maxHeaderSize,e.maxed=!0):e.nread+=i-s,e.buffer+=r.toString("binary",s,i)),t&&e._finish()})}zu(Gt,GQ);Gt.prototype.push=function(A){let e=this.ss.push(A);if(this.finished)return e};Gt.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};Gt.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;let A=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",A)};Gt.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let A=this.buffer.split(ed),e=A.length,t,r;for(var s=0;s<e;++s){if(A[s].length===0)continue;if((A[s][0]===" "||A[s][0]===" ")&&r){this.header[r][this.header[r].length-1]+=A[s];continue}let i=A[s].indexOf(":");if(i===-1||i===0)return;if(t=td.exec(A[s]),r=t[1].toLowerCase(),this.header[r]=this.header[r]||[],this.header[r].push(t[2]||""),++this.npairs===this.maxHeaderPairs)break}};TQ.exports=Gt});var to=I((sb,VQ)=>{"use strict";var eo=require("node:stream").Writable,rd=require("node:util").inherits,sd=$n(),vQ=YQ(),id=HQ(),nd=45,od=Buffer.from("-"),gd=Buffer.from(`\r `),Ed=function(){};function ce(A){if(!(this instanceof ce))return new ce(A);if(eo.call(this,A),!A||!A.headerFirst&&typeof A.boundary!="string")throw new TypeError("Boundary required");typeof A.boundary=="string"?this.setBoundary(A.boundary):this._bparser=void 0,this._headerFirst=A.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:A.partHwm},this._pause=!1;let e=this;this._hparser=new id(A),this._hparser.on("header",function(t){e._inHeader=!1,e._part.emit("header",t)})}rd(ce,eo);ce.prototype.emit=function(A){if(A==="finish"&&!this._realFinish){if(!this._finished){let e=this;process.nextTick(function(){if(e.emit("error",new Error("Unexpected end of multipart data")),e._part&&!e._ignoreData){let t=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(t+" terminated early due to unexpected end of multipart data")),e._part.push(null),process.nextTick(function(){e._realFinish=!0,e.emit("finish"),e._realFinish=!1});return}e._realFinish=!0,e.emit("finish"),e._realFinish=!1})}}else eo.prototype.emit.apply(this,arguments)};ce.prototype._write=function(A,e,t){if(!this._hparser&&!this._bparser)return t();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new vQ(this._partOpts),this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._ignore());let r=this._hparser.push(A);if(!this._inHeader&&r!==void 0&&r<A.length)A=A.slice(r);else return t()}this._firstWrite&&(this._bparser.push(gd),this._firstWrite=!1),this._bparser.push(A),this._pause?this._cb=t:t()};ce.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};ce.prototype.setBoundary=function(A){let e=this;this._bparser=new sd(`\r --`+A),this._bparser.on("info",function(t,r,s,i){e._oninfo(t,r,s,i)})};ce.prototype._ignore=function(){this._part&&!this._ignoreData&&(this._ignoreData=!0,this._part.on("error",Ed),this._part.resume())};ce.prototype._oninfo=function(A,e,t,r){let s,i=this,n=0,o,g=!0;if(!this._part&&this._justMatched&&e){for(;this._dashes<2&&t+n<r;)if(e[t+n]===nd)++n,++this._dashes;else{this._dashes&&(s=od),this._dashes=0;break}if(this._dashes===2&&(t+n<r&&this.listenerCount("trailer")!==0&&this.emit("trailer",e.slice(t+n,r)),this.reset(),this._finished=!0,i._parts===0&&(i._realFinish=!0,i.emit("finish"),i._realFinish=!1)),this._dashes)return}this._justMatched&&(this._justMatched=!1),this._part||(this._part=new vQ(this._partOpts),this._part._read=function(E){i._unpause()},this._isPreamble&&this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._isPreamble!==!0&&this.listenerCount("part")!==0?this.emit("part",this._part):this._ignore(),this._isPreamble||(this._inHeader=!0)),e&&t<r&&!this._ignoreData&&(this._isPreamble||!this._inHeader?(s&&(g=this._part.push(s)),g=this._part.push(e.slice(t,r)),g||(this._pause=!0)):!this._isPreamble&&this._inHeader&&(s&&this._hparser.push(s),o=this._hparser.push(e.slice(t,r)),!this._inHeader&&o!==void 0&&o<r&&this._oninfo(!1,e,t+o,r))),A&&(this._hparser.reset(),this._isPreamble?this._isPreamble=!1:t!==r&&(++this._parts,this._part.on("end",function(){--i._parts===0&&(i._finished?(i._realFinish=!0,i.emit("finish"),i._realFinish=!1):i._unpause())})),this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0)};ce.prototype._unpause=function(){if(this._pause&&(this._pause=!1,this._cb)){let A=this._cb;this._cb=void 0,A()}};VQ.exports=ce});var ms=I((ro,OQ)=>{"use strict";var qQ=new TextDecoder("utf-8"),WQ=new Map([["utf-8",qQ],["utf8",qQ]]);function Qd(A){let e;for(;;)switch(A){case"utf-8":case"utf8":return Lr.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return Lr.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return Lr.utf16le;case"base64":return Lr.base64;default:if(e===void 0){e=!0,A=A.toLowerCase();continue}return Lr.other.bind(A)}}var Lr={utf8:(A,e)=>A.length===0?"":(typeof A=="string"&&(A=Buffer.from(A,e)),A.utf8Slice(0,A.length)),latin1:(A,e)=>A.length===0?"":typeof A=="string"?A:A.latin1Slice(0,A.length),utf16le:(A,e)=>A.length===0?"":(typeof A=="string"&&(A=Buffer.from(A,e)),A.ucs2Slice(0,A.length)),base64:(A,e)=>A.length===0?"":(typeof A=="string"&&(A=Buffer.from(A,e)),A.base64Slice(0,A.length)),other:(A,e)=>{if(A.length===0)return"";if(typeof A=="string"&&(A=Buffer.from(A,e)),WQ.has(ro.toString()))try{return WQ.get(ro).decode(A)}catch{}return typeof A=="string"?A:A.toString()}};function ad(A,e,t){return A&&Qd(t)(A,e)}OQ.exports=ad});var io=I((ib,KQ)=>{"use strict";var bs=ms(),PQ=/%[a-fA-F0-9][a-fA-F0-9]/g,Bd={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"\x07","%08":"\b","%09":" ","%0a":` `,"%0A":` `,"%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"\x1B","%1B":"\x1B","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"\x7F","%7F":"\x7F","%80":"\x80","%81":"\x81","%82":"\x82","%83":"\x83","%84":"\x84","%85":"\x85","%86":"\x86","%87":"\x87","%88":"\x88","%89":"\x89","%8a":"\x8A","%8A":"\x8A","%8b":"\x8B","%8B":"\x8B","%8c":"\x8C","%8C":"\x8C","%8d":"\x8D","%8D":"\x8D","%8e":"\x8E","%8E":"\x8E","%8f":"\x8F","%8F":"\x8F","%90":"\x90","%91":"\x91","%92":"\x92","%93":"\x93","%94":"\x94","%95":"\x95","%96":"\x96","%97":"\x97","%98":"\x98","%99":"\x99","%9a":"\x9A","%9A":"\x9A","%9b":"\x9B","%9B":"\x9B","%9c":"\x9C","%9C":"\x9C","%9d":"\x9D","%9D":"\x9D","%9e":"\x9E","%9E":"\x9E","%9f":"\x9F","%9F":"\x9F","%a0":"\xA0","%A0":"\xA0","%a1":"\xA1","%A1":"\xA1","%a2":"\xA2","%A2":"\xA2","%a3":"\xA3","%A3":"\xA3","%a4":"\xA4","%A4":"\xA4","%a5":"\xA5","%A5":"\xA5","%a6":"\xA6","%A6":"\xA6","%a7":"\xA7","%A7":"\xA7","%a8":"\xA8","%A8":"\xA8","%a9":"\xA9","%A9":"\xA9","%aa":"\xAA","%Aa":"\xAA","%aA":"\xAA","%AA":"\xAA","%ab":"\xAB","%Ab":"\xAB","%aB":"\xAB","%AB":"\xAB","%ac":"\xAC","%Ac":"\xAC","%aC":"\xAC","%AC":"\xAC","%ad":"\xAD","%Ad":"\xAD","%aD":"\xAD","%AD":"\xAD","%ae":"\xAE","%Ae":"\xAE","%aE":"\xAE","%AE":"\xAE","%af":"\xAF","%Af":"\xAF","%aF":"\xAF","%AF":"\xAF","%b0":"\xB0","%B0":"\xB0","%b1":"\xB1","%B1":"\xB1","%b2":"\xB2","%B2":"\xB2","%b3":"\xB3","%B3":"\xB3","%b4":"\xB4","%B4":"\xB4","%b5":"\xB5","%B5":"\xB5","%b6":"\xB6","%B6":"\xB6","%b7":"\xB7","%B7":"\xB7","%b8":"\xB8","%B8":"\xB8","%b9":"\xB9","%B9":"\xB9","%ba":"\xBA","%Ba":"\xBA","%bA":"\xBA","%BA":"\xBA","%bb":"\xBB","%Bb":"\xBB","%bB":"\xBB","%BB":"\xBB","%bc":"\xBC","%Bc":"\xBC","%bC":"\xBC","%BC":"\xBC","%bd":"\xBD","%Bd":"\xBD","%bD":"\xBD","%BD":"\xBD","%be":"\xBE","%Be":"\xBE","%bE":"\xBE","%BE":"\xBE","%bf":"\xBF","%Bf":"\xBF","%bF":"\xBF","%BF":"\xBF","%c0":"\xC0","%C0":"\xC0","%c1":"\xC1","%C1":"\xC1","%c2":"\xC2","%C2":"\xC2","%c3":"\xC3","%C3":"\xC3","%c4":"\xC4","%C4":"\xC4","%c5":"\xC5","%C5":"\xC5","%c6":"\xC6","%C6":"\xC6","%c7":"\xC7","%C7":"\xC7","%c8":"\xC8","%C8":"\xC8","%c9":"\xC9","%C9":"\xC9","%ca":"\xCA","%Ca":"\xCA","%cA":"\xCA","%CA":"\xCA","%cb":"\xCB","%Cb":"\xCB","%cB":"\xCB","%CB":"\xCB","%cc":"\xCC","%Cc":"\xCC","%cC":"\xCC","%CC":"\xCC","%cd":"\xCD","%Cd":"\xCD","%cD":"\xCD","%CD":"\xCD","%ce":"\xCE","%Ce":"\xCE","%cE":"\xCE","%CE":"\xCE","%cf":"\xCF","%Cf":"\xCF","%cF":"\xCF","%CF":"\xCF","%d0":"\xD0","%D0":"\xD0","%d1":"\xD1","%D1":"\xD1","%d2":"\xD2","%D2":"\xD2","%d3":"\xD3","%D3":"\xD3","%d4":"\xD4","%D4":"\xD4","%d5":"\xD5","%D5":"\xD5","%d6":"\xD6","%D6":"\xD6","%d7":"\xD7","%D7":"\xD7","%d8":"\xD8","%D8":"\xD8","%d9":"\xD9","%D9":"\xD9","%da":"\xDA","%Da":"\xDA","%dA":"\xDA","%DA":"\xDA","%db":"\xDB","%Db":"\xDB","%dB":"\xDB","%DB":"\xDB","%dc":"\xDC","%Dc":"\xDC","%dC":"\xDC","%DC":"\xDC","%dd":"\xDD","%Dd":"\xDD","%dD":"\xDD","%DD":"\xDD","%de":"\xDE","%De":"\xDE","%dE":"\xDE","%DE":"\xDE","%df":"\xDF","%Df":"\xDF","%dF":"\xDF","%DF":"\xDF","%e0":"\xE0","%E0":"\xE0","%e1":"\xE1","%E1":"\xE1","%e2":"\xE2","%E2":"\xE2","%e3":"\xE3","%E3":"\xE3","%e4":"\xE4","%E4":"\xE4","%e5":"\xE5","%E5":"\xE5","%e6":"\xE6","%E6":"\xE6","%e7":"\xE7","%E7":"\xE7","%e8":"\xE8","%E8":"\xE8","%e9":"\xE9","%E9":"\xE9","%ea":"\xEA","%Ea":"\xEA","%eA":"\xEA","%EA":"\xEA","%eb":"\xEB","%Eb":"\xEB","%eB":"\xEB","%EB":"\xEB","%ec":"\xEC","%Ec":"\xEC","%eC":"\xEC","%EC":"\xEC","%ed":"\xED","%Ed":"\xED","%eD":"\xED","%ED":"\xED","%ee":"\xEE","%Ee":"\xEE","%eE":"\xEE","%EE":"\xEE","%ef":"\xEF","%Ef":"\xEF","%eF":"\xEF","%EF":"\xEF","%f0":"\xF0","%F0":"\xF0","%f1":"\xF1","%F1":"\xF1","%f2":"\xF2","%F2":"\xF2","%f3":"\xF3","%F3":"\xF3","%f4":"\xF4","%F4":"\xF4","%f5":"\xF5","%F5":"\xF5","%f6":"\xF6","%F6":"\xF6","%f7":"\xF7","%F7":"\xF7","%f8":"\xF8","%F8":"\xF8","%f9":"\xF9","%F9":"\xF9","%fa":"\xFA","%Fa":"\xFA","%fA":"\xFA","%FA":"\xFA","%fb":"\xFB","%Fb":"\xFB","%fB":"\xFB","%FB":"\xFB","%fc":"\xFC","%Fc":"\xFC","%fC":"\xFC","%FC":"\xFC","%fd":"\xFD","%Fd":"\xFD","%fD":"\xFD","%FD":"\xFD","%fe":"\xFE","%Fe":"\xFE","%fE":"\xFE","%FE":"\xFE","%ff":"\xFF","%Ff":"\xFF","%fF":"\xFF","%FF":"\xFF"};function _Q(A){return Bd[A]}var Ss=0,ZQ=1,so=2,XQ=3;function Cd(A){let e=[],t=Ss,r="",s=!1,i=!1,n=0,o="",g=A.length;for(var E=0;E<g;++E){let Q=A[E];if(Q==="\\"&&s)if(i)i=!1;else{i=!0;continue}else if(Q==='"')if(i)i=!1;else{s?(s=!1,t=Ss):s=!0;continue}else if(i&&s&&(o+="\\"),i=!1,(t===so||t===XQ)&&Q==="'"){t===so?(t=XQ,r=o.substring(1)):t=ZQ,o="";continue}else if(t===Ss&&(Q==="*"||Q==="=")&&e.length){t=Q==="*"?so:ZQ,e[n]=[o,void 0],o="";continue}else if(!s&&Q===";"){t=Ss,r?(o.length&&(o=bs(o.replace(PQ,_Q),"binary",r)),r=""):o.length&&(o=bs(o,"binary","utf8")),e[n]===void 0?e[n]=o:e[n][1]=o,o="",++n;continue}else if(!s&&(Q===" "||Q===" "))continue;o+=Q}return r&&o.length?o=bs(o.replace(PQ,_Q),"binary",r):o&&(o=bs(o,"binary","utf8")),e[n]===void 0?o&&(e[n]=o):e[n][1]=o,e}KQ.exports=Cd});var zQ=I((nb,jQ)=>{"use strict";jQ.exports=function(e){if(typeof e!="string")return"";for(var t=e.length-1;t>=0;--t)switch(e.charCodeAt(t)){case 47:case 92:return e=e.slice(t+1),e===".."||e==="."?"":e}return e===".."||e==="."?"":e}});var ta=I((ob,ea)=>{"use strict";var{Readable:Aa}=require("node:stream"),{inherits:cd}=require("node:util"),Id=to(),$Q=io(),hd=ms(),ld=zQ(),ct=Ns(),ud=/^boundary$/i,dd=/^form-data$/i,fd=/^charset$/i,yd=/^filename$/i,wd=/^name$/i;Us.detect=/^multipart\/form-data/i;function Us(A,e){let t,r,s=this,i,n=e.limits,o=e.isPartAFile||((OA,T,eA)=>T==="application/octet-stream"||eA!==void 0),g=e.parsedConType||[],E=e.defCharset||"utf8",Q=e.preservePath,a={highWaterMark:e.fileHwm};for(t=0,r=g.length;t<r;++t)if(Array.isArray(g[t])&&ud.test(g[t][0])){i=g[t][1];break}function B(){cA===0&&re&&!A._done&&(re=!1,s.end())}if(typeof i!="string")throw new Error("Multipart: Boundary not found");let c=ct(n,"fieldSize",1*1024*1024),C=ct(n,"fileSize",1/0),u=ct(n,"files",1/0),h=ct(n,"fields",1/0),f=ct(n,"parts",1/0),p=ct(n,"headerPairs",2e3),b=ct(n,"headerSize",80*1024),Y=0,dA=0,cA=0,QA,fA,re=!1;this._needDrain=!1,this._pause=!1,this._cb=void 0,this._nparts=0,this._boy=A;let WA={boundary:i,maxHeaderPairs:p,maxHeaderSize:b,partHwm:a.highWaterMark,highWaterMark:e.highWaterMark};this.parser=new Id(WA),this.parser.on("drain",function(){if(s._needDrain=!1,s._cb&&!s._pause){let OA=s._cb;s._cb=void 0,OA()}}).on("part",function OA(T){if(++s._nparts>f)return s.parser.removeListener("part",OA),s.parser.on("part",Tt),A.hitPartsLimit=!0,A.emit("partsLimit"),Tt(T);if(fA){let eA=fA;eA.emit("end"),eA.removeAllListeners("end")}T.on("header",function(eA){let UA,je,PA,ds,fs,br,Sr=0;if(eA["content-type"]&&(PA=$Q(eA["content-type"][0]),PA[0])){for(UA=PA[0].toLowerCase(),t=0,r=PA.length;t<r;++t)if(fd.test(PA[t][0])){ds=PA[t][1].toLowerCase();break}}if(UA===void 0&&(UA="text/plain"),ds===void 0&&(ds=E),eA["content-disposition"]){if(PA=$Q(eA["content-disposition"][0]),!dd.test(PA[0]))return Tt(T);for(t=0,r=PA.length;t<r;++t)wd.test(PA[t][0])?je=PA[t][1]:yd.test(PA[t][0])&&(br=PA[t][1],Q||(br=ld(br)))}else return Tt(T);eA["content-transfer-encoding"]?fs=eA["content-transfer-encoding"][0].toLowerCase():fs="7bit";let Dn,pn;if(o(je,UA,br)){if(Y===u)return A.hitFilesLimit||(A.hitFilesLimit=!0,A.emit("filesLimit")),Tt(T);if(++Y,A.listenerCount("file")===0){s.parser._ignore();return}++cA;let BA=new no(a);QA=BA,BA.on("end",function(){if(--cA,s._pause=!1,B(),s._cb&&!s._needDrain){let fe=s._cb;s._cb=void 0,fe()}}),BA._read=function(fe){if(s._pause&&(s._pause=!1,s._cb&&!s._needDrain)){let Ye=s._cb;s._cb=void 0,Ye()}},A.emit("file",je,BA,br,fs,UA),Dn=function(fe){if((Sr+=fe.length)>C){let Ye=C-Sr+fe.length;Ye>0&&BA.push(fe.slice(0,Ye)),BA.truncated=!0,BA.bytesRead=C,T.removeAllListeners("data"),BA.emit("limit");return}else BA.push(fe)||(s._pause=!0);BA.bytesRead=Sr},pn=function(){QA=void 0,BA.push(null)}}else{if(dA===h)return A.hitFieldsLimit||(A.hitFieldsLimit=!0,A.emit("fieldsLimit")),Tt(T);++dA,++cA;let BA="",fe=!1;fA=T,Dn=function(Ye){if((Sr+=Ye.length)>c){let Hl=c-(Sr-Ye.length);BA+=Ye.toString("binary",0,Hl),fe=!0,T.removeAllListeners("data")}else BA+=Ye.toString("binary")},pn=function(){fA=void 0,BA.length&&(BA=hd(BA,"binary",ds)),A.emit("field",je,BA,!1,fe,fs,UA),--cA,B()}}T._readableState.sync=!1,T.on("data",Dn),T.on("end",pn)}).on("error",function(eA){QA&&QA.emit("error",eA)})}).on("error",function(OA){A.emit("error",OA)}).on("finish",function(){re=!0,B()})}Us.prototype.write=function(A,e){let t=this.parser.write(A);t&&!this._pause?e():(this._needDrain=!t,this._cb=e)};Us.prototype.end=function(){let A=this;A.parser.writable?A.parser.end():A._boy._done||process.nextTick(function(){A._boy._done=!0,A._boy.emit("finish")})};function Tt(A){A.resume()}function no(A){Aa.call(this,A),this.bytesRead=0,this.truncated=!1}cd(no,Aa);no.prototype._read=function(A){};ea.exports=Us});var sa=I((gb,ra)=>{"use strict";var Dd=/\+/g,pd=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function oo(){this.buffer=void 0}oo.prototype.write=function(A){A=A.replace(Dd," ");let e="",t=0,r=0,s=A.length;for(;t<s;++t)this.buffer!==void 0?pd[A.charCodeAt(t)]?(this.buffer+=A[t],++r,this.buffer.length===2&&(e+=String.fromCharCode(parseInt(this.buffer,16)),this.buffer=void 0)):(e+="%"+this.buffer,this.buffer=void 0,--t):A[t]==="%"&&(t>r&&(e+=A.substring(r,t),r=t),this.buffer="",++r);return r<s&&this.buffer===void 0&&(e+=A.substring(r)),e};oo.prototype.reset=function(){this.buffer=void 0};ra.exports=oo});var na=I((Eb,ia)=>{"use strict";var Rd=sa(),Ht=ms(),go=Ns(),kd=/^charset$/i;Ls.detect=/^application\/x-www-form-urlencoded/i;function Ls(A,e){let t=e.limits,r=e.parsedConType;this.boy=A,this.fieldSizeLimit=go(t,"fieldSize",1*1024*1024),this.fieldNameSizeLimit=go(t,"fieldNameSize",100),this.fieldsLimit=go(t,"fields",1/0);let s;for(var i=0,n=r.length;i<n;++i)if(Array.isArray(r[i])&&kd.test(r[i][0])){s=r[i][1].toLowerCase();break}s===void 0&&(s=e.defCharset||"utf8"),this.decoder=new Rd,this.charset=s,this._fields=0,this._state="key",this._checkingBytes=!0,this._bytesKey=0,this._bytesVal=0,this._key="",this._val="",this._keyTrunc=!1,this._valTrunc=!1,this._hitLimit=!1}Ls.prototype.write=function(A,e){if(this._fields===this.fieldsLimit)return this.boy.hitFieldsLimit||(this.boy.hitFieldsLimit=!0,this.boy.emit("fieldsLimit")),e();let t,r,s,i=0,n=A.length;for(;i<n;)if(this._state==="key"){for(t=r=void 0,s=i;s<n;++s){if(this._checkingBytes||++i,A[s]===61){t=s;break}else if(A[s]===38){r=s;break}if(this._checkingBytes&&this._bytesKey===this.fieldNameSizeLimit){this._hitLimit=!0;break}else this._checkingBytes&&++this._bytesKey}if(t!==void 0)t>i&&(this._key+=this.decoder.write(A.toString("binary",i,t))),this._state="val",this._hitLimit=!1,this._checkingBytes=!0,this._val="",this._bytesVal=0,this._valTrunc=!1,this.decoder.reset(),i=t+1;else if(r!==void 0){++this._fields;let o,g=this._keyTrunc;if(r>i?o=this._key+=this.decoder.write(A.toString("binary",i,r)):o=this._key,this._hitLimit=!1,this._checkingBytes=!0,this._key="",this._bytesKey=0,this._keyTrunc=!1,this.decoder.reset(),o.length&&this.boy.emit("field",Ht(o,"binary",this.charset),"",g,!1),i=r+1,this._fields===this.fieldsLimit)return e()}else this._hitLimit?(s>i&&(this._key+=this.decoder.write(A.toString("binary",i,s))),i=s,(this._bytesKey=this._key.length)===this.fieldNameSizeLimit&&(this._checkingBytes=!1,this._keyTrunc=!0)):(i<n&&(this._key+=this.decoder.write(A.toString("binary",i))),i=n)}else{for(r=void 0,s=i;s<n;++s){if(this._checkingBytes||++i,A[s]===38){r=s;break}if(this._checkingBytes&&this._bytesVal===this.fieldSizeLimit){this._hitLimit=!0;break}else this._checkingBytes&&++this._bytesVal}if(r!==void 0){if(++this._fields,r>i&&(this._val+=this.decoder.write(A.toString("binary",i,r))),this.boy.emit("field",Ht(this._key,"binary",this.charset),Ht(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc),this._state="key",this._hitLimit=!1,this._checkingBytes=!0,this._key="",this._bytesKey=0,this._keyTrunc=!1,this.decoder.reset(),i=r+1,this._fields===this.fieldsLimit)return e()}else this._hitLimit?(s>i&&(this._val+=this.decoder.write(A.toString("binary",i,s))),i=s,(this._val===""&&this.fieldSizeLimit===0||(this._bytesVal=this._val.length)===this.fieldSizeLimit)&&(this._checkingBytes=!1,this._valTrunc=!0)):(i<n&&(this._val+=this.decoder.write(A.toString("binary",i))),i=n)}e()};Ls.prototype.end=function(){this.boy._done||(this._state==="key"&&this._key.length>0?this.boy.emit("field",Ht(this._key,"binary",this.charset),"",this._keyTrunc,!1):this._state==="val"&&this.boy.emit("field",Ht(this._key,"binary",this.charset),Ht(this._v