UNPKG

bumpx-action

Version:

GitHub Action for bumpx version bumping tool.

8 lines 578 kB
var dL=Object.create;var{getPrototypeOf:pL,defineProperty:oI,getOwnPropertyNames:CN,getOwnPropertyDescriptor:lL}=Object,gN=Object.prototype.hasOwnProperty;var sB=(A,Q,B)=>{B=A!=null?dL(pL(A)):{};let I=Q||!A||!A.__esModule?oI(B,"default",{value:A,enumerable:!0}):B;for(let E of CN(A))if(!gN.call(I,E))oI(I,E,{get:()=>A[E],enumerable:!0});return I},EN=new WeakMap,iL=(A)=>{var Q=EN.get(A),B;if(Q)return Q;if(Q=oI({},"__esModule",{value:!0}),A&&typeof A==="object"||typeof A==="function")CN(A).map((I)=>!gN.call(Q,I)&&oI(Q,I,{get:()=>A[I],enumerable:!(B=lL(A,I))||B.enumerable}));return EN.set(A,Q),Q},R=(A,Q)=>()=>(Q||A((Q={exports:{}}).exports,Q),Q.exports);var nL=(A,Q)=>{for(var B in Q)oI(A,B,{get:Q[B],enumerable:!0,configurable:!0,set:(I)=>Q[B]=()=>I})};var lE=R((rB)=>{Object.defineProperty(rB,"__esModule",{value:!0});rB.toCommandProperties=rB.toCommandValue=void 0;function aL(A){if(A===null||A===void 0)return"";else if(typeof A==="string"||A instanceof String)return A;return JSON.stringify(A)}rB.toCommandValue=aL;function oL(A){if(!Object.keys(A).length)return{};return{title:A.title,file:A.file,line:A.startLine,endLine:A.endLine,col:A.startColumn,endColumn:A.endColumn}}rB.toCommandProperties=oL});var JN=R((UQ)=>{var sL=UQ&&UQ.__createBinding||(Object.create?function(A,Q,B,I){if(I===void 0)I=B;var E=Object.getOwnPropertyDescriptor(Q,B);if(!E||("get"in E?!Q.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,I,E)}:function(A,Q,B,I){if(I===void 0)I=B;A[I]=Q[B]}),rL=UQ&&UQ.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),tL=UQ&&UQ.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))sL(Q,A,B)}return rL(Q,A),Q};Object.defineProperty(UQ,"__esModule",{value:!0});UQ.issue=UQ.issueCommand=void 0;var eL=tL(require("os")),FN=lE();function NN(A,Q,B){let I=new YN(A,Q,B);process.stdout.write(I.toString()+eL.EOL)}UQ.issueCommand=NN;function AV(A,Q=""){NN(A,{},Q)}UQ.issue=AV;var DN="::";class YN{constructor(A,Q,B){if(!A)A="missing.command";this.command=A,this.properties=Q,this.message=B}toString(){let A=DN+this.command;if(this.properties&&Object.keys(this.properties).length>0){A+=" ";let Q=!0;for(let B in this.properties)if(this.properties.hasOwnProperty(B)){let I=this.properties[B];if(I){if(Q)Q=!1;else A+=",";A+=`${B}=${BV(I)}`}}}return A+=`${DN}${QV(this.message)}`,A}}function QV(A){return(0,FN.toCommandValue)(A).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function BV(A){return(0,FN.toCommandValue)(A).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}});var RN=R((GQ)=>{var IV=GQ&&GQ.__createBinding||(Object.create?function(A,Q,B,I){if(I===void 0)I=B;var E=Object.getOwnPropertyDescriptor(Q,B);if(!E||("get"in E?!Q.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return Q[B]}};Object.defineProperty(A,I,E)}:function(A,Q,B,I){if(I===void 0)I=B;A[I]=Q[B]}),EV=GQ&&GQ.__setModuleDefault||(Object.create?function(A,Q){Object.defineProperty(A,"default",{enumerable:!0,value:Q})}:function(A,Q){A.default=Q}),vg=GQ&&GQ.__importStar||function(A){if(A&&A.__esModule)return A;var Q={};if(A!=null){for(var B in A)if(B!=="default"&&Object.prototype.hasOwnProperty.call(A,B))IV(Q,A,B)}return EV(Q,A),Q};Object.defineProperty(GQ,"__esModule",{value:!0});GQ.prepareKeyValueMessage=GQ.issueFileCommand=void 0;var CV=vg(require("crypto")),UN=vg(require("fs")),fg=vg(require("os")),GN=lE();function gV(A,Q){let B=process.env[`GITHUB_${A}`];if(!B)throw Error(`Unable to find environment variable for file command ${A}`);if(!UN.existsSync(B))throw Error(`Missing file at path: ${B}`);UN.appendFileSync(B,`${(0,GN.toCommandValue)(Q)}${fg.EOL}`,{encoding:"utf8"})}GQ.issueFileCommand=gV;function DV(A,Q){let B=`ghadelimiter_${CV.randomUUID()}`,I=(0,GN.toCommandValue)(Q);if(A.includes(B))throw Error(`Unexpected input: name should not contain the delimiter "${B}"`);if(I.includes(B))throw Error(`Unexpected input: value should not contain the delimiter "${B}"`);return`${A}<<${B}${fg.EOL}${I}${fg.EOL}${B}`}GQ.prepareKeyValueMessage=DV});var MN=R((tB)=>{Object.defineProperty(tB,"__esModule",{value:!0});tB.checkBypass=tB.getProxyUrl=void 0;function FV(A){let Q=A.protocol==="https:";if(wN(A))return;let B=(()=>{if(Q)return process.env.https_proxy||process.env.HTTPS_PROXY;else return process.env.http_proxy||process.env.HTTP_PROXY})();if(B)try{return new bg(B)}catch(I){if(!B.startsWith("http://")&&!B.startsWith("https://"))return new bg(`http://${B}`)}else return}tB.getProxyUrl=FV;function wN(A){if(!A.hostname)return!1;let Q=A.hostname;if(NV(Q))return!0;let B=process.env.no_proxy||process.env.NO_PROXY||"";if(!B)return!1;let I;if(A.port)I=Number(A.port);else if(A.protocol==="http:")I=80;else if(A.protocol==="https:")I=443;let E=[A.hostname.toUpperCase()];if(typeof I==="number")E.push(`${E[0]}:${I}`);for(let C of B.split(",").map((g)=>g.trim().toUpperCase()).filter((g)=>g))if(C==="*"||E.some((g)=>g===C||g.endsWith(`.${C}`)||C.startsWith(".")&&g.endsWith(`${C}`)))return!0;return!1}tB.checkBypass=wN;function NV(A){let Q=A.toLowerCase();return Q==="localhost"||Q.startsWith("127.")||Q.startsWith("[::1]")||Q.startsWith("[0:0:0:0:0:0:0:1]")}class bg extends URL{constructor(A,Q){super(A,Q);this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}});var ZN=R((eB)=>{var K7=require("net"),YV=require("tls"),mg=require("http"),LN=require("https"),JV=require("events"),S7=require("assert"),UV=require("util");eB.httpOverHttp=GV;eB.httpsOverHttp=RV;eB.httpOverHttps=wV;eB.httpsOverHttps=MV;function GV(A){var Q=new aQ(A);return Q.request=mg.request,Q}function RV(A){var Q=new aQ(A);return Q.request=mg.request,Q.createSocket=VN,Q.defaultPort=443,Q}function wV(A){var Q=new aQ(A);return Q.request=LN.request,Q}function MV(A){var Q=new aQ(A);return Q.request=LN.request,Q.createSocket=VN,Q.defaultPort=443,Q}function aQ(A){var Q=this;Q.options=A||{},Q.proxyOptions=Q.options.proxy||{},Q.maxSockets=Q.options.maxSockets||mg.Agent.defaultMaxSockets,Q.requests=[],Q.sockets=[],Q.on("free",function(I,E,C,g){var D=WN(E,C,g);for(var F=0,Y=Q.requests.length;F<Y;++F){var N=Q.requests[F];if(N.host===D.host&&N.port===D.port){Q.requests.splice(F,1),N.request.onSocket(I);return}}I.destroy(),Q.removeSocket(I)})}UV.inherits(aQ,JV.EventEmitter);aQ.prototype.addRequest=function(Q,B,I,E){var C=this,g=cg({request:Q},C.options,WN(B,I,E));if(C.sockets.length>=this.maxSockets){C.requests.push(g);return}C.createSocket(g,function(D){D.on("free",F),D.on("close",Y),D.on("agentRemove",Y),Q.onSocket(D);function F(){C.emit("free",D,g)}function Y(N){C.removeSocket(D),D.removeListener("free",F),D.removeListener("close",Y),D.removeListener("agentRemove",Y)}})};aQ.prototype.createSocket=function(Q,B){var I=this,E={};I.sockets.push(E);var C=cg({},I.proxyOptions,{method:"CONNECT",path:Q.host+":"+Q.port,agent:!1,headers:{host:Q.host+":"+Q.port}});if(Q.localAddress)C.localAddress=Q.localAddress;if(C.proxyAuth)C.headers=C.headers||{},C.headers["Proxy-Authorization"]="Basic "+new Buffer(C.proxyAuth).toString("base64");JB("making CONNECT request");var g=I.request(C);g.useChunkedEncodingByDefault=!1,g.once("response",D),g.once("upgrade",F),g.once("connect",Y),g.once("error",N),g.end();function D(J){J.upgrade=!0}function F(J,U,G){process.nextTick(function(){Y(J,U,G)})}function Y(J,U,G){if(g.removeAllListeners(),U.removeAllListeners(),J.statusCode!==200){JB("tunneling socket could not be established, statusCode=%d",J.statusCode),U.destroy();var w=Error("tunneling socket could not be established, statusCode="+J.statusCode);w.code="ECONNRESET",Q.request.emit("error",w),I.removeSocket(E);return}if(G.length>0){JB("got illegal response body from proxy"),U.destroy();var w=Error("got illegal response body from proxy");w.code="ECONNRESET",Q.request.emit("error",w),I.removeSocket(E);return}return JB("tunneling connection has established"),I.sockets[I.sockets.indexOf(E)]=U,B(U)}function N(J){g.removeAllListeners(),JB(`tunneling socket could not be established, cause=%s `,J.message,J.stack);var U=Error("tunneling socket could not be established, cause="+J.message);U.code="ECONNRESET",Q.request.emit("error",U),I.removeSocket(E)}};aQ.prototype.removeSocket=function(Q){var B=this.sockets.indexOf(Q);if(B===-1)return;this.sockets.splice(B,1);var I=this.requests.shift();if(I)this.createSocket(I,function(E){I.request.onSocket(E)})};function VN(A,Q){var B=this;aQ.prototype.createSocket.call(B,A,function(I){var E=A.request.getHeader("host"),C=cg({},B.options,{socket:I,servername:E?E.replace(/:.*$/,""):A.host}),g=YV.connect(0,C);B.sockets[B.sockets.indexOf(I)]=g,Q(g)})}function WN(A,Q,B){if(typeof A==="string")return{host:A,port:Q,localAddress:B};return A}function cg(A){for(var Q=1,B=arguments.length;Q<B;++Q){var I=arguments[Q];if(typeof I==="object"){var E=Object.keys(I);for(var C=0,g=E.length;C<g;++C){var D=E[C];if(I[D]!==void 0)A[D]=I[D]}}}return A}var JB;if(process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG))JB=function(){var A=Array.prototype.slice.call(arguments);if(typeof A[0]==="string")A[0]="TUNNEL: "+A[0];else A.unshift("TUNNEL:");console.error.apply(console,A)};else JB=function(){};eB.debug=JB});var KN=R((H7,XN)=>{XN.exports=ZN()});var e=R((x7,SN)=>{SN.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 n=R((j7,HN)=>{class JA extends Error{constructor(A){super(A);this.name="UndiciError",this.code="UND_ERR"}}class ug extends JA{constructor(A){super(A);Error.captureStackTrace(this,ug),this.name="ConnectTimeoutError",this.message=A||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}}class dg extends JA{constructor(A){super(A);Error.captureStackTrace(this,dg),this.name="HeadersTimeoutError",this.message=A||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}}class pg extends JA{constructor(A){super(A);Error.captureStackTrace(this,pg),this.name="HeadersOverflowError",this.message=A||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}}class lg extends JA{constructor(A){super(A);Error.captureStackTrace(this,lg),this.name="BodyTimeoutError",this.message=A||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}}class ig extends JA{constructor(A,Q,B,I){super(A);Error.captureStackTrace(this,ig),this.name="ResponseStatusCodeError",this.message=A||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=I,this.status=Q,this.statusCode=Q,this.headers=B}}class ng extends JA{constructor(A){super(A);Error.captureStackTrace(this,ng),this.name="InvalidArgumentError",this.message=A||"Invalid Argument Error",this.code="UND_ERR_INVALID_ARG"}}class ag extends JA{constructor(A){super(A);Error.captureStackTrace(this,ag),this.name="InvalidReturnValueError",this.message=A||"Invalid Return Value Error",this.code="UND_ERR_INVALID_RETURN_VALUE"}}class og extends JA{constructor(A){super(A);Error.captureStackTrace(this,og),this.name="AbortError",this.message=A||"Request aborted",this.code="UND_ERR_ABORTED"}}class sg extends JA{constructor(A){super(A);Error.captureStackTrace(this,sg),this.name="InformationalError",this.message=A||"Request information",this.code="UND_ERR_INFO"}}class rg extends JA{constructor(A){super(A);Error.captureStackTrace(this,rg),this.name="RequestContentLengthMismatchError",this.message=A||"Request body length does not match content-length header",this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}}class tg extends JA{constructor(A){super(A);Error.captureStackTrace(this,tg),this.name="ResponseContentLengthMismatchError",this.message=A||"Response body length does not match content-length header",this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}}class eg extends JA{constructor(A){super(A);Error.captureStackTrace(this,eg),this.name="ClientDestroyedError",this.message=A||"The client is destroyed",this.code="UND_ERR_DESTROYED"}}class A0 extends JA{constructor(A){super(A);Error.captureStackTrace(this,A0),this.name="ClientClosedError",this.message=A||"The client is closed",this.code="UND_ERR_CLOSED"}}class Q0 extends JA{constructor(A,Q){super(A);Error.captureStackTrace(this,Q0),this.name="SocketError",this.message=A||"Socket error",this.code="UND_ERR_SOCKET",this.socket=Q}}class iE extends JA{constructor(A){super(A);Error.captureStackTrace(this,iE),this.name="NotSupportedError",this.message=A||"Not supported error",this.code="UND_ERR_NOT_SUPPORTED"}}class zN extends JA{constructor(A){super(A);Error.captureStackTrace(this,iE),this.name="MissingUpstreamError",this.message=A||"No upstream has been added to the BalancedPool",this.code="UND_ERR_BPL_MISSING_UPSTREAM"}}class B0 extends Error{constructor(A,Q,B){super(A);Error.captureStackTrace(this,B0),this.name="HTTPParserError",this.code=Q?`HPE_${Q}`:void 0,this.data=B?B.toString():void 0}}class I0 extends JA{constructor(A){super(A);Error.captureStackTrace(this,I0),this.name="ResponseExceededMaxSizeError",this.message=A||"Response content exceeded max size",this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}}class E0 extends JA{constructor(A,Q,{headers:B,data:I}){super(A);Error.captureStackTrace(this,E0),this.name="RequestRetryError",this.message=A||"Request retry error",this.code="UND_ERR_REQ_RETRY",this.statusCode=Q,this.data=I,this.headers=B}}HN.exports={HTTPParserError:B0,UndiciError:JA,HeadersTimeoutError:dg,HeadersOverflowError:pg,BodyTimeoutError:lg,RequestContentLengthMismatchError:rg,ConnectTimeoutError:ug,ResponseStatusCodeError:ig,InvalidArgumentError:ng,InvalidReturnValueError:ag,RequestAbortedError:og,ClientDestroyedError:eg,ClientClosedError:A0,InformationalError:sg,SocketError:Q0,NotSupportedError:iE,ResponseContentLengthMismatchError:tg,BalancedPoolMissingUpstreamError:zN,ResponseExceededMaxSizeError:I0,RequestRetryError:E0}});var jN=R((T7,xN)=>{var nE={},C0=["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<C0.length;++A){let Q=C0[A],B=Q.toLowerCase();nE[Q]=nE[B]=B}Object.setPrototypeOf(nE,null);xN.exports={wellknownHeaderNames:C0,headerNameLowerCasedRecord:nE}});var b=R((h7,vN)=>{var yN=require("assert"),{kDestroyed:qN,kBodyUsed:TN}=e(),{IncomingMessage:LV}=require("http"),AI=require("stream"),VV=require("net"),{InvalidArgumentError:XA}=n(),{Blob:hN}=require("buffer"),aE=require("util"),{stringify:WV}=require("querystring"),{headerNameLowerCasedRecord:ZV}=jN(),[g0,$N]=process.versions.node.split(".").map((A)=>Number(A));function XV(){}function D0(A){return A&&typeof A==="object"&&typeof A.pipe==="function"&&typeof A.on==="function"}function ON(A){return hN&&A instanceof hN||A&&typeof A==="object"&&(typeof A.stream==="function"||typeof A.arrayBuffer==="function")&&/^(Blob|File)$/.test(A[Symbol.toStringTag])}function KV(A,Q){if(A.includes("?")||A.includes("#"))throw Error('Query params cannot be passed when url already contains "?" or "#".');let B=WV(Q);if(B)A+="?"+B;return A}function PN(A){if(typeof A==="string"){if(A=new URL(A),!/^https?:/.test(A.origin||A.protocol))throw new XA("Invalid URL protocol: the URL must start with `http:` or `https:`.");return A}if(!A||typeof A!=="object")throw new XA("Invalid URL: The URL argument must be a non-null object.");if(!/^https?:/.test(A.origin||A.protocol))throw new XA("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 XA("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 XA("Invalid URL path: the path must be a string or null/undefined.");if(A.pathname!=null&&typeof A.pathname!=="string")throw new XA("Invalid URL pathname: the pathname must be a string or null/undefined.");if(A.hostname!=null&&typeof A.hostname!=="string")throw new XA("Invalid URL hostname: the hostname must be a string or null/undefined.");if(A.origin!=null&&typeof A.origin!=="string")throw new XA("Invalid URL origin: the origin must be a string or null/undefined.");let Q=A.port!=null?A.port:A.protocol==="https:"?443:80,B=A.origin!=null?A.origin:`${A.protocol}//${A.hostname}:${Q}`,I=A.path!=null?A.path:`${A.pathname||""}${A.search||""}`;if(B.endsWith("/"))B=B.substring(0,B.length-1);if(I&&!I.startsWith("/"))I=`/${I}`;A=new URL(B+I)}return A}function SV(A){if(A=PN(A),A.pathname!=="/"||A.search||A.hash)throw new XA("invalid url");return A}function zV(A){if(A[0]==="["){let B=A.indexOf("]");return yN(B!==-1),A.substring(1,B)}let Q=A.indexOf(":");if(Q===-1)return A;return A.substring(0,Q)}function HV(A){if(!A)return null;yN.strictEqual(typeof A,"string");let Q=zV(A);if(VV.isIP(Q))return"";return Q}function xV(A){return JSON.parse(JSON.stringify(A))}function jV(A){return A!=null&&typeof A[Symbol.asyncIterator]==="function"}function TV(A){return A!=null&&(typeof A[Symbol.iterator]==="function"||typeof A[Symbol.asyncIterator]==="function")}function hV(A){if(A==null)return 0;else if(D0(A)){let Q=A._readableState;return Q&&Q.objectMode===!1&&Q.ended===!0&&Number.isFinite(Q.length)?Q.length:null}else if(ON(A))return A.size!=null?A.size:null;else if(kN(A))return A.byteLength;return null}function F0(A){return!A||!!(A.destroyed||A[qN])}function _N(A){let Q=A&&A._readableState;return F0(A)&&Q&&!Q.endEmitted}function $V(A,Q){if(A==null||!D0(A)||F0(A))return;if(typeof A.destroy==="function"){if(Object.getPrototypeOf(A).constructor===LV)A.socket=null;A.destroy(Q)}else if(Q)process.nextTick((B,I)=>{B.emit("error",I)},A,Q);if(A.destroyed!==!0)A[qN]=!0}var yV=/timeout=(\d+)/;function qV(A){let Q=A.toString().match(yV);return Q?parseInt(Q[1],10)*1000:null}function OV(A){return ZV[A]||A.toLowerCase()}function PV(A,Q={}){if(!Array.isArray(A))return A;for(let B=0;B<A.length;B+=2){let I=A[B].toString().toLowerCase(),E=Q[I];if(!E)if(Array.isArray(A[B+1]))Q[I]=A[B+1].map((C)=>C.toString("utf8"));else Q[I]=A[B+1].toString("utf8");else{if(!Array.isArray(E))E=[E],Q[I]=E;E.push(A[B+1].toString("utf8"))}}if("content-length"in Q&&"content-disposition"in Q)Q["content-disposition"]=Buffer.from(Q["content-disposition"]).toString("latin1");return Q}function _V(A){let Q=[],B=!1,I=-1;for(let E=0;E<A.length;E+=2){let C=A[E+0].toString(),g=A[E+1].toString("utf8");if(C.length===14&&(C==="content-length"||C.toLowerCase()==="content-length"))Q.push(C,g),B=!0;else if(C.length===19&&(C==="content-disposition"||C.toLowerCase()==="content-disposition"))I=Q.push(C,g)-1;else Q.push(C,g)}if(B&&I!==-1)Q[I]=Buffer.from(Q[I]).toString("latin1");return Q}function kN(A){return A instanceof Uint8Array||Buffer.isBuffer(A)}function kV(A,Q,B){if(!A||typeof A!=="object")throw new XA("handler must be an object");if(typeof A.onConnect!=="function")throw new XA("invalid onConnect method");if(typeof A.onError!=="function")throw new XA("invalid onError method");if(typeof A.onBodySent!=="function"&&A.onBodySent!==void 0)throw new XA("invalid onBodySent method");if(B||Q==="CONNECT"){if(typeof A.onUpgrade!=="function")throw new XA("invalid onUpgrade method")}else{if(typeof A.onHeaders!=="function")throw new XA("invalid onHeaders method");if(typeof A.onData!=="function")throw new XA("invalid onData method");if(typeof A.onComplete!=="function")throw new XA("invalid onComplete method")}}function fV(A){return!!(A&&(AI.isDisturbed?AI.isDisturbed(A)||A[TN]:A[TN]||A.readableDidRead||A._readableState&&A._readableState.dataEmitted||_N(A)))}function vV(A){return!!(A&&(AI.isErrored?AI.isErrored(A):/state: 'errored'/.test(aE.inspect(A))))}function bV(A){return!!(A&&(AI.isReadable?AI.isReadable(A):/state: 'readable'/.test(aE.inspect(A))))}function mV(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*cV(A){for await(let Q of A)yield Buffer.isBuffer(Q)?Q:Buffer.from(Q)}var sI;function uV(A){if(!sI)sI=require("stream/web").ReadableStream;if(sI.from)return sI.from(cV(A));let Q;return new sI({async start(){Q=A[Symbol.asyncIterator]()},async pull(B){let{done:I,value:E}=await Q.next();if(I)queueMicrotask(()=>{B.close()});else{let C=Buffer.isBuffer(E)?E:Buffer.from(E);B.enqueue(new Uint8Array(C))}return B.desiredSize>0},async cancel(B){await Q.return()}},0)}function dV(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 pV(A){if(!A)return;if(typeof A.throwIfAborted==="function")A.throwIfAborted();else if(A.aborted){let Q=Error("The operation was aborted");throw Q.name="AbortError",Q}}function lV(A,Q){if("addEventListener"in A)return A.addEventListener("abort",Q,{once:!0}),()=>A.removeEventListener("abort",Q);return A.addListener("abort",Q),()=>A.removeListener("abort",Q)}var iV=!!String.prototype.toWellFormed;function nV(A){if(iV)return`${A}`.toWellFormed();else if(aE.toUSVString)return aE.toUSVString(A);return`${A}`}function aV(A){if(A==null||A==="")return{start:0,end:null,size:null};let Q=A?A.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return Q?{start:parseInt(Q[1]),end:Q[2]?parseInt(Q[2]):null,size:Q[3]?parseInt(Q[3]):null}:null}var fN=Object.create(null);fN.enumerable=!0;vN.exports={kEnumerableProperty:fN,nop:XV,isDisturbed:fV,isErrored:vV,isReadable:bV,toUSVString:nV,isReadableAborted:_N,isBlobLike:ON,parseOrigin:SV,parseURL:PN,getServerName:HV,isStream:D0,isIterable:TV,isAsyncIterable:jV,isDestroyed:F0,headerNameToString:OV,parseRawHeaders:_V,parseHeaders:PV,parseKeepAliveTimeout:qV,destroy:$V,bodyLength:hV,deepClone:xV,ReadableStreamFrom:uV,isBuffer:kN,validateHandler:kV,getSocketInfo:mV,isFormDataLike:dV,buildURL:KV,throwIfAborted:pV,addAbortListener:lV,parseRangeHeader:aV,nodeMajor:g0,nodeMinor:$N,nodeHasAutoSelectFamily:g0>18||g0===18&&$N>=13,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"]}});var cN=R(($7,mN)=>{var N0=Date.now(),UB,GB=[];function oV(){N0=Date.now();let A=GB.length,Q=0;while(Q<A){let B=GB[Q];if(B.state===0)B.state=N0+B.delay;else if(B.state>0&&N0>=B.state)B.state=-1,B.callback(B.opaque);if(B.state===-1){if(B.state=-2,Q!==A-1)GB[Q]=GB.pop();else GB.pop();A-=1}else Q+=1}if(GB.length>0)bN()}function bN(){if(UB&&UB.refresh)UB.refresh();else if(clearTimeout(UB),UB=setTimeout(oV,1000),UB.unref)UB.unref()}class Y0{constructor(A,Q,B){this.callback=A,this.delay=Q,this.opaque=B,this.state=-2,this.refresh()}refresh(){if(this.state===-2){if(GB.push(this),!UB||GB.length===1)bN()}this.state=0}clear(){this.state=-1}}mN.exports={setTimeout(A,Q,B){return Q<1000?setTimeout(A,Q,B):new Y0(A,Q,B)},clearTimeout(A){if(A instanceof Y0)A.clear();else clearTimeout(A)}}});var J0=R((y7,uN)=>{var sV=require("node:events").EventEmitter,rV=require("node:util").inherits;function TB(A){if(typeof A==="string")A=Buffer.from(A);if(!Buffer.isBuffer(A))throw TypeError("The needle has to be a String or a Buffer.");let Q=A.length;if(Q===0)throw Error("The needle cannot be an empty String/Buffer.");if(Q>256)throw Error("The needle cannot have a length bigger than 256.");this.maxMatches=1/0,this.matches=0,this._occ=Array(256).fill(Q),this._lookbehind_size=0,this._needle=A,this._bufpos=0,this._lookbehind=Buffer.alloc(Q);for(var B=0;B<Q-1;++B)this._occ[A[B]]=Q-1-B}rV(TB,sV);TB.prototype.reset=function(){this._lookbehind_size=0,this.matches=0,this._bufpos=0};TB.prototype.push=function(A,Q){if(!Buffer.isBuffer(A))A=Buffer.from(A,"binary");let B=A.length;this._bufpos=Q||0;let I;while(I!==B&&this.matches<this.maxMatches)I=this._sbmh_feed(A);return I};TB.prototype._sbmh_feed=function(A){let Q=A.length,B=this._needle,I=B.length,E=B[I-1],C=-this._lookbehind_size,g;if(C<0){while(C<0&&C<=Q-I){if(g=this._sbmh_lookup_char(A,C+I-1),g===E&&this._sbmh_memcmp(A,C,I-1))return this._lookbehind_size=0,++this.matches,this.emit("info",!0),this._bufpos=C+I;C+=this._occ[g]}if(C<0)while(C<0&&!this._sbmh_memcmp(A,C,Q-C))++C;if(C>=0)this.emit("info",!1,this._lookbehind,0,this._lookbehind_size),this._lookbehind_size=0;else{let D=this._lookbehind_size+C;if(D>0)this.emit("info",!1,this._lookbehind,0,D);return this._lookbehind.copy(this._lookbehind,0,D,this._lookbehind_size-D),this._lookbehind_size-=D,A.copy(this._lookbehind,this._lookbehind_size),this._lookbehind_size+=Q,this._bufpos=Q,Q}}if(C+=(C>=0)*this._bufpos,A.indexOf(B,C)!==-1){if(C=A.indexOf(B,C),++this.matches,C>0)this.emit("info",!0,A,this._bufpos,C);else this.emit("info",!0);return this._bufpos=C+I}else C=Q-I;while(C<Q&&(A[C]!==B[0]||Buffer.compare(A.subarray(C,C+Q-C),B.subarray(0,Q-C))!==0))++C;if(C<Q)A.copy(this._lookbehind,0,C,C+(Q-C)),this._lookbehind_size=Q-C;if(C>0)this.emit("info",!1,A,this._bufpos,C<Q?C:Q);return this._bufpos=Q,Q};TB.prototype._sbmh_lookup_char=function(A,Q){return Q<0?this._lookbehind[this._lookbehind_size+Q]:A[Q]};TB.prototype._sbmh_memcmp=function(A,Q,B){for(var I=0;I<B;++I)if(this._sbmh_lookup_char(A,Q+I)!==this._needle[I])return!1;return!0};uN.exports=TB});var lN=R((q7,pN)=>{var tV=require("node:util").inherits,dN=require("node:stream").Readable;function U0(A){dN.call(this,A)}tV(U0,dN);U0.prototype._read=function(A){};pN.exports=U0});var oE=R((O7,iN)=>{iN.exports=function(Q,B,I){if(!Q||Q[B]===void 0||Q[B]===null)return I;if(typeof Q[B]!=="number"||isNaN(Q[B]))throw TypeError("Limit "+B+" is not a valid number");return Q[B]}});var sN=R((P7,oN)=>{var aN=require("node:events").EventEmitter,eV=require("node:util").inherits,nN=oE(),AW=J0(),QW=Buffer.from(`\r \r `),BW=/\r\n/g,IW=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function QI(A){aN.call(this),A=A||{};let Q=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=nN(A,"maxHeaderPairs",2000),this.maxHeaderSize=nN(A,"maxHeaderSize",81920),this.buffer="",this.header={},this.finished=!1,this.ss=new AW(QW),this.ss.on("info",function(B,I,E,C){if(I&&!Q.maxed){if(Q.nread+C-E>=Q.maxHeaderSize)C=Q.maxHeaderSize-Q.nread+E,Q.nread=Q.maxHeaderSize,Q.maxed=!0;else Q.nread+=C-E;Q.buffer+=I.toString("binary",E,C)}if(B)Q._finish()})}eV(QI,aN);QI.prototype.push=function(A){let Q=this.ss.push(A);if(this.finished)return Q};QI.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};QI.prototype._finish=function(){if(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)};QI.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let A=this.buffer.split(BW),Q=A.length,B,I;for(var E=0;E<Q;++E){if(A[E].length===0)continue;if(A[E][0]==="\t"||A[E][0]===" "){if(I){this.header[I][this.header[I].length-1]+=A[E];continue}}let C=A[E].indexOf(":");if(C===-1||C===0)return;if(B=IW.exec(A[E]),I=B[1].toLowerCase(),this.header[I]=this.header[I]||[],this.header[I].push(B[2]||""),++this.npairs===this.maxHeaderPairs)break}};oN.exports=QI});var R0=R((_7,tN)=>{var G0=require("node:stream").Writable,EW=require("node:util").inherits,CW=J0(),rN=lN(),gW=sN(),DW=Buffer.from("-"),FW=Buffer.from(`\r `),NW=function(){};function SQ(A){if(!(this instanceof SQ))return new SQ(A);if(G0.call(this,A),!A||!A.headerFirst&&typeof A.boundary!=="string")throw TypeError("Boundary required");if(typeof A.boundary==="string")this.setBoundary(A.boundary);else 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 Q=this;this._hparser=new gW(A),this._hparser.on("header",function(B){Q._inHeader=!1,Q._part.emit("header",B)})}EW(SQ,G0);SQ.prototype.emit=function(A){if(A==="finish"&&!this._realFinish){if(!this._finished){let Q=this;process.nextTick(function(){if(Q.emit("error",Error("Unexpected end of multipart data")),Q._part&&!Q._ignoreData){let B=Q._isPreamble?"Preamble":"Part";Q._part.emit("error",Error(B+" terminated early due to unexpected end of multipart data")),Q._part.push(null),process.nextTick(function(){Q._realFinish=!0,Q.emit("finish"),Q._realFinish=!1});return}Q._realFinish=!0,Q.emit("finish"),Q._realFinish=!1})}}else G0.prototype.emit.apply(this,arguments)};SQ.prototype._write=function(A,Q,B){if(!this._hparser&&!this._bparser)return B();if(this._headerFirst&&this._isPreamble){if(!this._part)if(this._part=new rN(this._partOpts),this.listenerCount("preamble")!==0)this.emit("preamble",this._part);else this._ignore();let I=this._hparser.push(A);if(!this._inHeader&&I!==void 0&&I<A.length)A=A.slice(I);else return B()}if(this._firstWrite)this._bparser.push(FW),this._firstWrite=!1;if(this._bparser.push(A),this._pause)this._cb=B;else B()};SQ.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};SQ.prototype.setBoundary=function(A){let Q=this;this._bparser=new CW(`\r --`+A),this._bparser.on("info",function(B,I,E,C){Q._oninfo(B,I,E,C)})};SQ.prototype._ignore=function(){if(this._part&&!this._ignoreData)this._ignoreData=!0,this._part.on("error",NW),this._part.resume()};SQ.prototype._oninfo=function(A,Q,B,I){let E,C=this,g=0,D,F=!0;if(!this._part&&this._justMatched&&Q){while(this._dashes<2&&B+g<I)if(Q[B+g]===45)++g,++this._dashes;else{if(this._dashes)E=DW;this._dashes=0;break}if(this._dashes===2){if(B+g<I&&this.listenerCount("trailer")!==0)this.emit("trailer",Q.slice(B+g,I));if(this.reset(),this._finished=!0,C._parts===0)C._realFinish=!0,C.emit("finish"),C._realFinish=!1}if(this._dashes)return}if(this._justMatched)this._justMatched=!1;if(!this._part){if(this._part=new rN(this._partOpts),this._part._read=function(Y){C._unpause()},this._isPreamble&&this.listenerCount("preamble")!==0)this.emit("preamble",this._part);else if(this._isPreamble!==!0&&this.listenerCount("part")!==0)this.emit("part",this._part);else this._ignore();if(!this._isPreamble)this._inHeader=!0}if(Q&&B<I&&!this._ignoreData){if(this._isPreamble||!this._inHeader){if(E)F=this._part.push(E);if(F=this._part.push(Q.slice(B,I)),!F)this._pause=!0}else if(!this._isPreamble&&this._inHeader){if(E)this._hparser.push(E);if(D=this._hparser.push(Q.slice(B,I)),!this._inHeader&&D!==void 0&&D<I)this._oninfo(!1,Q,B+D,I)}}if(A){if(this._hparser.reset(),this._isPreamble)this._isPreamble=!1;else if(B!==I)++this._parts,this._part.on("end",function(){if(--C._parts===0)if(C._finished)C._realFinish=!0,C.emit("finish"),C._realFinish=!1;else C._unpause()});this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0}};SQ.prototype._unpause=function(){if(!this._pause)return;if(this._pause=!1,this._cb){let A=this._cb;this._cb=void 0,A()}};tN.exports=SQ});var sE=R((w0,QY)=>{var eN=new TextDecoder("utf-8"),AY=new Map([["utf-8",eN],["utf8",eN]]);function YW(A){let Q;while(!0)switch(A){case"utf-8":case"utf8":return rI.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 rI.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return rI.utf16le;case"base64":return rI.base64;default:if(Q===void 0){Q=!0,A=A.toLowerCase();continue}return rI.other.bind(A)}}var rI={utf8:(A,Q)=>{if(A.length===0)return"";if(typeof A==="string")A=Buffer.from(A,Q);return A.utf8Slice(0,A.length)},latin1:(A,Q)=>{if(A.length===0)return"";if(typeof A==="string")return A;return A.latin1Slice(0,A.length)},utf16le:(A,Q)=>{if(A.length===0)return"";if(typeof A==="string")A=Buffer.from(A,Q);return A.ucs2Slice(0,A.length)},base64:(A,Q)=>{if(A.length===0)return"";if(typeof A==="string")A=Buffer.from(A,Q);return A.base64Slice(0,A.length)},other:(A,Q)=>{if(A.length===0)return"";if(typeof A==="string")A=Buffer.from(A,Q);if(AY.has(w0.toString()))try{return AY.get(w0).decode(A)}catch{}return typeof A==="string"?A:A.toString()}};function JW(A,Q,B){if(A)return YW(B)(A,Q);return A}QY.exports=JW});var L0=R((k7,gY)=>{var rE=sE(),BY=/%[a-fA-F0-9][a-fA-F0-9]/g,UW={"%00":"\x00","%01":"\x01","%02":"\x02","%03":"\x03","%04":"\x04","%05":"\x05","%06":"\x06","%07":"\x07","%08":"\b","%09":"\t","%0a":` `,"%0A":` `,"%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"\x0E","%0E":"\x0E","%0f":"\x0F","%0F":"\x0F","%10":"\x10","%11":"\x11","%12":"\x12","%13":"\x13","%14":"\x14","%15":"\x15","%16":"\x16","%17":"\x17","%18":"\x18","%19":"\x19","%1a":"\x1A","%1A":"\x1A","%1b":"\x1B","%1B":"\x1B","%1c":"\x1C","%1C":"\x1C","%1d":"\x1D","%1D":"\x1D","%1e":"\x1E","%1E":"\x1E","%1f":"\x1F","%1F":"\x1F","%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":"","%7F":"","%80":"€","%81":"","%82":"‚","%83":"ƒ","%84":"„","%85":"…","%86":"†","%87":"‡","%88":"ˆ","%89":"‰","%8a":"Š","%8A":"Š","%8b":"‹","%8B":"‹","%8c":"Œ","%8C":"Œ","%8d":"","%8D":"","%8e":"Ž","%8E":"Ž","%8f":"","%8F":"","%90":"","%91":"‘","%92":"’","%93":"“","%94":"”","%95":"•","%96":"–","%97":"—","%98":"˜","%99":"™","%9a":"š","%9A":"š","%9b":"›","%9B":"›","%9c":"œ","%9C":"œ","%9d":"","%9D":"","%9e":"ž","%9E":"ž","%9f":"Ÿ","%9F":"Ÿ","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"­","%Ad":"­","%aD":"­","%AD":"­","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"¶","%B6":"¶","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%Fd":"ý","%fD":"ý","%FD":"ý","%fe":"þ","%Fe":"þ","%fE":"þ","%FE":"þ","%ff":"ÿ","%Ff":"ÿ","%fF":"ÿ","%FF":"ÿ"};function IY(A){return UW[A]}var tE=0,EY=1,M0=2,CY=3;function GW(A){let Q=[],B=tE,I="",E=!1,C=!1,g=0,D="",F=A.length;for(var Y=0;Y<F;++Y){let N=A[Y];if(N==="\\"&&E)if(C)C=!1;else{C=!0;continue}else if(N==='"')if(!C){if(E)E=!1,B=tE;else E=!0;continue}else C=!1;else{if(C&&E)D+="\\";if(C=!1,(B===M0||B===CY)&&N==="'"){if(B===M0)B=CY,I=D.substring(1);else B=EY;D="";continue}else if(B===tE&&(N==="*"||N==="=")&&Q.length){B=N==="*"?M0:EY,Q[g]=[D,void 0],D="";continue}else if(!E&&N===";"){if(B=tE,I){if(D.length)D=rE(D.replace(BY,IY),"binary",I);I=""}else if(D.length)D=rE(D,"binary","utf8");if(Q[g]===void 0)Q[g]=D;else Q[g][1]=D;D="",++g;continue}else if(!E&&(N===" "||N==="\t"))continue}D+=N}if(I&&D.length)D=rE(D.replace(BY,IY),"binary",I);else if(D)D=rE(D,"binary","utf8");if(Q[g]===void 0){if(D)Q[g]=D}else Q[g][1]=D;return Q}gY.exports=GW});var FY=R((f7,DY)=>{DY.exports=function(Q){if(typeof Q!=="string")return"";for(var B=Q.length-1;B>=0;--B)switch(Q.charCodeAt(B)){case 47:case 92:return Q=Q.slice(B+1),Q===".."||Q==="."?"":Q}return Q===".."||Q==="."?"":Q}});var UY=R((v7,JY)=>{var{Readable:YY}=require("node:stream"),{inherits:RW}=require("node:util"),wW=R0(),NY=L0(),MW=sE(),LW=FY(),hB=oE(),VW=/^boundary$/i,WW=/^form-data$/i,ZW=/^charset$/i,XW=/^filename$/i,KW=/^name$/i;eE.detect=/^multipart\/form-data/i;function eE(A,Q){let B,I,E=this,C,g=Q.limits,D=Q.isPartAFile||((mA,s,CA)=>s==="application/octet-stream"||CA!==void 0),F=Q.parsedConType||[],Y=Q.defCharset||"utf8",N=Q.preservePath,J={highWaterMark:Q.fileHwm};for(B=0,I=F.length;B<I;++B)if(Array.isArray(F[B])&&VW.test(F[B][0])){C=F[B][1];break}function U(){if(VA===0&&bA&&!A._done)bA=!1,E.end()}if(typeof C!=="string")throw Error("Multipart: Boundary not found");let G=hB(g,"fieldSize",1048576),w=hB(g,"fileSize",1/0),M=hB(g,"files",1/0),L=hB(g,"fields",1/0),z=hB(g,"parts",1/0),x=hB(g,"headerPairs",2000),q=hB(g,"headerSize",81920),k=0,eA=0,VA=0,wA,AQ,bA=!1;this._needDrain=!1,this._pause=!1,this._cb=void 0,this._nparts=0,this._boy=A;let QQ={boundary:C,maxHeaderPairs:x,maxHeaderSize:q,partHwm:J.highWaterMark,highWaterMark:Q.highWaterMark};this.parser=new wW(QQ),this.parser.on("drain",function(){if(E._needDrain=!1,E._cb&&!E._pause){let mA=E._cb;E._cb=void 0,mA()}}).on("part",function mA(s){if(++E._nparts>z)return E.parser.removeListener("part",mA),E.parser.on("part",BI),A.hitPartsLimit=!0,A.emit("partsLimit"),BI(s);if(AQ){let CA=AQ;CA.emit("end"),CA.removeAllListeners("end")}s.on("header",function(CA){let cA,YB,BQ,dE,pE,nI,aI=0;if(CA["content-type"]){if(BQ=NY(CA["content-type"][0]),BQ[0]){cA=BQ[0].toLowerCase();for(B=0,I=BQ.length;B<I;++B)if(ZW.test(BQ[B][0])){dE=BQ[B][1].toLowerCase();break}}}if(cA===void 0)cA="text/plain";if(dE===void 0)dE=Y;if(CA["content-disposition"]){if(BQ=NY(CA["content-disposition"][0]),!WW.test(BQ[0]))return BI(s);for(B=0,I=BQ.length;B<I;++B)if(KW.test(BQ[B][0]))YB=BQ[B][1];else if(XW.test(BQ[B][0])){if(nI=BQ[B][1],!N)nI=LW(nI)}}else return BI(s);if(CA["content-transfer-encoding"])pE=CA["content-transfer-encoding"][0].toLowerCase();else pE="7bit";let _g,kg;if(D(YB,cA,nI)){if(k===M){if(!A.hitFilesLimit)A.hitFilesLimit=!0,A.emit("filesLimit");return BI(s)}if(++k,A.listenerCount("file")===0){E.parser._ignore();return}++VA;let WA=new V0(J);wA=WA,WA.on("end",function(){if(--VA,E._pause=!1,U(),E._cb&&!E._needDrain){let hQ=E._cb;E._cb=void 0,hQ()}}),WA._read=function(hQ){if(!E._pause)return;if(E._pause=!1,E._cb&&!E._needDrain){let nQ=E._cb;E._cb=void 0,nQ()}},A.emit("file",YB,WA,nI,pE,cA),_g=function(hQ){if((aI+=hQ.length)>w){let nQ=w-aI+hQ.length;if(nQ>0)WA.push(hQ.slice(0,nQ));WA.truncated=!0,WA.bytesRead=w,s.removeAllListeners("data"),WA.emit("limit");return}else if(!WA.push(hQ))E._pause=!0;WA.bytesRead=aI},kg=function(){wA=void 0,WA.push(null)}}else{if(eA===L){if(!A.hitFieldsLimit)A.hitFieldsLimit=!0,A.emit("fieldsLimit");return BI(s)}++eA,++VA;let WA="",hQ=!1;AQ=s,_g=function(nQ){if((aI+=nQ.length)>G){let uL=G-(aI-nQ.length);WA+=nQ.toString("binary",0,uL),hQ=!0,s.removeAllListeners("data")}else WA+=nQ.toString("binary")},kg=function(){if(AQ=void 0,WA.length)WA=MW(WA,"binary",dE);A.emit("field",YB,WA,!1,hQ,pE,cA),--VA,U()}}s._readableState.sync=!1,s.on("data",_g),s.on("end",kg)}).on("error",function(CA){if(wA)wA.emit("error",CA)})}).on("error",function(mA){A.emit("error",mA)}).on("finish",function(){bA=!0,U()})}eE.prototype.write=function(A,Q){let B=this.parser.write(A);if(B&&!this._pause)Q();else this._needDrain=!B,this._cb=Q};eE.prototype.end=function(){let A=this;if(A.parser.writable)A.parser.end();else if(!A._boy._done)process.nextTick(function(){A._boy._done=!0,A._boy.emit("finish")})};function BI(A){A.resume()}function V0(A){YY.call(this,A),this.bytesRead=0,this.truncated=!1}RW(V0,YY);V0.prototype._read=function(A){};JY.exports=eE});var RY=R((b7,GY)=>{var SW=/\+/g,zW=[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 W0(){this.buffer=void 0}W0.prototype.write=function(A){A=A.replace(SW," ");let Q="",B=0,I=0,E=A.length;for(;B<E;++B)if(this.buffer!==void 0){if(!zW[A.charCodeAt(B)])Q+="%"+this.buffer,this.buffer=void 0,--B;else if(this.buffer+=A[B],++I,this.buffer.length===2)Q+=String.fromCharCode(parseInt(this.buffer,16)),this.buffer=void 0}else if(A[B]==="%"){if(B>I)Q+=A.substring(I,B),I=B;this.buffer="",++I}if(I<E&&this.buffer===void 0)Q+=A.substring(I);return Q};W0.prototype.reset=function(){this.buffer=void 0};GY.exports=W0});var MY=R((m7,wY)=>{var HW=RY(),II=sE(),Z0=oE(),xW=/^charset$/i;AC.detect=/^application\/x-www-form-urlencoded/i;function AC(A,Q){let{limits:B,parsedConType:I}=Q;this.boy=A,this.fieldSizeLimit=Z0(B,"fieldSize",1048576),this.fieldNameSizeLimit=Z0(B,"fieldNameSize",100),this.fieldsLimit=Z0(B,"fields",1/0);let E;for(var C=0,g=I.length;C<g;++C)if(Array.isArray(I[C])&&xW.test(I[C][0])){E=I[C][1].toLowerCase();break}if(E===void 0)E=Q.defCharset||"utf8";this.decoder=new HW,this.charset=E,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}AC.prototype.write=function(A,Q){if(this._fields===this.fieldsLimit){if(!this.boy.hitFieldsLimit)this.boy.hitFieldsLimit=!0,this.boy.emit("fieldsLimit");return Q()}let B,I,E,C=0,g=A.length;while(C<g)if(this._state==="key"){B=I=void 0;for(E=C;E<g;++E){if(!this._checkingBytes)++C;if(A[E]===61){B=E;break}else if(A[E]===38){I=E;break}if(this._checkingBytes&&this._bytesKey===this.fieldNameSizeLimit){this._hitLimit=!0;break}else if(this._checkingBytes)++this._bytesKey}if(B!==void 0){if(B>C)this._key+=this.decoder.write(A.toString("binary",C,B));this._state="val",this._hitLimit=!1,this._checkingBytes=!0,this._val="",this._bytesVal=0,this._valTrunc=!1,this.decoder.reset(),C=B+1}else if(I!==void 0){++this._fields;let D,F=this._keyTrunc;if(I>C)D=this._key+=this.decoder.write(A.toString("binary",C,I));else D=this._key;if(this._hitLimit=!1,this._checkingBytes=!0,this._key="",this._bytesKey=0,this._keyTrunc=!1,this.decoder.reset(),D.length)this.boy.emit("field",II(D,"binary",this.charset),"",F,!1);if(C=I+1,this._fields===this.fieldsLimit)return Q()}else if(this._hitLimit){if(E>C)this._key+=this.decoder.write(A.toString("binary",C,E));if(C=E,(this._bytesKey=this._key.length)===this.fieldNameSizeLimit)this._checkingBytes=!1,this._keyTrunc=!0}else{if(C<g)this._key+=this.decoder.write(A.toString("binary",C));C=g}}else{I=void 0;for(E=C;E<g;++E){if(!this._checkingBytes)++C;if(A[E]===38){I=E;break}if(this._checkingBytes&&this._bytesVal===this.fieldSizeLimit){this._hitLimit=!0;break}else if(this._checkingBytes)++this._bytesVal}if(I!==void 0){if(++this._fields,I>C)this._val+=this.decoder.write(A.toString("binary",C,I));if(this.boy.emit("field",II(this._key,"binary",this.charset),II(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(),C=I+1,this._fields===this.fieldsLimit)return Q()}else if(this._hitLimit){if(E>C)this._val+=this.decoder.write(A.toString("binary",C,E));if(C=E,this._val===""&&this.fieldSizeLimit===0||(this._bytesVal=this._val.length)===this.fieldSizeLimit)this._checkingBytes=!1,this._valTrunc=!0}else{if(C<g)this._val+=this.decoder.write(A.toString("binary",C));C=g}}Q()};AC.prototype.end=function(){if(this.boy._done)return;if(this._state==="key"&&this._key.length>0)this.boy.emit("field",II(this._key,"binary",this.charset),"",this._keyTrunc,!1);else if(this._state==="val")this.boy.emit("field",II(this._key,"binary",this.charset),II(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc);this.boy._done=!0,this.boy.emit("finish")};wY.exports=AC});var WY=R((c7,tI)=>{var X0=require("node:stream").Writable,{inherits:jW}=require("node:util"),TW=R0(),LY=UY(),VY=MY(),hW=L0();function oQ(A){if(!(this instan