From d338b4cacdc3bdd4ddd04718a7233b580ae21b73 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 21 Oct 2026 23:44:58 +0000 Subject: [PATCH 1/2] chore(deps): Bump @docker/actions-toolkit from 0.106.0 to 0.107.0 Bumps [@docker/actions-toolkit](https://github.com/docker/actions-toolkit) from 0.106.0 to 0.107.0. - [Release notes](https://github.com/docker/actions-toolkit/releases) - [Commits](https://github.com/docker/actions-toolkit/compare/v0.106.0...v0.107.0) --- updated-dependencies: - dependency-name: "@docker/actions-toolkit" dependency-version: 0.107.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package.json | 2 +- subaction/matrix/package.json | 2 +- yarn.lock | 31 +++++++++++++++++++------------ 3 files changed, 21 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index c775593..5e7ca7e 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "packageManager": "yarn@4.15.0", "dependencies": { "@actions/core": "^3.0.1", - "@docker/actions-toolkit": "^0.106.0", + "@docker/actions-toolkit": "^0.107.0", "handlebars": "^4.7.10" }, "devDependencies": { diff --git a/subaction/matrix/package.json b/subaction/matrix/package.json index 43d06e1..c32b635 100644 --- a/subaction/matrix/package.json +++ b/subaction/matrix/package.json @@ -17,7 +17,7 @@ "dependencies": { "@actions/core": "^3.0.1", "@actions/exec": "^3.0.0", - "@docker/actions-toolkit": "^0.106.0" + "@docker/actions-toolkit": "^0.107.0" }, "devDependencies": { "esbuild": "^0.28.0", diff --git a/yarn.lock b/yarn.lock index 3962508..642e0de 100644 --- a/yarn.lock +++ b/yarn.lock @@ -422,9 +422,9 @@ __metadata: languageName: node linkType: hard -"@docker/actions-toolkit@npm:^0.106.0": - version: 0.106.0 - resolution: "@docker/actions-toolkit@npm:0.106.0" +"@docker/actions-toolkit@npm:^0.107.0": + version: 0.107.0 + resolution: "@docker/actions-toolkit@npm:0.107.0" dependencies: "@actions/artifact": "npm:^6.3.1" "@actions/cache": "npm:^6.3.0" @@ -442,12 +442,12 @@ __metadata: gunzip-maybe: "npm:^1.4.2" handlebars: "npm:^4.7.10" he: "npm:^2.0.0" - js-yaml: "npm:^5.4.3" + js-yaml: "npm:^5.5.0" jwt-decode: "npm:^4.0.0" semver: "npm:^7.8.5" tar-stream: "npm:^3.2.2" tmp: "npm:^0.2.7" - checksum: 10/8897fc4950279cf09976c7ce0e0457ec28f99c5cf88aed7d9b72ba0e3b3016471eb3437ae374b95dab9e0a6d3e7143c5cfab45dd13f870847d4cdb0e9565ea37 + checksum: 10/bb43d11ece07be4b07613ea3e4a308233a7daa789cb3f54cf3d399f08ae7f1ad9756bb72457ea5e28408b838787fed0221921be4ed9ae135e55608f66b250b4f languageName: node linkType: hard @@ -2257,6 +2257,13 @@ __metadata: languageName: node linkType: hard +"argparse@npm:^3.0.3": + version: 3.0.3 + resolution: "argparse@npm:3.0.3" + checksum: 10/6834e247fe8a8d21a0061dc2b7134ae79625d9ab795eca043d8ba9434be3bc1e7d049c9a4aa01bd3d6bfc145b29addfb290d17b8b3f7b11710cc52ab13629f31 + languageName: node + linkType: hard + "assertion-error@npm:^2.0.1": version: 2.0.1 resolution: "assertion-error@npm:2.0.1" @@ -2863,7 +2870,7 @@ __metadata: dependencies: "@actions/core": "npm:^3.0.1" "@actions/exec": "npm:^3.0.0" - "@docker/actions-toolkit": "npm:^0.106.0" + "@docker/actions-toolkit": "npm:^0.107.0" esbuild: "npm:^0.28.0" generate-license-file: "npm:^4.1.1" languageName: unknown @@ -2874,7 +2881,7 @@ __metadata: resolution: "docker-buildx-bake@workspace:." dependencies: "@actions/core": "npm:^3.0.1" - "@docker/actions-toolkit": "npm:^0.106.0" + "@docker/actions-toolkit": "npm:^0.107.0" "@eslint/js": "npm:^9.39.3" "@types/node": "npm:^24.11.0" "@typescript-eslint/eslint-plugin": "npm:^8.56.1" @@ -4029,14 +4036,14 @@ __metadata: languageName: node linkType: hard -"js-yaml@npm:^5.4.3": - version: 5.4.3 - resolution: "js-yaml@npm:5.4.3" +"js-yaml@npm:^5.5.0": + version: 5.5.0 + resolution: "js-yaml@npm:5.5.0" dependencies: - argparse: "npm:^2.0.1" + argparse: "npm:^3.0.3" bin: js-yaml: bin/js-yaml.mjs - checksum: 10/2409d1238efddc29ab62ddb26d70bc7f2e8b58b84eb8d41d09d50fab86f8670aa2fec5dc6c99ef71939acab5d7c0b3526f96bdd0055042aa0136cca749b20afc + checksum: 10/c01359a4fe69a1c032e9e57d7387a1cbdfbbd45bc69924885a3c9a9a020e066627dc125f7b46f7b929186b5a65471ae5fa478d3f773e35f7ccdf57d32fcf369f languageName: node linkType: hard From cd1f4ac688ab6410536570483174a6725f051fc9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 21 Oct 2026 23:45:55 +0000 Subject: [PATCH 2/2] [dependabot skip] chore: update generated content --- dist/index.cjs | 290 ++++++++++++++++++++-------------------- dist/index.cjs.map | 6 +- dist/licenses.txt | 323 ++++++++------------------------------------- 3 files changed, 206 insertions(+), 413 deletions(-) diff --git a/dist/index.cjs b/dist/index.cjs index c936226..44d6951 100644 --- a/dist/index.cjs +++ b/dist/index.cjs @@ -1,80 +1,80 @@ -var xLe=Object.create;var sB=Object.defineProperty;var vLe=Object.getOwnPropertyDescriptor;var NLe=Object.getOwnPropertyNames;var RLe=Object.getPrototypeOf,_Le=Object.prototype.hasOwnProperty;var o=(t,e)=>sB(t,"name",{value:e,configurable:!0});var g=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),TLe=(t,e)=>{for(var r in e)sB(t,r,{get:e[r],enumerable:!0})},DLe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of NLe(e))!_Le.call(t,i)&&i!==r&&sB(t,i,{get:()=>e[i],enumerable:!(n=vLe(e,i))||n.enumerable});return t};var T=(t,e,r)=>(r=t!=null?xLe(RLe(t)):{},DLe(e||!t||!t.__esModule?sB(r,"default",{value:t,enumerable:!0}):r,t));var $K=g(RA=>{"use strict";var w3t=require("net"),FLe=require("tls"),EP=require("http"),HK=require("https"),MLe=require("events"),I3t=require("assert"),ULe=require("util");RA.httpOverHttp=qLe;RA.httpsOverHttp=GLe;RA.httpOverHttps=HLe;RA.httpsOverHttps=zLe;function qLe(t){var e=new ql(t);return e.request=EP.request,e}o(qLe,"httpOverHttp");function GLe(t){var e=new ql(t);return e.request=EP.request,e.createSocket=zK,e.defaultPort=443,e}o(GLe,"httpsOverHttp");function HLe(t){var e=new ql(t);return e.request=HK.request,e}o(HLe,"httpOverHttps");function zLe(t){var e=new ql(t);return e.request=HK.request,e.createSocket=zK,e.defaultPort=443,e}o(zLe,"httpsOverHttps");function ql(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||EP.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(n,i,s,a){for(var c=VK(i,s,a),l=0,u=e.requests.length;l=this.maxSockets){s.requests.push(a);return}s.createSocket(a,function(c){c.on("free",l),c.on("close",u),c.on("agentRemove",u),e.onSocket(c);function l(){s.emit("free",c,a)}o(l,"onFree");function u(d){s.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}o(u,"onCloseOrRemove")})},"addRequest");ql.prototype.createSocket=o(function(e,r){var n=this,i={};n.sockets.push(i);var s=CP({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(s.localAddress=e.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")),td("making CONNECT request");var a=n.request(s);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",d),a.end();function c(f){f.upgrade=!0}o(c,"onResponse");function l(f,h,p){process.nextTick(function(){u(f,h,p)})}o(l,"onUpgrade");function u(f,h,p){if(a.removeAllListeners(),h.removeAllListeners(),f.statusCode!==200){td("tunneling socket could not be established, statusCode=%d",f.statusCode),h.destroy();var m=new Error("tunneling socket could not be established, statusCode="+f.statusCode);m.code="ECONNRESET",e.request.emit("error",m),n.removeSocket(i);return}if(p.length>0){td("got illegal response body from proxy"),h.destroy();var m=new Error("got illegal response body from proxy");m.code="ECONNRESET",e.request.emit("error",m),n.removeSocket(i);return}return td("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=h,r(h)}o(u,"onConnect");function d(f){a.removeAllListeners(),td(`tunneling socket could not be established, cause=%s -`,f.message,f.stack);var h=new Error("tunneling socket could not be established, cause="+f.message);h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(i)}o(d,"onError")},"createSocket");ql.prototype.removeSocket=o(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(i){n.request.onSocket(i)})}},"removeSocket");function zK(t,e){var r=this;ql.prototype.createSocket.call(r,t,function(n){var i=t.request.getHeader("host"),s=CP({},r.options,{socket:n,servername:i?i.replace(/:.*$/,""):t.host}),a=FLe.connect(0,s);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}o(zK,"createSecureSocket");function VK(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(VK,"toOptions");function CP(t){for(var e=1,r=arguments.length;e{jK.exports=$K()});var cr=g((v3t,WK)=>{WK.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"),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"),kBody:Symbol("abstracted request body"),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"),kResume:Symbol("resume"),kOnError:Symbol("on error"),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"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var xt=g((N3t,E7)=>{"use strict";var JK=Symbol.for("undici.error.UND_ERR"),lr=class extends Error{static{o(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[JK]===!0}[JK]=!0},YK=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),bP=class extends lr{static{o(this,"ConnectTimeoutError")}constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[YK]===!0}[YK]=!0},KK=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),wP=class extends lr{static{o(this,"HeadersTimeoutError")}constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[KK]===!0}[KK]=!0},XK=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),IP=class extends lr{static{o(this,"HeadersOverflowError")}constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[XK]===!0}[XK]=!0},ZK=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),SP=class extends lr{static{o(this,"BodyTimeoutError")}constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[ZK]===!0}[ZK]=!0},e7=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),BP=class extends lr{static{o(this,"ResponseStatusCodeError")}constructor(e,r,n,i){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=i,this.status=r,this.statusCode=r,this.headers=n}static[Symbol.hasInstance](e){return e&&e[e7]===!0}[e7]=!0},t7=Symbol.for("undici.error.UND_ERR_INVALID_ARG"),xP=class extends lr{static{o(this,"InvalidArgumentError")}constructor(e){super(e),this.name="InvalidArgumentError",this.message=e||"Invalid Argument Error",this.code="UND_ERR_INVALID_ARG"}static[Symbol.hasInstance](e){return e&&e[t7]===!0}[t7]=!0},r7=Symbol.for("undici.error.UND_ERR_INVALID_RETURN_VALUE"),vP=class extends lr{static{o(this,"InvalidReturnValueError")}constructor(e){super(e),this.name="InvalidReturnValueError",this.message=e||"Invalid Return Value Error",this.code="UND_ERR_INVALID_RETURN_VALUE"}static[Symbol.hasInstance](e){return e&&e[r7]===!0}[r7]=!0},n7=Symbol.for("undici.error.UND_ERR_ABORT"),uB=class extends lr{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError",this.message=e||"The operation was aborted",this.code="UND_ERR_ABORT"}static[Symbol.hasInstance](e){return e&&e[n7]===!0}[n7]=!0},i7=Symbol.for("undici.error.UND_ERR_ABORTED"),NP=class extends uB{static{o(this,"RequestAbortedError")}constructor(e){super(e),this.name="AbortError",this.message=e||"Request aborted",this.code="UND_ERR_ABORTED"}static[Symbol.hasInstance](e){return e&&e[i7]===!0}[i7]=!0},s7=Symbol.for("undici.error.UND_ERR_INFO"),RP=class extends lr{static{o(this,"InformationalError")}constructor(e){super(e),this.name="InformationalError",this.message=e||"Request information",this.code="UND_ERR_INFO"}static[Symbol.hasInstance](e){return e&&e[s7]===!0}[s7]=!0},o7=Symbol.for("undici.error.UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"),_P=class extends lr{static{o(this,"RequestContentLengthMismatchError")}constructor(e){super(e),this.name="RequestContentLengthMismatchError",this.message=e||"Request body length does not match content-length header",this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}static[Symbol.hasInstance](e){return e&&e[o7]===!0}[o7]=!0},a7=Symbol.for("undici.error.UND_ERR_RES_CONTENT_LENGTH_MISMATCH"),TP=class extends lr{static{o(this,"ResponseContentLengthMismatchError")}constructor(e){super(e),this.name="ResponseContentLengthMismatchError",this.message=e||"Response body length does not match content-length header",this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}static[Symbol.hasInstance](e){return e&&e[a7]===!0}[a7]=!0},c7=Symbol.for("undici.error.UND_ERR_DESTROYED"),DP=class extends lr{static{o(this,"ClientDestroyedError")}constructor(e){super(e),this.name="ClientDestroyedError",this.message=e||"The client is destroyed",this.code="UND_ERR_DESTROYED"}static[Symbol.hasInstance](e){return e&&e[c7]===!0}[c7]=!0},l7=Symbol.for("undici.error.UND_ERR_CLOSED"),QP=class extends lr{static{o(this,"ClientClosedError")}constructor(e){super(e),this.name="ClientClosedError",this.message=e||"The client is closed",this.code="UND_ERR_CLOSED"}static[Symbol.hasInstance](e){return e&&e[l7]===!0}[l7]=!0},u7=Symbol.for("undici.error.UND_ERR_SOCKET"),kP=class extends lr{static{o(this,"SocketError")}constructor(e,r){super(e),this.name="SocketError",this.message=e||"Socket error",this.code="UND_ERR_SOCKET",this.socket=r}static[Symbol.hasInstance](e){return e&&e[u7]===!0}[u7]=!0},d7=Symbol.for("undici.error.UND_ERR_NOT_SUPPORTED"),PP=class extends lr{static{o(this,"NotSupportedError")}constructor(e){super(e),this.name="NotSupportedError",this.message=e||"Not supported error",this.code="UND_ERR_NOT_SUPPORTED"}static[Symbol.hasInstance](e){return e&&e[d7]===!0}[d7]=!0},f7=Symbol.for("undici.error.UND_ERR_BPL_MISSING_UPSTREAM"),OP=class extends lr{static{o(this,"BalancedPoolMissingUpstreamError")}constructor(e){super(e),this.name="MissingUpstreamError",this.message=e||"No upstream has been added to the BalancedPool",this.code="UND_ERR_BPL_MISSING_UPSTREAM"}static[Symbol.hasInstance](e){return e&&e[f7]===!0}[f7]=!0},h7=Symbol.for("undici.error.UND_ERR_HTTP_PARSER"),LP=class extends Error{static{o(this,"HTTPParserError")}constructor(e,r,n){super(e),this.name="HTTPParserError",this.code=r?`HPE_${r}`:void 0,this.data=n?n.toString():void 0}static[Symbol.hasInstance](e){return e&&e[h7]===!0}[h7]=!0},p7=Symbol.for("undici.error.UND_ERR_RES_EXCEEDED_MAX_SIZE"),FP=class extends lr{static{o(this,"ResponseExceededMaxSizeError")}constructor(e){super(e),this.name="ResponseExceededMaxSizeError",this.message=e||"Response content exceeded max size",this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}static[Symbol.hasInstance](e){return e&&e[p7]===!0}[p7]=!0},A7=Symbol.for("undici.error.UND_ERR_REQ_RETRY"),MP=class extends lr{static{o(this,"RequestRetryError")}constructor(e,r,{headers:n,data:i}){super(e),this.name="RequestRetryError",this.message=e||"Request retry error",this.code="UND_ERR_REQ_RETRY",this.statusCode=r,this.data=i,this.headers=n}static[Symbol.hasInstance](e){return e&&e[A7]===!0}[A7]=!0},m7=Symbol.for("undici.error.UND_ERR_RESPONSE"),UP=class extends lr{static{o(this,"ResponseError")}constructor(e,r,{headers:n,data:i}){super(e),this.name="ResponseError",this.message=e||"Response error",this.code="UND_ERR_RESPONSE",this.statusCode=r,this.data=i,this.headers=n}static[Symbol.hasInstance](e){return e&&e[m7]===!0}[m7]=!0},g7=Symbol.for("undici.error.UND_ERR_PRX_TLS"),qP=class extends lr{static{o(this,"SecureProxyConnectionError")}constructor(e,r,n){super(r,{cause:e,...n??{}}),this.name="SecureProxyConnectionError",this.message=r||"Secure Proxy Connection failed",this.code="UND_ERR_PRX_TLS",this.cause=e}static[Symbol.hasInstance](e){return e&&e[g7]===!0}[g7]=!0},y7=Symbol.for("undici.error.UND_ERR_WS_MESSAGE_SIZE_EXCEEDED"),GP=class extends lr{static{o(this,"MessageSizeExceededError")}constructor(e){super(e),this.name="MessageSizeExceededError",this.message=e||"Max decompressed message size exceeded",this.code="UND_ERR_WS_MESSAGE_SIZE_EXCEEDED"}static[Symbol.hasInstance](e){return e&&e[y7]===!0}get[y7](){return!0}};E7.exports={AbortError:uB,HTTPParserError:LP,UndiciError:lr,HeadersTimeoutError:wP,HeadersOverflowError:IP,BodyTimeoutError:SP,RequestContentLengthMismatchError:_P,ConnectTimeoutError:bP,ResponseStatusCodeError:BP,InvalidArgumentError:xP,InvalidReturnValueError:vP,RequestAbortedError:NP,ClientDestroyedError:DP,ClientClosedError:QP,InformationalError:RP,SocketError:kP,NotSupportedError:PP,ResponseContentLengthMismatchError:TP,BalancedPoolMissingUpstreamError:OP,ResponseExceededMaxSizeError:FP,RequestRetryError:MP,ResponseError:UP,SecureProxyConnectionError:qP,MessageSizeExceededError:GP}});var fB=g((_3t,C7)=>{"use strict";var dB={},HP=["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 t=0;t{"use strict";var{wellknownHeaderNames:b7,headerNameLowerCasedRecord:VLe}=fB(),zP=class t{static{o(this,"TstNode")}value=null;left=null;middle=null;right=null;code;constructor(e,r,n){if(n===void 0||n>=e.length)throw new TypeError("Unreachable");if((this.code=e.charCodeAt(n))>127)throw new TypeError("key must be ascii string");e.length!==++n?this.middle=new t(e,r,n):this.value=r}add(e,r){let n=e.length;if(n===0)throw new TypeError("Unreachable");let i=0,s=this;for(;;){let a=e.charCodeAt(i);if(a>127)throw new TypeError("key must be ascii string");if(s.code===a)if(n===++i){s.value=r;break}else if(s.middle!==null)s=s.middle;else{s.middle=new t(e,r,i);break}else if(s.code=65&&(s|=32);i!==null;){if(s===i.code){if(r===++n)return i;i=i.middle;break}i=i.code{"use strict";var oC=require("node:assert"),{kDestroyed:x7,kBodyUsed:TA,kListeners:VP,kBody:B7}=cr(),{IncomingMessage:$Le}=require("node:http"),mB=require("node:stream"),jLe=require("node:net"),{Blob:WLe}=require("node:buffer"),JLe=require("node:util"),{stringify:YLe}=require("node:querystring"),{EventEmitter:KLe}=require("node:events"),{InvalidArgumentError:Sn}=xt(),{headerNameLowerCasedRecord:XLe}=fB(),{tree:v7}=S7(),[ZLe,eFe]=process.versions.node.split(".").map(t=>Number(t)),AB=class{static{o(this,"BodyAsyncIterable")}constructor(e){this[B7]=e,this[TA]=!1}async*[Symbol.asyncIterator](){oC(!this[TA],"disturbed"),this[TA]=!0,yield*this[B7]}};function tFe(t){return gB(t)?(D7(t)===0&&t.on("data",function(){oC(!1)}),typeof t.readableDidRead!="boolean"&&(t[TA]=!1,KLe.prototype.on.call(t,"data",function(){this[TA]=!0})),t):t&&typeof t.pipeTo=="function"?new AB(t):t&&typeof t!="string"&&!ArrayBuffer.isView(t)&&T7(t)?new AB(t):t}o(tFe,"wrapRequestBody");function rFe(){}o(rFe,"nop");function gB(t){return t&&typeof t=="object"&&typeof t.pipe=="function"&&typeof t.on=="function"}o(gB,"isStream");function N7(t){if(t===null)return!1;if(t instanceof WLe)return!0;if(typeof t!="object")return!1;{let e=t[Symbol.toStringTag];return(e==="Blob"||e==="File")&&("stream"in t&&typeof t.stream=="function"||"arrayBuffer"in t&&typeof t.arrayBuffer=="function")}}o(N7,"isBlobLike");function nFe(t,e){if(t.includes("?")||t.includes("#"))throw new Error('Query params cannot be passed when url already contains "?" or "#".');let r=YLe(e);return r&&(t+="?"+r),t}o(nFe,"buildURL");function R7(t){let e=parseInt(t,10);return e===Number(t)&&e>=0&&e<=65535}o(R7,"isValidPort");function pB(t){return t!=null&&t[0]==="h"&&t[1]==="t"&&t[2]==="t"&&t[3]==="p"&&(t[4]===":"||t[4]==="s"&&t[5]===":")}o(pB,"isHttpOrHttpsPrefixed");function _7(t){if(typeof t=="string"){if(t=new URL(t),!pB(t.origin||t.protocol))throw new Sn("Invalid URL protocol: the URL must start with `http:` or `https:`.");return t}if(!t||typeof t!="object")throw new Sn("Invalid URL: The URL argument must be a non-null object.");if(!(t instanceof URL)){if(t.port!=null&&t.port!==""&&R7(t.port)===!1)throw new Sn("Invalid URL: port must be a valid integer or a string representation of an integer.");if(t.path!=null&&typeof t.path!="string")throw new Sn("Invalid URL path: the path must be a string or null/undefined.");if(t.pathname!=null&&typeof t.pathname!="string")throw new Sn("Invalid URL pathname: the pathname must be a string or null/undefined.");if(t.hostname!=null&&typeof t.hostname!="string")throw new Sn("Invalid URL hostname: the hostname must be a string or null/undefined.");if(t.origin!=null&&typeof t.origin!="string")throw new Sn("Invalid URL origin: the origin must be a string or null/undefined.");if(!pB(t.origin||t.protocol))throw new Sn("Invalid URL protocol: the URL must start with `http:` or `https:`.");let e=t.port!=null?t.port:t.protocol==="https:"?443:80,r=t.origin!=null?t.origin:`${t.protocol||""}//${t.hostname||""}:${e}`,n=t.path!=null?t.path:`${t.pathname||""}${t.search||""}`;return r[r.length-1]==="/"&&(r=r.slice(0,r.length-1)),n&&n[0]!=="/"&&(n=`/${n}`),new URL(`${r}${n}`)}if(!pB(t.origin||t.protocol))throw new Sn("Invalid URL protocol: the URL must start with `http:` or `https:`.");return t}o(_7,"parseURL");function iFe(t){if(t=_7(t),t.pathname!=="/"||t.search||t.hash)throw new Sn("invalid url");return t}o(iFe,"parseOrigin");function sFe(t){if(t[0]==="["){let r=t.indexOf("]");return oC(r!==-1),t.substring(1,r)}let e=t.indexOf(":");return e===-1?t:t.substring(0,e)}o(sFe,"getHostname");function oFe(t){if(!t)return null;oC(typeof t=="string");let e=sFe(t);return jLe.isIP(e)?"":e}o(oFe,"getServerName");function aFe(t){return JSON.parse(JSON.stringify(t))}o(aFe,"deepClone");function cFe(t){return t!=null&&typeof t[Symbol.asyncIterator]=="function"}o(cFe,"isAsyncIterable");function T7(t){return t!=null&&(typeof t[Symbol.iterator]=="function"||typeof t[Symbol.asyncIterator]=="function")}o(T7,"isIterable");function D7(t){if(t==null)return 0;if(gB(t)){let e=t._readableState;return e&&e.objectMode===!1&&e.ended===!0&&Number.isFinite(e.length)?e.length:null}else{if(N7(t))return t.size!=null?t.size:null;if(P7(t))return t.byteLength}return null}o(D7,"bodyLength");function Q7(t){return t&&!!(t.destroyed||t[x7]||mB.isDestroyed?.(t))}o(Q7,"isDestroyed");function lFe(t,e){t==null||!gB(t)||Q7(t)||(typeof t.destroy=="function"?(Object.getPrototypeOf(t).constructor===$Le&&(t.socket=null),t.destroy(e)):e&&queueMicrotask(()=>{t.emit("error",e)}),t.destroyed!==!0&&(t[x7]=!0))}o(lFe,"destroy");var uFe=/timeout=(\d+)/;function dFe(t){let e=t.toString().match(uFe);return e?parseInt(e[1],10)*1e3:null}o(dFe,"parseKeepAliveTimeout");function k7(t){return typeof t=="string"?XLe[t]??t.toLowerCase():v7.lookup(t)??t.toString("latin1").toLowerCase()}o(k7,"headerNameToString");function fFe(t){return v7.lookup(t)??t.toString("latin1").toLowerCase()}o(fFe,"bufferToLowerCasedHeaderName");function hFe(t,e){e===void 0&&(e={});for(let r=0;ra.toString("utf8")):s.toString("utf8")}}return"content-length"in e&&"content-disposition"in e&&(e["content-disposition"]=Buffer.from(e["content-disposition"]).toString("latin1")),e}o(hFe,"parseHeaders");function pFe(t){let e=t.length,r=new Array(e),n=!1,i=-1,s,a,c=0;for(let l=0;l{r.close(),r.byobRequest?.respond(0)});else{let s=Buffer.isBuffer(i)?i:Buffer.from(i);s.byteLength&&r.enqueue(new Uint8Array(s))}return r.desiredSize>0},async cancel(r){await e.return()},type:"bytes"})}o(CFe,"ReadableStreamFrom");function bFe(t){return t&&typeof t=="object"&&typeof t.append=="function"&&typeof t.delete=="function"&&typeof t.get=="function"&&typeof t.getAll=="function"&&typeof t.has=="function"&&typeof t.set=="function"&&t[Symbol.toStringTag]==="FormData"}o(bFe,"isFormDataLike");function wFe(t,e){return"addEventListener"in t?(t.addEventListener("abort",e,{once:!0}),()=>t.removeEventListener("abort",e)):(t.addListener("abort",e),()=>t.removeListener("abort",e))}o(wFe,"addAbortListener");var IFe=typeof String.prototype.toWellFormed=="function",SFe=typeof String.prototype.isWellFormed=="function";function O7(t){return IFe?`${t}`.toWellFormed():JLe.toUSVString(t)}o(O7,"toUSVString");function BFe(t){return SFe?`${t}`.isWellFormed():O7(t)===`${t}`}o(BFe,"isUSVString");function L7(t){switch(t){case 34:case 40:case 41:case 44:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 123:case 125:return!1;default:return t>=33&&t<=126}}o(L7,"isTokenCharCode");function xFe(t){if(t.length===0)return!1;for(let e=0;e{"use strict";var Ot=require("node:diagnostics_channel"),WP=require("node:util"),yB=WP.debuglog("undici"),jP=WP.debuglog("fetch"),$f=WP.debuglog("websocket"),q7=!1,QFe={beforeConnect:Ot.channel("undici:client:beforeConnect"),connected:Ot.channel("undici:client:connected"),connectError:Ot.channel("undici:client:connectError"),sendHeaders:Ot.channel("undici:client:sendHeaders"),create:Ot.channel("undici:request:create"),bodySent:Ot.channel("undici:request:bodySent"),headers:Ot.channel("undici:request:headers"),trailers:Ot.channel("undici:request:trailers"),error:Ot.channel("undici:request:error"),open:Ot.channel("undici:websocket:open"),close:Ot.channel("undici:websocket:close"),socketError:Ot.channel("undici:websocket:socket_error"),ping:Ot.channel("undici:websocket:ping"),pong:Ot.channel("undici:websocket:pong")};if(yB.enabled||jP.enabled){let t=jP.enabled?jP:yB;Ot.channel("undici:client:beforeConnect").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:i,host:s}}=e;t("connecting to %s using %s%s",`${s}${i?`:${i}`:""}`,n,r)}),Ot.channel("undici:client:connected").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:i,host:s}}=e;t("connected to %s using %s%s",`${s}${i?`:${i}`:""}`,n,r)}),Ot.channel("undici:client:connectError").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:i,host:s},error:a}=e;t("connection to %s using %s%s errored - %s",`${s}${i?`:${i}`:""}`,n,r,a.message)}),Ot.channel("undici:client:sendHeaders").subscribe(e=>{let{request:{method:r,path:n,origin:i}}=e;t("sending request to %s %s/%s",r,i,n)}),Ot.channel("undici:request:headers").subscribe(e=>{let{request:{method:r,path:n,origin:i},response:{statusCode:s}}=e;t("received response to %s %s/%s - HTTP %d",r,i,n,s)}),Ot.channel("undici:request:trailers").subscribe(e=>{let{request:{method:r,path:n,origin:i}}=e;t("trailers received from %s %s/%s",r,i,n)}),Ot.channel("undici:request:error").subscribe(e=>{let{request:{method:r,path:n,origin:i},error:s}=e;t("request to %s %s/%s errored - %s",r,i,n,s.message)}),q7=!0}if($f.enabled){if(!q7){let t=yB.enabled?yB:$f;Ot.channel("undici:client:beforeConnect").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:i,host:s}}=e;t("connecting to %s%s using %s%s",s,i?`:${i}`:"",n,r)}),Ot.channel("undici:client:connected").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:i,host:s}}=e;t("connected to %s%s using %s%s",s,i?`:${i}`:"",n,r)}),Ot.channel("undici:client:connectError").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:i,host:s},error:a}=e;t("connection to %s%s using %s%s errored - %s",s,i?`:${i}`:"",n,r,a.message)}),Ot.channel("undici:client:sendHeaders").subscribe(e=>{let{request:{method:r,path:n,origin:i}}=e;t("sending request to %s %s/%s",r,i,n)})}Ot.channel("undici:websocket:open").subscribe(t=>{let{address:{address:e,port:r}}=t;$f("connection opened %s%s",e,r?`:${r}`:"")}),Ot.channel("undici:websocket:close").subscribe(t=>{let{websocket:e,code:r,reason:n}=t;$f("closed connection to %s - %s %s",e.url,r,n)}),Ot.channel("undici:websocket:socket_error").subscribe(t=>{$f("connection errored - %s",t.message)}),Ot.channel("undici:websocket:ping").subscribe(t=>{$f("ping received")}),Ot.channel("undici:websocket:pong").subscribe(t=>{$f("pong received")})}G7.exports={channels:QFe}});var $7=g((O3t,V7)=>{"use strict";var{InvalidArgumentError:Ut,NotSupportedError:kFe}=xt(),Gl=require("node:assert"),{isValidHTTPToken:z7,isValidHeaderValue:aC,isStream:PFe,destroy:OFe,isBuffer:LFe,isFormDataLike:FFe,isIterable:MFe,isBlobLike:UFe,buildURL:qFe,validateHandler:GFe,getServerName:HFe,normalizedMethodRecords:zFe}=st(),{channels:rc}=DA(),{headerNameLowerCasedRecord:H7}=fB(),VFe=/[^\u0021-\u00ff]/,fo=Symbol("handler"),JP=class{static{o(this,"Request")}constructor(e,{path:r,method:n,body:i,headers:s,query:a,idempotent:c,blocking:l,upgrade:u,headersTimeout:d,bodyTimeout:f,reset:h,throwOnError:p,expectContinue:m,servername:A},E){if(typeof r!="string")throw new Ut("path must be a string");if(r[0]!=="/"&&!(r.startsWith("http://")||r.startsWith("https://"))&&n!=="CONNECT")throw new Ut("path must be an absolute URL or start with a slash");if(VFe.test(r))throw new Ut("invalid request path");if(typeof n!="string")throw new Ut("method must be a string");if(zFe[n]===void 0&&!z7(n))throw new Ut("invalid request method");if(u&&typeof u!="string")throw new Ut("upgrade must be a string");if(u&&!aC(u))throw new Ut("invalid upgrade header");if(d!=null&&(!Number.isFinite(d)||d<0))throw new Ut("invalid headersTimeout");if(f!=null&&(!Number.isFinite(f)||f<0))throw new Ut("invalid bodyTimeout");if(h!=null&&typeof h!="boolean")throw new Ut("invalid reset");if(m!=null&&typeof m!="boolean")throw new Ut("invalid expectContinue");if(this.headersTimeout=d,this.bodyTimeout=f,this.throwOnError=p===!0,this.method=n,this.abort=null,i==null)this.body=null;else if(PFe(i)){this.body=i;let y=this.body._readableState;(!y||!y.autoDestroy)&&(this.endHandler=o(function(){OFe(this)},"autoDestroy"),this.body.on("end",this.endHandler)),this.errorHandler=C=>{this.abort?this.abort(C):this.error=C},this.body.on("error",this.errorHandler)}else if(LFe(i))this.body=i.byteLength?i:null;else if(ArrayBuffer.isView(i))this.body=i.buffer.byteLength?Buffer.from(i.buffer,i.byteOffset,i.byteLength):null;else if(i instanceof ArrayBuffer)this.body=i.byteLength?Buffer.from(i):null;else if(typeof i=="string")this.body=i.length?Buffer.from(i):null;else if(FFe(i)||MFe(i)||UFe(i))this.body=i;else throw new Ut("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable");if(this.completed=!1,this.aborted=!1,this.upgrade=u||null,this.path=a?qFe(r,a):r,this.origin=e,this.idempotent=c??(n==="HEAD"||n==="GET"),this.blocking=l??!1,this.reset=h??null,this.host=null,this.contentLength=null,this.contentType=null,this.headers=[],this.expectContinue=m??!1,Array.isArray(s)){if(s.length%2!==0)throw new Ut("headers array must be even");for(let y=0;y{"use strict";var $Fe=require("node:events"),CB=class extends $Fe{static{o(this,"Dispatcher")}dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}compose(...e){let r=Array.isArray(e[0])?e[0]:e,n=this.dispatch.bind(this);for(let i of r)if(i!=null){if(typeof i!="function")throw new TypeError(`invalid interceptor, expected function received ${typeof i}`);if(n=i(n),n==null||typeof n!="function"||n.length!==2)throw new TypeError("invalid interceptor")}return new YP(this,n)}},YP=class extends CB{static{o(this,"ComposedDispatcher")}#e=null;#r=null;constructor(e,r){super(),this.#e=e,this.#r=r}dispatch(...e){this.#r(...e)}close(...e){return this.#e.close(...e)}destroy(...e){return this.#e.destroy(...e)}};j7.exports=CB});var OA=g((U3t,W7)=>{"use strict";var jFe=cC(),{ClientDestroyedError:KP,ClientClosedError:WFe,InvalidArgumentError:QA}=xt(),{kDestroy:JFe,kClose:YFe,kClosed:lC,kDestroyed:kA,kDispatch:XP,kInterceptors:jf}=cr(),Hl=Symbol("onDestroyed"),PA=Symbol("onClosed"),bB=Symbol("Intercepted Dispatch"),ZP=Symbol("webSocketOptions"),eO=class extends jFe{static{o(this,"DispatcherBase")}constructor(e){super(),this[kA]=!1,this[Hl]=null,this[lC]=!1,this[PA]=[],this[ZP]=e?.webSocket??{}}get webSocketOptions(){return{maxFragments:this[ZP].maxFragments??131072,maxPayloadSize:this[ZP].maxPayloadSize??128*1024*1024}}get destroyed(){return this[kA]}get closed(){return this[lC]}get interceptors(){return this[jf]}set interceptors(e){if(e){for(let r=e.length-1;r>=0;r--)if(typeof this[jf][r]!="function")throw new QA("interceptor must be an function")}this[jf]=e}close(e){if(e===void 0)return new Promise((n,i)=>{this.close((s,a)=>s?i(s):n(a))});if(typeof e!="function")throw new QA("invalid callback");if(this[kA]){queueMicrotask(()=>e(new KP,null));return}if(this[lC]){this[PA]?this[PA].push(e):queueMicrotask(()=>e(null,null));return}this[lC]=!0,this[PA].push(e);let r=o(()=>{let n=this[PA];this[PA]=null;for(let i=0;ithis.destroy()).then(()=>{queueMicrotask(r)})}destroy(e,r){if(typeof e=="function"&&(r=e,e=null),r===void 0)return new Promise((i,s)=>{this.destroy(e,(a,c)=>a?s(a):i(c))});if(typeof r!="function")throw new QA("invalid callback");if(this[kA]){this[Hl]?this[Hl].push(r):queueMicrotask(()=>r(null,null));return}e||(e=new KP),this[kA]=!0,this[Hl]=this[Hl]||[],this[Hl].push(r);let n=o(()=>{let i=this[Hl];this[Hl]=null;for(let s=0;s{queueMicrotask(n)})}[bB](e,r){if(!this[jf]||this[jf].length===0)return this[bB]=this[XP],this[XP](e,r);let n=this[XP].bind(this);for(let i=this[jf].length-1;i>=0;i--)n=this[jf][i](n);return this[bB]=n,n(e,r)}dispatch(e,r){if(!r||typeof r!="object")throw new QA("handler must be an object");try{if(!e||typeof e!="object")throw new QA("opts must be an object.");if(this[kA]||this[Hl])throw new KP;if(this[lC])throw new WFe;return this[bB](e,r)}catch(n){if(typeof r.onError!="function")throw new QA("invalid onError method");return r.onError(n),!1}}};W7.exports=eO});var aO=g((G3t,X7)=>{"use strict";var LA=0,tO=1e3,rO=(tO>>1)-1,zl,nO=Symbol("kFastTimer"),Vl=[],iO=-2,sO=-1,Y7=0,J7=1;function oO(){LA+=rO;let t=0,e=Vl.length;for(;t=r._idleStart+r._idleTimeout&&(r._state=sO,r._idleStart=-1,r._onTimeout(r._timerArg)),r._state===sO?(r._state=iO,--e!==0&&(Vl[t]=Vl[e])):++t}Vl.length=e,Vl.length!==0&&K7()}o(oO,"onTick");function K7(){zl?zl.refresh():(clearTimeout(zl),zl=setTimeout(oO,rO),zl.unref&&zl.unref())}o(K7,"refreshTimeout");var wB=class{static{o(this,"FastTimer")}[nO]=!0;_state=iO;_idleTimeout=-1;_idleStart=-1;_onTimeout;_timerArg;constructor(e,r,n){this._onTimeout=e,this._idleTimeout=r,this._timerArg=n,this.refresh()}refresh(){this._state===iO&&Vl.push(this),(!zl||Vl.length===1)&&K7(),this._state=Y7}clear(){this._state=sO,this._idleStart=-1}};X7.exports={setTimeout(t,e,r){return e<=tO?setTimeout(t,e,r):new wB(t,e,r)},clearTimeout(t){t[nO]?t.clear():clearTimeout(t)},setFastTimeout(t,e,r){return new wB(t,e,r)},clearFastTimeout(t){t.clear()},now(){return LA},tick(t=0){LA+=t-tO+1,oO(),oO()},reset(){LA=0,Vl.length=0,clearTimeout(zl),zl=null},kFastTimer:nO}});var uC=g(($3t,nX)=>{"use strict";var KFe=require("node:net"),Z7=require("node:assert"),rX=st(),{InvalidArgumentError:XFe,ConnectTimeoutError:ZFe}=xt(),IB=aO();function eX(){}o(eX,"noop");var cO,lO;global.FinalizationRegistry&&!(process.env.NODE_V8_COVERAGE||process.env.UNDICI_NO_FG)?lO=class{static{o(this,"WeakSessionCache")}constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(r=>{if(this._sessionCache.size=this._maxCachedSessions){let{value:n}=this._sessionCache.keys().next();this._sessionCache.delete(n)}this._sessionCache.set(e,r)}}};function eMe({allowH2:t,maxCachedSessions:e,socketPath:r,timeout:n,session:i,...s}){if(e!=null&&(!Number.isInteger(e)||e<0))throw new XFe("maxCachedSessions must be a positive integer or zero");let a={path:r,...s},c=new lO(e??100);return n=n??1e4,t=t??!1,o(function({hostname:u,host:d,protocol:f,port:h,servername:p,localAddress:m,httpSocket:A},E){let y;if(f==="https:"){cO||(cO=require("node:tls")),p=p||a.servername||rX.getServerName(d)||null;let w=p||u;Z7(w);let B=i||c.get(w)||null;h=h||443,y=cO.connect({highWaterMark:16384,...a,servername:p,session:B,localAddress:m,ALPNProtocols:t?["http/1.1","h2"]:["http/1.1"],socket:A,port:h,host:u}),y.on("session",function(P){c.set(w,P)})}else Z7(!A,"httpSocket can only be sent on TLS update"),h=h||80,y=KFe.connect({highWaterMark:64*1024,...a,localAddress:m,port:h,host:u});if(a.keepAlive==null||a.keepAlive){let w=a.keepAliveInitialDelay===void 0?6e4:a.keepAliveInitialDelay;y.setKeepAlive(!0,w)}let C=tMe(new WeakRef(y),{timeout:n,hostname:u,port:h});return y.setNoDelay(!0).once(f==="https:"?"secureConnect":"connect",function(){if(queueMicrotask(C),E){let w=E;E=null,w(null,this)}}).on("error",function(w){if(queueMicrotask(C),E){let B=E;E=null,B(w)}}),y},"connect")}o(eMe,"buildConnector");var tMe=process.platform==="win32"?(t,e)=>{if(!e.timeout)return eX;let r=null,n=null,i=IB.setFastTimeout(()=>{r=setImmediate(()=>{n=setImmediate(()=>tX(t.deref(),e))})},e.timeout);return()=>{IB.clearFastTimeout(i),clearImmediate(r),clearImmediate(n)}}:(t,e)=>{if(!e.timeout)return eX;let r=null,n=IB.setFastTimeout(()=>{r=setImmediate(()=>{tX(t.deref(),e)})},e.timeout);return()=>{IB.clearFastTimeout(n),clearImmediate(r)}};function tX(t,e){if(t==null)return;let r="Connect Timeout Error";Array.isArray(t.autoSelectFamilyAttemptedAddresses)?r+=` (attempted addresses: ${t.autoSelectFamilyAttemptedAddresses.join(", ")},`:r+=` (attempted address: ${e.hostname}:${e.port},`,r+=` timeout: ${e.timeout}ms)`,rX.destroy(t,new ZFe(r))}o(tX,"onConnectTimeout");nX.exports=eMe});var iX=g(SB=>{"use strict";Object.defineProperty(SB,"__esModule",{value:!0});SB.enumToMap=void 0;function rMe(t){let e={};return Object.keys(t).forEach(r=>{let n=t[r];typeof n=="number"&&(e[r]=n)}),e}o(rMe,"enumToMap");SB.enumToMap=rMe});var sX=g(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.SPECIAL_HEADERS=X.HEADER_STATE=X.MINOR=X.MAJOR=X.CONNECTION_TOKEN_CHARS=X.HEADER_CHARS=X.TOKEN=X.STRICT_TOKEN=X.HEX=X.URL_CHAR=X.STRICT_URL_CHAR=X.USERINFO_CHARS=X.MARK=X.ALPHANUM=X.NUM=X.HEX_MAP=X.NUM_MAP=X.ALPHA=X.FINISH=X.H_METHOD_MAP=X.METHOD_MAP=X.METHODS_RTSP=X.METHODS_ICE=X.METHODS_HTTP=X.METHODS=X.LENIENT_FLAGS=X.FLAGS=X.TYPE=X.ERROR=void 0;var nMe=iX(),iMe;(function(t){t[t.OK=0]="OK",t[t.INTERNAL=1]="INTERNAL",t[t.STRICT=2]="STRICT",t[t.LF_EXPECTED=3]="LF_EXPECTED",t[t.UNEXPECTED_CONTENT_LENGTH=4]="UNEXPECTED_CONTENT_LENGTH",t[t.CLOSED_CONNECTION=5]="CLOSED_CONNECTION",t[t.INVALID_METHOD=6]="INVALID_METHOD",t[t.INVALID_URL=7]="INVALID_URL",t[t.INVALID_CONSTANT=8]="INVALID_CONSTANT",t[t.INVALID_VERSION=9]="INVALID_VERSION",t[t.INVALID_HEADER_TOKEN=10]="INVALID_HEADER_TOKEN",t[t.INVALID_CONTENT_LENGTH=11]="INVALID_CONTENT_LENGTH",t[t.INVALID_CHUNK_SIZE=12]="INVALID_CHUNK_SIZE",t[t.INVALID_STATUS=13]="INVALID_STATUS",t[t.INVALID_EOF_STATE=14]="INVALID_EOF_STATE",t[t.INVALID_TRANSFER_ENCODING=15]="INVALID_TRANSFER_ENCODING",t[t.CB_MESSAGE_BEGIN=16]="CB_MESSAGE_BEGIN",t[t.CB_HEADERS_COMPLETE=17]="CB_HEADERS_COMPLETE",t[t.CB_MESSAGE_COMPLETE=18]="CB_MESSAGE_COMPLETE",t[t.CB_CHUNK_HEADER=19]="CB_CHUNK_HEADER",t[t.CB_CHUNK_COMPLETE=20]="CB_CHUNK_COMPLETE",t[t.PAUSED=21]="PAUSED",t[t.PAUSED_UPGRADE=22]="PAUSED_UPGRADE",t[t.PAUSED_H2_UPGRADE=23]="PAUSED_H2_UPGRADE",t[t.USER=24]="USER"})(iMe=X.ERROR||(X.ERROR={}));var sMe;(function(t){t[t.BOTH=0]="BOTH",t[t.REQUEST=1]="REQUEST",t[t.RESPONSE=2]="RESPONSE"})(sMe=X.TYPE||(X.TYPE={}));var oMe;(function(t){t[t.CONNECTION_KEEP_ALIVE=1]="CONNECTION_KEEP_ALIVE",t[t.CONNECTION_CLOSE=2]="CONNECTION_CLOSE",t[t.CONNECTION_UPGRADE=4]="CONNECTION_UPGRADE",t[t.CHUNKED=8]="CHUNKED",t[t.UPGRADE=16]="UPGRADE",t[t.CONTENT_LENGTH=32]="CONTENT_LENGTH",t[t.SKIPBODY=64]="SKIPBODY",t[t.TRAILING=128]="TRAILING",t[t.TRANSFER_ENCODING=512]="TRANSFER_ENCODING"})(oMe=X.FLAGS||(X.FLAGS={}));var aMe;(function(t){t[t.HEADERS=1]="HEADERS",t[t.CHUNKED_LENGTH=2]="CHUNKED_LENGTH",t[t.KEEP_ALIVE=4]="KEEP_ALIVE"})(aMe=X.LENIENT_FLAGS||(X.LENIENT_FLAGS={}));var Re;(function(t){t[t.DELETE=0]="DELETE",t[t.GET=1]="GET",t[t.HEAD=2]="HEAD",t[t.POST=3]="POST",t[t.PUT=4]="PUT",t[t.CONNECT=5]="CONNECT",t[t.OPTIONS=6]="OPTIONS",t[t.TRACE=7]="TRACE",t[t.COPY=8]="COPY",t[t.LOCK=9]="LOCK",t[t.MKCOL=10]="MKCOL",t[t.MOVE=11]="MOVE",t[t.PROPFIND=12]="PROPFIND",t[t.PROPPATCH=13]="PROPPATCH",t[t.SEARCH=14]="SEARCH",t[t.UNLOCK=15]="UNLOCK",t[t.BIND=16]="BIND",t[t.REBIND=17]="REBIND",t[t.UNBIND=18]="UNBIND",t[t.ACL=19]="ACL",t[t.REPORT=20]="REPORT",t[t.MKACTIVITY=21]="MKACTIVITY",t[t.CHECKOUT=22]="CHECKOUT",t[t.MERGE=23]="MERGE",t[t["M-SEARCH"]=24]="M-SEARCH",t[t.NOTIFY=25]="NOTIFY",t[t.SUBSCRIBE=26]="SUBSCRIBE",t[t.UNSUBSCRIBE=27]="UNSUBSCRIBE",t[t.PATCH=28]="PATCH",t[t.PURGE=29]="PURGE",t[t.MKCALENDAR=30]="MKCALENDAR",t[t.LINK=31]="LINK",t[t.UNLINK=32]="UNLINK",t[t.SOURCE=33]="SOURCE",t[t.PRI=34]="PRI",t[t.DESCRIBE=35]="DESCRIBE",t[t.ANNOUNCE=36]="ANNOUNCE",t[t.SETUP=37]="SETUP",t[t.PLAY=38]="PLAY",t[t.PAUSE=39]="PAUSE",t[t.TEARDOWN=40]="TEARDOWN",t[t.GET_PARAMETER=41]="GET_PARAMETER",t[t.SET_PARAMETER=42]="SET_PARAMETER",t[t.REDIRECT=43]="REDIRECT",t[t.RECORD=44]="RECORD",t[t.FLUSH=45]="FLUSH"})(Re=X.METHODS||(X.METHODS={}));X.METHODS_HTTP=[Re.DELETE,Re.GET,Re.HEAD,Re.POST,Re.PUT,Re.CONNECT,Re.OPTIONS,Re.TRACE,Re.COPY,Re.LOCK,Re.MKCOL,Re.MOVE,Re.PROPFIND,Re.PROPPATCH,Re.SEARCH,Re.UNLOCK,Re.BIND,Re.REBIND,Re.UNBIND,Re.ACL,Re.REPORT,Re.MKACTIVITY,Re.CHECKOUT,Re.MERGE,Re["M-SEARCH"],Re.NOTIFY,Re.SUBSCRIBE,Re.UNSUBSCRIBE,Re.PATCH,Re.PURGE,Re.MKCALENDAR,Re.LINK,Re.UNLINK,Re.PRI,Re.SOURCE];X.METHODS_ICE=[Re.SOURCE];X.METHODS_RTSP=[Re.OPTIONS,Re.DESCRIBE,Re.ANNOUNCE,Re.SETUP,Re.PLAY,Re.PAUSE,Re.TEARDOWN,Re.GET_PARAMETER,Re.SET_PARAMETER,Re.REDIRECT,Re.RECORD,Re.FLUSH,Re.GET,Re.POST];X.METHOD_MAP=nMe.enumToMap(Re);X.H_METHOD_MAP={};Object.keys(X.METHOD_MAP).forEach(t=>{/^H/.test(t)&&(X.H_METHOD_MAP[t]=X.METHOD_MAP[t])});var cMe;(function(t){t[t.SAFE=0]="SAFE",t[t.SAFE_WITH_CB=1]="SAFE_WITH_CB",t[t.UNSAFE=2]="UNSAFE"})(cMe=X.FINISH||(X.FINISH={}));X.ALPHA=[];for(let t=65;t<=90;t++)X.ALPHA.push(String.fromCharCode(t)),X.ALPHA.push(String.fromCharCode(t+32));X.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};X.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15};X.NUM=["0","1","2","3","4","5","6","7","8","9"];X.ALPHANUM=X.ALPHA.concat(X.NUM);X.MARK=["-","_",".","!","~","*","'","(",")"];X.USERINFO_CHARS=X.ALPHANUM.concat(X.MARK).concat(["%",";",":","&","=","+","$",","]);X.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(X.ALPHANUM);X.URL_CHAR=X.STRICT_URL_CHAR.concat([" ","\f"]);for(let t=128;t<=255;t++)X.URL_CHAR.push(t);X.HEX=X.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);X.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(X.ALPHANUM);X.TOKEN=X.STRICT_TOKEN.concat([" "]);X.HEADER_CHARS=[" "];for(let t=32;t<=255;t++)t!==127&&X.HEADER_CHARS.push(t);X.CONNECTION_TOKEN_CHARS=X.HEADER_CHARS.filter(t=>t!==44);X.MAJOR=X.NUM_MAP;X.MINOR=X.MAJOR;var FA;(function(t){t[t.GENERAL=0]="GENERAL",t[t.CONNECTION=1]="CONNECTION",t[t.CONTENT_LENGTH=2]="CONTENT_LENGTH",t[t.TRANSFER_ENCODING=3]="TRANSFER_ENCODING",t[t.UPGRADE=4]="UPGRADE",t[t.CONNECTION_KEEP_ALIVE=5]="CONNECTION_KEEP_ALIVE",t[t.CONNECTION_CLOSE=6]="CONNECTION_CLOSE",t[t.CONNECTION_UPGRADE=7]="CONNECTION_UPGRADE",t[t.TRANSFER_ENCODING_CHUNKED=8]="TRANSFER_ENCODING_CHUNKED"})(FA=X.HEADER_STATE||(X.HEADER_STATE={}));X.SPECIAL_HEADERS={connection:FA.CONNECTION,"content-length":FA.CONTENT_LENGTH,"proxy-connection":FA.CONNECTION,"transfer-encoding":FA.TRANSFER_ENCODING,upgrade:FA.UPGRADE}});var uO=g((K3t,oX)=>{"use strict";var{Buffer:lMe}=require("node:buffer");oX.exports=lMe.from("AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAX8AYAJ/fwBgBH9/f38Bf2AAAGADf39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQAEA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQA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E2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAIoAhwiA0EBaw7dAdoBAdkBAgMEBQYHCAkKCwwNDtgBDxDXARES1gETFBUWFxgZGhvgAd8BHB0e1QEfICEiIyQl1AEmJygpKiss0wHSAS0u0QHQAS8wMTIzNDU2Nzg5Ojs8PT4/QEFCQ0RFRtsBR0hJSs8BzgFLzQFMzAFNTk9QUVJTVFVWV1hZ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JAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCADDsYBAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHyAhIyUmKCorLC8wMTIzNDU2Nzk6Ozw9lANAQkRFRklLTk9QUVJTVFVWWFpbXF1eX2BhYmNkZWZnaGpsb3Bxc3V2eHl6e3x/gAGBAYIBgwGEAYUBhgGHAYgBiQGKAYsBjAGNAY4BjwGQAZEBkgGTAZQBlQGWAZcBmAGZAZoBmwGcAZ0BngGfAaABoQGiAaMBpAGlAaYBpwGoAakBqgGrAawBrQGuAa8BsAGxAbIBswG0AbUBtgG3AbgBuQG6AbsBvAG9Ab4BvwHAAcEBwgHDAcQBxQHGAccByA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gAGtBAmohBgJAA0AgAS0AACAAQe3PAGotAABHDXIgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADLACCyACQQA2AgAgBkEBaiEBQRAMcwtB/gAhAyABIARGDa4CIAIoAgAiACAEIAFraiEFIAEgAGtBBWohBgJAA0AgAS0AACAAQfbOAGotAABHDXEgAEEFRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK8CCyACQQA2AgAgBkEBaiEBQRYMcgtB/wAhAyABIARGDa0CIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQfzOAGotAABHDXAgAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK4CCyACQQA2AgAgBkEBaiEBQQUMcQsgASAERgRAQYABIQMMrQILIAEtAABB2QBHDW4gAUEBaiEBQQgMcAsgASAERgRAQYEBIQMMrAILAkACQCABLQAAQc4Aaw4DAG8BbwsgAUEBaiEBQesAIQMMkwILIAFBAWohAUHsACEDDJICCyABIARGBEBBggEhAwyrAgsCQAJAIAEtAABByABrDggAbm5ubm5uAW4LIAFBAWohAUHqACEDDJICCyABQQFqIQFB7QAhAwyRAgtBgwEhAyABIARGDakCIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQYDPAGotAABHDWwgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKoCCyACQQA2AgAgBkEBaiEBQQAMbQtBhAEhAyABIARGDagCIAIoAgAiACAEIAFraiEFIAEgAGtBBGohBgJAA0AgAS0AACAAQYPPAGotAABHDWsgAEEERg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKkCCyACQQA2AgAgBkEBaiEBQSMMbAsgASAERgRAQYUBIQMMqAILAkACQCABLQAAQcwAaw4IAGtra2trawFrCyABQQFqIQFB7wAhAwyPAgsgAUEBaiEBQfAAIQMMjgILIAEgBEYEQEGGASEDDKcCCyABLQAAQcUARw1oIAFBAWohAQxgC0GH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QJSIARQ0gIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMswELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0iIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMsgELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0OIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMsQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0dIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMsAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0fIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxBACEDDKI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AIAJBH0cbdCECIAAoAgAhAAJAA0AgACIDKAIEQXhxIARGDQEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAIoAhwiA0EBaw7dAdoBAdkBAgMEBQYHCAkKCwwNDtgBDxDXARES1gETFBUWFxgZGhvgAd8BHB0e1QEfICEiIyQl1AEm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QAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCADDsYBAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHyAhIyUmKCorLC8wMTIzNDU2Nzk6Ozw9lANAQkRFRklLTk9QUVJTVFVWWFpbXF1eX2BhYmNkZWZnaGpsb3Bxc3V2eHl6e3x/gAGBAYIBgwGEAYUBhgGHAYgBiQGKAYsBjAGNAY4BjwGQAZEBkgGTAZQBlQGWAZcBmAGZAZoBmwGcAZ0BngGfAaABoQGiAaMBp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0dHR0dHR0dHR0AXQLIAFBAWohAUHmACEDDJgCCyABQQFqIQFB5wAhAwyXAgtB/QAhAyABIARGDa8CIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQe3PAGotAABHDXIgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADLACCyACQQA2AgAgBkEBaiEBQRAMcwtB/gAhAyABIARGDa4CIAIoAgAiACAEIAFraiEFIAEgAGtBBWohBgJAA0AgAS0AACAAQfbOAGotAABHDXEgAEEFRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK8CCyACQQA2AgAgBkEBaiEBQRYMcgtB/wAhAyABIARGDa0CIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQfzOAGotAABHDXAgAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK4CCyACQQA2AgAgBkEBaiEBQQUMcQsgASAERgRAQYABIQMMrQILIAEtAABB2QBHDW4gAUEBaiEBQQgMcAsgASAERgRAQYEBIQMMrAILAkACQCABLQAAQc4Aaw4DAG8BbwsgAUEBaiEBQesAIQMMkwILIAFBAWohAUHsACEDDJICCyABIARGBEBBggEhAwyrAgsCQAJAIAEtAABByABrDggAbm5ubm5uAW4LIAFBAWohAUHqACEDDJICCyABQQFqIQFB7QAhAwyRAgtBgwEhAyABIARGDakCIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQYDPAGotAABHDWwgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKoCCyACQQA2AgAgBkEBaiEBQQAMbQtBhAEhAyABIARGDagCIAIoAgAiACAEIAFraiEFIAEgAGtBBGohBgJAA0AgAS0AACAAQYPPAGotAABHDWsgAEEERg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKkCCyACQQA2AgAgBkEBaiEBQSMMbAsgASAERgRAQYUBIQMMqAILAkACQCABLQAAQcwAaw4IAGtra2tr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BAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyGAgsgAkEANgIAIAZBAWohAUERDEkLQagBIQMgASAERg2EAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHCzwBqLQAARw1HIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyFAgsgAkEANgIAIAZBAWohAUEsDEgLQakBIQMgASAERg2DAiACKAIAIgAgBCABa2ohBSABIABrQQRqIQYCQANAIAEtAAAgAEHFzwBqLQAARw1GIABBBEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyEAgsgAkEANgIAIAZBAWohAUErDEcLQaoBIQMgASAERg2CAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHKzwBqLQAARw1FIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyDAgsgAkEANgIAIAZBAWohAUEUDEYLIAEgBEYEQEGrASEDDIICCwJAAkACQAJAIAEtAABBwgBrDg8AAQJHR0dHR0dHR0dHRwNHCyABQQFqIQFBkwEhAwzrAQsgAUEBaiEBQZQBIQMM6gELIAFBAWohAUGVASEDDOkBCyABQQFqIQFBlgEhAwzoAQsgASAERgRAQawBIQMMgQILIAEtAABBxQBHDUIgAUEBaiEBDD0LQa0BIQMgASAERg3/ASACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHNzwBqLQAARw1CIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyAAgsgAkEANgIAIAZBAWohAUEODEMLIAEgBEYEQEGuASEDDP8BCyABLQAAQdAARw1AIAFBAWohAUElDEILQa8BIQMgASAERg39ASACKAIAIgAgBCABa2ohBSABIABrQQhqIQYCQANAIAEtAAAgAEHQzwBqLQAARw1AIABBCEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz+AQsgAkEANgIAIAZBAWohAUEqDEELIAEgBEYEQEGwASEDDP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oAgQhACACQQA2AgQgAiAAIAEQJSIARQ0RIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMtAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0gIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMswELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0iIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMsgELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0OIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMsQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0dIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMsAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0fIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADY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64")});var dC=g((Z3t,mX)=>{"use strict";var lX=["GET","HEAD","POST"],dMe=new Set(lX),fMe=[101,204,205,304],uX=[301,302,303,307,308],hMe=new Set(uX),dX=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","4190","5060","5061","6000","6566","6665","6666","6667","6668","6669","6679","6697","10080"],pMe=new Set(dX),fX=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],AMe=new Set(fX),mMe=["follow","manual","error"],hX=["GET","HEAD","OPTIONS","TRACE"],gMe=new Set(hX),yMe=["navigate","same-origin","no-cors","cors"],EMe=["omit","same-origin","include"],CMe=["default","no-store","reload","no-cache","force-cache","only-if-cached"],bMe=["content-encoding","content-language","content-location","content-type","content-length"],wMe=["half"],pX=["CONNECT","TRACE","TRACK"],IMe=new Set(pX),AX=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""],SMe=new Set(AX);mX.exports={subresource:AX,forbiddenMethods:pX,requestBodyHeader:bMe,referrerPolicy:fX,requestRedirect:mMe,requestMode:yMe,requestCredentials:EMe,requestCache:CMe,redirectStatus:uX,corsSafeListedMethods:lX,nullBodyStatus:fMe,safeMethods:hX,badPorts:dX,requestDuplex:wMe,subresourceSet:SMe,badPortsSet:pMe,redirectStatusSet:hMe,corsSafeListedMethodsSet:dMe,safeMethodsSet:gMe,forbiddenMethodsSet:IMe,referrerPolicySet:AMe}});var fO=g((eGt,gX)=>{"use strict";var dO=Symbol.for("undici.globalOrigin.1");function BMe(){return globalThis[dO]}o(BMe,"getGlobalOrigin");function xMe(t){if(t===void 0){Object.defineProperty(globalThis,dO,{value:void 0,writable:!0,enumerable:!1,configurable:!1});return}let e=new URL(t);if(e.protocol!=="http:"&&e.protocol!=="https:")throw new TypeError(`Only http & https urls are allowed, received ${e.protocol}`);Object.defineProperty(globalThis,dO,{value:e,writable:!0,enumerable:!1,configurable:!1})}o(xMe,"setGlobalOrigin");gX.exports={getGlobalOrigin:BMe,setGlobalOrigin:xMe}});var Yi=g((rGt,SX)=>{"use strict";var xB=require("node:assert"),vMe=new TextEncoder,fC=/^[!#$%&'*+\-.^_|~A-Za-z0-9]+$/,NMe=/[\u000A\u000D\u0009\u0020]/,RMe=/[\u0009\u000A\u000C\u000D\u0020]/g,_Me=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function TMe(t){xB(t.protocol==="data:");let e=CX(t,!0);e=e.slice(5);let r={position:0},n=MA(",",e,r),i=n.length;if(n=LMe(n,!0,!0),r.position>=e.length)return"failure";r.position++;let s=e.slice(i+1),a=bX(s);if(/;(\u0020){0,}base64$/i.test(n)){let l=IX(a);if(a=QMe(l),a==="failure")return"failure";n=n.slice(0,-6),n=n.replace(/(\u0020)+$/,""),n=n.slice(0,-1)}n.startsWith(";")&&(n="text/plain"+n);let c=hO(n);return c==="failure"&&(c=hO("text/plain;charset=US-ASCII")),{mimeType:c,body:a}}o(TMe,"dataURLProcessor");function CX(t,e=!1){if(!e)return t.href;let r=t.href,n=t.hash.length,i=n===0?r:r.substring(0,r.length-n);return!n&&r.endsWith("#")?i.slice(0,-1):i}o(CX,"URLSerializer");function vB(t,e,r){let n="";for(;r.position=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}o(yX,"isHexCharByte");function EX(t){return t>=48&&t<=57?t-48:(t&223)-55}o(EX,"hexByteToNumber");function DMe(t){let e=t.length,r=new Uint8Array(e),n=0;for(let i=0;it.length)return"failure";e.position++;let n=MA(";",t,e);if(n=BB(n,!1,!0),n.length===0||!fC.test(n))return"failure";let i=r.toLowerCase(),s=n.toLowerCase(),a={type:i,subtype:s,parameters:new Map,essence:`${i}/${s}`};for(;e.positionNMe.test(u),t,e);let c=vB(u=>u!==";"&&u!=="=",t,e);if(c=c.toLowerCase(),e.positiont.length)break;let l=null;if(t[e.position]==='"')l=wX(t,e,!0),MA(";",t,e);else if(l=MA(";",t,e),l=BB(l,!1,!0),l.length===0)continue;c.length!==0&&fC.test(c)&&(l.length===0||_Me.test(l))&&!a.parameters.has(c)&&a.parameters.set(c,l)}return a}o(hO,"parseMIMEType");function QMe(t){t=t.replace(RMe,"");let e=t.length;if(e%4===0&&t.charCodeAt(e-1)===61&&(--e,t.charCodeAt(e-1)===61&&--e),e%4===1||/[^+/0-9A-Za-z]/.test(t.length===e?t:t.substring(0,e)))return"failure";let r=Buffer.from(t,"base64");return new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}o(QMe,"forgivingBase64");function wX(t,e,r){let n=e.position,i="";for(xB(t[e.position]==='"'),e.position++;i+=vB(a=>a!=='"'&&a!=="\\",t,e),!(e.position>=t.length);){let s=t[e.position];if(e.position++,s==="\\"){if(e.position>=t.length){i+="\\";break}i+=t[e.position],e.position++}else{xB(s==='"');break}}return r?i:t.slice(n,e.position)}o(wX,"collectAnHTTPQuotedString");function kMe(t){xB(t!=="failure");let{parameters:e,essence:r}=t,n=r;for(let[i,s]of e.entries())n+=";",n+=i,n+="=",fC.test(s)||(s=s.replace(/(\\|")/g,"\\$1"),s='"'+s,s+='"'),n+=s;return n}o(kMe,"serializeAMimeType");function PMe(t){return t===13||t===10||t===9||t===32}o(PMe,"isHTTPWhiteSpace");function BB(t,e=!0,r=!0){return pO(t,e,r,PMe)}o(BB,"removeHTTPWhitespace");function OMe(t){return t===13||t===10||t===9||t===12||t===32}o(OMe,"isASCIIWhitespace");function LMe(t,e=!0,r=!0){return pO(t,e,r,OMe)}o(LMe,"removeASCIIWhitespace");function pO(t,e,r,n){let i=0,s=t.length-1;if(e)for(;i0&&n(t.charCodeAt(s));)s--;return i===0&&s===t.length-1?t:t.slice(i,s+1)}o(pO,"removeChars");function IX(t){let e=t.length;if(65535>e)return String.fromCharCode.apply(null,t);let r="",n=0,i=65535;for(;ne&&(i=e-n),r+=String.fromCharCode.apply(null,t.subarray(n,n+=i));return r}o(IX,"isomorphicDecode");function FMe(t){switch(t.essence){case"application/ecmascript":case"application/javascript":case"application/x-ecmascript":case"application/x-javascript":case"text/ecmascript":case"text/javascript":case"text/javascript1.0":case"text/javascript1.1":case"text/javascript1.2":case"text/javascript1.3":case"text/javascript1.4":case"text/javascript1.5":case"text/jscript":case"text/livescript":case"text/x-ecmascript":case"text/x-javascript":return"text/javascript";case"application/json":case"text/json":return"application/json";case"image/svg+xml":return"image/svg+xml";case"text/xml":case"application/xml":return"application/xml"}return t.subtype.endsWith("+json")?"application/json":t.subtype.endsWith("+xml")?"application/xml":""}o(FMe,"minimizeSupportedMimeType");SX.exports={dataURLProcessor:TMe,URLSerializer:CX,collectASequenceOfCodePoints:vB,collectASequenceOfCodePointsFast:MA,stringPercentDecode:bX,parseMIMEType:hO,collectAnHTTPQuotedString:wX,serializeAMimeType:kMe,removeChars:pO,removeHTTPWhitespace:BB,minimizeSupportedMimeType:FMe,HTTP_TOKEN_CODEPOINTS:fC,isomorphicDecode:IX}});var qn=g((iGt,BX)=>{"use strict";var{types:nc,inspect:MMe}=require("node:util"),{markAsUncloneable:UMe}=require("node:worker_threads"),{toUSVString:qMe}=st(),J={};J.converters={};J.util={};J.errors={};J.errors.exception=function(t){return new TypeError(`${t.header}: ${t.message}`)};J.errors.conversionFailed=function(t){let e=t.types.length===1?"":" one of",r=`${t.argument} could not be converted to${e}: ${t.types.join(", ")}.`;return J.errors.exception({header:t.prefix,message:r})};J.errors.invalidArgument=function(t){return J.errors.exception({header:t.prefix,message:`"${t.value}" is an invalid ${t.type}.`})};J.brandCheck=function(t,e,r){if(r?.strict!==!1){if(!(t instanceof e)){let n=new TypeError("Illegal invocation");throw n.code="ERR_INVALID_THIS",n}}else if(t?.[Symbol.toStringTag]!==e.prototype[Symbol.toStringTag]){let n=new TypeError("Illegal invocation");throw n.code="ERR_INVALID_THIS",n}};J.argumentLengthCheck=function({length:t},e,r){if(t{});J.util.ConvertToInt=function(t,e,r,n){let i,s;e===64?(i=Math.pow(2,53)-1,r==="unsigned"?s=0:s=Math.pow(-2,53)+1):r==="unsigned"?(s=0,i=Math.pow(2,e)-1):(s=Math.pow(-2,e)-1,i=Math.pow(2,e-1)-1);let a=Number(t);if(a===0&&(a=0),n?.enforceRange===!0){if(Number.isNaN(a)||a===Number.POSITIVE_INFINITY||a===Number.NEGATIVE_INFINITY)throw J.errors.exception({header:"Integer conversion",message:`Could not convert ${J.util.Stringify(t)} to an integer.`});if(a=J.util.IntegerPart(a),ai)throw J.errors.exception({header:"Integer conversion",message:`Value must be between ${s}-${i}, got ${a}.`});return a}return!Number.isNaN(a)&&n?.clamp===!0?(a=Math.min(Math.max(a,s),i),Math.floor(a)%2===0?a=Math.floor(a):a=Math.ceil(a),a):Number.isNaN(a)||a===0&&Object.is(0,a)||a===Number.POSITIVE_INFINITY||a===Number.NEGATIVE_INFINITY?0:(a=J.util.IntegerPart(a),a=a%Math.pow(2,e),r==="signed"&&a>=Math.pow(2,e)-1?a-Math.pow(2,e):a)};J.util.IntegerPart=function(t){let e=Math.floor(Math.abs(t));return t<0?-1*e:e};J.util.Stringify=function(t){switch(J.util.Type(t)){case"Symbol":return`Symbol(${t.description})`;case"Object":return MMe(t);case"String":return`"${t}"`;default:return`${t}`}};J.sequenceConverter=function(t){return(e,r,n,i)=>{if(J.util.Type(e)!=="Object")throw J.errors.exception({header:r,message:`${n} (${J.util.Stringify(e)}) is not iterable.`});let s=typeof i=="function"?i():e?.[Symbol.iterator]?.(),a=[],c=0;if(s===void 0||typeof s.next!="function")throw J.errors.exception({header:r,message:`${n} is not iterable.`});for(;;){let{done:l,value:u}=s.next();if(l)break;a.push(t(u,r,`${n}[${c++}]`))}return a}};J.recordConverter=function(t,e){return(r,n,i)=>{if(J.util.Type(r)!=="Object")throw J.errors.exception({header:n,message:`${i} ("${J.util.Type(r)}") is not an Object.`});let s={};if(!nc.isProxy(r)){let c=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let l of c){let u=t(l,n,i),d=e(r[l],n,i);s[u]=d}return s}let a=Reflect.ownKeys(r);for(let c of a)if(Reflect.getOwnPropertyDescriptor(r,c)?.enumerable){let u=t(c,n,i),d=e(r[c],n,i);s[u]=d}return s}};J.interfaceConverter=function(t){return(e,r,n,i)=>{if(i?.strict!==!1&&!(e instanceof t))throw J.errors.exception({header:r,message:`Expected ${n} ("${J.util.Stringify(e)}") to be an instance of ${t.name}.`});return e}};J.dictionaryConverter=function(t){return(e,r,n)=>{let i=J.util.Type(e),s={};if(i==="Null"||i==="Undefined")return s;if(i!=="Object")throw J.errors.exception({header:r,message:`Expected ${e} to be one of: Null, Undefined, Object.`});for(let a of t){let{key:c,defaultValue:l,required:u,converter:d}=a;if(u===!0&&!Object.hasOwn(e,c))throw J.errors.exception({header:r,message:`Missing required key "${c}".`});let f=e[c],h=Object.hasOwn(a,"defaultValue");if(h&&f!==null&&(f??=l()),u||h||f!==void 0){if(f=d(f,r,`${n}.${c}`),a.allowedValues&&!a.allowedValues.includes(f))throw J.errors.exception({header:r,message:`${f} is not an accepted type. Expected one of ${a.allowedValues.join(", ")}.`});s[c]=f}}return s}};J.nullableConverter=function(t){return(e,r,n)=>e===null?e:t(e,r,n)};J.converters.DOMString=function(t,e,r,n){if(t===null&&n?.legacyNullToEmptyString)return"";if(typeof t=="symbol")throw J.errors.exception({header:e,message:`${r} is a symbol, which cannot be converted to a DOMString.`});return String(t)};J.converters.ByteString=function(t,e,r){let n=J.converters.DOMString(t,e,r);for(let i=0;i255)throw new TypeError(`Cannot convert argument to a ByteString because the character at index ${i} has a value of ${n.charCodeAt(i)} which is greater than 255.`);return n};J.converters.USVString=qMe;J.converters.boolean=function(t){return!!t};J.converters.any=function(t){return t};J.converters["long long"]=function(t,e,r){return J.util.ConvertToInt(t,64,"signed",void 0,e,r)};J.converters["unsigned long long"]=function(t,e,r){return J.util.ConvertToInt(t,64,"unsigned",void 0,e,r)};J.converters["unsigned long"]=function(t,e,r){return J.util.ConvertToInt(t,32,"unsigned",void 0,e,r)};J.converters["unsigned short"]=function(t,e,r,n){return J.util.ConvertToInt(t,16,"unsigned",n,e,r)};J.converters.ArrayBuffer=function(t,e,r,n){if(J.util.Type(t)!=="Object"||!nc.isAnyArrayBuffer(t))throw J.errors.conversionFailed({prefix:e,argument:`${r} ("${J.util.Stringify(t)}")`,types:["ArrayBuffer"]});if(n?.allowShared===!1&&nc.isSharedArrayBuffer(t))throw J.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});if(t.resizable||t.growable)throw J.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."});return t};J.converters.TypedArray=function(t,e,r,n,i){if(J.util.Type(t)!=="Object"||!nc.isTypedArray(t)||t.constructor.name!==e.name)throw J.errors.conversionFailed({prefix:r,argument:`${n} ("${J.util.Stringify(t)}")`,types:[e.name]});if(i?.allowShared===!1&&nc.isSharedArrayBuffer(t.buffer))throw J.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});if(t.buffer.resizable||t.buffer.growable)throw J.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."});return t};J.converters.DataView=function(t,e,r,n){if(J.util.Type(t)!=="Object"||!nc.isDataView(t))throw J.errors.exception({header:e,message:`${r} is not a DataView.`});if(n?.allowShared===!1&&nc.isSharedArrayBuffer(t.buffer))throw J.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});if(t.buffer.resizable||t.buffer.growable)throw J.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."});return t};J.converters.BufferSource=function(t,e,r,n){if(nc.isAnyArrayBuffer(t))return J.converters.ArrayBuffer(t,e,r,{...n,allowShared:!1});if(nc.isTypedArray(t))return J.converters.TypedArray(t,t.constructor,e,r,{...n,allowShared:!1});if(nc.isDataView(t))return J.converters.DataView(t,e,r,{...n,allowShared:!1});throw J.errors.conversionFailed({prefix:e,argument:`${r} ("${J.util.Stringify(t)}")`,types:["BufferSource"]})};J.converters["sequence"]=J.sequenceConverter(J.converters.ByteString);J.converters["sequence>"]=J.sequenceConverter(J.converters["sequence"]);J.converters["record"]=J.recordConverter(J.converters.ByteString,J.converters.ByteString);BX.exports={webidl:J}});var xs=g((sGt,MX)=>{"use strict";var{Transform:GMe}=require("node:stream"),xX=require("node:zlib"),{redirectStatusSet:HMe,referrerPolicySet:zMe,badPortsSet:VMe}=dC(),{getGlobalOrigin:vX}=fO(),{collectASequenceOfCodePoints:Wf,collectAnHTTPQuotedString:$Me,removeChars:jMe,parseMIMEType:WMe}=Yi(),{performance:JMe}=require("node:perf_hooks"),{isBlobLike:YMe,ReadableStreamFrom:KMe,isValidHTTPToken:NX,normalizedMethodRecordsBase:XMe}=st(),Jf=require("node:assert"),{isUint8Array:ZMe}=require("node:util/types"),{webidl:hC}=qn(),RX=[],RB;try{RB=require("node:crypto");let t=["sha256","sha384","sha512"];RX=RB.getHashes().filter(e=>t.includes(e))}catch{}function _X(t){let e=t.urlList,r=e.length;return r===0?null:e[r-1].toString()}o(_X,"responseURL");function eUe(t,e){if(!HMe.has(t.status))return null;let r=t.headersList.get("location",!0);return r!==null&&DX(r)&&(TX(r)||(r=tUe(r)),r=new URL(r,_X(t))),r&&!r.hash&&(r.hash=e),r}o(eUe,"responseLocationURL");function TX(t){for(let e=0;e126||r<32)return!1}return!0}o(TX,"isValidEncodedURL");function tUe(t){return Buffer.from(t,"binary").toString("utf8")}o(tUe,"normalizeBinaryStringToUtf8");function AC(t){return t.urlList[t.urlList.length-1]}o(AC,"requestCurrentURL");function rUe(t){let e=AC(t);return LX(e)&&VMe.has(e.port)?"blocked":"allowed"}o(rUe,"requestBadPort");function nUe(t){return t instanceof Error||t?.constructor?.name==="Error"||t?.constructor?.name==="DOMException"}o(nUe,"isErrorLike");function iUe(t){for(let e=0;e=32&&r<=126||r>=128&&r<=255))return!1}return!0}o(iUe,"isValidReasonPhrase");var sUe=NX;function DX(t){return(t[0]===" "||t[0]===" "||t[t.length-1]===" "||t[t.length-1]===" "||t.includes(` -`)||t.includes("\r")||t.includes("\0"))===!1}o(DX,"isValidHeaderValue");function oUe(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),i="";if(n.length>0)for(let s=n.length;s!==0;s--){let a=n[s-1].trim();if(zMe.has(a)){i=a;break}}i!==""&&(t.referrerPolicy=i)}o(oUe,"setRequestReferrerPolicyOnRedirect");function aUe(){return"allowed"}o(aUe,"crossOriginResourcePolicyCheck");function cUe(){return"success"}o(cUe,"corsCheck");function lUe(){return"success"}o(lUe,"TAOCheck");function uUe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(uUe,"appendFetchMetadata");function dUe(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&mO(t.origin)&&!mO(AC(t))&&(e=null);break;case"same-origin":_B(t,AC(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(dUe,"appendRequestOriginHeader");function UA(t,e){return t}o(UA,"coarsenTime");function fUe(t,e,r){return!t?.startTime||t.startTime4096&&(n=i);let s=_B(t,n),a=pC(n)&&!pC(t.url);switch(e){case"origin":return i??AO(r,!0);case"unsafe-url":return n;case"same-origin":return s?i:"no-referrer";case"origin-when-cross-origin":return s?n:i;case"strict-origin-when-cross-origin":{let c=AC(t);return _B(n,c)?n:pC(n)&&!pC(c)?"no-referrer":i}default:return a?"no-referrer":i}}o(mUe,"determineRequestsReferrer");function AO(t,e){return Jf(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}o(AO,"stripURLForReferrer");function pC(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}o(pC,"isURLPotentiallyTrustworthy");function gUe(t,e){if(RB===void 0)return!0;let r=kX(e);if(r==="no metadata"||r.length===0)return!0;let n=EUe(r),i=CUe(r,n);for(let s of i){let a=s.algo,c=s.hash,l=RB.createHash(a).update(t).digest("base64");if(l[l.length-1]==="="&&(l[l.length-2]==="="?l=l.slice(0,-2):l=l.slice(0,-1)),bUe(l,c))return!0}return!1}o(gUe,"bytesMatch");var yUe=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function kX(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let i=yUe.exec(n);if(i===null||i.groups===void 0||i.groups.algo===void 0)continue;let s=i.groups.algo.toLowerCase();RX.includes(s)&&e.push(i.groups)}return r===!0?"no metadata":e}o(kX,"parseMetadata");function EUe(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r{t=n,e=i}),resolve:t,reject:e}}o(IUe,"createDeferredPromise");function SUe(t){return t.controller.state==="aborted"}o(SUe,"isAborted");function BUe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}o(BUe,"isCancelled");function xUe(t){return XMe[t.toLowerCase()]??t}o(xUe,"normalizeMethod");function vUe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Jf(typeof e=="string"),e}o(vUe,"serializeJavascriptValueToJSONString");var NUe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function PX(t,e,r=0,n=1){class i{static{o(this,"FastIterableIterator")}#e;#r;#n;constructor(a,c){this.#e=a,this.#r=c,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let a=this.#n,c=this.#e[e],l=c.length;if(a>=l)return{value:void 0,done:!0};let{[r]:u,[n]:d}=c[a];this.#n=a+1;let f;switch(this.#r){case"key":f=u;break;case"value":f=d;break;case"key+value":f=[u,d];break}return{value:f,done:!1}}}return delete i.prototype.constructor,Object.setPrototypeOf(i.prototype,NUe),Object.defineProperties(i.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(s,a){return new i(s,a)}}o(PX,"createIterator");function RUe(t,e,r,n=0,i=1){let s=PX(t,r,n,i),a={keys:{writable:!0,enumerable:!0,configurable:!0,value:o(function(){return hC.brandCheck(this,e),s(this,"key")},"keys")},values:{writable:!0,enumerable:!0,configurable:!0,value:o(function(){return hC.brandCheck(this,e),s(this,"value")},"values")},entries:{writable:!0,enumerable:!0,configurable:!0,value:o(function(){return hC.brandCheck(this,e),s(this,"key+value")},"entries")},forEach:{writable:!0,enumerable:!0,configurable:!0,value:o(function(l,u=globalThis){if(hC.brandCheck(this,e),hC.argumentLengthCheck(arguments,1,`${t}.forEach`),typeof l!="function")throw new TypeError(`Failed to execute 'forEach' on '${t}': parameter 1 is not of type 'Function'.`);for(let{0:d,1:f}of s(this,"key+value"))l.call(u,f,d,this)},"forEach")}};return Object.defineProperties(e.prototype,{...a,[Symbol.iterator]:{writable:!0,enumerable:!1,configurable:!0,value:a.entries.value}})}o(RUe,"iteratorMixin");async function _Ue(t,e,r){let n=e,i=r,s;try{s=t.stream.getReader()}catch(a){i(a);return}try{n(await OX(s))}catch(a){i(a)}}o(_Ue,"fullyReadBody");function TUe(t){return t instanceof ReadableStream||t[Symbol.toStringTag]==="ReadableStream"&&typeof t.tee=="function"}o(TUe,"isReadableStreamLike");function DUe(t){try{t.close(),t.byobRequest?.respond(0)}catch(e){if(!e.message.includes("Controller is already closed")&&!e.message.includes("ReadableStream is already closed"))throw e}}o(DUe,"readableStreamClose");var QUe=/[^\x00-\xFF]/;function NB(t){return Jf(!QUe.test(t)),t}o(NB,"isomorphicEncode");async function OX(t){let e=[],r=0;for(;;){let{done:n,value:i}=await t.read();if(n)return Buffer.concat(e,r);if(!ZMe(i))throw new TypeError("Received non-Uint8Array chunk");e.push(i),r+=i.length}}o(OX,"readAllBytes");function kUe(t){Jf("protocol"in t);let e=t.protocol;return e==="about:"||e==="blob:"||e==="data:"}o(kUe,"urlIsLocal");function mO(t){return typeof t=="string"&&t[5]===":"&&t[0]==="h"&&t[1]==="t"&&t[2]==="t"&&t[3]==="p"&&t[4]==="s"||t.protocol==="https:"}o(mO,"urlHasHttpsScheme");function LX(t){Jf("protocol"in t);let e=t.protocol;return e==="http:"||e==="https:"}o(LX,"urlIsHttpHttpsScheme");function PUe(t,e){let r=t;if(!r.startsWith("bytes"))return"failure";let n={position:5};if(e&&Wf(l=>l===" "||l===" ",r,n),r.charCodeAt(n.position)!==61)return"failure";n.position++,e&&Wf(l=>l===" "||l===" ",r,n);let i=Wf(l=>{let u=l.charCodeAt(0);return u>=48&&u<=57},r,n),s=i.length?Number(i):null;if(e&&Wf(l=>l===" "||l===" ",r,n),r.charCodeAt(n.position)!==45)return"failure";n.position++,e&&Wf(l=>l===" "||l===" ",r,n);let a=Wf(l=>{let u=l.charCodeAt(0);return u>=48&&u<=57},r,n),c=a.length?Number(a):null;return n.positionc?"failure":{rangeStartValue:s,rangeEndValue:c}}o(PUe,"simpleRangeHeaderValue");function OUe(t,e,r){let n="bytes ";return n+=NB(`${t}`),n+="-",n+=NB(`${e}`),n+="/",n+=NB(`${r}`),n}o(OUe,"buildContentRange");var gO=class extends GMe{static{o(this,"InflateStream")}#e;constructor(e){super(),this.#e=e}_transform(e,r,n){if(!this._inflateStream){if(e.length===0){n();return}this._inflateStream=(e[0]&15)===8?xX.createInflate(this.#e):xX.createInflateRaw(this.#e),this._inflateStream.on("data",this.push.bind(this)),this._inflateStream.on("end",()=>this.push(null)),this._inflateStream.on("error",i=>this.destroy(i))}this._inflateStream.write(e,r,n)}_final(e){this._inflateStream&&(this._inflateStream.end(),this._inflateStream=null),e()}};function LUe(t){return new gO(t)}o(LUe,"createInflate");function FUe(t){let e=null,r=null,n=null,i=FX("content-type",t);if(i===null)return"failure";for(let s of i){let a=WMe(s);a==="failure"||a.essence==="*/*"||(n=a,n.essence!==r?(e=null,n.parameters.has("charset")&&(e=n.parameters.get("charset")),r=n.essence):!n.parameters.has("charset")&&e!==null&&n.parameters.set("charset",e))}return n??"failure"}o(FUe,"extractMimeType");function MUe(t){let e=t,r={position:0},n=[],i="";for(;r.positions!=='"'&&s!==",",e,r),r.positions===9||s===32),n.push(i),i=""}return n}o(MUe,"gettingDecodingSplitting");function FX(t,e){let r=e.get(t,!0);return r===null?null:MUe(r)}o(FX,"getDecodeSplit");var UUe=new TextDecoder;function qUe(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),UUe.decode(t))}o(qUe,"utf8DecodeBytes");var yO=class{static{o(this,"EnvironmentSettingsObjectBase")}get baseUrl(){return vX()}get origin(){return this.baseUrl?.origin}policyContainer=QX()},EO=class{static{o(this,"EnvironmentSettingsObject")}settingsObject=new yO},GUe=new EO;MX.exports={isAborted:SUe,isCancelled:BUe,isValidEncodedURL:TX,createDeferredPromise:IUe,ReadableStreamFrom:KMe,tryUpgradeRequestToAPotentiallyTrustworthyURL:wUe,clampAndCoarsenConnectionTimingInfo:fUe,coarsenedSharedCurrentTime:hUe,determineRequestsReferrer:mUe,makePolicyContainer:QX,clonePolicyContainer:AUe,appendFetchMetadata:uUe,appendRequestOriginHeader:dUe,TAOCheck:lUe,corsCheck:cUe,crossOriginResourcePolicyCheck:aUe,createOpaqueTimingInfo:pUe,setRequestReferrerPolicyOnRedirect:oUe,isValidHTTPToken:NX,requestBadPort:rUe,requestCurrentURL:AC,responseURL:_X,responseLocationURL:eUe,isBlobLike:YMe,isURLPotentiallyTrustworthy:pC,isValidReasonPhrase:iUe,sameOrigin:_B,normalizeMethod:xUe,serializeJavascriptValueToJSONString:vUe,iteratorMixin:RUe,createIterator:PX,isValidHeaderName:sUe,isValidHeaderValue:DX,isErrorLike:nUe,fullyReadBody:_Ue,bytesMatch:gUe,isReadableStreamLike:TUe,readableStreamClose:DUe,isomorphicEncode:NB,urlIsLocal:kUe,urlHasHttpsScheme:mO,urlIsHttpHttpsScheme:LX,readAllBytes:OX,simpleRangeHeaderValue:PUe,buildContentRange:OUe,parseMetadata:kX,createInflate:LUe,extractMimeType:FUe,getDecodeSplit:FX,utf8DecodeBytes:qUe,environmentSettingsObject:GUe}});var rd=g((aGt,UX)=>{"use strict";UX.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kDispatcher:Symbol("dispatcher")}});var bO=g((cGt,qX)=>{"use strict";var{Blob:HUe,File:zUe}=require("node:buffer"),{kState:$l}=rd(),{webidl:ic}=qn(),CO=class t{static{o(this,"FileLike")}constructor(e,r,n={}){let i=r,s=n.type,a=n.lastModified??Date.now();this[$l]={blobLike:e,name:i,type:s,lastModified:a}}stream(...e){return ic.brandCheck(this,t),this[$l].blobLike.stream(...e)}arrayBuffer(...e){return ic.brandCheck(this,t),this[$l].blobLike.arrayBuffer(...e)}slice(...e){return ic.brandCheck(this,t),this[$l].blobLike.slice(...e)}text(...e){return ic.brandCheck(this,t),this[$l].blobLike.text(...e)}get size(){return ic.brandCheck(this,t),this[$l].blobLike.size}get type(){return ic.brandCheck(this,t),this[$l].blobLike.type}get name(){return ic.brandCheck(this,t),this[$l].name}get lastModified(){return ic.brandCheck(this,t),this[$l].lastModified}get[Symbol.toStringTag](){return"File"}};ic.converters.Blob=ic.interfaceConverter(HUe);function VUe(t){return t instanceof zUe||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}o(VUe,"isFileLike");qX.exports={FileLike:CO,isFileLike:VUe}});var gC=g((uGt,$X)=>{"use strict";var{isBlobLike:TB,iteratorMixin:$Ue}=xs(),{kState:wi}=rd(),{kEnumerableProperty:qA}=st(),{FileLike:GX,isFileLike:jUe}=bO(),{webidl:$t}=qn(),{File:VX}=require("node:buffer"),HX=require("node:util"),zX=globalThis.File??VX,mC=class t{static{o(this,"FormData")}constructor(e){if($t.util.markAsUncloneable(this),e!==void 0)throw $t.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[wi]=[]}append(e,r,n=void 0){$t.brandCheck(this,t);let i="FormData.append";if($t.argumentLengthCheck(arguments,2,i),arguments.length===3&&!TB(r))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=$t.converters.USVString(e,i,"name"),r=TB(r)?$t.converters.Blob(r,i,"value",{strict:!1}):$t.converters.USVString(r,i,"value"),n=arguments.length===3?$t.converters.USVString(n,i,"filename"):void 0;let s=wO(e,r,n);this[wi].push(s)}delete(e){$t.brandCheck(this,t);let r="FormData.delete";$t.argumentLengthCheck(arguments,1,r),e=$t.converters.USVString(e,r,"name"),this[wi]=this[wi].filter(n=>n.name!==e)}get(e){$t.brandCheck(this,t);let r="FormData.get";$t.argumentLengthCheck(arguments,1,r),e=$t.converters.USVString(e,r,"name");let n=this[wi].findIndex(i=>i.name===e);return n===-1?null:this[wi][n].value}getAll(e){$t.brandCheck(this,t);let r="FormData.getAll";return $t.argumentLengthCheck(arguments,1,r),e=$t.converters.USVString(e,r,"name"),this[wi].filter(n=>n.name===e).map(n=>n.value)}has(e){$t.brandCheck(this,t);let r="FormData.has";return $t.argumentLengthCheck(arguments,1,r),e=$t.converters.USVString(e,r,"name"),this[wi].findIndex(n=>n.name===e)!==-1}set(e,r,n=void 0){$t.brandCheck(this,t);let i="FormData.set";if($t.argumentLengthCheck(arguments,2,i),arguments.length===3&&!TB(r))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=$t.converters.USVString(e,i,"name"),r=TB(r)?$t.converters.Blob(r,i,"name",{strict:!1}):$t.converters.USVString(r,i,"name"),n=arguments.length===3?$t.converters.USVString(n,i,"name"):void 0;let s=wO(e,r,n),a=this[wi].findIndex(c=>c.name===e);a!==-1?this[wi]=[...this[wi].slice(0,a),s,...this[wi].slice(a+1).filter(c=>c.name!==e)]:this[wi].push(s)}[HX.inspect.custom](e,r){let n=this[wi].reduce((s,a)=>(s[a.name]?Array.isArray(s[a.name])?s[a.name].push(a.value):s[a.name]=[s[a.name],a.value]:s[a.name]=a.value,s),{__proto__:null});r.depth??=e,r.colors??=!0;let i=HX.formatWithOptions(r,n);return`FormData ${i.slice(i.indexOf("]")+2)}`}};$Ue("FormData",mC,wi,"name","value");Object.defineProperties(mC.prototype,{append:qA,delete:qA,get:qA,getAll:qA,has:qA,set:qA,[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function wO(t,e,r){if(typeof e!="string"){if(jUe(e)||(e=e instanceof Blob?new zX([e],"blob",{type:e.type}):new GX(e,"blob",{type:e.type})),r!==void 0){let n={type:e.type,lastModified:e.lastModified};e=e instanceof VX?new zX([e],r,n):new GX(e,r,n)}}return{name:t,value:e}}o(wO,"makeEntry");$X.exports={FormData:mC,makeEntry:wO}});var XX=g((fGt,KX)=>{"use strict";var{isUSVString:jX,bufferToLowerCasedHeaderName:WUe}=st(),{utf8DecodeBytes:JUe}=xs(),{HTTP_TOKEN_CODEPOINTS:YUe,isomorphicDecode:WX}=Yi(),{isFileLike:KUe}=bO(),{makeEntry:XUe}=gC(),DB=require("node:assert"),{File:ZUe}=require("node:buffer"),eqe=globalThis.File??ZUe,tqe=Buffer.from('form-data; name="'),JX=Buffer.from("; filename"),rqe=Buffer.from("--"),nqe=Buffer.from(`--\r -`);function iqe(t){for(let e=0;e70)return!1;for(let r=0;r=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}o(sqe,"validateBoundary");function oqe(t,e){DB(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),i=[],s={position:0};for(;t[s.position]===13&&t[s.position+1]===10;)s.position+=2;let a=t.length;for(;t[a-1]===10&&t[a-2]===13;)a-=2;for(a!==t.length&&(t=t.subarray(0,a));;){if(t.subarray(s.position,s.position+n.length).equals(n))s.position+=n.length;else return"failure";if(s.position===t.length-2&&QB(t,rqe,s)||s.position===t.length-4&&QB(t,nqe,s))return i;if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let c=aqe(t,s);if(c==="failure")return"failure";let{name:l,filename:u,contentType:d,encoding:f}=c;s.position+=2;let h;{let m=t.indexOf(n.subarray(2),s.position);if(m===-1)return"failure";h=t.subarray(s.position,m-4),s.position+=h.length,f==="base64"&&(h=Buffer.from(h.toString(),"base64"))}if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let p;u!==null?(d??="text/plain",iqe(d)||(d=""),p=new eqe([h],u,{type:d})):p=JUe(Buffer.from(h)),DB(jX(l)),DB(typeof p=="string"&&jX(p)||KUe(p)),i.push(XUe(l,p,u))}}o(oqe,"multipartFormDataParser");function aqe(t,e){let r=null,n=null,i=null,s=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:i,encoding:s};let a=GA(c=>c!==10&&c!==13&&c!==58,t,e);if(a=IO(a,!0,!0,c=>c===9||c===32),!YUe.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,GA(c=>c===32||c===9,t,e),WUe(a)){case"content-disposition":{if(r=n=null,!QB(t,tqe,e)||(e.position+=17,r=YX(t,e),r===null))return"failure";if(QB(t,JX,e)){let c=e.position+JX.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,n=YX(t,e),n===null))return"failure"}break}case"content-type":{let c=GA(l=>l!==10&&l!==13,t,e);c=IO(c,!1,!0,l=>l===9||l===32),i=WX(c);break}case"content-transfer-encoding":{let c=GA(l=>l!==10&&l!==13,t,e);c=IO(c,!1,!0,l=>l===9||l===32),s=WX(c);break}default:GA(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(aqe,"parseMultipartFormDataHeaders");function YX(t,e){DB(t[e.position-1]===34);let r=GA(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,` -`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}o(YX,"parseMultipartFormDataName");function GA(t,e,r){let n=r.position;for(;n0&&n(t[s]);)s--;return i===0&&s===t.length-1?t:t.subarray(i,s+1)}o(IO,"removeChars");function QB(t,e,r){if(t.length{"use strict";var yC=st(),{ReadableStreamFrom:cqe,isBlobLike:ZX,isReadableStreamLike:lqe,readableStreamClose:uqe,createDeferredPromise:dqe,fullyReadBody:fqe,extractMimeType:hqe,utf8DecodeBytes:rZ}=xs(),{FormData:eZ}=gC(),{kState:zA}=rd(),{webidl:pqe}=qn(),{Blob:Aqe}=require("node:buffer"),SO=require("node:assert"),{isErrored:nZ,isDisturbed:mqe}=require("node:stream"),{isArrayBuffer:gqe}=require("node:util/types"),{serializeAMimeType:yqe}=Yi(),{multipartFormDataParser:Eqe}=XX(),BO;try{let t=require("node:crypto");BO=o(e=>t.randomInt(0,e),"random")}catch{BO=o(t=>Math.floor(Math.random(t)),"random")}var kB=new TextEncoder;function Cqe(){}o(Cqe,"noop");var iZ=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,sZ;iZ&&(sZ=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!mqe(e)&&!nZ(e)&&e.cancel("Response object has been garbage collected").catch(Cqe)}));function oZ(t,e=!1){let r=null;t instanceof ReadableStream?r=t:ZX(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof i=="string"?kB.encode(i):i;u.byteLength&&l.enqueue(u),queueMicrotask(()=>uqe(l))},start(){},type:"bytes"}),SO(lqe(r));let n=null,i=null,s=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(gqe(t))i=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))i=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(yC.isFormDataLike(t)){let l=`----formdata-undici-0${`${BO(1e11)}`.padStart(11,"0")}`,u=`--${l}\r +var _Le=Object.create;var oB=Object.defineProperty;var RLe=Object.getOwnPropertyDescriptor;var TLe=Object.getOwnPropertyNames;var DLe=Object.getPrototypeOf,QLe=Object.prototype.hasOwnProperty;var o=(t,e)=>oB(t,"name",{value:e,configurable:!0});var g=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),kLe=(t,e)=>{for(var r in e)oB(t,r,{get:e[r],enumerable:!0})},PLe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of TLe(e))!QLe.call(t,i)&&i!==r&&oB(t,i,{get:()=>e[i],enumerable:!(n=RLe(e,i))||n.enumerable});return t};var T=(t,e,r)=>(r=t!=null?_Le(DLe(t)):{},PLe(e||!t||!t.__esModule?oB(r,"default",{value:t,enumerable:!0}):r,t));var jK=g(RA=>{"use strict";var x3t=require("net"),qLe=require("tls"),CP=require("http"),zK=require("https"),GLe=require("events"),v3t=require("assert"),HLe=require("util");RA.httpOverHttp=zLe;RA.httpsOverHttp=VLe;RA.httpOverHttps=$Le;RA.httpsOverHttps=jLe;function zLe(t){var e=new Gl(t);return e.request=CP.request,e}o(zLe,"httpOverHttp");function VLe(t){var e=new Gl(t);return e.request=CP.request,e.createSocket=VK,e.defaultPort=443,e}o(VLe,"httpsOverHttp");function $Le(t){var e=new Gl(t);return e.request=zK.request,e}o($Le,"httpOverHttps");function jLe(t){var e=new Gl(t);return e.request=zK.request,e.createSocket=VK,e.defaultPort=443,e}o(jLe,"httpsOverHttps");function Gl(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||CP.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(n,i,s,a){for(var c=$K(i,s,a),l=0,u=e.requests.length;l=this.maxSockets){s.requests.push(a);return}s.createSocket(a,function(c){c.on("free",l),c.on("close",u),c.on("agentRemove",u),e.onSocket(c);function l(){s.emit("free",c,a)}o(l,"onFree");function u(d){s.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}o(u,"onCloseOrRemove")})},"addRequest");Gl.prototype.createSocket=o(function(e,r){var n=this,i={};n.sockets.push(i);var s=bP({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(s.localAddress=e.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")),rd("making CONNECT request");var a=n.request(s);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",d),a.end();function c(f){f.upgrade=!0}o(c,"onResponse");function l(f,h,p){process.nextTick(function(){u(f,h,p)})}o(l,"onUpgrade");function u(f,h,p){if(a.removeAllListeners(),h.removeAllListeners(),f.statusCode!==200){rd("tunneling socket could not be established, statusCode=%d",f.statusCode),h.destroy();var m=new Error("tunneling socket could not be established, statusCode="+f.statusCode);m.code="ECONNRESET",e.request.emit("error",m),n.removeSocket(i);return}if(p.length>0){rd("got illegal response body from proxy"),h.destroy();var m=new Error("got illegal response body from proxy");m.code="ECONNRESET",e.request.emit("error",m),n.removeSocket(i);return}return rd("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=h,r(h)}o(u,"onConnect");function d(f){a.removeAllListeners(),rd(`tunneling socket could not be established, cause=%s +`,f.message,f.stack);var h=new Error("tunneling socket could not be established, cause="+f.message);h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(i)}o(d,"onError")},"createSocket");Gl.prototype.removeSocket=o(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(i){n.request.onSocket(i)})}},"removeSocket");function VK(t,e){var r=this;Gl.prototype.createSocket.call(r,t,function(n){var i=t.request.getHeader("host"),s=bP({},r.options,{socket:n,servername:i?i.replace(/:.*$/,""):t.host}),a=qLe.connect(0,s);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}o(VK,"createSecureSocket");function $K(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o($K,"toOptions");function bP(t){for(var e=1,r=arguments.length;e{WK.exports=jK()});var cr=g((T3t,JK)=>{JK.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"),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"),kBody:Symbol("abstracted request body"),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"),kResume:Symbol("resume"),kOnError:Symbol("on error"),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"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var xt=g((D3t,C7)=>{"use strict";var YK=Symbol.for("undici.error.UND_ERR"),lr=class extends Error{static{o(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[YK]===!0}[YK]=!0},KK=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),wP=class extends lr{static{o(this,"ConnectTimeoutError")}constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[KK]===!0}[KK]=!0},XK=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),IP=class extends lr{static{o(this,"HeadersTimeoutError")}constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[XK]===!0}[XK]=!0},ZK=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),SP=class extends lr{static{o(this,"HeadersOverflowError")}constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[ZK]===!0}[ZK]=!0},e7=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),BP=class extends lr{static{o(this,"BodyTimeoutError")}constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[e7]===!0}[e7]=!0},t7=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),xP=class extends lr{static{o(this,"ResponseStatusCodeError")}constructor(e,r,n,i){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=i,this.status=r,this.statusCode=r,this.headers=n}static[Symbol.hasInstance](e){return e&&e[t7]===!0}[t7]=!0},r7=Symbol.for("undici.error.UND_ERR_INVALID_ARG"),vP=class extends lr{static{o(this,"InvalidArgumentError")}constructor(e){super(e),this.name="InvalidArgumentError",this.message=e||"Invalid Argument Error",this.code="UND_ERR_INVALID_ARG"}static[Symbol.hasInstance](e){return e&&e[r7]===!0}[r7]=!0},n7=Symbol.for("undici.error.UND_ERR_INVALID_RETURN_VALUE"),NP=class extends lr{static{o(this,"InvalidReturnValueError")}constructor(e){super(e),this.name="InvalidReturnValueError",this.message=e||"Invalid Return Value Error",this.code="UND_ERR_INVALID_RETURN_VALUE"}static[Symbol.hasInstance](e){return e&&e[n7]===!0}[n7]=!0},i7=Symbol.for("undici.error.UND_ERR_ABORT"),dB=class extends lr{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError",this.message=e||"The operation was aborted",this.code="UND_ERR_ABORT"}static[Symbol.hasInstance](e){return e&&e[i7]===!0}[i7]=!0},s7=Symbol.for("undici.error.UND_ERR_ABORTED"),_P=class extends dB{static{o(this,"RequestAbortedError")}constructor(e){super(e),this.name="AbortError",this.message=e||"Request aborted",this.code="UND_ERR_ABORTED"}static[Symbol.hasInstance](e){return e&&e[s7]===!0}[s7]=!0},o7=Symbol.for("undici.error.UND_ERR_INFO"),RP=class extends lr{static{o(this,"InformationalError")}constructor(e){super(e),this.name="InformationalError",this.message=e||"Request information",this.code="UND_ERR_INFO"}static[Symbol.hasInstance](e){return e&&e[o7]===!0}[o7]=!0},a7=Symbol.for("undici.error.UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"),TP=class extends lr{static{o(this,"RequestContentLengthMismatchError")}constructor(e){super(e),this.name="RequestContentLengthMismatchError",this.message=e||"Request body length does not match content-length header",this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}static[Symbol.hasInstance](e){return e&&e[a7]===!0}[a7]=!0},c7=Symbol.for("undici.error.UND_ERR_RES_CONTENT_LENGTH_MISMATCH"),DP=class extends lr{static{o(this,"ResponseContentLengthMismatchError")}constructor(e){super(e),this.name="ResponseContentLengthMismatchError",this.message=e||"Response body length does not match content-length header",this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}static[Symbol.hasInstance](e){return e&&e[c7]===!0}[c7]=!0},l7=Symbol.for("undici.error.UND_ERR_DESTROYED"),QP=class extends lr{static{o(this,"ClientDestroyedError")}constructor(e){super(e),this.name="ClientDestroyedError",this.message=e||"The client is destroyed",this.code="UND_ERR_DESTROYED"}static[Symbol.hasInstance](e){return e&&e[l7]===!0}[l7]=!0},u7=Symbol.for("undici.error.UND_ERR_CLOSED"),kP=class extends lr{static{o(this,"ClientClosedError")}constructor(e){super(e),this.name="ClientClosedError",this.message=e||"The client is closed",this.code="UND_ERR_CLOSED"}static[Symbol.hasInstance](e){return e&&e[u7]===!0}[u7]=!0},d7=Symbol.for("undici.error.UND_ERR_SOCKET"),PP=class extends lr{static{o(this,"SocketError")}constructor(e,r){super(e),this.name="SocketError",this.message=e||"Socket error",this.code="UND_ERR_SOCKET",this.socket=r}static[Symbol.hasInstance](e){return e&&e[d7]===!0}[d7]=!0},f7=Symbol.for("undici.error.UND_ERR_NOT_SUPPORTED"),OP=class extends lr{static{o(this,"NotSupportedError")}constructor(e){super(e),this.name="NotSupportedError",this.message=e||"Not supported error",this.code="UND_ERR_NOT_SUPPORTED"}static[Symbol.hasInstance](e){return e&&e[f7]===!0}[f7]=!0},h7=Symbol.for("undici.error.UND_ERR_BPL_MISSING_UPSTREAM"),LP=class extends lr{static{o(this,"BalancedPoolMissingUpstreamError")}constructor(e){super(e),this.name="MissingUpstreamError",this.message=e||"No upstream has been added to the BalancedPool",this.code="UND_ERR_BPL_MISSING_UPSTREAM"}static[Symbol.hasInstance](e){return e&&e[h7]===!0}[h7]=!0},p7=Symbol.for("undici.error.UND_ERR_HTTP_PARSER"),FP=class extends Error{static{o(this,"HTTPParserError")}constructor(e,r,n){super(e),this.name="HTTPParserError",this.code=r?`HPE_${r}`:void 0,this.data=n?n.toString():void 0}static[Symbol.hasInstance](e){return e&&e[p7]===!0}[p7]=!0},A7=Symbol.for("undici.error.UND_ERR_RES_EXCEEDED_MAX_SIZE"),MP=class extends lr{static{o(this,"ResponseExceededMaxSizeError")}constructor(e){super(e),this.name="ResponseExceededMaxSizeError",this.message=e||"Response content exceeded max size",this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}static[Symbol.hasInstance](e){return e&&e[A7]===!0}[A7]=!0},m7=Symbol.for("undici.error.UND_ERR_REQ_RETRY"),UP=class extends lr{static{o(this,"RequestRetryError")}constructor(e,r,{headers:n,data:i}){super(e),this.name="RequestRetryError",this.message=e||"Request retry error",this.code="UND_ERR_REQ_RETRY",this.statusCode=r,this.data=i,this.headers=n}static[Symbol.hasInstance](e){return e&&e[m7]===!0}[m7]=!0},g7=Symbol.for("undici.error.UND_ERR_RESPONSE"),qP=class extends lr{static{o(this,"ResponseError")}constructor(e,r,{headers:n,data:i}){super(e),this.name="ResponseError",this.message=e||"Response error",this.code="UND_ERR_RESPONSE",this.statusCode=r,this.data=i,this.headers=n}static[Symbol.hasInstance](e){return e&&e[g7]===!0}[g7]=!0},y7=Symbol.for("undici.error.UND_ERR_PRX_TLS"),GP=class extends lr{static{o(this,"SecureProxyConnectionError")}constructor(e,r,n){super(r,{cause:e,...n??{}}),this.name="SecureProxyConnectionError",this.message=r||"Secure Proxy Connection failed",this.code="UND_ERR_PRX_TLS",this.cause=e}static[Symbol.hasInstance](e){return e&&e[y7]===!0}[y7]=!0},E7=Symbol.for("undici.error.UND_ERR_WS_MESSAGE_SIZE_EXCEEDED"),HP=class extends lr{static{o(this,"MessageSizeExceededError")}constructor(e){super(e),this.name="MessageSizeExceededError",this.message=e||"Max decompressed message size exceeded",this.code="UND_ERR_WS_MESSAGE_SIZE_EXCEEDED"}static[Symbol.hasInstance](e){return e&&e[E7]===!0}get[E7](){return!0}};C7.exports={AbortError:dB,HTTPParserError:FP,UndiciError:lr,HeadersTimeoutError:IP,HeadersOverflowError:SP,BodyTimeoutError:BP,RequestContentLengthMismatchError:TP,ConnectTimeoutError:wP,ResponseStatusCodeError:xP,InvalidArgumentError:vP,InvalidReturnValueError:NP,RequestAbortedError:_P,ClientDestroyedError:QP,ClientClosedError:kP,InformationalError:RP,SocketError:PP,NotSupportedError:OP,ResponseContentLengthMismatchError:DP,BalancedPoolMissingUpstreamError:LP,ResponseExceededMaxSizeError:MP,RequestRetryError:UP,ResponseError:qP,SecureProxyConnectionError:GP,MessageSizeExceededError:HP}});var hB=g((k3t,b7)=>{"use strict";var fB={},zP=["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 t=0;t{"use strict";var{wellknownHeaderNames:w7,headerNameLowerCasedRecord:WLe}=hB(),VP=class t{static{o(this,"TstNode")}value=null;left=null;middle=null;right=null;code;constructor(e,r,n){if(n===void 0||n>=e.length)throw new TypeError("Unreachable");if((this.code=e.charCodeAt(n))>127)throw new TypeError("key must be ascii string");e.length!==++n?this.middle=new t(e,r,n):this.value=r}add(e,r){let n=e.length;if(n===0)throw new TypeError("Unreachable");let i=0,s=this;for(;;){let a=e.charCodeAt(i);if(a>127)throw new TypeError("key must be ascii string");if(s.code===a)if(n===++i){s.value=r;break}else if(s.middle!==null)s=s.middle;else{s.middle=new t(e,r,i);break}else if(s.code=65&&(s|=32);i!==null;){if(s===i.code){if(r===++n)return i;i=i.middle;break}i=i.code{"use strict";var aC=require("node:assert"),{kDestroyed:v7,kBodyUsed:DA,kListeners:$P,kBody:x7}=cr(),{IncomingMessage:JLe}=require("node:http"),gB=require("node:stream"),YLe=require("node:net"),{Blob:KLe}=require("node:buffer"),XLe=require("node:util"),{stringify:ZLe}=require("node:querystring"),{EventEmitter:eFe}=require("node:events"),{InvalidArgumentError:Sn}=xt(),{headerNameLowerCasedRecord:tFe}=hB(),{tree:N7}=B7(),[rFe,nFe]=process.versions.node.split(".").map(t=>Number(t)),mB=class{static{o(this,"BodyAsyncIterable")}constructor(e){this[x7]=e,this[DA]=!1}async*[Symbol.asyncIterator](){aC(!this[DA],"disturbed"),this[DA]=!0,yield*this[x7]}};function iFe(t){return yB(t)?(Q7(t)===0&&t.on("data",function(){aC(!1)}),typeof t.readableDidRead!="boolean"&&(t[DA]=!1,eFe.prototype.on.call(t,"data",function(){this[DA]=!0})),t):t&&typeof t.pipeTo=="function"?new mB(t):t&&typeof t!="string"&&!ArrayBuffer.isView(t)&&D7(t)?new mB(t):t}o(iFe,"wrapRequestBody");function sFe(){}o(sFe,"nop");function yB(t){return t&&typeof t=="object"&&typeof t.pipe=="function"&&typeof t.on=="function"}o(yB,"isStream");function _7(t){if(t===null)return!1;if(t instanceof KLe)return!0;if(typeof t!="object")return!1;{let e=t[Symbol.toStringTag];return(e==="Blob"||e==="File")&&("stream"in t&&typeof t.stream=="function"||"arrayBuffer"in t&&typeof t.arrayBuffer=="function")}}o(_7,"isBlobLike");function oFe(t,e){if(t.includes("?")||t.includes("#"))throw new Error('Query params cannot be passed when url already contains "?" or "#".');let r=ZLe(e);return r&&(t+="?"+r),t}o(oFe,"buildURL");function R7(t){let e=parseInt(t,10);return e===Number(t)&&e>=0&&e<=65535}o(R7,"isValidPort");function AB(t){return t!=null&&t[0]==="h"&&t[1]==="t"&&t[2]==="t"&&t[3]==="p"&&(t[4]===":"||t[4]==="s"&&t[5]===":")}o(AB,"isHttpOrHttpsPrefixed");function T7(t){if(typeof t=="string"){if(t=new URL(t),!AB(t.origin||t.protocol))throw new Sn("Invalid URL protocol: the URL must start with `http:` or `https:`.");return t}if(!t||typeof t!="object")throw new Sn("Invalid URL: The URL argument must be a non-null object.");if(!(t instanceof URL)){if(t.port!=null&&t.port!==""&&R7(t.port)===!1)throw new Sn("Invalid URL: port must be a valid integer or a string representation of an integer.");if(t.path!=null&&typeof t.path!="string")throw new Sn("Invalid URL path: the path must be a string or null/undefined.");if(t.pathname!=null&&typeof t.pathname!="string")throw new Sn("Invalid URL pathname: the pathname must be a string or null/undefined.");if(t.hostname!=null&&typeof t.hostname!="string")throw new Sn("Invalid URL hostname: the hostname must be a string or null/undefined.");if(t.origin!=null&&typeof t.origin!="string")throw new Sn("Invalid URL origin: the origin must be a string or null/undefined.");if(!AB(t.origin||t.protocol))throw new Sn("Invalid URL protocol: the URL must start with `http:` or `https:`.");let e=t.port!=null?t.port:t.protocol==="https:"?443:80,r=t.origin!=null?t.origin:`${t.protocol||""}//${t.hostname||""}:${e}`,n=t.path!=null?t.path:`${t.pathname||""}${t.search||""}`;return r[r.length-1]==="/"&&(r=r.slice(0,r.length-1)),n&&n[0]!=="/"&&(n=`/${n}`),new URL(`${r}${n}`)}if(!AB(t.origin||t.protocol))throw new Sn("Invalid URL protocol: the URL must start with `http:` or `https:`.");return t}o(T7,"parseURL");function aFe(t){if(t=T7(t),t.pathname!=="/"||t.search||t.hash)throw new Sn("invalid url");return t}o(aFe,"parseOrigin");function cFe(t){if(t[0]==="["){let r=t.indexOf("]");return aC(r!==-1),t.substring(1,r)}let e=t.indexOf(":");return e===-1?t:t.substring(0,e)}o(cFe,"getHostname");function lFe(t){if(!t)return null;aC(typeof t=="string");let e=cFe(t);return YLe.isIP(e)?"":e}o(lFe,"getServerName");function uFe(t){return JSON.parse(JSON.stringify(t))}o(uFe,"deepClone");function dFe(t){return t!=null&&typeof t[Symbol.asyncIterator]=="function"}o(dFe,"isAsyncIterable");function D7(t){return t!=null&&(typeof t[Symbol.iterator]=="function"||typeof t[Symbol.asyncIterator]=="function")}o(D7,"isIterable");function Q7(t){if(t==null)return 0;if(yB(t)){let e=t._readableState;return e&&e.objectMode===!1&&e.ended===!0&&Number.isFinite(e.length)?e.length:null}else{if(_7(t))return t.size!=null?t.size:null;if(O7(t))return t.byteLength}return null}o(Q7,"bodyLength");function k7(t){return t&&!!(t.destroyed||t[v7]||gB.isDestroyed?.(t))}o(k7,"isDestroyed");function fFe(t,e){t==null||!yB(t)||k7(t)||(typeof t.destroy=="function"?(Object.getPrototypeOf(t).constructor===JLe&&(t.socket=null),t.destroy(e)):e&&queueMicrotask(()=>{t.emit("error",e)}),t.destroyed!==!0&&(t[v7]=!0))}o(fFe,"destroy");var hFe=/timeout=(\d+)/;function pFe(t){let e=t.toString().match(hFe);return e?parseInt(e[1],10)*1e3:null}o(pFe,"parseKeepAliveTimeout");function P7(t){return typeof t=="string"?tFe[t]??t.toLowerCase():N7.lookup(t)??t.toString("latin1").toLowerCase()}o(P7,"headerNameToString");function AFe(t){return N7.lookup(t)??t.toString("latin1").toLowerCase()}o(AFe,"bufferToLowerCasedHeaderName");function mFe(t,e){e===void 0&&(e={});for(let r=0;ra.toString("utf8")):s.toString("utf8")}}return"content-length"in e&&"content-disposition"in e&&(e["content-disposition"]=Buffer.from(e["content-disposition"]).toString("latin1")),e}o(mFe,"parseHeaders");function gFe(t){let e=t.length,r=new Array(e),n=!1,i=-1,s,a,c=0;for(let l=0;l{r.close(),r.byobRequest?.respond(0)});else{let s=Buffer.isBuffer(i)?i:Buffer.from(i);s.byteLength&&r.enqueue(new Uint8Array(s))}return r.desiredSize>0},async cancel(r){await e.return()},type:"bytes"})}o(IFe,"ReadableStreamFrom");function SFe(t){return t&&typeof t=="object"&&typeof t.append=="function"&&typeof t.delete=="function"&&typeof t.get=="function"&&typeof t.getAll=="function"&&typeof t.has=="function"&&typeof t.set=="function"&&t[Symbol.toStringTag]==="FormData"}o(SFe,"isFormDataLike");function BFe(t,e){return"addEventListener"in t?(t.addEventListener("abort",e,{once:!0}),()=>t.removeEventListener("abort",e)):(t.addListener("abort",e),()=>t.removeListener("abort",e))}o(BFe,"addAbortListener");var xFe=typeof String.prototype.toWellFormed=="function",vFe=typeof String.prototype.isWellFormed=="function";function L7(t){return xFe?`${t}`.toWellFormed():XLe.toUSVString(t)}o(L7,"toUSVString");function NFe(t){return vFe?`${t}`.isWellFormed():L7(t)===`${t}`}o(NFe,"isUSVString");function F7(t){switch(t){case 34:case 40:case 41:case 44:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 123:case 125:return!1;default:return t>=33&&t<=126}}o(F7,"isTokenCharCode");function _Fe(t){if(t.length===0)return!1;for(let e=0;e{"use strict";var Ot=require("node:diagnostics_channel"),JP=require("node:util"),EB=JP.debuglog("undici"),WP=JP.debuglog("fetch"),jf=JP.debuglog("websocket"),G7=!1,OFe={beforeConnect:Ot.channel("undici:client:beforeConnect"),connected:Ot.channel("undici:client:connected"),connectError:Ot.channel("undici:client:connectError"),sendHeaders:Ot.channel("undici:client:sendHeaders"),create:Ot.channel("undici:request:create"),bodySent:Ot.channel("undici:request:bodySent"),headers:Ot.channel("undici:request:headers"),trailers:Ot.channel("undici:request:trailers"),error:Ot.channel("undici:request:error"),open:Ot.channel("undici:websocket:open"),close:Ot.channel("undici:websocket:close"),socketError:Ot.channel("undici:websocket:socket_error"),ping:Ot.channel("undici:websocket:ping"),pong:Ot.channel("undici:websocket:pong")};if(EB.enabled||WP.enabled){let t=WP.enabled?WP:EB;Ot.channel("undici:client:beforeConnect").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:i,host:s}}=e;t("connecting to %s using %s%s",`${s}${i?`:${i}`:""}`,n,r)}),Ot.channel("undici:client:connected").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:i,host:s}}=e;t("connected to %s using %s%s",`${s}${i?`:${i}`:""}`,n,r)}),Ot.channel("undici:client:connectError").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:i,host:s},error:a}=e;t("connection to %s using %s%s errored - %s",`${s}${i?`:${i}`:""}`,n,r,a.message)}),Ot.channel("undici:client:sendHeaders").subscribe(e=>{let{request:{method:r,path:n,origin:i}}=e;t("sending request to %s %s/%s",r,i,n)}),Ot.channel("undici:request:headers").subscribe(e=>{let{request:{method:r,path:n,origin:i},response:{statusCode:s}}=e;t("received response to %s %s/%s - HTTP %d",r,i,n,s)}),Ot.channel("undici:request:trailers").subscribe(e=>{let{request:{method:r,path:n,origin:i}}=e;t("trailers received from %s %s/%s",r,i,n)}),Ot.channel("undici:request:error").subscribe(e=>{let{request:{method:r,path:n,origin:i},error:s}=e;t("request to %s %s/%s errored - %s",r,i,n,s.message)}),G7=!0}if(jf.enabled){if(!G7){let t=EB.enabled?EB:jf;Ot.channel("undici:client:beforeConnect").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:i,host:s}}=e;t("connecting to %s%s using %s%s",s,i?`:${i}`:"",n,r)}),Ot.channel("undici:client:connected").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:i,host:s}}=e;t("connected to %s%s using %s%s",s,i?`:${i}`:"",n,r)}),Ot.channel("undici:client:connectError").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:i,host:s},error:a}=e;t("connection to %s%s using %s%s errored - %s",s,i?`:${i}`:"",n,r,a.message)}),Ot.channel("undici:client:sendHeaders").subscribe(e=>{let{request:{method:r,path:n,origin:i}}=e;t("sending request to %s %s/%s",r,i,n)})}Ot.channel("undici:websocket:open").subscribe(t=>{let{address:{address:e,port:r}}=t;jf("connection opened %s%s",e,r?`:${r}`:"")}),Ot.channel("undici:websocket:close").subscribe(t=>{let{websocket:e,code:r,reason:n}=t;jf("closed connection to %s - %s %s",e.url,r,n)}),Ot.channel("undici:websocket:socket_error").subscribe(t=>{jf("connection errored - %s",t.message)}),Ot.channel("undici:websocket:ping").subscribe(t=>{jf("ping received")}),Ot.channel("undici:websocket:pong").subscribe(t=>{jf("pong received")})}H7.exports={channels:OFe}});var j7=g((U3t,$7)=>{"use strict";var{InvalidArgumentError:Ut,NotSupportedError:LFe}=xt(),Hl=require("node:assert"),{isValidHTTPToken:V7,isValidHeaderValue:cC,isStream:FFe,destroy:MFe,isBuffer:UFe,isFormDataLike:qFe,isIterable:GFe,isBlobLike:HFe,buildURL:zFe,validateHandler:VFe,getServerName:$Fe,normalizedMethodRecords:jFe}=st(),{channels:rc}=QA(),{headerNameLowerCasedRecord:z7}=hB(),WFe=/[^\u0021-\u00ff]/,fo=Symbol("handler"),YP=class{static{o(this,"Request")}constructor(e,{path:r,method:n,body:i,headers:s,query:a,idempotent:c,blocking:l,upgrade:u,headersTimeout:d,bodyTimeout:f,reset:h,throwOnError:p,expectContinue:m,servername:A},E){if(typeof r!="string")throw new Ut("path must be a string");if(r[0]!=="/"&&!(r.startsWith("http://")||r.startsWith("https://"))&&n!=="CONNECT")throw new Ut("path must be an absolute URL or start with a slash");if(WFe.test(r))throw new Ut("invalid request path");if(typeof n!="string")throw new Ut("method must be a string");if(jFe[n]===void 0&&!V7(n))throw new Ut("invalid request method");if(u&&typeof u!="string")throw new Ut("upgrade must be a string");if(u&&!cC(u))throw new Ut("invalid upgrade header");if(d!=null&&(!Number.isFinite(d)||d<0))throw new Ut("invalid headersTimeout");if(f!=null&&(!Number.isFinite(f)||f<0))throw new Ut("invalid bodyTimeout");if(h!=null&&typeof h!="boolean")throw new Ut("invalid reset");if(m!=null&&typeof m!="boolean")throw new Ut("invalid expectContinue");if(this.headersTimeout=d,this.bodyTimeout=f,this.throwOnError=p===!0,this.method=n,this.abort=null,i==null)this.body=null;else if(FFe(i)){this.body=i;let y=this.body._readableState;(!y||!y.autoDestroy)&&(this.endHandler=o(function(){MFe(this)},"autoDestroy"),this.body.on("end",this.endHandler)),this.errorHandler=C=>{this.abort?this.abort(C):this.error=C},this.body.on("error",this.errorHandler)}else if(UFe(i))this.body=i.byteLength?i:null;else if(ArrayBuffer.isView(i))this.body=i.buffer.byteLength?Buffer.from(i.buffer,i.byteOffset,i.byteLength):null;else if(i instanceof ArrayBuffer)this.body=i.byteLength?Buffer.from(i):null;else if(typeof i=="string")this.body=i.length?Buffer.from(i):null;else if(qFe(i)||GFe(i)||HFe(i))this.body=i;else throw new Ut("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable");if(this.completed=!1,this.aborted=!1,this.upgrade=u||null,this.path=a?zFe(r,a):r,this.origin=e,this.idempotent=c??(n==="HEAD"||n==="GET"),this.blocking=l??!1,this.reset=h??null,this.host=null,this.contentLength=null,this.contentType=null,this.headers=[],this.expectContinue=m??!1,Array.isArray(s)){if(s.length%2!==0)throw new Ut("headers array must be even");for(let y=0;y{"use strict";var JFe=require("node:events"),bB=class extends JFe{static{o(this,"Dispatcher")}dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}compose(...e){let r=Array.isArray(e[0])?e[0]:e,n=this.dispatch.bind(this);for(let i of r)if(i!=null){if(typeof i!="function")throw new TypeError(`invalid interceptor, expected function received ${typeof i}`);if(n=i(n),n==null||typeof n!="function"||n.length!==2)throw new TypeError("invalid interceptor")}return new KP(this,n)}},KP=class extends bB{static{o(this,"ComposedDispatcher")}#e=null;#r=null;constructor(e,r){super(),this.#e=e,this.#r=r}dispatch(...e){this.#r(...e)}close(...e){return this.#e.close(...e)}destroy(...e){return this.#e.destroy(...e)}};W7.exports=bB});var LA=g((z3t,J7)=>{"use strict";var YFe=lC(),{ClientDestroyedError:XP,ClientClosedError:KFe,InvalidArgumentError:kA}=xt(),{kDestroy:XFe,kClose:ZFe,kClosed:uC,kDestroyed:PA,kDispatch:ZP,kInterceptors:Wf}=cr(),zl=Symbol("onDestroyed"),OA=Symbol("onClosed"),wB=Symbol("Intercepted Dispatch"),eO=Symbol("webSocketOptions"),tO=class extends YFe{static{o(this,"DispatcherBase")}constructor(e){super(),this[PA]=!1,this[zl]=null,this[uC]=!1,this[OA]=[],this[eO]=e?.webSocket??{}}get webSocketOptions(){return{maxFragments:this[eO].maxFragments??131072,maxPayloadSize:this[eO].maxPayloadSize??128*1024*1024}}get destroyed(){return this[PA]}get closed(){return this[uC]}get interceptors(){return this[Wf]}set interceptors(e){if(e){for(let r=e.length-1;r>=0;r--)if(typeof this[Wf][r]!="function")throw new kA("interceptor must be an function")}this[Wf]=e}close(e){if(e===void 0)return new Promise((n,i)=>{this.close((s,a)=>s?i(s):n(a))});if(typeof e!="function")throw new kA("invalid callback");if(this[PA]){queueMicrotask(()=>e(new XP,null));return}if(this[uC]){this[OA]?this[OA].push(e):queueMicrotask(()=>e(null,null));return}this[uC]=!0,this[OA].push(e);let r=o(()=>{let n=this[OA];this[OA]=null;for(let i=0;ithis.destroy()).then(()=>{queueMicrotask(r)})}destroy(e,r){if(typeof e=="function"&&(r=e,e=null),r===void 0)return new Promise((i,s)=>{this.destroy(e,(a,c)=>a?s(a):i(c))});if(typeof r!="function")throw new kA("invalid callback");if(this[PA]){this[zl]?this[zl].push(r):queueMicrotask(()=>r(null,null));return}e||(e=new XP),this[PA]=!0,this[zl]=this[zl]||[],this[zl].push(r);let n=o(()=>{let i=this[zl];this[zl]=null;for(let s=0;s{queueMicrotask(n)})}[wB](e,r){if(!this[Wf]||this[Wf].length===0)return this[wB]=this[ZP],this[ZP](e,r);let n=this[ZP].bind(this);for(let i=this[Wf].length-1;i>=0;i--)n=this[Wf][i](n);return this[wB]=n,n(e,r)}dispatch(e,r){if(!r||typeof r!="object")throw new kA("handler must be an object");try{if(!e||typeof e!="object")throw new kA("opts must be an object.");if(this[PA]||this[zl])throw new XP;if(this[uC])throw new KFe;return this[wB](e,r)}catch(n){if(typeof r.onError!="function")throw new kA("invalid onError method");return r.onError(n),!1}}};J7.exports=tO});var cO=g(($3t,Z7)=>{"use strict";var FA=0,rO=1e3,nO=(rO>>1)-1,Vl,iO=Symbol("kFastTimer"),$l=[],sO=-2,oO=-1,K7=0,Y7=1;function aO(){FA+=nO;let t=0,e=$l.length;for(;t=r._idleStart+r._idleTimeout&&(r._state=oO,r._idleStart=-1,r._onTimeout(r._timerArg)),r._state===oO?(r._state=sO,--e!==0&&($l[t]=$l[e])):++t}$l.length=e,$l.length!==0&&X7()}o(aO,"onTick");function X7(){Vl?Vl.refresh():(clearTimeout(Vl),Vl=setTimeout(aO,nO),Vl.unref&&Vl.unref())}o(X7,"refreshTimeout");var IB=class{static{o(this,"FastTimer")}[iO]=!0;_state=sO;_idleTimeout=-1;_idleStart=-1;_onTimeout;_timerArg;constructor(e,r,n){this._onTimeout=e,this._idleTimeout=r,this._timerArg=n,this.refresh()}refresh(){this._state===sO&&$l.push(this),(!Vl||$l.length===1)&&X7(),this._state=K7}clear(){this._state=oO,this._idleStart=-1}};Z7.exports={setTimeout(t,e,r){return e<=rO?setTimeout(t,e,r):new IB(t,e,r)},clearTimeout(t){t[iO]?t.clear():clearTimeout(t)},setFastTimeout(t,e,r){return new IB(t,e,r)},clearFastTimeout(t){t.clear()},now(){return FA},tick(t=0){FA+=t-rO+1,aO(),aO()},reset(){FA=0,$l.length=0,clearTimeout(Vl),Vl=null},kFastTimer:iO}});var dC=g((Y3t,iX)=>{"use strict";var eMe=require("node:net"),eX=require("node:assert"),nX=st(),{InvalidArgumentError:tMe,ConnectTimeoutError:rMe}=xt(),SB=cO();function tX(){}o(tX,"noop");var lO,uO;global.FinalizationRegistry&&!(process.env.NODE_V8_COVERAGE||process.env.UNDICI_NO_FG)?uO=class{static{o(this,"WeakSessionCache")}constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(r=>{if(this._sessionCache.size=this._maxCachedSessions){let{value:n}=this._sessionCache.keys().next();this._sessionCache.delete(n)}this._sessionCache.set(e,r)}}};function nMe({allowH2:t,maxCachedSessions:e,socketPath:r,timeout:n,session:i,...s}){if(e!=null&&(!Number.isInteger(e)||e<0))throw new tMe("maxCachedSessions must be a positive integer or zero");let a={path:r,...s},c=new uO(e??100);return n=n??1e4,t=t??!1,o(function({hostname:u,host:d,protocol:f,port:h,servername:p,localAddress:m,httpSocket:A},E){let y;if(f==="https:"){lO||(lO=require("node:tls")),p=p||a.servername||nX.getServerName(d)||null;let w=p||u;eX(w);let B=i||c.get(w)||null;h=h||443,y=lO.connect({highWaterMark:16384,...a,servername:p,session:B,localAddress:m,ALPNProtocols:t?["http/1.1","h2"]:["http/1.1"],socket:A,port:h,host:u}),y.on("session",function(P){c.set(w,P)})}else eX(!A,"httpSocket can only be sent on TLS update"),h=h||80,y=eMe.connect({highWaterMark:64*1024,...a,localAddress:m,port:h,host:u});if(a.keepAlive==null||a.keepAlive){let w=a.keepAliveInitialDelay===void 0?6e4:a.keepAliveInitialDelay;y.setKeepAlive(!0,w)}let C=iMe(new WeakRef(y),{timeout:n,hostname:u,port:h});return y.setNoDelay(!0).once(f==="https:"?"secureConnect":"connect",function(){if(queueMicrotask(C),E){let w=E;E=null,w(null,this)}}).on("error",function(w){if(queueMicrotask(C),E){let B=E;E=null,B(w)}}),y},"connect")}o(nMe,"buildConnector");var iMe=process.platform==="win32"?(t,e)=>{if(!e.timeout)return tX;let r=null,n=null,i=SB.setFastTimeout(()=>{r=setImmediate(()=>{n=setImmediate(()=>rX(t.deref(),e))})},e.timeout);return()=>{SB.clearFastTimeout(i),clearImmediate(r),clearImmediate(n)}}:(t,e)=>{if(!e.timeout)return tX;let r=null,n=SB.setFastTimeout(()=>{r=setImmediate(()=>{rX(t.deref(),e)})},e.timeout);return()=>{SB.clearFastTimeout(n),clearImmediate(r)}};function rX(t,e){if(t==null)return;let r="Connect Timeout Error";Array.isArray(t.autoSelectFamilyAttemptedAddresses)?r+=` (attempted addresses: ${t.autoSelectFamilyAttemptedAddresses.join(", ")},`:r+=` (attempted address: ${e.hostname}:${e.port},`,r+=` timeout: ${e.timeout}ms)`,nX.destroy(t,new rMe(r))}o(rX,"onConnectTimeout");iX.exports=nMe});var sX=g(BB=>{"use strict";Object.defineProperty(BB,"__esModule",{value:!0});BB.enumToMap=void 0;function sMe(t){let e={};return Object.keys(t).forEach(r=>{let n=t[r];typeof n=="number"&&(e[r]=n)}),e}o(sMe,"enumToMap");BB.enumToMap=sMe});var oX=g(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.SPECIAL_HEADERS=X.HEADER_STATE=X.MINOR=X.MAJOR=X.CONNECTION_TOKEN_CHARS=X.HEADER_CHARS=X.TOKEN=X.STRICT_TOKEN=X.HEX=X.URL_CHAR=X.STRICT_URL_CHAR=X.USERINFO_CHARS=X.MARK=X.ALPHANUM=X.NUM=X.HEX_MAP=X.NUM_MAP=X.ALPHA=X.FINISH=X.H_METHOD_MAP=X.METHOD_MAP=X.METHODS_RTSP=X.METHODS_ICE=X.METHODS_HTTP=X.METHODS=X.LENIENT_FLAGS=X.FLAGS=X.TYPE=X.ERROR=void 0;var oMe=sX(),aMe;(function(t){t[t.OK=0]="OK",t[t.INTERNAL=1]="INTERNAL",t[t.STRICT=2]="STRICT",t[t.LF_EXPECTED=3]="LF_EXPECTED",t[t.UNEXPECTED_CONTENT_LENGTH=4]="UNEXPECTED_CONTENT_LENGTH",t[t.CLOSED_CONNECTION=5]="CLOSED_CONNECTION",t[t.INVALID_METHOD=6]="INVALID_METHOD",t[t.INVALID_URL=7]="INVALID_URL",t[t.INVALID_CONSTANT=8]="INVALID_CONSTANT",t[t.INVALID_VERSION=9]="INVALID_VERSION",t[t.INVALID_HEADER_TOKEN=10]="INVALID_HEADER_TOKEN",t[t.INVALID_CONTENT_LENGTH=11]="INVALID_CONTENT_LENGTH",t[t.INVALID_CHUNK_SIZE=12]="INVALID_CHUNK_SIZE",t[t.INVALID_STATUS=13]="INVALID_STATUS",t[t.INVALID_EOF_STATE=14]="INVALID_EOF_STATE",t[t.INVALID_TRANSFER_ENCODING=15]="INVALID_TRANSFER_ENCODING",t[t.CB_MESSAGE_BEGIN=16]="CB_MESSAGE_BEGIN",t[t.CB_HEADERS_COMPLETE=17]="CB_HEADERS_COMPLETE",t[t.CB_MESSAGE_COMPLETE=18]="CB_MESSAGE_COMPLETE",t[t.CB_CHUNK_HEADER=19]="CB_CHUNK_HEADER",t[t.CB_CHUNK_COMPLETE=20]="CB_CHUNK_COMPLETE",t[t.PAUSED=21]="PAUSED",t[t.PAUSED_UPGRADE=22]="PAUSED_UPGRADE",t[t.PAUSED_H2_UPGRADE=23]="PAUSED_H2_UPGRADE",t[t.USER=24]="USER"})(aMe=X.ERROR||(X.ERROR={}));var cMe;(function(t){t[t.BOTH=0]="BOTH",t[t.REQUEST=1]="REQUEST",t[t.RESPONSE=2]="RESPONSE"})(cMe=X.TYPE||(X.TYPE={}));var lMe;(function(t){t[t.CONNECTION_KEEP_ALIVE=1]="CONNECTION_KEEP_ALIVE",t[t.CONNECTION_CLOSE=2]="CONNECTION_CLOSE",t[t.CONNECTION_UPGRADE=4]="CONNECTION_UPGRADE",t[t.CHUNKED=8]="CHUNKED",t[t.UPGRADE=16]="UPGRADE",t[t.CONTENT_LENGTH=32]="CONTENT_LENGTH",t[t.SKIPBODY=64]="SKIPBODY",t[t.TRAILING=128]="TRAILING",t[t.TRANSFER_ENCODING=512]="TRANSFER_ENCODING"})(lMe=X.FLAGS||(X.FLAGS={}));var uMe;(function(t){t[t.HEADERS=1]="HEADERS",t[t.CHUNKED_LENGTH=2]="CHUNKED_LENGTH",t[t.KEEP_ALIVE=4]="KEEP_ALIVE"})(uMe=X.LENIENT_FLAGS||(X.LENIENT_FLAGS={}));var _e;(function(t){t[t.DELETE=0]="DELETE",t[t.GET=1]="GET",t[t.HEAD=2]="HEAD",t[t.POST=3]="POST",t[t.PUT=4]="PUT",t[t.CONNECT=5]="CONNECT",t[t.OPTIONS=6]="OPTIONS",t[t.TRACE=7]="TRACE",t[t.COPY=8]="COPY",t[t.LOCK=9]="LOCK",t[t.MKCOL=10]="MKCOL",t[t.MOVE=11]="MOVE",t[t.PROPFIND=12]="PROPFIND",t[t.PROPPATCH=13]="PROPPATCH",t[t.SEARCH=14]="SEARCH",t[t.UNLOCK=15]="UNLOCK",t[t.BIND=16]="BIND",t[t.REBIND=17]="REBIND",t[t.UNBIND=18]="UNBIND",t[t.ACL=19]="ACL",t[t.REPORT=20]="REPORT",t[t.MKACTIVITY=21]="MKACTIVITY",t[t.CHECKOUT=22]="CHECKOUT",t[t.MERGE=23]="MERGE",t[t["M-SEARCH"]=24]="M-SEARCH",t[t.NOTIFY=25]="NOTIFY",t[t.SUBSCRIBE=26]="SUBSCRIBE",t[t.UNSUBSCRIBE=27]="UNSUBSCRIBE",t[t.PATCH=28]="PATCH",t[t.PURGE=29]="PURGE",t[t.MKCALENDAR=30]="MKCALENDAR",t[t.LINK=31]="LINK",t[t.UNLINK=32]="UNLINK",t[t.SOURCE=33]="SOURCE",t[t.PRI=34]="PRI",t[t.DESCRIBE=35]="DESCRIBE",t[t.ANNOUNCE=36]="ANNOUNCE",t[t.SETUP=37]="SETUP",t[t.PLAY=38]="PLAY",t[t.PAUSE=39]="PAUSE",t[t.TEARDOWN=40]="TEARDOWN",t[t.GET_PARAMETER=41]="GET_PARAMETER",t[t.SET_PARAMETER=42]="SET_PARAMETER",t[t.REDIRECT=43]="REDIRECT",t[t.RECORD=44]="RECORD",t[t.FLUSH=45]="FLUSH"})(_e=X.METHODS||(X.METHODS={}));X.METHODS_HTTP=[_e.DELETE,_e.GET,_e.HEAD,_e.POST,_e.PUT,_e.CONNECT,_e.OPTIONS,_e.TRACE,_e.COPY,_e.LOCK,_e.MKCOL,_e.MOVE,_e.PROPFIND,_e.PROPPATCH,_e.SEARCH,_e.UNLOCK,_e.BIND,_e.REBIND,_e.UNBIND,_e.ACL,_e.REPORT,_e.MKACTIVITY,_e.CHECKOUT,_e.MERGE,_e["M-SEARCH"],_e.NOTIFY,_e.SUBSCRIBE,_e.UNSUBSCRIBE,_e.PATCH,_e.PURGE,_e.MKCALENDAR,_e.LINK,_e.UNLINK,_e.PRI,_e.SOURCE];X.METHODS_ICE=[_e.SOURCE];X.METHODS_RTSP=[_e.OPTIONS,_e.DESCRIBE,_e.ANNOUNCE,_e.SETUP,_e.PLAY,_e.PAUSE,_e.TEARDOWN,_e.GET_PARAMETER,_e.SET_PARAMETER,_e.REDIRECT,_e.RECORD,_e.FLUSH,_e.GET,_e.POST];X.METHOD_MAP=oMe.enumToMap(_e);X.H_METHOD_MAP={};Object.keys(X.METHOD_MAP).forEach(t=>{/^H/.test(t)&&(X.H_METHOD_MAP[t]=X.METHOD_MAP[t])});var dMe;(function(t){t[t.SAFE=0]="SAFE",t[t.SAFE_WITH_CB=1]="SAFE_WITH_CB",t[t.UNSAFE=2]="UNSAFE"})(dMe=X.FINISH||(X.FINISH={}));X.ALPHA=[];for(let t=65;t<=90;t++)X.ALPHA.push(String.fromCharCode(t)),X.ALPHA.push(String.fromCharCode(t+32));X.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};X.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15};X.NUM=["0","1","2","3","4","5","6","7","8","9"];X.ALPHANUM=X.ALPHA.concat(X.NUM);X.MARK=["-","_",".","!","~","*","'","(",")"];X.USERINFO_CHARS=X.ALPHANUM.concat(X.MARK).concat(["%",";",":","&","=","+","$",","]);X.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(X.ALPHANUM);X.URL_CHAR=X.STRICT_URL_CHAR.concat([" ","\f"]);for(let t=128;t<=255;t++)X.URL_CHAR.push(t);X.HEX=X.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);X.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(X.ALPHANUM);X.TOKEN=X.STRICT_TOKEN.concat([" "]);X.HEADER_CHARS=[" "];for(let t=32;t<=255;t++)t!==127&&X.HEADER_CHARS.push(t);X.CONNECTION_TOKEN_CHARS=X.HEADER_CHARS.filter(t=>t!==44);X.MAJOR=X.NUM_MAP;X.MINOR=X.MAJOR;var MA;(function(t){t[t.GENERAL=0]="GENERAL",t[t.CONNECTION=1]="CONNECTION",t[t.CONTENT_LENGTH=2]="CONTENT_LENGTH",t[t.TRANSFER_ENCODING=3]="TRANSFER_ENCODING",t[t.UPGRADE=4]="UPGRADE",t[t.CONNECTION_KEEP_ALIVE=5]="CONNECTION_KEEP_ALIVE",t[t.CONNECTION_CLOSE=6]="CONNECTION_CLOSE",t[t.CONNECTION_UPGRADE=7]="CONNECTION_UPGRADE",t[t.TRANSFER_ENCODING_CHUNKED=8]="TRANSFER_ENCODING_CHUNKED"})(MA=X.HEADER_STATE||(X.HEADER_STATE={}));X.SPECIAL_HEADERS={connection:MA.CONNECTION,"content-length":MA.CONTENT_LENGTH,"proxy-connection":MA.CONNECTION,"transfer-encoding":MA.TRANSFER_ENCODING,upgrade:MA.UPGRADE}});var dO=g((tGt,aX)=>{"use strict";var{Buffer:fMe}=require("node:buffer");aX.exports=fMe.from("AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAX8AYAJ/fwBgBH9/f38Bf2AAAGADf39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQAEA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAAy0sBQYAAAIAAAAAAAACAQIAAgICAAADAAAAAAMDAwMBAQEBAQEBAQEAAAIAAAAEBQFwARISBQMBAAIGCAF/AUGA1AQLB9EFIgZtZW1vcnkCAAtfaW5pdGlhbGl6ZQAIGV9faW5kaXJlY3RfZnVuY3Rpb25fdGFibGUBAAtsbGh0dHBfaW5pdAAJGGxsaHR0cF9zaG91bGRfa2VlcF9hbGl2ZQAvDGxsaHR0cF9hb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IQEMXgtBigEhAyABIARGDaICIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgNAIAEtAAAgAEGMzwBqLQAARw1kIABBAUYN+gEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMogILQYsBIQMgASAERg2hAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGOzwBqLQAARw1kIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyiAgsgAkEANgIAIAZBAWohAUECDGULQYwBIQMgASAERg2gAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHwzwBqLQAARw1jIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyhAgsgAkEANgIAIAZBAWohAUEfDGQLQY0BIQMgASAERg2fAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHyzwBqLQAARw1iIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAygAgsgAkEANgIAIAZBAWohAUEJDGMLIAEgBEYEQEGOASEDDJ8CCwJAAkAgAS0AAEHJAGsOBwBiYmJiYgFiCyABQQFqIQFB+AAhAwyGAgsgAUEBaiEBQfkAIQMMhQILQY8BIQMgASAERg2dAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGRzwBqLQAARw1gIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyeAgsgAkEANgIAIAZBAWohAUEYDGELQZABIQMgASAERg2cAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGXzwBqLQAARw1fIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAydAgsgAkEANgIAIAZBAWohAUEXDGALQZEBIQMgASAERg2bAiACKAIAIgAgBCABa2ohBSABIABrQQZqIQYCQANAIAEtAAAgAEGazwBqLQAARw1eIABBBkYNASAAQQFqIQAgBCABQQFqIgFHDQAL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ELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxBACEDDKIBCyACQeQANgIcIAIgATYCFCACQeMXNgIQIAJBFTYCDEEAIQMMoQELIAJBADYCACAGQQFqIQEgAi0AKSIAQSNrQQtJDQQCQCAAQQZLDQBBASAAdEHKAHFFDQAMBQtBACEDIAJBADYCHCACIAE2AhQgAkH3CTYCECACQQg2AgwMoAELIAJBADYCACAGQQFqIQEgAi0AKUEhRg0DIAJBADYCHCACIAE2AhQgAkGbCjYCECACQQg2AgxBACEDDJ8BCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJBkDM2AhAgAkEINgIMDJ0BCyACQQA2AgAgBkEBaiEBIAItAClBI0kNACACQQA2Ahwg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ABNgIUIAIgADYCDEEAIQMMsAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0fIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxBACEDDKIBCyACQeQANgIcIAIgATYCFCACQeMXNgIQIAJBFTYCDEEAIQMMoQELIAJBADYCACAGQQFqIQEgAi0AKSIAQSNrQQtJDQQCQCAAQQZLDQBBASAAdEHKAHFFDQAMBQtBACEDIAJBADYCHCACIAE2AhQgAkH3CTYCECACQQg2AgwMoAELIAJBADYCACAGQQFqIQEgAi0AKUEhRg0DIAJBADYCHCACIAE2AhQgAkGbCjYCECACQQg2AgxBACEDDJ8BCy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BAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB+sgACwQBAAACAEGQyQALXwMEAAAEBAQEBAQEBAQEBAUEBAQEBAQEBAQEBAQABAAGBwQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEAAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAEAEH6ygALBAEAAAEAQZDLAAsBAQBBqssAC0ECAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwBB+swACwQBAAABAEGQzQALAQEAQZrNAAsGAgAAAAACAEGxzQALOgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAQfDOAAuWAU5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw==","base64")});var fC=g((nGt,gX)=>{"use strict";var uX=["GET","HEAD","POST"],pMe=new Set(uX),AMe=[101,204,205,304],dX=[301,302,303,307,308],mMe=new Set(dX),fX=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","4190","5060","5061","6000","6566","6665","6666","6667","6668","6669","6679","6697","10080"],gMe=new Set(fX),hX=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],yMe=new Set(hX),EMe=["follow","manual","error"],pX=["GET","HEAD","OPTIONS","TRACE"],CMe=new Set(pX),bMe=["navigate","same-origin","no-cors","cors"],wMe=["omit","same-origin","include"],IMe=["default","no-store","reload","no-cache","force-cache","only-if-cached"],SMe=["content-encoding","content-language","content-location","content-type","content-length"],BMe=["half"],AX=["CONNECT","TRACE","TRACK"],xMe=new Set(AX),mX=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""],vMe=new Set(mX);gX.exports={subresource:mX,forbiddenMethods:AX,requestBodyHeader:SMe,referrerPolicy:hX,requestRedirect:EMe,requestMode:bMe,requestCredentials:wMe,requestCache:IMe,redirectStatus:dX,corsSafeListedMethods:uX,nullBodyStatus:AMe,safeMethods:pX,badPorts:fX,requestDuplex:BMe,subresourceSet:vMe,badPortsSet:gMe,redirectStatusSet:mMe,corsSafeListedMethodsSet:pMe,safeMethodsSet:CMe,forbiddenMethodsSet:xMe,referrerPolicySet:yMe}});var hO=g((iGt,yX)=>{"use strict";var fO=Symbol.for("undici.globalOrigin.1");function NMe(){return globalThis[fO]}o(NMe,"getGlobalOrigin");function _Me(t){if(t===void 0){Object.defineProperty(globalThis,fO,{value:void 0,writable:!0,enumerable:!1,configurable:!1});return}let e=new URL(t);if(e.protocol!=="http:"&&e.protocol!=="https:")throw new TypeError(`Only http & https urls are allowed, received ${e.protocol}`);Object.defineProperty(globalThis,fO,{value:e,writable:!0,enumerable:!1,configurable:!1})}o(_Me,"setGlobalOrigin");yX.exports={getGlobalOrigin:NMe,setGlobalOrigin:_Me}});var Yi=g((oGt,BX)=>{"use strict";var vB=require("node:assert"),RMe=new TextEncoder,hC=/^[!#$%&'*+\-.^_|~A-Za-z0-9]+$/,TMe=/[\u000A\u000D\u0009\u0020]/,DMe=/[\u0009\u000A\u000C\u000D\u0020]/g,QMe=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function kMe(t){vB(t.protocol==="data:");let e=bX(t,!0);e=e.slice(5);let r={position:0},n=UA(",",e,r),i=n.length;if(n=UMe(n,!0,!0),r.position>=e.length)return"failure";r.position++;let s=e.slice(i+1),a=wX(s);if(/;(\u0020){0,}base64$/i.test(n)){let l=SX(a);if(a=OMe(l),a==="failure")return"failure";n=n.slice(0,-6),n=n.replace(/(\u0020)+$/,""),n=n.slice(0,-1)}n.startsWith(";")&&(n="text/plain"+n);let c=pO(n);return c==="failure"&&(c=pO("text/plain;charset=US-ASCII")),{mimeType:c,body:a}}o(kMe,"dataURLProcessor");function bX(t,e=!1){if(!e)return t.href;let r=t.href,n=t.hash.length,i=n===0?r:r.substring(0,r.length-n);return!n&&r.endsWith("#")?i.slice(0,-1):i}o(bX,"URLSerializer");function NB(t,e,r){let n="";for(;r.position=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}o(EX,"isHexCharByte");function CX(t){return t>=48&&t<=57?t-48:(t&223)-55}o(CX,"hexByteToNumber");function PMe(t){let e=t.length,r=new Uint8Array(e),n=0;for(let i=0;it.length)return"failure";e.position++;let n=UA(";",t,e);if(n=xB(n,!1,!0),n.length===0||!hC.test(n))return"failure";let i=r.toLowerCase(),s=n.toLowerCase(),a={type:i,subtype:s,parameters:new Map,essence:`${i}/${s}`};for(;e.positionTMe.test(u),t,e);let c=NB(u=>u!==";"&&u!=="=",t,e);if(c=c.toLowerCase(),e.positiont.length)break;let l=null;if(t[e.position]==='"')l=IX(t,e,!0),UA(";",t,e);else if(l=UA(";",t,e),l=xB(l,!1,!0),l.length===0)continue;c.length!==0&&hC.test(c)&&(l.length===0||QMe.test(l))&&!a.parameters.has(c)&&a.parameters.set(c,l)}return a}o(pO,"parseMIMEType");function OMe(t){t=t.replace(DMe,"");let e=t.length;if(e%4===0&&t.charCodeAt(e-1)===61&&(--e,t.charCodeAt(e-1)===61&&--e),e%4===1||/[^+/0-9A-Za-z]/.test(t.length===e?t:t.substring(0,e)))return"failure";let r=Buffer.from(t,"base64");return new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}o(OMe,"forgivingBase64");function IX(t,e,r){let n=e.position,i="";for(vB(t[e.position]==='"'),e.position++;i+=NB(a=>a!=='"'&&a!=="\\",t,e),!(e.position>=t.length);){let s=t[e.position];if(e.position++,s==="\\"){if(e.position>=t.length){i+="\\";break}i+=t[e.position],e.position++}else{vB(s==='"');break}}return r?i:t.slice(n,e.position)}o(IX,"collectAnHTTPQuotedString");function LMe(t){vB(t!=="failure");let{parameters:e,essence:r}=t,n=r;for(let[i,s]of e.entries())n+=";",n+=i,n+="=",hC.test(s)||(s=s.replace(/(\\|")/g,"\\$1"),s='"'+s,s+='"'),n+=s;return n}o(LMe,"serializeAMimeType");function FMe(t){return t===13||t===10||t===9||t===32}o(FMe,"isHTTPWhiteSpace");function xB(t,e=!0,r=!0){return AO(t,e,r,FMe)}o(xB,"removeHTTPWhitespace");function MMe(t){return t===13||t===10||t===9||t===12||t===32}o(MMe,"isASCIIWhitespace");function UMe(t,e=!0,r=!0){return AO(t,e,r,MMe)}o(UMe,"removeASCIIWhitespace");function AO(t,e,r,n){let i=0,s=t.length-1;if(e)for(;i0&&n(t.charCodeAt(s));)s--;return i===0&&s===t.length-1?t:t.slice(i,s+1)}o(AO,"removeChars");function SX(t){let e=t.length;if(65535>e)return String.fromCharCode.apply(null,t);let r="",n=0,i=65535;for(;ne&&(i=e-n),r+=String.fromCharCode.apply(null,t.subarray(n,n+=i));return r}o(SX,"isomorphicDecode");function qMe(t){switch(t.essence){case"application/ecmascript":case"application/javascript":case"application/x-ecmascript":case"application/x-javascript":case"text/ecmascript":case"text/javascript":case"text/javascript1.0":case"text/javascript1.1":case"text/javascript1.2":case"text/javascript1.3":case"text/javascript1.4":case"text/javascript1.5":case"text/jscript":case"text/livescript":case"text/x-ecmascript":case"text/x-javascript":return"text/javascript";case"application/json":case"text/json":return"application/json";case"image/svg+xml":return"image/svg+xml";case"text/xml":case"application/xml":return"application/xml"}return t.subtype.endsWith("+json")?"application/json":t.subtype.endsWith("+xml")?"application/xml":""}o(qMe,"minimizeSupportedMimeType");BX.exports={dataURLProcessor:kMe,URLSerializer:bX,collectASequenceOfCodePoints:NB,collectASequenceOfCodePointsFast:UA,stringPercentDecode:wX,parseMIMEType:pO,collectAnHTTPQuotedString:IX,serializeAMimeType:LMe,removeChars:AO,removeHTTPWhitespace:xB,minimizeSupportedMimeType:qMe,HTTP_TOKEN_CODEPOINTS:hC,isomorphicDecode:SX}});var qn=g((cGt,xX)=>{"use strict";var{types:nc,inspect:GMe}=require("node:util"),{markAsUncloneable:HMe}=require("node:worker_threads"),{toUSVString:zMe}=st(),J={};J.converters={};J.util={};J.errors={};J.errors.exception=function(t){return new TypeError(`${t.header}: ${t.message}`)};J.errors.conversionFailed=function(t){let e=t.types.length===1?"":" one of",r=`${t.argument} could not be converted to${e}: ${t.types.join(", ")}.`;return J.errors.exception({header:t.prefix,message:r})};J.errors.invalidArgument=function(t){return J.errors.exception({header:t.prefix,message:`"${t.value}" is an invalid ${t.type}.`})};J.brandCheck=function(t,e,r){if(r?.strict!==!1){if(!(t instanceof e)){let n=new TypeError("Illegal invocation");throw n.code="ERR_INVALID_THIS",n}}else if(t?.[Symbol.toStringTag]!==e.prototype[Symbol.toStringTag]){let n=new TypeError("Illegal invocation");throw n.code="ERR_INVALID_THIS",n}};J.argumentLengthCheck=function({length:t},e,r){if(t{});J.util.ConvertToInt=function(t,e,r,n){let i,s;e===64?(i=Math.pow(2,53)-1,r==="unsigned"?s=0:s=Math.pow(-2,53)+1):r==="unsigned"?(s=0,i=Math.pow(2,e)-1):(s=Math.pow(-2,e)-1,i=Math.pow(2,e-1)-1);let a=Number(t);if(a===0&&(a=0),n?.enforceRange===!0){if(Number.isNaN(a)||a===Number.POSITIVE_INFINITY||a===Number.NEGATIVE_INFINITY)throw J.errors.exception({header:"Integer conversion",message:`Could not convert ${J.util.Stringify(t)} to an integer.`});if(a=J.util.IntegerPart(a),ai)throw J.errors.exception({header:"Integer conversion",message:`Value must be between ${s}-${i}, got ${a}.`});return a}return!Number.isNaN(a)&&n?.clamp===!0?(a=Math.min(Math.max(a,s),i),Math.floor(a)%2===0?a=Math.floor(a):a=Math.ceil(a),a):Number.isNaN(a)||a===0&&Object.is(0,a)||a===Number.POSITIVE_INFINITY||a===Number.NEGATIVE_INFINITY?0:(a=J.util.IntegerPart(a),a=a%Math.pow(2,e),r==="signed"&&a>=Math.pow(2,e)-1?a-Math.pow(2,e):a)};J.util.IntegerPart=function(t){let e=Math.floor(Math.abs(t));return t<0?-1*e:e};J.util.Stringify=function(t){switch(J.util.Type(t)){case"Symbol":return`Symbol(${t.description})`;case"Object":return GMe(t);case"String":return`"${t}"`;default:return`${t}`}};J.sequenceConverter=function(t){return(e,r,n,i)=>{if(J.util.Type(e)!=="Object")throw J.errors.exception({header:r,message:`${n} (${J.util.Stringify(e)}) is not iterable.`});let s=typeof i=="function"?i():e?.[Symbol.iterator]?.(),a=[],c=0;if(s===void 0||typeof s.next!="function")throw J.errors.exception({header:r,message:`${n} is not iterable.`});for(;;){let{done:l,value:u}=s.next();if(l)break;a.push(t(u,r,`${n}[${c++}]`))}return a}};J.recordConverter=function(t,e){return(r,n,i)=>{if(J.util.Type(r)!=="Object")throw J.errors.exception({header:n,message:`${i} ("${J.util.Type(r)}") is not an Object.`});let s={};if(!nc.isProxy(r)){let c=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let l of c){let u=t(l,n,i),d=e(r[l],n,i);s[u]=d}return s}let a=Reflect.ownKeys(r);for(let c of a)if(Reflect.getOwnPropertyDescriptor(r,c)?.enumerable){let u=t(c,n,i),d=e(r[c],n,i);s[u]=d}return s}};J.interfaceConverter=function(t){return(e,r,n,i)=>{if(i?.strict!==!1&&!(e instanceof t))throw J.errors.exception({header:r,message:`Expected ${n} ("${J.util.Stringify(e)}") to be an instance of ${t.name}.`});return e}};J.dictionaryConverter=function(t){return(e,r,n)=>{let i=J.util.Type(e),s={};if(i==="Null"||i==="Undefined")return s;if(i!=="Object")throw J.errors.exception({header:r,message:`Expected ${e} to be one of: Null, Undefined, Object.`});for(let a of t){let{key:c,defaultValue:l,required:u,converter:d}=a;if(u===!0&&!Object.hasOwn(e,c))throw J.errors.exception({header:r,message:`Missing required key "${c}".`});let f=e[c],h=Object.hasOwn(a,"defaultValue");if(h&&f!==null&&(f??=l()),u||h||f!==void 0){if(f=d(f,r,`${n}.${c}`),a.allowedValues&&!a.allowedValues.includes(f))throw J.errors.exception({header:r,message:`${f} is not an accepted type. Expected one of ${a.allowedValues.join(", ")}.`});s[c]=f}}return s}};J.nullableConverter=function(t){return(e,r,n)=>e===null?e:t(e,r,n)};J.converters.DOMString=function(t,e,r,n){if(t===null&&n?.legacyNullToEmptyString)return"";if(typeof t=="symbol")throw J.errors.exception({header:e,message:`${r} is a symbol, which cannot be converted to a DOMString.`});return String(t)};J.converters.ByteString=function(t,e,r){let n=J.converters.DOMString(t,e,r);for(let i=0;i255)throw new TypeError(`Cannot convert argument to a ByteString because the character at index ${i} has a value of ${n.charCodeAt(i)} which is greater than 255.`);return n};J.converters.USVString=zMe;J.converters.boolean=function(t){return!!t};J.converters.any=function(t){return t};J.converters["long long"]=function(t,e,r){return J.util.ConvertToInt(t,64,"signed",void 0,e,r)};J.converters["unsigned long long"]=function(t,e,r){return J.util.ConvertToInt(t,64,"unsigned",void 0,e,r)};J.converters["unsigned long"]=function(t,e,r){return J.util.ConvertToInt(t,32,"unsigned",void 0,e,r)};J.converters["unsigned short"]=function(t,e,r,n){return J.util.ConvertToInt(t,16,"unsigned",n,e,r)};J.converters.ArrayBuffer=function(t,e,r,n){if(J.util.Type(t)!=="Object"||!nc.isAnyArrayBuffer(t))throw J.errors.conversionFailed({prefix:e,argument:`${r} ("${J.util.Stringify(t)}")`,types:["ArrayBuffer"]});if(n?.allowShared===!1&&nc.isSharedArrayBuffer(t))throw J.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});if(t.resizable||t.growable)throw J.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."});return t};J.converters.TypedArray=function(t,e,r,n,i){if(J.util.Type(t)!=="Object"||!nc.isTypedArray(t)||t.constructor.name!==e.name)throw J.errors.conversionFailed({prefix:r,argument:`${n} ("${J.util.Stringify(t)}")`,types:[e.name]});if(i?.allowShared===!1&&nc.isSharedArrayBuffer(t.buffer))throw J.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});if(t.buffer.resizable||t.buffer.growable)throw J.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."});return t};J.converters.DataView=function(t,e,r,n){if(J.util.Type(t)!=="Object"||!nc.isDataView(t))throw J.errors.exception({header:e,message:`${r} is not a DataView.`});if(n?.allowShared===!1&&nc.isSharedArrayBuffer(t.buffer))throw J.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});if(t.buffer.resizable||t.buffer.growable)throw J.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."});return t};J.converters.BufferSource=function(t,e,r,n){if(nc.isAnyArrayBuffer(t))return J.converters.ArrayBuffer(t,e,r,{...n,allowShared:!1});if(nc.isTypedArray(t))return J.converters.TypedArray(t,t.constructor,e,r,{...n,allowShared:!1});if(nc.isDataView(t))return J.converters.DataView(t,e,r,{...n,allowShared:!1});throw J.errors.conversionFailed({prefix:e,argument:`${r} ("${J.util.Stringify(t)}")`,types:["BufferSource"]})};J.converters["sequence"]=J.sequenceConverter(J.converters.ByteString);J.converters["sequence>"]=J.sequenceConverter(J.converters["sequence"]);J.converters["record"]=J.recordConverter(J.converters.ByteString,J.converters.ByteString);xX.exports={webidl:J}});var xs=g((lGt,UX)=>{"use strict";var{Transform:VMe}=require("node:stream"),vX=require("node:zlib"),{redirectStatusSet:$Me,referrerPolicySet:jMe,badPortsSet:WMe}=fC(),{getGlobalOrigin:NX}=hO(),{collectASequenceOfCodePoints:Jf,collectAnHTTPQuotedString:JMe,removeChars:YMe,parseMIMEType:KMe}=Yi(),{performance:XMe}=require("node:perf_hooks"),{isBlobLike:ZMe,ReadableStreamFrom:eUe,isValidHTTPToken:_X,normalizedMethodRecordsBase:tUe}=st(),Yf=require("node:assert"),{isUint8Array:rUe}=require("node:util/types"),{webidl:pC}=qn(),RX=[],RB;try{RB=require("node:crypto");let t=["sha256","sha384","sha512"];RX=RB.getHashes().filter(e=>t.includes(e))}catch{}function TX(t){let e=t.urlList,r=e.length;return r===0?null:e[r-1].toString()}o(TX,"responseURL");function nUe(t,e){if(!$Me.has(t.status))return null;let r=t.headersList.get("location",!0);return r!==null&&QX(r)&&(DX(r)||(r=iUe(r)),r=new URL(r,TX(t))),r&&!r.hash&&(r.hash=e),r}o(nUe,"responseLocationURL");function DX(t){for(let e=0;e126||r<32)return!1}return!0}o(DX,"isValidEncodedURL");function iUe(t){return Buffer.from(t,"binary").toString("utf8")}o(iUe,"normalizeBinaryStringToUtf8");function mC(t){return t.urlList[t.urlList.length-1]}o(mC,"requestCurrentURL");function sUe(t){let e=mC(t);return FX(e)&&WMe.has(e.port)?"blocked":"allowed"}o(sUe,"requestBadPort");function oUe(t){return t instanceof Error||t?.constructor?.name==="Error"||t?.constructor?.name==="DOMException"}o(oUe,"isErrorLike");function aUe(t){for(let e=0;e=32&&r<=126||r>=128&&r<=255))return!1}return!0}o(aUe,"isValidReasonPhrase");var cUe=_X;function QX(t){return(t[0]===" "||t[0]===" "||t[t.length-1]===" "||t[t.length-1]===" "||t.includes(` +`)||t.includes("\r")||t.includes("\0"))===!1}o(QX,"isValidHeaderValue");function lUe(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),i="";if(n.length>0)for(let s=n.length;s!==0;s--){let a=n[s-1].trim();if(jMe.has(a)){i=a;break}}i!==""&&(t.referrerPolicy=i)}o(lUe,"setRequestReferrerPolicyOnRedirect");function uUe(){return"allowed"}o(uUe,"crossOriginResourcePolicyCheck");function dUe(){return"success"}o(dUe,"corsCheck");function fUe(){return"success"}o(fUe,"TAOCheck");function hUe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(hUe,"appendFetchMetadata");function pUe(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&gO(t.origin)&&!gO(mC(t))&&(e=null);break;case"same-origin":TB(t,mC(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(pUe,"appendRequestOriginHeader");function qA(t,e){return t}o(qA,"coarsenTime");function AUe(t,e,r){return!t?.startTime||t.startTime4096&&(n=i);let s=TB(t,n),a=AC(n)&&!AC(t.url);switch(e){case"origin":return i??mO(r,!0);case"unsafe-url":return n;case"same-origin":return s?i:"no-referrer";case"origin-when-cross-origin":return s?n:i;case"strict-origin-when-cross-origin":{let c=mC(t);return TB(n,c)?n:AC(n)&&!AC(c)?"no-referrer":i}default:return a?"no-referrer":i}}o(EUe,"determineRequestsReferrer");function mO(t,e){return Yf(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}o(mO,"stripURLForReferrer");function AC(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}o(AC,"isURLPotentiallyTrustworthy");function CUe(t,e){if(RB===void 0)return!0;let r=PX(e);if(r==="no metadata"||r.length===0)return!0;let n=wUe(r),i=IUe(r,n);for(let s of i){let a=s.algo,c=s.hash,l=RB.createHash(a).update(t).digest("base64");if(l[l.length-1]==="="&&(l[l.length-2]==="="?l=l.slice(0,-2):l=l.slice(0,-1)),SUe(l,c))return!0}return!1}o(CUe,"bytesMatch");var bUe=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function PX(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let i=bUe.exec(n);if(i===null||i.groups===void 0||i.groups.algo===void 0)continue;let s=i.groups.algo.toLowerCase();RX.includes(s)&&e.push(i.groups)}return r===!0?"no metadata":e}o(PX,"parseMetadata");function wUe(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r{t=n,e=i}),resolve:t,reject:e}}o(xUe,"createDeferredPromise");function vUe(t){return t.controller.state==="aborted"}o(vUe,"isAborted");function NUe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}o(NUe,"isCancelled");function _Ue(t){return tUe[t.toLowerCase()]??t}o(_Ue,"normalizeMethod");function RUe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Yf(typeof e=="string"),e}o(RUe,"serializeJavascriptValueToJSONString");var TUe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function OX(t,e,r=0,n=1){class i{static{o(this,"FastIterableIterator")}#e;#r;#n;constructor(a,c){this.#e=a,this.#r=c,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let a=this.#n,c=this.#e[e],l=c.length;if(a>=l)return{value:void 0,done:!0};let{[r]:u,[n]:d}=c[a];this.#n=a+1;let f;switch(this.#r){case"key":f=u;break;case"value":f=d;break;case"key+value":f=[u,d];break}return{value:f,done:!1}}}return delete i.prototype.constructor,Object.setPrototypeOf(i.prototype,TUe),Object.defineProperties(i.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(s,a){return new i(s,a)}}o(OX,"createIterator");function DUe(t,e,r,n=0,i=1){let s=OX(t,r,n,i),a={keys:{writable:!0,enumerable:!0,configurable:!0,value:o(function(){return pC.brandCheck(this,e),s(this,"key")},"keys")},values:{writable:!0,enumerable:!0,configurable:!0,value:o(function(){return pC.brandCheck(this,e),s(this,"value")},"values")},entries:{writable:!0,enumerable:!0,configurable:!0,value:o(function(){return pC.brandCheck(this,e),s(this,"key+value")},"entries")},forEach:{writable:!0,enumerable:!0,configurable:!0,value:o(function(l,u=globalThis){if(pC.brandCheck(this,e),pC.argumentLengthCheck(arguments,1,`${t}.forEach`),typeof l!="function")throw new TypeError(`Failed to execute 'forEach' on '${t}': parameter 1 is not of type 'Function'.`);for(let{0:d,1:f}of s(this,"key+value"))l.call(u,f,d,this)},"forEach")}};return Object.defineProperties(e.prototype,{...a,[Symbol.iterator]:{writable:!0,enumerable:!1,configurable:!0,value:a.entries.value}})}o(DUe,"iteratorMixin");async function QUe(t,e,r){let n=e,i=r,s;try{s=t.stream.getReader()}catch(a){i(a);return}try{n(await LX(s))}catch(a){i(a)}}o(QUe,"fullyReadBody");function kUe(t){return t instanceof ReadableStream||t[Symbol.toStringTag]==="ReadableStream"&&typeof t.tee=="function"}o(kUe,"isReadableStreamLike");function PUe(t){try{t.close(),t.byobRequest?.respond(0)}catch(e){if(!e.message.includes("Controller is already closed")&&!e.message.includes("ReadableStream is already closed"))throw e}}o(PUe,"readableStreamClose");var OUe=/[^\x00-\xFF]/;function _B(t){return Yf(!OUe.test(t)),t}o(_B,"isomorphicEncode");async function LX(t){let e=[],r=0;for(;;){let{done:n,value:i}=await t.read();if(n)return Buffer.concat(e,r);if(!rUe(i))throw new TypeError("Received non-Uint8Array chunk");e.push(i),r+=i.length}}o(LX,"readAllBytes");function LUe(t){Yf("protocol"in t);let e=t.protocol;return e==="about:"||e==="blob:"||e==="data:"}o(LUe,"urlIsLocal");function gO(t){return typeof t=="string"&&t[5]===":"&&t[0]==="h"&&t[1]==="t"&&t[2]==="t"&&t[3]==="p"&&t[4]==="s"||t.protocol==="https:"}o(gO,"urlHasHttpsScheme");function FX(t){Yf("protocol"in t);let e=t.protocol;return e==="http:"||e==="https:"}o(FX,"urlIsHttpHttpsScheme");function FUe(t,e){let r=t;if(!r.startsWith("bytes"))return"failure";let n={position:5};if(e&&Jf(l=>l===" "||l===" ",r,n),r.charCodeAt(n.position)!==61)return"failure";n.position++,e&&Jf(l=>l===" "||l===" ",r,n);let i=Jf(l=>{let u=l.charCodeAt(0);return u>=48&&u<=57},r,n),s=i.length?Number(i):null;if(e&&Jf(l=>l===" "||l===" ",r,n),r.charCodeAt(n.position)!==45)return"failure";n.position++,e&&Jf(l=>l===" "||l===" ",r,n);let a=Jf(l=>{let u=l.charCodeAt(0);return u>=48&&u<=57},r,n),c=a.length?Number(a):null;return n.positionc?"failure":{rangeStartValue:s,rangeEndValue:c}}o(FUe,"simpleRangeHeaderValue");function MUe(t,e,r){let n="bytes ";return n+=_B(`${t}`),n+="-",n+=_B(`${e}`),n+="/",n+=_B(`${r}`),n}o(MUe,"buildContentRange");var yO=class extends VMe{static{o(this,"InflateStream")}#e;constructor(e){super(),this.#e=e}_transform(e,r,n){if(!this._inflateStream){if(e.length===0){n();return}this._inflateStream=(e[0]&15)===8?vX.createInflate(this.#e):vX.createInflateRaw(this.#e),this._inflateStream.on("data",this.push.bind(this)),this._inflateStream.on("end",()=>this.push(null)),this._inflateStream.on("error",i=>this.destroy(i))}this._inflateStream.write(e,r,n)}_final(e){this._inflateStream&&(this._inflateStream.end(),this._inflateStream=null),e()}};function UUe(t){return new yO(t)}o(UUe,"createInflate");function qUe(t){let e=null,r=null,n=null,i=MX("content-type",t);if(i===null)return"failure";for(let s of i){let a=KMe(s);a==="failure"||a.essence==="*/*"||(n=a,n.essence!==r?(e=null,n.parameters.has("charset")&&(e=n.parameters.get("charset")),r=n.essence):!n.parameters.has("charset")&&e!==null&&n.parameters.set("charset",e))}return n??"failure"}o(qUe,"extractMimeType");function GUe(t){let e=t,r={position:0},n=[],i="";for(;r.positions!=='"'&&s!==",",e,r),r.positions===9||s===32),n.push(i),i=""}return n}o(GUe,"gettingDecodingSplitting");function MX(t,e){let r=e.get(t,!0);return r===null?null:GUe(r)}o(MX,"getDecodeSplit");var HUe=new TextDecoder;function zUe(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),HUe.decode(t))}o(zUe,"utf8DecodeBytes");var EO=class{static{o(this,"EnvironmentSettingsObjectBase")}get baseUrl(){return NX()}get origin(){return this.baseUrl?.origin}policyContainer=kX()},CO=class{static{o(this,"EnvironmentSettingsObject")}settingsObject=new EO},VUe=new CO;UX.exports={isAborted:vUe,isCancelled:NUe,isValidEncodedURL:DX,createDeferredPromise:xUe,ReadableStreamFrom:eUe,tryUpgradeRequestToAPotentiallyTrustworthyURL:BUe,clampAndCoarsenConnectionTimingInfo:AUe,coarsenedSharedCurrentTime:mUe,determineRequestsReferrer:EUe,makePolicyContainer:kX,clonePolicyContainer:yUe,appendFetchMetadata:hUe,appendRequestOriginHeader:pUe,TAOCheck:fUe,corsCheck:dUe,crossOriginResourcePolicyCheck:uUe,createOpaqueTimingInfo:gUe,setRequestReferrerPolicyOnRedirect:lUe,isValidHTTPToken:_X,requestBadPort:sUe,requestCurrentURL:mC,responseURL:TX,responseLocationURL:nUe,isBlobLike:ZMe,isURLPotentiallyTrustworthy:AC,isValidReasonPhrase:aUe,sameOrigin:TB,normalizeMethod:_Ue,serializeJavascriptValueToJSONString:RUe,iteratorMixin:DUe,createIterator:OX,isValidHeaderName:cUe,isValidHeaderValue:QX,isErrorLike:oUe,fullyReadBody:QUe,bytesMatch:CUe,isReadableStreamLike:kUe,readableStreamClose:PUe,isomorphicEncode:_B,urlIsLocal:LUe,urlHasHttpsScheme:gO,urlIsHttpHttpsScheme:FX,readAllBytes:LX,simpleRangeHeaderValue:FUe,buildContentRange:MUe,parseMetadata:PX,createInflate:UUe,extractMimeType:qUe,getDecodeSplit:MX,utf8DecodeBytes:zUe,environmentSettingsObject:VUe}});var nd=g((dGt,qX)=>{"use strict";qX.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kDispatcher:Symbol("dispatcher")}});var wO=g((fGt,GX)=>{"use strict";var{Blob:$Ue,File:jUe}=require("node:buffer"),{kState:jl}=nd(),{webidl:ic}=qn(),bO=class t{static{o(this,"FileLike")}constructor(e,r,n={}){let i=r,s=n.type,a=n.lastModified??Date.now();this[jl]={blobLike:e,name:i,type:s,lastModified:a}}stream(...e){return ic.brandCheck(this,t),this[jl].blobLike.stream(...e)}arrayBuffer(...e){return ic.brandCheck(this,t),this[jl].blobLike.arrayBuffer(...e)}slice(...e){return ic.brandCheck(this,t),this[jl].blobLike.slice(...e)}text(...e){return ic.brandCheck(this,t),this[jl].blobLike.text(...e)}get size(){return ic.brandCheck(this,t),this[jl].blobLike.size}get type(){return ic.brandCheck(this,t),this[jl].blobLike.type}get name(){return ic.brandCheck(this,t),this[jl].name}get lastModified(){return ic.brandCheck(this,t),this[jl].lastModified}get[Symbol.toStringTag](){return"File"}};ic.converters.Blob=ic.interfaceConverter($Ue);function WUe(t){return t instanceof jUe||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}o(WUe,"isFileLike");GX.exports={FileLike:bO,isFileLike:WUe}});var yC=g((pGt,jX)=>{"use strict";var{isBlobLike:DB,iteratorMixin:JUe}=xs(),{kState:wi}=nd(),{kEnumerableProperty:GA}=st(),{FileLike:HX,isFileLike:YUe}=wO(),{webidl:$t}=qn(),{File:$X}=require("node:buffer"),zX=require("node:util"),VX=globalThis.File??$X,gC=class t{static{o(this,"FormData")}constructor(e){if($t.util.markAsUncloneable(this),e!==void 0)throw $t.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[wi]=[]}append(e,r,n=void 0){$t.brandCheck(this,t);let i="FormData.append";if($t.argumentLengthCheck(arguments,2,i),arguments.length===3&&!DB(r))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=$t.converters.USVString(e,i,"name"),r=DB(r)?$t.converters.Blob(r,i,"value",{strict:!1}):$t.converters.USVString(r,i,"value"),n=arguments.length===3?$t.converters.USVString(n,i,"filename"):void 0;let s=IO(e,r,n);this[wi].push(s)}delete(e){$t.brandCheck(this,t);let r="FormData.delete";$t.argumentLengthCheck(arguments,1,r),e=$t.converters.USVString(e,r,"name"),this[wi]=this[wi].filter(n=>n.name!==e)}get(e){$t.brandCheck(this,t);let r="FormData.get";$t.argumentLengthCheck(arguments,1,r),e=$t.converters.USVString(e,r,"name");let n=this[wi].findIndex(i=>i.name===e);return n===-1?null:this[wi][n].value}getAll(e){$t.brandCheck(this,t);let r="FormData.getAll";return $t.argumentLengthCheck(arguments,1,r),e=$t.converters.USVString(e,r,"name"),this[wi].filter(n=>n.name===e).map(n=>n.value)}has(e){$t.brandCheck(this,t);let r="FormData.has";return $t.argumentLengthCheck(arguments,1,r),e=$t.converters.USVString(e,r,"name"),this[wi].findIndex(n=>n.name===e)!==-1}set(e,r,n=void 0){$t.brandCheck(this,t);let i="FormData.set";if($t.argumentLengthCheck(arguments,2,i),arguments.length===3&&!DB(r))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=$t.converters.USVString(e,i,"name"),r=DB(r)?$t.converters.Blob(r,i,"name",{strict:!1}):$t.converters.USVString(r,i,"name"),n=arguments.length===3?$t.converters.USVString(n,i,"name"):void 0;let s=IO(e,r,n),a=this[wi].findIndex(c=>c.name===e);a!==-1?this[wi]=[...this[wi].slice(0,a),s,...this[wi].slice(a+1).filter(c=>c.name!==e)]:this[wi].push(s)}[zX.inspect.custom](e,r){let n=this[wi].reduce((s,a)=>(s[a.name]?Array.isArray(s[a.name])?s[a.name].push(a.value):s[a.name]=[s[a.name],a.value]:s[a.name]=a.value,s),{__proto__:null});r.depth??=e,r.colors??=!0;let i=zX.formatWithOptions(r,n);return`FormData ${i.slice(i.indexOf("]")+2)}`}};JUe("FormData",gC,wi,"name","value");Object.defineProperties(gC.prototype,{append:GA,delete:GA,get:GA,getAll:GA,has:GA,set:GA,[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function IO(t,e,r){if(typeof e!="string"){if(YUe(e)||(e=e instanceof Blob?new VX([e],"blob",{type:e.type}):new HX(e,"blob",{type:e.type})),r!==void 0){let n={type:e.type,lastModified:e.lastModified};e=e instanceof $X?new VX([e],r,n):new HX(e,r,n)}}return{name:t,value:e}}o(IO,"makeEntry");jX.exports={FormData:gC,makeEntry:IO}});var ZX=g((mGt,XX)=>{"use strict";var{isUSVString:WX,bufferToLowerCasedHeaderName:KUe}=st(),{utf8DecodeBytes:XUe}=xs(),{HTTP_TOKEN_CODEPOINTS:ZUe,isomorphicDecode:JX}=Yi(),{isFileLike:eqe}=wO(),{makeEntry:tqe}=yC(),QB=require("node:assert"),{File:rqe}=require("node:buffer"),nqe=globalThis.File??rqe,iqe=Buffer.from('form-data; name="'),YX=Buffer.from("; filename"),sqe=Buffer.from("--"),oqe=Buffer.from(`--\r +`);function aqe(t){for(let e=0;e70)return!1;for(let r=0;r=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}o(cqe,"validateBoundary");function lqe(t,e){QB(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),i=[],s={position:0};for(;t[s.position]===13&&t[s.position+1]===10;)s.position+=2;let a=t.length;for(;t[a-1]===10&&t[a-2]===13;)a-=2;for(a!==t.length&&(t=t.subarray(0,a));;){if(t.subarray(s.position,s.position+n.length).equals(n))s.position+=n.length;else return"failure";if(s.position===t.length-2&&kB(t,sqe,s)||s.position===t.length-4&&kB(t,oqe,s))return i;if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let c=uqe(t,s);if(c==="failure")return"failure";let{name:l,filename:u,contentType:d,encoding:f}=c;s.position+=2;let h;{let m=t.indexOf(n.subarray(2),s.position);if(m===-1)return"failure";h=t.subarray(s.position,m-4),s.position+=h.length,f==="base64"&&(h=Buffer.from(h.toString(),"base64"))}if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let p;u!==null?(d??="text/plain",aqe(d)||(d=""),p=new nqe([h],u,{type:d})):p=XUe(Buffer.from(h)),QB(WX(l)),QB(typeof p=="string"&&WX(p)||eqe(p)),i.push(tqe(l,p,u))}}o(lqe,"multipartFormDataParser");function uqe(t,e){let r=null,n=null,i=null,s=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:i,encoding:s};let a=HA(c=>c!==10&&c!==13&&c!==58,t,e);if(a=SO(a,!0,!0,c=>c===9||c===32),!ZUe.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,HA(c=>c===32||c===9,t,e),KUe(a)){case"content-disposition":{if(r=n=null,!kB(t,iqe,e)||(e.position+=17,r=KX(t,e),r===null))return"failure";if(kB(t,YX,e)){let c=e.position+YX.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,n=KX(t,e),n===null))return"failure"}break}case"content-type":{let c=HA(l=>l!==10&&l!==13,t,e);c=SO(c,!1,!0,l=>l===9||l===32),i=JX(c);break}case"content-transfer-encoding":{let c=HA(l=>l!==10&&l!==13,t,e);c=SO(c,!1,!0,l=>l===9||l===32),s=JX(c);break}default:HA(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(uqe,"parseMultipartFormDataHeaders");function KX(t,e){QB(t[e.position-1]===34);let r=HA(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,` +`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}o(KX,"parseMultipartFormDataName");function HA(t,e,r){let n=r.position;for(;n0&&n(t[s]);)s--;return i===0&&s===t.length-1?t:t.subarray(i,s+1)}o(SO,"removeChars");function kB(t,e,r){if(t.length{"use strict";var EC=st(),{ReadableStreamFrom:dqe,isBlobLike:eZ,isReadableStreamLike:fqe,readableStreamClose:hqe,createDeferredPromise:pqe,fullyReadBody:Aqe,extractMimeType:mqe,utf8DecodeBytes:nZ}=xs(),{FormData:tZ}=yC(),{kState:VA}=nd(),{webidl:gqe}=qn(),{Blob:yqe}=require("node:buffer"),BO=require("node:assert"),{isErrored:iZ,isDisturbed:Eqe}=require("node:stream"),{isArrayBuffer:Cqe}=require("node:util/types"),{serializeAMimeType:bqe}=Yi(),{multipartFormDataParser:wqe}=ZX(),xO;try{let t=require("node:crypto");xO=o(e=>t.randomInt(0,e),"random")}catch{xO=o(t=>Math.floor(Math.random(t)),"random")}var PB=new TextEncoder;function Iqe(){}o(Iqe,"noop");var sZ=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,oZ;sZ&&(oZ=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Eqe(e)&&!iZ(e)&&e.cancel("Response object has been garbage collected").catch(Iqe)}));function aZ(t,e=!1){let r=null;t instanceof ReadableStream?r=t:eZ(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof i=="string"?PB.encode(i):i;u.byteLength&&l.enqueue(u),queueMicrotask(()=>hqe(l))},start(){},type:"bytes"}),BO(fqe(r));let n=null,i=null,s=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Cqe(t))i=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))i=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(EC.isFormDataLike(t)){let l=`----formdata-undici-0${`${xO(1e11)}`.padStart(11,"0")}`,u=`--${l}\r Content-Disposition: form-data`;let d=o(E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),f=o(E=>E.replace(/\r?\n|\r/g,`\r -`),"normalizeLinefeeds"),h=[],p=new Uint8Array([13,10]);s=0;let m=!1;for(let[E,y]of t)if(typeof y=="string"){let C=kB.encode(u+`; name="${d(f(E))}"\r +`),"normalizeLinefeeds"),h=[],p=new Uint8Array([13,10]);s=0;let m=!1;for(let[E,y]of t)if(typeof y=="string"){let C=PB.encode(u+`; name="${d(f(E))}"\r \r ${f(y)}\r -`);h.push(C),s+=C.byteLength}else{let C=kB.encode(`${u}; name="${d(f(E))}"`+(y.name?`; filename="${d(y.name)}"`:"")+`\r +`);h.push(C),s+=C.byteLength}else{let C=PB.encode(`${u}; name="${d(f(E))}"`+(y.name?`; filename="${d(y.name)}"`:"")+`\r Content-Type: ${y.type||"application/octet-stream"}\r \r -`);h.push(C,y,p),typeof y.size=="number"?s+=C.byteLength+y.size+p.byteLength:m=!0}let A=kB.encode(`--${l}--\r -`);h.push(A),s+=A.byteLength,m&&(s=null),i=t,n=o(async function*(){for(let E of h)E.stream?yield*E.stream():yield E},"action"),a=`multipart/form-data; boundary=${l}`}else if(ZX(t))i=t,s=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(yC.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:cqe(t)}if((typeof i=="string"||yC.isBuffer(i))&&(s=Buffer.byteLength(i)),n!=null){let l;r=new ReadableStream({async start(){l=n(t)[Symbol.asyncIterator]()},async pull(u){let{value:d,done:f}=await l.next();if(f)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!nZ(r)){let h=new Uint8Array(d);h.byteLength&&u.enqueue(h)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:i,length:s},a]}o(oZ,"extractBody");function bqe(t,e=!1){return t instanceof ReadableStream&&(SO(!yC.isDisturbed(t),"The body has already been consumed."),SO(!t.locked,"The stream is locked.")),oZ(t,e)}o(bqe,"safelyExtractBody");function wqe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}o(wqe,"cloneBody");function Iqe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(Iqe,"throwIfAborted");function Sqe(t){return{blob(){return HA(this,r=>{let n=tZ(this);return n===null?n="":n&&(n=yqe(n)),new Aqe([r],{type:n})},t)},arrayBuffer(){return HA(this,r=>new Uint8Array(r).buffer,t)},text(){return HA(this,rZ,t)},json(){return HA(this,xqe,t)},formData(){return HA(this,r=>{let n=tZ(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let i=Eqe(r,n);if(i==="failure")throw new TypeError("Failed to parse body as FormData.");let s=new eZ;return s[zA]=i,s}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(r.toString()),s=new eZ;for(let[a,c]of i)s.append(a,c);return s}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return HA(this,r=>new Uint8Array(r),t)}}}o(Sqe,"bodyMixinMethods");function Bqe(t){Object.assign(t.prototype,Sqe(t))}o(Bqe,"mixinBody");async function HA(t,e,r){if(pqe.brandCheck(t,r),aZ(t))throw new TypeError("Body is unusable: Body has already been read");Iqe(t[zA]);let n=dqe(),i=o(a=>n.reject(a),"errorSteps"),s=o(a=>{try{n.resolve(e(a))}catch(c){i(c)}},"successSteps");return t[zA].body==null?(s(Buffer.allocUnsafe(0)),n.promise):(await fqe(t[zA].body,s,i),n.promise)}o(HA,"consumeBody");function aZ(t){let e=t[zA].body;return e!=null&&(e.stream.locked||yC.isDisturbed(e.stream))}o(aZ,"bodyUnusable");function xqe(t){return JSON.parse(rZ(t))}o(xqe,"parseJSONFromBytes");function tZ(t){let e=t[zA].headersList,r=hqe(e);return r==="failure"?null:r}o(tZ,"bodyMimeType");cZ.exports={extractBody:oZ,safelyExtractBody:bqe,cloneBody:wqe,mixinBody:Bqe,streamRegistry:sZ,hasFinalizationRegistry:iZ,bodyUnusable:aZ}});var SZ=g((mGt,IZ)=>{"use strict";var ve=require("node:assert"),_e=st(),{channels:lZ}=DA(),xO=aO(),{RequestContentLengthMismatchError:Yf,ResponseContentLengthMismatchError:uZ,RequestAbortedError:yZ,InvalidArgumentError:vqe,HeadersTimeoutError:Nqe,HeadersOverflowError:Rqe,SocketError:$A,InformationalError:jA,BodyTimeoutError:_qe,HTTPParserError:Tqe,ResponseExceededMaxSizeError:Dqe}=xt(),{kUrl:EZ,kReset:Ki,kClient:FB,kParser:Jt,kBlocking:bC,kRunning:Xr,kPending:CZ,kSize:dZ,kWriting:nd,kQueue:pa,kNoRef:EC,kKeepAliveDefaultTimeout:Qqe,kHostHeader:kqe,kPendingIdx:Pqe,kRunningIdx:ho,kError:Ii,kPipelining:MB,kSocket:Kf,kKeepAliveTimeoutValue:qB,kMaxHeadersSize:vO,kKeepAliveMaxTimeout:Oqe,kKeepAliveTimeoutThreshold:Lqe,kHeadersTimeout:Fqe,kBodyTimeout:Mqe,kStrictContentLength:_O,kMaxRequests:fZ,kCounter:Uqe,kMaxResponseSize:qqe,kOnError:hZ,kResume:jl,kHTTPContext:bZ}=cr(),vs=sX(),pZ=Buffer.alloc(0),PB=Buffer[Symbol.species],OB=_e.addListener,Gqe=_e.removeAllListeners,Xf=Symbol("kIdleSocketValidation"),WA=Symbol("kIdleSocketValidationTimeout"),kO=Symbol("kSocketUsed"),NO;async function Hqe(){let t=process.env.JEST_WORKER_ID?uO():void 0,e;try{e=await WebAssembly.compile(cX())}catch{e=await WebAssembly.compile(t||uO())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:o((r,n,i)=>0,"wasm_on_url"),wasm_on_status:o((r,n,i)=>{ve(Ir.ptr===r);let s=n-oc+sc.byteOffset;return Ir.onStatus(new PB(sc.buffer,s,i))||0},"wasm_on_status"),wasm_on_message_begin:o(r=>(ve(Ir.ptr===r),Ir.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:o((r,n,i)=>{ve(Ir.ptr===r);let s=n-oc+sc.byteOffset;return Ir.onHeaderField(new PB(sc.buffer,s,i))||0},"wasm_on_header_field"),wasm_on_header_value:o((r,n,i)=>{ve(Ir.ptr===r);let s=n-oc+sc.byteOffset;return Ir.onHeaderValue(new PB(sc.buffer,s,i))||0},"wasm_on_header_value"),wasm_on_headers_complete:o((r,n,i,s)=>(ve(Ir.ptr===r),Ir.onHeadersComplete(n,!!i,!!s)||0),"wasm_on_headers_complete"),wasm_on_body:o((r,n,i)=>{ve(Ir.ptr===r);let s=n-oc+sc.byteOffset;return Ir.onBody(new PB(sc.buffer,s,i))||0},"wasm_on_body"),wasm_on_message_complete:o(r=>(ve(Ir.ptr===r),Ir.onMessageComplete()||0),"wasm_on_message_complete")}})}o(Hqe,"lazyllhttp");var RO=null,TO=Hqe();TO.catch();var Ir=null,sc=null,LB=0,oc=null,zqe=0,CC=1,JA=2|CC,UB=4|CC,DO=8|zqe,QO=class{static{o(this,"Parser")}constructor(e,r,{exports:n}){ve(Number.isFinite(e[vO])&&e[vO]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(vs.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[vO],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[qqe]}setTimeout(e,r){e!==this.timeoutValue||r&CC^this.timeoutType&CC?(this.timeout&&(xO.clearTimeout(this.timeout),this.timeout=null),e&&(r&CC?this.timeout=xO.setFastTimeout(AZ,e,new WeakRef(this)):(this.timeout=setTimeout(AZ,e,new WeakRef(this)),this.timeout.unref())),this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.timeoutType=r}resume(){this.socket.destroyed||!this.paused||(ve(this.ptr!=null),ve(Ir==null),this.llhttp.llhttp_resume(this.ptr),ve(this.timeoutType===UB),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||pZ),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){ve(this.ptr!=null),ve(Ir==null),ve(!this.paused);let{socket:r,llhttp:n}=this;e.length>LB&&(oc&&n.free(oc),LB=Math.ceil(e.length/4096)*4096,oc=n.malloc(LB)),new Uint8Array(n.memory.buffer,oc,LB).set(e);try{let i;try{sc=e,Ir=this,i=n.llhttp_execute(this.ptr,oc,e.length)}catch(a){throw a}finally{Ir=null,sc=null}let s=n.llhttp_get_error_pos(this.ptr)-oc;if(i!==vs.ERROR.OK){let a=e.subarray(s);if(i===vs.ERROR.PAUSED_UPGRADE)this.onUpgrade(a);else if(i===vs.ERROR.PAUSED)this.paused=!0,r.unshift(a);else throw this.createError(i,a)}}catch(i){_e.destroy(r,i)}}finish(){ve(Ir===null),ve(this.ptr!=null),ve(!this.paused);let{llhttp:e}=this,r;try{Ir=this,r=e.llhttp_finish(this.ptr)}finally{Ir=null}return r===vs.ERROR.OK?null:r===vs.ERROR.PAUSED||r===vs.ERROR.PAUSED_UPGRADE?(this.paused=!0,null):this.createError(r,pZ)}createError(e,r){let{llhttp:n,contentLength:i,bytesRead:s}=this;if(i&&s!==parseInt(i,10))return new uZ;let a=n.llhttp_get_error_reason(this.ptr),c="";if(a){let l=new Uint8Array(n.memory.buffer,a).indexOf(0);c="Response does not match the HTTP/1.1 protocol ("+Buffer.from(n.memory.buffer,a,l).toString()+")"}return new Tqe(c,vs.ERROR[e],r)}destroy(){ve(this.ptr!=null),ve(Ir==null),this.llhttp.llhttp_free(this.ptr),this.ptr=null,this.timeout&&xO.clearTimeout(this.timeout),this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.paused=!1}onStatus(e){this.statusText=e.toString()}onMessageBegin(){let{socket:e,client:r}=this;if(e.destroyed)return-1;if(r[Xr]===0)return _e.destroy(e,new $A("bad response",_e.getSocketInfo(e))),-1;let n=r[pa][r[ho]];if(!n)return-1;n.onResponseStarted()}onHeaderField(e){let r=this.headers.length;(r&1)===0?this.headers.push(e):this.headers[r-1]=Buffer.concat([this.headers[r-1],e]),this.trackHeader(e.length)}onHeaderValue(e){let r=this.headers.length;(r&1)===1?(this.headers.push(e),r+=1):this.headers[r-1]=Buffer.concat([this.headers[r-1],e]);let n=this.headers[r-2];if(n.length===10){let i=_e.bufferToLowerCasedHeaderName(n);i==="keep-alive"?this.keepAlive+=e.toString():i==="connection"&&(this.connection+=e.toString())}else n.length===14&&_e.bufferToLowerCasedHeaderName(n)==="content-length"&&(this.contentLength+=e.toString());this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e,this.headersSize>=this.headersMaxSize&&_e.destroy(this.socket,new Rqe)}onUpgrade(e){let{upgrade:r,client:n,socket:i,headers:s,statusCode:a}=this;ve(r),ve(n[Kf]===i),ve(!i.destroyed),ve(!this.paused),ve((s.length&1)===0);let c=n[pa][n[ho]];ve(c),ve(c.upgrade||c.method==="CONNECT"),this.statusCode=null,this.statusText="",this.shouldKeepAlive=null,this.headers=[],this.headersSize=0,i.unshift(e),i[Jt].destroy(),i[Jt]=null,i[FB]=null,i[Ii]=null,Gqe(i),n[Kf]=null,n[bZ]=null,n[pa][n[ho]++]=null,n.emit("disconnect",n[EZ],[n],new jA("upgrade"));try{c.onUpgrade(a,s,i)}catch(l){_e.destroy(i,l)}n[jl]()}onHeadersComplete(e,r,n){let{client:i,socket:s,headers:a,statusText:c}=this;if(s.destroyed)return-1;if(i[Xr]===0)return _e.destroy(s,new $A("bad response",_e.getSocketInfo(s))),-1;let l=i[pa][i[ho]];if(!l)return-1;if(ve(!this.upgrade),ve(this.statusCode<200),e===100)return _e.destroy(s,new $A("bad response",_e.getSocketInfo(s))),-1;if(r&&!l.upgrade)return _e.destroy(s,new $A("bad upgrade",_e.getSocketInfo(s))),-1;if(ve(this.timeoutType===JA),this.statusCode=e,this.shouldKeepAlive=n||l.method==="HEAD"&&!s[Ki]&&this.connection.toLowerCase()==="keep-alive",this.statusCode>=200){let d=l.bodyTimeout!=null?l.bodyTimeout:i[Mqe];this.setTimeout(d,UB)}else this.timeout&&this.timeout.refresh&&this.timeout.refresh();if(l.method==="CONNECT")return ve(i[Xr]===1),this.upgrade=!0,2;if(r)return ve(i[Xr]===1),this.upgrade=!0,2;if(ve((this.headers.length&1)===0),this.headers=[],this.headersSize=0,this.shouldKeepAlive&&i[MB]){let d=this.keepAlive?_e.parseKeepAliveTimeout(this.keepAlive):null;if(d!=null){let f=Math.min(d-i[Lqe],i[Oqe]);f<=0?s[Ki]=!0:i[qB]=f}else i[qB]=i[Qqe]}else s[Ki]=!0;let u=l.onHeaders(e,a,this.resume,c)===!1;return l.aborted?-1:l.method==="HEAD"||e<200?1:(s[bC]&&(s[bC]=!1,i[jl]()),u?vs.ERROR.PAUSED:0)}onBody(e){let{client:r,socket:n,statusCode:i,maxResponseSize:s}=this;if(n.destroyed)return-1;let a=r[pa][r[ho]];if(ve(a),ve(this.timeoutType===UB),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),ve(i>=200),s>-1&&this.bytesRead+e.length>s)return _e.destroy(n,new Dqe),-1;if(this.bytesRead+=e.length,a.onData(e)===!1)return vs.ERROR.PAUSED}onMessageComplete(){let{client:e,socket:r,statusCode:n,upgrade:i,headers:s,contentLength:a,bytesRead:c,shouldKeepAlive:l}=this;if(r.destroyed&&(!n||l))return-1;if(i)return;ve(n>=100),ve((this.headers.length&1)===0);let u=e[pa][e[ho]];if(ve(u),this.statusCode=null,this.statusText="",this.bytesRead=0,this.contentLength="",this.keepAlive="",this.connection="",this.headers=[],this.headersSize=0,!(n<200)){if(u.method!=="HEAD"&&a&&c!==parseInt(a,10))return _e.destroy(r,new uZ),-1;if(u.onComplete(s),e[pa][e[ho]++]=null,r[kO]=!0,r[nd])return ve(e[Xr]===0),_e.destroy(r,new jA("reset")),vs.ERROR.PAUSED;if(l){if(r[Ki]&&e[Xr]===0)return _e.destroy(r,new jA("reset")),vs.ERROR.PAUSED;e[MB]==null||e[MB]===1?setImmediate(()=>e[jl]()):e[jl]()}else return _e.destroy(r,new jA("reset")),vs.ERROR.PAUSED}}};function AZ(t){let{socket:e,timeoutType:r,client:n,paused:i}=t.deref();r===JA?(!e[nd]||e.writableNeedDrain||n[Xr]>1)&&(ve(!i,"cannot be paused while waiting for headers"),_e.destroy(e,new Nqe)):r===UB?i||_e.destroy(e,new _qe):r===DO&&(ve(n[Xr]===0&&n[qB]),_e.destroy(e,new jA("socket idle timeout")))}o(AZ,"onParserTimeout");async function Vqe(t,e){t[Kf]=e,RO||(RO=await TO,TO=null),e[EC]=!1,e[nd]=!1,e[Ki]=!1,e[bC]=!1,e[Xf]=0,e[WA]=null,e[kO]=!1,e[Jt]=new QO(t,e,RO),OB(e,"error",function(n){ve(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID");let i=this[Jt];if(n.code==="ECONNRESET"&&i.statusCode&&!i.shouldKeepAlive){let s=i.finish();s&&(this[Ii]=s,this[FB][hZ](s));return}this[Ii]=n,this[FB][hZ](n)}),OB(e,"readable",function(){let n=this[Jt];n&&n.readMore()}),OB(e,"end",function(){let n=this[Jt];if(n.statusCode&&!n.shouldKeepAlive){let i=n.finish();i&&_e.destroy(this,i);return}_e.destroy(this,new $A("other side closed",_e.getSocketInfo(this)))}),OB(e,"close",function(){let n=this[FB],i=this[Jt];wZ(this),i&&(!this[Ii]&&i.statusCode&&!i.shouldKeepAlive&&(this[Ii]=i.finish()||this[Ii]),this[Jt].destroy(),this[Jt]=null);let s=this[Ii]||new $A("closed",_e.getSocketInfo(this));if(n[Kf]=null,n[bZ]=null,n.destroyed){ve(n[CZ]===0);let a=n[pa].splice(n[ho]);for(let c=0;c0&&s.code!=="UND_ERR_INFO"){let a=n[pa][n[ho]];n[pa][n[ho]++]=null,_e.errorRequest(n,a,s)}n[Pqe]=n[ho],ve(n[Xr]===0),n.emit("disconnect",n[EZ],[n],s),n[jl]()});let r=!1;return e.on("close",()=>{r=!0}),{version:"h1",defaultPipelining:1,write(...n){return Jqe(t,...n)},resume(){jqe(t)},destroy(n,i){r?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(n){return!!(e[nd]||e[Ki]||e[bC]||e[Xf]===1||n&&(t[Xr]>0&&!n.idempotent||t[Xr]>0&&(n.upgrade||n.method==="CONNECT")||t[Xr]>0&&_e.bodyLength(n.body)!==0&&(_e.isStream(n.body)||_e.isAsyncIterable(n.body)||_e.isFormDataLike(n.body))))}}}o(Vqe,"connectH1");function wZ(t){t[WA]&&(clearImmediate(t[WA]),t[WA]=null),t[Xf]=0}o(wZ,"clearIdleSocketValidation");function $qe(t,e){e[Xf]=1,e[WA]=setImmediate(()=>{e[WA]=null,e[Xf]=2,t[Kf]===e&&!e.destroyed&&t[jl]()})}o($qe,"scheduleIdleSocketValidation");function jqe(t){let e=t[Kf];if(e&&!e.destroyed){if(t[dZ]===0?!e[EC]&&e.unref&&(e.unref(),e[EC]=!0):e[EC]&&e.ref&&(e.ref(),e[EC]=!1),t[Xr]===0&&t[CZ]>0&&e[kO]){if(e[Xf]===0)return $qe(t,e),e[Jt].readMore(),e.destroyed,void 0;if(e[Xf]===1)return e[Jt].readMore(),e.destroyed,void 0}if(t[Xr]===0&&(e[Jt].readMore(),e.destroyed))return;if(t[dZ]===0)e[Jt].timeoutType!==DO&&e[Jt].setTimeout(t[qB],DO);else if(t[Xr]>0&&e[Jt].statusCode<200&&e[Jt].timeoutType!==JA){let r=t[pa][t[ho]],n=r.headersTimeout!=null?r.headersTimeout:t[Fqe];e[Jt].setTimeout(n,JA)}}}o(jqe,"resumeH1");function Wqe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(Wqe,"shouldSendContentLength");function Jqe(t,e){let{method:r,path:n,host:i,upgrade:s,blocking:a,reset:c}=e,{body:l,headers:u,contentLength:d}=e,f=r==="PUT"||r==="POST"||r==="PATCH"||r==="QUERY"||r==="PROPFIND"||r==="PROPPATCH";if(_e.isFormDataLike(l)){NO||(NO=VA().extractBody);let[E,y]=NO(l);e.contentType==null&&u.push("content-type",y),l=E.stream,d=E.length}else if(_e.isBlobLike(l)&&e.contentType==null){let E=l.type;if(E){let y=`${E}`;if(!_e.isValidHeaderValue(y))return _e.errorRequest(t,e,new vqe("invalid content-type header")),!1;u.push("content-type",y)}}l&&typeof l.read=="function"&&l.read(0);let h=_e.bodyLength(l);if(d=h??d,d===null&&(d=e.contentLength),d===0&&!f&&(d=null),Wqe(r)&&d>0&&e.contentLength!==null&&e.contentLength!==d){if(t[_O])return _e.errorRequest(t,e,new Yf),!1;process.emitWarning(new Yf)}let p=t[Kf];wZ(p);let m=o(E=>{e.aborted||e.completed||(_e.errorRequest(t,e,E||new yZ),_e.destroy(l),_e.destroy(p,new jA("aborted")))},"abort");try{e.onConnect(m)}catch(E){_e.errorRequest(t,e,E)}if(e.aborted)return!1;r==="HEAD"&&(p[Ki]=!0),(s||r==="CONNECT")&&(p[Ki]=!0),c!=null&&(p[Ki]=c),t[fZ]&&p[Uqe]++>=t[fZ]&&(p[Ki]=!0),a&&(p[bC]=!0);let A=`${r} ${n} HTTP/1.1\r +`);h.push(C,y,p),typeof y.size=="number"?s+=C.byteLength+y.size+p.byteLength:m=!0}let A=PB.encode(`--${l}--\r +`);h.push(A),s+=A.byteLength,m&&(s=null),i=t,n=o(async function*(){for(let E of h)E.stream?yield*E.stream():yield E},"action"),a=`multipart/form-data; boundary=${l}`}else if(eZ(t))i=t,s=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(EC.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:dqe(t)}if((typeof i=="string"||EC.isBuffer(i))&&(s=Buffer.byteLength(i)),n!=null){let l;r=new ReadableStream({async start(){l=n(t)[Symbol.asyncIterator]()},async pull(u){let{value:d,done:f}=await l.next();if(f)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!iZ(r)){let h=new Uint8Array(d);h.byteLength&&u.enqueue(h)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:i,length:s},a]}o(aZ,"extractBody");function Sqe(t,e=!1){return t instanceof ReadableStream&&(BO(!EC.isDisturbed(t),"The body has already been consumed."),BO(!t.locked,"The stream is locked.")),aZ(t,e)}o(Sqe,"safelyExtractBody");function Bqe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}o(Bqe,"cloneBody");function xqe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(xqe,"throwIfAborted");function vqe(t){return{blob(){return zA(this,r=>{let n=rZ(this);return n===null?n="":n&&(n=bqe(n)),new yqe([r],{type:n})},t)},arrayBuffer(){return zA(this,r=>new Uint8Array(r).buffer,t)},text(){return zA(this,nZ,t)},json(){return zA(this,_qe,t)},formData(){return zA(this,r=>{let n=rZ(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let i=wqe(r,n);if(i==="failure")throw new TypeError("Failed to parse body as FormData.");let s=new tZ;return s[VA]=i,s}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(r.toString()),s=new tZ;for(let[a,c]of i)s.append(a,c);return s}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return zA(this,r=>new Uint8Array(r),t)}}}o(vqe,"bodyMixinMethods");function Nqe(t){Object.assign(t.prototype,vqe(t))}o(Nqe,"mixinBody");async function zA(t,e,r){if(gqe.brandCheck(t,r),cZ(t))throw new TypeError("Body is unusable: Body has already been read");xqe(t[VA]);let n=pqe(),i=o(a=>n.reject(a),"errorSteps"),s=o(a=>{try{n.resolve(e(a))}catch(c){i(c)}},"successSteps");return t[VA].body==null?(s(Buffer.allocUnsafe(0)),n.promise):(await Aqe(t[VA].body,s,i),n.promise)}o(zA,"consumeBody");function cZ(t){let e=t[VA].body;return e!=null&&(e.stream.locked||EC.isDisturbed(e.stream))}o(cZ,"bodyUnusable");function _qe(t){return JSON.parse(nZ(t))}o(_qe,"parseJSONFromBytes");function rZ(t){let e=t[VA].headersList,r=mqe(e);return r==="failure"?null:r}o(rZ,"bodyMimeType");lZ.exports={extractBody:aZ,safelyExtractBody:Sqe,cloneBody:Bqe,mixinBody:Nqe,streamRegistry:oZ,hasFinalizationRegistry:sZ,bodyUnusable:cZ}});var BZ=g((CGt,SZ)=>{"use strict";var ve=require("node:assert"),Re=st(),{channels:uZ}=QA(),vO=cO(),{RequestContentLengthMismatchError:Kf,ResponseContentLengthMismatchError:dZ,RequestAbortedError:EZ,InvalidArgumentError:Rqe,HeadersTimeoutError:Tqe,HeadersOverflowError:Dqe,SocketError:jA,InformationalError:WA,BodyTimeoutError:Qqe,HTTPParserError:kqe,ResponseExceededMaxSizeError:Pqe}=xt(),{kUrl:CZ,kReset:Ki,kClient:MB,kParser:Jt,kBlocking:wC,kRunning:Xr,kPending:bZ,kSize:fZ,kWriting:id,kQueue:pa,kNoRef:CC,kKeepAliveDefaultTimeout:Oqe,kHostHeader:Lqe,kPendingIdx:Fqe,kRunningIdx:ho,kError:Ii,kPipelining:UB,kSocket:Xf,kKeepAliveTimeoutValue:GB,kMaxHeadersSize:NO,kKeepAliveMaxTimeout:Mqe,kKeepAliveTimeoutThreshold:Uqe,kHeadersTimeout:qqe,kBodyTimeout:Gqe,kStrictContentLength:TO,kMaxRequests:hZ,kCounter:Hqe,kMaxResponseSize:zqe,kOnError:pZ,kResume:Wl,kHTTPContext:wZ}=cr(),vs=oX(),AZ=Buffer.alloc(0),OB=Buffer[Symbol.species],LB=Re.addListener,Vqe=Re.removeAllListeners,Zf=Symbol("kIdleSocketValidation"),JA=Symbol("kIdleSocketValidationTimeout"),PO=Symbol("kSocketUsed"),_O;async function $qe(){let t=process.env.JEST_WORKER_ID?dO():void 0,e;try{e=await WebAssembly.compile(lX())}catch{e=await WebAssembly.compile(t||dO())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:o((r,n,i)=>0,"wasm_on_url"),wasm_on_status:o((r,n,i)=>{ve(Ir.ptr===r);let s=n-oc+sc.byteOffset;return Ir.onStatus(new OB(sc.buffer,s,i))||0},"wasm_on_status"),wasm_on_message_begin:o(r=>(ve(Ir.ptr===r),Ir.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:o((r,n,i)=>{ve(Ir.ptr===r);let s=n-oc+sc.byteOffset;return Ir.onHeaderField(new OB(sc.buffer,s,i))||0},"wasm_on_header_field"),wasm_on_header_value:o((r,n,i)=>{ve(Ir.ptr===r);let s=n-oc+sc.byteOffset;return Ir.onHeaderValue(new OB(sc.buffer,s,i))||0},"wasm_on_header_value"),wasm_on_headers_complete:o((r,n,i,s)=>(ve(Ir.ptr===r),Ir.onHeadersComplete(n,!!i,!!s)||0),"wasm_on_headers_complete"),wasm_on_body:o((r,n,i)=>{ve(Ir.ptr===r);let s=n-oc+sc.byteOffset;return Ir.onBody(new OB(sc.buffer,s,i))||0},"wasm_on_body"),wasm_on_message_complete:o(r=>(ve(Ir.ptr===r),Ir.onMessageComplete()||0),"wasm_on_message_complete")}})}o($qe,"lazyllhttp");var RO=null,DO=$qe();DO.catch();var Ir=null,sc=null,FB=0,oc=null,jqe=0,bC=1,YA=2|bC,qB=4|bC,QO=8|jqe,kO=class{static{o(this,"Parser")}constructor(e,r,{exports:n}){ve(Number.isFinite(e[NO])&&e[NO]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(vs.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[NO],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[zqe]}setTimeout(e,r){e!==this.timeoutValue||r&bC^this.timeoutType&bC?(this.timeout&&(vO.clearTimeout(this.timeout),this.timeout=null),e&&(r&bC?this.timeout=vO.setFastTimeout(mZ,e,new WeakRef(this)):(this.timeout=setTimeout(mZ,e,new WeakRef(this)),this.timeout.unref())),this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.timeoutType=r}resume(){this.socket.destroyed||!this.paused||(ve(this.ptr!=null),ve(Ir==null),this.llhttp.llhttp_resume(this.ptr),ve(this.timeoutType===qB),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||AZ),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){ve(this.ptr!=null),ve(Ir==null),ve(!this.paused);let{socket:r,llhttp:n}=this;e.length>FB&&(oc&&n.free(oc),FB=Math.ceil(e.length/4096)*4096,oc=n.malloc(FB)),new Uint8Array(n.memory.buffer,oc,FB).set(e);try{let i;try{sc=e,Ir=this,i=n.llhttp_execute(this.ptr,oc,e.length)}catch(a){throw a}finally{Ir=null,sc=null}let s=n.llhttp_get_error_pos(this.ptr)-oc;if(i!==vs.ERROR.OK){let a=e.subarray(s);if(i===vs.ERROR.PAUSED_UPGRADE)this.onUpgrade(a);else if(i===vs.ERROR.PAUSED)this.paused=!0,r.unshift(a);else throw this.createError(i,a)}}catch(i){Re.destroy(r,i)}}finish(){ve(Ir===null),ve(this.ptr!=null),ve(!this.paused);let{llhttp:e}=this,r;try{Ir=this,r=e.llhttp_finish(this.ptr)}finally{Ir=null}return r===vs.ERROR.OK?null:r===vs.ERROR.PAUSED||r===vs.ERROR.PAUSED_UPGRADE?(this.paused=!0,null):this.createError(r,AZ)}createError(e,r){let{llhttp:n,contentLength:i,bytesRead:s}=this;if(i&&s!==parseInt(i,10))return new dZ;let a=n.llhttp_get_error_reason(this.ptr),c="";if(a){let l=new Uint8Array(n.memory.buffer,a).indexOf(0);c="Response does not match the HTTP/1.1 protocol ("+Buffer.from(n.memory.buffer,a,l).toString()+")"}return new kqe(c,vs.ERROR[e],r)}destroy(){ve(this.ptr!=null),ve(Ir==null),this.llhttp.llhttp_free(this.ptr),this.ptr=null,this.timeout&&vO.clearTimeout(this.timeout),this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.paused=!1}onStatus(e){this.statusText=e.toString()}onMessageBegin(){let{socket:e,client:r}=this;if(e.destroyed)return-1;if(r[Xr]===0)return Re.destroy(e,new jA("bad response",Re.getSocketInfo(e))),-1;let n=r[pa][r[ho]];if(!n)return-1;n.onResponseStarted()}onHeaderField(e){let r=this.headers.length;(r&1)===0?this.headers.push(e):this.headers[r-1]=Buffer.concat([this.headers[r-1],e]),this.trackHeader(e.length)}onHeaderValue(e){let r=this.headers.length;(r&1)===1?(this.headers.push(e),r+=1):this.headers[r-1]=Buffer.concat([this.headers[r-1],e]);let n=this.headers[r-2];if(n.length===10){let i=Re.bufferToLowerCasedHeaderName(n);i==="keep-alive"?this.keepAlive+=e.toString():i==="connection"&&(this.connection+=e.toString())}else n.length===14&&Re.bufferToLowerCasedHeaderName(n)==="content-length"&&(this.contentLength+=e.toString());this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e,this.headersSize>=this.headersMaxSize&&Re.destroy(this.socket,new Dqe)}onUpgrade(e){let{upgrade:r,client:n,socket:i,headers:s,statusCode:a}=this;ve(r),ve(n[Xf]===i),ve(!i.destroyed),ve(!this.paused),ve((s.length&1)===0);let c=n[pa][n[ho]];ve(c),ve(c.upgrade||c.method==="CONNECT"),this.statusCode=null,this.statusText="",this.shouldKeepAlive=null,this.headers=[],this.headersSize=0,i.unshift(e),i[Jt].destroy(),i[Jt]=null,i[MB]=null,i[Ii]=null,Vqe(i),n[Xf]=null,n[wZ]=null,n[pa][n[ho]++]=null,n.emit("disconnect",n[CZ],[n],new WA("upgrade"));try{c.onUpgrade(a,s,i)}catch(l){Re.destroy(i,l)}n[Wl]()}onHeadersComplete(e,r,n){let{client:i,socket:s,headers:a,statusText:c}=this;if(s.destroyed)return-1;if(i[Xr]===0)return Re.destroy(s,new jA("bad response",Re.getSocketInfo(s))),-1;let l=i[pa][i[ho]];if(!l)return-1;if(ve(!this.upgrade),ve(this.statusCode<200),e===100)return Re.destroy(s,new jA("bad response",Re.getSocketInfo(s))),-1;if(r&&!l.upgrade)return Re.destroy(s,new jA("bad upgrade",Re.getSocketInfo(s))),-1;if(ve(this.timeoutType===YA),this.statusCode=e,this.shouldKeepAlive=n||l.method==="HEAD"&&!s[Ki]&&this.connection.toLowerCase()==="keep-alive",this.statusCode>=200){let d=l.bodyTimeout!=null?l.bodyTimeout:i[Gqe];this.setTimeout(d,qB)}else this.timeout&&this.timeout.refresh&&this.timeout.refresh();if(l.method==="CONNECT")return ve(i[Xr]===1),this.upgrade=!0,2;if(r)return ve(i[Xr]===1),this.upgrade=!0,2;if(ve((this.headers.length&1)===0),this.headers=[],this.headersSize=0,this.shouldKeepAlive&&i[UB]){let d=this.keepAlive?Re.parseKeepAliveTimeout(this.keepAlive):null;if(d!=null){let f=Math.min(d-i[Uqe],i[Mqe]);f<=0?s[Ki]=!0:i[GB]=f}else i[GB]=i[Oqe]}else s[Ki]=!0;let u=l.onHeaders(e,a,this.resume,c)===!1;return l.aborted?-1:l.method==="HEAD"||e<200?1:(s[wC]&&(s[wC]=!1,i[Wl]()),u?vs.ERROR.PAUSED:0)}onBody(e){let{client:r,socket:n,statusCode:i,maxResponseSize:s}=this;if(n.destroyed)return-1;let a=r[pa][r[ho]];if(ve(a),ve(this.timeoutType===qB),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),ve(i>=200),s>-1&&this.bytesRead+e.length>s)return Re.destroy(n,new Pqe),-1;if(this.bytesRead+=e.length,a.onData(e)===!1)return vs.ERROR.PAUSED}onMessageComplete(){let{client:e,socket:r,statusCode:n,upgrade:i,headers:s,contentLength:a,bytesRead:c,shouldKeepAlive:l}=this;if(r.destroyed&&(!n||l))return-1;if(i)return;ve(n>=100),ve((this.headers.length&1)===0);let u=e[pa][e[ho]];if(ve(u),this.statusCode=null,this.statusText="",this.bytesRead=0,this.contentLength="",this.keepAlive="",this.connection="",this.headers=[],this.headersSize=0,!(n<200)){if(u.method!=="HEAD"&&a&&c!==parseInt(a,10))return Re.destroy(r,new dZ),-1;if(u.onComplete(s),e[pa][e[ho]++]=null,r[PO]=!0,r[id])return ve(e[Xr]===0),Re.destroy(r,new WA("reset")),vs.ERROR.PAUSED;if(l){if(r[Ki]&&e[Xr]===0)return Re.destroy(r,new WA("reset")),vs.ERROR.PAUSED;e[UB]==null||e[UB]===1?setImmediate(()=>e[Wl]()):e[Wl]()}else return Re.destroy(r,new WA("reset")),vs.ERROR.PAUSED}}};function mZ(t){let{socket:e,timeoutType:r,client:n,paused:i}=t.deref();r===YA?(!e[id]||e.writableNeedDrain||n[Xr]>1)&&(ve(!i,"cannot be paused while waiting for headers"),Re.destroy(e,new Tqe)):r===qB?i||Re.destroy(e,new Qqe):r===QO&&(ve(n[Xr]===0&&n[GB]),Re.destroy(e,new WA("socket idle timeout")))}o(mZ,"onParserTimeout");async function Wqe(t,e){t[Xf]=e,RO||(RO=await DO,DO=null),e[CC]=!1,e[id]=!1,e[Ki]=!1,e[wC]=!1,e[Zf]=0,e[JA]=null,e[PO]=!1,e[Jt]=new kO(t,e,RO),LB(e,"error",function(n){ve(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID");let i=this[Jt];if(n.code==="ECONNRESET"&&i.statusCode&&!i.shouldKeepAlive){let s=i.finish();s&&(this[Ii]=s,this[MB][pZ](s));return}this[Ii]=n,this[MB][pZ](n)}),LB(e,"readable",function(){let n=this[Jt];n&&n.readMore()}),LB(e,"end",function(){let n=this[Jt];if(n.statusCode&&!n.shouldKeepAlive){let i=n.finish();i&&Re.destroy(this,i);return}Re.destroy(this,new jA("other side closed",Re.getSocketInfo(this)))}),LB(e,"close",function(){let n=this[MB],i=this[Jt];IZ(this),i&&(!this[Ii]&&i.statusCode&&!i.shouldKeepAlive&&(this[Ii]=i.finish()||this[Ii]),this[Jt].destroy(),this[Jt]=null);let s=this[Ii]||new jA("closed",Re.getSocketInfo(this));if(n[Xf]=null,n[wZ]=null,n.destroyed){ve(n[bZ]===0);let a=n[pa].splice(n[ho]);for(let c=0;c0&&s.code!=="UND_ERR_INFO"){let a=n[pa][n[ho]];n[pa][n[ho]++]=null,Re.errorRequest(n,a,s)}n[Fqe]=n[ho],ve(n[Xr]===0),n.emit("disconnect",n[CZ],[n],s),n[Wl]()});let r=!1;return e.on("close",()=>{r=!0}),{version:"h1",defaultPipelining:1,write(...n){return Xqe(t,...n)},resume(){Yqe(t)},destroy(n,i){r?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(n){return!!(e[id]||e[Ki]||e[wC]||e[Zf]===1||n&&(t[Xr]>0&&!n.idempotent||t[Xr]>0&&(n.upgrade||n.method==="CONNECT")||t[Xr]>0&&Re.bodyLength(n.body)!==0&&(Re.isStream(n.body)||Re.isAsyncIterable(n.body)||Re.isFormDataLike(n.body))))}}}o(Wqe,"connectH1");function IZ(t){t[JA]&&(clearImmediate(t[JA]),t[JA]=null),t[Zf]=0}o(IZ,"clearIdleSocketValidation");function Jqe(t,e){e[Zf]=1,e[JA]=setImmediate(()=>{e[JA]=null,e[Zf]=2,t[Xf]===e&&!e.destroyed&&t[Wl]()})}o(Jqe,"scheduleIdleSocketValidation");function Yqe(t){let e=t[Xf];if(e&&!e.destroyed){if(t[fZ]===0?!e[CC]&&e.unref&&(e.unref(),e[CC]=!0):e[CC]&&e.ref&&(e.ref(),e[CC]=!1),t[Xr]===0&&t[bZ]>0&&e[PO]){if(e[Zf]===0)return Jqe(t,e),e[Jt].readMore(),e.destroyed,void 0;if(e[Zf]===1)return e[Jt].readMore(),e.destroyed,void 0}if(t[Xr]===0&&(e[Jt].readMore(),e.destroyed))return;if(t[fZ]===0)e[Jt].timeoutType!==QO&&e[Jt].setTimeout(t[GB],QO);else if(t[Xr]>0&&e[Jt].statusCode<200&&e[Jt].timeoutType!==YA){let r=t[pa][t[ho]],n=r.headersTimeout!=null?r.headersTimeout:t[qqe];e[Jt].setTimeout(n,YA)}}}o(Yqe,"resumeH1");function Kqe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(Kqe,"shouldSendContentLength");function Xqe(t,e){let{method:r,path:n,host:i,upgrade:s,blocking:a,reset:c}=e,{body:l,headers:u,contentLength:d}=e,f=r==="PUT"||r==="POST"||r==="PATCH"||r==="QUERY"||r==="PROPFIND"||r==="PROPPATCH";if(Re.isFormDataLike(l)){_O||(_O=$A().extractBody);let[E,y]=_O(l);e.contentType==null&&u.push("content-type",y),l=E.stream,d=E.length}else if(Re.isBlobLike(l)&&e.contentType==null){let E=l.type;if(E){let y=`${E}`;if(!Re.isValidHeaderValue(y))return Re.errorRequest(t,e,new Rqe("invalid content-type header")),!1;u.push("content-type",y)}}l&&typeof l.read=="function"&&l.read(0);let h=Re.bodyLength(l);if(d=h??d,d===null&&(d=e.contentLength),d===0&&!f&&(d=null),Kqe(r)&&d>0&&e.contentLength!==null&&e.contentLength!==d){if(t[TO])return Re.errorRequest(t,e,new Kf),!1;process.emitWarning(new Kf)}let p=t[Xf];IZ(p);let m=o(E=>{e.aborted||e.completed||(Re.errorRequest(t,e,E||new EZ),Re.destroy(l),Re.destroy(p,new WA("aborted")))},"abort");try{e.onConnect(m)}catch(E){Re.errorRequest(t,e,E)}if(e.aborted)return!1;r==="HEAD"&&(p[Ki]=!0),(s||r==="CONNECT")&&(p[Ki]=!0),c!=null&&(p[Ki]=c),t[hZ]&&p[Hqe]++>=t[hZ]&&(p[Ki]=!0),a&&(p[wC]=!0);let A=`${r} ${n} HTTP/1.1\r `;if(typeof i=="string"?A+=`host: ${i}\r -`:A+=t[kqe],s?A+=`connection: upgrade\r +`:A+=t[Lqe],s?A+=`connection: upgrade\r upgrade: ${s}\r -`:t[MB]&&!p[Ki]?A+=`connection: keep-alive\r +`:t[UB]&&!p[Ki]?A+=`connection: keep-alive\r `:A+=`connection: close\r `,Array.isArray(u))for(let E=0;E{e.removeListener("error",p)}),!l){let m=new yZ;queueMicrotask(()=>p(m))}},"onClose"),p=o(function(m){if(!l){if(l=!0,ve(i.destroyed||i[nd]&&r[Xr]<=1),i.off("drain",f).off("error",p),e.removeListener("data",d).removeListener("end",p).removeListener("close",h),!m)try{u.end()}catch(A){m=A}u.destroy(m),m&&(m.code!=="UND_ERR_INFO"||m.message!=="reset")?_e.destroy(e,m):_e.destroy(e)}},"onFinished");e.on("data",d).on("end",p).on("error",p).on("close",h),e.resume&&e.resume(),i.on("drain",f).on("error",p),e.errorEmitted??e.errored?setImmediate(()=>p(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>p(null)),(e.closeEmitted??e.closed)&&setImmediate(h)}o(Yqe,"writeStream");function mZ(t,e,r,n,i,s,a,c){try{e?_e.isBuffer(e)&&(ve(s===e.byteLength,"buffer body must have content length"),i.cork(),i.write(`${a}content-length: ${s}\r +`}return uZ.sendHeaders.hasSubscribers&&uZ.sendHeaders.publish({request:e,headers:A,socket:p}),!l||h===0?gZ(m,null,t,e,p,d,A,f):Re.isBuffer(l)?gZ(m,l,t,e,p,d,A,f):Re.isBlobLike(l)?typeof l.stream=="function"?yZ(m,l.stream(),t,e,p,d,A,f):e3e(m,l,t,e,p,d,A,f):Re.isStream(l)?Zqe(m,l,t,e,p,d,A,f):Re.isIterable(l)?yZ(m,l,t,e,p,d,A,f):ve(!1),!0}o(Xqe,"writeH1");function Zqe(t,e,r,n,i,s,a,c){ve(s!==0||r[Xr]===0,"stream body cannot be pipelined");let l=!1,u=new HB({abort:t,socket:i,request:n,contentLength:s,client:r,expectsPayload:c,header:a}),d=o(function(m){if(!l)try{!u.write(m)&&this.pause&&this.pause()}catch(A){Re.destroy(this,A)}},"onData"),f=o(function(){l||e.resume&&e.resume()},"onDrain"),h=o(function(){if(queueMicrotask(()=>{e.removeListener("error",p)}),!l){let m=new EZ;queueMicrotask(()=>p(m))}},"onClose"),p=o(function(m){if(!l){if(l=!0,ve(i.destroyed||i[id]&&r[Xr]<=1),i.off("drain",f).off("error",p),e.removeListener("data",d).removeListener("end",p).removeListener("close",h),!m)try{u.end()}catch(A){m=A}u.destroy(m),m&&(m.code!=="UND_ERR_INFO"||m.message!=="reset")?Re.destroy(e,m):Re.destroy(e)}},"onFinished");e.on("data",d).on("end",p).on("error",p).on("close",h),e.resume&&e.resume(),i.on("drain",f).on("error",p),e.errorEmitted??e.errored?setImmediate(()=>p(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>p(null)),(e.closeEmitted??e.closed)&&setImmediate(h)}o(Zqe,"writeStream");function gZ(t,e,r,n,i,s,a,c){try{e?Re.isBuffer(e)&&(ve(s===e.byteLength,"buffer body must have content length"),i.cork(),i.write(`${a}content-length: ${s}\r \r `,"latin1"),i.write(e),i.uncork(),n.onBodySent(e),!c&&n.reset!==!1&&(i[Ki]=!0)):s===0?i.write(`${a}content-length: 0\r \r `,"latin1"):(ve(s===null,"no body must not have content length"),i.write(`${a}\r -`,"latin1")),n.onRequestSent(),r[jl]()}catch(l){t(l)}}o(mZ,"writeBuffer");async function Kqe(t,e,r,n,i,s,a,c){ve(s===e.size,"blob body must have content length");try{if(s!=null&&s!==e.size)throw new Yf;let l=Buffer.from(await e.arrayBuffer());i.cork(),i.write(`${a}content-length: ${s}\r +`,"latin1")),n.onRequestSent(),r[Wl]()}catch(l){t(l)}}o(gZ,"writeBuffer");async function e3e(t,e,r,n,i,s,a,c){ve(s===e.size,"blob body must have content length");try{if(s!=null&&s!==e.size)throw new Kf;let l=Buffer.from(await e.arrayBuffer());i.cork(),i.write(`${a}content-length: ${s}\r \r -`,"latin1"),i.write(l),i.uncork(),n.onBodySent(l),n.onRequestSent(),!c&&n.reset!==!1&&(i[Ki]=!0),r[jl]()}catch(l){t(l)}}o(Kqe,"writeBlob");async function gZ(t,e,r,n,i,s,a,c){ve(s!==0||r[Xr]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let h=l;l=null,h()}}o(u,"onDrain");let d=o(()=>new Promise((h,p)=>{ve(l===null),i[Ii]?p(i[Ii]):l=h}),"waitForDrain");i.on("close",u).on("drain",u);let f=new GB({abort:t,socket:i,request:n,contentLength:s,client:r,expectsPayload:c,header:a});try{for await(let h of e){if(i[Ii])throw i[Ii];f.write(h)||await d()}f.end()}catch(h){f.destroy(h)}finally{i.off("close",u).off("drain",u)}}o(gZ,"writeIterable");var GB=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:i,client:s,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=i,this.client=s,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[nd]=!0}write(e){let{socket:r,request:n,contentLength:i,client:s,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[Ii])throw r[Ii];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(i!==null&&a+u>i){if(s[_O])throw new Yf;process.emitWarning(new Yf)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[Ki]=!0),i===null?r.write(`${l}transfer-encoding: chunked\r +`,"latin1"),i.write(l),i.uncork(),n.onBodySent(l),n.onRequestSent(),!c&&n.reset!==!1&&(i[Ki]=!0),r[Wl]()}catch(l){t(l)}}o(e3e,"writeBlob");async function yZ(t,e,r,n,i,s,a,c){ve(s!==0||r[Xr]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let h=l;l=null,h()}}o(u,"onDrain");let d=o(()=>new Promise((h,p)=>{ve(l===null),i[Ii]?p(i[Ii]):l=h}),"waitForDrain");i.on("close",u).on("drain",u);let f=new HB({abort:t,socket:i,request:n,contentLength:s,client:r,expectsPayload:c,header:a});try{for await(let h of e){if(i[Ii])throw i[Ii];f.write(h)||await d()}f.end()}catch(h){f.destroy(h)}finally{i.off("close",u).off("drain",u)}}o(yZ,"writeIterable");var HB=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:i,client:s,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=i,this.client=s,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[id]=!0}write(e){let{socket:r,request:n,contentLength:i,client:s,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[Ii])throw r[Ii];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(i!==null&&a+u>i){if(s[TO])throw new Kf;process.emitWarning(new Kf)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[Ki]=!0),i===null?r.write(`${l}transfer-encoding: chunked\r `,"latin1"):r.write(`${l}content-length: ${i}\r \r `,"latin1")),i===null&&r.write(`\r ${u.toString(16)}\r -`,"latin1"),this.bytesWritten+=u;let d=r.write(e);return r.uncork(),n.onBodySent(e),d||r[Jt].timeout&&r[Jt].timeoutType===JA&&r[Jt].timeout.refresh&&r[Jt].timeout.refresh(),d}end(){let{socket:e,contentLength:r,client:n,bytesWritten:i,expectsPayload:s,header:a,request:c}=this;if(c.onRequestSent(),e[nd]=!1,e[Ii])throw e[Ii];if(!e.destroyed){if(i===0?s?e.write(`${a}content-length: 0\r +`,"latin1"),this.bytesWritten+=u;let d=r.write(e);return r.uncork(),n.onBodySent(e),d||r[Jt].timeout&&r[Jt].timeoutType===YA&&r[Jt].timeout.refresh&&r[Jt].timeout.refresh(),d}end(){let{socket:e,contentLength:r,client:n,bytesWritten:i,expectsPayload:s,header:a,request:c}=this;if(c.onRequestSent(),e[id]=!1,e[Ii])throw e[Ii];if(!e.destroyed){if(i===0?s?e.write(`${a}content-length: 0\r \r `,"latin1"):e.write(`${a}\r `,"latin1"):r===null&&e.write(`\r 0\r \r -`,"latin1"),r!==null&&i!==r){if(n[_O])throw new Yf;process.emitWarning(new Yf)}e[Jt].timeout&&e[Jt].timeoutType===JA&&e[Jt].timeout.refresh&&e[Jt].timeout.refresh(),n[jl]()}}destroy(e){let{socket:r,client:n,abort:i}=this;r[nd]=!1,e&&(ve(n[Xr]<=1,"pipeline should only contain this request"),i(e))}};IZ.exports=Vqe});var DZ=g((yGt,TZ)=>{"use strict";var po=require("node:assert"),{pipeline:Xqe}=require("node:stream"),dt=st(),{RequestContentLengthMismatchError:PO,RequestAbortedError:BZ,SocketError:wC,InformationalError:OO}=xt(),{kUrl:HB,kReset:VB,kClient:YA,kRunning:$B,kPending:Zqe,kQueue:id,kPendingIdx:LO,kRunningIdx:Aa,kError:ga,kSocket:Bn,kStrictContentLength:e3e,kOnError:FO,kMaxConcurrentStreams:_Z,kHTTP2Session:ma,kResume:sd,kSize:t3e,kHTTPContext:r3e}=cr(),Wl=Symbol("open streams"),xZ,vZ=!1,zB;try{zB=require("node:http2")}catch{zB={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:n3e,HTTP2_HEADER_METHOD:i3e,HTTP2_HEADER_PATH:s3e,HTTP2_HEADER_SCHEME:o3e,HTTP2_HEADER_CONTENT_LENGTH:a3e,HTTP2_HEADER_EXPECT:c3e,HTTP2_HEADER_STATUS:l3e}}=zB;function u3e(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let i of n)e.push(Buffer.from(r),Buffer.from(i));else e.push(Buffer.from(r),Buffer.from(n));return e}o(u3e,"parseH2Headers");async function d3e(t,e){t[Bn]=e,vZ||(vZ=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=zB.connect(t[HB],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[_Z]});r[Wl]=0,r[YA]=t,r[Bn]=e,dt.addListener(r,"error",h3e),dt.addListener(r,"frameError",p3e),dt.addListener(r,"end",A3e),dt.addListener(r,"goaway",m3e),dt.addListener(r,"close",function(){let{[YA]:i}=this,{[Bn]:s}=i,a=this[Bn][ga]||this[ga]||new wC("closed",dt.getSocketInfo(s));if(i[ma]=null,i.destroyed){po(i[Zqe]===0);let c=i[id].splice(i[Aa]);for(let l=0;l{n=!0}),{version:"h2",defaultPipelining:1/0,write(...i){return y3e(t,...i)},resume(){f3e(t)},destroy(i,s){n?queueMicrotask(s):e.destroy(i).on("close",s)},get destroyed(){return e.destroyed},busy(){return!1}}}o(d3e,"connectH2");function f3e(t){let e=t[Bn];e?.destroyed===!1&&(t[t3e]===0&&t[_Z]===0?(e.unref(),t[ma].unref()):(e.ref(),t[ma].ref()))}o(f3e,"resumeH2");function h3e(t){po(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Bn][ga]=t,this[YA][FO](t)}o(h3e,"onHttp2SessionError");function p3e(t,e,r){if(r===0){let n=new OO(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Bn][ga]=n,this[YA][FO](n)}}o(p3e,"onHttp2FrameError");function A3e(){let t=new wC("other side closed",dt.getSocketInfo(this[Bn]));this.destroy(t),dt.destroy(this[Bn],t)}o(A3e,"onHttp2SessionEnd");function m3e(t){let e=this[ga]||new wC(`HTTP/2: "GOAWAY" frame received with code ${t}`,dt.getSocketInfo(this)),r=this[YA];if(r[Bn]=null,r[r3e]=null,this[ma]!=null&&(this[ma].destroy(e),this[ma]=null),dt.destroy(this[Bn],e),r[Aa]{e.aborted||e.completed||(B=B||new BZ,dt.errorRequest(t,e,B),h!=null&&dt.destroy(h,B),dt.destroy(d,B),t[id][t[Aa]++]=null,t[sd]())},"abort");try{e.onConnect(A)}catch(B){dt.errorRequest(t,e,B)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),h=r.request(f,{endStream:!1,signal:l}),h.id&&!h.pending?(e.onUpgrade(null,null,h),++r[Wl],t[id][t[Aa]++]=null):h.once("ready",()=>{e.onUpgrade(null,null,h),++r[Wl],t[id][t[Aa]++]=null}),h.once("close",()=>{r[Wl]-=1,r[Wl]===0&&r.unref()}),!0;f[s3e]=i,f[o3e]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";d&&typeof d.read=="function"&&d.read(0);let y=dt.bodyLength(d);if(dt.isFormDataLike(d)){xZ??=VA().extractBody;let[B,P]=xZ(d);f["content-type"]=P,d=B.stream,y=B.length}if(y==null&&(y=e.contentLength),(y===0||!E)&&(y=null),g3e(n)&&y>0&&e.contentLength!=null&&e.contentLength!==y){if(t[e3e])return dt.errorRequest(t,e,new PO),!1;process.emitWarning(new PO)}y!=null&&(po(d,"no body must not have content length"),f[a3e]=`${y}`),r.ref();let C=n==="GET"||n==="HEAD"||d===null;return c?(f[c3e]="100-continue",h=r.request(f,{endStream:C,signal:l}),h.once("continue",w)):(h=r.request(f,{endStream:C,signal:l}),w()),++r[Wl],h.once("response",B=>{let{[l3e]:P,...U}=B;if(e.onResponseStarted(),e.aborted){let N=new BZ;dt.errorRequest(t,e,N),dt.destroy(h,N);return}e.onHeaders(Number(P),u3e(U),h.resume.bind(h),"")===!1&&h.pause(),h.on("data",N=>{e.onData(N)===!1&&h.pause()})}),h.once("end",()=>{(h.state?.state==null||h.state.state<6)&&e.onComplete([]),r[Wl]===0&&r.unref(),A(new OO("HTTP/2: stream half-closed (remote)")),t[id][t[Aa]++]=null,t[LO]=t[Aa],t[sd]()}),h.once("close",()=>{r[Wl]-=1,r[Wl]===0&&r.unref()}),h.once("error",function(B){A(B)}),h.once("frameError",(B,P)=>{A(new OO(`HTTP/2: "frameError" received - type ${B}, code ${P}`))}),!0;function w(){!d||y===0?NZ(A,h,null,t,e,t[Bn],y,E):dt.isBuffer(d)?NZ(A,h,d,t,e,t[Bn],y,E):dt.isBlobLike(d)?typeof d.stream=="function"?RZ(A,h,d.stream(),t,e,t[Bn],y,E):C3e(A,h,d,t,e,t[Bn],y,E):dt.isStream(d)?E3e(A,t[Bn],E,h,d,t,e,y):dt.isIterable(d)?RZ(A,h,d,t,e,t[Bn],y,E):po(!1)}o(w,"writeBodyH2")}o(y3e,"writeH2");function NZ(t,e,r,n,i,s,a,c){try{r!=null&&dt.isBuffer(r)&&(po(a===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),i.onBodySent(r)),c||(s[VB]=!0),i.onRequestSent(),n[sd]()}catch(l){t(l)}}o(NZ,"writeBuffer");function E3e(t,e,r,n,i,s,a,c){po(c!==0||s[$B]===0,"stream body cannot be pipelined");let l=Xqe(i,n,d=>{d?(dt.destroy(l,d),t(d)):(dt.removeAllListeners(l),a.onRequestSent(),r||(e[VB]=!0),s[sd]())});dt.addListener(l,"data",u);function u(d){a.onBodySent(d)}o(u,"onPipeData")}o(E3e,"writeStream");async function C3e(t,e,r,n,i,s,a,c){po(a===r.size,"blob body must have content length");try{if(a!=null&&a!==r.size)throw new PO;let l=Buffer.from(await r.arrayBuffer());e.cork(),e.write(l),e.uncork(),e.end(),i.onBodySent(l),i.onRequestSent(),c||(s[VB]=!0),n[sd]()}catch(l){t(l)}}o(C3e,"writeBlob");async function RZ(t,e,r,n,i,s,a,c){po(a!==0||n[$B]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let f=l;l=null,f()}}o(u,"onDrain");let d=o(()=>new Promise((f,h)=>{po(l===null),s[ga]?h(s[ga]):l=f}),"waitForDrain");e.on("close",u).on("drain",u);try{for await(let f of r){if(s[ga])throw s[ga];let h=e.write(f);i.onBodySent(f),h||await d()}e.end(),i.onRequestSent(),c||(s[VB]=!0),n[sd]()}catch(f){t(f)}finally{e.off("close",u).off("drain",u)}}o(RZ,"writeIterable");TZ.exports=d3e});var WB=g((CGt,PZ)=>{"use strict";var ac=st(),{kBodyUsed:IC}=cr(),UO=require("node:assert"),{InvalidArgumentError:b3e}=xt(),w3e=require("node:events"),I3e=[300,301,302,303,307,308],QZ=Symbol("body"),jB=class{static{o(this,"BodyAsyncIterable")}constructor(e){this[QZ]=e,this[IC]=!1}async*[Symbol.asyncIterator](){UO(!this[IC],"disturbed"),this[IC]=!0,yield*this[QZ]}},MO=class{static{o(this,"RedirectHandler")}constructor(e,r,n,i){if(r!=null&&(!Number.isInteger(r)||r<0))throw new b3e("maxRedirections must be a positive number");ac.validateHandler(i,n.method,n.upgrade),this.dispatch=e,this.location=null,this.abort=null,this.opts={...n,maxRedirections:0},this.maxRedirections=r,this.handler=i,this.history=[],this.redirectionLimitReached=!1,ac.isStream(this.opts.body)?(ac.bodyLength(this.opts.body)===0&&this.opts.body.on("data",function(){UO(!1)}),typeof this.opts.body.readableDidRead!="boolean"&&(this.opts.body[IC]=!1,w3e.prototype.on.call(this.opts.body,"data",function(){this[IC]=!0}))):this.opts.body&&typeof this.opts.body.pipeTo=="function"?this.opts.body=new jB(this.opts.body):this.opts.body&&typeof this.opts.body!="string"&&!ArrayBuffer.isView(this.opts.body)&&ac.isIterable(this.opts.body)&&(this.opts.body=new jB(this.opts.body))}onConnect(e){this.abort=e,this.handler.onConnect(e,{history:this.history})}onUpgrade(e,r,n){this.handler.onUpgrade(e,r,n)}onError(e){this.handler.onError(e)}onHeaders(e,r,n,i){if(this.location=this.history.length>=this.maxRedirections||ac.isDisturbed(this.opts.body)?null:S3e(e,r),this.opts.throwOnMaxRedirect&&this.history.length>=this.maxRedirections){this.request&&this.request.abort(new Error("max redirects")),this.redirectionLimitReached=!0,this.abort(new Error("max redirects"));return}if(this.opts.origin&&this.history.push(new URL(this.opts.path,this.opts.origin)),!this.location)return this.handler.onHeaders(e,r,n,i);let{origin:s,pathname:a,search:c}=ac.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin))),l=c?`${a}${c}`:a;this.opts.headers=B3e(this.opts.headers,e===303,this.opts.origin!==s),this.opts.path=l,this.opts.origin=s,this.opts.maxRedirections=0,this.opts.query=null,e===303&&this.opts.method!=="HEAD"&&(this.opts.method="GET",this.opts.body=null)}onData(e){if(!this.location)return this.handler.onData(e)}onComplete(e){this.location?(this.location=null,this.abort=null,this.dispatch(this.opts,this)):this.handler.onComplete(e)}onBodySent(e){this.handler.onBodySent&&this.handler.onBodySent(e)}};function S3e(t,e){if(I3e.indexOf(t)===-1)return null;for(let r=0;r{"use strict";var x3e=WB();function v3e({maxRedirections:t}){return e=>o(function(n,i){let{maxRedirections:s=t}=n;if(!s)return e(n,i);let a=new x3e(e,s,n,i);return n={...n,maxRedirections:0},e(n,a)},"Intercept")}o(v3e,"createRedirectInterceptor");OZ.exports=v3e});var ZA=g((SGt,$Z)=>{"use strict";var Jl=require("node:assert"),GZ=require("node:net"),N3e=require("node:http"),Zf=st(),{channels:KA}=DA(),R3e=$7(),_3e=OA(),{InvalidArgumentError:Lr,InformationalError:T3e,ClientDestroyedError:D3e}=xt(),Q3e=uC(),{kUrl:cc,kServerName:od,kClient:k3e,kBusy:qO,kConnect:P3e,kResuming:eh,kRunning:NC,kPending:RC,kSize:vC,kQueue:ya,kConnected:O3e,kConnecting:XA,kNeedDrain:cd,kKeepAliveDefaultTimeout:LZ,kHostHeader:L3e,kPendingIdx:Ea,kRunningIdx:Yl,kError:F3e,kPipelining:YB,kKeepAliveTimeoutValue:M3e,kMaxHeadersSize:U3e,kKeepAliveMaxTimeout:q3e,kKeepAliveTimeoutThreshold:G3e,kHeadersTimeout:H3e,kBodyTimeout:z3e,kStrictContentLength:V3e,kConnector:SC,kMaxRedirections:$3e,kMaxRequests:GO,kCounter:j3e,kClose:W3e,kDestroy:J3e,kDispatch:Y3e,kInterceptors:FZ,kLocalAddress:BC,kMaxResponseSize:K3e,kOnError:X3e,kHTTPContext:Fr,kMaxConcurrentStreams:Z3e,kResume:xC}=cr(),eGe=SZ(),tGe=DZ(),MZ=!1,ad=Symbol("kClosedResolve"),UZ=o(()=>{},"noop");function HZ(t){return t[YB]??t[Fr]?.defaultPipelining??1}o(HZ,"getPipelining");var HO=class extends _3e{static{o(this,"Client")}constructor(e,{interceptors:r,maxHeaderSize:n,headersTimeout:i,socketTimeout:s,requestTimeout:a,connectTimeout:c,bodyTimeout:l,idleTimeout:u,keepAlive:d,keepAliveTimeout:f,maxKeepAliveTimeout:h,keepAliveMaxTimeout:p,keepAliveTimeoutThreshold:m,socketPath:A,pipelining:E,tls:y,strictContentLength:C,maxCachedSessions:w,maxRedirections:B,connect:P,maxRequestsPerClient:U,localAddress:N,maxResponseSize:$,autoSelectFamily:Q,autoSelectFamilyAttemptTimeout:H,maxConcurrentStreams:V,allowH2:W,webSocket:ue}={}){if(super({webSocket:ue}),d!==void 0)throw new Lr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new Lr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(a!==void 0)throw new Lr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(u!==void 0)throw new Lr("unsupported idleTimeout, use keepAliveTimeout instead");if(h!==void 0)throw new Lr("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead");if(n!=null&&!Number.isFinite(n))throw new Lr("invalid maxHeaderSize");if(A!=null&&typeof A!="string")throw new Lr("invalid socketPath");if(c!=null&&(!Number.isFinite(c)||c<0))throw new Lr("invalid connectTimeout");if(f!=null&&(!Number.isFinite(f)||f<=0))throw new Lr("invalid keepAliveTimeout");if(p!=null&&(!Number.isFinite(p)||p<=0))throw new Lr("invalid keepAliveMaxTimeout");if(m!=null&&!Number.isFinite(m))throw new Lr("invalid keepAliveTimeoutThreshold");if(i!=null&&(!Number.isInteger(i)||i<0))throw new Lr("headersTimeout must be a positive integer or zero");if(l!=null&&(!Number.isInteger(l)||l<0))throw new Lr("bodyTimeout must be a positive integer or zero");if(P!=null&&typeof P!="function"&&typeof P!="object")throw new Lr("connect must be a function or an object");if(B!=null&&(!Number.isInteger(B)||B<0))throw new Lr("maxRedirections must be a positive number");if(U!=null&&(!Number.isInteger(U)||U<0))throw new Lr("maxRequestsPerClient must be a positive number");if(N!=null&&(typeof N!="string"||GZ.isIP(N)===0))throw new Lr("localAddress must be valid string IP address");if($!=null&&(!Number.isInteger($)||$<-1))throw new Lr("maxResponseSize must be a positive number");if(H!=null&&(!Number.isInteger(H)||H<-1))throw new Lr("autoSelectFamilyAttemptTimeout must be a positive number");if(W!=null&&typeof W!="boolean")throw new Lr("allowH2 must be a valid boolean value");if(V!=null&&(typeof V!="number"||V<1))throw new Lr("maxConcurrentStreams must be a positive integer, greater than 0");typeof P!="function"&&(P=Q3e({...y,maxCachedSessions:w,allowH2:W,socketPath:A,timeout:c,...Q?{autoSelectFamily:Q,autoSelectFamilyAttemptTimeout:H}:void 0,...P})),r?.Client&&Array.isArray(r.Client)?(this[FZ]=r.Client,MZ||(MZ=!0,process.emitWarning("Client.Options#interceptor is deprecated. Use Dispatcher#compose instead.",{code:"UNDICI-CLIENT-INTERCEPTOR-DEPRECATED"}))):this[FZ]=[rGe({maxRedirections:B})],this[cc]=Zf.parseOrigin(e),this[SC]=P,this[YB]=E??1,this[U3e]=n||N3e.maxHeaderSize,this[LZ]=f??4e3,this[q3e]=p??6e5,this[G3e]=m??2e3,this[M3e]=this[LZ],this[od]=null,this[BC]=N??null,this[eh]=0,this[cd]=0,this[L3e]=`host: ${this[cc].hostname}${this[cc].port?`:${this[cc].port}`:""}\r -`,this[z3e]=l??3e5,this[H3e]=i??3e5,this[V3e]=C??!0,this[$3e]=B,this[GO]=U,this[ad]=null,this[K3e]=$>-1?$:-1,this[Z3e]=V??100,this[Fr]=null,this[ya]=[],this[Yl]=0,this[Ea]=0,this[xC]=de=>zO(this,de),this[X3e]=de=>zZ(this,de)}get pipelining(){return this[YB]}set pipelining(e){this[YB]=e,this[xC](!0)}get[RC](){return this[ya].length-this[Ea]}get[NC](){return this[Ea]-this[Yl]}get[vC](){return this[ya].length-this[Yl]}get[O3e](){return!!this[Fr]&&!this[XA]&&!this[Fr].destroyed}get[qO](){return!!(this[Fr]?.busy(null)||this[vC]>=(HZ(this)||1)||this[RC]>0)}[P3e](e){VZ(this),this.once("connect",e)}[Y3e](e,r){let n=e.origin||this[cc].origin,i=new R3e(n,e,r);return this[ya].push(i),this[eh]||(Zf.bodyLength(i.body)==null&&Zf.isIterable(i.body)?(this[eh]=1,queueMicrotask(()=>zO(this))):this[xC](!0)),this[eh]&&this[cd]!==2&&this[qO]&&(this[cd]=2),this[cd]<2}async[W3e](){return new Promise(e=>{this[vC]?this[ad]=e:e(null)})}async[J3e](e){return new Promise(r=>{let n=this[ya].splice(this[Ea]);for(let s=0;s{this[ad]&&(this[ad](),this[ad]=null),r(null)},"callback");this[Fr]?(this[Fr].destroy(e,i),this[Fr]=null):queueMicrotask(i),this[xC]()})}},rGe=JB();function zZ(t,e){if(t[NC]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Jl(t[Ea]===t[Yl]);let r=t[ya].splice(t[Yl]);for(let n=0;n{t[SC]({host:e,hostname:r,protocol:n,port:i,servername:t[od],localAddress:t[BC]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){Zf.destroy(s.on("error",UZ),new D3e);return}Jl(s);try{t[Fr]=s.alpnProtocol==="h2"?await tGe(t,s):await eGe(t,s)}catch(a){throw s.destroy().on("error",UZ),a}t[XA]=!1,s[j3e]=0,s[GO]=t[GO],s[k3e]=t,s[F3e]=null,KA.connected.hasSubscribers&&KA.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:i,version:t[Fr]?.version,servername:t[od],localAddress:t[BC]},connector:t[SC],socket:s}),t.emit("connect",t[cc],[t])}catch(s){if(t.destroyed)return;if(t[XA]=!1,KA.connectError.hasSubscribers&&KA.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:i,version:t[Fr]?.version,servername:t[od],localAddress:t[BC]},connector:t[SC],error:s}),s.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Jl(t[NC]===0);t[RC]>0&&t[ya][t[Ea]].servername===t[od];){let a=t[ya][t[Ea]++];Zf.errorRequest(t,a,s)}else zZ(t,s);t.emit("connectionError",t[cc],[t],s)}t[xC]()}o(VZ,"connect");function qZ(t){t[cd]=0,t.emit("drain",t[cc],[t])}o(qZ,"emitDrain");function zO(t,e){t[eh]!==2&&(t[eh]=2,nGe(t,e),t[eh]=0,t[Yl]>256&&(t[ya].splice(0,t[Yl]),t[Ea]-=t[Yl],t[Yl]=0))}o(zO,"resume");function nGe(t,e){for(;;){if(t.destroyed){Jl(t[RC]===0);return}if(t[ad]&&!t[vC]){t[ad](),t[ad]=null;return}if(t[Fr]&&t[Fr].resume(),t[qO])t[cd]=2;else if(t[cd]===2){e?(t[cd]=1,queueMicrotask(()=>qZ(t))):qZ(t);continue}if(t[RC]===0||t[NC]>=(HZ(t)||1))return;let r=t[ya][t[Ea]];if(t[cc].protocol==="https:"&&t[od]!==r.servername){if(t[NC]>0)return;t[od]=r.servername,t[Fr]?.destroy(new T3e("servername changed"),()=>{t[Fr]=null,zO(t)})}if(t[XA])return;if(!t[Fr]){VZ(t);return}if(t[Fr].destroyed||t[Fr].busy(r))return;!r.aborted&&t[Fr].write(r)?t[Ea]++:t[ya].splice(t[Ea],1)}}o(nGe,"_resume");$Z.exports=HO});var VO=g((vGt,jZ)=>{"use strict";var KB=class{static{o(this,"FixedCircularBuffer")}constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};jZ.exports=class{static{o(this,"FixedQueue")}constructor(){this.head=this.tail=new KB}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new KB),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var JZ=g((RGt,WZ)=>{var{kFree:iGe,kConnected:sGe,kPending:oGe,kQueued:aGe,kRunning:cGe,kSize:lGe}=cr(),th=Symbol("pool"),$O=class{static{o(this,"PoolStats")}constructor(e){this[th]=e}get connected(){return this[th][sGe]}get free(){return this[th][iGe]}get pending(){return this[th][oGe]}get queued(){return this[th][aGe]}get running(){return this[th][cGe]}get size(){return this[th][lGe]}};WZ.exports=$O});var XO=g((TGt,see)=>{"use strict";var uGe=OA(),dGe=VO(),{kConnected:jO,kSize:YZ,kRunning:KZ,kPending:XZ,kQueued:_C,kBusy:fGe,kFree:hGe,kUrl:pGe,kClose:AGe,kDestroy:mGe,kDispatch:gGe}=cr(),yGe=JZ(),Xi=Symbol("clients"),Si=Symbol("needDrain"),TC=Symbol("queue"),WO=Symbol("closed resolve"),JO=Symbol("onDrain"),ZZ=Symbol("onConnect"),eee=Symbol("onDisconnect"),tee=Symbol("onConnectionError"),YO=Symbol("get dispatcher"),nee=Symbol("add client"),iee=Symbol("remove client"),ree=Symbol("stats"),KO=class extends uGe{static{o(this,"PoolBase")}constructor(e){super(e),this[TC]=new dGe,this[Xi]=[],this[_C]=0;let r=this;this[JO]=o(function(i,s){let a=r[TC],c=!1;for(;!c;){let l=a.shift();if(!l)break;r[_C]--,c=!this.dispatch(l.opts,l.handler)}this[Si]=c,!this[Si]&&r[Si]&&(r[Si]=!1,r.emit("drain",i,[r,...s])),r[WO]&&a.isEmpty()&&Promise.all(r[Xi].map(l=>l.close())).then(r[WO])},"onDrain"),this[ZZ]=(n,i)=>{r.emit("connect",n,[r,...i])},this[eee]=(n,i,s)=>{r.emit("disconnect",n,[r,...i],s)},this[tee]=(n,i,s)=>{r.emit("connectionError",n,[r,...i],s)},this[ree]=new yGe(this)}get[fGe](){return this[Si]}get[jO](){return this[Xi].filter(e=>e[jO]).length}get[hGe](){return this[Xi].filter(e=>e[jO]&&!e[Si]).length}get[XZ](){let e=this[_C];for(let{[XZ]:r}of this[Xi])e+=r;return e}get[KZ](){let e=0;for(let{[KZ]:r}of this[Xi])e+=r;return e}get[YZ](){let e=this[_C];for(let{[YZ]:r}of this[Xi])e+=r;return e}get stats(){return this[ree]}async[AGe](){this[TC].isEmpty()?await Promise.all(this[Xi].map(e=>e.close())):await new Promise(e=>{this[WO]=e})}async[mGe](e){for(;;){let r=this[TC].shift();if(!r)break;r.handler.onError(e)}await Promise.all(this[Xi].map(r=>r.destroy(e)))}[gGe](e,r){let n=this[YO]();return n?n.dispatch(e,r)||(n[Si]=!0,this[Si]=!this[YO]()):(this[Si]=!0,this[TC].push({opts:e,handler:r}),this[_C]++),!this[Si]}[nee](e){return e.on("drain",this[JO]).on("connect",this[ZZ]).on("disconnect",this[eee]).on("connectionError",this[tee]),this[Xi].push(e),this[Si]&&queueMicrotask(()=>{this[Si]&&this[JO](e[pGe],[this,e])}),this}[iee](e){e.close(()=>{let r=this[Xi].indexOf(e);r!==-1&&this[Xi].splice(r,1)}),this[Si]=this[Xi].some(r=>!r[Si]&&r.closed!==!0&&r.destroyed!==!0)}};see.exports={PoolBase:KO,kClients:Xi,kNeedDrain:Si,kAddClient:nee,kRemoveClient:iee,kGetDispatcher:YO}});var em=g((QGt,lee)=>{"use strict";var{PoolBase:EGe,kClients:XB,kNeedDrain:CGe,kAddClient:bGe,kGetDispatcher:wGe}=XO(),IGe=ZA(),{InvalidArgumentError:ZO}=xt(),oee=st(),{kUrl:aee,kInterceptors:SGe}=cr(),BGe=uC(),eL=Symbol("options"),tL=Symbol("connections"),cee=Symbol("factory");function xGe(t,e){return new IGe(t,e)}o(xGe,"defaultFactory");var rL=class extends EGe{static{o(this,"Pool")}constructor(e,{connections:r,factory:n=xGe,connect:i,connectTimeout:s,tls:a,maxCachedSessions:c,socketPath:l,autoSelectFamily:u,autoSelectFamilyAttemptTimeout:d,allowH2:f,...h}={}){if(r!=null&&(!Number.isFinite(r)||r<0))throw new ZO("invalid connections");if(typeof n!="function")throw new ZO("factory must be a function.");if(i!=null&&typeof i!="function"&&typeof i!="object")throw new ZO("connect must be a function or an object");typeof i!="function"&&(i=BGe({...a,maxCachedSessions:c,allowH2:f,socketPath:l,timeout:s,...u?{autoSelectFamily:u,autoSelectFamilyAttemptTimeout:d}:void 0,...i})),super(h),this[SGe]=h.interceptors?.Pool&&Array.isArray(h.interceptors.Pool)?h.interceptors.Pool:[],this[tL]=r||null,this[aee]=oee.parseOrigin(e),this[eL]={...oee.deepClone(h),connect:i,allowH2:f},this[eL].interceptors=h.interceptors?{...h.interceptors}:void 0,this[cee]=n,this.on("connectionError",(p,m,A)=>{for(let E of m){let y=this[XB].indexOf(E);y!==-1&&this[XB].splice(y,1)}})}[wGe](){for(let e of this[XB])if(!e[CGe])return e;if(!this[tL]||this[XB].length{"use strict";var{BalancedPoolMissingUpstreamError:vGe,InvalidArgumentError:NGe}=xt(),{PoolBase:RGe,kClients:ri,kNeedDrain:DC,kAddClient:_Ge,kRemoveClient:TGe,kGetDispatcher:DGe}=XO(),QGe=em(),{kUrl:nL,kInterceptors:kGe}=cr(),{parseOrigin:uee}=st(),dee=Symbol("factory"),ZB=Symbol("options"),fee=Symbol("kGreatestCommonDivisor"),rh=Symbol("kCurrentWeight"),nh=Symbol("kIndex"),Ao=Symbol("kWeight"),ex=Symbol("kMaxWeightPerServer"),tx=Symbol("kErrorPenalty");function PGe(t,e){if(t===0)return e;for(;e!==0;){let r=e;e=t%e,t=r}return t}o(PGe,"getGreatestCommonDivisor");function OGe(t,e){return new QGe(t,e)}o(OGe,"defaultFactory");var iL=class extends RGe{static{o(this,"BalancedPool")}constructor(e=[],{factory:r=OGe,...n}={}){if(super(),this[ZB]=n,this[nh]=-1,this[rh]=0,this[ex]=this[ZB].maxWeightPerServer||100,this[tx]=this[ZB].errorPenalty||15,Array.isArray(e)||(e=[e]),typeof r!="function")throw new NGe("factory must be a function.");this[kGe]=n.interceptors?.BalancedPool&&Array.isArray(n.interceptors.BalancedPool)?n.interceptors.BalancedPool:[],this[dee]=r;for(let i of e)this.addUpstream(i);this._updateBalancedPoolStats()}addUpstream(e){let r=uee(e).origin;if(this[ri].find(i=>i[nL].origin===r&&i.closed!==!0&&i.destroyed!==!0))return this;let n=this[dee](r,Object.assign({},this[ZB]));this[_Ge](n),n.on("connect",()=>{n[Ao]=Math.min(this[ex],n[Ao]+this[tx])}),n.on("connectionError",()=>{n[Ao]=Math.max(1,n[Ao]-this[tx]),this._updateBalancedPoolStats()}),n.on("disconnect",(...i)=>{let s=i[2];s&&s.code==="UND_ERR_SOCKET"&&(n[Ao]=Math.max(1,n[Ao]-this[tx]),this._updateBalancedPoolStats())});for(let i of this[ri])i[Ao]=this[ex];return this._updateBalancedPoolStats(),this}_updateBalancedPoolStats(){let e=0;for(let r=0;ri[nL].origin===r&&i.closed!==!0&&i.destroyed!==!0);return n&&this[TGe](n),this}get upstreams(){return this[ri].filter(e=>e.closed!==!0&&e.destroyed!==!0).map(e=>e[nL].origin)}[DGe](){if(this[ri].length===0)throw new vGe;if(!this[ri].find(s=>!s[DC]&&s.closed!==!0&&s.destroyed!==!0)||this[ri].map(s=>s[DC]).reduce((s,a)=>s&&a,!0))return;let n=0,i=this[ri].findIndex(s=>!s[DC]);for(;n++this[ri][i][Ao]&&!s[DC]&&(i=this[nh]),this[nh]===0&&(this[rh]=this[rh]-this[fee],this[rh]<=0&&(this[rh]=this[ex])),s[Ao]>=this[rh]&&!s[DC])return s}return this[rh]=this[ri][i][Ao],this[nh]=i,this[ri][i]}};hee.exports=iL});var tm=g((LGt,bee)=>{"use strict";var{InvalidArgumentError:rx}=xt(),{kClients:ld,kRunning:Aee,kClose:LGe,kDestroy:FGe,kDispatch:MGe,kInterceptors:UGe}=cr(),qGe=OA(),GGe=em(),HGe=ZA(),zGe=st(),VGe=JB(),mee=Symbol("onConnect"),gee=Symbol("onDisconnect"),yee=Symbol("onConnectionError"),$Ge=Symbol("maxRedirections"),Eee=Symbol("onDrain"),Cee=Symbol("factory"),sL=Symbol("options");function jGe(t,e){return e&&e.connections===1?new HGe(t,e):new GGe(t,e)}o(jGe,"defaultFactory");var oL=class extends qGe{static{o(this,"Agent")}constructor({factory:e=jGe,maxRedirections:r=0,connect:n,...i}={}){if(typeof e!="function")throw new rx("factory must be a function.");if(n!=null&&typeof n!="function"&&typeof n!="object")throw new rx("connect must be a function or an object");if(!Number.isInteger(r)||r<0)throw new rx("maxRedirections must be a positive number");super(i),n&&typeof n!="function"&&(n={...n}),this[UGe]=i.interceptors?.Agent&&Array.isArray(i.interceptors.Agent)?i.interceptors.Agent:[VGe({maxRedirections:r})],this[sL]={...zGe.deepClone(i),connect:n},this[sL].interceptors=i.interceptors?{...i.interceptors}:void 0,this[$Ge]=r,this[Cee]=e,this[ld]=new Map,this[Eee]=(s,a)=>{this.emit("drain",s,[this,...a])},this[mee]=(s,a)=>{this.emit("connect",s,[this,...a])},this[gee]=(s,a,c)=>{this.emit("disconnect",s,[this,...a],c)},this[yee]=(s,a,c)=>{this.emit("connectionError",s,[this,...a],c)}}get[Aee](){let e=0;for(let r of this[ld].values())e+=r[Aee];return e}[MGe](e,r){let n;if(e.origin&&(typeof e.origin=="string"||e.origin instanceof URL))n=String(e.origin);else throw new rx("opts.origin must be a non-empty string or URL.");let i=this[ld].get(n);return i||(i=this[Cee](e.origin,this[sL]).on("drain",this[Eee]).on("connect",this[mee]).on("disconnect",this[gee]).on("connectionError",this[yee]),this[ld].set(n,i)),i.dispatch(e,r)}async[LGe](){let e=[];for(let r of this[ld].values())e.push(r.close());this[ld].clear(),await Promise.all(e)}async[FGe](e){let r=[];for(let n of this[ld].values())r.push(n.destroy(e));this[ld].clear(),await Promise.all(r)}};bee.exports=oL});var dL=g((MGt,Dee)=>{"use strict";var{kProxy:aL,kClose:vee,kDestroy:Nee,kDispatch:wee,kInterceptors:WGe}=cr(),{URL:ih}=require("node:url"),JGe=tm(),Ree=em(),_ee=OA(),{InvalidArgumentError:rm,RequestAbortedError:YGe,SecureProxyConnectionError:KGe}=xt(),Iee=uC(),Tee=ZA(),nx=Symbol("proxy agent"),ix=Symbol("proxy client"),ud=Symbol("proxy headers"),cL=Symbol("request tls settings"),See=Symbol("proxy tls settings"),Bee=Symbol("connect endpoint function"),xee=Symbol("tunnel proxy");function XGe(t){return t==="https:"?443:80}o(XGe,"defaultProtocolPort");function ZGe(t,e){return new Ree(t,e)}o(ZGe,"defaultFactory");var eHe=o(()=>{},"noop");function tHe(t,e){return e.connections===1?new Tee(t,e):new Ree(t,e)}o(tHe,"defaultAgentFactory");var lL=class extends _ee{static{o(this,"Http1ProxyWrapper")}#e;constructor(e,{headers:r={},connect:n,factory:i}){if(super(),!e)throw new rm("Proxy URL is mandatory");this[ud]=r,i?this.#e=i(e,{connect:n}):this.#e=new Tee(e,{connect:n})}[wee](e,r){let n=r.onHeaders;r.onHeaders=function(c,l,u){if(c===407){typeof r.onError=="function"&&r.onError(new rm("Proxy Authentication Required (407)"));return}n&&n.call(this,c,l,u)};let{origin:i,path:s="/",headers:a={}}=e;if(e.path=i+s,!("host"in a)&&!("Host"in a)){let{host:c}=new ih(i);a.host=c}return e.headers={...this[ud],...a},this.#e[wee](e,r)}async[vee](){return this.#e.close()}async[Nee](e){return this.#e.destroy(e)}},uL=class extends _ee{static{o(this,"ProxyAgent")}constructor(e){if(super(),!e||typeof e=="object"&&!(e instanceof ih)&&!e.uri)throw new rm("Proxy uri is mandatory");let{clientFactory:r=ZGe}=e;if(typeof r!="function")throw new rm("Proxy opts.clientFactory must be a function.");let{proxyTunnel:n=!0}=e,i=this.#e(e),{href:s,origin:a,port:c,protocol:l,username:u,password:d,hostname:f}=i;if(this[aL]={uri:s,protocol:l},this[WGe]=e.interceptors?.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],this[cL]=e.requestTls,this[See]=e.proxyTls,this[ud]=e.headers||{},this[xee]=n,e.auth&&e.token)throw new rm("opts.auth cannot be used in combination with opts.token");e.auth?this[ud]["proxy-authorization"]=`Basic ${e.auth}`:e.token?this[ud]["proxy-authorization"]=e.token:u&&d&&(this[ud]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(u)}:${decodeURIComponent(d)}`).toString("base64")}`);let h=Iee({...e.proxyTls});this[Bee]=Iee({...e.requestTls});let p=e.factory||tHe,m=o((A,E)=>{let{protocol:y}=new ih(A);return!this[xee]&&y==="http:"&&this[aL].protocol==="http:"?new lL(this[aL].uri,{headers:this[ud],connect:h,factory:p}):p(A,E)},"factory");this[ix]=r(i,{connect:h}),this[nx]=new JGe({...e,factory:m,connect:o(async(A,E)=>{let y=A.host;A.port||(y+=`:${XGe(A.protocol)}`);try{let{socket:C,statusCode:w}=await this[ix].connect({origin:a,port:c,path:y,signal:A.signal,headers:{...this[ud],host:A.host},servername:this[See]?.servername||f});if(w!==200&&(C.on("error",eHe).destroy(),E(new YGe(`Proxy response (${w}) !== 200 when HTTP Tunneling`))),A.protocol!=="https:"){E(null,C);return}let B;this[cL]?B=this[cL].servername:B=A.servername,this[Bee]({...A,servername:B,httpSocket:C},E)}catch(C){C.code==="ERR_TLS_CERT_ALTNAME_INVALID"?E(new KGe(C)):E(C)}},"connect")})}dispatch(e,r){let n=rHe(e.headers);if(nHe(n),n&&!("host"in n)&&!("Host"in n)){let{host:i}=new ih(e.origin);n.host=i}return this[nx].dispatch({...e,headers:n},r)}#e(e){return typeof e=="string"?new ih(e):e instanceof ih?e:new ih(e.uri)}async[vee](){await this[nx].close(),await this[ix].close()}async[Nee](){await this[nx].destroy(),await this[ix].destroy()}};function rHe(t){if(Array.isArray(t)){let e={};for(let r=0;rr.toLowerCase()==="proxy-authorization"))throw new rm("Proxy-Authorization should be sent in ProxyAgent constructor")}o(nHe,"throwIfProxyAuthIsSent");Dee.exports=uL});var Fee=g((qGt,Lee)=>{"use strict";var iHe=OA(),{kClose:sHe,kDestroy:oHe,kClosed:Qee,kDestroyed:kee,kDispatch:aHe,kNoProxyAgent:QC,kHttpProxyAgent:dd,kHttpsProxyAgent:sh}=cr(),Pee=dL(),cHe=tm(),lHe={"http:":80,"https:":443},Oee=!1,fL=class extends iHe{static{o(this,"EnvHttpProxyAgent")}#e=null;#r=null;#n=null;constructor(e={}){super(),this.#n=e,Oee||(Oee=!0,process.emitWarning("EnvHttpProxyAgent is experimental, expect them to change at any time.",{code:"UNDICI-EHPA"}));let{httpProxy:r,httpsProxy:n,noProxy:i,...s}=e;this[QC]=new cHe(s);let a=r??process.env.http_proxy??process.env.HTTP_PROXY;a?this[dd]=new Pee({...s,uri:a}):this[dd]=this[QC];let c=n??process.env.https_proxy??process.env.HTTPS_PROXY;c?this[sh]=new Pee({...s,uri:c}):this[sh]=this[dd],this.#s()}[aHe](e,r){let n=new URL(e.origin);return this.#t(n).dispatch(e,r)}async[sHe](){await this[QC].close(),this[dd][Qee]||await this[dd].close(),this[sh][Qee]||await this[sh].close()}async[oHe](e){await this[QC].destroy(e),this[dd][kee]||await this[dd].destroy(e),this[sh][kee]||await this[sh].destroy(e)}#t(e){let{protocol:r,host:n,port:i}=e;return n=n.replace(/:\d*$/,"").toLowerCase(),i=Number.parseInt(i,10)||lHe[r]||0,this.#i(n,i)?r==="https:"?this[sh]:this[dd]:this[QC]}#i(e,r){if(this.#l&&this.#s(),this.#r.length===0)return!0;if(this.#e==="*")return!1;for(let n=0;n{"use strict";var kC=require("node:assert"),{kRetryHandlerDefaultRetry:Mee}=cr(),{RequestRetryError:oh}=xt(),{isDisturbed:Uee,parseHeaders:uHe,parseRangeHeader:qee,wrapRequestBody:dHe}=st();function fHe(t){let e=Date.now();return new Date(t).getTime()-e}o(fHe,"calculateRetryAfterHeader");function Gee(t,e,r,n){let i=t["content-length"];if(i==null||!Number.isFinite(e.start)||!Number.isFinite(e.end))return null;let s=Number(i),a=e.end-e.start+1;return!Number.isFinite(s)||s!==a?new oh("Content-Length mismatch",r,{headers:t,data:{count:n}}):null}o(Gee,"validatePartialResponseContentLength");var hL=class t{static{o(this,"RetryHandler")}constructor(e,r){let{retryOptions:n,...i}=e,{retry:s,maxRetries:a,maxTimeout:c,minTimeout:l,timeoutFactor:u,methods:d,errorCodes:f,retryAfter:h,statusCodes:p}=n??{};this.dispatch=r.dispatch,this.handler=r.handler,this.opts={...i,body:dHe(e.body)},this.abort=null,this.aborted=!1,this.retryOpts={retry:s??t[Mee],retryAfter:h??!0,maxTimeout:c??30*1e3,minTimeout:l??500,timeoutFactor:u??2,maxRetries:a??5,methods:d??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:p??[500,502,503,504,429],errorCodes:f??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE","UND_ERR_SOCKET"]},this.retryCount=0,this.retryCountCheckpoint=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.headersSent=!1,this.handler.onConnect(m=>{this.aborted=!0,this.abort?this.abort(m):this.reason=m})}checkpointResponseEnd(e,r){if(this.end==null&&this.opts.method!=="HEAD"){let n=e["content-length"];this.end=n!=null?Number(n)-1:null,kC(this.end==null||Number.isFinite(this.end),"invalid content-length")}this.resume=this.end!=null?r:null}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent()}onUpgrade(e,r,n){this.handler.onUpgrade&&this.handler.onUpgrade(e,r,n)}onConnect(e){this.aborted?e(this.reason):this.abort=e}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[Mee](e,{state:r,opts:n},i){let{statusCode:s,code:a,headers:c}=e,{method:l,retryOptions:u}=n,{maxRetries:d,minTimeout:f,maxTimeout:h,timeoutFactor:p,statusCodes:m,errorCodes:A,methods:E}=u,{counter:y}=r;if(a&&a!=="UND_ERR_REQ_RETRY"&&!A.includes(a)){i(e);return}if(Array.isArray(E)&&!E.includes(l)){i(e);return}if(s!=null&&Array.isArray(m)&&!m.includes(s)){i(e);return}if(y>d){i(e);return}let C=c?.["retry-after"];C&&(C=Number(C),C=Number.isNaN(C)?fHe(C):C*1e3);let w=C>0?Math.min(C,h):Math.min(f*p**(y-1),h);setTimeout(()=>i(null),w)}onHeaders(e,r,n,i){let s=uHe(r);if(this.retryCount+=1,e>=300)return this.retryOpts.statusCodes.includes(e)===!1?(this.headersSent=!0,this.checkpointResponseEnd(s,n),this.handler.onHeaders(e,r,n,i)):(this.abort(new oh("Request failed",e,{headers:s,data:{count:this.retryCount}})),!1);if(this.resume!=null){if(this.resume=null,e!==206&&(this.start>0||e!==200))return this.abort(new oh("server does not support the range header and the payload was partially consumed",e,{headers:s,data:{count:this.retryCount}})),!1;let c=qee(s["content-range"]);if(!c)return this.abort(new oh("Content-Range mismatch",e,{headers:s,data:{count:this.retryCount}})),!1;if(this.etag!=null&&this.etag!==s.etag)return this.abort(new oh("ETag mismatch",e,{headers:s,data:{count:this.retryCount}})),!1;let l=Gee(s,c,e,this.retryCount);if(l!=null)return this.abort(l),!1;let{start:u,size:d,end:f=d-1}=c;return this.start!==u||this.end!=null&&this.end!==f?(this.abort(new oh("Content-Range mismatch",e,{headers:s,data:{count:this.retryCount}})),!1):(this.resume=n,!0)}if(this.end==null){if(e===206){let c=qee(s["content-range"]);if(c==null)return this.headersSent=!0,this.handler.onHeaders(e,r,n,i);let l=Gee(s,c,e,this.retryCount);if(l!=null)return this.abort(l),!1;let{start:u,size:d,end:f=d-1}=c;kC(u!=null&&Number.isFinite(u),"content-range mismatch"),kC(f!=null&&Number.isFinite(f),"invalid content-length"),this.start=u,this.end=f}if(this.end==null){let c=s["content-length"];this.end=c!=null?Number(c)-1:null}return kC(Number.isFinite(this.start)),kC(this.end==null||Number.isFinite(this.end),"invalid content-length"),this.resume=n,this.headersSent=!0,this.etag=s.etag!=null?s.etag:null,this.etag!=null&&this.etag.startsWith("W/")&&(this.etag=null),this.handler.onHeaders(e,r,n,i)}let a=new oh("Request failed",e,{headers:s,data:{count:this.retryCount}});return this.abort(a),!1}onData(e){return this.start+=e.length,this.handler.onData(e)}onComplete(e){return this.retryCount=0,this.handler.onComplete(e)}onError(e){if(this.aborted||Uee(this.opts.body)||this.headersSent&&this.resume==null)return this.handler.onError(e);this.retryCount-this.retryCountCheckpoint>0?this.retryCount=this.retryCountCheckpoint+(this.retryCount-this.retryCountCheckpoint):this.retryCount+=1,this.retryOpts.retry(e,{state:{counter:this.retryCount},opts:{retryOptions:this.retryOpts,...this.opts}},r.bind(this));function r(n){if(n!=null||this.aborted||Uee(this.opts.body))return this.handler.onError(n);if(this.start!==0){let i={range:`bytes=${this.start}-${this.end??""}`};this.etag!=null&&(i["if-match"]=this.etag),this.opts={...this.opts,headers:{...this.opts.headers,...i}}}try{this.retryCountCheckpoint=this.retryCount,this.dispatch(this.opts,this)}catch(i){this.handler.onError(i)}}o(r,"onRetry")}};Hee.exports=hL});var Vee=g((VGt,zee)=>{"use strict";var hHe=cC(),pHe=sx(),pL=class extends hHe{static{o(this,"RetryAgent")}#e=null;#r=null;constructor(e,r={}){super(r),this.#e=e,this.#r=r}dispatch(e,r){let n=new pHe({...e,retryOptions:this.#r},{dispatch:this.#e.dispatch.bind(this.#e),handler:r});return this.#e.dispatch(e,n)}close(){return this.#e.close()}destroy(){return this.#e.destroy()}};zee.exports=pL});var CL=g((jGt,ete)=>{"use strict";var Yee=require("node:assert"),{Readable:AHe}=require("node:stream"),{RequestAbortedError:Kee,NotSupportedError:mHe,InvalidArgumentError:gHe,AbortError:AL}=xt(),Xee=st(),{ReadableStreamFrom:yHe}=st(),Ns=Symbol("kConsume"),PC=Symbol("kReading"),fd=Symbol("kBody"),$ee=Symbol("kAbort"),Zee=Symbol("kContentType"),jee=Symbol("kContentLength"),EHe=o(()=>{},"noop"),mL=class extends AHe{static{o(this,"BodyReadable")}constructor({resume:e,abort:r,contentType:n="",contentLength:i,highWaterMark:s=64*1024}){super({autoDestroy:!0,read:e,highWaterMark:s}),this._readableState.dataEmitted=!1,this[$ee]=r,this[Ns]=null,this[fd]=null,this[Zee]=n,this[jee]=i,this[PC]=!1}destroy(e){return!e&&!this._readableState.endEmitted&&(e=new Kee),e&&this[$ee](),super.destroy(e)}_destroy(e,r){this[PC]?r(e):setImmediate(()=>{r(e)})}on(e,...r){return(e==="data"||e==="readable")&&(this[PC]=!0),super.on(e,...r)}addListener(e,...r){return this.on(e,...r)}off(e,...r){let n=super.off(e,...r);return(e==="data"||e==="readable")&&(this[PC]=this.listenerCount("data")>0||this.listenerCount("readable")>0),n}removeListener(e,...r){return this.off(e,...r)}push(e){return this[Ns]&&e!==null?(yL(this[Ns],e),this[PC]?super.push(e):!0):super.push(e)}async text(){return OC(this,"text")}async json(){return OC(this,"json")}async blob(){return OC(this,"blob")}async bytes(){return OC(this,"bytes")}async arrayBuffer(){return OC(this,"arrayBuffer")}async formData(){throw new mHe}get bodyUsed(){return Xee.isDisturbed(this)}get body(){return this[fd]||(this[fd]=yHe(this),this[Ns]&&(this[fd].getReader(),Yee(this[fd].locked))),this[fd]}async dump(e){let r=Number.isFinite(e?.limit)?e.limit:131072,n=e?.signal;if(n!=null&&(typeof n!="object"||!("aborted"in n)))throw new gHe("signal must be an AbortSignal");return n?.throwIfAborted(),this._readableState.closeEmitted?null:await new Promise((i,s)=>{this[jee]>r&&this.destroy(new AL);let a=o(()=>{this.destroy(n.reason??new AL)},"onAbort");n?.addEventListener("abort",a),this.on("close",function(){n?.removeEventListener("abort",a),n?.aborted?s(n.reason??new AL):i(null)}).on("error",EHe).on("data",function(c){r-=c.length,r<=0&&this.destroy()}).resume()})}};function CHe(t){return t[fd]&&t[fd].locked===!0||t[Ns]}o(CHe,"isLocked");function bHe(t){return Xee.isDisturbed(t)||CHe(t)}o(bHe,"isUnusable");async function OC(t,e){return Yee(!t[Ns]),new Promise((r,n)=>{if(bHe(t)){let i=t._readableState;i.destroyed&&i.closeEmitted===!1?t.on("error",s=>{n(s)}).on("close",()=>{n(new TypeError("unusable"))}):n(i.errored??new TypeError("unusable"))}else queueMicrotask(()=>{t[Ns]={type:e,stream:t,resolve:r,reject:n,length:0,body:[]},t.on("error",function(i){EL(this[Ns],i)}).on("close",function(){this[Ns].body!==null&&EL(this[Ns],new Kee)}),wHe(t[Ns])})})}o(OC,"consume");function wHe(t){if(t.body===null)return;let{_readableState:e}=t.stream;if(e.bufferIndex){let r=e.bufferIndex,n=e.buffer.length;for(let i=r;i2&&r[0]===239&&r[1]===187&&r[2]===191?3:0;return r.utf8Slice(i,n)}o(gL,"chunksDecode");function Wee(t,e){if(t.length===0||e===0)return new Uint8Array(0);if(t.length===1)return new Uint8Array(t[0]);let r=new Uint8Array(Buffer.allocUnsafeSlow(e).buffer),n=0;for(let i=0;i{var IHe=require("node:assert"),{ResponseStatusCodeError:tte}=xt(),{chunksDecode:rte}=CL(),SHe=128*1024;async function BHe({callback:t,body:e,contentType:r,statusCode:n,statusMessage:i,headers:s}){IHe(e);let a=[],c=0;try{for await(let f of e)if(a.push(f),c+=f.length,c>SHe){a=[],c=0;break}}catch{a=[],c=0}let l=`Response status code ${n}${i?`: ${i}`:""}`;if(n===204||!r||!c){queueMicrotask(()=>t(new tte(l,n,s)));return}let u=Error.stackTraceLimit;Error.stackTraceLimit=0;let d;try{nte(r)?d=JSON.parse(rte(a,c)):ite(r)&&(d=rte(a,c))}catch{}finally{Error.stackTraceLimit=u}queueMicrotask(()=>t(new tte(l,n,s,d)))}o(BHe,"getResolveErrorBodyCallback");var nte=o(t=>t.length>15&&t[11]==="/"&&t[0]==="a"&&t[1]==="p"&&t[2]==="p"&&t[3]==="l"&&t[4]==="i"&&t[5]==="c"&&t[6]==="a"&&t[7]==="t"&&t[8]==="i"&&t[9]==="o"&&t[10]==="n"&&t[12]==="j"&&t[13]==="s"&&t[14]==="o"&&t[15]==="n","isContentTypeApplicationJson"),ite=o(t=>t.length>4&&t[4]==="/"&&t[0]==="t"&&t[1]==="e"&&t[2]==="x"&&t[3]==="t","isContentTypeText");ste.exports={getResolveErrorBodyCallback:BHe,isContentTypeApplicationJson:nte,isContentTypeText:ite}});var cte=g((KGt,wL)=>{"use strict";var xHe=require("node:assert"),{Readable:vHe}=CL(),{InvalidArgumentError:nm,RequestAbortedError:ote}=xt(),Rs=st(),{getResolveErrorBodyCallback:NHe}=bL(),{AsyncResource:RHe}=require("node:async_hooks"),ox=class extends RHe{static{o(this,"RequestHandler")}constructor(e,r){if(!e||typeof e!="object")throw new nm("invalid opts");let{signal:n,method:i,opaque:s,body:a,onInfo:c,responseHeaders:l,throwOnError:u,highWaterMark:d}=e;try{if(typeof r!="function")throw new nm("invalid callback");if(d&&(typeof d!="number"||d<0))throw new nm("invalid highWaterMark");if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new nm("signal must be an EventEmitter or EventTarget");if(i==="CONNECT")throw new nm("invalid method");if(c&&typeof c!="function")throw new nm("invalid onInfo callback");super("UNDICI_REQUEST")}catch(f){throw Rs.isStream(a)&&Rs.destroy(a.on("error",Rs.nop),f),f}this.method=i,this.responseHeaders=l||null,this.opaque=s||null,this.callback=r,this.res=null,this.abort=null,this.body=a,this.trailers={},this.context=null,this.onInfo=c||null,this.throwOnError=u,this.highWaterMark=d,this.signal=n,this.reason=null,this.removeAbortListener=null,Rs.isStream(a)&&a.on("error",f=>{this.onError(f)}),this.signal&&(this.signal.aborted?this.reason=this.signal.reason??new ote:this.removeAbortListener=Rs.addAbortListener(this.signal,()=>{this.reason=this.signal.reason??new ote,this.res?Rs.destroy(this.res.on("error",Rs.nop),this.reason):this.abort&&this.abort(this.reason),this.removeAbortListener&&(this.res?.off("close",this.removeAbortListener),this.removeAbortListener(),this.removeAbortListener=null)}))}onConnect(e,r){if(this.reason){e(this.reason);return}xHe(this.callback),this.abort=e,this.context=r}onHeaders(e,r,n,i){let{callback:s,opaque:a,abort:c,context:l,responseHeaders:u,highWaterMark:d}=this,f=u==="raw"?Rs.parseRawHeaders(r):Rs.parseHeaders(r);if(e<200){this.onInfo&&this.onInfo({statusCode:e,headers:f});return}let h=u==="raw"?Rs.parseHeaders(r):f,p=h["content-type"],m=h["content-length"],A=new vHe({resume:n,abort:c,contentType:p,contentLength:this.method!=="HEAD"&&m?Number(m):null,highWaterMark:d});this.removeAbortListener&&A.on("close",this.removeAbortListener),this.callback=null,this.res=A,s!==null&&(this.throwOnError&&e>=400?this.runInAsyncScope(NHe,null,{callback:s,body:A,contentType:p,statusCode:e,statusMessage:i,headers:f}):this.runInAsyncScope(s,null,null,{statusCode:e,headers:f,trailers:this.trailers,opaque:a,body:A,context:l}))}onData(e){return this.res.push(e)}onComplete(e){Rs.parseHeaders(e,this.trailers),this.res.push(null)}onError(e){let{res:r,callback:n,body:i,opaque:s}=this;n&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(n,null,e,{opaque:s})})),r&&(this.res=null,queueMicrotask(()=>{Rs.destroy(r,e)})),i&&(this.body=null,Rs.destroy(i,e)),this.removeAbortListener&&(r?.off("close",this.removeAbortListener),this.removeAbortListener(),this.removeAbortListener=null)}};function ate(t,e){if(e===void 0)return new Promise((r,n)=>{ate.call(this,t,(i,s)=>i?n(i):r(s))});try{this.dispatch(t,new ox(t,e))}catch(r){if(typeof e!="function")throw r;let n=t?.opaque;queueMicrotask(()=>e(r,{opaque:n}))}}o(ate,"request");wL.exports=ate;wL.exports.RequestHandler=ox});var LC=g((ZGt,dte)=>{var{addAbortListener:_He}=st(),{RequestAbortedError:THe}=xt(),im=Symbol("kListener"),lc=Symbol("kSignal");function lte(t){t.abort?t.abort(t[lc]?.reason):t.reason=t[lc]?.reason??new THe,ute(t)}o(lte,"abort");function DHe(t,e){if(t.reason=null,t[lc]=null,t[im]=null,!!e){if(e.aborted){lte(t);return}t[lc]=e,t[im]=()=>{lte(t)},_He(t[lc],t[im])}}o(DHe,"addSignal");function ute(t){t[lc]&&("removeEventListener"in t[lc]?t[lc].removeEventListener("abort",t[im]):t[lc].removeListener("abort",t[im]),t[lc]=null,t[im]=null)}o(ute,"removeSignal");dte.exports={addSignal:DHe,removeSignal:ute}});var Ate=g((tHt,pte)=>{"use strict";var QHe=require("node:assert"),{finished:kHe,PassThrough:PHe}=require("node:stream"),{InvalidArgumentError:sm,InvalidReturnValueError:OHe}=xt(),Ca=st(),{getResolveErrorBodyCallback:LHe}=bL(),{AsyncResource:FHe}=require("node:async_hooks"),{addSignal:MHe,removeSignal:fte}=LC(),IL=class extends FHe{static{o(this,"StreamHandler")}constructor(e,r,n){if(!e||typeof e!="object")throw new sm("invalid opts");let{signal:i,method:s,opaque:a,body:c,onInfo:l,responseHeaders:u,throwOnError:d}=e;try{if(typeof n!="function")throw new sm("invalid callback");if(typeof r!="function")throw new sm("invalid factory");if(i&&typeof i.on!="function"&&typeof i.addEventListener!="function")throw new sm("signal must be an EventEmitter or EventTarget");if(s==="CONNECT")throw new sm("invalid method");if(l&&typeof l!="function")throw new sm("invalid onInfo callback");super("UNDICI_STREAM")}catch(f){throw Ca.isStream(c)&&Ca.destroy(c.on("error",Ca.nop),f),f}this.responseHeaders=u||null,this.opaque=a||null,this.factory=r,this.callback=n,this.res=null,this.abort=null,this.context=null,this.trailers=null,this.body=c,this.onInfo=l||null,this.throwOnError=d||!1,Ca.isStream(c)&&c.on("error",f=>{this.onError(f)}),MHe(this,i)}onConnect(e,r){if(this.reason){e(this.reason);return}QHe(this.callback),this.abort=e,this.context=r}onHeaders(e,r,n,i){let{factory:s,opaque:a,context:c,callback:l,responseHeaders:u}=this,d=u==="raw"?Ca.parseRawHeaders(r):Ca.parseHeaders(r);if(e<200){this.onInfo&&this.onInfo({statusCode:e,headers:d});return}this.factory=null;let f;if(this.throwOnError&&e>=400){let m=(u==="raw"?Ca.parseHeaders(r):d)["content-type"];f=new PHe,this.callback=null,this.runInAsyncScope(LHe,null,{callback:l,body:f,contentType:m,statusCode:e,statusMessage:i,headers:d})}else{if(s===null)return;if(f=this.runInAsyncScope(s,null,{statusCode:e,headers:d,opaque:a,context:c}),!f||typeof f.write!="function"||typeof f.end!="function"||typeof f.on!="function")throw new OHe("expected Writable");kHe(f,{readable:!1},p=>{let{callback:m,res:A,opaque:E,trailers:y,abort:C}=this;this.res=null,(p||!A.readable)&&Ca.destroy(A,p),this.callback=null,this.runInAsyncScope(m,null,p||null,{opaque:E,trailers:y}),p&&C()})}return f.on("drain",n),this.res=f,(f.writableNeedDrain!==void 0?f.writableNeedDrain:f._writableState?.needDrain)!==!0}onData(e){let{res:r}=this;return r?r.write(e):!0}onComplete(e){let{res:r}=this;fte(this),r&&(this.trailers=Ca.parseHeaders(e),r.end())}onError(e){let{res:r,callback:n,opaque:i,body:s}=this;fte(this),this.factory=null,r?(this.res=null,Ca.destroy(r,e)):n&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(n,null,e,{opaque:i})})),s&&(this.body=null,Ca.destroy(s,e))}};function hte(t,e,r){if(r===void 0)return new Promise((n,i)=>{hte.call(this,t,e,(s,a)=>s?i(s):n(a))});try{this.dispatch(t,new IL(t,e,r))}catch(n){if(typeof r!="function")throw n;let i=t?.opaque;queueMicrotask(()=>r(n,{opaque:i}))}}o(hte,"stream");pte.exports=hte});var Ete=g((nHt,yte)=>{"use strict";var{Readable:gte,Duplex:UHe,PassThrough:qHe}=require("node:stream"),{InvalidArgumentError:FC,InvalidReturnValueError:GHe,RequestAbortedError:SL}=xt(),mo=st(),{AsyncResource:HHe}=require("node:async_hooks"),{addSignal:zHe,removeSignal:VHe}=LC(),mte=require("node:assert"),om=Symbol("resume"),BL=class extends gte{static{o(this,"PipelineRequest")}constructor(){super({autoDestroy:!0}),this[om]=null}_read(){let{[om]:e}=this;e&&(this[om]=null,e())}_destroy(e,r){this._read(),r(e)}},xL=class extends gte{static{o(this,"PipelineResponse")}constructor(e){super({autoDestroy:!0}),this[om]=e}_read(){this[om]()}_destroy(e,r){!e&&!this._readableState.endEmitted&&(e=new SL),r(e)}},vL=class extends HHe{static{o(this,"PipelineHandler")}constructor(e,r){if(!e||typeof e!="object")throw new FC("invalid opts");if(typeof r!="function")throw new FC("invalid handler");let{signal:n,method:i,opaque:s,onInfo:a,responseHeaders:c}=e;if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new FC("signal must be an EventEmitter or EventTarget");if(i==="CONNECT")throw new FC("invalid method");if(a&&typeof a!="function")throw new FC("invalid onInfo callback");super("UNDICI_PIPELINE"),this.opaque=s||null,this.responseHeaders=c||null,this.handler=r,this.abort=null,this.context=null,this.onInfo=a||null,this.req=new BL().on("error",mo.nop),this.ret=new UHe({readableObjectMode:e.objectMode,autoDestroy:!0,read:o(()=>{let{body:l}=this;l?.resume&&l.resume()},"read"),write:o((l,u,d)=>{let{req:f}=this;f.push(l,u)||f._readableState.destroyed?d():f[om]=d},"write"),destroy:o((l,u)=>{let{body:d,req:f,res:h,ret:p,abort:m}=this;!l&&!p._readableState.endEmitted&&(l=new SL),m&&l&&m(),mo.destroy(d,l),mo.destroy(f,l),mo.destroy(h,l),VHe(this),u(l)},"destroy")}).on("prefinish",()=>{let{req:l}=this;l.push(null)}),this.res=null,zHe(this,n)}onConnect(e,r){let{ret:n,res:i}=this;if(this.reason){e(this.reason);return}mte(!i,"pipeline cannot be retried"),mte(!n.destroyed),this.abort=e,this.context=r}onHeaders(e,r,n){let{opaque:i,handler:s,context:a}=this;if(e<200){if(this.onInfo){let l=this.responseHeaders==="raw"?mo.parseRawHeaders(r):mo.parseHeaders(r);this.onInfo({statusCode:e,headers:l})}return}this.res=new xL(n);let c;try{this.handler=null;let l=this.responseHeaders==="raw"?mo.parseRawHeaders(r):mo.parseHeaders(r);c=this.runInAsyncScope(s,null,{statusCode:e,headers:l,opaque:i,body:this.res,context:a})}catch(l){throw this.res.on("error",mo.nop),l}if(!c||typeof c.on!="function")throw new GHe("expected Readable");c.on("data",l=>{let{ret:u,body:d}=this;!u.push(l)&&d.pause&&d.pause()}).on("error",l=>{let{ret:u}=this;mo.destroy(u,l)}).on("end",()=>{let{ret:l}=this;l.push(null)}).on("close",()=>{let{ret:l}=this;l._readableState.ended||mo.destroy(l,new SL)}),this.body=c}onData(e){let{res:r}=this;return r.push(e)}onComplete(e){let{res:r}=this;r.push(null)}onError(e){let{ret:r}=this;this.handler=null,mo.destroy(r,e)}};function $He(t,e){try{let r=new vL(t,e);return this.dispatch({...t,body:r.req},r),r.ret}catch(r){return new qHe().destroy(r)}}o($He,"pipeline");yte.exports=$He});var Bte=g((sHt,Ste)=>{"use strict";var{InvalidArgumentError:NL,SocketError:jHe}=xt(),{AsyncResource:WHe}=require("node:async_hooks"),Cte=st(),{addSignal:JHe,removeSignal:bte}=LC(),wte=require("node:assert"),RL=class extends WHe{static{o(this,"UpgradeHandler")}constructor(e,r){if(!e||typeof e!="object")throw new NL("invalid opts");if(typeof r!="function")throw new NL("invalid callback");let{signal:n,opaque:i,responseHeaders:s}=e;if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new NL("signal must be an EventEmitter or EventTarget");super("UNDICI_UPGRADE"),this.responseHeaders=s||null,this.opaque=i||null,this.callback=r,this.abort=null,this.context=null,JHe(this,n)}onConnect(e,r){if(this.reason){e(this.reason);return}wte(this.callback),this.abort=e,this.context=null}onHeaders(){throw new jHe("bad upgrade",null)}onUpgrade(e,r,n){wte(e===101);let{callback:i,opaque:s,context:a}=this;bte(this),this.callback=null;let c=this.responseHeaders==="raw"?Cte.parseRawHeaders(r):Cte.parseHeaders(r);this.runInAsyncScope(i,null,null,{headers:c,socket:n,opaque:s,context:a})}onError(e){let{callback:r,opaque:n}=this;bte(this),r&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(r,null,e,{opaque:n})}))}};function Ite(t,e){if(e===void 0)return new Promise((r,n)=>{Ite.call(this,t,(i,s)=>i?n(i):r(s))});try{let r=new RL(t,e);this.dispatch({...t,method:t.method||"GET",upgrade:t.protocol||"Websocket"},r)}catch(r){if(typeof e!="function")throw r;let n=t?.opaque;queueMicrotask(()=>e(r,{opaque:n}))}}o(Ite,"upgrade");Ste.exports=Ite});var _te=g((aHt,Rte)=>{"use strict";var YHe=require("node:assert"),{AsyncResource:KHe}=require("node:async_hooks"),{InvalidArgumentError:_L,SocketError:XHe}=xt(),xte=st(),{addSignal:ZHe,removeSignal:vte}=LC(),TL=class extends KHe{static{o(this,"ConnectHandler")}constructor(e,r){if(!e||typeof e!="object")throw new _L("invalid opts");if(typeof r!="function")throw new _L("invalid callback");let{signal:n,opaque:i,responseHeaders:s}=e;if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new _L("signal must be an EventEmitter or EventTarget");super("UNDICI_CONNECT"),this.opaque=i||null,this.responseHeaders=s||null,this.callback=r,this.abort=null,ZHe(this,n)}onConnect(e,r){if(this.reason){e(this.reason);return}YHe(this.callback),this.abort=e,this.context=r}onHeaders(){throw new XHe("bad connect",null)}onUpgrade(e,r,n){let{callback:i,opaque:s,context:a}=this;vte(this),this.callback=null;let c=r;c!=null&&(c=this.responseHeaders==="raw"?xte.parseRawHeaders(r):xte.parseHeaders(r)),this.runInAsyncScope(i,null,null,{statusCode:e,headers:c,socket:n,opaque:s,context:a})}onError(e){let{callback:r,opaque:n}=this;vte(this),r&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(r,null,e,{opaque:n})}))}};function Nte(t,e){if(e===void 0)return new Promise((r,n)=>{Nte.call(this,t,(i,s)=>i?n(i):r(s))});try{let r=new TL(t,e);this.dispatch({...t,method:"CONNECT"},r)}catch(r){if(typeof e!="function")throw r;let n=t?.opaque;queueMicrotask(()=>e(r,{opaque:n}))}}o(Nte,"connect");Rte.exports=Nte});var Tte=g((lHt,am)=>{"use strict";am.exports.request=cte();am.exports.stream=Ate();am.exports.pipeline=Ete();am.exports.upgrade=Bte();am.exports.connect=_te()});var QL=g((uHt,Qte)=>{"use strict";var{UndiciError:e5e}=xt(),Dte=Symbol.for("undici.error.UND_MOCK_ERR_MOCK_NOT_MATCHED"),DL=class t extends e5e{static{o(this,"MockNotMatchedError")}constructor(e){super(e),Error.captureStackTrace(this,t),this.name="MockNotMatchedError",this.message=e||"The request does not match any registered mock dispatches",this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED"}static[Symbol.hasInstance](e){return e&&e[Dte]===!0}[Dte]=!0};Qte.exports={MockNotMatchedError:DL}});var cm=g((fHt,kte)=>{"use strict";kte.exports={kAgent:Symbol("agent"),kOptions:Symbol("options"),kFactory:Symbol("factory"),kDispatches:Symbol("dispatches"),kDispatchKey:Symbol("dispatch key"),kDefaultHeaders:Symbol("default headers"),kDefaultTrailers:Symbol("default trailers"),kContentLength:Symbol("content length"),kMockAgent:Symbol("mock agent"),kMockAgentSet:Symbol("mock agent set"),kMockAgentGet:Symbol("mock agent get"),kMockDispatch:Symbol("mock dispatch"),kClose:Symbol("close"),kOriginalClose:Symbol("original agent close"),kOrigin:Symbol("origin"),kIsMockActive:Symbol("is mock active"),kNetConnect:Symbol("net connect"),kGetNetConnect:Symbol("get net connect"),kConnected:Symbol("connected")}});var MC=g((hHt,Vte)=>{"use strict";var{MockNotMatchedError:ah}=QL(),{kDispatches:ax,kMockAgent:t5e,kOriginalDispatch:r5e,kOrigin:n5e,kGetNetConnect:i5e}=cm(),{buildURL:s5e}=st(),{STATUS_CODES:o5e}=require("node:http"),{types:{isPromise:a5e}}=require("node:util");function Kl(t,e){return typeof t=="string"?t===e:t instanceof RegExp?t.test(e):typeof t=="function"?t(e)===!0:!1}o(Kl,"matchValue");function Ote(t){return Object.fromEntries(Object.entries(t).map(([e,r])=>[e.toLocaleLowerCase(),r]))}o(Ote,"lowerCaseEntries");function Lte(t,e){if(Array.isArray(t)){for(let r=0;r"u")return!0;if(typeof e!="object"||typeof t.headers!="object")return!1;for(let[r,n]of Object.entries(t.headers)){let i=Lte(e,r);if(!Kl(n,i))return!1}return!0}o(Fte,"matchHeaders");function Pte(t){if(typeof t!="string")return t;let e=t.split("?");if(e.length!==2)return t;let r=new URLSearchParams(e.pop());return r.sort(),[...e,r.toString()].join("?")}o(Pte,"safeUrl");function c5e(t,{path:e,method:r,body:n,headers:i}){let s=Kl(t.path,e),a=Kl(t.method,r),c=typeof t.body<"u"?Kl(t.body,n):!0,l=Fte(t,i);return s&&a&&c&&l}o(c5e,"matchKey");function Mte(t){return Buffer.isBuffer(t)||t instanceof Uint8Array||t instanceof ArrayBuffer?t:typeof t=="object"?JSON.stringify(t):t.toString()}o(Mte,"getResponseData");function Ute(t,e){let r=e.query?s5e(e.path,e.query):e.path,n=typeof r=="string"?Pte(r):r,i=t.filter(({consumed:s})=>!s).filter(({path:s})=>Kl(Pte(s),n));if(i.length===0)throw new ah(`Mock dispatch not matched for path '${n}'`);if(i=i.filter(({method:s})=>Kl(s,e.method)),i.length===0)throw new ah(`Mock dispatch not matched for method '${e.method}' on path '${n}'`);if(i=i.filter(({body:s})=>typeof s<"u"?Kl(s,e.body):!0),i.length===0)throw new ah(`Mock dispatch not matched for body '${e.body}' on path '${n}'`);if(i=i.filter(s=>Fte(s,e.headers)),i.length===0){let s=typeof e.headers=="object"?JSON.stringify(e.headers):e.headers;throw new ah(`Mock dispatch not matched for headers '${s}' on path '${n}'`)}return i[0]}o(Ute,"getMockDispatch");function l5e(t,e,r){let n={timesInvoked:0,times:1,persist:!1,consumed:!1},i=typeof r=="function"?{callback:r}:{...r},s={...n,...e,pending:!0,data:{error:null,...i}};return t.push(s),s}o(l5e,"addMockDispatch");function kL(t,e){let r=t.findIndex(n=>n.consumed?c5e(n,e):!1);r!==-1&&t.splice(r,1)}o(kL,"deleteMockDispatch");function qte(t){let{path:e,method:r,body:n,headers:i,query:s}=t;return{path:e,method:r,body:n,headers:i,query:s}}o(qte,"buildKey");function PL(t){let e=Object.keys(t),r=[];for(let n=0;n=h,n.pending=f0?setTimeout(()=>{p(this[ax])},u):p(this[ax]);function p(A,E=s){let y=Array.isArray(t.headers)?OL(t.headers):t.headers,C=typeof E=="function"?E({...t,headers:y}):E;if(a5e(C)){C.then(U=>p(A,U));return}let w=Mte(C),B=PL(a),P=PL(c);e.onConnect?.(U=>e.onError(U),null),e.onHeaders?.(i,B,m,Gte(i)),e.onData?.(Buffer.from(w)),e.onComplete?.(P),kL(A,r)}o(p,"handleReply");function m(){}return o(m,"resume"),!0}o(Hte,"mockDispatch");function d5e(){let t=this[t5e],e=this[n5e],r=this[r5e];return o(function(i,s){if(t.isMockActive)try{Hte.call(this,i,s)}catch(a){if(a instanceof ah){let c=t[i5e]();if(c===!1)throw new ah(`${a.message}: subsequent request to origin ${e} was not allowed (net.connect disabled)`);if(zte(c,e))r.call(this,i,s);else throw new ah(`${a.message}: subsequent request to origin ${e} was not allowed (net.connect is not enabled for this origin)`)}else throw a}else r.call(this,i,s)},"dispatch")}o(d5e,"buildMockDispatch");function zte(t,e){let r=new URL(e);return t===!0?!0:!!(Array.isArray(t)&&t.some(n=>Kl(n,r.host)))}o(zte,"checkNetConnect");function f5e(t){if(t){let{agent:e,...r}=t;return r}}o(f5e,"buildMockOptions");Vte.exports={getResponseData:Mte,getMockDispatch:Ute,addMockDispatch:l5e,deleteMockDispatch:kL,buildKey:qte,generateKeyValues:PL,matchValue:Kl,getResponse:u5e,getStatusText:Gte,mockDispatch:Hte,buildMockDispatch:d5e,checkNetConnect:zte,buildMockOptions:f5e,getHeaderByName:Lte,buildHeadersFromArray:OL}});var HL=g((AHt,GL)=>{"use strict";var{getResponseData:h5e,buildKey:p5e,addMockDispatch:LL}=MC(),{kDispatches:cx,kDispatchKey:lx,kDefaultHeaders:FL,kDefaultTrailers:ML,kContentLength:UL,kMockDispatch:ux}=cm(),{InvalidArgumentError:uc}=xt(),{buildURL:A5e}=st(),lm=class{static{o(this,"MockScope")}constructor(e){this[ux]=e}delay(e){if(typeof e!="number"||!Number.isInteger(e)||e<=0)throw new uc("waitInMs must be a valid integer > 0");return this[ux].delay=e,this}persist(){return this[ux].persist=!0,this}times(e){if(typeof e!="number"||!Number.isInteger(e)||e<=0)throw new uc("repeatTimes must be a valid integer > 0");return this[ux].times=e,this}},qL=class{static{o(this,"MockInterceptor")}constructor(e,r){if(typeof e!="object")throw new uc("opts must be an object");if(typeof e.path>"u")throw new uc("opts.path must be defined");if(typeof e.method>"u"&&(e.method="GET"),typeof e.path=="string")if(e.query)e.path=A5e(e.path,e.query);else{let n=new URL(e.path,"data://");e.path=n.pathname+n.search}typeof e.method=="string"&&(e.method=e.method.toUpperCase()),this[lx]=p5e(e),this[cx]=r,this[FL]={},this[ML]={},this[UL]=!1}createMockScopeDispatchData({statusCode:e,data:r,responseOptions:n}){let i=h5e(r),s=this[UL]?{"content-length":i.length}:{},a={...this[FL],...s,...n.headers},c={...this[ML],...n.trailers};return{statusCode:e,data:r,headers:a,trailers:c}}validateReplyParameters(e){if(typeof e.statusCode>"u")throw new uc("statusCode must be defined");if(typeof e.responseOptions!="object"||e.responseOptions===null)throw new uc("responseOptions must be an object")}reply(e){if(typeof e=="function"){let s=o(c=>{let l=e(c);if(typeof l!="object"||l===null)throw new uc("reply options callback must return an object");let u={data:"",responseOptions:{},...l};return this.validateReplyParameters(u),{...this.createMockScopeDispatchData(u)}},"wrappedDefaultsCallback"),a=LL(this[cx],this[lx],s);return new lm(a)}let r={statusCode:e,data:arguments[1]===void 0?"":arguments[1],responseOptions:arguments[2]===void 0?{}:arguments[2]};this.validateReplyParameters(r);let n=this.createMockScopeDispatchData(r),i=LL(this[cx],this[lx],n);return new lm(i)}replyWithError(e){if(typeof e>"u")throw new uc("error must be defined");let r=LL(this[cx],this[lx],{error:e});return new lm(r)}defaultReplyHeaders(e){if(typeof e>"u")throw new uc("headers must be defined");return this[FL]=e,this}defaultReplyTrailers(e){if(typeof e>"u")throw new uc("trailers must be defined");return this[ML]=e,this}replyContentLength(){return this[UL]=!0,this}};GL.exports.MockInterceptor=qL;GL.exports.MockScope=lm});var $L=g((gHt,Xte)=>{"use strict";var{promisify:m5e}=require("node:util"),g5e=ZA(),{buildMockDispatch:y5e}=MC(),{kDispatches:$te,kMockAgent:jte,kClose:Wte,kOriginalClose:Jte,kOrigin:Yte,kOriginalDispatch:E5e,kConnected:zL}=cm(),{MockInterceptor:C5e}=HL(),Kte=cr(),{InvalidArgumentError:b5e}=xt(),VL=class extends g5e{static{o(this,"MockClient")}constructor(e,r){if(super(e,r),!r||!r.agent||typeof r.agent.dispatch!="function")throw new b5e("Argument opts.agent must implement Agent");this[jte]=r.agent,this[Yte]=e,this[$te]=[],this[zL]=1,this[E5e]=this.dispatch,this[Jte]=this.close.bind(this),this.dispatch=y5e.call(this),this.close=this[Wte]}get[Kte.kConnected](){return this[zL]}intercept(e){return new C5e(e,this[$te])}async[Wte](){await m5e(this[Jte])(),this[zL]=0,this[jte][Kte.kClients].delete(this[Yte])}};Xte.exports=VL});var JL=g((EHt,sre)=>{"use strict";var{promisify:w5e}=require("node:util"),I5e=em(),{buildMockDispatch:S5e}=MC(),{kDispatches:Zte,kMockAgent:ere,kClose:tre,kOriginalClose:rre,kOrigin:nre,kOriginalDispatch:B5e,kConnected:jL}=cm(),{MockInterceptor:x5e}=HL(),ire=cr(),{InvalidArgumentError:v5e}=xt(),WL=class extends I5e{static{o(this,"MockPool")}constructor(e,r){if(super(e,r),!r||!r.agent||typeof r.agent.dispatch!="function")throw new v5e("Argument opts.agent must implement Agent");this[ere]=r.agent,this[nre]=e,this[Zte]=[],this[jL]=1,this[B5e]=this.dispatch,this[rre]=this.close.bind(this),this.dispatch=S5e.call(this),this.close=this[tre]}get[ire.kConnected](){return this[jL]}intercept(e){return new x5e(e,this[Zte])}async[tre](){await w5e(this[rre])(),this[jL]=0,this[ere][ire.kClients].delete(this[nre])}};sre.exports=WL});var are=g((wHt,ore)=>{"use strict";var N5e={pronoun:"it",is:"is",was:"was",this:"this"},R5e={pronoun:"they",is:"are",was:"were",this:"these"};ore.exports=class{static{o(this,"Pluralizer")}constructor(e,r){this.singular=e,this.plural=r}pluralize(e){let r=e===1,n=r?N5e:R5e,i=r?this.singular:this.plural;return{...n,count:e,noun:i}}}});var lre=g((BHt,cre)=>{"use strict";var{Transform:_5e}=require("node:stream"),{Console:T5e}=require("node:console"),D5e=process.versions.icu?"\u2705":"Y ",Q5e=process.versions.icu?"\u274C":"N ";cre.exports=class{static{o(this,"PendingInterceptorsFormatter")}constructor({disableColors:e}={}){this.transform=new _5e({transform(r,n,i){i(null,r)}}),this.logger=new T5e({stdout:this.transform,inspectOptions:{colors:!e&&!process.env.CI}})}format(e){let r=e.map(({method:n,path:i,data:{statusCode:s},persist:a,times:c,timesInvoked:l,origin:u})=>({Method:n,Origin:u,Path:i,"Status code":s,Persistent:a?D5e:Q5e,Invocations:l,Remaining:a?1/0:c-l}));return this.logger.table(r),this.transform.read().toString()}}});var hre=g((vHt,fre)=>{"use strict";var{kClients:ch}=cr(),k5e=tm(),{kAgent:YL,kMockAgentSet:dx,kMockAgentGet:ure,kDispatches:KL,kIsMockActive:fx,kNetConnect:lh,kGetNetConnect:P5e,kOptions:hx,kFactory:px}=cm(),O5e=$L(),L5e=JL(),{matchValue:F5e,buildMockOptions:M5e}=MC(),{InvalidArgumentError:dre,UndiciError:U5e}=xt(),q5e=cC(),G5e=are(),H5e=lre(),XL=class extends q5e{static{o(this,"MockAgent")}constructor(e){if(super(e),this[lh]=!0,this[fx]=!0,e?.agent&&typeof e.agent.dispatch!="function")throw new dre("Argument opts.agent must implement Agent");let r=e?.agent?e.agent:new k5e(e);this[YL]=r,this[ch]=r[ch],this[hx]=M5e(e)}get(e){let r=this[ure](e);return r||(r=this[px](e),this[dx](e,r)),r}dispatch(e,r){return this.get(e.origin),this[YL].dispatch(e,r)}async close(){await this[YL].close(),this[ch].clear()}deactivate(){this[fx]=!1}activate(){this[fx]=!0}enableNetConnect(e){if(typeof e=="string"||typeof e=="function"||e instanceof RegExp)Array.isArray(this[lh])?this[lh].push(e):this[lh]=[e];else if(typeof e>"u")this[lh]=!0;else throw new dre("Unsupported matcher. Must be one of String|Function|RegExp.")}disableNetConnect(){this[lh]=!1}get isMockActive(){return this[fx]}[dx](e,r){this[ch].set(e,r)}[px](e){let r=Object.assign({agent:this},this[hx]);return this[hx]&&this[hx].connections===1?new O5e(e,r):new L5e(e,r)}[ure](e){let r=this[ch].get(e);if(r)return r;if(typeof e!="string"){let n=this[px]("http://localhost:9999");return this[dx](e,n),n}for(let[n,i]of Array.from(this[ch]))if(i&&typeof n!="string"&&F5e(n,e)){let s=this[px](e);return this[dx](e,s),s[KL]=i[KL],s}}[P5e](){return this[lh]}pendingInterceptors(){let e=this[ch];return Array.from(e.entries()).flatMap(([r,n])=>n[KL].map(i=>({...i,origin:r}))).filter(({pending:r})=>r)}assertNoPendingInterceptors({pendingInterceptorsFormatter:e=new H5e}={}){let r=this.pendingInterceptors();if(r.length===0)return;let n=new G5e("interceptor","interceptors").pluralize(r.length);throw new U5e(` +`,"latin1"),r!==null&&i!==r){if(n[TO])throw new Kf;process.emitWarning(new Kf)}e[Jt].timeout&&e[Jt].timeoutType===YA&&e[Jt].timeout.refresh&&e[Jt].timeout.refresh(),n[Wl]()}}destroy(e){let{socket:r,client:n,abort:i}=this;r[id]=!1,e&&(ve(n[Xr]<=1,"pipeline should only contain this request"),i(e))}};SZ.exports=Wqe});var QZ=g((wGt,DZ)=>{"use strict";var po=require("node:assert"),{pipeline:t3e}=require("node:stream"),dt=st(),{RequestContentLengthMismatchError:OO,RequestAbortedError:xZ,SocketError:IC,InformationalError:LO}=xt(),{kUrl:zB,kReset:$B,kClient:KA,kRunning:jB,kPending:r3e,kQueue:sd,kPendingIdx:FO,kRunningIdx:Aa,kError:ga,kSocket:Bn,kStrictContentLength:n3e,kOnError:MO,kMaxConcurrentStreams:TZ,kHTTP2Session:ma,kResume:od,kSize:i3e,kHTTPContext:s3e}=cr(),Jl=Symbol("open streams"),vZ,NZ=!1,VB;try{VB=require("node:http2")}catch{VB={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:o3e,HTTP2_HEADER_METHOD:a3e,HTTP2_HEADER_PATH:c3e,HTTP2_HEADER_SCHEME:l3e,HTTP2_HEADER_CONTENT_LENGTH:u3e,HTTP2_HEADER_EXPECT:d3e,HTTP2_HEADER_STATUS:f3e}}=VB;function h3e(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let i of n)e.push(Buffer.from(r),Buffer.from(i));else e.push(Buffer.from(r),Buffer.from(n));return e}o(h3e,"parseH2Headers");async function p3e(t,e){t[Bn]=e,NZ||(NZ=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=VB.connect(t[zB],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[TZ]});r[Jl]=0,r[KA]=t,r[Bn]=e,dt.addListener(r,"error",m3e),dt.addListener(r,"frameError",g3e),dt.addListener(r,"end",y3e),dt.addListener(r,"goaway",E3e),dt.addListener(r,"close",function(){let{[KA]:i}=this,{[Bn]:s}=i,a=this[Bn][ga]||this[ga]||new IC("closed",dt.getSocketInfo(s));if(i[ma]=null,i.destroyed){po(i[r3e]===0);let c=i[sd].splice(i[Aa]);for(let l=0;l{n=!0}),{version:"h2",defaultPipelining:1/0,write(...i){return b3e(t,...i)},resume(){A3e(t)},destroy(i,s){n?queueMicrotask(s):e.destroy(i).on("close",s)},get destroyed(){return e.destroyed},busy(){return!1}}}o(p3e,"connectH2");function A3e(t){let e=t[Bn];e?.destroyed===!1&&(t[i3e]===0&&t[TZ]===0?(e.unref(),t[ma].unref()):(e.ref(),t[ma].ref()))}o(A3e,"resumeH2");function m3e(t){po(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Bn][ga]=t,this[KA][MO](t)}o(m3e,"onHttp2SessionError");function g3e(t,e,r){if(r===0){let n=new LO(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Bn][ga]=n,this[KA][MO](n)}}o(g3e,"onHttp2FrameError");function y3e(){let t=new IC("other side closed",dt.getSocketInfo(this[Bn]));this.destroy(t),dt.destroy(this[Bn],t)}o(y3e,"onHttp2SessionEnd");function E3e(t){let e=this[ga]||new IC(`HTTP/2: "GOAWAY" frame received with code ${t}`,dt.getSocketInfo(this)),r=this[KA];if(r[Bn]=null,r[s3e]=null,this[ma]!=null&&(this[ma].destroy(e),this[ma]=null),dt.destroy(this[Bn],e),r[Aa]{e.aborted||e.completed||(B=B||new xZ,dt.errorRequest(t,e,B),h!=null&&dt.destroy(h,B),dt.destroy(d,B),t[sd][t[Aa]++]=null,t[od]())},"abort");try{e.onConnect(A)}catch(B){dt.errorRequest(t,e,B)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),h=r.request(f,{endStream:!1,signal:l}),h.id&&!h.pending?(e.onUpgrade(null,null,h),++r[Jl],t[sd][t[Aa]++]=null):h.once("ready",()=>{e.onUpgrade(null,null,h),++r[Jl],t[sd][t[Aa]++]=null}),h.once("close",()=>{r[Jl]-=1,r[Jl]===0&&r.unref()}),!0;f[c3e]=i,f[l3e]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";d&&typeof d.read=="function"&&d.read(0);let y=dt.bodyLength(d);if(dt.isFormDataLike(d)){vZ??=$A().extractBody;let[B,P]=vZ(d);f["content-type"]=P,d=B.stream,y=B.length}if(y==null&&(y=e.contentLength),(y===0||!E)&&(y=null),C3e(n)&&y>0&&e.contentLength!=null&&e.contentLength!==y){if(t[n3e])return dt.errorRequest(t,e,new OO),!1;process.emitWarning(new OO)}y!=null&&(po(d,"no body must not have content length"),f[u3e]=`${y}`),r.ref();let C=n==="GET"||n==="HEAD"||d===null;return c?(f[d3e]="100-continue",h=r.request(f,{endStream:C,signal:l}),h.once("continue",w)):(h=r.request(f,{endStream:C,signal:l}),w()),++r[Jl],h.once("response",B=>{let{[f3e]:P,...U}=B;if(e.onResponseStarted(),e.aborted){let N=new xZ;dt.errorRequest(t,e,N),dt.destroy(h,N);return}e.onHeaders(Number(P),h3e(U),h.resume.bind(h),"")===!1&&h.pause(),h.on("data",N=>{e.onData(N)===!1&&h.pause()})}),h.once("end",()=>{(h.state?.state==null||h.state.state<6)&&e.onComplete([]),r[Jl]===0&&r.unref(),A(new LO("HTTP/2: stream half-closed (remote)")),t[sd][t[Aa]++]=null,t[FO]=t[Aa],t[od]()}),h.once("close",()=>{r[Jl]-=1,r[Jl]===0&&r.unref()}),h.once("error",function(B){A(B)}),h.once("frameError",(B,P)=>{A(new LO(`HTTP/2: "frameError" received - type ${B}, code ${P}`))}),!0;function w(){!d||y===0?_Z(A,h,null,t,e,t[Bn],y,E):dt.isBuffer(d)?_Z(A,h,d,t,e,t[Bn],y,E):dt.isBlobLike(d)?typeof d.stream=="function"?RZ(A,h,d.stream(),t,e,t[Bn],y,E):I3e(A,h,d,t,e,t[Bn],y,E):dt.isStream(d)?w3e(A,t[Bn],E,h,d,t,e,y):dt.isIterable(d)?RZ(A,h,d,t,e,t[Bn],y,E):po(!1)}o(w,"writeBodyH2")}o(b3e,"writeH2");function _Z(t,e,r,n,i,s,a,c){try{r!=null&&dt.isBuffer(r)&&(po(a===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),i.onBodySent(r)),c||(s[$B]=!0),i.onRequestSent(),n[od]()}catch(l){t(l)}}o(_Z,"writeBuffer");function w3e(t,e,r,n,i,s,a,c){po(c!==0||s[jB]===0,"stream body cannot be pipelined");let l=t3e(i,n,d=>{d?(dt.destroy(l,d),t(d)):(dt.removeAllListeners(l),a.onRequestSent(),r||(e[$B]=!0),s[od]())});dt.addListener(l,"data",u);function u(d){a.onBodySent(d)}o(u,"onPipeData")}o(w3e,"writeStream");async function I3e(t,e,r,n,i,s,a,c){po(a===r.size,"blob body must have content length");try{if(a!=null&&a!==r.size)throw new OO;let l=Buffer.from(await r.arrayBuffer());e.cork(),e.write(l),e.uncork(),e.end(),i.onBodySent(l),i.onRequestSent(),c||(s[$B]=!0),n[od]()}catch(l){t(l)}}o(I3e,"writeBlob");async function RZ(t,e,r,n,i,s,a,c){po(a!==0||n[jB]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let f=l;l=null,f()}}o(u,"onDrain");let d=o(()=>new Promise((f,h)=>{po(l===null),s[ga]?h(s[ga]):l=f}),"waitForDrain");e.on("close",u).on("drain",u);try{for await(let f of r){if(s[ga])throw s[ga];let h=e.write(f);i.onBodySent(f),h||await d()}e.end(),i.onRequestSent(),c||(s[$B]=!0),n[od]()}catch(f){t(f)}finally{e.off("close",u).off("drain",u)}}o(RZ,"writeIterable");DZ.exports=p3e});var JB=g((SGt,OZ)=>{"use strict";var ac=st(),{kBodyUsed:SC}=cr(),qO=require("node:assert"),{InvalidArgumentError:S3e}=xt(),B3e=require("node:events"),x3e=[300,301,302,303,307,308],kZ=Symbol("body"),WB=class{static{o(this,"BodyAsyncIterable")}constructor(e){this[kZ]=e,this[SC]=!1}async*[Symbol.asyncIterator](){qO(!this[SC],"disturbed"),this[SC]=!0,yield*this[kZ]}},UO=class{static{o(this,"RedirectHandler")}constructor(e,r,n,i){if(r!=null&&(!Number.isInteger(r)||r<0))throw new S3e("maxRedirections must be a positive number");ac.validateHandler(i,n.method,n.upgrade),this.dispatch=e,this.location=null,this.abort=null,this.opts={...n,maxRedirections:0},this.maxRedirections=r,this.handler=i,this.history=[],this.redirectionLimitReached=!1,ac.isStream(this.opts.body)?(ac.bodyLength(this.opts.body)===0&&this.opts.body.on("data",function(){qO(!1)}),typeof this.opts.body.readableDidRead!="boolean"&&(this.opts.body[SC]=!1,B3e.prototype.on.call(this.opts.body,"data",function(){this[SC]=!0}))):this.opts.body&&typeof this.opts.body.pipeTo=="function"?this.opts.body=new WB(this.opts.body):this.opts.body&&typeof this.opts.body!="string"&&!ArrayBuffer.isView(this.opts.body)&&ac.isIterable(this.opts.body)&&(this.opts.body=new WB(this.opts.body))}onConnect(e){this.abort=e,this.handler.onConnect(e,{history:this.history})}onUpgrade(e,r,n){this.handler.onUpgrade(e,r,n)}onError(e){this.handler.onError(e)}onHeaders(e,r,n,i){if(this.location=this.history.length>=this.maxRedirections||ac.isDisturbed(this.opts.body)?null:v3e(e,r),this.opts.throwOnMaxRedirect&&this.history.length>=this.maxRedirections){this.request&&this.request.abort(new Error("max redirects")),this.redirectionLimitReached=!0,this.abort(new Error("max redirects"));return}if(this.opts.origin&&this.history.push(new URL(this.opts.path,this.opts.origin)),!this.location)return this.handler.onHeaders(e,r,n,i);let{origin:s,pathname:a,search:c}=ac.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin))),l=c?`${a}${c}`:a;this.opts.headers=N3e(this.opts.headers,e===303,this.opts.origin!==s),this.opts.path=l,this.opts.origin=s,this.opts.maxRedirections=0,this.opts.query=null,e===303&&this.opts.method!=="HEAD"&&(this.opts.method="GET",this.opts.body=null)}onData(e){if(!this.location)return this.handler.onData(e)}onComplete(e){this.location?(this.location=null,this.abort=null,this.dispatch(this.opts,this)):this.handler.onComplete(e)}onBodySent(e){this.handler.onBodySent&&this.handler.onBodySent(e)}};function v3e(t,e){if(x3e.indexOf(t)===-1)return null;for(let r=0;r{"use strict";var _3e=JB();function R3e({maxRedirections:t}){return e=>o(function(n,i){let{maxRedirections:s=t}=n;if(!s)return e(n,i);let a=new _3e(e,s,n,i);return n={...n,maxRedirections:0},e(n,a)},"Intercept")}o(R3e,"createRedirectInterceptor");LZ.exports=R3e});var em=g((NGt,jZ)=>{"use strict";var Yl=require("node:assert"),HZ=require("node:net"),T3e=require("node:http"),eh=st(),{channels:XA}=QA(),D3e=j7(),Q3e=LA(),{InvalidArgumentError:Lr,InformationalError:k3e,ClientDestroyedError:P3e}=xt(),O3e=dC(),{kUrl:cc,kServerName:ad,kClient:L3e,kBusy:GO,kConnect:F3e,kResuming:th,kRunning:_C,kPending:RC,kSize:NC,kQueue:ya,kConnected:M3e,kConnecting:ZA,kNeedDrain:ld,kKeepAliveDefaultTimeout:FZ,kHostHeader:U3e,kPendingIdx:Ea,kRunningIdx:Kl,kError:q3e,kPipelining:KB,kKeepAliveTimeoutValue:G3e,kMaxHeadersSize:H3e,kKeepAliveMaxTimeout:z3e,kKeepAliveTimeoutThreshold:V3e,kHeadersTimeout:$3e,kBodyTimeout:j3e,kStrictContentLength:W3e,kConnector:BC,kMaxRedirections:J3e,kMaxRequests:HO,kCounter:Y3e,kClose:K3e,kDestroy:X3e,kDispatch:Z3e,kInterceptors:MZ,kLocalAddress:xC,kMaxResponseSize:eGe,kOnError:tGe,kHTTPContext:Fr,kMaxConcurrentStreams:rGe,kResume:vC}=cr(),nGe=BZ(),iGe=QZ(),UZ=!1,cd=Symbol("kClosedResolve"),qZ=o(()=>{},"noop");function zZ(t){return t[KB]??t[Fr]?.defaultPipelining??1}o(zZ,"getPipelining");var zO=class extends Q3e{static{o(this,"Client")}constructor(e,{interceptors:r,maxHeaderSize:n,headersTimeout:i,socketTimeout:s,requestTimeout:a,connectTimeout:c,bodyTimeout:l,idleTimeout:u,keepAlive:d,keepAliveTimeout:f,maxKeepAliveTimeout:h,keepAliveMaxTimeout:p,keepAliveTimeoutThreshold:m,socketPath:A,pipelining:E,tls:y,strictContentLength:C,maxCachedSessions:w,maxRedirections:B,connect:P,maxRequestsPerClient:U,localAddress:N,maxResponseSize:$,autoSelectFamily:Q,autoSelectFamilyAttemptTimeout:H,maxConcurrentStreams:V,allowH2:W,webSocket:ue}={}){if(super({webSocket:ue}),d!==void 0)throw new Lr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new Lr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(a!==void 0)throw new Lr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(u!==void 0)throw new Lr("unsupported idleTimeout, use keepAliveTimeout instead");if(h!==void 0)throw new Lr("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead");if(n!=null&&!Number.isFinite(n))throw new Lr("invalid maxHeaderSize");if(A!=null&&typeof A!="string")throw new Lr("invalid socketPath");if(c!=null&&(!Number.isFinite(c)||c<0))throw new Lr("invalid connectTimeout");if(f!=null&&(!Number.isFinite(f)||f<=0))throw new Lr("invalid keepAliveTimeout");if(p!=null&&(!Number.isFinite(p)||p<=0))throw new Lr("invalid keepAliveMaxTimeout");if(m!=null&&!Number.isFinite(m))throw new Lr("invalid keepAliveTimeoutThreshold");if(i!=null&&(!Number.isInteger(i)||i<0))throw new Lr("headersTimeout must be a positive integer or zero");if(l!=null&&(!Number.isInteger(l)||l<0))throw new Lr("bodyTimeout must be a positive integer or zero");if(P!=null&&typeof P!="function"&&typeof P!="object")throw new Lr("connect must be a function or an object");if(B!=null&&(!Number.isInteger(B)||B<0))throw new Lr("maxRedirections must be a positive number");if(U!=null&&(!Number.isInteger(U)||U<0))throw new Lr("maxRequestsPerClient must be a positive number");if(N!=null&&(typeof N!="string"||HZ.isIP(N)===0))throw new Lr("localAddress must be valid string IP address");if($!=null&&(!Number.isInteger($)||$<-1))throw new Lr("maxResponseSize must be a positive number");if(H!=null&&(!Number.isInteger(H)||H<-1))throw new Lr("autoSelectFamilyAttemptTimeout must be a positive number");if(W!=null&&typeof W!="boolean")throw new Lr("allowH2 must be a valid boolean value");if(V!=null&&(typeof V!="number"||V<1))throw new Lr("maxConcurrentStreams must be a positive integer, greater than 0");typeof P!="function"&&(P=O3e({...y,maxCachedSessions:w,allowH2:W,socketPath:A,timeout:c,...Q?{autoSelectFamily:Q,autoSelectFamilyAttemptTimeout:H}:void 0,...P})),r?.Client&&Array.isArray(r.Client)?(this[MZ]=r.Client,UZ||(UZ=!0,process.emitWarning("Client.Options#interceptor is deprecated. Use Dispatcher#compose instead.",{code:"UNDICI-CLIENT-INTERCEPTOR-DEPRECATED"}))):this[MZ]=[sGe({maxRedirections:B})],this[cc]=eh.parseOrigin(e),this[BC]=P,this[KB]=E??1,this[H3e]=n||T3e.maxHeaderSize,this[FZ]=f??4e3,this[z3e]=p??6e5,this[V3e]=m??2e3,this[G3e]=this[FZ],this[ad]=null,this[xC]=N??null,this[th]=0,this[ld]=0,this[U3e]=`host: ${this[cc].hostname}${this[cc].port?`:${this[cc].port}`:""}\r +`,this[j3e]=l??3e5,this[$3e]=i??3e5,this[W3e]=C??!0,this[J3e]=B,this[HO]=U,this[cd]=null,this[eGe]=$>-1?$:-1,this[rGe]=V??100,this[Fr]=null,this[ya]=[],this[Kl]=0,this[Ea]=0,this[vC]=de=>VO(this,de),this[tGe]=de=>VZ(this,de)}get pipelining(){return this[KB]}set pipelining(e){this[KB]=e,this[vC](!0)}get[RC](){return this[ya].length-this[Ea]}get[_C](){return this[Ea]-this[Kl]}get[NC](){return this[ya].length-this[Kl]}get[M3e](){return!!this[Fr]&&!this[ZA]&&!this[Fr].destroyed}get[GO](){return!!(this[Fr]?.busy(null)||this[NC]>=(zZ(this)||1)||this[RC]>0)}[F3e](e){$Z(this),this.once("connect",e)}[Z3e](e,r){let n=e.origin||this[cc].origin,i=new D3e(n,e,r);return this[ya].push(i),this[th]||(eh.bodyLength(i.body)==null&&eh.isIterable(i.body)?(this[th]=1,queueMicrotask(()=>VO(this))):this[vC](!0)),this[th]&&this[ld]!==2&&this[GO]&&(this[ld]=2),this[ld]<2}async[K3e](){return new Promise(e=>{this[NC]?this[cd]=e:e(null)})}async[X3e](e){return new Promise(r=>{let n=this[ya].splice(this[Ea]);for(let s=0;s{this[cd]&&(this[cd](),this[cd]=null),r(null)},"callback");this[Fr]?(this[Fr].destroy(e,i),this[Fr]=null):queueMicrotask(i),this[vC]()})}},sGe=YB();function VZ(t,e){if(t[_C]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Yl(t[Ea]===t[Kl]);let r=t[ya].splice(t[Kl]);for(let n=0;n{t[BC]({host:e,hostname:r,protocol:n,port:i,servername:t[ad],localAddress:t[xC]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){eh.destroy(s.on("error",qZ),new P3e);return}Yl(s);try{t[Fr]=s.alpnProtocol==="h2"?await iGe(t,s):await nGe(t,s)}catch(a){throw s.destroy().on("error",qZ),a}t[ZA]=!1,s[Y3e]=0,s[HO]=t[HO],s[L3e]=t,s[q3e]=null,XA.connected.hasSubscribers&&XA.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:i,version:t[Fr]?.version,servername:t[ad],localAddress:t[xC]},connector:t[BC],socket:s}),t.emit("connect",t[cc],[t])}catch(s){if(t.destroyed)return;if(t[ZA]=!1,XA.connectError.hasSubscribers&&XA.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:i,version:t[Fr]?.version,servername:t[ad],localAddress:t[xC]},connector:t[BC],error:s}),s.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Yl(t[_C]===0);t[RC]>0&&t[ya][t[Ea]].servername===t[ad];){let a=t[ya][t[Ea]++];eh.errorRequest(t,a,s)}else VZ(t,s);t.emit("connectionError",t[cc],[t],s)}t[vC]()}o($Z,"connect");function GZ(t){t[ld]=0,t.emit("drain",t[cc],[t])}o(GZ,"emitDrain");function VO(t,e){t[th]!==2&&(t[th]=2,oGe(t,e),t[th]=0,t[Kl]>256&&(t[ya].splice(0,t[Kl]),t[Ea]-=t[Kl],t[Kl]=0))}o(VO,"resume");function oGe(t,e){for(;;){if(t.destroyed){Yl(t[RC]===0);return}if(t[cd]&&!t[NC]){t[cd](),t[cd]=null;return}if(t[Fr]&&t[Fr].resume(),t[GO])t[ld]=2;else if(t[ld]===2){e?(t[ld]=1,queueMicrotask(()=>GZ(t))):GZ(t);continue}if(t[RC]===0||t[_C]>=(zZ(t)||1))return;let r=t[ya][t[Ea]];if(t[cc].protocol==="https:"&&t[ad]!==r.servername){if(t[_C]>0)return;t[ad]=r.servername,t[Fr]?.destroy(new k3e("servername changed"),()=>{t[Fr]=null,VO(t)})}if(t[ZA])return;if(!t[Fr]){$Z(t);return}if(t[Fr].destroyed||t[Fr].busy(r))return;!r.aborted&&t[Fr].write(r)?t[Ea]++:t[ya].splice(t[Ea],1)}}o(oGe,"_resume");jZ.exports=zO});var $O=g((TGt,WZ)=>{"use strict";var XB=class{static{o(this,"FixedCircularBuffer")}constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};WZ.exports=class{static{o(this,"FixedQueue")}constructor(){this.head=this.tail=new XB}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new XB),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var YZ=g((QGt,JZ)=>{var{kFree:aGe,kConnected:cGe,kPending:lGe,kQueued:uGe,kRunning:dGe,kSize:fGe}=cr(),rh=Symbol("pool"),jO=class{static{o(this,"PoolStats")}constructor(e){this[rh]=e}get connected(){return this[rh][cGe]}get free(){return this[rh][aGe]}get pending(){return this[rh][lGe]}get queued(){return this[rh][uGe]}get running(){return this[rh][dGe]}get size(){return this[rh][fGe]}};JZ.exports=jO});var ZO=g((PGt,oee)=>{"use strict";var hGe=LA(),pGe=$O(),{kConnected:WO,kSize:KZ,kRunning:XZ,kPending:ZZ,kQueued:TC,kBusy:AGe,kFree:mGe,kUrl:gGe,kClose:yGe,kDestroy:EGe,kDispatch:CGe}=cr(),bGe=YZ(),Xi=Symbol("clients"),Si=Symbol("needDrain"),DC=Symbol("queue"),JO=Symbol("closed resolve"),YO=Symbol("onDrain"),eee=Symbol("onConnect"),tee=Symbol("onDisconnect"),ree=Symbol("onConnectionError"),KO=Symbol("get dispatcher"),iee=Symbol("add client"),see=Symbol("remove client"),nee=Symbol("stats"),XO=class extends hGe{static{o(this,"PoolBase")}constructor(e){super(e),this[DC]=new pGe,this[Xi]=[],this[TC]=0;let r=this;this[YO]=o(function(i,s){let a=r[DC],c=!1;for(;!c;){let l=a.shift();if(!l)break;r[TC]--,c=!this.dispatch(l.opts,l.handler)}this[Si]=c,!this[Si]&&r[Si]&&(r[Si]=!1,r.emit("drain",i,[r,...s])),r[JO]&&a.isEmpty()&&Promise.all(r[Xi].map(l=>l.close())).then(r[JO])},"onDrain"),this[eee]=(n,i)=>{r.emit("connect",n,[r,...i])},this[tee]=(n,i,s)=>{r.emit("disconnect",n,[r,...i],s)},this[ree]=(n,i,s)=>{r.emit("connectionError",n,[r,...i],s)},this[nee]=new bGe(this)}get[AGe](){return this[Si]}get[WO](){return this[Xi].filter(e=>e[WO]).length}get[mGe](){return this[Xi].filter(e=>e[WO]&&!e[Si]).length}get[ZZ](){let e=this[TC];for(let{[ZZ]:r}of this[Xi])e+=r;return e}get[XZ](){let e=0;for(let{[XZ]:r}of this[Xi])e+=r;return e}get[KZ](){let e=this[TC];for(let{[KZ]:r}of this[Xi])e+=r;return e}get stats(){return this[nee]}async[yGe](){this[DC].isEmpty()?await Promise.all(this[Xi].map(e=>e.close())):await new Promise(e=>{this[JO]=e})}async[EGe](e){for(;;){let r=this[DC].shift();if(!r)break;r.handler.onError(e)}await Promise.all(this[Xi].map(r=>r.destroy(e)))}[CGe](e,r){let n=this[KO]();return n?n.dispatch(e,r)||(n[Si]=!0,this[Si]=!this[KO]()):(this[Si]=!0,this[DC].push({opts:e,handler:r}),this[TC]++),!this[Si]}[iee](e){return e.on("drain",this[YO]).on("connect",this[eee]).on("disconnect",this[tee]).on("connectionError",this[ree]),this[Xi].push(e),this[Si]&&queueMicrotask(()=>{this[Si]&&this[YO](e[gGe],[this,e])}),this}[see](e){e.close(()=>{let r=this[Xi].indexOf(e);r!==-1&&this[Xi].splice(r,1)}),this[Si]=this[Xi].some(r=>!r[Si]&&r.closed!==!0&&r.destroyed!==!0)}};oee.exports={PoolBase:XO,kClients:Xi,kNeedDrain:Si,kAddClient:iee,kRemoveClient:see,kGetDispatcher:KO}});var tm=g((LGt,uee)=>{"use strict";var{PoolBase:wGe,kClients:ZB,kNeedDrain:IGe,kAddClient:SGe,kGetDispatcher:BGe}=ZO(),xGe=em(),{InvalidArgumentError:eL}=xt(),aee=st(),{kUrl:cee,kInterceptors:vGe}=cr(),NGe=dC(),tL=Symbol("options"),rL=Symbol("connections"),lee=Symbol("factory");function _Ge(t,e){return new xGe(t,e)}o(_Ge,"defaultFactory");var nL=class extends wGe{static{o(this,"Pool")}constructor(e,{connections:r,factory:n=_Ge,connect:i,connectTimeout:s,tls:a,maxCachedSessions:c,socketPath:l,autoSelectFamily:u,autoSelectFamilyAttemptTimeout:d,allowH2:f,...h}={}){if(r!=null&&(!Number.isFinite(r)||r<0))throw new eL("invalid connections");if(typeof n!="function")throw new eL("factory must be a function.");if(i!=null&&typeof i!="function"&&typeof i!="object")throw new eL("connect must be a function or an object");typeof i!="function"&&(i=NGe({...a,maxCachedSessions:c,allowH2:f,socketPath:l,timeout:s,...u?{autoSelectFamily:u,autoSelectFamilyAttemptTimeout:d}:void 0,...i})),super(h),this[vGe]=h.interceptors?.Pool&&Array.isArray(h.interceptors.Pool)?h.interceptors.Pool:[],this[rL]=r||null,this[cee]=aee.parseOrigin(e),this[tL]={...aee.deepClone(h),connect:i,allowH2:f},this[tL].interceptors=h.interceptors?{...h.interceptors}:void 0,this[lee]=n,this.on("connectionError",(p,m,A)=>{for(let E of m){let y=this[ZB].indexOf(E);y!==-1&&this[ZB].splice(y,1)}})}[BGe](){for(let e of this[ZB])if(!e[IGe])return e;if(!this[rL]||this[ZB].length{"use strict";var{BalancedPoolMissingUpstreamError:RGe,InvalidArgumentError:TGe}=xt(),{PoolBase:DGe,kClients:ri,kNeedDrain:QC,kAddClient:QGe,kRemoveClient:kGe,kGetDispatcher:PGe}=ZO(),OGe=tm(),{kUrl:iL,kInterceptors:LGe}=cr(),{parseOrigin:dee}=st(),fee=Symbol("factory"),ex=Symbol("options"),hee=Symbol("kGreatestCommonDivisor"),nh=Symbol("kCurrentWeight"),ih=Symbol("kIndex"),Ao=Symbol("kWeight"),tx=Symbol("kMaxWeightPerServer"),rx=Symbol("kErrorPenalty");function FGe(t,e){if(t===0)return e;for(;e!==0;){let r=e;e=t%e,t=r}return t}o(FGe,"getGreatestCommonDivisor");function MGe(t,e){return new OGe(t,e)}o(MGe,"defaultFactory");var sL=class extends DGe{static{o(this,"BalancedPool")}constructor(e=[],{factory:r=MGe,...n}={}){if(super(),this[ex]=n,this[ih]=-1,this[nh]=0,this[tx]=this[ex].maxWeightPerServer||100,this[rx]=this[ex].errorPenalty||15,Array.isArray(e)||(e=[e]),typeof r!="function")throw new TGe("factory must be a function.");this[LGe]=n.interceptors?.BalancedPool&&Array.isArray(n.interceptors.BalancedPool)?n.interceptors.BalancedPool:[],this[fee]=r;for(let i of e)this.addUpstream(i);this._updateBalancedPoolStats()}addUpstream(e){let r=dee(e).origin;if(this[ri].find(i=>i[iL].origin===r&&i.closed!==!0&&i.destroyed!==!0))return this;let n=this[fee](r,Object.assign({},this[ex]));this[QGe](n),n.on("connect",()=>{n[Ao]=Math.min(this[tx],n[Ao]+this[rx])}),n.on("connectionError",()=>{n[Ao]=Math.max(1,n[Ao]-this[rx]),this._updateBalancedPoolStats()}),n.on("disconnect",(...i)=>{let s=i[2];s&&s.code==="UND_ERR_SOCKET"&&(n[Ao]=Math.max(1,n[Ao]-this[rx]),this._updateBalancedPoolStats())});for(let i of this[ri])i[Ao]=this[tx];return this._updateBalancedPoolStats(),this}_updateBalancedPoolStats(){let e=0;for(let r=0;ri[iL].origin===r&&i.closed!==!0&&i.destroyed!==!0);return n&&this[kGe](n),this}get upstreams(){return this[ri].filter(e=>e.closed!==!0&&e.destroyed!==!0).map(e=>e[iL].origin)}[PGe](){if(this[ri].length===0)throw new RGe;if(!this[ri].find(s=>!s[QC]&&s.closed!==!0&&s.destroyed!==!0)||this[ri].map(s=>s[QC]).reduce((s,a)=>s&&a,!0))return;let n=0,i=this[ri].findIndex(s=>!s[QC]);for(;n++this[ri][i][Ao]&&!s[QC]&&(i=this[ih]),this[ih]===0&&(this[nh]=this[nh]-this[hee],this[nh]<=0&&(this[nh]=this[tx])),s[Ao]>=this[nh]&&!s[QC])return s}return this[nh]=this[ri][i][Ao],this[ih]=i,this[ri][i]}};pee.exports=sL});var rm=g((qGt,wee)=>{"use strict";var{InvalidArgumentError:nx}=xt(),{kClients:ud,kRunning:mee,kClose:UGe,kDestroy:qGe,kDispatch:GGe,kInterceptors:HGe}=cr(),zGe=LA(),VGe=tm(),$Ge=em(),jGe=st(),WGe=YB(),gee=Symbol("onConnect"),yee=Symbol("onDisconnect"),Eee=Symbol("onConnectionError"),JGe=Symbol("maxRedirections"),Cee=Symbol("onDrain"),bee=Symbol("factory"),oL=Symbol("options");function YGe(t,e){return e&&e.connections===1?new $Ge(t,e):new VGe(t,e)}o(YGe,"defaultFactory");var aL=class extends zGe{static{o(this,"Agent")}constructor({factory:e=YGe,maxRedirections:r=0,connect:n,...i}={}){if(typeof e!="function")throw new nx("factory must be a function.");if(n!=null&&typeof n!="function"&&typeof n!="object")throw new nx("connect must be a function or an object");if(!Number.isInteger(r)||r<0)throw new nx("maxRedirections must be a positive number");super(i),n&&typeof n!="function"&&(n={...n}),this[HGe]=i.interceptors?.Agent&&Array.isArray(i.interceptors.Agent)?i.interceptors.Agent:[WGe({maxRedirections:r})],this[oL]={...jGe.deepClone(i),connect:n},this[oL].interceptors=i.interceptors?{...i.interceptors}:void 0,this[JGe]=r,this[bee]=e,this[ud]=new Map,this[Cee]=(s,a)=>{this.emit("drain",s,[this,...a])},this[gee]=(s,a)=>{this.emit("connect",s,[this,...a])},this[yee]=(s,a,c)=>{this.emit("disconnect",s,[this,...a],c)},this[Eee]=(s,a,c)=>{this.emit("connectionError",s,[this,...a],c)}}get[mee](){let e=0;for(let r of this[ud].values())e+=r[mee];return e}[GGe](e,r){let n;if(e.origin&&(typeof e.origin=="string"||e.origin instanceof URL))n=String(e.origin);else throw new nx("opts.origin must be a non-empty string or URL.");let i=this[ud].get(n);return i||(i=this[bee](e.origin,this[oL]).on("drain",this[Cee]).on("connect",this[gee]).on("disconnect",this[yee]).on("connectionError",this[Eee]),this[ud].set(n,i)),i.dispatch(e,r)}async[UGe](){let e=[];for(let r of this[ud].values())e.push(r.close());this[ud].clear(),await Promise.all(e)}async[qGe](e){let r=[];for(let n of this[ud].values())r.push(n.destroy(e));this[ud].clear(),await Promise.all(r)}};wee.exports=aL});var fL=g((HGt,Qee)=>{"use strict";var{kProxy:cL,kClose:Nee,kDestroy:_ee,kDispatch:Iee,kInterceptors:KGe}=cr(),{URL:sh}=require("node:url"),XGe=rm(),Ree=tm(),Tee=LA(),{InvalidArgumentError:nm,RequestAbortedError:ZGe,SecureProxyConnectionError:eHe}=xt(),See=dC(),Dee=em(),ix=Symbol("proxy agent"),sx=Symbol("proxy client"),dd=Symbol("proxy headers"),lL=Symbol("request tls settings"),Bee=Symbol("proxy tls settings"),xee=Symbol("connect endpoint function"),vee=Symbol("tunnel proxy");function tHe(t){return t==="https:"?443:80}o(tHe,"defaultProtocolPort");function rHe(t,e){return new Ree(t,e)}o(rHe,"defaultFactory");var nHe=o(()=>{},"noop");function iHe(t,e){return e.connections===1?new Dee(t,e):new Ree(t,e)}o(iHe,"defaultAgentFactory");var uL=class extends Tee{static{o(this,"Http1ProxyWrapper")}#e;constructor(e,{headers:r={},connect:n,factory:i}){if(super(),!e)throw new nm("Proxy URL is mandatory");this[dd]=r,i?this.#e=i(e,{connect:n}):this.#e=new Dee(e,{connect:n})}[Iee](e,r){let n=r.onHeaders;r.onHeaders=function(c,l,u){if(c===407){typeof r.onError=="function"&&r.onError(new nm("Proxy Authentication Required (407)"));return}n&&n.call(this,c,l,u)};let{origin:i,path:s="/",headers:a={}}=e;if(e.path=i+s,!("host"in a)&&!("Host"in a)){let{host:c}=new sh(i);a.host=c}return e.headers={...this[dd],...a},this.#e[Iee](e,r)}async[Nee](){return this.#e.close()}async[_ee](e){return this.#e.destroy(e)}},dL=class extends Tee{static{o(this,"ProxyAgent")}constructor(e){if(super(),!e||typeof e=="object"&&!(e instanceof sh)&&!e.uri)throw new nm("Proxy uri is mandatory");let{clientFactory:r=rHe}=e;if(typeof r!="function")throw new nm("Proxy opts.clientFactory must be a function.");let{proxyTunnel:n=!0}=e,i=this.#e(e),{href:s,origin:a,port:c,protocol:l,username:u,password:d,hostname:f}=i;if(this[cL]={uri:s,protocol:l},this[KGe]=e.interceptors?.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],this[lL]=e.requestTls,this[Bee]=e.proxyTls,this[dd]=e.headers||{},this[vee]=n,e.auth&&e.token)throw new nm("opts.auth cannot be used in combination with opts.token");e.auth?this[dd]["proxy-authorization"]=`Basic ${e.auth}`:e.token?this[dd]["proxy-authorization"]=e.token:u&&d&&(this[dd]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(u)}:${decodeURIComponent(d)}`).toString("base64")}`);let h=See({...e.proxyTls});this[xee]=See({...e.requestTls});let p=e.factory||iHe,m=o((A,E)=>{let{protocol:y}=new sh(A);return!this[vee]&&y==="http:"&&this[cL].protocol==="http:"?new uL(this[cL].uri,{headers:this[dd],connect:h,factory:p}):p(A,E)},"factory");this[sx]=r(i,{connect:h}),this[ix]=new XGe({...e,factory:m,connect:o(async(A,E)=>{let y=A.host;A.port||(y+=`:${tHe(A.protocol)}`);try{let{socket:C,statusCode:w}=await this[sx].connect({origin:a,port:c,path:y,signal:A.signal,headers:{...this[dd],host:A.host},servername:this[Bee]?.servername||f});if(w!==200&&(C.on("error",nHe).destroy(),E(new ZGe(`Proxy response (${w}) !== 200 when HTTP Tunneling`))),A.protocol!=="https:"){E(null,C);return}let B;this[lL]?B=this[lL].servername:B=A.servername,this[xee]({...A,servername:B,httpSocket:C},E)}catch(C){C.code==="ERR_TLS_CERT_ALTNAME_INVALID"?E(new eHe(C)):E(C)}},"connect")})}dispatch(e,r){let n=sHe(e.headers);if(oHe(n),n&&!("host"in n)&&!("Host"in n)){let{host:i}=new sh(e.origin);n.host=i}return this[ix].dispatch({...e,headers:n},r)}#e(e){return typeof e=="string"?new sh(e):e instanceof sh?e:new sh(e.uri)}async[Nee](){await this[ix].close(),await this[sx].close()}async[_ee](){await this[ix].destroy(),await this[sx].destroy()}};function sHe(t){if(Array.isArray(t)){let e={};for(let r=0;rr.toLowerCase()==="proxy-authorization"))throw new nm("Proxy-Authorization should be sent in ProxyAgent constructor")}o(oHe,"throwIfProxyAuthIsSent");Qee.exports=dL});var Mee=g((VGt,Fee)=>{"use strict";var aHe=LA(),{kClose:cHe,kDestroy:lHe,kClosed:kee,kDestroyed:Pee,kDispatch:uHe,kNoProxyAgent:kC,kHttpProxyAgent:fd,kHttpsProxyAgent:oh}=cr(),Oee=fL(),dHe=rm(),fHe={"http:":80,"https:":443},Lee=!1,hL=class extends aHe{static{o(this,"EnvHttpProxyAgent")}#e=null;#r=null;#n=null;constructor(e={}){super(),this.#n=e,Lee||(Lee=!0,process.emitWarning("EnvHttpProxyAgent is experimental, expect them to change at any time.",{code:"UNDICI-EHPA"}));let{httpProxy:r,httpsProxy:n,noProxy:i,...s}=e;this[kC]=new dHe(s);let a=r??process.env.http_proxy??process.env.HTTP_PROXY;a?this[fd]=new Oee({...s,uri:a}):this[fd]=this[kC];let c=n??process.env.https_proxy??process.env.HTTPS_PROXY;c?this[oh]=new Oee({...s,uri:c}):this[oh]=this[fd],this.#s()}[uHe](e,r){let n=new URL(e.origin);return this.#t(n).dispatch(e,r)}async[cHe](){await this[kC].close(),this[fd][kee]||await this[fd].close(),this[oh][kee]||await this[oh].close()}async[lHe](e){await this[kC].destroy(e),this[fd][Pee]||await this[fd].destroy(e),this[oh][Pee]||await this[oh].destroy(e)}#t(e){let{protocol:r,host:n,port:i}=e;return n=n.replace(/:\d*$/,"").toLowerCase(),i=Number.parseInt(i,10)||fHe[r]||0,this.#i(n,i)?r==="https:"?this[oh]:this[fd]:this[kC]}#i(e,r){if(this.#l&&this.#s(),this.#r.length===0)return!0;if(this.#e==="*")return!1;for(let n=0;n{"use strict";var PC=require("node:assert"),{kRetryHandlerDefaultRetry:Uee}=cr(),{RequestRetryError:ah}=xt(),{isDisturbed:qee,parseHeaders:hHe,parseRangeHeader:Gee,wrapRequestBody:pHe}=st();function AHe(t){let e=Date.now();return new Date(t).getTime()-e}o(AHe,"calculateRetryAfterHeader");function Hee(t,e,r,n){let i=t["content-length"];if(i==null||!Number.isFinite(e.start)||!Number.isFinite(e.end))return null;let s=Number(i),a=e.end-e.start+1;return!Number.isFinite(s)||s!==a?new ah("Content-Length mismatch",r,{headers:t,data:{count:n}}):null}o(Hee,"validatePartialResponseContentLength");var pL=class t{static{o(this,"RetryHandler")}constructor(e,r){let{retryOptions:n,...i}=e,{retry:s,maxRetries:a,maxTimeout:c,minTimeout:l,timeoutFactor:u,methods:d,errorCodes:f,retryAfter:h,statusCodes:p}=n??{};this.dispatch=r.dispatch,this.handler=r.handler,this.opts={...i,body:pHe(e.body)},this.abort=null,this.aborted=!1,this.retryOpts={retry:s??t[Uee],retryAfter:h??!0,maxTimeout:c??30*1e3,minTimeout:l??500,timeoutFactor:u??2,maxRetries:a??5,methods:d??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:p??[500,502,503,504,429],errorCodes:f??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE","UND_ERR_SOCKET"]},this.retryCount=0,this.retryCountCheckpoint=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.headersSent=!1,this.handler.onConnect(m=>{this.aborted=!0,this.abort?this.abort(m):this.reason=m})}checkpointResponseEnd(e,r){if(this.end==null&&this.opts.method!=="HEAD"){let n=e["content-length"];this.end=n!=null?Number(n)-1:null,PC(this.end==null||Number.isFinite(this.end),"invalid content-length")}this.resume=this.end!=null?r:null}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent()}onUpgrade(e,r,n){this.handler.onUpgrade&&this.handler.onUpgrade(e,r,n)}onConnect(e){this.aborted?e(this.reason):this.abort=e}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[Uee](e,{state:r,opts:n},i){let{statusCode:s,code:a,headers:c}=e,{method:l,retryOptions:u}=n,{maxRetries:d,minTimeout:f,maxTimeout:h,timeoutFactor:p,statusCodes:m,errorCodes:A,methods:E}=u,{counter:y}=r;if(a&&a!=="UND_ERR_REQ_RETRY"&&!A.includes(a)){i(e);return}if(Array.isArray(E)&&!E.includes(l)){i(e);return}if(s!=null&&Array.isArray(m)&&!m.includes(s)){i(e);return}if(y>d){i(e);return}let C=c?.["retry-after"];C&&(C=Number(C),C=Number.isNaN(C)?AHe(C):C*1e3);let w=C>0?Math.min(C,h):Math.min(f*p**(y-1),h);setTimeout(()=>i(null),w)}onHeaders(e,r,n,i){let s=hHe(r);if(this.retryCount+=1,e>=300)return this.retryOpts.statusCodes.includes(e)===!1?(this.headersSent=!0,this.checkpointResponseEnd(s,n),this.handler.onHeaders(e,r,n,i)):(this.abort(new ah("Request failed",e,{headers:s,data:{count:this.retryCount}})),!1);if(this.resume!=null){if(this.resume=null,e!==206&&(this.start>0||e!==200))return this.abort(new ah("server does not support the range header and the payload was partially consumed",e,{headers:s,data:{count:this.retryCount}})),!1;let c=Gee(s["content-range"]);if(!c)return this.abort(new ah("Content-Range mismatch",e,{headers:s,data:{count:this.retryCount}})),!1;if(this.etag!=null&&this.etag!==s.etag)return this.abort(new ah("ETag mismatch",e,{headers:s,data:{count:this.retryCount}})),!1;let l=Hee(s,c,e,this.retryCount);if(l!=null)return this.abort(l),!1;let{start:u,size:d,end:f=d-1}=c;return this.start!==u||this.end!=null&&this.end!==f?(this.abort(new ah("Content-Range mismatch",e,{headers:s,data:{count:this.retryCount}})),!1):(this.resume=n,!0)}if(this.end==null){if(e===206){let c=Gee(s["content-range"]);if(c==null)return this.headersSent=!0,this.handler.onHeaders(e,r,n,i);let l=Hee(s,c,e,this.retryCount);if(l!=null)return this.abort(l),!1;let{start:u,size:d,end:f=d-1}=c;PC(u!=null&&Number.isFinite(u),"content-range mismatch"),PC(f!=null&&Number.isFinite(f),"invalid content-length"),this.start=u,this.end=f}if(this.end==null){let c=s["content-length"];this.end=c!=null?Number(c)-1:null}return PC(Number.isFinite(this.start)),PC(this.end==null||Number.isFinite(this.end),"invalid content-length"),this.resume=n,this.headersSent=!0,this.etag=s.etag!=null?s.etag:null,this.etag!=null&&this.etag.startsWith("W/")&&(this.etag=null),this.handler.onHeaders(e,r,n,i)}let a=new ah("Request failed",e,{headers:s,data:{count:this.retryCount}});return this.abort(a),!1}onData(e){return this.start+=e.length,this.handler.onData(e)}onComplete(e){return this.retryCount=0,this.handler.onComplete(e)}onError(e){if(this.aborted||qee(this.opts.body)||this.headersSent&&this.resume==null)return this.handler.onError(e);this.retryCount-this.retryCountCheckpoint>0?this.retryCount=this.retryCountCheckpoint+(this.retryCount-this.retryCountCheckpoint):this.retryCount+=1,this.retryOpts.retry(e,{state:{counter:this.retryCount},opts:{retryOptions:this.retryOpts,...this.opts}},r.bind(this));function r(n){if(n!=null||this.aborted||qee(this.opts.body))return this.handler.onError(n);if(this.start!==0){let i={range:`bytes=${this.start}-${this.end??""}`};this.etag!=null&&(i["if-match"]=this.etag),this.opts={...this.opts,headers:{...this.opts.headers,...i}}}try{this.retryCountCheckpoint=this.retryCount,this.dispatch(this.opts,this)}catch(i){this.handler.onError(i)}}o(r,"onRetry")}};zee.exports=pL});var $ee=g((JGt,Vee)=>{"use strict";var mHe=lC(),gHe=ox(),AL=class extends mHe{static{o(this,"RetryAgent")}#e=null;#r=null;constructor(e,r={}){super(r),this.#e=e,this.#r=r}dispatch(e,r){let n=new gHe({...e,retryOptions:this.#r},{dispatch:this.#e.dispatch.bind(this.#e),handler:r});return this.#e.dispatch(e,n)}close(){return this.#e.close()}destroy(){return this.#e.destroy()}};Vee.exports=AL});var bL=g((KGt,tte)=>{"use strict";var Kee=require("node:assert"),{Readable:yHe}=require("node:stream"),{RequestAbortedError:Xee,NotSupportedError:EHe,InvalidArgumentError:CHe,AbortError:mL}=xt(),Zee=st(),{ReadableStreamFrom:bHe}=st(),Ns=Symbol("kConsume"),OC=Symbol("kReading"),hd=Symbol("kBody"),jee=Symbol("kAbort"),ete=Symbol("kContentType"),Wee=Symbol("kContentLength"),wHe=o(()=>{},"noop"),gL=class extends yHe{static{o(this,"BodyReadable")}constructor({resume:e,abort:r,contentType:n="",contentLength:i,highWaterMark:s=64*1024}){super({autoDestroy:!0,read:e,highWaterMark:s}),this._readableState.dataEmitted=!1,this[jee]=r,this[Ns]=null,this[hd]=null,this[ete]=n,this[Wee]=i,this[OC]=!1}destroy(e){return!e&&!this._readableState.endEmitted&&(e=new Xee),e&&this[jee](),super.destroy(e)}_destroy(e,r){this[OC]?r(e):setImmediate(()=>{r(e)})}on(e,...r){return(e==="data"||e==="readable")&&(this[OC]=!0),super.on(e,...r)}addListener(e,...r){return this.on(e,...r)}off(e,...r){let n=super.off(e,...r);return(e==="data"||e==="readable")&&(this[OC]=this.listenerCount("data")>0||this.listenerCount("readable")>0),n}removeListener(e,...r){return this.off(e,...r)}push(e){return this[Ns]&&e!==null?(EL(this[Ns],e),this[OC]?super.push(e):!0):super.push(e)}async text(){return LC(this,"text")}async json(){return LC(this,"json")}async blob(){return LC(this,"blob")}async bytes(){return LC(this,"bytes")}async arrayBuffer(){return LC(this,"arrayBuffer")}async formData(){throw new EHe}get bodyUsed(){return Zee.isDisturbed(this)}get body(){return this[hd]||(this[hd]=bHe(this),this[Ns]&&(this[hd].getReader(),Kee(this[hd].locked))),this[hd]}async dump(e){let r=Number.isFinite(e?.limit)?e.limit:131072,n=e?.signal;if(n!=null&&(typeof n!="object"||!("aborted"in n)))throw new CHe("signal must be an AbortSignal");return n?.throwIfAborted(),this._readableState.closeEmitted?null:await new Promise((i,s)=>{this[Wee]>r&&this.destroy(new mL);let a=o(()=>{this.destroy(n.reason??new mL)},"onAbort");n?.addEventListener("abort",a),this.on("close",function(){n?.removeEventListener("abort",a),n?.aborted?s(n.reason??new mL):i(null)}).on("error",wHe).on("data",function(c){r-=c.length,r<=0&&this.destroy()}).resume()})}};function IHe(t){return t[hd]&&t[hd].locked===!0||t[Ns]}o(IHe,"isLocked");function SHe(t){return Zee.isDisturbed(t)||IHe(t)}o(SHe,"isUnusable");async function LC(t,e){return Kee(!t[Ns]),new Promise((r,n)=>{if(SHe(t)){let i=t._readableState;i.destroyed&&i.closeEmitted===!1?t.on("error",s=>{n(s)}).on("close",()=>{n(new TypeError("unusable"))}):n(i.errored??new TypeError("unusable"))}else queueMicrotask(()=>{t[Ns]={type:e,stream:t,resolve:r,reject:n,length:0,body:[]},t.on("error",function(i){CL(this[Ns],i)}).on("close",function(){this[Ns].body!==null&&CL(this[Ns],new Xee)}),BHe(t[Ns])})})}o(LC,"consume");function BHe(t){if(t.body===null)return;let{_readableState:e}=t.stream;if(e.bufferIndex){let r=e.bufferIndex,n=e.buffer.length;for(let i=r;i2&&r[0]===239&&r[1]===187&&r[2]===191?3:0;return r.utf8Slice(i,n)}o(yL,"chunksDecode");function Jee(t,e){if(t.length===0||e===0)return new Uint8Array(0);if(t.length===1)return new Uint8Array(t[0]);let r=new Uint8Array(Buffer.allocUnsafeSlow(e).buffer),n=0;for(let i=0;i{var xHe=require("node:assert"),{ResponseStatusCodeError:rte}=xt(),{chunksDecode:nte}=bL(),vHe=128*1024;async function NHe({callback:t,body:e,contentType:r,statusCode:n,statusMessage:i,headers:s}){xHe(e);let a=[],c=0;try{for await(let f of e)if(a.push(f),c+=f.length,c>vHe){a=[],c=0;break}}catch{a=[],c=0}let l=`Response status code ${n}${i?`: ${i}`:""}`;if(n===204||!r||!c){queueMicrotask(()=>t(new rte(l,n,s)));return}let u=Error.stackTraceLimit;Error.stackTraceLimit=0;let d;try{ite(r)?d=JSON.parse(nte(a,c)):ste(r)&&(d=nte(a,c))}catch{}finally{Error.stackTraceLimit=u}queueMicrotask(()=>t(new rte(l,n,s,d)))}o(NHe,"getResolveErrorBodyCallback");var ite=o(t=>t.length>15&&t[11]==="/"&&t[0]==="a"&&t[1]==="p"&&t[2]==="p"&&t[3]==="l"&&t[4]==="i"&&t[5]==="c"&&t[6]==="a"&&t[7]==="t"&&t[8]==="i"&&t[9]==="o"&&t[10]==="n"&&t[12]==="j"&&t[13]==="s"&&t[14]==="o"&&t[15]==="n","isContentTypeApplicationJson"),ste=o(t=>t.length>4&&t[4]==="/"&&t[0]==="t"&&t[1]==="e"&&t[2]==="x"&&t[3]==="t","isContentTypeText");ote.exports={getResolveErrorBodyCallback:NHe,isContentTypeApplicationJson:ite,isContentTypeText:ste}});var lte=g((tHt,IL)=>{"use strict";var _He=require("node:assert"),{Readable:RHe}=bL(),{InvalidArgumentError:im,RequestAbortedError:ate}=xt(),_s=st(),{getResolveErrorBodyCallback:THe}=wL(),{AsyncResource:DHe}=require("node:async_hooks"),ax=class extends DHe{static{o(this,"RequestHandler")}constructor(e,r){if(!e||typeof e!="object")throw new im("invalid opts");let{signal:n,method:i,opaque:s,body:a,onInfo:c,responseHeaders:l,throwOnError:u,highWaterMark:d}=e;try{if(typeof r!="function")throw new im("invalid callback");if(d&&(typeof d!="number"||d<0))throw new im("invalid highWaterMark");if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new im("signal must be an EventEmitter or EventTarget");if(i==="CONNECT")throw new im("invalid method");if(c&&typeof c!="function")throw new im("invalid onInfo callback");super("UNDICI_REQUEST")}catch(f){throw _s.isStream(a)&&_s.destroy(a.on("error",_s.nop),f),f}this.method=i,this.responseHeaders=l||null,this.opaque=s||null,this.callback=r,this.res=null,this.abort=null,this.body=a,this.trailers={},this.context=null,this.onInfo=c||null,this.throwOnError=u,this.highWaterMark=d,this.signal=n,this.reason=null,this.removeAbortListener=null,_s.isStream(a)&&a.on("error",f=>{this.onError(f)}),this.signal&&(this.signal.aborted?this.reason=this.signal.reason??new ate:this.removeAbortListener=_s.addAbortListener(this.signal,()=>{this.reason=this.signal.reason??new ate,this.res?_s.destroy(this.res.on("error",_s.nop),this.reason):this.abort&&this.abort(this.reason),this.removeAbortListener&&(this.res?.off("close",this.removeAbortListener),this.removeAbortListener(),this.removeAbortListener=null)}))}onConnect(e,r){if(this.reason){e(this.reason);return}_He(this.callback),this.abort=e,this.context=r}onHeaders(e,r,n,i){let{callback:s,opaque:a,abort:c,context:l,responseHeaders:u,highWaterMark:d}=this,f=u==="raw"?_s.parseRawHeaders(r):_s.parseHeaders(r);if(e<200){this.onInfo&&this.onInfo({statusCode:e,headers:f});return}let h=u==="raw"?_s.parseHeaders(r):f,p=h["content-type"],m=h["content-length"],A=new RHe({resume:n,abort:c,contentType:p,contentLength:this.method!=="HEAD"&&m?Number(m):null,highWaterMark:d});this.removeAbortListener&&A.on("close",this.removeAbortListener),this.callback=null,this.res=A,s!==null&&(this.throwOnError&&e>=400?this.runInAsyncScope(THe,null,{callback:s,body:A,contentType:p,statusCode:e,statusMessage:i,headers:f}):this.runInAsyncScope(s,null,null,{statusCode:e,headers:f,trailers:this.trailers,opaque:a,body:A,context:l}))}onData(e){return this.res.push(e)}onComplete(e){_s.parseHeaders(e,this.trailers),this.res.push(null)}onError(e){let{res:r,callback:n,body:i,opaque:s}=this;n&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(n,null,e,{opaque:s})})),r&&(this.res=null,queueMicrotask(()=>{_s.destroy(r,e)})),i&&(this.body=null,_s.destroy(i,e)),this.removeAbortListener&&(r?.off("close",this.removeAbortListener),this.removeAbortListener(),this.removeAbortListener=null)}};function cte(t,e){if(e===void 0)return new Promise((r,n)=>{cte.call(this,t,(i,s)=>i?n(i):r(s))});try{this.dispatch(t,new ax(t,e))}catch(r){if(typeof e!="function")throw r;let n=t?.opaque;queueMicrotask(()=>e(r,{opaque:n}))}}o(cte,"request");IL.exports=cte;IL.exports.RequestHandler=ax});var FC=g((nHt,fte)=>{var{addAbortListener:QHe}=st(),{RequestAbortedError:kHe}=xt(),sm=Symbol("kListener"),lc=Symbol("kSignal");function ute(t){t.abort?t.abort(t[lc]?.reason):t.reason=t[lc]?.reason??new kHe,dte(t)}o(ute,"abort");function PHe(t,e){if(t.reason=null,t[lc]=null,t[sm]=null,!!e){if(e.aborted){ute(t);return}t[lc]=e,t[sm]=()=>{ute(t)},QHe(t[lc],t[sm])}}o(PHe,"addSignal");function dte(t){t[lc]&&("removeEventListener"in t[lc]?t[lc].removeEventListener("abort",t[sm]):t[lc].removeListener("abort",t[sm]),t[lc]=null,t[sm]=null)}o(dte,"removeSignal");fte.exports={addSignal:PHe,removeSignal:dte}});var mte=g((sHt,Ate)=>{"use strict";var OHe=require("node:assert"),{finished:LHe,PassThrough:FHe}=require("node:stream"),{InvalidArgumentError:om,InvalidReturnValueError:MHe}=xt(),Ca=st(),{getResolveErrorBodyCallback:UHe}=wL(),{AsyncResource:qHe}=require("node:async_hooks"),{addSignal:GHe,removeSignal:hte}=FC(),SL=class extends qHe{static{o(this,"StreamHandler")}constructor(e,r,n){if(!e||typeof e!="object")throw new om("invalid opts");let{signal:i,method:s,opaque:a,body:c,onInfo:l,responseHeaders:u,throwOnError:d}=e;try{if(typeof n!="function")throw new om("invalid callback");if(typeof r!="function")throw new om("invalid factory");if(i&&typeof i.on!="function"&&typeof i.addEventListener!="function")throw new om("signal must be an EventEmitter or EventTarget");if(s==="CONNECT")throw new om("invalid method");if(l&&typeof l!="function")throw new om("invalid onInfo callback");super("UNDICI_STREAM")}catch(f){throw Ca.isStream(c)&&Ca.destroy(c.on("error",Ca.nop),f),f}this.responseHeaders=u||null,this.opaque=a||null,this.factory=r,this.callback=n,this.res=null,this.abort=null,this.context=null,this.trailers=null,this.body=c,this.onInfo=l||null,this.throwOnError=d||!1,Ca.isStream(c)&&c.on("error",f=>{this.onError(f)}),GHe(this,i)}onConnect(e,r){if(this.reason){e(this.reason);return}OHe(this.callback),this.abort=e,this.context=r}onHeaders(e,r,n,i){let{factory:s,opaque:a,context:c,callback:l,responseHeaders:u}=this,d=u==="raw"?Ca.parseRawHeaders(r):Ca.parseHeaders(r);if(e<200){this.onInfo&&this.onInfo({statusCode:e,headers:d});return}this.factory=null;let f;if(this.throwOnError&&e>=400){let m=(u==="raw"?Ca.parseHeaders(r):d)["content-type"];f=new FHe,this.callback=null,this.runInAsyncScope(UHe,null,{callback:l,body:f,contentType:m,statusCode:e,statusMessage:i,headers:d})}else{if(s===null)return;if(f=this.runInAsyncScope(s,null,{statusCode:e,headers:d,opaque:a,context:c}),!f||typeof f.write!="function"||typeof f.end!="function"||typeof f.on!="function")throw new MHe("expected Writable");LHe(f,{readable:!1},p=>{let{callback:m,res:A,opaque:E,trailers:y,abort:C}=this;this.res=null,(p||!A.readable)&&Ca.destroy(A,p),this.callback=null,this.runInAsyncScope(m,null,p||null,{opaque:E,trailers:y}),p&&C()})}return f.on("drain",n),this.res=f,(f.writableNeedDrain!==void 0?f.writableNeedDrain:f._writableState?.needDrain)!==!0}onData(e){let{res:r}=this;return r?r.write(e):!0}onComplete(e){let{res:r}=this;hte(this),r&&(this.trailers=Ca.parseHeaders(e),r.end())}onError(e){let{res:r,callback:n,opaque:i,body:s}=this;hte(this),this.factory=null,r?(this.res=null,Ca.destroy(r,e)):n&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(n,null,e,{opaque:i})})),s&&(this.body=null,Ca.destroy(s,e))}};function pte(t,e,r){if(r===void 0)return new Promise((n,i)=>{pte.call(this,t,e,(s,a)=>s?i(s):n(a))});try{this.dispatch(t,new SL(t,e,r))}catch(n){if(typeof r!="function")throw n;let i=t?.opaque;queueMicrotask(()=>r(n,{opaque:i}))}}o(pte,"stream");Ate.exports=pte});var Cte=g((aHt,Ete)=>{"use strict";var{Readable:yte,Duplex:HHe,PassThrough:zHe}=require("node:stream"),{InvalidArgumentError:MC,InvalidReturnValueError:VHe,RequestAbortedError:BL}=xt(),mo=st(),{AsyncResource:$He}=require("node:async_hooks"),{addSignal:jHe,removeSignal:WHe}=FC(),gte=require("node:assert"),am=Symbol("resume"),xL=class extends yte{static{o(this,"PipelineRequest")}constructor(){super({autoDestroy:!0}),this[am]=null}_read(){let{[am]:e}=this;e&&(this[am]=null,e())}_destroy(e,r){this._read(),r(e)}},vL=class extends yte{static{o(this,"PipelineResponse")}constructor(e){super({autoDestroy:!0}),this[am]=e}_read(){this[am]()}_destroy(e,r){!e&&!this._readableState.endEmitted&&(e=new BL),r(e)}},NL=class extends $He{static{o(this,"PipelineHandler")}constructor(e,r){if(!e||typeof e!="object")throw new MC("invalid opts");if(typeof r!="function")throw new MC("invalid handler");let{signal:n,method:i,opaque:s,onInfo:a,responseHeaders:c}=e;if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new MC("signal must be an EventEmitter or EventTarget");if(i==="CONNECT")throw new MC("invalid method");if(a&&typeof a!="function")throw new MC("invalid onInfo callback");super("UNDICI_PIPELINE"),this.opaque=s||null,this.responseHeaders=c||null,this.handler=r,this.abort=null,this.context=null,this.onInfo=a||null,this.req=new xL().on("error",mo.nop),this.ret=new HHe({readableObjectMode:e.objectMode,autoDestroy:!0,read:o(()=>{let{body:l}=this;l?.resume&&l.resume()},"read"),write:o((l,u,d)=>{let{req:f}=this;f.push(l,u)||f._readableState.destroyed?d():f[am]=d},"write"),destroy:o((l,u)=>{let{body:d,req:f,res:h,ret:p,abort:m}=this;!l&&!p._readableState.endEmitted&&(l=new BL),m&&l&&m(),mo.destroy(d,l),mo.destroy(f,l),mo.destroy(h,l),WHe(this),u(l)},"destroy")}).on("prefinish",()=>{let{req:l}=this;l.push(null)}),this.res=null,jHe(this,n)}onConnect(e,r){let{ret:n,res:i}=this;if(this.reason){e(this.reason);return}gte(!i,"pipeline cannot be retried"),gte(!n.destroyed),this.abort=e,this.context=r}onHeaders(e,r,n){let{opaque:i,handler:s,context:a}=this;if(e<200){if(this.onInfo){let l=this.responseHeaders==="raw"?mo.parseRawHeaders(r):mo.parseHeaders(r);this.onInfo({statusCode:e,headers:l})}return}this.res=new vL(n);let c;try{this.handler=null;let l=this.responseHeaders==="raw"?mo.parseRawHeaders(r):mo.parseHeaders(r);c=this.runInAsyncScope(s,null,{statusCode:e,headers:l,opaque:i,body:this.res,context:a})}catch(l){throw this.res.on("error",mo.nop),l}if(!c||typeof c.on!="function")throw new VHe("expected Readable");c.on("data",l=>{let{ret:u,body:d}=this;!u.push(l)&&d.pause&&d.pause()}).on("error",l=>{let{ret:u}=this;mo.destroy(u,l)}).on("end",()=>{let{ret:l}=this;l.push(null)}).on("close",()=>{let{ret:l}=this;l._readableState.ended||mo.destroy(l,new BL)}),this.body=c}onData(e){let{res:r}=this;return r.push(e)}onComplete(e){let{res:r}=this;r.push(null)}onError(e){let{ret:r}=this;this.handler=null,mo.destroy(r,e)}};function JHe(t,e){try{let r=new NL(t,e);return this.dispatch({...t,body:r.req},r),r.ret}catch(r){return new zHe().destroy(r)}}o(JHe,"pipeline");Ete.exports=JHe});var xte=g((lHt,Bte)=>{"use strict";var{InvalidArgumentError:_L,SocketError:YHe}=xt(),{AsyncResource:KHe}=require("node:async_hooks"),bte=st(),{addSignal:XHe,removeSignal:wte}=FC(),Ite=require("node:assert"),RL=class extends KHe{static{o(this,"UpgradeHandler")}constructor(e,r){if(!e||typeof e!="object")throw new _L("invalid opts");if(typeof r!="function")throw new _L("invalid callback");let{signal:n,opaque:i,responseHeaders:s}=e;if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new _L("signal must be an EventEmitter or EventTarget");super("UNDICI_UPGRADE"),this.responseHeaders=s||null,this.opaque=i||null,this.callback=r,this.abort=null,this.context=null,XHe(this,n)}onConnect(e,r){if(this.reason){e(this.reason);return}Ite(this.callback),this.abort=e,this.context=null}onHeaders(){throw new YHe("bad upgrade",null)}onUpgrade(e,r,n){Ite(e===101);let{callback:i,opaque:s,context:a}=this;wte(this),this.callback=null;let c=this.responseHeaders==="raw"?bte.parseRawHeaders(r):bte.parseHeaders(r);this.runInAsyncScope(i,null,null,{headers:c,socket:n,opaque:s,context:a})}onError(e){let{callback:r,opaque:n}=this;wte(this),r&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(r,null,e,{opaque:n})}))}};function Ste(t,e){if(e===void 0)return new Promise((r,n)=>{Ste.call(this,t,(i,s)=>i?n(i):r(s))});try{let r=new RL(t,e);this.dispatch({...t,method:t.method||"GET",upgrade:t.protocol||"Websocket"},r)}catch(r){if(typeof e!="function")throw r;let n=t?.opaque;queueMicrotask(()=>e(r,{opaque:n}))}}o(Ste,"upgrade");Bte.exports=Ste});var Tte=g((dHt,Rte)=>{"use strict";var ZHe=require("node:assert"),{AsyncResource:e5e}=require("node:async_hooks"),{InvalidArgumentError:TL,SocketError:t5e}=xt(),vte=st(),{addSignal:r5e,removeSignal:Nte}=FC(),DL=class extends e5e{static{o(this,"ConnectHandler")}constructor(e,r){if(!e||typeof e!="object")throw new TL("invalid opts");if(typeof r!="function")throw new TL("invalid callback");let{signal:n,opaque:i,responseHeaders:s}=e;if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new TL("signal must be an EventEmitter or EventTarget");super("UNDICI_CONNECT"),this.opaque=i||null,this.responseHeaders=s||null,this.callback=r,this.abort=null,r5e(this,n)}onConnect(e,r){if(this.reason){e(this.reason);return}ZHe(this.callback),this.abort=e,this.context=r}onHeaders(){throw new t5e("bad connect",null)}onUpgrade(e,r,n){let{callback:i,opaque:s,context:a}=this;Nte(this),this.callback=null;let c=r;c!=null&&(c=this.responseHeaders==="raw"?vte.parseRawHeaders(r):vte.parseHeaders(r)),this.runInAsyncScope(i,null,null,{statusCode:e,headers:c,socket:n,opaque:s,context:a})}onError(e){let{callback:r,opaque:n}=this;Nte(this),r&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(r,null,e,{opaque:n})}))}};function _te(t,e){if(e===void 0)return new Promise((r,n)=>{_te.call(this,t,(i,s)=>i?n(i):r(s))});try{let r=new DL(t,e);this.dispatch({...t,method:"CONNECT"},r)}catch(r){if(typeof e!="function")throw r;let n=t?.opaque;queueMicrotask(()=>e(r,{opaque:n}))}}o(_te,"connect");Rte.exports=_te});var Dte=g((hHt,cm)=>{"use strict";cm.exports.request=lte();cm.exports.stream=mte();cm.exports.pipeline=Cte();cm.exports.upgrade=xte();cm.exports.connect=Tte()});var kL=g((pHt,kte)=>{"use strict";var{UndiciError:n5e}=xt(),Qte=Symbol.for("undici.error.UND_MOCK_ERR_MOCK_NOT_MATCHED"),QL=class t extends n5e{static{o(this,"MockNotMatchedError")}constructor(e){super(e),Error.captureStackTrace(this,t),this.name="MockNotMatchedError",this.message=e||"The request does not match any registered mock dispatches",this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED"}static[Symbol.hasInstance](e){return e&&e[Qte]===!0}[Qte]=!0};kte.exports={MockNotMatchedError:QL}});var lm=g((mHt,Pte)=>{"use strict";Pte.exports={kAgent:Symbol("agent"),kOptions:Symbol("options"),kFactory:Symbol("factory"),kDispatches:Symbol("dispatches"),kDispatchKey:Symbol("dispatch key"),kDefaultHeaders:Symbol("default headers"),kDefaultTrailers:Symbol("default trailers"),kContentLength:Symbol("content length"),kMockAgent:Symbol("mock agent"),kMockAgentSet:Symbol("mock agent set"),kMockAgentGet:Symbol("mock agent get"),kMockDispatch:Symbol("mock dispatch"),kClose:Symbol("close"),kOriginalClose:Symbol("original agent close"),kOrigin:Symbol("origin"),kIsMockActive:Symbol("is mock active"),kNetConnect:Symbol("net connect"),kGetNetConnect:Symbol("get net connect"),kConnected:Symbol("connected")}});var UC=g((gHt,$te)=>{"use strict";var{MockNotMatchedError:ch}=kL(),{kDispatches:cx,kMockAgent:i5e,kOriginalDispatch:s5e,kOrigin:o5e,kGetNetConnect:a5e}=lm(),{buildURL:c5e}=st(),{STATUS_CODES:l5e}=require("node:http"),{types:{isPromise:u5e}}=require("node:util");function Xl(t,e){return typeof t=="string"?t===e:t instanceof RegExp?t.test(e):typeof t=="function"?t(e)===!0:!1}o(Xl,"matchValue");function Lte(t){return Object.fromEntries(Object.entries(t).map(([e,r])=>[e.toLocaleLowerCase(),r]))}o(Lte,"lowerCaseEntries");function Fte(t,e){if(Array.isArray(t)){for(let r=0;r"u")return!0;if(typeof e!="object"||typeof t.headers!="object")return!1;for(let[r,n]of Object.entries(t.headers)){let i=Fte(e,r);if(!Xl(n,i))return!1}return!0}o(Mte,"matchHeaders");function Ote(t){if(typeof t!="string")return t;let e=t.split("?");if(e.length!==2)return t;let r=new URLSearchParams(e.pop());return r.sort(),[...e,r.toString()].join("?")}o(Ote,"safeUrl");function d5e(t,{path:e,method:r,body:n,headers:i}){let s=Xl(t.path,e),a=Xl(t.method,r),c=typeof t.body<"u"?Xl(t.body,n):!0,l=Mte(t,i);return s&&a&&c&&l}o(d5e,"matchKey");function Ute(t){return Buffer.isBuffer(t)||t instanceof Uint8Array||t instanceof ArrayBuffer?t:typeof t=="object"?JSON.stringify(t):t.toString()}o(Ute,"getResponseData");function qte(t,e){let r=e.query?c5e(e.path,e.query):e.path,n=typeof r=="string"?Ote(r):r,i=t.filter(({consumed:s})=>!s).filter(({path:s})=>Xl(Ote(s),n));if(i.length===0)throw new ch(`Mock dispatch not matched for path '${n}'`);if(i=i.filter(({method:s})=>Xl(s,e.method)),i.length===0)throw new ch(`Mock dispatch not matched for method '${e.method}' on path '${n}'`);if(i=i.filter(({body:s})=>typeof s<"u"?Xl(s,e.body):!0),i.length===0)throw new ch(`Mock dispatch not matched for body '${e.body}' on path '${n}'`);if(i=i.filter(s=>Mte(s,e.headers)),i.length===0){let s=typeof e.headers=="object"?JSON.stringify(e.headers):e.headers;throw new ch(`Mock dispatch not matched for headers '${s}' on path '${n}'`)}return i[0]}o(qte,"getMockDispatch");function f5e(t,e,r){let n={timesInvoked:0,times:1,persist:!1,consumed:!1},i=typeof r=="function"?{callback:r}:{...r},s={...n,...e,pending:!0,data:{error:null,...i}};return t.push(s),s}o(f5e,"addMockDispatch");function PL(t,e){let r=t.findIndex(n=>n.consumed?d5e(n,e):!1);r!==-1&&t.splice(r,1)}o(PL,"deleteMockDispatch");function Gte(t){let{path:e,method:r,body:n,headers:i,query:s}=t;return{path:e,method:r,body:n,headers:i,query:s}}o(Gte,"buildKey");function OL(t){let e=Object.keys(t),r=[];for(let n=0;n=h,n.pending=f0?setTimeout(()=>{p(this[cx])},u):p(this[cx]);function p(A,E=s){let y=Array.isArray(t.headers)?LL(t.headers):t.headers,C=typeof E=="function"?E({...t,headers:y}):E;if(u5e(C)){C.then(U=>p(A,U));return}let w=Ute(C),B=OL(a),P=OL(c);e.onConnect?.(U=>e.onError(U),null),e.onHeaders?.(i,B,m,Hte(i)),e.onData?.(Buffer.from(w)),e.onComplete?.(P),PL(A,r)}o(p,"handleReply");function m(){}return o(m,"resume"),!0}o(zte,"mockDispatch");function p5e(){let t=this[i5e],e=this[o5e],r=this[s5e];return o(function(i,s){if(t.isMockActive)try{zte.call(this,i,s)}catch(a){if(a instanceof ch){let c=t[a5e]();if(c===!1)throw new ch(`${a.message}: subsequent request to origin ${e} was not allowed (net.connect disabled)`);if(Vte(c,e))r.call(this,i,s);else throw new ch(`${a.message}: subsequent request to origin ${e} was not allowed (net.connect is not enabled for this origin)`)}else throw a}else r.call(this,i,s)},"dispatch")}o(p5e,"buildMockDispatch");function Vte(t,e){let r=new URL(e);return t===!0?!0:!!(Array.isArray(t)&&t.some(n=>Xl(n,r.host)))}o(Vte,"checkNetConnect");function A5e(t){if(t){let{agent:e,...r}=t;return r}}o(A5e,"buildMockOptions");$te.exports={getResponseData:Ute,getMockDispatch:qte,addMockDispatch:f5e,deleteMockDispatch:PL,buildKey:Gte,generateKeyValues:OL,matchValue:Xl,getResponse:h5e,getStatusText:Hte,mockDispatch:zte,buildMockDispatch:p5e,checkNetConnect:Vte,buildMockOptions:A5e,getHeaderByName:Fte,buildHeadersFromArray:LL}});var zL=g((EHt,HL)=>{"use strict";var{getResponseData:m5e,buildKey:g5e,addMockDispatch:FL}=UC(),{kDispatches:lx,kDispatchKey:ux,kDefaultHeaders:ML,kDefaultTrailers:UL,kContentLength:qL,kMockDispatch:dx}=lm(),{InvalidArgumentError:uc}=xt(),{buildURL:y5e}=st(),um=class{static{o(this,"MockScope")}constructor(e){this[dx]=e}delay(e){if(typeof e!="number"||!Number.isInteger(e)||e<=0)throw new uc("waitInMs must be a valid integer > 0");return this[dx].delay=e,this}persist(){return this[dx].persist=!0,this}times(e){if(typeof e!="number"||!Number.isInteger(e)||e<=0)throw new uc("repeatTimes must be a valid integer > 0");return this[dx].times=e,this}},GL=class{static{o(this,"MockInterceptor")}constructor(e,r){if(typeof e!="object")throw new uc("opts must be an object");if(typeof e.path>"u")throw new uc("opts.path must be defined");if(typeof e.method>"u"&&(e.method="GET"),typeof e.path=="string")if(e.query)e.path=y5e(e.path,e.query);else{let n=new URL(e.path,"data://");e.path=n.pathname+n.search}typeof e.method=="string"&&(e.method=e.method.toUpperCase()),this[ux]=g5e(e),this[lx]=r,this[ML]={},this[UL]={},this[qL]=!1}createMockScopeDispatchData({statusCode:e,data:r,responseOptions:n}){let i=m5e(r),s=this[qL]?{"content-length":i.length}:{},a={...this[ML],...s,...n.headers},c={...this[UL],...n.trailers};return{statusCode:e,data:r,headers:a,trailers:c}}validateReplyParameters(e){if(typeof e.statusCode>"u")throw new uc("statusCode must be defined");if(typeof e.responseOptions!="object"||e.responseOptions===null)throw new uc("responseOptions must be an object")}reply(e){if(typeof e=="function"){let s=o(c=>{let l=e(c);if(typeof l!="object"||l===null)throw new uc("reply options callback must return an object");let u={data:"",responseOptions:{},...l};return this.validateReplyParameters(u),{...this.createMockScopeDispatchData(u)}},"wrappedDefaultsCallback"),a=FL(this[lx],this[ux],s);return new um(a)}let r={statusCode:e,data:arguments[1]===void 0?"":arguments[1],responseOptions:arguments[2]===void 0?{}:arguments[2]};this.validateReplyParameters(r);let n=this.createMockScopeDispatchData(r),i=FL(this[lx],this[ux],n);return new um(i)}replyWithError(e){if(typeof e>"u")throw new uc("error must be defined");let r=FL(this[lx],this[ux],{error:e});return new um(r)}defaultReplyHeaders(e){if(typeof e>"u")throw new uc("headers must be defined");return this[ML]=e,this}defaultReplyTrailers(e){if(typeof e>"u")throw new uc("trailers must be defined");return this[UL]=e,this}replyContentLength(){return this[qL]=!0,this}};HL.exports.MockInterceptor=GL;HL.exports.MockScope=um});var jL=g((bHt,Zte)=>{"use strict";var{promisify:E5e}=require("node:util"),C5e=em(),{buildMockDispatch:b5e}=UC(),{kDispatches:jte,kMockAgent:Wte,kClose:Jte,kOriginalClose:Yte,kOrigin:Kte,kOriginalDispatch:w5e,kConnected:VL}=lm(),{MockInterceptor:I5e}=zL(),Xte=cr(),{InvalidArgumentError:S5e}=xt(),$L=class extends C5e{static{o(this,"MockClient")}constructor(e,r){if(super(e,r),!r||!r.agent||typeof r.agent.dispatch!="function")throw new S5e("Argument opts.agent must implement Agent");this[Wte]=r.agent,this[Kte]=e,this[jte]=[],this[VL]=1,this[w5e]=this.dispatch,this[Yte]=this.close.bind(this),this.dispatch=b5e.call(this),this.close=this[Jte]}get[Xte.kConnected](){return this[VL]}intercept(e){return new I5e(e,this[jte])}async[Jte](){await E5e(this[Yte])(),this[VL]=0,this[Wte][Xte.kClients].delete(this[Kte])}};Zte.exports=$L});var YL=g((IHt,ore)=>{"use strict";var{promisify:B5e}=require("node:util"),x5e=tm(),{buildMockDispatch:v5e}=UC(),{kDispatches:ere,kMockAgent:tre,kClose:rre,kOriginalClose:nre,kOrigin:ire,kOriginalDispatch:N5e,kConnected:WL}=lm(),{MockInterceptor:_5e}=zL(),sre=cr(),{InvalidArgumentError:R5e}=xt(),JL=class extends x5e{static{o(this,"MockPool")}constructor(e,r){if(super(e,r),!r||!r.agent||typeof r.agent.dispatch!="function")throw new R5e("Argument opts.agent must implement Agent");this[tre]=r.agent,this[ire]=e,this[ere]=[],this[WL]=1,this[N5e]=this.dispatch,this[nre]=this.close.bind(this),this.dispatch=v5e.call(this),this.close=this[rre]}get[sre.kConnected](){return this[WL]}intercept(e){return new _5e(e,this[ere])}async[rre](){await B5e(this[nre])(),this[WL]=0,this[tre][sre.kClients].delete(this[ire])}};ore.exports=JL});var cre=g((xHt,are)=>{"use strict";var T5e={pronoun:"it",is:"is",was:"was",this:"this"},D5e={pronoun:"they",is:"are",was:"were",this:"these"};are.exports=class{static{o(this,"Pluralizer")}constructor(e,r){this.singular=e,this.plural=r}pluralize(e){let r=e===1,n=r?T5e:D5e,i=r?this.singular:this.plural;return{...n,count:e,noun:i}}}});var ure=g((_Ht,lre)=>{"use strict";var{Transform:Q5e}=require("node:stream"),{Console:k5e}=require("node:console"),P5e=process.versions.icu?"\u2705":"Y ",O5e=process.versions.icu?"\u274C":"N ";lre.exports=class{static{o(this,"PendingInterceptorsFormatter")}constructor({disableColors:e}={}){this.transform=new Q5e({transform(r,n,i){i(null,r)}}),this.logger=new k5e({stdout:this.transform,inspectOptions:{colors:!e&&!process.env.CI}})}format(e){let r=e.map(({method:n,path:i,data:{statusCode:s},persist:a,times:c,timesInvoked:l,origin:u})=>({Method:n,Origin:u,Path:i,"Status code":s,Persistent:a?P5e:O5e,Invocations:l,Remaining:a?1/0:c-l}));return this.logger.table(r),this.transform.read().toString()}}});var pre=g((THt,hre)=>{"use strict";var{kClients:lh}=cr(),L5e=rm(),{kAgent:KL,kMockAgentSet:fx,kMockAgentGet:dre,kDispatches:XL,kIsMockActive:hx,kNetConnect:uh,kGetNetConnect:F5e,kOptions:px,kFactory:Ax}=lm(),M5e=jL(),U5e=YL(),{matchValue:q5e,buildMockOptions:G5e}=UC(),{InvalidArgumentError:fre,UndiciError:H5e}=xt(),z5e=lC(),V5e=cre(),$5e=ure(),ZL=class extends z5e{static{o(this,"MockAgent")}constructor(e){if(super(e),this[uh]=!0,this[hx]=!0,e?.agent&&typeof e.agent.dispatch!="function")throw new fre("Argument opts.agent must implement Agent");let r=e?.agent?e.agent:new L5e(e);this[KL]=r,this[lh]=r[lh],this[px]=G5e(e)}get(e){let r=this[dre](e);return r||(r=this[Ax](e),this[fx](e,r)),r}dispatch(e,r){return this.get(e.origin),this[KL].dispatch(e,r)}async close(){await this[KL].close(),this[lh].clear()}deactivate(){this[hx]=!1}activate(){this[hx]=!0}enableNetConnect(e){if(typeof e=="string"||typeof e=="function"||e instanceof RegExp)Array.isArray(this[uh])?this[uh].push(e):this[uh]=[e];else if(typeof e>"u")this[uh]=!0;else throw new fre("Unsupported matcher. Must be one of String|Function|RegExp.")}disableNetConnect(){this[uh]=!1}get isMockActive(){return this[hx]}[fx](e,r){this[lh].set(e,r)}[Ax](e){let r=Object.assign({agent:this},this[px]);return this[px]&&this[px].connections===1?new M5e(e,r):new U5e(e,r)}[dre](e){let r=this[lh].get(e);if(r)return r;if(typeof e!="string"){let n=this[Ax]("http://localhost:9999");return this[fx](e,n),n}for(let[n,i]of Array.from(this[lh]))if(i&&typeof n!="string"&&q5e(n,e)){let s=this[Ax](e);return this[fx](e,s),s[XL]=i[XL],s}}[F5e](){return this[uh]}pendingInterceptors(){let e=this[lh];return Array.from(e.entries()).flatMap(([r,n])=>n[XL].map(i=>({...i,origin:r}))).filter(({pending:r})=>r)}assertNoPendingInterceptors({pendingInterceptorsFormatter:e=new $5e}={}){let r=this.pendingInterceptors();if(r.length===0)return;let n=new V5e("interceptor","interceptors").pluralize(r.length);throw new H5e(` ${n.count} ${n.noun} ${n.is} pending: ${e.format(r)} -`.trim())}};fre.exports=XL});var Ax=g((RHt,gre)=>{"use strict";var pre=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:z5e}=xt(),V5e=tm();mre()===void 0&&Are(new V5e);function Are(t){if(!t||typeof t.dispatch!="function")throw new z5e("Argument agent must implement Agent");Object.defineProperty(globalThis,pre,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(Are,"setGlobalDispatcher");function mre(){return globalThis[pre]}o(mre,"getGlobalDispatcher");gre.exports={setGlobalDispatcher:Are,getGlobalDispatcher:mre}});var mx=g((DHt,yre)=>{"use strict";yre.exports=class{static{o(this,"DecoratorHandler")}#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var Cre=g((kHt,Ere)=>{"use strict";var $5e=WB();Ere.exports=t=>{let e=t?.maxRedirections;return r=>o(function(i,s){let{maxRedirections:a=e,...c}=i;if(!a)return r(i,s);let l=new $5e(r,a,i,s);return r(c,l)},"redirectInterceptor")}});var wre=g((OHt,bre)=>{"use strict";var j5e=sx();bre.exports=t=>e=>o(function(n,i){return e(n,new j5e({...n,retryOptions:{...t,...n.retryOptions}},{handler:i,dispatch:e}))},"retryInterceptor")});var Sre=g((FHt,Ire)=>{"use strict";var W5e=st(),{InvalidArgumentError:J5e,RequestAbortedError:Y5e}=xt(),K5e=mx(),ZL=class extends K5e{static{o(this,"DumpHandler")}#e=1024*1024;#r=null;#n=!1;#t=!1;#i=0;#s=null;#l=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new J5e("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#l=r}onConnect(e){this.#r=e,this.#l.onConnect(this.#a.bind(this))}#a(e){this.#t=!0,this.#s=e}onHeaders(e,r,n,i){let a=W5e.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new Y5e(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#t?!0:this.#l.onHeaders(e,r,n,i)}onError(e){this.#n||(e=this.#s??e,this.#l.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#n=!0,this.#t?this.#l.onError(this.#s):this.#l.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#t){this.#l.onError(this.reason);return}this.#l.onComplete(e)}}};function X5e({maxSize:t}={maxSize:1024*1024}){return e=>o(function(n,i){let{dumpMaxSize:s=t}=n,a=new ZL({maxSize:s},i);return e(n,a)},"Intercept")}o(X5e,"createDumpInterceptor");Ire.exports=X5e});var vre=g((UHt,xre)=>{"use strict";var{isIP:Z5e}=require("node:net"),{lookup:eze}=require("node:dns"),tze=mx(),{InvalidArgumentError:um,InformationalError:rze}=xt(),Bre=Math.pow(2,31)-1,eF=class{static{o(this,"DNSInstance")}#e=0;#r=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#r=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#t,this.pick=e.pick??this.#i}get full(){return this.#n.size===this.#r}runLookup(e,r,n){let i=this.#n.get(e.hostname);if(i==null&&this.full){n(null,e.origin);return}let s={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#r};if(i==null)this.lookup(e,s,(a,c)=>{if(a||c==null||c.length===0){n(a??new rze("No DNS entries found"));return}this.setRecords(e,c);let l=this.#n.get(e.hostname),u=this.pick(e,l,s.affinity),d;typeof u.port=="number"?d=`:${u.port}`:e.port!==""?d=`:${e.port}`:d="",n(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${d}`)});else{let a=this.pick(e,i,s.affinity);if(a==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#t(e,r,n){eze(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(i,s)=>{if(i)return n(i);let a=new Map;for(let c of s)a.set(`${c.address}:${c.family}`,c);n(null,a.values())})}#i(e,r,n){let i=null,{records:s,offset:a}=r,c;if(this.dualStack?(n==null&&(a==null||a===Bre?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),s[n]!=null&&s[n].ips.length>0?c=s[n]:c=s[n===4?6:4]):c=s[n],c==null||c.ips.length===0)return i;c.offset==null||c.offset===Bre?c.offset=0:c.offset++;let l=c.offset%c.ips.length;return i=c.ips[l]??null,i==null?i:Date.now()-i.timestamp>i.ttl?(c.ips.splice(l,1),this.pick(e,r,n)):i}setRecords(e,r){let n=Date.now(),i={records:{4:null,6:null}};for(let s of r){s.timestamp=n,typeof s.ttl=="number"?s.ttl=Math.min(s.ttl,this.#e):s.ttl=this.#e;let a=i.records[s.family]??{ips:[]};a.ips.push(s),i.records[s.family]=a}this.#n.set(e.hostname,i)}getHandler(e,r){return new tF(this,e,r)}},tF=class extends tze{static{o(this,"DNSDispatchHandler")}#e=null;#r=null;#n=null;#t=null;#i=null;constructor(e,{origin:r,handler:n,dispatch:i},s){super(n),this.#i=r,this.#t=n,this.#r={...s},this.#e=e,this.#n=i}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#r,(r,n)=>{if(r)return this.#t.onError(r);let i={...this.#r,origin:n};this.#n(i,this)});return}this.#t.onError(e);return}case"ENOTFOUND":this.#e.deleteRecord(this.#i);default:this.#t.onError(e);break}}};xre.exports=t=>{if(t?.maxTTL!=null&&(typeof t?.maxTTL!="number"||t?.maxTTL<0))throw new um("Invalid maxTTL. Must be a positive number");if(t?.maxItems!=null&&(typeof t?.maxItems!="number"||t?.maxItems<1))throw new um("Invalid maxItems. Must be a positive number and greater than zero");if(t?.affinity!=null&&t?.affinity!==4&&t?.affinity!==6)throw new um("Invalid affinity. Must be either 4 or 6");if(t?.dualStack!=null&&typeof t?.dualStack!="boolean")throw new um("Invalid dualStack. Must be a boolean");if(t?.lookup!=null&&typeof t?.lookup!="function")throw new um("Invalid lookup. Must be a function");if(t?.pick!=null&&typeof t?.pick!="function")throw new um("Invalid pick. Must be a function");let e=t?.dualStack??!0,r;e?r=t?.affinity??null:r=t?.affinity??4;let n={maxTTL:t?.maxTTL??1e4,lookup:t?.lookup??null,pick:t?.pick??null,dualStack:e,affinity:r,maxItems:t?.maxItems??1/0},i=new eF(n);return s=>o(function(c,l){let u=c.origin.constructor===URL?c.origin:new URL(c.origin);return Z5e(u.hostname)!==0?s(c,l):(i.runLookup(u,c,(d,f)=>{if(d)return l.onError(d);let h=null;h={...c,servername:u.hostname,origin:f,headers:{host:u.hostname,...c.headers}},s(h,i.getHandler({origin:u,dispatch:s,handler:l},c))}),!0)},"dnsInterceptor")}});var uh=g((GHt,kre)=>{"use strict";var{kConstruct:nze}=cr(),{kEnumerableProperty:dm}=st(),{iteratorMixin:ize,isValidHeaderName:UC,isValidHeaderValue:Rre}=xs(),{webidl:wt}=qn(),rF=require("node:assert"),gx=require("node:util"),Zr=Symbol("headers map"),_s=Symbol("headers map sorted");function Nre(t){return t===10||t===13||t===9||t===32}o(Nre,"isHTTPWhiteSpaceCharCode");function _re(t){let e=0,r=t.length;for(;r>e&&Nre(t.charCodeAt(r-1));)--r;for(;r>e&&Nre(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}o(_re,"headerValueNormalize");function Tre(t,e){if(Array.isArray(e))for(let r=0;r>","record"]})}o(Tre,"fill");function nF(t,e,r){if(r=_re(r),UC(e)){if(!Rre(r))throw wt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw wt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(Qre(t)==="immutable")throw new TypeError("immutable");return iF(t).append(e,r,!1)}o(nF,"appendHeader");function Dre(t,e){return t[0]>1),r[u][0]<=d[0]?l=u+1:c=u;if(s!==u){for(a=s;a>l;)r[a]=r[--a];r[l]=d}}if(!n.next().done)throw new TypeError("Unreachable");return r}else{let n=0;for(let{0:i,1:{value:s}}of this[Zr])r[n++]=[i,s],rF(s!==null);return r.sort(Dre)}}},ba=class t{static{o(this,"Headers")}#e;#r;constructor(e=void 0){wt.util.markAsUncloneable(this),e!==nze&&(this.#r=new yx,this.#e="none",e!==void 0&&(e=wt.converters.HeadersInit(e,"Headers contructor","init"),Tre(this,e)))}append(e,r){wt.brandCheck(this,t),wt.argumentLengthCheck(arguments,2,"Headers.append");let n="Headers.append";return e=wt.converters.ByteString(e,n,"name"),r=wt.converters.ByteString(r,n,"value"),nF(this,e,r)}delete(e){if(wt.brandCheck(this,t),wt.argumentLengthCheck(arguments,1,"Headers.delete"),e=wt.converters.ByteString(e,"Headers.delete","name"),!UC(e))throw wt.errors.invalidArgument({prefix:"Headers.delete",value:e,type:"header name"});if(this.#e==="immutable")throw new TypeError("immutable");this.#r.contains(e,!1)&&this.#r.delete(e,!1)}get(e){wt.brandCheck(this,t),wt.argumentLengthCheck(arguments,1,"Headers.get");let r="Headers.get";if(e=wt.converters.ByteString(e,r,"name"),!UC(e))throw wt.errors.invalidArgument({prefix:r,value:e,type:"header name"});return this.#r.get(e,!1)}has(e){wt.brandCheck(this,t),wt.argumentLengthCheck(arguments,1,"Headers.has");let r="Headers.has";if(e=wt.converters.ByteString(e,r,"name"),!UC(e))throw wt.errors.invalidArgument({prefix:r,value:e,type:"header name"});return this.#r.contains(e,!1)}set(e,r){wt.brandCheck(this,t),wt.argumentLengthCheck(arguments,2,"Headers.set");let n="Headers.set";if(e=wt.converters.ByteString(e,n,"name"),r=wt.converters.ByteString(r,n,"value"),r=_re(r),UC(e)){if(!Rre(r))throw wt.errors.invalidArgument({prefix:n,value:r,type:"header value"})}else throw wt.errors.invalidArgument({prefix:n,value:e,type:"header name"});if(this.#e==="immutable")throw new TypeError("immutable");this.#r.set(e,r,!1)}getSetCookie(){wt.brandCheck(this,t);let e=this.#r.cookies;return e?[...e]:[]}get[_s](){if(this.#r[_s])return this.#r[_s];let e=[],r=this.#r.toSortedArray(),n=this.#r.cookies;if(n===null||n.length===1)return this.#r[_s]=r;for(let i=0;i>"](t,e,r,n.bind(t)):wt.converters["record"](t,e,r)}throw wt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};kre.exports={fill:Tre,compareHeaderName:Dre,Headers:ba,HeadersList:yx,getHeadersGuard:Qre,setHeadersGuard:sze,setHeadersList:oze,getHeadersList:iF}});var GC=g((zHt,$re)=>{"use strict";var{Headers:Ure,HeadersList:Pre,fill:aze,getHeadersGuard:cze,setHeadersGuard:qre,setHeadersList:Gre}=uh(),{extractBody:Ore,cloneBody:lze,mixinBody:uze,hasFinalizationRegistry:Hre,streamRegistry:zre,bodyUnusable:dze}=VA(),sF=st(),Lre=require("node:util"),{kEnumerableProperty:Ts}=sF,{isValidReasonPhrase:fze,isCancelled:hze,isAborted:pze,isBlobLike:Aze,serializeJavascriptValueToJSONString:mze,isErrorLike:gze,isomorphicEncode:yze,environmentSettingsObject:Eze}=xs(),{redirectStatusSet:Cze,nullBodyStatus:bze}=dC(),{kState:ur,kHeaders:Xl}=rd(),{webidl:Ze}=qn(),{FormData:wze}=gC(),{URLSerializer:Fre}=Yi(),{kConstruct:Cx}=cr(),oF=require("node:assert"),{types:Ize}=require("node:util"),Sze=new TextEncoder("utf-8"),dh=class t{static{o(this,"Response")}static error(){return qC(bx(),"immutable")}static json(e,r={}){Ze.argumentLengthCheck(arguments,1,"Response.json"),r!==null&&(r=Ze.converters.ResponseInit(r));let n=Sze.encode(mze(e)),i=Ore(n),s=qC(fm({}),"response");return Mre(s,r,{body:i[0],type:"application/json"}),s}static redirect(e,r=302){Ze.argumentLengthCheck(arguments,1,"Response.redirect"),e=Ze.converters.USVString(e),r=Ze.converters["unsigned short"](r);let n;try{n=new URL(e,Eze.settingsObject.baseUrl)}catch(a){throw new TypeError(`Failed to parse URL from ${e}`,{cause:a})}if(!Cze.has(r))throw new RangeError(`Invalid status code ${r}`);let i=qC(fm({}),"immutable");i[ur].status=r;let s=yze(Fre(n));return i[ur].headersList.append("location",s,!0),i}constructor(e=null,r={}){if(Ze.util.markAsUncloneable(this),e===Cx)return;e!==null&&(e=Ze.converters.BodyInit(e)),r=Ze.converters.ResponseInit(r),this[ur]=fm({}),this[Xl]=new Ure(Cx),qre(this[Xl],"response"),Gre(this[Xl],this[ur].headersList);let n=null;if(e!=null){let[i,s]=Ore(e);n={body:i,type:s}}Mre(this,r,n)}get type(){return Ze.brandCheck(this,t),this[ur].type}get url(){Ze.brandCheck(this,t);let e=this[ur].urlList,r=e[e.length-1]??null;return r===null?"":Fre(r,!0)}get redirected(){return Ze.brandCheck(this,t),this[ur].urlList.length>1}get status(){return Ze.brandCheck(this,t),this[ur].status}get ok(){return Ze.brandCheck(this,t),this[ur].status>=200&&this[ur].status<=299}get statusText(){return Ze.brandCheck(this,t),this[ur].statusText}get headers(){return Ze.brandCheck(this,t),this[Xl]}get body(){return Ze.brandCheck(this,t),this[ur].body?this[ur].body.stream:null}get bodyUsed(){return Ze.brandCheck(this,t),!!this[ur].body&&sF.isDisturbed(this[ur].body.stream)}clone(){if(Ze.brandCheck(this,t),dze(this))throw Ze.errors.exception({header:"Response.clone",message:"Body has already been consumed."});let e=aF(this[ur]);return Hre&&this[ur].body?.stream&&zre.register(this,new WeakRef(this[ur].body.stream)),qC(e,cze(this[Xl]))}[Lre.inspect.custom](e,r){r.depth===null&&(r.depth=2),r.colors??=!0;let n={status:this.status,statusText:this.statusText,headers:this.headers,body:this.body,bodyUsed:this.bodyUsed,ok:this.ok,redirected:this.redirected,type:this.type,url:this.url};return`Response ${Lre.formatWithOptions(r,n)}`}};uze(dh);Object.defineProperties(dh.prototype,{type:Ts,url:Ts,status:Ts,ok:Ts,redirected:Ts,statusText:Ts,headers:Ts,clone:Ts,body:Ts,bodyUsed:Ts,[Symbol.toStringTag]:{value:"Response",configurable:!0}});Object.defineProperties(dh,{json:Ts,redirect:Ts,error:Ts});function aF(t){if(t.internalResponse)return Vre(aF(t.internalResponse),t.type);let e=fm({...t,body:null});return t.body!=null&&(e.body=lze(e,t.body)),e}o(aF,"cloneResponse");function fm(t){return{aborted:!1,rangeRequested:!1,timingAllowPassed:!1,requestIncludesCredentials:!1,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...t,headersList:t?.headersList?new Pre(t?.headersList):new Pre,urlList:t?.urlList?[...t.urlList]:[]}}o(fm,"makeResponse");function bx(t){let e=gze(t);return fm({type:"error",status:0,error:e?t:new Error(t&&String(t)),aborted:t&&t.name==="AbortError"})}o(bx,"makeNetworkError");function Bze(t){return t.type==="error"&&t.status===0}o(Bze,"isNetworkError");function Ex(t,e){return e={internalResponse:t,...e},new Proxy(t,{get(r,n){return n in e?e[n]:r[n]},set(r,n,i){return oF(!(n in e)),r[n]=i,!0}})}o(Ex,"makeFilteredResponse");function Vre(t,e){if(e==="basic")return Ex(t,{type:"basic",headersList:t.headersList});if(e==="cors")return Ex(t,{type:"cors",headersList:t.headersList});if(e==="opaque")return Ex(t,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null});if(e==="opaqueredirect")return Ex(t,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null});oF(!1)}o(Vre,"filterResponse");function xze(t,e=null){return oF(hze(t)),pze(t)?bx(Object.assign(new DOMException("The operation was aborted.","AbortError"),{cause:e})):bx(Object.assign(new DOMException("Request was cancelled."),{cause:e}))}o(xze,"makeAppropriateNetworkError");function Mre(t,e,r){if(e.status!==null&&(e.status<200||e.status>599))throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.');if("statusText"in e&&e.statusText!=null&&!fze(String(e.statusText)))throw new TypeError("Invalid statusText");if("status"in e&&e.status!=null&&(t[ur].status=e.status),"statusText"in e&&e.statusText!=null&&(t[ur].statusText=e.statusText),"headers"in e&&e.headers!=null&&aze(t[Xl],e.headers),r){if(bze.includes(t.status))throw Ze.errors.exception({header:"Response constructor",message:`Invalid response status code ${t.status}`});t[ur].body=r.body,r.type!=null&&!t[ur].headersList.contains("content-type",!0)&&t[ur].headersList.append("content-type",r.type,!0)}}o(Mre,"initializeResponse");function qC(t,e){let r=new dh(Cx);return r[ur]=t,r[Xl]=new Ure(Cx),Gre(r[Xl],t.headersList),qre(r[Xl],e),Hre&&t.body?.stream&&zre.register(r,new WeakRef(t.body.stream)),r}o(qC,"fromInnerResponse");Ze.converters.ReadableStream=Ze.interfaceConverter(ReadableStream);Ze.converters.FormData=Ze.interfaceConverter(wze);Ze.converters.URLSearchParams=Ze.interfaceConverter(URLSearchParams);Ze.converters.XMLHttpRequestBodyInit=function(t,e,r){return typeof t=="string"?Ze.converters.USVString(t,e,r):Aze(t)?Ze.converters.Blob(t,e,r,{strict:!1}):ArrayBuffer.isView(t)||Ize.isArrayBuffer(t)?Ze.converters.BufferSource(t,e,r):sF.isFormDataLike(t)?Ze.converters.FormData(t,e,r,{strict:!1}):t instanceof URLSearchParams?Ze.converters.URLSearchParams(t,e,r):Ze.converters.DOMString(t,e,r)};Ze.converters.BodyInit=function(t,e,r){return t instanceof ReadableStream?Ze.converters.ReadableStream(t,e,r):t?.[Symbol.asyncIterator]?t:Ze.converters.XMLHttpRequestBodyInit(t,e,r)};Ze.converters.ResponseInit=Ze.dictionaryConverter([{key:"status",converter:Ze.converters["unsigned short"],defaultValue:o(()=>200,"defaultValue")},{key:"statusText",converter:Ze.converters.ByteString,defaultValue:o(()=>"","defaultValue")},{key:"headers",converter:Ze.converters.HeadersInit}]);$re.exports={isNetworkError:Bze,makeNetworkError:bx,makeResponse:fm,makeAppropriateNetworkError:xze,filterResponse:Vre,Response:dh,cloneResponse:aF,fromInnerResponse:qC}});var Yre=g(($Ht,Jre)=>{"use strict";var{kConnected:jre,kSize:Wre}=cr(),cF=class{static{o(this,"CompatWeakRef")}constructor(e){this.value=e}deref(){return this.value[jre]===0&&this.value[Wre]===0?void 0:this.value}},lF=class{static{o(this,"CompatFinalizer")}constructor(e){this.finalizer=e}register(e,r){e.on&&e.on("disconnect",()=>{e[jre]===0&&e[Wre]===0&&this.finalizer(r)})}unregister(e){}};Jre.exports=function(){return process.env.NODE_V8_COVERAGE&&process.version.startsWith("v18")?(process._rawDebug("Using compatibility WeakRef and FinalizationRegistry"),{WeakRef:cF,FinalizationRegistry:lF}):{WeakRef,FinalizationRegistry}}});var hm=g((WHt,dne)=>{"use strict";var{extractBody:vze,mixinBody:Nze,cloneBody:Rze,bodyUnusable:Kre}=VA(),{Headers:one,fill:_ze,HeadersList:Bx,setHeadersGuard:dF,getHeadersGuard:Tze,setHeadersList:ane,getHeadersList:Xre}=uh(),{FinalizationRegistry:Dze}=Yre()(),Ix=st(),Zre=require("node:util"),{isValidHTTPToken:Qze,sameOrigin:ene,environmentSettingsObject:wx}=xs(),{forbiddenMethodsSet:kze,corsSafeListedMethodsSet:Pze,referrerPolicy:Oze,requestRedirect:Lze,requestMode:Fze,requestCredentials:Mze,requestCache:Uze,requestDuplex:qze}=dC(),{kEnumerableProperty:en,normalizedMethodRecordsBase:Gze,normalizedMethodRecords:Hze}=Ix,{kHeaders:Ds,kSignal:Sx,kState:Yt,kDispatcher:uF}=rd(),{webidl:Pe}=qn(),{URLSerializer:zze}=Yi(),{kConstruct:xx}=cr(),Vze=require("node:assert"),{getMaxListeners:tne,setMaxListeners:rne,getEventListeners:$ze,defaultMaxListeners:nne}=require("node:events"),jze=Symbol("abortController"),cne=new Dze(({signal:t,abort:e})=>{t.removeEventListener("abort",e)}),vx=new WeakMap;function ine(t){return e;function e(){let r=t.deref();if(r!==void 0){cne.unregister(e),this.removeEventListener("abort",e),r.abort(this.reason);let n=vx.get(r.signal);if(n!==void 0){if(n.size!==0){for(let i of n){let s=i.deref();s!==void 0&&s.abort(this.reason)}n.clear()}vx.delete(r.signal)}}}}o(ine,"buildAbort");var sne=!1,hd=class t{static{o(this,"Request")}constructor(e,r={}){if(Pe.util.markAsUncloneable(this),e===xx)return;let n="Request constructor";Pe.argumentLengthCheck(arguments,1,n),e=Pe.converters.RequestInfo(e,n,"input"),r=Pe.converters.RequestInit(r,n,"init");let i=null,s=null,a=wx.settingsObject.baseUrl,c=null;if(typeof e=="string"){this[uF]=r.dispatcher;let y;try{y=new URL(e,a)}catch(C){throw new TypeError("Failed to parse URL from "+e,{cause:C})}if(y.username||y.password)throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+e);i=Nx({urlList:[y]}),s="cors"}else this[uF]=r.dispatcher||e[uF],Vze(e instanceof t),i=e[Yt],c=e[Sx];let l=wx.settingsObject.origin,u="client";if(i.window?.constructor?.name==="EnvironmentSettingsObject"&&ene(i.window,l)&&(u=i.window),r.window!=null)throw new TypeError(`'window' option '${u}' must be null`);"window"in r&&(u="no-window"),i=Nx({method:i.method,headersList:i.headersList,unsafeRequest:i.unsafeRequest,client:wx.settingsObject,window:u,priority:i.priority,origin:i.origin,referrer:i.referrer,referrerPolicy:i.referrerPolicy,mode:i.mode,credentials:i.credentials,cache:i.cache,redirect:i.redirect,integrity:i.integrity,keepalive:i.keepalive,reloadNavigation:i.reloadNavigation,historyNavigation:i.historyNavigation,urlList:[...i.urlList]});let d=Object.keys(r).length!==0;if(d&&(i.mode==="navigate"&&(i.mode="same-origin"),i.reloadNavigation=!1,i.historyNavigation=!1,i.origin="client",i.referrer="client",i.referrerPolicy="",i.url=i.urlList[i.urlList.length-1],i.urlList=[i.url]),r.referrer!==void 0){let y=r.referrer;if(y==="")i.referrer="no-referrer";else{let C;try{C=new URL(y,a)}catch(w){throw new TypeError(`Referrer "${y}" is not a valid URL.`,{cause:w})}C.protocol==="about:"&&C.hostname==="client"||l&&!ene(C,wx.settingsObject.baseUrl)?i.referrer="client":i.referrer=C}}r.referrerPolicy!==void 0&&(i.referrerPolicy=r.referrerPolicy);let f;if(r.mode!==void 0?f=r.mode:f=s,f==="navigate")throw Pe.errors.exception({header:"Request constructor",message:"invalid request mode navigate."});if(f!=null&&(i.mode=f),r.credentials!==void 0&&(i.credentials=r.credentials),r.cache!==void 0&&(i.cache=r.cache),i.cache==="only-if-cached"&&i.mode!=="same-origin")throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode");if(r.redirect!==void 0&&(i.redirect=r.redirect),r.integrity!=null&&(i.integrity=String(r.integrity)),r.keepalive!==void 0&&(i.keepalive=!!r.keepalive),r.method!==void 0){let y=r.method,C=Hze[y];if(C!==void 0)i.method=C;else{if(!Qze(y))throw new TypeError(`'${y}' is not a valid HTTP method.`);let w=y.toUpperCase();if(kze.has(w))throw new TypeError(`'${y}' HTTP method is unsupported.`);y=Gze[w]??y,i.method=y}!sne&&i.method==="patch"&&(process.emitWarning("Using `patch` is highly likely to result in a `405 Method Not Allowed`. `PATCH` is much more likely to succeed.",{code:"UNDICI-FETCH-patch"}),sne=!0)}r.signal!==void 0&&(c=r.signal),this[Yt]=i;let h=new AbortController;if(this[Sx]=h.signal,c!=null){if(!c||typeof c.aborted!="boolean"||typeof c.addEventListener!="function")throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.");if(c.aborted)h.abort(c.reason);else{this[jze]=h;let y=new WeakRef(h),C=ine(y);try{(typeof tne=="function"&&tne(c)===nne||$ze(c,"abort").length>=nne)&&rne(1500,c)}catch{}Ix.addAbortListener(c,C),cne.register(h,{signal:c,abort:C},C)}}if(this[Ds]=new one(xx),ane(this[Ds],i.headersList),dF(this[Ds],"request"),f==="no-cors"){if(!Pze.has(i.method))throw new TypeError(`'${i.method} is unsupported in no-cors mode.`);dF(this[Ds],"request-no-cors")}if(d){let y=Xre(this[Ds]),C=r.headers!==void 0?r.headers:new Bx(y);if(y.clear(),C instanceof Bx){for(let{name:w,value:B}of C.rawValues())y.append(w,B,!1);y.cookies=C.cookies}else _ze(this[Ds],C)}let p=e instanceof t?e[Yt].body:null;if((r.body!=null||p!=null)&&(i.method==="GET"||i.method==="HEAD"))throw new TypeError("Request with GET/HEAD method cannot have body.");let m=null;if(r.body!=null){let[y,C]=vze(r.body,i.keepalive);m=y,C&&!Xre(this[Ds]).contains("content-type",!0)&&this[Ds].append("content-type",C)}let A=m??p;if(A!=null&&A.source==null){if(m!=null&&r.duplex==null)throw new TypeError("RequestInit: duplex option is required when sending a body.");if(i.mode!=="same-origin"&&i.mode!=="cors")throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"');i.useCORSPreflightFlag=!0}let E=A;if(m==null&&p!=null){if(Kre(e))throw new TypeError("Cannot construct a Request with a Request object that has already been used.");let y=new TransformStream;p.stream.pipeThrough(y),E={source:p.source,length:p.length,stream:y.readable}}this[Yt].body=E}get method(){return Pe.brandCheck(this,t),this[Yt].method}get url(){return Pe.brandCheck(this,t),zze(this[Yt].url)}get headers(){return Pe.brandCheck(this,t),this[Ds]}get destination(){return Pe.brandCheck(this,t),this[Yt].destination}get referrer(){return Pe.brandCheck(this,t),this[Yt].referrer==="no-referrer"?"":this[Yt].referrer==="client"?"about:client":this[Yt].referrer.toString()}get referrerPolicy(){return Pe.brandCheck(this,t),this[Yt].referrerPolicy}get mode(){return Pe.brandCheck(this,t),this[Yt].mode}get credentials(){return this[Yt].credentials}get cache(){return Pe.brandCheck(this,t),this[Yt].cache}get redirect(){return Pe.brandCheck(this,t),this[Yt].redirect}get integrity(){return Pe.brandCheck(this,t),this[Yt].integrity}get keepalive(){return Pe.brandCheck(this,t),this[Yt].keepalive}get isReloadNavigation(){return Pe.brandCheck(this,t),this[Yt].reloadNavigation}get isHistoryNavigation(){return Pe.brandCheck(this,t),this[Yt].historyNavigation}get signal(){return Pe.brandCheck(this,t),this[Sx]}get body(){return Pe.brandCheck(this,t),this[Yt].body?this[Yt].body.stream:null}get bodyUsed(){return Pe.brandCheck(this,t),!!this[Yt].body&&Ix.isDisturbed(this[Yt].body.stream)}get duplex(){return Pe.brandCheck(this,t),"half"}clone(){if(Pe.brandCheck(this,t),Kre(this))throw new TypeError("unusable");let e=lne(this[Yt]),r=new AbortController;if(this.signal.aborted)r.abort(this.signal.reason);else{let n=vx.get(this.signal);n===void 0&&(n=new Set,vx.set(this.signal,n));let i=new WeakRef(r);n.add(i),Ix.addAbortListener(r.signal,ine(i))}return une(e,r.signal,Tze(this[Ds]))}[Zre.inspect.custom](e,r){r.depth===null&&(r.depth=2),r.colors??=!0;let n={method:this.method,url:this.url,headers:this.headers,destination:this.destination,referrer:this.referrer,referrerPolicy:this.referrerPolicy,mode:this.mode,credentials:this.credentials,cache:this.cache,redirect:this.redirect,integrity:this.integrity,keepalive:this.keepalive,isReloadNavigation:this.isReloadNavigation,isHistoryNavigation:this.isHistoryNavigation,signal:this.signal};return`Request ${Zre.formatWithOptions(r,n)}`}};Nze(hd);function Nx(t){return{method:t.method??"GET",localURLsOnly:t.localURLsOnly??!1,unsafeRequest:t.unsafeRequest??!1,body:t.body??null,client:t.client??null,reservedClient:t.reservedClient??null,replacesClientId:t.replacesClientId??"",window:t.window??"client",keepalive:t.keepalive??!1,serviceWorkers:t.serviceWorkers??"all",initiator:t.initiator??"",destination:t.destination??"",priority:t.priority??null,origin:t.origin??"client",policyContainer:t.policyContainer??"client",referrer:t.referrer??"client",referrerPolicy:t.referrerPolicy??"",mode:t.mode??"no-cors",useCORSPreflightFlag:t.useCORSPreflightFlag??!1,credentials:t.credentials??"same-origin",useCredentials:t.useCredentials??!1,cache:t.cache??"default",redirect:t.redirect??"follow",integrity:t.integrity??"",cryptoGraphicsNonceMetadata:t.cryptoGraphicsNonceMetadata??"",parserMetadata:t.parserMetadata??"",reloadNavigation:t.reloadNavigation??!1,historyNavigation:t.historyNavigation??!1,userActivation:t.userActivation??!1,taintedOrigin:t.taintedOrigin??!1,redirectCount:t.redirectCount??0,responseTainting:t.responseTainting??"basic",preventNoCacheCacheControlHeaderModification:t.preventNoCacheCacheControlHeaderModification??!1,done:t.done??!1,timingAllowFailed:t.timingAllowFailed??!1,urlList:t.urlList,url:t.urlList[0],headersList:t.headersList?new Bx(t.headersList):new Bx}}o(Nx,"makeRequest");function lne(t){let e=Nx({...t,body:null});return t.body!=null&&(e.body=Rze(e,t.body)),e}o(lne,"cloneRequest");function une(t,e,r){let n=new hd(xx);return n[Yt]=t,n[Sx]=e,n[Ds]=new one(xx),ane(n[Ds],t.headersList),dF(n[Ds],r),n}o(une,"fromInnerRequest");Object.defineProperties(hd.prototype,{method:en,url:en,headers:en,redirect:en,clone:en,signal:en,duplex:en,destination:en,body:en,bodyUsed:en,isHistoryNavigation:en,isReloadNavigation:en,keepalive:en,integrity:en,cache:en,credentials:en,attribute:en,referrerPolicy:en,referrer:en,mode:en,[Symbol.toStringTag]:{value:"Request",configurable:!0}});Pe.converters.Request=Pe.interfaceConverter(hd);Pe.converters.RequestInfo=function(t,e,r){return typeof t=="string"?Pe.converters.USVString(t,e,r):t instanceof hd?Pe.converters.Request(t,e,r):Pe.converters.USVString(t,e,r)};Pe.converters.AbortSignal=Pe.interfaceConverter(AbortSignal);Pe.converters.RequestInit=Pe.dictionaryConverter([{key:"method",converter:Pe.converters.ByteString},{key:"headers",converter:Pe.converters.HeadersInit},{key:"body",converter:Pe.nullableConverter(Pe.converters.BodyInit)},{key:"referrer",converter:Pe.converters.USVString},{key:"referrerPolicy",converter:Pe.converters.DOMString,allowedValues:Oze},{key:"mode",converter:Pe.converters.DOMString,allowedValues:Fze},{key:"credentials",converter:Pe.converters.DOMString,allowedValues:Mze},{key:"cache",converter:Pe.converters.DOMString,allowedValues:Uze},{key:"redirect",converter:Pe.converters.DOMString,allowedValues:Lze},{key:"integrity",converter:Pe.converters.DOMString},{key:"keepalive",converter:Pe.converters.boolean},{key:"signal",converter:Pe.nullableConverter(t=>Pe.converters.AbortSignal(t,"RequestInit","signal",{strict:!1}))},{key:"window",converter:Pe.converters.any},{key:"duplex",converter:Pe.converters.DOMString,allowedValues:qze},{key:"dispatcher",converter:Pe.converters.any}]);dne.exports={Request:hd,makeRequest:Nx,fromInnerRequest:une,cloneRequest:lne}});var zC=g((YHt,xne)=>{"use strict";var{makeNetworkError:Mt,makeAppropriateNetworkError:Rx,filterResponse:fF,makeResponse:_x,fromInnerResponse:Wze}=GC(),{HeadersList:fne}=uh(),{Request:Jze,cloneRequest:Yze}=hm(),pd=require("node:zlib"),{bytesMatch:Kze,makePolicyContainer:Xze,clonePolicyContainer:Zze,requestBadPort:eVe,TAOCheck:tVe,appendRequestOriginHeader:rVe,responseLocationURL:nVe,requestCurrentURL:dc,setRequestReferrerPolicyOnRedirect:iVe,tryUpgradeRequestToAPotentiallyTrustworthyURL:sVe,createOpaqueTimingInfo:gF,appendFetchMetadata:oVe,corsCheck:aVe,crossOriginResourcePolicyCheck:cVe,determineRequestsReferrer:lVe,coarsenedSharedCurrentTime:HC,createDeferredPromise:uVe,isBlobLike:dVe,sameOrigin:mF,isCancelled:fh,isAborted:hne,isErrorLike:fVe,fullyReadBody:hVe,readableStreamClose:pVe,isomorphicEncode:Tx,urlIsLocal:AVe,urlIsHttpHttpsScheme:yF,urlHasHttpsScheme:mVe,clampAndCoarsenConnectionTimingInfo:gVe,simpleRangeHeaderValue:yVe,buildContentRange:EVe,createInflate:CVe,extractMimeType:bVe}=xs(),{kState:gne,kDispatcher:wVe}=rd(),hh=require("node:assert"),{safelyExtractBody:EF,extractBody:pne}=VA(),{redirectStatusSet:yne,nullBodyStatus:Ene,safeMethodsSet:IVe,requestBodyHeader:SVe,subresourceSet:BVe}=dC(),xVe=require("node:events"),{Readable:vVe,pipeline:NVe,finished:RVe}=require("node:stream"),{addAbortListener:_Ve,isErrored:TVe,isReadable:Dx,bufferToLowerCasedHeaderName:Ane}=st(),{dataURLProcessor:DVe,serializeAMimeType:QVe,minimizeSupportedMimeType:kVe}=Yi(),{getGlobalDispatcher:PVe}=Ax(),{webidl:OVe}=qn(),{STATUS_CODES:LVe}=require("node:http"),FVe=["GET","HEAD"],MVe=typeof __UNDICI_IS_NODE__<"u"||typeof esbuildDetection<"u"?"node":"undici",hF,Qx=class extends xVe{static{o(this,"Fetch")}constructor(e){super(),this.dispatcher=e,this.connection=null,this.dump=!1,this.state="ongoing"}terminate(e){this.state==="ongoing"&&(this.state="terminated",this.connection?.destroy(e),this.emit("terminated",e))}abort(e){this.state==="ongoing"&&(this.state="aborted",e||(e=new DOMException("The operation was aborted.","AbortError")),this.serializedAbortReason=e,this.connection?.destroy(e),this.emit("terminated",e))}};function UVe(t){Cne(t,"fetch")}o(UVe,"handleFetchDone");function qVe(t,e=void 0){OVe.argumentLengthCheck(arguments,1,"globalThis.fetch");let r=uVe(),n;try{n=new Jze(t,e)}catch(d){return r.reject(d),r.promise}let i=n[gne];if(n.signal.aborted)return pF(r,i,null,n.signal.reason),r.promise;i.client.globalObject?.constructor?.name==="ServiceWorkerGlobalScope"&&(i.serviceWorkers="none");let a=null,c=!1,l=null;return _Ve(n.signal,()=>{c=!0,hh(l!=null),l.abort(n.signal.reason);let d=a?.deref();pF(r,i,d,n.signal.reason)}),l=wne({request:i,processResponseEndOfBody:UVe,processResponse:o(d=>{if(!c){if(d.aborted){pF(r,i,a,l.serializedAbortReason);return}if(d.type==="error"){r.reject(new TypeError("fetch failed",{cause:d.error}));return}a=new WeakRef(Wze(d,"immutable")),r.resolve(a.deref()),r=null}},"processResponse"),dispatcher:n[wVe]}),r.promise}o(qVe,"fetch");function Cne(t,e="other"){if(t.type==="error"&&t.aborted||!t.urlList?.length)return;let r=t.urlList[0],n=t.timingInfo,i=t.cacheState;yF(r)&&n!==null&&(t.timingAllowPassed||(n=gF({startTime:n.startTime}),i=""),n.endTime=HC(),t.timingInfo=n,bne(n,r.href,e,globalThis,i))}o(Cne,"finalizeAndReportTiming");var bne=performance.markResourceTiming;function pF(t,e,r,n){if(t&&t.reject(n),e.body!=null&&Dx(e.body?.stream)&&e.body.stream.cancel(n).catch(s=>{if(s.code!=="ERR_INVALID_STATE")throw s}),r==null)return;let i=r[gne];i.body!=null&&Dx(i.body?.stream)&&i.body.stream.cancel(n).catch(s=>{if(s.code!=="ERR_INVALID_STATE")throw s})}o(pF,"abortFetch");function wne({request:t,processRequestBodyChunkLength:e,processRequestEndOfBody:r,processResponse:n,processResponseEndOfBody:i,processResponseConsumeBody:s,useParallelQueue:a=!1,dispatcher:c=PVe()}){hh(c);let l=null,u=!1;t.client!=null&&(l=t.client.globalObject,u=t.client.crossOriginIsolatedCapability);let d=HC(u),f=gF({startTime:d}),h={controller:new Qx(c),request:t,timingInfo:f,processRequestBodyChunkLength:e,processRequestEndOfBody:r,processResponse:n,processResponseConsumeBody:s,processResponseEndOfBody:i,taskDestination:l,crossOriginIsolatedCapability:u};return hh(!t.body||t.body.stream),t.window==="client"&&(t.window=t.client?.globalObject?.constructor?.name==="Window"?t.client:"no-window"),t.origin==="client"&&(t.origin=t.client.origin),t.policyContainer==="client"&&(t.client!=null?t.policyContainer=Zze(t.client.policyContainer):t.policyContainer=Xze()),t.headersList.contains("accept",!0)||t.headersList.append("accept","*/*",!0),t.headersList.contains("accept-language",!0)||t.headersList.append("accept-language","*",!0),t.priority,BVe.has(t.destination),Ine(h).catch(p=>{h.controller.terminate(p)}),h.controller}o(wne,"fetching");async function Ine(t,e=!1){let r=t.request,n=null;if(r.localURLsOnly&&!AVe(dc(r))&&(n=Mt("local URLs only")),sVe(r),eVe(r)==="blocked"&&(n=Mt("bad port")),r.referrerPolicy===""&&(r.referrerPolicy=r.policyContainer.referrerPolicy),r.referrer!=="no-referrer"&&(r.referrer=lVe(r)),n===null&&(n=await(async()=>{let s=dc(r);return mF(s,r.url)&&r.responseTainting==="basic"||s.protocol==="data:"||r.mode==="navigate"||r.mode==="websocket"?(r.responseTainting="basic",await mne(t)):r.mode==="same-origin"?Mt('request mode cannot be "same-origin"'):r.mode==="no-cors"?r.redirect!=="follow"?Mt('redirect mode cannot be "follow" for "no-cors" request'):(r.responseTainting="opaque",await mne(t)):yF(dc(r))?(r.responseTainting="cors",await Sne(t)):Mt("URL scheme must be a HTTP(S) scheme")})()),e)return n;n.status!==0&&!n.internalResponse&&(r.responseTainting,r.responseTainting==="basic"?n=fF(n,"basic"):r.responseTainting==="cors"?n=fF(n,"cors"):r.responseTainting==="opaque"?n=fF(n,"opaque"):hh(!1));let i=n.status===0?n:n.internalResponse;if(i.urlList.length===0&&i.urlList.push(...r.urlList),r.timingAllowFailed||(n.timingAllowPassed=!0),n.type==="opaque"&&i.status===206&&i.rangeRequested&&!r.headers.contains("range",!0)&&(n=i=Mt()),n.status!==0&&(r.method==="HEAD"||r.method==="CONNECT"||Ene.includes(i.status))&&(i.body=null,t.controller.dump=!0),r.integrity){let s=o(c=>AF(t,Mt(c)),"processBodyError");if(r.responseTainting==="opaque"||n.body==null){s(n.error);return}let a=o(c=>{if(!Kze(c,r.integrity)){s("integrity mismatch");return}n.body=EF(c)[0],AF(t,n)},"processBody");await hVe(n.body,a,s)}else AF(t,n)}o(Ine,"mainFetch");function mne(t){if(fh(t)&&t.request.redirectCount===0)return Promise.resolve(Rx(t));let{request:e}=t,{protocol:r}=dc(e);switch(r){case"about:":return Promise.resolve(Mt("about scheme is not supported"));case"blob:":{hF||(hF=require("node:buffer").resolveObjectURL);let n=dc(e);if(n.search.length!==0)return Promise.resolve(Mt("NetworkError when attempting to fetch resource."));let i=hF(n.toString());if(e.method!=="GET"||!dVe(i))return Promise.resolve(Mt("invalid method"));let s=_x(),a=i.size,c=Tx(`${a}`),l=i.type;if(e.headersList.contains("range",!0)){s.rangeRequested=!0;let u=e.headersList.get("range",!0),d=yVe(u,!0);if(d==="failure")return Promise.resolve(Mt("failed to fetch the data URL"));let{rangeStartValue:f,rangeEndValue:h}=d;if(f===null)f=a-h,h=f+h-1;else{if(f>=a)return Promise.resolve(Mt("Range start is greater than the blob's size."));(h===null||h>=a)&&(h=a-1)}let p=i.slice(f,h,l),m=pne(p);s.body=m[0];let A=Tx(`${p.size}`),E=EVe(f,h,a);s.status=206,s.statusText="Partial Content",s.headersList.set("content-length",A,!0),s.headersList.set("content-type",l,!0),s.headersList.set("content-range",E,!0)}else{let u=pne(i);s.statusText="OK",s.body=u[0],s.headersList.set("content-length",c,!0),s.headersList.set("content-type",l,!0)}return Promise.resolve(s)}case"data:":{let n=dc(e),i=DVe(n);if(i==="failure")return Promise.resolve(Mt("failed to fetch the data URL"));let s=QVe(i.mimeType);return Promise.resolve(_x({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:s}]],body:EF(i.body)[0]}))}case"file:":return Promise.resolve(Mt("not implemented... yet..."));case"http:":case"https:":return Sne(t).catch(n=>Mt(n));default:return Promise.resolve(Mt("unknown scheme"))}}o(mne,"schemeFetch");function GVe(t,e){t.request.done=!0,t.processResponseDone!=null&&queueMicrotask(()=>t.processResponseDone(e))}o(GVe,"finalizeResponse");function AF(t,e){let r=t.timingInfo,n=o(()=>{let s=Date.now();t.request.destination==="document"&&(t.controller.fullTimingInfo=r),t.controller.reportTimingSteps=()=>{if(t.request.url.protocol!=="https:")return;r.endTime=s;let c=e.cacheState,l=e.bodyInfo;e.timingAllowPassed||(r=gF(r),c="");let u=0;if(t.request.mode!=="navigator"||!e.hasCrossOriginRedirects){u=e.status;let d=bVe(e.headersList);d!=="failure"&&(l.contentType=kVe(d))}t.request.initiatorType!=null&&bne(r,t.request.url.href,t.request.initiatorType,globalThis,c,l,u)};let a=o(()=>{t.request.done=!0,t.processResponseEndOfBody!=null&&queueMicrotask(()=>t.processResponseEndOfBody(e)),t.request.initiatorType!=null&&t.controller.reportTimingSteps()},"processResponseEndOfBodyTask");queueMicrotask(()=>a())},"processResponseEndOfBody");t.processResponse!=null&&queueMicrotask(()=>{t.processResponse(e),t.processResponse=null});let i=e.type==="error"?e:e.internalResponse??e;i.body==null?n():RVe(i.body.stream,()=>{n()})}o(AF,"fetchFinale");async function Sne(t){let e=t.request,r=null,n=null,i=t.timingInfo;if(e.serviceWorkers,r===null){if(e.redirect==="follow"&&(e.serviceWorkers="none"),n=r=await Bne(t),e.responseTainting==="cors"&&aVe(e,r)==="failure")return Mt("cors failure");tVe(e,r)==="failure"&&(e.timingAllowFailed=!0)}return(e.responseTainting==="opaque"||r.type==="opaque")&&cVe(e.origin,e.client,e.destination,n)==="blocked"?Mt("blocked"):(yne.has(n.status)&&(e.redirect!=="manual"&&t.controller.connection.destroy(void 0,!1),e.redirect==="error"?r=Mt("unexpected redirect"):e.redirect==="manual"?r=n:e.redirect==="follow"?r=await HVe(t,r):hh(!1)),r.timingInfo=i,r)}o(Sne,"httpFetch");function HVe(t,e){let r=t.request,n=e.internalResponse?e.internalResponse:e,i;try{if(i=nVe(n,dc(r).hash),i==null)return e}catch(a){return Promise.resolve(Mt(a))}if(!yF(i))return Promise.resolve(Mt("URL scheme must be a HTTP(S) scheme"));if(r.redirectCount===20)return Promise.resolve(Mt("redirect count exceeded"));if(r.redirectCount+=1,r.mode==="cors"&&(i.username||i.password)&&!mF(r,i))return Promise.resolve(Mt('cross origin not allowed for request mode "cors"'));if(r.responseTainting==="cors"&&(i.username||i.password))return Promise.resolve(Mt('URL cannot contain credentials for request mode "cors"'));if(n.status!==303&&r.body!=null&&r.body.source==null)return Promise.resolve(Mt());if([301,302].includes(n.status)&&r.method==="POST"||n.status===303&&!FVe.includes(r.method)){r.method="GET",r.body=null;for(let a of SVe)r.headersList.delete(a)}mF(dc(r),i)||(r.headersList.delete("authorization",!0),r.headersList.delete("proxy-authorization",!0),r.headersList.delete("cookie",!0),r.headersList.delete("host",!0)),r.body!=null&&(hh(r.body.source!=null),r.body=EF(r.body.source)[0]);let s=t.timingInfo;return s.redirectEndTime=s.postRedirectStartTime=HC(t.crossOriginIsolatedCapability),s.redirectStartTime===0&&(s.redirectStartTime=s.startTime),r.urlList.push(i),iVe(r,n),Ine(t,!0)}o(HVe,"httpRedirectFetch");async function Bne(t,e=!1,r=!1){let n=t.request,i=null,s=null,a=null,c=null,l=!1;n.window==="no-window"&&n.redirect==="error"?(i=t,s=n):(s=Yze(n),i={...t},i.request=s);let u=n.credentials==="include"||n.credentials==="same-origin"&&n.responseTainting==="basic",d=s.body?s.body.length:null,f=null;if(s.body==null&&["POST","PUT"].includes(s.method)&&(f="0"),d!=null&&(f=Tx(`${d}`)),f!=null&&s.headersList.append("content-length",f,!0),d!=null&&s.keepalive,s.referrer instanceof URL&&s.headersList.append("referer",Tx(s.referrer.href),!0),rVe(s),oVe(s),s.headersList.contains("user-agent",!0)||s.headersList.append("user-agent",MVe),s.cache==="default"&&(s.headersList.contains("if-modified-since",!0)||s.headersList.contains("if-none-match",!0)||s.headersList.contains("if-unmodified-since",!0)||s.headersList.contains("if-match",!0)||s.headersList.contains("if-range",!0))&&(s.cache="no-store"),s.cache==="no-cache"&&!s.preventNoCacheCacheControlHeaderModification&&!s.headersList.contains("cache-control",!0)&&s.headersList.append("cache-control","max-age=0",!0),(s.cache==="no-store"||s.cache==="reload")&&(s.headersList.contains("pragma",!0)||s.headersList.append("pragma","no-cache",!0),s.headersList.contains("cache-control",!0)||s.headersList.append("cache-control","no-cache",!0)),s.headersList.contains("range",!0)&&s.headersList.append("accept-encoding","identity",!0),s.headersList.contains("accept-encoding",!0)||(mVe(dc(s))?s.headersList.append("accept-encoding","br, gzip, deflate",!0):s.headersList.append("accept-encoding","gzip, deflate",!0)),s.headersList.delete("host",!0),c==null&&(s.cache="no-store"),s.cache!=="no-store"&&s.cache,a==null){if(s.cache==="only-if-cached")return Mt("only if cached");let h=await zVe(i,u,r);!IVe.has(s.method)&&h.status>=200&&h.status<=399,l&&h.status,a==null&&(a=h)}if(a.urlList=[...s.urlList],s.headersList.contains("range",!0)&&(a.rangeRequested=!0),a.requestIncludesCredentials=u,a.status===407)return n.window==="no-window"?Mt():fh(t)?Rx(t):Mt("proxy authentication required");if(a.status===421&&!r&&(n.body==null||n.body.source!=null)){if(fh(t))return Rx(t);t.controller.connection.destroy(),a=await Bne(t,e,!0)}return a}o(Bne,"httpNetworkOrCacheFetch");async function zVe(t,e=!1,r=!1){hh(!t.controller.connection||t.controller.connection.destroyed),t.controller.connection={abort:null,destroyed:!1,destroy(m,A=!0){this.destroyed||(this.destroyed=!0,A&&this.abort?.(m??new DOMException("The operation was aborted.","AbortError")))}};let n=t.request,i=null,s=t.timingInfo;null==null&&(n.cache="no-store");let c=r?"yes":"no";n.mode;let l=null;if(n.body==null&&t.processRequestEndOfBody)queueMicrotask(()=>t.processRequestEndOfBody());else if(n.body!=null){let m=o(async function*(y){fh(t)||(yield y,t.processRequestBodyChunkLength?.(y.byteLength))},"processBodyChunk"),A=o(()=>{fh(t)||t.processRequestEndOfBody&&t.processRequestEndOfBody()},"processEndOfBody"),E=o(y=>{fh(t)||(y.name==="AbortError"?t.controller.abort():t.controller.terminate(y))},"processBodyError");l=(async function*(){try{for await(let y of n.body.stream)yield*m(y);A()}catch(y){E(y)}})()}try{let{body:m,status:A,statusText:E,headersList:y,socket:C}=await p({body:l});if(C)i=_x({status:A,statusText:E,headersList:y,socket:C});else{let w=m[Symbol.asyncIterator]();t.controller.next=()=>w.next(),i=_x({status:A,statusText:E,headersList:y})}}catch(m){return m.name==="AbortError"?(t.controller.connection.destroy(),Rx(t,m)):Mt(m)}let u=o(async()=>{await t.controller.resume()},"pullAlgorithm"),d=o(m=>{fh(t)||t.controller.abort(m)},"cancelAlgorithm"),f=new ReadableStream({async start(m){t.controller.controller=m},async pull(m){await u(m)},async cancel(m){await d(m)},type:"bytes"});i.body={stream:f,source:null,length:null},t.controller.onAborted=h,t.controller.on("terminated",h),t.controller.resume=async()=>{for(;;){let m,A;try{let{done:y,value:C}=await t.controller.next();if(hne(t))break;m=y?void 0:C}catch(y){t.controller.ended&&!s.encodedBodySize?m=void 0:(m=y,A=!0)}if(m===void 0){pVe(t.controller.controller),GVe(t,i);return}if(s.decodedBodySize+=m?.byteLength??0,A){t.controller.terminate(m);return}let E=new Uint8Array(m);if(E.byteLength&&t.controller.controller.enqueue(E),TVe(f)){t.controller.terminate();return}if(t.controller.controller.desiredSize<=0)return}};function h(m){hne(t)?(i.aborted=!0,Dx(f)&&t.controller.controller.error(t.controller.serializedAbortReason)):Dx(f)&&t.controller.controller.error(new TypeError("terminated",{cause:fVe(m)?m:void 0})),t.controller.connection.destroy()}return o(h,"onAborted"),i;function p({body:m}){let A=dc(n),E=t.controller.dispatcher;return new Promise((y,C)=>E.dispatch({path:A.pathname+A.search,origin:A.origin,method:n.method,body:E.isMockActive?n.body&&(n.body.source||n.body.stream):m,headers:n.headersList.entries,maxRedirections:0,upgrade:n.mode==="websocket"?"websocket":void 0},{body:null,abort:null,onConnect(w){let{connection:B}=t.controller;s.finalConnectionTimingInfo=gVe(void 0,s.postRedirectStartTime,t.crossOriginIsolatedCapability),B.destroyed?w(new DOMException("The operation was aborted.","AbortError")):(t.controller.on("terminated",w),this.abort=B.abort=w),s.finalNetworkRequestStartTime=HC(t.crossOriginIsolatedCapability)},onResponseStarted(){s.finalNetworkResponseStartTime=HC(t.crossOriginIsolatedCapability)},onHeaders(w,B,P,U){if(w<200)return;let N="",$=new fne;for(let W=0;Wde)return C(new Error(`too many content-encodings in response: ${ue.length}, maximum allowed is ${de}`)),!0;for(let Se=ue.length-1;Se>=0;--Se){let K=ue[Se].trim();if(K==="x-gzip"||K==="gzip")Q.push(pd.createGunzip({flush:pd.constants.Z_SYNC_FLUSH,finishFlush:pd.constants.Z_SYNC_FLUSH}));else if(K==="deflate")Q.push(CVe({flush:pd.constants.Z_SYNC_FLUSH,finishFlush:pd.constants.Z_SYNC_FLUSH}));else if(K==="br")Q.push(pd.createBrotliDecompress({flush:pd.constants.BROTLI_OPERATION_FLUSH,finishFlush:pd.constants.BROTLI_OPERATION_FLUSH}));else{Q.length=0;break}}}let V=this.onError.bind(this);return y({status:w,statusText:U,headersList:$,body:Q.length?NVe(this.body,...Q,W=>{W&&this.onError(W)}).on("error",V):this.body.on("error",V)}),!0},onData(w){if(t.controller.dump)return;let B=w;return s.encodedBodySize+=B.byteLength,this.body.push(B)},onComplete(){this.abort&&t.controller.off("terminated",this.abort),t.controller.onAborted&&t.controller.off("terminated",t.controller.onAborted),t.controller.ended=!0,this.body.push(null)},onError(w){this.abort&&t.controller.off("terminated",this.abort),this.body?.destroy(w),t.controller.terminate(w),C(w)},onUpgrade(w,B,P){if(w!==101)return;let U=new fne;for(let N=0;N{"use strict";vne.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}});var Rne=g((ZHt,Nne)=>{"use strict";var{webidl:Qs}=qn(),kx=Symbol("ProgressEvent state"),bF=class t extends Event{static{o(this,"ProgressEvent")}constructor(e,r={}){e=Qs.converters.DOMString(e,"ProgressEvent constructor","type"),r=Qs.converters.ProgressEventInit(r??{}),super(e,r),this[kx]={lengthComputable:r.lengthComputable,loaded:r.loaded,total:r.total}}get lengthComputable(){return Qs.brandCheck(this,t),this[kx].lengthComputable}get loaded(){return Qs.brandCheck(this,t),this[kx].loaded}get total(){return Qs.brandCheck(this,t),this[kx].total}};Qs.converters.ProgressEventInit=Qs.dictionaryConverter([{key:"lengthComputable",converter:Qs.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"loaded",converter:Qs.converters["unsigned long long"],defaultValue:o(()=>0,"defaultValue")},{key:"total",converter:Qs.converters["unsigned long long"],defaultValue:o(()=>0,"defaultValue")},{key:"bubbles",converter:Qs.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"cancelable",converter:Qs.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"composed",converter:Qs.converters.boolean,defaultValue:o(()=>!1,"defaultValue")}]);Nne.exports={ProgressEvent:bF}});var Tne=g((t5t,_ne)=>{"use strict";function VVe(t){if(!t)return"failure";switch(t.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}o(VVe,"getEncoding");_ne.exports={getEncoding:VVe}});var Mne=g((n5t,Fne)=>{"use strict";var{kState:pm,kError:wF,kResult:Dne,kAborted:VC,kLastProgressEventFired:IF}=CF(),{ProgressEvent:$Ve}=Rne(),{getEncoding:Qne}=Tne(),{serializeAMimeType:jVe,parseMIMEType:kne}=Yi(),{types:WVe}=require("node:util"),{StringDecoder:Pne}=require("string_decoder"),{btoa:One}=require("node:buffer"),JVe={enumerable:!0,writable:!1,configurable:!1};function YVe(t,e,r,n){if(t[pm]==="loading")throw new DOMException("Invalid state","InvalidStateError");t[pm]="loading",t[Dne]=null,t[wF]=null;let s=e.stream().getReader(),a=[],c=s.read(),l=!0;(async()=>{for(;!t[VC];)try{let{done:u,value:d}=await c;if(l&&!t[VC]&&queueMicrotask(()=>{Ad("loadstart",t)}),l=!1,!u&&WVe.isUint8Array(d))a.push(d),(t[IF]===void 0||Date.now()-t[IF]>=50)&&!t[VC]&&(t[IF]=Date.now(),queueMicrotask(()=>{Ad("progress",t)})),c=s.read();else if(u){queueMicrotask(()=>{t[pm]="done";try{let f=KVe(a,r,e.type,n);if(t[VC])return;t[Dne]=f,Ad("load",t)}catch(f){t[wF]=f,Ad("error",t)}t[pm]!=="loading"&&Ad("loadend",t)});break}}catch(u){if(t[VC])return;queueMicrotask(()=>{t[pm]="done",t[wF]=u,Ad("error",t),t[pm]!=="loading"&&Ad("loadend",t)});break}})()}o(YVe,"readOperation");function Ad(t,e){let r=new $Ve(t,{bubbles:!1,cancelable:!1});e.dispatchEvent(r)}o(Ad,"fireAProgressEvent");function KVe(t,e,r,n){switch(e){case"DataURL":{let i="data:",s=kne(r||"application/octet-stream");s!=="failure"&&(i+=jVe(s)),i+=";base64,";let a=new Pne("latin1");for(let c of t)i+=One(a.write(c));return i+=One(a.end()),i}case"Text":{let i="failure";if(n&&(i=Qne(n)),i==="failure"&&r){let s=kne(r);s!=="failure"&&(i=Qne(s.parameters.get("charset")))}return i==="failure"&&(i="UTF-8"),XVe(t,i)}case"ArrayBuffer":return Lne(t).buffer;case"BinaryString":{let i="",s=new Pne("latin1");for(let a of t)i+=s.write(a);return i+=s.end(),i}}}o(KVe,"packageData");function XVe(t,e){let r=Lne(t),n=ZVe(r),i=0;n!==null&&(e=n,i=n==="UTF-8"?3:2);let s=r.slice(i);return new TextDecoder(e).decode(s)}o(XVe,"decode");function ZVe(t){let[e,r,n]=t;return e===239&&r===187&&n===191?"UTF-8":e===254&&r===255?"UTF-16BE":e===255&&r===254?"UTF-16LE":null}o(ZVe,"BOMSniffing");function Lne(t){let e=t.reduce((n,i)=>n+i.byteLength,0),r=0;return t.reduce((n,i)=>(n.set(i,r),r+=i.byteLength,n),new Uint8Array(e))}o(Lne,"combineByteSequences");Fne.exports={staticPropertyDescriptors:JVe,readOperation:YVe,fireAProgressEvent:Ad}});var Hne=g((s5t,Gne)=>{"use strict";var{staticPropertyDescriptors:Am,readOperation:Px,fireAProgressEvent:Une}=Mne(),{kState:ph,kError:qne,kResult:Ox,kEvents:Dt,kAborted:e4e}=CF(),{webidl:qt}=qn(),{kEnumerableProperty:Zi}=st(),wa=class t extends EventTarget{static{o(this,"FileReader")}constructor(){super(),this[ph]="empty",this[Ox]=null,this[qne]=null,this[Dt]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(e){qt.brandCheck(this,t),qt.argumentLengthCheck(arguments,1,"FileReader.readAsArrayBuffer"),e=qt.converters.Blob(e,{strict:!1}),Px(this,e,"ArrayBuffer")}readAsBinaryString(e){qt.brandCheck(this,t),qt.argumentLengthCheck(arguments,1,"FileReader.readAsBinaryString"),e=qt.converters.Blob(e,{strict:!1}),Px(this,e,"BinaryString")}readAsText(e,r=void 0){qt.brandCheck(this,t),qt.argumentLengthCheck(arguments,1,"FileReader.readAsText"),e=qt.converters.Blob(e,{strict:!1}),r!==void 0&&(r=qt.converters.DOMString(r,"FileReader.readAsText","encoding")),Px(this,e,"Text",r)}readAsDataURL(e){qt.brandCheck(this,t),qt.argumentLengthCheck(arguments,1,"FileReader.readAsDataURL"),e=qt.converters.Blob(e,{strict:!1}),Px(this,e,"DataURL")}abort(){if(this[ph]==="empty"||this[ph]==="done"){this[Ox]=null;return}this[ph]==="loading"&&(this[ph]="done",this[Ox]=null),this[e4e]=!0,Une("abort",this),this[ph]!=="loading"&&Une("loadend",this)}get readyState(){switch(qt.brandCheck(this,t),this[ph]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){return qt.brandCheck(this,t),this[Ox]}get error(){return qt.brandCheck(this,t),this[qne]}get onloadend(){return qt.brandCheck(this,t),this[Dt].loadend}set onloadend(e){qt.brandCheck(this,t),this[Dt].loadend&&this.removeEventListener("loadend",this[Dt].loadend),typeof e=="function"?(this[Dt].loadend=e,this.addEventListener("loadend",e)):this[Dt].loadend=null}get onerror(){return qt.brandCheck(this,t),this[Dt].error}set onerror(e){qt.brandCheck(this,t),this[Dt].error&&this.removeEventListener("error",this[Dt].error),typeof e=="function"?(this[Dt].error=e,this.addEventListener("error",e)):this[Dt].error=null}get onloadstart(){return qt.brandCheck(this,t),this[Dt].loadstart}set onloadstart(e){qt.brandCheck(this,t),this[Dt].loadstart&&this.removeEventListener("loadstart",this[Dt].loadstart),typeof e=="function"?(this[Dt].loadstart=e,this.addEventListener("loadstart",e)):this[Dt].loadstart=null}get onprogress(){return qt.brandCheck(this,t),this[Dt].progress}set onprogress(e){qt.brandCheck(this,t),this[Dt].progress&&this.removeEventListener("progress",this[Dt].progress),typeof e=="function"?(this[Dt].progress=e,this.addEventListener("progress",e)):this[Dt].progress=null}get onload(){return qt.brandCheck(this,t),this[Dt].load}set onload(e){qt.brandCheck(this,t),this[Dt].load&&this.removeEventListener("load",this[Dt].load),typeof e=="function"?(this[Dt].load=e,this.addEventListener("load",e)):this[Dt].load=null}get onabort(){return qt.brandCheck(this,t),this[Dt].abort}set onabort(e){qt.brandCheck(this,t),this[Dt].abort&&this.removeEventListener("abort",this[Dt].abort),typeof e=="function"?(this[Dt].abort=e,this.addEventListener("abort",e)):this[Dt].abort=null}};wa.EMPTY=wa.prototype.EMPTY=0;wa.LOADING=wa.prototype.LOADING=1;wa.DONE=wa.prototype.DONE=2;Object.defineProperties(wa.prototype,{EMPTY:Am,LOADING:Am,DONE:Am,readAsArrayBuffer:Zi,readAsBinaryString:Zi,readAsText:Zi,readAsDataURL:Zi,abort:Zi,readyState:Zi,result:Zi,error:Zi,onloadstart:Zi,onprogress:Zi,onload:Zi,onabort:Zi,onerror:Zi,onloadend:Zi,[Symbol.toStringTag]:{value:"FileReader",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(wa,{EMPTY:Am,LOADING:Am,DONE:Am});Gne.exports={FileReader:wa}});var Lx=g((a5t,zne)=>{"use strict";zne.exports={kConstruct:cr().kConstruct}});var jne=g((c5t,$ne)=>{"use strict";var t4e=require("node:assert"),{URLSerializer:Vne}=Yi(),{isValidHeaderName:r4e}=xs();function n4e(t,e,r=!1){let n=Vne(t,r),i=Vne(e,r);return n===i}o(n4e,"urlEquals");function i4e(t){t4e(t!==null);let e=[];for(let r of t.split(","))r=r.trim(),r4e(r)&&e.push(r);return e}o(i4e,"getFieldValues");$ne.exports={urlEquals:n4e,getFieldValues:i4e}});var Yne=g((u5t,Jne)=>{"use strict";var{kConstruct:s4e}=Lx(),{urlEquals:o4e,getFieldValues:SF}=jne(),{kEnumerableProperty:Ah,isDisturbed:a4e}=st(),{webidl:Be}=qn(),{Response:c4e,cloneResponse:l4e,fromInnerResponse:u4e}=GC(),{Request:Zl,fromInnerRequest:d4e}=hm(),{kState:Ia}=rd(),{fetching:f4e}=zC(),{urlIsHttpHttpsScheme:Fx,createDeferredPromise:mm,readAllBytes:h4e}=xs(),BF=require("node:assert"),Mx=class t{static{o(this,"Cache")}#e;constructor(){arguments[0]!==s4e&&Be.illegalConstructor(),Be.util.markAsUncloneable(this),this.#e=arguments[1]}async match(e,r={}){Be.brandCheck(this,t);let n="Cache.match";Be.argumentLengthCheck(arguments,1,n),e=Be.converters.RequestInfo(e,n,"request"),r=Be.converters.CacheQueryOptions(r,n,"options");let i=this.#i(e,r,1);if(i.length!==0)return i[0]}async matchAll(e=void 0,r={}){Be.brandCheck(this,t);let n="Cache.matchAll";return e!==void 0&&(e=Be.converters.RequestInfo(e,n,"request")),r=Be.converters.CacheQueryOptions(r,n,"options"),this.#i(e,r)}async add(e){Be.brandCheck(this,t);let r="Cache.add";Be.argumentLengthCheck(arguments,1,r),e=Be.converters.RequestInfo(e,r,"request");let n=[e];return await this.addAll(n)}async addAll(e){Be.brandCheck(this,t);let r="Cache.addAll";Be.argumentLengthCheck(arguments,1,r);let n=[],i=[];for(let h of e){if(h===void 0)throw Be.errors.conversionFailed({prefix:r,argument:"Argument 1",types:["undefined is not allowed"]});if(h=Be.converters.RequestInfo(h),typeof h=="string")continue;let p=h[Ia];if(!Fx(p.url)||p.method!=="GET")throw Be.errors.exception({header:r,message:"Expected http/s scheme when method is not GET."})}let s=[];for(let h of e){let p=new Zl(h)[Ia];if(!Fx(p.url))throw Be.errors.exception({header:r,message:"Expected http/s scheme."});p.initiator="fetch",p.destination="subresource",i.push(p);let m=mm();s.push(f4e({request:p,processResponse(A){if(A.type==="error"||A.status===206||A.status<200||A.status>299)m.reject(Be.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}));else if(A.headersList.contains("vary")){let E=SF(A.headersList.get("vary"));for(let y of E)if(y==="*"){m.reject(Be.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(let C of s)C.abort();return}}},processResponseEndOfBody(A){if(A.aborted){m.reject(new DOMException("aborted","AbortError"));return}m.resolve(A)}})),n.push(m.promise)}let c=await Promise.all(n),l=[],u=0;for(let h of c){let p={type:"put",request:i[u],response:h};l.push(p),u++}let d=mm(),f=null;try{this.#r(l)}catch(h){f=h}return queueMicrotask(()=>{f===null?d.resolve(void 0):d.reject(f)}),d.promise}async put(e,r){Be.brandCheck(this,t);let n="Cache.put";Be.argumentLengthCheck(arguments,2,n),e=Be.converters.RequestInfo(e,n,"request"),r=Be.converters.Response(r,n,"response");let i=null;if(e instanceof Zl?i=e[Ia]:i=new Zl(e)[Ia],!Fx(i.url)||i.method!=="GET")throw Be.errors.exception({header:n,message:"Expected an http/s scheme when method is not GET"});let s=r[Ia];if(s.status===206)throw Be.errors.exception({header:n,message:"Got 206 status"});if(s.headersList.contains("vary")){let p=SF(s.headersList.get("vary"));for(let m of p)if(m==="*")throw Be.errors.exception({header:n,message:"Got * vary field value"})}if(s.body&&(a4e(s.body.stream)||s.body.stream.locked))throw Be.errors.exception({header:n,message:"Response body is locked or disturbed"});let a=l4e(s),c=mm();if(s.body!=null){let m=s.body.stream.getReader();h4e(m).then(c.resolve,c.reject)}else c.resolve(void 0);let l=[],u={type:"put",request:i,response:a};l.push(u);let d=await c.promise;a.body!=null&&(a.body.source=d);let f=mm(),h=null;try{this.#r(l)}catch(p){h=p}return queueMicrotask(()=>{h===null?f.resolve():f.reject(h)}),f.promise}async delete(e,r={}){Be.brandCheck(this,t);let n="Cache.delete";Be.argumentLengthCheck(arguments,1,n),e=Be.converters.RequestInfo(e,n,"request"),r=Be.converters.CacheQueryOptions(r,n,"options");let i=null;if(e instanceof Zl){if(i=e[Ia],i.method!=="GET"&&!r.ignoreMethod)return!1}else BF(typeof e=="string"),i=new Zl(e)[Ia];let s=[],a={type:"delete",request:i,options:r};s.push(a);let c=mm(),l=null,u;try{u=this.#r(s)}catch(d){l=d}return queueMicrotask(()=>{l===null?c.resolve(!!u?.length):c.reject(l)}),c.promise}async keys(e=void 0,r={}){Be.brandCheck(this,t);let n="Cache.keys";e!==void 0&&(e=Be.converters.RequestInfo(e,n,"request")),r=Be.converters.CacheQueryOptions(r,n,"options");let i=null;if(e!==void 0)if(e instanceof Zl){if(i=e[Ia],i.method!=="GET"&&!r.ignoreMethod)return[]}else typeof e=="string"&&(i=new Zl(e)[Ia]);let s=mm(),a=[];if(e===void 0)for(let c of this.#e)a.push(c[0]);else{let c=this.#n(i,r);for(let l of c)a.push(l[0])}return queueMicrotask(()=>{let c=[];for(let l of a){let u=d4e(l,new AbortController().signal,"immutable");c.push(u)}s.resolve(Object.freeze(c))}),s.promise}#r(e){let r=this.#e,n=[...r],i=[],s=[];try{for(let a of e){if(a.type!=="delete"&&a.type!=="put")throw Be.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'});if(a.type==="delete"&&a.response!=null)throw Be.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"});if(this.#n(a.request,a.options,i).length)throw new DOMException("???","InvalidStateError");let c;if(a.type==="delete"){if(c=this.#n(a.request,a.options),c.length===0)return[];for(let l of c){let u=r.indexOf(l);BF(u!==-1),r.splice(u,1)}}else if(a.type==="put"){if(a.response==null)throw Be.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"});let l=a.request;if(!Fx(l.url))throw Be.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"});if(l.method!=="GET")throw Be.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"});if(a.options!=null)throw Be.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"});c=this.#n(a.request);for(let u of c){let d=r.indexOf(u);BF(d!==-1),r.splice(d,1)}r.push([a.request,a.response]),i.push([a.request,a.response])}s.push([a.request,a.response])}return s}catch(a){throw this.#e.length=0,this.#e=n,a}}#n(e,r,n){let i=[],s=n??this.#e;for(let a of s){let[c,l]=a;this.#t(e,c,l,r)&&i.push(a)}return i}#t(e,r,n=null,i){let s=new URL(e.url),a=new URL(r.url);if(i?.ignoreSearch&&(a.search="",s.search=""),!o4e(s,a,!0))return!1;if(n==null||i?.ignoreVary||!n.headersList.contains("vary"))return!0;let c=SF(n.headersList.get("vary"));for(let l of c){if(l==="*")return!1;let u=r.headersList.get(l),d=e.headersList.get(l);if(u!==d)return!1}return!0}#i(e,r,n=1/0){let i=null;if(e!==void 0)if(e instanceof Zl){if(i=e[Ia],i.method!=="GET"&&!r.ignoreMethod)return[]}else typeof e=="string"&&(i=new Zl(e)[Ia]);let s=[];if(e===void 0)for(let c of this.#e)s.push(c[1]);else{let c=this.#n(i,r);for(let l of c)s.push(l[1])}let a=[];for(let c of s){let l=u4e(c,"immutable");if(a.push(l.clone()),a.length>=n)break}return Object.freeze(a)}};Object.defineProperties(Mx.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:!0},match:Ah,matchAll:Ah,add:Ah,addAll:Ah,put:Ah,delete:Ah,keys:Ah});var Wne=[{key:"ignoreSearch",converter:Be.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"ignoreMethod",converter:Be.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"ignoreVary",converter:Be.converters.boolean,defaultValue:o(()=>!1,"defaultValue")}];Be.converters.CacheQueryOptions=Be.dictionaryConverter(Wne);Be.converters.MultiCacheQueryOptions=Be.dictionaryConverter([...Wne,{key:"cacheName",converter:Be.converters.DOMString}]);Be.converters.Response=Be.interfaceConverter(c4e);Be.converters["sequence"]=Be.sequenceConverter(Be.converters.RequestInfo);Jne.exports={Cache:Mx}});var Xne=g((f5t,Kne)=>{"use strict";var{kConstruct:$C}=Lx(),{Cache:Ux}=Yne(),{webidl:ni}=qn(),{kEnumerableProperty:jC}=st(),qx=class t{static{o(this,"CacheStorage")}#e=new Map;constructor(){arguments[0]!==$C&&ni.illegalConstructor(),ni.util.markAsUncloneable(this)}async match(e,r={}){if(ni.brandCheck(this,t),ni.argumentLengthCheck(arguments,1,"CacheStorage.match"),e=ni.converters.RequestInfo(e),r=ni.converters.MultiCacheQueryOptions(r),r.cacheName!=null){if(this.#e.has(r.cacheName)){let n=this.#e.get(r.cacheName);return await new Ux($C,n).match(e,r)}}else for(let n of this.#e.values()){let s=await new Ux($C,n).match(e,r);if(s!==void 0)return s}}async has(e){ni.brandCheck(this,t);let r="CacheStorage.has";return ni.argumentLengthCheck(arguments,1,r),e=ni.converters.DOMString(e,r,"cacheName"),this.#e.has(e)}async open(e){ni.brandCheck(this,t);let r="CacheStorage.open";if(ni.argumentLengthCheck(arguments,1,r),e=ni.converters.DOMString(e,r,"cacheName"),this.#e.has(e)){let i=this.#e.get(e);return new Ux($C,i)}let n=[];return this.#e.set(e,n),new Ux($C,n)}async delete(e){ni.brandCheck(this,t);let r="CacheStorage.delete";return ni.argumentLengthCheck(arguments,1,r),e=ni.converters.DOMString(e,r,"cacheName"),this.#e.delete(e)}async keys(){return ni.brandCheck(this,t),[...this.#e.keys()]}};Object.defineProperties(qx.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:!0},match:jC,has:jC,open:jC,delete:jC,keys:jC});Kne.exports={CacheStorage:qx}});var eie=g((p5t,Zne)=>{"use strict";Zne.exports={maxAttributeValueSize:1024,maxNameValuePairSize:4096}});var NF=g((A5t,iie)=>{"use strict";function p4e(t){for(let e=0;e=0&&r<=8||r>=10&&r<=31||r===127)return!0}return!1}o(p4e,"isCTLExcludingHtab");function xF(t){for(let e=0;e126||r===34||r===40||r===41||r===60||r===62||r===64||r===44||r===59||r===58||r===92||r===47||r===91||r===93||r===63||r===61||r===123||r===125)throw new Error("Invalid cookie name")}}o(xF,"validateCookieName");function vF(t){let e=t.length,r=0;if(t[0]==='"'){if(e===1||t[e-1]!=='"')throw new Error("Invalid cookie value");--e,++r}for(;r126||n===34||n===44||n===59||n===92)throw new Error("Invalid cookie value")}}o(vF,"validateCookieValue");function rie(t){for(let e=0;e126||r===59)throw new Error("Invalid cookie path")}}o(rie,"validateCookiePath");function tie(t){return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122}o(tie,"isLetterOrDigit");function A4e(t){if(t===" ")return;if(t.length>255)throw new Error("Invalid cookie domain");let e=0;for(let r=0;r63)throw new Error("Invalid cookie domain")}if(e===0||t.charCodeAt(t.length-1)===45)throw new Error("Invalid cookie domain")}o(A4e,"validateCookieDomain");var m4e=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],g4e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Gx=Array(61).fill(0).map((t,e)=>e.toString().padStart(2,"0"));function nie(t){return typeof t=="number"&&(t=new Date(t)),`${m4e[t.getUTCDay()]}, ${Gx[t.getUTCDate()]} ${g4e[t.getUTCMonth()]} ${t.getUTCFullYear()} ${Gx[t.getUTCHours()]}:${Gx[t.getUTCMinutes()]}:${Gx[t.getUTCSeconds()]} GMT`}o(nie,"toIMFDate");function y4e(t){if(t<0)throw new Error("Invalid cookie max-age")}o(y4e,"validateCookieMaxAge");function E4e(t){if(t.name.length===0)return null;xF(t.name),vF(t.value);let e=[`${t.name}=${t.value}`];t.name.startsWith("__Secure-")&&(t.secure=!0),t.name.startsWith("__Host-")&&(t.secure=!0,t.domain=null,t.path="/"),t.secure&&e.push("Secure"),t.httpOnly&&e.push("HttpOnly"),typeof t.maxAge=="number"&&(y4e(t.maxAge),e.push(`Max-Age=${t.maxAge}`)),t.domain&&(A4e(t.domain),e.push(`Domain=${t.domain}`)),t.path&&(rie(t.path),e.push(`Path=${t.path}`)),t.expires&&t.expires.toString()!=="Invalid Date"&&e.push(`Expires=${nie(t.expires)}`),t.sameSite&&e.push(`SameSite=${t.sameSite}`);for(let r of t.unparsed){if(!r.includes("="))throw new Error("Invalid unparsed");let[n,...i]=r.split("="),s=n.trim(),a=i.join("=");xF(s),vF(a),e.push(`${s}=${a}`)}return e.join("; ")}o(E4e,"stringify");iie.exports={isCTLExcludingHtab:p4e,validateCookieName:xF,validateCookiePath:rie,validateCookieValue:vF,toIMFDate:nie,stringify:E4e}});var oie=g((g5t,sie)=>{"use strict";var{maxNameValuePairSize:C4e,maxAttributeValueSize:b4e}=eie(),{isCTLExcludingHtab:w4e}=NF(),{collectASequenceOfCodePointsFast:Hx}=Yi(),I4e=require("node:assert");function S4e(t){if(w4e(t))return null;let e="",r="",n="",i="";if(t.includes(";")){let s={position:0};e=Hx(";",t,s),r=t.slice(s.position)}else e=t;if(!e.includes("="))i=e;else{let s={position:0};n=Hx("=",e,s),i=e.slice(s.position+1)}return n=n.trim(),i=i.trim(),n.length+i.length>C4e?null:{name:n,value:i,...gm(r)}}o(S4e,"parseSetCookie");function gm(t,e={}){if(t.length===0)return e;I4e(t[0]===";"),t=t.slice(1);let r="";t.includes(";")?(r=Hx(";",t,{position:0}),t=t.slice(r.length)):(r=t,t="");let n="",i="";if(r.includes("=")){let a={position:0};n=Hx("=",r,a),i=r.slice(a.position+1)}else n=r;if(n=n.trim(),i=i.trim(),i.length>b4e)return gm(t,e);let s=n.toLowerCase();if(s==="expires"){let a=new Date(i);e.expires=a}else if(s==="max-age"){let a=i.charCodeAt(0);if((a<48||a>57)&&i[0]!=="-"||!/^\d+$/.test(i))return gm(t,e);let c=Number(i);e.maxAge=c}else if(s==="domain"){let a=i;a[0]==="."&&(a=a.slice(1)),a=a.toLowerCase(),e.domain=a}else if(s==="path"){let a="";i.length===0||i[0]!=="/"?a="/":a=i,e.path=a}else if(s==="secure")e.secure=!0;else if(s==="httponly")e.httpOnly=!0;else if(s==="samesite"){let a=i.toLowerCase();a==="none"?e.sameSite="None":a==="strict"?e.sameSite="Strict":a==="lax"&&(e.sameSite="Lax")}else e.unparsed??=[],e.unparsed.push(`${n}=${i}`);return gm(t,e)}o(gm,"parseUnparsedAttributes");sie.exports={parseSetCookie:S4e,parseUnparsedAttributes:gm}});var lie=g((E5t,cie)=>{"use strict";var{parseSetCookie:B4e}=oie(),{stringify:x4e}=NF(),{webidl:ft}=qn(),{Headers:zx}=uh();function v4e(t){ft.argumentLengthCheck(arguments,1,"getCookies"),ft.brandCheck(t,zx,{strict:!1});let e=t.get("cookie"),r={};if(!e)return r;for(let n of e.split(";")){let[i,...s]=n.split("=");r[i.trim()]=s.join("=")}return r}o(v4e,"getCookies");function N4e(t,e,r){ft.brandCheck(t,zx,{strict:!1});let n="deleteCookie";ft.argumentLengthCheck(arguments,2,n),e=ft.converters.DOMString(e,n,"name"),r=ft.converters.DeleteCookieAttributes(r),aie(t,{name:e,value:"",expires:new Date(0),...r})}o(N4e,"deleteCookie");function R4e(t){ft.argumentLengthCheck(arguments,1,"getSetCookies"),ft.brandCheck(t,zx,{strict:!1});let e=t.getSetCookie();return e?e.map(r=>B4e(r)):[]}o(R4e,"getSetCookies");function aie(t,e){ft.argumentLengthCheck(arguments,2,"setCookie"),ft.brandCheck(t,zx,{strict:!1}),e=ft.converters.Cookie(e);let r=x4e(e);r&&t.append("Set-Cookie",r)}o(aie,"setCookie");ft.converters.DeleteCookieAttributes=ft.dictionaryConverter([{converter:ft.nullableConverter(ft.converters.DOMString),key:"path",defaultValue:o(()=>null,"defaultValue")},{converter:ft.nullableConverter(ft.converters.DOMString),key:"domain",defaultValue:o(()=>null,"defaultValue")}]);ft.converters.Cookie=ft.dictionaryConverter([{converter:ft.converters.DOMString,key:"name"},{converter:ft.converters.DOMString,key:"value"},{converter:ft.nullableConverter(t=>typeof t=="number"?ft.converters["unsigned long long"](t):new Date(t)),key:"expires",defaultValue:o(()=>null,"defaultValue")},{converter:ft.nullableConverter(ft.converters["long long"]),key:"maxAge",defaultValue:o(()=>null,"defaultValue")},{converter:ft.nullableConverter(ft.converters.DOMString),key:"domain",defaultValue:o(()=>null,"defaultValue")},{converter:ft.nullableConverter(ft.converters.DOMString),key:"path",defaultValue:o(()=>null,"defaultValue")},{converter:ft.nullableConverter(ft.converters.boolean),key:"secure",defaultValue:o(()=>null,"defaultValue")},{converter:ft.nullableConverter(ft.converters.boolean),key:"httpOnly",defaultValue:o(()=>null,"defaultValue")},{converter:ft.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:ft.sequenceConverter(ft.converters.DOMString),key:"unparsed",defaultValue:o(()=>new Array(0),"defaultValue")}]);cie.exports={getCookies:v4e,deleteCookie:N4e,getSetCookies:R4e,setCookie:aie}});var Em=g((b5t,die)=>{"use strict";var{webidl:we}=qn(),{kEnumerableProperty:es}=st(),{kConstruct:uie}=cr(),{MessagePort:_4e}=require("node:worker_threads"),ym=class t extends Event{static{o(this,"MessageEvent")}#e;constructor(e,r={}){if(e===uie){super(arguments[1],arguments[2]),we.util.markAsUncloneable(this);return}let n="MessageEvent constructor";we.argumentLengthCheck(arguments,1,n),e=we.converters.DOMString(e,n,"type"),r=we.converters.MessageEventInit(r,n,"eventInitDict"),super(e,r),this.#e=r,we.util.markAsUncloneable(this)}get data(){return we.brandCheck(this,t),this.#e.data}get origin(){return we.brandCheck(this,t),this.#e.origin}get lastEventId(){return we.brandCheck(this,t),this.#e.lastEventId}get source(){return we.brandCheck(this,t),this.#e.source}get ports(){return we.brandCheck(this,t),Object.isFrozen(this.#e.ports)||Object.freeze(this.#e.ports),this.#e.ports}initMessageEvent(e,r=!1,n=!1,i=null,s="",a="",c=null,l=[]){return we.brandCheck(this,t),we.argumentLengthCheck(arguments,1,"MessageEvent.initMessageEvent"),new t(e,{bubbles:r,cancelable:n,data:i,origin:s,lastEventId:a,source:c,ports:l})}static createFastMessageEvent(e,r){let n=new t(uie,e,r);return n.#e=r,n.#e.data??=null,n.#e.origin??="",n.#e.lastEventId??="",n.#e.source??=null,n.#e.ports??=[],n}},{createFastMessageEvent:T4e}=ym;delete ym.createFastMessageEvent;var Vx=class t extends Event{static{o(this,"CloseEvent")}#e;constructor(e,r={}){let n="CloseEvent constructor";we.argumentLengthCheck(arguments,1,n),e=we.converters.DOMString(e,n,"type"),r=we.converters.CloseEventInit(r),super(e,r),this.#e=r,we.util.markAsUncloneable(this)}get wasClean(){return we.brandCheck(this,t),this.#e.wasClean}get code(){return we.brandCheck(this,t),this.#e.code}get reason(){return we.brandCheck(this,t),this.#e.reason}},$x=class t extends Event{static{o(this,"ErrorEvent")}#e;constructor(e,r){let n="ErrorEvent constructor";we.argumentLengthCheck(arguments,1,n),super(e,r),we.util.markAsUncloneable(this),e=we.converters.DOMString(e,n,"type"),r=we.converters.ErrorEventInit(r??{}),this.#e=r}get message(){return we.brandCheck(this,t),this.#e.message}get filename(){return we.brandCheck(this,t),this.#e.filename}get lineno(){return we.brandCheck(this,t),this.#e.lineno}get colno(){return we.brandCheck(this,t),this.#e.colno}get error(){return we.brandCheck(this,t),this.#e.error}};Object.defineProperties(ym.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:!0},data:es,origin:es,lastEventId:es,source:es,ports:es,initMessageEvent:es});Object.defineProperties(Vx.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:!0},reason:es,code:es,wasClean:es});Object.defineProperties($x.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:!0},message:es,filename:es,lineno:es,colno:es,error:es});we.converters.MessagePort=we.interfaceConverter(_4e);we.converters["sequence"]=we.sequenceConverter(we.converters.MessagePort);var RF=[{key:"bubbles",converter:we.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"cancelable",converter:we.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"composed",converter:we.converters.boolean,defaultValue:o(()=>!1,"defaultValue")}];we.converters.MessageEventInit=we.dictionaryConverter([...RF,{key:"data",converter:we.converters.any,defaultValue:o(()=>null,"defaultValue")},{key:"origin",converter:we.converters.USVString,defaultValue:o(()=>"","defaultValue")},{key:"lastEventId",converter:we.converters.DOMString,defaultValue:o(()=>"","defaultValue")},{key:"source",converter:we.nullableConverter(we.converters.MessagePort),defaultValue:o(()=>null,"defaultValue")},{key:"ports",converter:we.converters["sequence"],defaultValue:o(()=>new Array(0),"defaultValue")}]);we.converters.CloseEventInit=we.dictionaryConverter([...RF,{key:"wasClean",converter:we.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"code",converter:we.converters["unsigned short"],defaultValue:o(()=>0,"defaultValue")},{key:"reason",converter:we.converters.USVString,defaultValue:o(()=>"","defaultValue")}]);we.converters.ErrorEventInit=we.dictionaryConverter([...RF,{key:"message",converter:we.converters.DOMString,defaultValue:o(()=>"","defaultValue")},{key:"filename",converter:we.converters.USVString,defaultValue:o(()=>"","defaultValue")},{key:"lineno",converter:we.converters["unsigned long"],defaultValue:o(()=>0,"defaultValue")},{key:"colno",converter:we.converters["unsigned long"],defaultValue:o(()=>0,"defaultValue")},{key:"error",converter:we.converters.any}]);die.exports={MessageEvent:ym,CloseEvent:Vx,ErrorEvent:$x,createFastMessageEvent:T4e}});var mh=g((I5t,fie)=>{"use strict";var D4e="258EAFA5-E914-47DA-95CA-C5AB0DC85B11",Q4e={enumerable:!0,writable:!1,configurable:!1},k4e={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},P4e={NOT_SENT:0,PROCESSING:1,SENT:2},O4e={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10},L4e=2**16-1,F4e={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4},M4e=Buffer.allocUnsafe(0),U4e={string:1,typedArray:2,arrayBuffer:3,blob:4};fie.exports={uid:D4e,sentCloseFrameState:P4e,staticPropertyDescriptors:Q4e,states:k4e,opcodes:O4e,maxUnsigned16Bit:L4e,parserStates:F4e,emptyBuffer:M4e,sendHints:U4e}});var WC=g((S5t,hie)=>{"use strict";hie.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}});var KC=g((B5t,wie)=>{"use strict";var{kReadyState:JC,kController:q4e,kResponse:G4e,kBinaryType:H4e,kWebSocketURL:z4e}=WC(),{states:YC,opcodes:md}=mh(),{ErrorEvent:V4e,createFastMessageEvent:$4e}=Em(),{isUtf8:j4e}=require("node:buffer"),{collectASequenceOfCodePointsFast:W4e,removeHTTPWhitespace:pie}=Yi();function J4e(t){return t[JC]===YC.CONNECTING}o(J4e,"isConnecting");function Y4e(t){return t[JC]===YC.OPEN}o(Y4e,"isEstablished");function K4e(t){return t[JC]===YC.CLOSING}o(K4e,"isClosing");function X4e(t){return t[JC]===YC.CLOSED}o(X4e,"isClosed");function _F(t,e,r=(i,s)=>new Event(i,s),n={}){let i=r(t,n);e.dispatchEvent(i)}o(_F,"fireEvent");function Z4e(t,e,r){if(t[JC]!==YC.OPEN)return;let n;if(e===md.TEXT)try{n=bie(r)}catch{mie(t,"Received invalid UTF-8 in text frame.");return}else e===md.BINARY&&(t[H4e]==="blob"?n=new Blob([r]):n=e$e(r));_F("message",t,$4e,{origin:t[z4e].origin,data:n})}o(Z4e,"websocketMessageReceived");function e$e(t){return t.byteLength===t.buffer.byteLength?t.buffer:t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}o(e$e,"toArrayBuffer");function t$e(t){if(t.length===0)return!1;for(let e=0;e126||r===34||r===40||r===41||r===44||r===47||r===58||r===59||r===60||r===61||r===62||r===63||r===64||r===91||r===92||r===93||r===123||r===125)return!1}return!0}o(t$e,"isValidSubprotocol");function r$e(t){return t>=1e3&&t<1015?t!==1004&&t!==1005&&t!==1006:t>=3e3&&t<=4999}o(r$e,"isValidStatusCode");function mie(t,e){let{[q4e]:r,[G4e]:n}=t;r.abort(),n?.socket&&!n.socket.destroyed&&n.socket.destroy(),e&&_F("error",t,(i,s)=>new V4e(i,s),{error:new Error(e),message:e})}o(mie,"failWebsocketConnection");function gie(t){return t===md.CLOSE||t===md.PING||t===md.PONG}o(gie,"isControlFrame");function yie(t){return t===md.CONTINUATION}o(yie,"isContinuationFrame");function Eie(t){return t===md.TEXT||t===md.BINARY}o(Eie,"isTextBinaryFrame");function n$e(t){return Eie(t)||yie(t)||gie(t)}o(n$e,"isValidOpcode");function i$e(t){let e={position:0},r=new Map;for(;e.position57)return!1}let e=Number.parseInt(t,10);return e>=8&&e<=15}o(s$e,"isValidClientWindowBits");var Cie=typeof process.versions.icu=="string",Aie=Cie?new TextDecoder("utf-8",{fatal:!0}):void 0,bie=Cie?Aie.decode.bind(Aie):function(t){if(j4e(t))return t.toString("utf-8");throw new TypeError("Invalid utf-8 received.")};wie.exports={isConnecting:J4e,isEstablished:Y4e,isClosing:K4e,isClosed:X4e,fireEvent:_F,isValidSubprotocol:t$e,isValidStatusCode:r$e,failWebsocketConnection:mie,websocketMessageReceived:Z4e,utf8Decode:bie,isControlFrame:gie,isContinuationFrame:yie,isTextBinaryFrame:Eie,isValidOpcode:n$e,parseExtensions:i$e,isValidClientWindowBits:s$e}});var Wx=g((v5t,Iie)=>{"use strict";var{maxUnsigned16Bit:o$e}=mh(),jx=16386,TF,XC=null,Cm=jx;try{TF=require("node:crypto")}catch{TF={randomFillSync:o(function(e,r,n){for(let i=0;io$e?(a+=8,s=127):i>125&&(a+=2,s=126);let c=Buffer.allocUnsafe(i+a);c[0]=c[1]=0,c[0]|=128,c[0]=(c[0]&240)+e;c[a-4]=n[0],c[a-3]=n[1],c[a-2]=n[2],c[a-1]=n[3],c[1]=s,s===126?c.writeUInt16BE(i,2):s===127&&(c[2]=c[3]=0,c.writeUIntBE(i,4,6)),c[1]|=128;for(let l=0;l{"use strict";var{uid:c$e,states:ZC,sentCloseFrameState:Jx,emptyBuffer:l$e,opcodes:u$e}=mh(),{kReadyState:eb,kSentClose:Yx,kByteParser:Bie,kReceivedClose:Sie,kResponse:xie}=WC(),{fireEvent:d$e,failWebsocketConnection:gd,isClosing:f$e,isClosed:h$e,isEstablished:p$e,parseExtensions:A$e}=KC(),{channels:bm}=DA(),{CloseEvent:m$e}=Em(),{makeRequest:g$e}=hm(),{fetching:y$e}=zC(),{Headers:E$e,getHeadersList:C$e}=uh(),{getDecodeSplit:b$e}=xs(),{WebsocketFrameSend:w$e}=Wx(),QF;try{QF=require("node:crypto")}catch{}function I$e(t,e,r,n,i,s){let a=t;a.protocol=t.protocol==="ws:"?"http:":"https:";let c=g$e({urlList:[a],client:r,serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(s.headers){let f=C$e(new E$e(s.headers));c.headersList=f}let l=QF.randomBytes(16).toString("base64");c.headersList.append("sec-websocket-key",l),c.headersList.append("sec-websocket-version","13");for(let f of e)c.headersList.append("sec-websocket-protocol",f);return c.headersList.append("sec-websocket-extensions","permessage-deflate; client_max_window_bits"),y$e({request:c,useParallelQueue:!0,dispatcher:s.dispatcher,processResponse(f){if(f.type==="error"||f.status!==101){gd(n,"Received network error or non-101 status code.");return}if(e.length!==0&&!f.headersList.get("Sec-WebSocket-Protocol")){gd(n,"Server did not respond with sent protocols.");return}if(f.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){gd(n,'Server did not set Upgrade header to "websocket".');return}if(f.headersList.get("Connection")?.toLowerCase()!=="upgrade"){gd(n,'Server did not set Connection header to "upgrade".');return}let h=f.headersList.get("Sec-WebSocket-Accept"),p=QF.createHash("sha1").update(l+c$e).digest("base64");if(h!==p){gd(n,"Incorrect hash received in Sec-WebSocket-Accept header.");return}let m=f.headersList.get("Sec-WebSocket-Extensions"),A;if(m!==null&&(A=A$e(m),!A.has("permessage-deflate"))){gd(n,"Sec-WebSocket-Extensions header does not match.");return}let E=f.headersList.get("Sec-WebSocket-Protocol");if(E!==null){let y=b$e("sec-websocket-protocol",c.headersList);if(y===null||!y.includes(E)){gd(n,"Protocol was not set in the opening handshake.");return}}f.socket.on("data",vie),f.socket.on("close",Nie),f.socket.on("error",Rie),bm.open.hasSubscribers&&bm.open.publish({address:f.socket.address(),protocol:E,extensions:m}),i(f,A)}})}o(I$e,"establishWebSocketConnection");function S$e(t,e,r,n){if(!(f$e(t)||h$e(t)))if(!p$e(t))gd(t,"Connection was closed before it was established."),t[eb]=ZC.CLOSING;else if(t[Yx]===Jx.NOT_SENT){t[Yx]=Jx.PROCESSING;let i=new w$e;e!==void 0&&r===void 0?(i.frameData=Buffer.allocUnsafe(2),i.frameData.writeUInt16BE(e,0)):e!==void 0&&r!==void 0?(i.frameData=Buffer.allocUnsafe(2+n),i.frameData.writeUInt16BE(e,0),i.frameData.write(r,2,"utf-8")):i.frameData=l$e,t[xie].socket.write(i.createFrame(u$e.CLOSE)),t[Yx]=Jx.SENT,t[eb]=ZC.CLOSING}else t[eb]=ZC.CLOSING}o(S$e,"closeWebSocketConnection");function vie(t){this.ws[Bie].write(t)||this.pause()}o(vie,"onSocketData");function Nie(){let{ws:t}=this,{[xie]:e}=t;e.socket.off("data",vie),e.socket.off("close",Nie),e.socket.off("error",Rie);let r=t[Yx]===Jx.SENT&&t[Sie],n=1005,i="",s=t[Bie].closingInfo;s&&!s.error?(n=s.code??1005,i=s.reason):t[Sie]||(n=1006),t[eb]=ZC.CLOSED,d$e("close",t,(a,c)=>new m$e(a,c),{wasClean:r,code:n,reason:i}),bm.close.hasSubscribers&&bm.close.publish({websocket:t,code:n,reason:i})}o(Nie,"onSocketClose");function Rie(t){let{ws:e}=this;e[eb]=ZC.CLOSING,bm.socketError.hasSubscribers&&bm.socketError.publish(t),this.destroy()}o(Rie,"onSocketError");_ie.exports={establishWebSocketConnection:I$e,closeWebSocketConnection:S$e}});var Die=g((T5t,Tie)=>{"use strict";var{createInflateRaw:B$e,Z_DEFAULT_WINDOWBITS:x$e}=require("node:zlib"),{isValidClientWindowBits:v$e}=KC(),{MessageSizeExceededError:N$e}=xt(),R$e=Buffer.from([0,0,255,255]),Kx=Symbol("kBuffer"),tb=Symbol("kLength"),PF=class{static{o(this,"PerMessageDeflate")}#e;#r={};#n=0;constructor(e,r){this.#r.serverNoContextTakeover=e.has("server_no_context_takeover"),this.#r.serverMaxWindowBits=e.get("server_max_window_bits"),this.#n=r.maxPayloadSize}decompress(e,r,n){if(!this.#e){let i=x$e;if(this.#r.serverMaxWindowBits){if(!v$e(this.#r.serverMaxWindowBits)){n(new Error("Invalid server_max_window_bits"));return}i=Number.parseInt(this.#r.serverMaxWindowBits)}try{this.#e=B$e({windowBits:i})}catch(s){n(s);return}this.#e[Kx]=[],this.#e[tb]=0,this.#e.on("data",s=>{if(this.#e[tb]+=s.length,this.#n>0&&this.#e[tb]>this.#n){n(new N$e),this.#e.removeAllListeners(),this.#e.destroy(),this.#e=null;return}this.#e[Kx].push(s)}),this.#e.on("error",s=>{this.#e=null,n(s)})}this.#e.write(e),r&&this.#e.write(R$e),this.#e.flush(()=>{if(!this.#e)return;let i=Buffer.concat(this.#e[Kx],this.#e[tb]);this.#e[Kx].length=0,this.#e[tb]=0,n(null,i)})}};Tie.exports={PerMessageDeflate:PF}});var Gie=g((Q5t,qie)=>{"use strict";var{Writable:_$e}=require("node:stream"),T$e=require("node:assert"),{parserStates:ts,opcodes:wm,states:D$e,emptyBuffer:Qie,sentCloseFrameState:kie}=mh(),{kReadyState:Q$e,kSentClose:Pie,kResponse:Oie,kReceivedClose:Lie}=WC(),{channels:Xx}=DA(),{isValidStatusCode:k$e,isValidOpcode:P$e,failWebsocketConnection:ks,websocketMessageReceived:Fie,utf8Decode:O$e,isControlFrame:OF,isTextBinaryFrame:LF,isContinuationFrame:L$e}=KC(),{WebsocketFrameSend:Mie}=Wx(),{closeWebSocketConnection:Uie}=kF(),{PerMessageDeflate:F$e}=Die(),{MessageSizeExceededError:FF}=xt();function rb(t,e,r){Uie(t,e,r,Buffer.byteLength(r)),ks(t,r)}o(rb,"failWebsocketConnectionWithCode");var MF=class extends _$e{static{o(this,"ByteParser")}#e=[];#r=0;#n=0;#t=!1;#i=ts.INFO;#s={};#l=[];#a;#c;#o;constructor(e,r,n={}){super(),this.ws=e,this.#a=r??new Map,this.#c=n.maxFragments??0,this.#o=n.maxPayloadSize??0,this.#a.has("permessage-deflate")&&this.#a.set("permessage-deflate",new F$e(r,n))}_write(e,r,n){this.#e.push(e),this.#n+=e.length,this.#t=!0,this.run(n)}#f(){return this.#o>0&&!OF(this.#s.opcode)&&this.#s.payloadLength+this.#r>this.#o?(rb(this.ws,1009,"Payload size exceeds maximum allowed size"),!1):!0}run(e){for(;this.#t;)if(this.#i===ts.INFO){if(this.#n<2)return e();let r=this.consume(2),n=(r[0]&128)!==0,i=r[0]&15,s=(r[1]&128)===128,a=!n&&i!==wm.CONTINUATION,c=r[1]&127,l=r[0]&64,u=r[0]&32,d=r[0]&16;if(!P$e(i))return ks(this.ws,"Invalid opcode received"),e();if(s)return ks(this.ws,"Frame cannot be masked"),e();if(l!==0&&!this.#a.has("permessage-deflate")){ks(this.ws,"Expected RSV1 to be clear.");return}if(u!==0||d!==0){ks(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(a&&!LF(i)){ks(this.ws,"Invalid frame type was fragmented.");return}if(LF(i)&&this.#l.length>0){ks(this.ws,"Expected continuation frame");return}if(this.#s.fragmented&&a){ks(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((c>125||a)&&OF(i)){ks(this.ws,"Control frame either too large or fragmented");return}if(L$e(i)&&this.#l.length===0&&!this.#s.compressed){ks(this.ws,"Unexpected continuation frame");return}if(c<=125){if(this.#s.payloadLength=c,this.#i=ts.READ_DATA,!this.#f())return}else c===126?this.#i=ts.PAYLOADLENGTH_16:c===127&&(this.#i=ts.PAYLOADLENGTH_64);LF(i)&&(this.#s.binaryType=i,this.#s.compressed=l!==0),this.#s.opcode=i,this.#s.masked=s,this.#s.fin=n,this.#s.fragmented=a}else if(this.#i===ts.PAYLOADLENGTH_16){if(this.#n<2)return e();let r=this.consume(2);if(this.#s.payloadLength=r.readUInt16BE(0),this.#i=ts.READ_DATA,!this.#f())return}else if(this.#i===ts.PAYLOADLENGTH_64){if(this.#n<8)return e();let r=this.consume(8),n=r.readUInt32BE(0),i=r.readUInt32BE(4);if(n!==0||i>2**31-1){ks(this.ws,"Received payload length > 2^31 bytes.");return}if(this.#s.payloadLength=i,this.#i=ts.READ_DATA,!this.#f())return}else if(this.#i===ts.READ_DATA){if(this.#n{if(n){let s=n instanceof FF?1009:1007;rb(this.ws,s,n.message);return}if(this.writeFragments(i)){if(this.#o>0&&this.#r>this.#o){rb(this.ws,1009,new FF().message);return}if(!this.#s.fin){this.#i=ts.INFO,this.#t=!0,this.run(e);return}Fie(this.ws,this.#s.binaryType,this.consumeFragments()),this.#t=!0,this.#i=ts.INFO,this.run(e)}}),this.#t=!1;break}else{if(!this.writeFragments(r))return;if(this.#o>0&&this.#r>this.#o){rb(this.ws,1009,new FF().message);return}!this.#s.fragmented&&this.#s.fin&&Fie(this.ws,this.#s.binaryType,this.consumeFragments()),this.#i=ts.INFO}}}consume(e){if(e>this.#n)throw new Error("Called consume() before buffers satiated.");if(e===0)return Qie;if(this.#e[0].length===e)return this.#n-=this.#e[0].length,this.#e.shift();let r=Buffer.allocUnsafe(e),n=0;for(;n!==e;){let i=this.#e[0],{length:s}=i;if(s+n===e){r.set(this.#e.shift(),n);break}else if(s+n>e){r.set(i.subarray(0,e-n),n),this.#e[0]=i.subarray(e-n);break}else r.set(this.#e.shift(),n),n+=i.length}return this.#n-=e,r}writeFragments(e){return this.#c>0&&this.#l.length===this.#c?(rb(this.ws,1008,"Too many message fragments"),!1):(this.#r+=e.length,this.#l.push(e),!0)}consumeFragments(){let e=this.#l;if(e.length===1)return this.#r=0,e.shift();let r=Buffer.concat(e,this.#r);return this.#l=[],this.#r=0,r}parseCloseBody(e){T$e(e.length!==1);let r;if(e.length>=2&&(r=e.readUInt16BE(0)),r!==void 0&&!k$e(r))return{code:1002,reason:"Invalid status code",error:!0};let n=e.subarray(2);n[0]===239&&n[1]===187&&n[2]===191&&(n=n.subarray(3));try{n=O$e(n)}catch{return{code:1007,reason:"Invalid UTF-8",error:!0}}return{code:r,reason:n,error:!1}}parseControlFrame(e){let{opcode:r,payloadLength:n}=this.#s;if(r===wm.CLOSE){if(n===1)return ks(this.ws,"Received close frame with a 1-byte body."),!1;if(this.#s.closeInfo=this.parseCloseBody(e),this.#s.closeInfo.error){let{code:i,reason:s}=this.#s.closeInfo;return Uie(this.ws,i,s,s.length),ks(this.ws,s),!1}if(this.ws[Pie]!==kie.SENT){let i=Qie;this.#s.closeInfo.code&&(i=Buffer.allocUnsafe(2),i.writeUInt16BE(this.#s.closeInfo.code,0));let s=new Mie(i);this.ws[Oie].socket.write(s.createFrame(wm.CLOSE),a=>{a||(this.ws[Pie]=kie.SENT)})}return this.ws[Q$e]=D$e.CLOSING,this.ws[Lie]=!0,!1}else if(r===wm.PING){if(!this.ws[Lie]){let i=new Mie(e);this.ws[Oie].socket.write(i.createFrame(wm.PONG)),Xx.ping.hasSubscribers&&Xx.ping.publish({payload:e})}}else r===wm.PONG&&Xx.pong.hasSubscribers&&Xx.pong.publish({payload:e});return!0}get closingInfo(){return this.#s.closeInfo}};qie.exports={ByteParser:MF}});var jie=g((P5t,$ie)=>{"use strict";var{WebsocketFrameSend:M$e}=Wx(),{opcodes:Hie,sendHints:Im}=mh(),U$e=VO(),zie=Buffer[Symbol.species],UF=class{static{o(this,"SendQueue")}#e=new U$e;#r=!1;#n;constructor(e){this.#n=e}add(e,r,n){if(n!==Im.blob){let s=Vie(e,n);if(!this.#r)this.#n.write(s,r);else{let a={promise:null,callback:r,frame:s};this.#e.push(a)}return}let i={promise:e.arrayBuffer().then(s=>{i.promise=null,i.frame=Vie(s,n)}),callback:r,frame:null};this.#e.push(i),this.#r||this.#t()}async#t(){this.#r=!0;let e=this.#e;for(;!e.isEmpty();){let r=e.shift();r.promise!==null&&await r.promise,this.#n.write(r.frame,r.callback),r.callback=r.frame=null}this.#r=!1}};function Vie(t,e){return new M$e(q$e(t,e)).createFrame(e===Im.string?Hie.TEXT:Hie.BINARY)}o(Vie,"createFrame");function q$e(t,e){switch(e){case Im.string:return Buffer.from(t);case Im.arrayBuffer:case Im.blob:return new zie(t);case Im.typedArray:return new zie(t.buffer,t.byteOffset,t.byteLength)}}o(q$e,"toBuffer");$ie.exports={SendQueue:UF}});var nse=g((L5t,rse)=>{"use strict";var{webidl:Ue}=qn(),{URLSerializer:G$e}=Yi(),{environmentSettingsObject:Wie}=xs(),{staticPropertyDescriptors:yd,states:nb,sentCloseFrameState:H$e,sendHints:Zx}=mh(),{kWebSocketURL:Jie,kReadyState:qF,kController:Yie,kBinaryType:ev,kResponse:Kie,kSentClose:z$e,kByteParser:V$e}=WC(),{isConnecting:$$e,isEstablished:j$e,isClosing:W$e,isValidSubprotocol:J$e,fireEvent:Xie}=KC(),{establishWebSocketConnection:Y$e,closeWebSocketConnection:Zie}=kF(),{ByteParser:K$e}=Gie(),{kEnumerableProperty:go,isBlobLike:ese}=st(),{getGlobalDispatcher:X$e}=Ax(),{types:tse}=require("node:util"),{ErrorEvent:Z$e,CloseEvent:e8e}=Em(),{SendQueue:t8e}=jie(),Ps=class t extends EventTarget{static{o(this,"WebSocket")}#e={open:null,error:null,close:null,message:null};#r=0;#n="";#t="";#i;constructor(e,r=[]){super(),Ue.util.markAsUncloneable(this);let n="WebSocket constructor";Ue.argumentLengthCheck(arguments,1,n);let i=Ue.converters["DOMString or sequence or WebSocketInit"](r,n,"options");e=Ue.converters.USVString(e,n,"url"),r=i.protocols;let s=Wie.settingsObject.baseUrl,a;try{a=new URL(e,s)}catch(l){throw new DOMException(l,"SyntaxError")}if(a.protocol==="http:"?a.protocol="ws:":a.protocol==="https:"&&(a.protocol="wss:"),a.protocol!=="ws:"&&a.protocol!=="wss:")throw new DOMException(`Expected a ws: or wss: protocol, got ${a.protocol}`,"SyntaxError");if(a.hash||a.href.endsWith("#"))throw new DOMException("Got fragment","SyntaxError");if(typeof r=="string"&&(r=[r]),r.length!==new Set(r.map(l=>l.toLowerCase())).size)throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError");if(r.length>0&&!r.every(l=>J$e(l)))throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError");this[Jie]=new URL(a.href);let c=Wie.settingsObject;this[Yie]=Y$e(a,r,c,this,(l,u)=>this.#s(l,u),i),this[qF]=t.CONNECTING,this[z$e]=H$e.NOT_SENT,this[ev]="blob"}close(e=void 0,r=void 0){Ue.brandCheck(this,t);let n="WebSocket.close";if(e!==void 0&&(e=Ue.converters["unsigned short"](e,n,"code",{clamp:!0})),r!==void 0&&(r=Ue.converters.USVString(r,n,"reason")),e!==void 0&&e!==1e3&&(e<3e3||e>4999))throw new DOMException("invalid code","InvalidAccessError");let i=0;if(r!==void 0&&(i=Buffer.byteLength(r),i>123))throw new DOMException(`Reason must be less than 123 bytes; received ${i}`,"SyntaxError");Zie(this,e,r,i)}send(e){Ue.brandCheck(this,t);let r="WebSocket.send";if(Ue.argumentLengthCheck(arguments,1,r),e=Ue.converters.WebSocketSendData(e,r,"data"),$$e(this))throw new DOMException("Sent before connected.","InvalidStateError");if(!(!j$e(this)||W$e(this)))if(typeof e=="string"){let n=Buffer.byteLength(e);this.#r+=n,this.#i.add(e,()=>{this.#r-=n},Zx.string)}else tse.isArrayBuffer(e)?(this.#r+=e.byteLength,this.#i.add(e,()=>{this.#r-=e.byteLength},Zx.arrayBuffer)):ArrayBuffer.isView(e)?(this.#r+=e.byteLength,this.#i.add(e,()=>{this.#r-=e.byteLength},Zx.typedArray)):ese(e)&&(this.#r+=e.size,this.#i.add(e,()=>{this.#r-=e.size},Zx.blob))}get readyState(){return Ue.brandCheck(this,t),this[qF]}get bufferedAmount(){return Ue.brandCheck(this,t),this.#r}get url(){return Ue.brandCheck(this,t),G$e(this[Jie])}get extensions(){return Ue.brandCheck(this,t),this.#t}get protocol(){return Ue.brandCheck(this,t),this.#n}get onopen(){return Ue.brandCheck(this,t),this.#e.open}set onopen(e){Ue.brandCheck(this,t),this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onerror(){return Ue.brandCheck(this,t),this.#e.error}set onerror(e){Ue.brandCheck(this,t),this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}get onclose(){return Ue.brandCheck(this,t),this.#e.close}set onclose(e){Ue.brandCheck(this,t),this.#e.close&&this.removeEventListener("close",this.#e.close),typeof e=="function"?(this.#e.close=e,this.addEventListener("close",e)):this.#e.close=null}get onmessage(){return Ue.brandCheck(this,t),this.#e.message}set onmessage(e){Ue.brandCheck(this,t),this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get binaryType(){return Ue.brandCheck(this,t),this[ev]}set binaryType(e){Ue.brandCheck(this,t),e!=="blob"&&e!=="arraybuffer"?this[ev]="blob":this[ev]=e}#s(e,r){this[Kie]=e;let n=this[Yie]?.dispatcher?.webSocketOptions,i=n?.maxFragments,s=n?.maxPayloadSize,a=new K$e(this,r,{maxFragments:i,maxPayloadSize:s});a.on("drain",r8e),a.on("error",n8e.bind(this)),e.socket.ws=this,this[V$e]=a,this.#i=new t8e(e.socket),this[qF]=nb.OPEN;let c=e.headersList.get("sec-websocket-extensions");c!==null&&(this.#t=c);let l=e.headersList.get("sec-websocket-protocol");l!==null&&(this.#n=l),Xie("open",this)}};Ps.CONNECTING=Ps.prototype.CONNECTING=nb.CONNECTING;Ps.OPEN=Ps.prototype.OPEN=nb.OPEN;Ps.CLOSING=Ps.prototype.CLOSING=nb.CLOSING;Ps.CLOSED=Ps.prototype.CLOSED=nb.CLOSED;Object.defineProperties(Ps.prototype,{CONNECTING:yd,OPEN:yd,CLOSING:yd,CLOSED:yd,url:go,readyState:go,bufferedAmount:go,onopen:go,onerror:go,onclose:go,close:go,onmessage:go,binaryType:go,send:go,extensions:go,protocol:go,[Symbol.toStringTag]:{value:"WebSocket",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(Ps,{CONNECTING:yd,OPEN:yd,CLOSING:yd,CLOSED:yd});Ue.converters["sequence"]=Ue.sequenceConverter(Ue.converters.DOMString);Ue.converters["DOMString or sequence"]=function(t,e,r){return Ue.util.Type(t)==="Object"&&Symbol.iterator in t?Ue.converters["sequence"](t):Ue.converters.DOMString(t,e,r)};Ue.converters.WebSocketInit=Ue.dictionaryConverter([{key:"protocols",converter:Ue.converters["DOMString or sequence"],defaultValue:o(()=>new Array(0),"defaultValue")},{key:"dispatcher",converter:Ue.converters.any,defaultValue:o(()=>X$e(),"defaultValue")},{key:"headers",converter:Ue.nullableConverter(Ue.converters.HeadersInit)}]);Ue.converters["DOMString or sequence or WebSocketInit"]=function(t){return Ue.util.Type(t)==="Object"&&!(Symbol.iterator in t)?Ue.converters.WebSocketInit(t):{protocols:Ue.converters["DOMString or sequence"](t)}};Ue.converters.WebSocketSendData=function(t){if(Ue.util.Type(t)==="Object"){if(ese(t))return Ue.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||tse.isArrayBuffer(t))return Ue.converters.BufferSource(t)}return Ue.converters.USVString(t)};function r8e(){this.ws[Kie].socket.resume()}o(r8e,"onParserDrain");function n8e(t){let e,r;t instanceof e8e?(e=t.reason,r=t.code):e=t.message,Xie("error",this,()=>new Z$e("error",{error:t,message:e})),Zie(this,r)}o(n8e,"onParserError");rse.exports={WebSocket:Ps}});var GF=g((M5t,ise)=>{"use strict";function i8e(t){return t.indexOf("\0")===-1}o(i8e,"isValidLastEventId");function s8e(t){if(t.length===0)return!1;for(let e=0;e57)return!1;return!0}o(s8e,"isASCIINumber");function o8e(t){return new Promise(e=>{setTimeout(e,t).unref()})}o(o8e,"delay");ise.exports={isValidLastEventId:i8e,isASCIINumber:s8e,delay:o8e}});var ose=g((q5t,sse)=>{"use strict";var{Transform:a8e}=require("node:stream"),{isASCIINumber:c8e,isValidLastEventId:l8e}=GF(),Sm=[239,187,191],HF=10,tv=13,u8e=58,d8e=32,f8e=Buffer.from("data"),h8e=Buffer.from("event"),p8e=Buffer.from("id"),A8e=Buffer.from("retry");function m8e(t,e){if(e>=t.length)return!1;for(let r=e;r57)return!1;return!0}o(m8e,"isASCIINumberBytes");function g8e(t,e){for(let r=e;r0&&(r.event=a)}}processEvent(e){e.retry&&c8e(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&l8e(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event.data=void 0,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let n=this.lineChunkIndex;n<=this.chunkIndex;n++){let i=this.chunks[n],s=n===this.lineChunkIndex?this.linePos:0,a=n===this.chunkIndex?this.pos:i.length,c=i.subarray(s,a);r+=c.length,e.push(c)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,n=this.linePos;for(;r0&&this.lineChunkIndex{"use strict";var{pipeline:y8e}=require("node:stream"),{fetching:E8e}=zC(),{makeRequest:C8e}=hm(),{webidl:eu}=qn(),{EventSourceStream:b8e}=ose(),{parseMIMEType:w8e}=Yi(),{createFastMessageEvent:I8e}=Em(),{isNetworkError:ase}=GC(),{delay:S8e}=GF(),{kEnumerableProperty:gh}=st(),{environmentSettingsObject:cse}=xs(),lse=!1,use=3e3,ib=0,dse=1,sb=2,B8e="anonymous",x8e="use-credentials",Bm=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#r=null;#n=!1;#t=ib;#i=null;#s=null;#l;#a;constructor(e,r={}){super(),eu.util.markAsUncloneable(this);let n="EventSource constructor";eu.argumentLengthCheck(arguments,1,n),lse||(lse=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=eu.converters.USVString(e,n,"url"),r=eu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#l=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:use};let i=cse,s;try{s=new URL(e,i.settingsObject.baseUrl),this.#a.origin=s.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#r=s.href;let a=B8e;r.withCredentials&&(a=x8e,this.#n=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=cse.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#r)],this.#i=C8e(c),this.#c()}get readyState(){return this.#t}get url(){return this.#r}get withCredentials(){return this.#n}#c(){if(this.#t===sb)return;this.#t=ib;let e={request:this.#i,dispatcher:this.#l},r=o(n=>{ase(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#o()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(ase(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#o();return}let i=n.headersList.get("content-type",!0),s=i!==null?w8e(i):"failure",a=s!=="failure"&&s.essence==="text/event-stream";if(n.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#t=dse,this.dispatchEvent(new Event("open")),this.#a.origin=n.urlList[n.urlList.length-1].origin;let c=new b8e({eventSourceSettings:this.#a,push:o(l=>{this.dispatchEvent(I8e(l.type,l.options))},"push")});y8e(n.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=E8e(e)}async#o(){this.#t!==sb&&(this.#t=ib,this.dispatchEvent(new Event("error")),await S8e(this.#a.reconnectionTime),this.#t===ib&&(this.#a.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#a.lastEventId,!0),this.#c()))}close(){eu.brandCheck(this,t),this.#t!==sb&&(this.#t=sb,this.#s.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},fse={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:ib,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:dse,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:sb,writable:!1}};Object.defineProperties(Bm,fse);Object.defineProperties(Bm.prototype,fse);Object.defineProperties(Bm.prototype,{close:gh,onerror:gh,onmessage:gh,onopen:gh,readyState:gh,url:gh,withCredentials:gh});eu.converters.EventSourceInitDict=eu.dictionaryConverter([{key:"withCredentials",converter:eu.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"dispatcher",converter:eu.converters.any}]);hse.exports={EventSource:Bm,defaultReconnectionTime:use}});var yh=g((V5t,Le)=>{"use strict";var v8e=ZA(),Ase=cC(),N8e=em(),R8e=pee(),_8e=tm(),T8e=dL(),D8e=Fee(),Q8e=Vee(),mse=xt(),iv=st(),{InvalidArgumentError:nv}=mse,xm=Tte(),k8e=uC(),P8e=$L(),O8e=hre(),L8e=JL(),F8e=QL(),M8e=sx(),{getGlobalDispatcher:gse,setGlobalDispatcher:U8e}=Ax(),q8e=mx(),G8e=WB(),H8e=JB();Object.assign(Ase.prototype,xm);Le.exports.Dispatcher=Ase;Le.exports.Client=v8e;Le.exports.Pool=N8e;Le.exports.BalancedPool=R8e;Le.exports.Agent=_8e;Le.exports.ProxyAgent=T8e;Le.exports.EnvHttpProxyAgent=D8e;Le.exports.RetryAgent=Q8e;Le.exports.RetryHandler=M8e;Le.exports.DecoratorHandler=q8e;Le.exports.RedirectHandler=G8e;Le.exports.createRedirectInterceptor=H8e;Le.exports.interceptors={redirect:Cre(),retry:wre(),dump:Sre(),dns:vre()};Le.exports.buildConnector=k8e;Le.exports.errors=mse;Le.exports.util={parseHeaders:iv.parseHeaders,headerNameToString:iv.headerNameToString};function ob(t){return(e,r,n)=>{if(typeof r=="function"&&(n=r,r=null),!e||typeof e!="string"&&typeof e!="object"&&!(e instanceof URL))throw new nv("invalid url");if(r!=null&&typeof r!="object")throw new nv("invalid opts");if(r&&r.path!=null){if(typeof r.path!="string")throw new nv("invalid opts.path");let a=r.path;r.path.startsWith("/")||(a=`/${a}`),e=new URL(iv.parseOrigin(e).origin+a)}else r||(r=typeof e=="object"?e:{}),e=iv.parseURL(e);let{agent:i,dispatcher:s=gse()}=r;if(i)throw new nv("unsupported opts.agent. Did you mean opts.client?");return t.call(s,{...r,origin:e.origin,path:e.search?`${e.pathname}${e.search}`:e.pathname,method:r.method||(r.body?"PUT":"GET")},n)}}o(ob,"makeDispatcher");Le.exports.setGlobalDispatcher=U8e;Le.exports.getGlobalDispatcher=gse;var z8e=zC().fetch;Le.exports.fetch=o(async function(e,r=void 0){try{return await z8e(e,r)}catch(n){throw n&&typeof n=="object"&&Error.captureStackTrace(n),n}},"fetch");Le.exports.Headers=uh().Headers;Le.exports.Response=GC().Response;Le.exports.Request=hm().Request;Le.exports.FormData=gC().FormData;Le.exports.File=globalThis.File??require("node:buffer").File;Le.exports.FileReader=Hne().FileReader;var{setGlobalOrigin:V8e,getGlobalOrigin:$8e}=fO();Le.exports.setGlobalOrigin=V8e;Le.exports.getGlobalOrigin=$8e;var{CacheStorage:j8e}=Xne(),{kConstruct:W8e}=Lx();Le.exports.caches=new j8e(W8e);var{deleteCookie:J8e,getCookies:Y8e,getSetCookies:K8e,setCookie:X8e}=lie();Le.exports.deleteCookie=J8e;Le.exports.getCookies=Y8e;Le.exports.getSetCookies=K8e;Le.exports.setCookie=X8e;var{parseMIMEType:Z8e,serializeAMimeType:eje}=Yi();Le.exports.parseMIMEType=Z8e;Le.exports.serializeAMimeType=eje;var{CloseEvent:tje,ErrorEvent:rje,MessageEvent:nje}=Em();Le.exports.WebSocket=nse().WebSocket;Le.exports.CloseEvent=tje;Le.exports.ErrorEvent=rje;Le.exports.MessageEvent=nje;Le.exports.request=ob(xm.request);Le.exports.stream=ob(xm.stream);Le.exports.pipeline=ob(xm.pipeline);Le.exports.connect=ob(xm.connect);Le.exports.upgrade=ob(xm.upgrade);Le.exports.MockClient=P8e;Le.exports.MockPool=L8e;Le.exports.MockAgent=O8e;Le.exports.mockErrors=F8e;var{EventSource:ije}=pse();Le.exports.EventSource=ije});var mb=g((AVt,Yse)=>{"use strict";var _je="2.0.0",Tje=Number.MAX_SAFE_INTEGER||9007199254740991,Dje=16,Qje=250,kje=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Yse.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Dje,MAX_SAFE_BUILD_LENGTH:Qje,MAX_SAFE_INTEGER:Tje,RELEASE_TYPES:kje,SEMVER_SPEC_VERSION:_je,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var gb=g((mVt,Kse)=>{"use strict";var Pje=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Kse.exports=Pje});var _m=g((pc,Xse)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:pM,MAX_SAFE_BUILD_LENGTH:Oje,MAX_LENGTH:Lje}=mb(),Fje=gb();pc=Xse.exports={};var Mje=pc.re=[],Uje=pc.safeRe=[],ie=pc.src=[],qje=pc.safeSrc=[],se=pc.t={},Gje=0,AM="[a-zA-Z0-9-]",Hje=[["\\s",1],["\\d",Lje],[AM,Oje]],zje=o(t=>{for(let[e,r]of Hje)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),$e=o((t,e,r)=>{let n=zje(e),i=Gje++;Fje(t,i,e),se[t]=i,ie[i]=e,qje[i]=n,Mje[i]=new RegExp(e,r?"g":void 0),Uje[i]=new RegExp(n,r?"g":void 0)},"createToken");$e("NUMERICIDENTIFIER","0|[1-9]\\d*");$e("NUMERICIDENTIFIERLOOSE","\\d+");$e("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${AM}*`);$e("MAINVERSION",`(${ie[se.NUMERICIDENTIFIER]})\\.(${ie[se.NUMERICIDENTIFIER]})\\.(${ie[se.NUMERICIDENTIFIER]})`);$e("MAINVERSIONLOOSE",`(${ie[se.NUMERICIDENTIFIERLOOSE]})\\.(${ie[se.NUMERICIDENTIFIERLOOSE]})\\.(${ie[se.NUMERICIDENTIFIERLOOSE]})`);$e("PRERELEASEIDENTIFIER",`(?:${ie[se.NONNUMERICIDENTIFIER]}|${ie[se.NUMERICIDENTIFIER]})`);$e("PRERELEASEIDENTIFIERLOOSE",`(?:${ie[se.NONNUMERICIDENTIFIER]}|${ie[se.NUMERICIDENTIFIERLOOSE]})`);$e("PRERELEASE",`(?:-(${ie[se.PRERELEASEIDENTIFIER]}(?:\\.${ie[se.PRERELEASEIDENTIFIER]})*))`);$e("PRERELEASELOOSE",`(?:-?(${ie[se.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ie[se.PRERELEASEIDENTIFIERLOOSE]})*))`);$e("BUILDIDENTIFIER",`${AM}+`);$e("BUILD",`(?:\\+(${ie[se.BUILDIDENTIFIER]}(?:\\.${ie[se.BUILDIDENTIFIER]})*))`);$e("FULLPLAIN",`v?${ie[se.MAINVERSION]}${ie[se.PRERELEASE]}?${ie[se.BUILD]}?`);$e("FULL",`^${ie[se.FULLPLAIN]}$`);$e("LOOSEPLAIN",`[v=\\s]*${ie[se.MAINVERSIONLOOSE]}${ie[se.PRERELEASELOOSE]}?${ie[se.BUILD]}?`);$e("LOOSE",`^${ie[se.LOOSEPLAIN]}$`);$e("GTLT","((?:<|>)?=?)");$e("XRANGEIDENTIFIERLOOSE",`${ie[se.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);$e("XRANGEIDENTIFIER",`${ie[se.NUMERICIDENTIFIER]}|x|X|\\*`);$e("XRANGEPLAIN",`[v=\\s]*(${ie[se.XRANGEIDENTIFIER]})(?:\\.(${ie[se.XRANGEIDENTIFIER]})(?:\\.(${ie[se.XRANGEIDENTIFIER]})(?:${ie[se.PRERELEASE]})?${ie[se.BUILD]}?)?)?`);$e("XRANGEPLAINLOOSE",`[v=\\s]*(${ie[se.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ie[se.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ie[se.XRANGEIDENTIFIERLOOSE]})(?:${ie[se.PRERELEASELOOSE]})?${ie[se.BUILD]}?)?)?`);$e("XRANGE",`^${ie[se.GTLT]}\\s*${ie[se.XRANGEPLAIN]}$`);$e("XRANGELOOSE",`^${ie[se.GTLT]}\\s*${ie[se.XRANGEPLAINLOOSE]}$`);$e("COERCEPLAIN",`(^|[^\\d])(\\d{1,${pM}})(?:\\.(\\d{1,${pM}}))?(?:\\.(\\d{1,${pM}}))?`);$e("COERCE",`${ie[se.COERCEPLAIN]}(?:$|[^\\d])`);$e("COERCEFULL",ie[se.COERCEPLAIN]+`(?:${ie[se.PRERELEASE]})?(?:${ie[se.BUILD]})?(?:$|[^\\d])`);$e("COERCERTL",ie[se.COERCE],!0);$e("COERCERTLFULL",ie[se.COERCEFULL],!0);$e("LONETILDE","(?:~>?)");$e("TILDETRIM",`(\\s*)${ie[se.LONETILDE]}\\s+`,!0);pc.tildeTrimReplace="$1~";$e("TILDE",`^${ie[se.LONETILDE]}${ie[se.XRANGEPLAIN]}$`);$e("TILDELOOSE",`^${ie[se.LONETILDE]}${ie[se.XRANGEPLAINLOOSE]}$`);$e("LONECARET","(?:\\^)");$e("CARETTRIM",`(\\s*)${ie[se.LONECARET]}\\s+`,!0);pc.caretTrimReplace="$1^";$e("CARET",`^${ie[se.LONECARET]}${ie[se.XRANGEPLAIN]}$`);$e("CARETLOOSE",`^${ie[se.LONECARET]}${ie[se.XRANGEPLAINLOOSE]}$`);$e("COMPARATORLOOSE",`^${ie[se.GTLT]}\\s*(${ie[se.LOOSEPLAIN]})$|^$`);$e("COMPARATOR",`^${ie[se.GTLT]}\\s*(${ie[se.FULLPLAIN]})$|^$`);$e("COMPARATORTRIM",`(\\s*)${ie[se.GTLT]}\\s*(${ie[se.LOOSEPLAIN]}|${ie[se.XRANGEPLAIN]})`,!0);pc.comparatorTrimReplace="$1$2$3";$e("HYPHENRANGE",`^\\s*(${ie[se.XRANGEPLAIN]})\\s+-\\s+(${ie[se.XRANGEPLAIN]})\\s*$`);$e("HYPHENRANGELOOSE",`^\\s*(${ie[se.XRANGEPLAINLOOSE]})\\s+-\\s+(${ie[se.XRANGEPLAINLOOSE]})\\s*$`);$e("STAR","(<|>)?=?\\s*\\*");$e("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");$e("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var uv=g((yVt,Zse)=>{"use strict";var Vje=Object.freeze({loose:!0}),$je=Object.freeze({}),jje=o(t=>t?typeof t!="object"?Vje:t:$je,"parseOptions");Zse.exports=jje});var mM=g((CVt,roe)=>{"use strict";var eoe=/^[0-9]+$/,toe=o((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:ttoe(e,t),"rcompareIdentifiers");roe.exports={compareIdentifiers:toe,rcompareIdentifiers:Wje}});var ii=g((wVt,ioe)=>{"use strict";var dv=gb(),{MAX_LENGTH:noe,MAX_SAFE_INTEGER:fv}=mb(),{safeRe:hv,t:pv}=_m(),Jje=uv(),{compareIdentifiers:gM}=mM(),yM=class t{static{o(this,"SemVer")}constructor(e,r){if(r=Jje(r),e instanceof t){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>noe)throw new TypeError(`version is longer than ${noe} characters`);dv("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?hv[pv.LOOSE]:hv[pv.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>fv||this.major<0)throw new TypeError("Invalid major version");if(this.minor>fv||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>fv||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&se.major?1:this.minore.minor?1:this.patche.patch?1:0}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],i=e.prerelease[r];if(dv("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return gM(n,i)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let n=this.build[r],i=e.build[r];if(dv("build compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return gM(n,i)}while(++r)}inc(e,r,n){if(e.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let i=`-${r}`.match(this.options.loose?hv[pv.PRERELEASELOOSE]:hv[pv.PRERELEASE]);if(!i||i[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let i=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[i];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let s=[r,i];n===!1&&(s=[r]),gM(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};ioe.exports=yM});var Sh=g((SVt,ooe)=>{"use strict";var soe=ii(),Yje=o((t,e,r=!1)=>{if(t instanceof soe)return t;try{return new soe(t,e)}catch(n){if(!r)return null;throw n}},"parse");ooe.exports=Yje});var coe=g((xVt,aoe)=>{"use strict";var Kje=Sh(),Xje=o((t,e)=>{let r=Kje(t,e);return r?r.version:null},"valid");aoe.exports=Xje});var uoe=g((NVt,loe)=>{"use strict";var Zje=Sh(),eWe=o((t,e)=>{let r=Zje(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null},"clean");loe.exports=eWe});var hoe=g((_Vt,foe)=>{"use strict";var doe=ii(),tWe=o((t,e,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new doe(t instanceof doe?t.version:t,r).inc(e,n,i).version}catch{return null}},"inc");foe.exports=tWe});var moe=g((DVt,Aoe)=>{"use strict";var poe=Sh(),rWe=o((t,e)=>{let r=poe(t,null,!0),n=poe(e,null,!0),i=r.compare(n);if(i===0)return null;let s=i>0,a=s?r:n,c=s?n:r,l=!!a.prerelease.length;if(!!c.prerelease.length&&!l){if(!c.patch&&!c.minor)return"major";if(c.compareMain(a)===0)return c.minor&&!c.patch?"minor":"patch"}let d=l?"pre":"";return r.major!==n.major?d+"major":r.minor!==n.minor?d+"minor":r.patch!==n.patch?d+"patch":"prerelease"},"diff");Aoe.exports=rWe});var yoe=g((kVt,goe)=>{"use strict";var nWe=ii(),iWe=o((t,e)=>new nWe(t,e).major,"major");goe.exports=iWe});var Coe=g((OVt,Eoe)=>{"use strict";var sWe=ii(),oWe=o((t,e)=>new sWe(t,e).minor,"minor");Eoe.exports=oWe});var woe=g((FVt,boe)=>{"use strict";var aWe=ii(),cWe=o((t,e)=>new aWe(t,e).patch,"patch");boe.exports=cWe});var Soe=g((UVt,Ioe)=>{"use strict";var lWe=Sh(),uWe=o((t,e)=>{let r=lWe(t,e);return r&&r.prerelease.length?r.prerelease:null},"prerelease");Ioe.exports=uWe});var Co=g((GVt,xoe)=>{"use strict";var Boe=ii(),dWe=o((t,e,r)=>new Boe(t,r).compare(new Boe(e,r)),"compare");xoe.exports=dWe});var Noe=g((zVt,voe)=>{"use strict";var fWe=Co(),hWe=o((t,e,r)=>fWe(e,t,r),"rcompare");voe.exports=hWe});var _oe=g(($Vt,Roe)=>{"use strict";var pWe=Co(),AWe=o((t,e)=>pWe(t,e,!0),"compareLoose");Roe.exports=AWe});var Av=g((WVt,Doe)=>{"use strict";var Toe=ii(),mWe=o((t,e,r)=>{let n=new Toe(t,r),i=new Toe(e,r);return n.compare(i)||n.compareBuild(i)},"compareBuild");Doe.exports=mWe});var koe=g((YVt,Qoe)=>{"use strict";var gWe=Av(),yWe=o((t,e)=>t.sort((r,n)=>gWe(r,n,e)),"sort");Qoe.exports=yWe});var Ooe=g((XVt,Poe)=>{"use strict";var EWe=Av(),CWe=o((t,e)=>t.sort((r,n)=>EWe(n,r,e)),"rsort");Poe.exports=CWe});var yb=g((e4t,Loe)=>{"use strict";var bWe=Co(),wWe=o((t,e,r)=>bWe(t,e,r)>0,"gt");Loe.exports=wWe});var mv=g((r4t,Foe)=>{"use strict";var IWe=Co(),SWe=o((t,e,r)=>IWe(t,e,r)<0,"lt");Foe.exports=SWe});var EM=g((i4t,Moe)=>{"use strict";var BWe=Co(),xWe=o((t,e,r)=>BWe(t,e,r)===0,"eq");Moe.exports=xWe});var CM=g((o4t,Uoe)=>{"use strict";var vWe=Co(),NWe=o((t,e,r)=>vWe(t,e,r)!==0,"neq");Uoe.exports=NWe});var gv=g((c4t,qoe)=>{"use strict";var RWe=Co(),_We=o((t,e,r)=>RWe(t,e,r)>=0,"gte");qoe.exports=_We});var yv=g((u4t,Goe)=>{"use strict";var TWe=Co(),DWe=o((t,e,r)=>TWe(t,e,r)<=0,"lte");Goe.exports=DWe});var bM=g((f4t,Hoe)=>{"use strict";var QWe=EM(),kWe=CM(),PWe=yb(),OWe=gv(),LWe=mv(),FWe=yv(),MWe=o((t,e,r,n)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return QWe(t,r,n);case"!=":return kWe(t,r,n);case">":return PWe(t,r,n);case">=":return OWe(t,r,n);case"<":return LWe(t,r,n);case"<=":return FWe(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}},"cmp");Hoe.exports=MWe});var Voe=g((p4t,zoe)=>{"use strict";var UWe=ii(),qWe=Sh(),{safeRe:Ev,t:Cv}=_m(),GWe=o((t,e)=>{if(t instanceof UWe)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(e.includePrerelease?Ev[Cv.COERCEFULL]:Ev[Cv.COERCE]);else{let l=e.includePrerelease?Ev[Cv.COERCERTLFULL]:Ev[Cv.COERCERTL],u;for(;(u=l.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||u.index+u[0].length!==r.index+r[0].length)&&(r=u),l.lastIndex=u.index+u[1].length+u[2].length;l.lastIndex=-1}if(r===null)return null;let n=r[2],i=r[3]||"0",s=r[4]||"0",a=e.includePrerelease&&r[5]?`-${r[5]}`:"",c=e.includePrerelease&&r[6]?`+${r[6]}`:"";return qWe(`${n}.${i}.${s}${a}${c}`,e)},"coerce");zoe.exports=GWe});var joe=g((m4t,$oe)=>{"use strict";var wM=class{static{o(this,"LRUCache")}constructor(){this.max=1e3,this.map=new Map}get(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.map.set(e,r),r}delete(e){return this.map.delete(e)}set(e,r){if(!this.delete(e)&&r!==void 0){if(this.map.size>=this.max){let i=this.map.keys().next().value;this.delete(i)}this.map.set(e,r)}return this}};$oe.exports=wM});var bo=g((y4t,Koe)=>{"use strict";var HWe=/\s+/g,IM=class t{static{o(this,"Range")}constructor(e,r){if(r=VWe(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof SM)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().replace(HWe," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(i=>!Joe(i[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&XWe(i[0])){this.set=[i];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e0&&(this.formatted+="||");let r=this.set[e];for(let n=0;n0&&(this.formatted+=" "),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let n=((this.options.includePrerelease&&YWe)|(this.options.loose&&KWe))+":"+e,i=Woe.get(n);if(i)return i;let s=this.options.loose,a=s?xi[si.HYPHENRANGELOOSE]:xi[si.HYPHENRANGE];e=e.replace(a,c9e(this.options.includePrerelease)),Kt("hyphen replace",e),e=e.replace(xi[si.COMPARATORTRIM],jWe),Kt("comparator trim",e),e=e.replace(xi[si.TILDETRIM],WWe),Kt("tilde trim",e),e=e.replace(xi[si.CARETTRIM],JWe),Kt("caret trim",e);let c=e.split(" ").map(f=>ZWe(f,this.options)).join(" ").split(/\s+/).map(f=>a9e(f,this.options));s&&(c=c.filter(f=>(Kt("loose invalid filter",f,this.options),!!f.match(xi[si.COMPARATORLOOSE])))),Kt("range list",c);let l=new Map,u=c.map(f=>new SM(f,this.options));for(let f of u){if(Joe(f))return[f];l.set(f.value,f)}l.size>1&&l.has("")&&l.delete("");let d=[...l.values()];return Woe.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>Yoe(n,r)&&e.set.some(i=>Yoe(i,r)&&n.every(s=>i.every(a=>s.intersects(a,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new $We(e,this.options)}catch{return!1}for(let r=0;rt.value==="<0.0.0-0","isNullSet"),XWe=o(t=>t.value==="","isAny"),Yoe=o((t,e)=>{let r=!0,n=t.slice(),i=n.pop();for(;r&&n.length;)r=n.every(s=>i.intersects(s,e)),i=n.pop();return r},"isSatisfiable"),ZWe=o((t,e)=>(t=t.replace(xi[si.BUILD],""),Kt("comp",t,e),t=r9e(t,e),Kt("caret",t),t=e9e(t,e),Kt("tildes",t),t=i9e(t,e),Kt("xrange",t),t=o9e(t,e),Kt("stars",t),t),"parseComparator"),vi=o(t=>!t||t.toLowerCase()==="x"||t==="*","isX"),e9e=o((t,e)=>t.trim().split(/\s+/).map(r=>t9e(r,e)).join(" "),"replaceTildes"),t9e=o((t,e)=>{let r=e.loose?xi[si.TILDELOOSE]:xi[si.TILDE];return t.replace(r,(n,i,s,a,c)=>{Kt("tilde",t,n,i,s,a,c);let l;return vi(i)?l="":vi(s)?l=`>=${i}.0.0 <${+i+1}.0.0-0`:vi(a)?l=`>=${i}.${s}.0 <${i}.${+s+1}.0-0`:c?(Kt("replaceTilde pr",c),l=`>=${i}.${s}.${a}-${c} <${i}.${+s+1}.0-0`):l=`>=${i}.${s}.${a} <${i}.${+s+1}.0-0`,Kt("tilde return",l),l})},"replaceTilde"),r9e=o((t,e)=>t.trim().split(/\s+/).map(r=>n9e(r,e)).join(" "),"replaceCarets"),n9e=o((t,e)=>{Kt("caret",t,e);let r=e.loose?xi[si.CARETLOOSE]:xi[si.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(i,s,a,c,l)=>{Kt("caret",t,i,s,a,c,l);let u;return vi(s)?u="":vi(a)?u=`>=${s}.0.0${n} <${+s+1}.0.0-0`:vi(c)?s==="0"?u=`>=${s}.${a}.0${n} <${s}.${+a+1}.0-0`:u=`>=${s}.${a}.0${n} <${+s+1}.0.0-0`:l?(Kt("replaceCaret pr",l),s==="0"?a==="0"?u=`>=${s}.${a}.${c}-${l} <${s}.${a}.${+c+1}-0`:u=`>=${s}.${a}.${c}-${l} <${s}.${+a+1}.0-0`:u=`>=${s}.${a}.${c}-${l} <${+s+1}.0.0-0`):(Kt("no pr"),s==="0"?a==="0"?u=`>=${s}.${a}.${c}${n} <${s}.${a}.${+c+1}-0`:u=`>=${s}.${a}.${c}${n} <${s}.${+a+1}.0-0`:u=`>=${s}.${a}.${c} <${+s+1}.0.0-0`),Kt("caret return",u),u})},"replaceCaret"),i9e=o((t,e)=>(Kt("replaceXRanges",t,e),t.split(/\s+/).map(r=>s9e(r,e)).join(" ")),"replaceXRanges"),s9e=o((t,e)=>{t=t.trim();let r=e.loose?xi[si.XRANGELOOSE]:xi[si.XRANGE];return t.replace(r,(n,i,s,a,c,l)=>{Kt("xRange",t,n,i,s,a,c,l);let u=vi(s),d=u||vi(a),f=d||vi(c),h=f;return i==="="&&h&&(i=""),l=e.includePrerelease?"-0":"",u?i===">"||i==="<"?n="<0.0.0-0":n="*":i&&h?(d&&(a=0),c=0,i===">"?(i=">=",d?(s=+s+1,a=0,c=0):(a=+a+1,c=0)):i==="<="&&(i="<",d?s=+s+1:a=+a+1),i==="<"&&(l="-0"),n=`${i+s}.${a}.${c}${l}`):d?n=`>=${s}.0.0${l} <${+s+1}.0.0-0`:f&&(n=`>=${s}.${a}.0${l} <${s}.${+a+1}.0-0`),Kt("xRange return",n),n})},"replaceXRange"),o9e=o((t,e)=>(Kt("replaceStars",t,e),t.trim().replace(xi[si.STAR],"")),"replaceStars"),a9e=o((t,e)=>(Kt("replaceGTE0",t,e),t.trim().replace(xi[e.includePrerelease?si.GTE0PRE:si.GTE0],"")),"replaceGTE0"),c9e=o(t=>(e,r,n,i,s,a,c,l,u,d,f,h)=>(vi(n)?r="":vi(i)?r=`>=${n}.0.0${t?"-0":""}`:vi(s)?r=`>=${n}.${i}.0${t?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,vi(u)?l="":vi(d)?l=`<${+u+1}.0.0-0`:vi(f)?l=`<${u}.${+d+1}.0-0`:h?l=`<=${u}.${d}.${f}-${h}`:t?l=`<${u}.${d}.${+f+1}-0`:l=`<=${l}`,`${r} ${l}`.trim()),"hyphenReplace"),l9e=o((t,e,r)=>{for(let n=0;n0){let i=t[n].semver;if(i.major===e.major&&i.minor===e.minor&&i.patch===e.patch)return!0}return!1}return!0},"testSet")});var Eb=g((C4t,nae)=>{"use strict";var Cb=Symbol("SemVer ANY"),vM=class t{static{o(this,"Comparator")}static get ANY(){return Cb}constructor(e,r){if(r=Xoe(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),xM("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===Cb?this.value="":this.value=this.operator+this.semver.version,xM("comp",this)}parse(e){let r=this.options.loose?Zoe[eae.COMPARATORLOOSE]:Zoe[eae.COMPARATOR],n=e.match(r);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new tae(n[2],this.options.loose):this.semver=Cb}toString(){return this.value}test(e){if(xM("Comparator.test",e,this.options.loose),this.semver===Cb||e===Cb)return!0;if(typeof e=="string")try{e=new tae(e,this.options)}catch{return!1}return BM(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new rae(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new rae(this.value,r).test(e.semver):(r=Xoe(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||BM(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||BM(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};nae.exports=vM;var Xoe=uv(),{safeRe:Zoe,t:eae}=_m(),BM=bM(),xM=gb(),tae=ii(),rae=bo()});var bb=g((w4t,iae)=>{"use strict";var u9e=bo(),d9e=o((t,e,r)=>{try{e=new u9e(e,r)}catch{return!1}return e.test(t)},"satisfies");iae.exports=d9e});var oae=g((S4t,sae)=>{"use strict";var f9e=bo(),h9e=o((t,e)=>new f9e(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" ")),"toComparators");sae.exports=h9e});var cae=g((x4t,aae)=>{"use strict";var p9e=ii(),A9e=bo(),m9e=o((t,e,r)=>{let n=null,i=null,s=null;try{s=new A9e(e,r)}catch{return null}return t.forEach(a=>{s.test(a)&&(!n||i.compare(a)===-1)&&(n=a,i=new p9e(n,r))}),n},"maxSatisfying");aae.exports=m9e});var uae=g((N4t,lae)=>{"use strict";var g9e=ii(),y9e=bo(),E9e=o((t,e,r)=>{let n=null,i=null,s=null;try{s=new y9e(e,r)}catch{return null}return t.forEach(a=>{s.test(a)&&(!n||i.compare(a)===1)&&(n=a,i=new g9e(n,r))}),n},"minSatisfying");lae.exports=E9e});var hae=g((_4t,fae)=>{"use strict";var NM=ii(),C9e=bo(),dae=yb(),b9e=o((t,e)=>{t=new C9e(t,e);let r=new NM("0.0.0");if(t.test(r)||(r=new NM("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n{let c=new NM(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!s||dae(c,s))&&(s=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),s&&(!r||dae(r,s))&&(r=s)}return r&&t.test(r)?r:null},"minVersion");fae.exports=b9e});var Aae=g((D4t,pae)=>{"use strict";var w9e=bo(),I9e=o((t,e)=>{try{return new w9e(t,e).range||"*"}catch{return null}},"validRange");pae.exports=I9e});var bv=g((k4t,Eae)=>{"use strict";var S9e=ii(),yae=Eb(),{ANY:B9e}=yae,x9e=bo(),v9e=bb(),mae=yb(),gae=mv(),N9e=yv(),R9e=gv(),_9e=o((t,e,r,n)=>{t=new S9e(t,n),e=new x9e(e,n);let i,s,a,c,l;switch(r){case">":i=mae,s=N9e,a=gae,c=">",l=">=";break;case"<":i=gae,s=R9e,a=mae,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(v9e(t,e,n))return!1;for(let u=0;u{p.semver===B9e&&(p=new yae(">=0.0.0")),f=f||p,h=h||p,i(p.semver,f.semver,n)?f=p:a(p.semver,h.semver,n)&&(h=p)}),f.operator===c||f.operator===l||(!h.operator||h.operator===c)&&s(t,h.semver))return!1;if(h.operator===l&&a(t,h.semver))return!1}return!0},"outside");Eae.exports=_9e});var bae=g((O4t,Cae)=>{"use strict";var T9e=bv(),D9e=o((t,e,r)=>T9e(t,e,">",r),"gtr");Cae.exports=D9e});var Iae=g((F4t,wae)=>{"use strict";var Q9e=bv(),k9e=o((t,e,r)=>Q9e(t,e,"<",r),"ltr");wae.exports=k9e});var xae=g((U4t,Bae)=>{"use strict";var Sae=bo(),P9e=o((t,e,r)=>(t=new Sae(t,r),e=new Sae(e,r),t.intersects(e,r)),"intersects");Bae.exports=P9e});var Nae=g((G4t,vae)=>{"use strict";var O9e=bb(),L9e=Co();vae.exports=(t,e,r)=>{let n=[],i=null,s=null,a=t.sort((d,f)=>L9e(d,f,r));for(let d of a)O9e(d,e,r)?(s=d,i||(i=d)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);let c=[];for(let[d,f]of n)d===f?c.push(d):!f&&d===a[0]?c.push("*"):f?d===a[0]?c.push(`<=${f}`):c.push(`${d} - ${f}`):c.push(`>=${d}`);let l=c.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return l.length{"use strict";var Rae=bo(),_M=Eb(),{ANY:RM}=_M,wb=bb(),TM=Co(),F9e=o((t,e,r={})=>{if(t===e)return!0;t=new Rae(t,r),e=new Rae(e,r);let n=!1;e:for(let i of t.set){for(let s of e.set){let a=U9e(i,s,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},"subset"),M9e=[new _M(">=0.0.0-0")],_ae=[new _M(">=0.0.0")],U9e=o((t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===RM){if(e.length===1&&e[0].semver===RM)return!0;r.includePrerelease?t=M9e:t=_ae}if(e.length===1&&e[0].semver===RM){if(r.includePrerelease)return!0;e=_ae}let n=new Set,i,s;for(let p of t)p.operator===">"||p.operator===">="?i=Tae(i,p,r):p.operator==="<"||p.operator==="<="?s=Dae(s,p,r):n.add(p.semver);if(n.size>1)return null;let a;if(i&&s){if(a=TM(i.semver,s.semver,r),a>0)return null;if(a===0&&(i.operator!==">="||s.operator!=="<="))return null}for(let p of n){if(i&&!wb(p,String(i),r)||s&&!wb(p,String(s),r))return null;for(let m of e)if(!wb(p,String(m),r))return!1;return!0}let c,l,u,d,f=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,h=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;f&&f.prerelease.length===1&&s.operator==="<"&&f.prerelease[0]===0&&(f=!1);for(let p of e){if(d=d||p.operator===">"||p.operator===">=",u=u||p.operator==="<"||p.operator==="<=",i){if(h&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===h.major&&p.semver.minor===h.minor&&p.semver.patch===h.patch&&(h=!1),p.operator===">"||p.operator===">="){if(c=Tae(i,p,r),c===p&&c!==i)return!1}else if(i.operator===">="&&!wb(i.semver,String(p),r))return!1}if(s){if(f&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===f.major&&p.semver.minor===f.minor&&p.semver.patch===f.patch&&(f=!1),p.operator==="<"||p.operator==="<="){if(l=Dae(s,p,r),l===p&&l!==s)return!1}else if(s.operator==="<="&&!wb(s.semver,String(p),r))return!1}if(!p.operator&&(s||i)&&a!==0)return!1}return!(i&&u&&!s&&a!==0||s&&d&&!i&&a!==0||h||f)},"simpleSubset"),Tae=o((t,e,r)=>{if(!t)return e;let n=TM(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},"higherGT"),Dae=o((t,e,r)=>{if(!t)return e;let n=TM(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t},"lowerLT");Qae.exports=F9e});var QM=g((V4t,Lae)=>{"use strict";var DM=_m(),Pae=mb(),q9e=ii(),Oae=mM(),G9e=Sh(),H9e=coe(),z9e=uoe(),V9e=hoe(),$9e=moe(),j9e=yoe(),W9e=Coe(),J9e=woe(),Y9e=Soe(),K9e=Co(),X9e=Noe(),Z9e=_oe(),eJe=Av(),tJe=koe(),rJe=Ooe(),nJe=yb(),iJe=mv(),sJe=EM(),oJe=CM(),aJe=gv(),cJe=yv(),lJe=bM(),uJe=Voe(),dJe=Eb(),fJe=bo(),hJe=bb(),pJe=oae(),AJe=cae(),mJe=uae(),gJe=hae(),yJe=Aae(),EJe=bv(),CJe=bae(),bJe=Iae(),wJe=xae(),IJe=Nae(),SJe=kae();Lae.exports={parse:G9e,valid:H9e,clean:z9e,inc:V9e,diff:$9e,major:j9e,minor:W9e,patch:J9e,prerelease:Y9e,compare:K9e,rcompare:X9e,compareLoose:Z9e,compareBuild:eJe,sort:tJe,rsort:rJe,gt:nJe,lt:iJe,eq:sJe,neq:oJe,gte:aJe,lte:cJe,cmp:lJe,coerce:uJe,Comparator:dJe,Range:fJe,satisfies:hJe,toComparators:pJe,maxSatisfying:AJe,minSatisfying:mJe,minVersion:gJe,validRange:yJe,outside:EJe,gtr:CJe,ltr:bJe,intersects:wJe,simplifyRange:IJe,subset:SJe,SemVer:q9e,re:DM.re,src:DM.src,tokens:DM.t,SEMVER_SPEC_VERSION:Pae.SEMVER_SPEC_VERSION,RELEASE_TYPES:Pae.RELEASE_TYPES,compareIdentifiers:Oae.compareIdentifiers,rcompareIdentifiers:Oae.rcompareIdentifiers}});var Om=g((G8t,Sce)=>{"use strict";var iYe="2.0.0",sYe=Number.MAX_SAFE_INTEGER||9007199254740991,oYe=16,aYe=250,cYe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Sce.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:oYe,MAX_SAFE_BUILD_LENGTH:aYe,MAX_SAFE_INTEGER:sYe,RELEASE_TYPES:cYe,SEMVER_SPEC_VERSION:iYe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Db=g((H8t,Bce)=>{"use strict";var lYe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Bce.exports=lYe});var Lm=g((mc,xce)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:eU,MAX_SAFE_BUILD_LENGTH:uYe,MAX_LENGTH:dYe}=Om(),fYe=Db();mc=xce.exports={};var hYe=mc.re=[],pYe=mc.safeRe=[],oe=mc.src=[],AYe=mc.safeSrc=[],ae=mc.t={},mYe=0,tU="[a-zA-Z0-9-]",gYe=[["\\s",1],["\\d",dYe],[tU,uYe]],yYe=o(t=>{for(let[e,r]of gYe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),je=o((t,e,r)=>{let n=yYe(e),i=mYe++;fYe(t,i,e),ae[t]=i,oe[i]=e,AYe[i]=n,hYe[i]=new RegExp(e,r?"g":void 0),pYe[i]=new RegExp(n,r?"g":void 0)},"createToken");je("NUMERICIDENTIFIER","0|[1-9]\\d*");je("NUMERICIDENTIFIERLOOSE","\\d+");je("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${tU}*`);je("MAINVERSION",`(${oe[ae.NUMERICIDENTIFIER]})\\.(${oe[ae.NUMERICIDENTIFIER]})\\.(${oe[ae.NUMERICIDENTIFIER]})`);je("MAINVERSIONLOOSE",`(${oe[ae.NUMERICIDENTIFIERLOOSE]})\\.(${oe[ae.NUMERICIDENTIFIERLOOSE]})\\.(${oe[ae.NUMERICIDENTIFIERLOOSE]})`);je("PRERELEASEIDENTIFIER",`(?:${oe[ae.NONNUMERICIDENTIFIER]}|${oe[ae.NUMERICIDENTIFIER]})`);je("PRERELEASEIDENTIFIERLOOSE",`(?:${oe[ae.NONNUMERICIDENTIFIER]}|${oe[ae.NUMERICIDENTIFIERLOOSE]})`);je("PRERELEASE",`(?:-(${oe[ae.PRERELEASEIDENTIFIER]}(?:\\.${oe[ae.PRERELEASEIDENTIFIER]})*))`);je("PRERELEASELOOSE",`(?:-?(${oe[ae.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${oe[ae.PRERELEASEIDENTIFIERLOOSE]})*))`);je("BUILDIDENTIFIER",`${tU}+`);je("BUILD",`(?:\\+(${oe[ae.BUILDIDENTIFIER]}(?:\\.${oe[ae.BUILDIDENTIFIER]})*))`);je("FULLPLAIN",`v?${oe[ae.MAINVERSION]}${oe[ae.PRERELEASE]}?${oe[ae.BUILD]}?`);je("FULL",`^${oe[ae.FULLPLAIN]}$`);je("LOOSEPLAIN",`[v=\\s]*${oe[ae.MAINVERSIONLOOSE]}${oe[ae.PRERELEASELOOSE]}?${oe[ae.BUILD]}?`);je("LOOSE",`^${oe[ae.LOOSEPLAIN]}$`);je("GTLT","((?:<|>)?=?)");je("XRANGEIDENTIFIERLOOSE",`${oe[ae.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);je("XRANGEIDENTIFIER",`${oe[ae.NUMERICIDENTIFIER]}|x|X|\\*`);je("XRANGEPLAIN",`[v=\\s]*(${oe[ae.XRANGEIDENTIFIER]})(?:\\.(${oe[ae.XRANGEIDENTIFIER]})(?:\\.(${oe[ae.XRANGEIDENTIFIER]})(?:${oe[ae.PRERELEASE]})?${oe[ae.BUILD]}?)?)?`);je("XRANGEPLAINLOOSE",`[v=\\s]*(${oe[ae.XRANGEIDENTIFIERLOOSE]})(?:\\.(${oe[ae.XRANGEIDENTIFIERLOOSE]})(?:\\.(${oe[ae.XRANGEIDENTIFIERLOOSE]})(?:${oe[ae.PRERELEASELOOSE]})?${oe[ae.BUILD]}?)?)?`);je("XRANGE",`^${oe[ae.GTLT]}\\s*${oe[ae.XRANGEPLAIN]}$`);je("XRANGELOOSE",`^${oe[ae.GTLT]}\\s*${oe[ae.XRANGEPLAINLOOSE]}$`);je("COERCEPLAIN",`(^|[^\\d])(\\d{1,${eU}})(?:\\.(\\d{1,${eU}}))?(?:\\.(\\d{1,${eU}}))?`);je("COERCE",`${oe[ae.COERCEPLAIN]}(?:$|[^\\d])`);je("COERCEFULL",oe[ae.COERCEPLAIN]+`(?:${oe[ae.PRERELEASE]})?(?:${oe[ae.BUILD]})?(?:$|[^\\d])`);je("COERCERTL",oe[ae.COERCE],!0);je("COERCERTLFULL",oe[ae.COERCEFULL],!0);je("LONETILDE","(?:~>?)");je("TILDETRIM",`(\\s*)${oe[ae.LONETILDE]}\\s+`,!0);mc.tildeTrimReplace="$1~";je("TILDE",`^${oe[ae.LONETILDE]}${oe[ae.XRANGEPLAIN]}$`);je("TILDELOOSE",`^${oe[ae.LONETILDE]}${oe[ae.XRANGEPLAINLOOSE]}$`);je("LONECARET","(?:\\^)");je("CARETTRIM",`(\\s*)${oe[ae.LONECARET]}\\s+`,!0);mc.caretTrimReplace="$1^";je("CARET",`^${oe[ae.LONECARET]}${oe[ae.XRANGEPLAIN]}$`);je("CARETLOOSE",`^${oe[ae.LONECARET]}${oe[ae.XRANGEPLAINLOOSE]}$`);je("COMPARATORLOOSE",`^${oe[ae.GTLT]}\\s*(${oe[ae.LOOSEPLAIN]})$|^$`);je("COMPARATOR",`^${oe[ae.GTLT]}\\s*(${oe[ae.FULLPLAIN]})$|^$`);je("COMPARATORTRIM",`(\\s*)${oe[ae.GTLT]}\\s*(${oe[ae.LOOSEPLAIN]}|${oe[ae.XRANGEPLAIN]})`,!0);mc.comparatorTrimReplace="$1$2$3";je("HYPHENRANGE",`^\\s*(${oe[ae.XRANGEPLAIN]})\\s+-\\s+(${oe[ae.XRANGEPLAIN]})\\s*$`);je("HYPHENRANGELOOSE",`^\\s*(${oe[ae.XRANGEPLAINLOOSE]})\\s+-\\s+(${oe[ae.XRANGEPLAINLOOSE]})\\s*$`);je("STAR","(<|>)?=?\\s*\\*");je("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");je("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var _v=g((V8t,vce)=>{"use strict";var EYe=Object.freeze({loose:!0}),CYe=Object.freeze({}),bYe=o(t=>t?typeof t!="object"?EYe:t:CYe,"parseOptions");vce.exports=bYe});var rU=g((j8t,_ce)=>{"use strict";var Nce=/^[0-9]+$/,Rce=o((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:tRce(e,t),"rcompareIdentifiers");_ce.exports={compareIdentifiers:Rce,rcompareIdentifiers:wYe}});var Hn=g((J8t,Dce)=>{"use strict";var Tv=Db(),{MAX_LENGTH:Tce,MAX_SAFE_INTEGER:Dv}=Om(),{safeRe:Qv,t:kv}=Lm(),IYe=_v(),{compareIdentifiers:nU}=rU(),SYe=o((t,e)=>{let r=e.split(".");if(r.length>t.length)return!1;for(let n=0;nTce)throw new TypeError(`version is longer than ${Tce} characters`);Tv("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?Qv[kv.LOOSE]:Qv[kv.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Dv||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Dv||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Dv||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&se.major?1:this.minore.minor?1:this.patche.patch?1:0}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],i=e.prerelease[r];if(Tv("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return nU(n,i)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let n=this.build[r],i=e.build[r];if(Tv("build compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return nU(n,i)}while(++r)}inc(e,r,n){if(e.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let i=`-${r}`.match(this.options.loose?Qv[kv.PRERELEASELOOSE]:Qv[kv.PRERELEASE]);if(!i||i[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let i=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[i];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let s=[r,i];if(n===!1&&(s=[r]),SYe(this.prerelease,r)){let a=this.prerelease[r.split(".").length];isNaN(a)&&(this.prerelease=s)}else this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Dce.exports=iU});var vd=g((K8t,kce)=>{"use strict";var Qce=Hn(),BYe=o((t,e,r=!1)=>{if(t instanceof Qce)return t;try{return new Qce(t,e)}catch(n){if(!r)return null;throw n}},"parse");kce.exports=BYe});var Oce=g((Z8t,Pce)=>{"use strict";var xYe=vd(),vYe=o((t,e)=>{let r=xYe(t,e);return r?r.version:null},"valid");Pce.exports=vYe});var Fce=g((tjt,Lce)=>{"use strict";var NYe=vd(),RYe=o((t,e)=>{let r=NYe(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null},"clean");Lce.exports=RYe});var qce=g((njt,Uce)=>{"use strict";var Mce=Hn(),_Ye=o((t,e,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new Mce(t instanceof Mce?t.version:t,r).inc(e,n,i).version}catch{return null}},"inc");Uce.exports=_Ye});var zce=g((sjt,Hce)=>{"use strict";var Gce=vd(),TYe=o((t,e)=>{let r=Gce(t,null,!0),n=Gce(e,null,!0),i=r.compare(n);if(i===0)return null;let s=i>0,a=s?r:n,c=s?n:r,l=!!a.prerelease.length;if(!!c.prerelease.length&&!l){if(!c.patch&&!c.minor)return"major";if(c.compareMain(a)===0)return c.minor&&!c.patch?"minor":"patch"}let d=l?"pre":"";return r.major!==n.major?d+"major":r.minor!==n.minor?d+"minor":r.patch!==n.patch?d+"patch":"prerelease"},"diff");Hce.exports=TYe});var $ce=g((ajt,Vce)=>{"use strict";var DYe=Hn(),QYe=o((t,e)=>new DYe(t,e).major,"major");Vce.exports=QYe});var Wce=g((ljt,jce)=>{"use strict";var kYe=Hn(),PYe=o((t,e)=>new kYe(t,e).minor,"minor");jce.exports=PYe});var Yce=g((djt,Jce)=>{"use strict";var OYe=Hn(),LYe=o((t,e)=>new OYe(t,e).patch,"patch");Jce.exports=LYe});var Xce=g((hjt,Kce)=>{"use strict";var FYe=vd(),MYe=o((t,e)=>{let r=FYe(t,e);return r&&r.prerelease.length?r.prerelease:null},"prerelease");Kce.exports=MYe});var xo=g((Ajt,ele)=>{"use strict";var Zce=Hn(),UYe=o((t,e,r)=>new Zce(t,r).compare(new Zce(e,r)),"compare");ele.exports=UYe});var rle=g((gjt,tle)=>{"use strict";var qYe=xo(),GYe=o((t,e,r)=>qYe(e,t,r),"rcompare");tle.exports=GYe});var ile=g((Ejt,nle)=>{"use strict";var HYe=xo(),zYe=o((t,e)=>HYe(t,e,!0),"compareLoose");nle.exports=zYe});var Pv=g((bjt,ole)=>{"use strict";var sle=Hn(),VYe=o((t,e,r)=>{let n=new sle(t,r),i=new sle(e,r);return n.compare(i)||n.compareBuild(i)},"compareBuild");ole.exports=VYe});var cle=g((Ijt,ale)=>{"use strict";var $Ye=Pv(),jYe=o((t,e)=>t.sort((r,n)=>$Ye(r,n,e)),"sort");ale.exports=jYe});var ule=g((Bjt,lle)=>{"use strict";var WYe=Pv(),JYe=o((t,e)=>t.sort((r,n)=>WYe(n,r,e)),"rsort");lle.exports=JYe});var Qb=g((vjt,dle)=>{"use strict";var YYe=xo(),KYe=o((t,e,r)=>YYe(t,e,r)>0,"gt");dle.exports=KYe});var Ov=g((Rjt,fle)=>{"use strict";var XYe=xo(),ZYe=o((t,e,r)=>XYe(t,e,r)<0,"lt");fle.exports=ZYe});var sU=g((Tjt,hle)=>{"use strict";var eKe=xo(),tKe=o((t,e,r)=>eKe(t,e,r)===0,"eq");hle.exports=tKe});var oU=g((Qjt,ple)=>{"use strict";var rKe=xo(),nKe=o((t,e,r)=>rKe(t,e,r)!==0,"neq");ple.exports=nKe});var Lv=g((Pjt,Ale)=>{"use strict";var iKe=xo(),sKe=o((t,e,r)=>iKe(t,e,r)>=0,"gte");Ale.exports=sKe});var Fv=g((Ljt,mle)=>{"use strict";var oKe=xo(),aKe=o((t,e,r)=>oKe(t,e,r)<=0,"lte");mle.exports=aKe});var aU=g((Mjt,gle)=>{"use strict";var cKe=sU(),lKe=oU(),uKe=Qb(),dKe=Lv(),fKe=Ov(),hKe=Fv(),pKe=o((t,e,r,n)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return cKe(t,r,n);case"!=":return lKe(t,r,n);case">":return uKe(t,r,n);case">=":return dKe(t,r,n);case"<":return fKe(t,r,n);case"<=":return hKe(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}},"cmp");gle.exports=pKe});var Ele=g((qjt,yle)=>{"use strict";var AKe=Hn(),mKe=vd(),{safeRe:Mv,t:Uv}=Lm(),gKe=o((t,e)=>{if(t instanceof AKe)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(e.includePrerelease?Mv[Uv.COERCEFULL]:Mv[Uv.COERCE]);else{let l=e.includePrerelease?Mv[Uv.COERCERTLFULL]:Mv[Uv.COERCERTL],u;for(;(u=l.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||u.index+u[0].length!==r.index+r[0].length)&&(r=u),l.lastIndex=u.index+u[1].length+u[2].length;l.lastIndex=-1}if(r===null)return null;let n=r[2],i=r[3]||"0",s=r[4]||"0",a=e.includePrerelease&&r[5]?`-${r[5]}`:"",c=e.includePrerelease&&r[6]?`+${r[6]}`:"";return mKe(`${n}.${i}.${s}${a}${c}`,e)},"coerce");yle.exports=gKe});var ble=g((Hjt,Cle)=>{"use strict";var yKe=vd(),EKe=Om(),CKe=Hn(),bKe=o((t,e,r)=>{if(!EKe.RELEASE_TYPES.includes(e))return null;let n=wKe(t,r);return n&&IKe(n,e)},"truncate"),wKe=o((t,e)=>{let r=t instanceof CKe?t.version:t;return yKe(r,e)},"cloneInputVersion"),IKe=o((t,e)=>{if(SKe(e))return t.version;switch(t.prerelease=[],e){case"major":t.minor=0,t.patch=0;break;case"minor":t.patch=0;break}return t.format()},"doTruncation"),SKe=o(t=>t.startsWith("pre"),"isPrerelease");Cle.exports=bKe});var Ile=g((Vjt,wle)=>{"use strict";var cU=class{static{o(this,"LRUCache")}constructor(){this.max=1e3,this.map=new Map}get(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.map.set(e,r),r}delete(e){return this.map.delete(e)}set(e,r){if(!this.delete(e)&&r!==void 0){if(this.map.size>=this.max){let i=this.map.keys().next().value;this.delete(i)}this.map.set(e,r)}return this}};wle.exports=cU});var vo=g((jjt,vle)=>{"use strict";var BKe=/\s+/g,lU=class t{static{o(this,"Range")}constructor(e,r){if(r=vKe(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof uU)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().replace(BKe," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(i=>!Ble(i[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&OKe(i[0])){this.set=[i];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e0&&(this.formatted+="||");let r=this.set[e];for(let n=0;n0&&(this.formatted+=" "),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(PKe,"");let n=((this.options.includePrerelease&&QKe)|(this.options.loose&&kKe))+":"+e,i=Sle.get(n);if(i)return i;let s=this.options.loose,a=s?Ri[zn.HYPHENRANGELOOSE]:Ri[zn.HYPHENRANGE];e=e.replace(a,jKe(this.options.includePrerelease)),Xt("hyphen replace",e),e=e.replace(Ri[zn.COMPARATORTRIM],_Ke),Xt("comparator trim",e),e=e.replace(Ri[zn.TILDETRIM],TKe),Xt("tilde trim",e),e=e.replace(Ri[zn.CARETTRIM],DKe),Xt("caret trim",e);let c=e.split(" ").map(f=>LKe(f,this.options)).join(" ").split(/\s+/).map(f=>$Ke(f,this.options));s&&(c=c.filter(f=>(Xt("loose invalid filter",f,this.options),!!f.match(Ri[zn.COMPARATORLOOSE])))),Xt("range list",c);let l=new Map,u=c.map(f=>new uU(f,this.options));for(let f of u){if(Ble(f))return[f];l.set(f.value,f)}l.size>1&&l.has("")&&l.delete("");let d=[...l.values()];return Sle.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>xle(n,r)&&e.set.some(i=>xle(i,r)&&n.every(s=>i.every(a=>s.intersects(a,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new NKe(e,this.options)}catch{return!1}for(let r=0;rt.value==="<0.0.0-0","isNullSet"),OKe=o(t=>t.value==="","isAny"),xle=o((t,e)=>{let r=!0,n=t.slice(),i=n.pop();for(;r&&n.length;)r=n.every(s=>i.intersects(s,e)),i=n.pop();return r},"isSatisfiable"),LKe=o((t,e)=>(t=t.replace(Ri[zn.BUILD],""),Xt("comp",t,e),t=qKe(t,e),Xt("caret",t),t=MKe(t,e),Xt("tildes",t),t=HKe(t,e),Xt("xrange",t),t=VKe(t,e),Xt("stars",t),t),"parseComparator"),un=o(t=>!t||t.toLowerCase()==="x"||t==="*","isX"),FKe=o((t,e,r)=>un(t)&&!un(e)||un(e)&&r&&!un(r),"invalidXRangeOrder"),MKe=o((t,e)=>t.trim().split(/\s+/).map(r=>UKe(r,e)).join(" "),"replaceTildes"),UKe=o((t,e)=>{let r=e.loose?Ri[zn.TILDELOOSE]:Ri[zn.TILDE],n=e.includePrerelease?"-0":"";return t.replace(r,(i,s,a,c,l)=>{Xt("tilde",t,i,s,a,c,l);let u;return un(s)?u="":un(a)?u=`>=${s}.0.0${n} <${+s+1}.0.0-0`:un(c)?u=`>=${s}.${a}.0${n} <${s}.${+a+1}.0-0`:l?(Xt("replaceTilde pr",l),u=`>=${s}.${a}.${c}-${l} <${s}.${+a+1}.0-0`):u=`>=${s}.${a}.${c} <${s}.${+a+1}.0-0`,Xt("tilde return",u),u})},"replaceTilde"),qKe=o((t,e)=>t.trim().split(/\s+/).map(r=>GKe(r,e)).join(" "),"replaceCarets"),GKe=o((t,e)=>{Xt("caret",t,e);let r=e.loose?Ri[zn.CARETLOOSE]:Ri[zn.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(i,s,a,c,l)=>{Xt("caret",t,i,s,a,c,l);let u;return un(s)?u="":un(a)?u=`>=${s}.0.0${n} <${+s+1}.0.0-0`:un(c)?s==="0"?u=`>=${s}.${a}.0${n} <${s}.${+a+1}.0-0`:u=`>=${s}.${a}.0${n} <${+s+1}.0.0-0`:l?(Xt("replaceCaret pr",l),s==="0"?a==="0"?u=`>=${s}.${a}.${c}-${l} <${s}.${a}.${+c+1}-0`:u=`>=${s}.${a}.${c}-${l} <${s}.${+a+1}.0-0`:u=`>=${s}.${a}.${c}-${l} <${+s+1}.0.0-0`):(Xt("no pr"),s==="0"?a==="0"?u=`>=${s}.${a}.${c} <${s}.${a}.${+c+1}-0`:u=`>=${s}.${a}.${c} <${s}.${+a+1}.0-0`:u=`>=${s}.${a}.${c} <${+s+1}.0.0-0`),Xt("caret return",u),u})},"replaceCaret"),HKe=o((t,e)=>(Xt("replaceXRanges",t,e),t.split(/\s+/).map(r=>zKe(r,e)).join(" ")),"replaceXRanges"),zKe=o((t,e)=>{t=t.trim();let r=e.loose?Ri[zn.XRANGELOOSE]:Ri[zn.XRANGE];return t.replace(r,(n,i,s,a,c,l)=>{if(Xt("xRange",t,n,i,s,a,c,l),FKe(s,a,c))return t;let u=un(s),d=u||un(a),f=d||un(c),h=f;return i==="="&&h&&(i=""),l=e.includePrerelease?"-0":"",u?i===">"||i==="<"?n="<0.0.0-0":n="*":i&&h?(d&&(a=0),c=0,i===">"?(i=">=",d?(s=+s+1,a=0,c=0):(a=+a+1,c=0)):i==="<="&&(i="<",d?s=+s+1:a=+a+1),i==="<"&&(l="-0"),n=`${i+s}.${a}.${c}${l}`):d?n=`>=${s}.0.0${l} <${+s+1}.0.0-0`:f&&(n=`>=${s}.${a}.0${l} <${s}.${+a+1}.0-0`),Xt("xRange return",n),n})},"replaceXRange"),VKe=o((t,e)=>(Xt("replaceStars",t,e),t.trim().replace(Ri[zn.STAR],"")),"replaceStars"),$Ke=o((t,e)=>(Xt("replaceGTE0",t,e),t.trim().replace(Ri[e.includePrerelease?zn.GTE0PRE:zn.GTE0],"")),"replaceGTE0"),jKe=o(t=>(e,r,n,i,s,a,c,l,u,d,f,h)=>(un(n)?r="":un(i)?r=`>=${n}.0.0${t?"-0":""}`:un(s)?r=`>=${n}.${i}.0${t?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,un(u)?l="":un(d)?l=`<${+u+1}.0.0-0`:un(f)?l=`<${u}.${+d+1}.0-0`:h?l=`<=${u}.${d}.${f}-${h}`:t?l=`<${u}.${d}.${+f+1}-0`:l=`<=${l}`,`${r} ${l}`.trim()),"hyphenReplace"),WKe=o((t,e,r)=>{for(let n=0;n0){let i=t[n].semver;if(i.major===e.major&&i.minor===e.minor&&i.patch===e.patch)return!0}return!1}return!0},"testSet")});var kb=g((Jjt,Qle)=>{"use strict";var Pb=Symbol("SemVer ANY"),hU=class t{static{o(this,"Comparator")}static get ANY(){return Pb}constructor(e,r){if(r=Nle(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),fU("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===Pb?this.value="":this.value=this.operator+this.semver.version,fU("comp",this)}parse(e){let r=this.options.loose?Rle[_le.COMPARATORLOOSE]:Rle[_le.COMPARATOR],n=e.match(r);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new Tle(n[2],this.options.loose):this.semver=Pb}toString(){return this.value}test(e){if(fU("Comparator.test",e,this.options.loose),this.semver===Pb||e===Pb)return!0;if(typeof e=="string")try{e=new Tle(e,this.options)}catch{return!1}return dU(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Dle(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new Dle(this.value,r).test(e.semver):(r=Nle(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||dU(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||dU(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};Qle.exports=hU;var Nle=_v(),{safeRe:Rle,t:_le}=Lm(),dU=aU(),fU=Db(),Tle=Hn(),Dle=vo()});var Ob=g((Kjt,kle)=>{"use strict";var JKe=vo(),YKe=o((t,e,r)=>{try{e=new JKe(e,r)}catch{return!1}return e.test(t)},"satisfies");kle.exports=YKe});var Ole=g((Zjt,Ple)=>{"use strict";var KKe=vo(),XKe=o((t,e)=>new KKe(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" ")),"toComparators");Ple.exports=XKe});var Fle=g((tWt,Lle)=>{"use strict";var ZKe=Hn(),e7e=vo(),t7e=o((t,e,r)=>{let n=null,i=null,s=null;try{s=new e7e(e,r)}catch{return null}return t.forEach(a=>{s.test(a)&&(!n||i.compare(a)===-1)&&(n=a,i=new ZKe(n,r))}),n},"maxSatisfying");Lle.exports=t7e});var Ule=g((nWt,Mle)=>{"use strict";var r7e=Hn(),n7e=vo(),i7e=o((t,e,r)=>{let n=null,i=null,s=null;try{s=new n7e(e,r)}catch{return null}return t.forEach(a=>{s.test(a)&&(!n||i.compare(a)===1)&&(n=a,i=new r7e(n,r))}),n},"minSatisfying");Mle.exports=i7e});var Hle=g((sWt,Gle)=>{"use strict";var pU=Hn(),s7e=vo(),qle=Qb(),o7e=o((t,e)=>{t=new s7e(t,e);let r=new pU("0.0.0");if(t.test(r)||(r=new pU("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n{let c=new pU(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!s||qle(c,s))&&(s=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),s&&(!r||qle(r,s))&&(r=s)}return r&&t.test(r)?r:null},"minVersion");Gle.exports=o7e});var Vle=g((aWt,zle)=>{"use strict";var a7e=vo(),c7e=o((t,e)=>{try{return new a7e(t,e).range||"*"}catch{return null}},"validRange");zle.exports=c7e});var qv=g((lWt,Jle)=>{"use strict";var l7e=Hn(),Wle=kb(),{ANY:u7e}=Wle,d7e=vo(),f7e=Ob(),$le=Qb(),jle=Ov(),h7e=Fv(),p7e=Lv(),A7e=o((t,e,r,n)=>{t=new l7e(t,n),e=new d7e(e,n);let i,s,a,c,l;switch(r){case">":i=$le,s=h7e,a=jle,c=">",l=">=";break;case"<":i=jle,s=p7e,a=$le,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(f7e(t,e,n))return!1;for(let u=0;u{p.semver===u7e&&(p=new Wle(">=0.0.0")),f=f||p,h=h||p,i(p.semver,f.semver,n)?f=p:a(p.semver,h.semver,n)&&(h=p)}),f.operator===c||f.operator===l||(!h.operator||h.operator===c)&&s(t,h.semver))return!1;if(h.operator===l&&a(t,h.semver))return!1}return!0},"outside");Jle.exports=A7e});var Kle=g((dWt,Yle)=>{"use strict";var m7e=qv(),g7e=o((t,e,r)=>m7e(t,e,">",r),"gtr");Yle.exports=g7e});var Zle=g((hWt,Xle)=>{"use strict";var y7e=qv(),E7e=o((t,e,r)=>y7e(t,e,"<",r),"ltr");Xle.exports=E7e});var rue=g((AWt,tue)=>{"use strict";var eue=vo(),C7e=o((t,e,r)=>(t=new eue(t,r),e=new eue(e,r),t.intersects(e,r)),"intersects");tue.exports=C7e});var iue=g((gWt,nue)=>{"use strict";var b7e=Ob(),w7e=xo();nue.exports=(t,e,r)=>{let n=[],i=null,s=null,a=t.sort((d,f)=>w7e(d,f,r));for(let d of a)b7e(d,e,r)?(s=d,i||(i=d)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);let c=[];for(let[d,f]of n)d===f?c.push(d):!f&&d===a[0]?c.push("*"):f?d===a[0]?c.push(`<=${f}`):c.push(`${d} - ${f}`):c.push(`>=${d}`);let l=c.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return l.length{"use strict";var sue=vo(),gU=kb(),{ANY:AU}=gU,mU=Ob(),yU=xo(),I7e=o((t,e,r={})=>{if(t===e)return!0;t=new sue(t,r),e=new sue(e,r);let n=!1;e:for(let i of t.set){for(let s of e.set){let a=B7e(i,s,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},"subset"),S7e=[new gU(">=0.0.0-0")],oue=[new gU(">=0.0.0")],B7e=o((t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===AU){if(e.length===1&&e[0].semver===AU)return!0;r.includePrerelease?t=S7e:t=oue}if(e.length===1&&e[0].semver===AU){if(r.includePrerelease)return!0;e=oue}let n=new Set,i,s;for(let p of t)p.operator===">"||p.operator===">="?i=aue(i,p,r):p.operator==="<"||p.operator==="<="?s=cue(s,p,r):n.add(p.semver);if(n.size>1)return null;let a;if(i&&s){if(a=yU(i.semver,s.semver,r),a>0)return null;if(a===0&&(i.operator!==">="||s.operator!=="<="))return null}for(let p of n){if(i&&!mU(p,String(i),r)||s&&!mU(p,String(s),r))return null;for(let m of e)if(!mU(p,String(m),r))return!1;return!0}let c,l,u,d,f=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,h=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;f&&f.prerelease.length===1&&s.operator==="<"&&f.prerelease[0]===0&&(f=!1);for(let p of e){if(d=d||p.operator===">"||p.operator===">=",u=u||p.operator==="<"||p.operator==="<=",i){if(h&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===h.major&&p.semver.minor===h.minor&&p.semver.patch===h.patch&&(h=!1),p.operator===">"||p.operator===">="){if(c=aue(i,p,r),c===p&&c!==i)return!1}else if(i.operator===">="&&!p.test(i.semver))return!1}if(s){if(f&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===f.major&&p.semver.minor===f.minor&&p.semver.patch===f.patch&&(f=!1),p.operator==="<"||p.operator==="<="){if(l=cue(s,p,r),l===p&&l!==s)return!1}else if(s.operator==="<="&&!p.test(s.semver))return!1}if(!p.operator&&(s||i)&&a!==0)return!1}return!(i&&u&&!s&&a!==0||s&&d&&!i&&a!==0||h||f)},"simpleSubset"),aue=o((t,e,r)=>{if(!t)return e;let n=yU(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},"higherGT"),cue=o((t,e,r)=>{if(!t)return e;let n=yU(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t},"lowerLT");lue.exports=I7e});var pue=g((CWt,hue)=>{"use strict";var EU=Lm(),due=Om(),x7e=Hn(),fue=rU(),v7e=vd(),N7e=Oce(),R7e=Fce(),_7e=qce(),T7e=zce(),D7e=$ce(),Q7e=Wce(),k7e=Yce(),P7e=Xce(),O7e=xo(),L7e=rle(),F7e=ile(),M7e=Pv(),U7e=cle(),q7e=ule(),G7e=Qb(),H7e=Ov(),z7e=sU(),V7e=oU(),$7e=Lv(),j7e=Fv(),W7e=aU(),J7e=Ele(),Y7e=ble(),K7e=kb(),X7e=vo(),Z7e=Ob(),eXe=Ole(),tXe=Fle(),rXe=Ule(),nXe=Hle(),iXe=Vle(),sXe=qv(),oXe=Kle(),aXe=Zle(),cXe=rue(),lXe=iue(),uXe=uue();hue.exports={parse:v7e,valid:N7e,clean:R7e,inc:_7e,diff:T7e,major:D7e,minor:Q7e,patch:k7e,prerelease:P7e,compare:O7e,rcompare:L7e,compareLoose:F7e,compareBuild:M7e,sort:U7e,rsort:q7e,gt:G7e,lt:H7e,eq:z7e,neq:V7e,gte:$7e,lte:j7e,cmp:W7e,coerce:J7e,truncate:Y7e,Comparator:K7e,Range:X7e,satisfies:Z7e,toComparators:eXe,maxSatisfying:tXe,minSatisfying:rXe,minVersion:nXe,validRange:iXe,outside:sXe,gtr:oXe,ltr:aXe,intersects:cXe,simplifyRange:lXe,subset:uXe,SemVer:x7e,re:EU.re,src:EU.src,tokens:EU.t,SEMVER_SPEC_VERSION:due.SEMVER_SPEC_VERSION,RELEASE_TYPES:due.RELEASE_TYPES,compareIdentifiers:fue.compareIdentifiers,rcompareIdentifiers:fue.rcompareIdentifiers}});var rde=g((BJt,tde)=>{var zm=1e3,Vm=zm*60,$m=Vm*60,Ph=$m*24,$Xe=Ph*7,jXe=Ph*365.25;tde.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return WXe(t);if(r==="number"&&isFinite(t))return e.long?YXe(t):JXe(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function WXe(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*jXe;case"weeks":case"week":case"w":return r*$Xe;case"days":case"day":case"d":return r*Ph;case"hours":case"hour":case"hrs":case"hr":case"h":return r*$m;case"minutes":case"minute":case"mins":case"min":case"m":return r*Vm;case"seconds":case"second":case"secs":case"sec":case"s":return r*zm;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}o(WXe,"parse");function JXe(t){var e=Math.abs(t);return e>=Ph?Math.round(t/Ph)+"d":e>=$m?Math.round(t/$m)+"h":e>=Vm?Math.round(t/Vm)+"m":e>=zm?Math.round(t/zm)+"s":t+"ms"}o(JXe,"fmtShort");function YXe(t){var e=Math.abs(t);return e>=Ph?hN(t,e,Ph,"day"):e>=$m?hN(t,e,$m,"hour"):e>=Vm?hN(t,e,Vm,"minute"):e>=zm?hN(t,e,zm,"second"):t+" ms"}o(YXe,"fmtLong");function hN(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}o(hN,"plural")});var zU=g((vJt,nde)=>{function KXe(t){r.debug=r,r.default=r,r.coerce=l,r.disable=s,r.enable=i,r.enabled=a,r.humanize=rde(),r.destroy=u,Object.keys(t).forEach(d=>{r[d]=t[d]}),r.names=[],r.skips=[],r.formatters={};function e(d){let f=0;for(let h=0;h{if(U==="%%")return"%";B++;let $=r.formatters[N];if(typeof $=="function"){let Q=E[B];U=$.call(y,Q),E.splice(B,1),B--}return U}),r.formatArgs.call(y,E),(y.log||r.log).apply(y,E)}return o(A,"debug"),A.namespace=d,A.useColors=r.useColors(),A.color=r.selectColor(d),A.extend=n,A.destroy=r.destroy,Object.defineProperty(A,"enabled",{enumerable:!0,configurable:!1,get:o(()=>h!==null?h:(p!==r.namespaces&&(p=r.namespaces,m=r.enabled(d)),m),"get"),set:o(E=>{h=E},"set")}),typeof r.init=="function"&&r.init(A),A}o(r,"createDebug");function n(d,f){let h=r(this.namespace+(typeof f>"u"?":":f)+d);return h.log=this.log,h}o(n,"extend");function i(d){r.save(d),r.namespaces=d,r.names=[],r.skips=[];let f,h=(typeof d=="string"?d:"").split(/[\s,]+/),p=h.length;for(f=0;f"-"+f)].join(",");return r.enable(""),d}o(s,"disable");function a(d){if(d[d.length-1]==="*")return!0;let f,h;for(f=0,h=r.skips.length;f{Gs.formatArgs=ZXe;Gs.save=eZe;Gs.load=tZe;Gs.useColors=XXe;Gs.storage=rZe();Gs.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Gs.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function XXe(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}o(XXe,"useColors");function ZXe(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+pN.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),t.splice(n,0,e)}o(ZXe,"formatArgs");Gs.log=console.debug||console.log||(()=>{});function eZe(t){try{t?Gs.storage.setItem("debug",t):Gs.storage.removeItem("debug")}catch{}}o(eZe,"save");function tZe(){let t;try{t=Gs.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}o(tZe,"load");function rZe(){try{return localStorage}catch{}}o(rZe,"localstorage");pN.exports=zU()(Gs);var{formatters:nZe}=pN.exports;nZe.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var ode=g((_Jt,sde)=>{"use strict";sde.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n{"use strict";var iZe=require("os"),ade=require("tty"),Ro=ode(),{env:xn}=process,_d;Ro("no-color")||Ro("no-colors")||Ro("color=false")||Ro("color=never")?_d=0:(Ro("color")||Ro("colors")||Ro("color=true")||Ro("color=always"))&&(_d=1);"FORCE_COLOR"in xn&&(xn.FORCE_COLOR==="true"?_d=1:xn.FORCE_COLOR==="false"?_d=0:_d=xn.FORCE_COLOR.length===0?1:Math.min(parseInt(xn.FORCE_COLOR,10),3));function VU(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}o(VU,"translateLevel");function $U(t,e){if(_d===0)return 0;if(Ro("color=16m")||Ro("color=full")||Ro("color=truecolor"))return 3;if(Ro("color=256"))return 2;if(t&&!e&&_d===void 0)return 0;let r=_d||0;if(xn.TERM==="dumb")return r;if(process.platform==="win32"){let n=iZe.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in xn)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in xn)||xn.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in xn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(xn.TEAMCITY_VERSION)?1:0;if(xn.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in xn){let n=parseInt((xn.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(xn.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(xn.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(xn.TERM)||"COLORTERM"in xn?1:r}o($U,"supportsColor");function sZe(t){let e=$U(t,t&&t.isTTY);return VU(e)}o(sZe,"getSupportLevel");cde.exports={supportsColor:sZe,stdout:VU($U(!0,ade.isatty(1))),stderr:VU($U(!0,ade.isatty(2)))}});var ude=g((Vn,mN)=>{var oZe=require("tty"),AN=require("util");Vn.init=hZe;Vn.log=uZe;Vn.formatArgs=cZe;Vn.save=dZe;Vn.load=fZe;Vn.useColors=aZe;Vn.destroy=AN.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Vn.colors=[6,2,3,4,5,1];try{let t=jU();t&&(t.stderr||t).level>=2&&(Vn.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}Vn.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(i,s)=>s.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function aZe(){return"colors"in Vn.inspectOpts?!!Vn.inspectOpts.colors:oZe.isatty(process.stderr.fd)}o(aZe,"useColors");function cZe(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${i};1m${e} \x1B[0m`;t[0]=s+t[0].split(` +`.trim())}};hre.exports=ZL});var mx=g((QHt,yre)=>{"use strict";var Are=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:j5e}=xt(),W5e=rm();gre()===void 0&&mre(new W5e);function mre(t){if(!t||typeof t.dispatch!="function")throw new j5e("Argument agent must implement Agent");Object.defineProperty(globalThis,Are,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(mre,"setGlobalDispatcher");function gre(){return globalThis[Are]}o(gre,"getGlobalDispatcher");yre.exports={setGlobalDispatcher:mre,getGlobalDispatcher:gre}});var gx=g((OHt,Ere)=>{"use strict";Ere.exports=class{static{o(this,"DecoratorHandler")}#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var bre=g((FHt,Cre)=>{"use strict";var J5e=JB();Cre.exports=t=>{let e=t?.maxRedirections;return r=>o(function(i,s){let{maxRedirections:a=e,...c}=i;if(!a)return r(i,s);let l=new J5e(r,a,i,s);return r(c,l)},"redirectInterceptor")}});var Ire=g((UHt,wre)=>{"use strict";var Y5e=ox();wre.exports=t=>e=>o(function(n,i){return e(n,new Y5e({...n,retryOptions:{...t,...n.retryOptions}},{handler:i,dispatch:e}))},"retryInterceptor")});var Bre=g((GHt,Sre)=>{"use strict";var K5e=st(),{InvalidArgumentError:X5e,RequestAbortedError:Z5e}=xt(),eze=gx(),eF=class extends eze{static{o(this,"DumpHandler")}#e=1024*1024;#r=null;#n=!1;#t=!1;#i=0;#s=null;#l=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new X5e("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#l=r}onConnect(e){this.#r=e,this.#l.onConnect(this.#a.bind(this))}#a(e){this.#t=!0,this.#s=e}onHeaders(e,r,n,i){let a=K5e.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new Z5e(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#t?!0:this.#l.onHeaders(e,r,n,i)}onError(e){this.#n||(e=this.#s??e,this.#l.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#n=!0,this.#t?this.#l.onError(this.#s):this.#l.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#t){this.#l.onError(this.reason);return}this.#l.onComplete(e)}}};function tze({maxSize:t}={maxSize:1024*1024}){return e=>o(function(n,i){let{dumpMaxSize:s=t}=n,a=new eF({maxSize:s},i);return e(n,a)},"Intercept")}o(tze,"createDumpInterceptor");Sre.exports=tze});var Nre=g((zHt,vre)=>{"use strict";var{isIP:rze}=require("node:net"),{lookup:nze}=require("node:dns"),ize=gx(),{InvalidArgumentError:dm,InformationalError:sze}=xt(),xre=Math.pow(2,31)-1,tF=class{static{o(this,"DNSInstance")}#e=0;#r=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#r=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#t,this.pick=e.pick??this.#i}get full(){return this.#n.size===this.#r}runLookup(e,r,n){let i=this.#n.get(e.hostname);if(i==null&&this.full){n(null,e.origin);return}let s={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#r};if(i==null)this.lookup(e,s,(a,c)=>{if(a||c==null||c.length===0){n(a??new sze("No DNS entries found"));return}this.setRecords(e,c);let l=this.#n.get(e.hostname),u=this.pick(e,l,s.affinity),d;typeof u.port=="number"?d=`:${u.port}`:e.port!==""?d=`:${e.port}`:d="",n(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${d}`)});else{let a=this.pick(e,i,s.affinity);if(a==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#t(e,r,n){nze(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(i,s)=>{if(i)return n(i);let a=new Map;for(let c of s)a.set(`${c.address}:${c.family}`,c);n(null,a.values())})}#i(e,r,n){let i=null,{records:s,offset:a}=r,c;if(this.dualStack?(n==null&&(a==null||a===xre?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),s[n]!=null&&s[n].ips.length>0?c=s[n]:c=s[n===4?6:4]):c=s[n],c==null||c.ips.length===0)return i;c.offset==null||c.offset===xre?c.offset=0:c.offset++;let l=c.offset%c.ips.length;return i=c.ips[l]??null,i==null?i:Date.now()-i.timestamp>i.ttl?(c.ips.splice(l,1),this.pick(e,r,n)):i}setRecords(e,r){let n=Date.now(),i={records:{4:null,6:null}};for(let s of r){s.timestamp=n,typeof s.ttl=="number"?s.ttl=Math.min(s.ttl,this.#e):s.ttl=this.#e;let a=i.records[s.family]??{ips:[]};a.ips.push(s),i.records[s.family]=a}this.#n.set(e.hostname,i)}getHandler(e,r){return new rF(this,e,r)}},rF=class extends ize{static{o(this,"DNSDispatchHandler")}#e=null;#r=null;#n=null;#t=null;#i=null;constructor(e,{origin:r,handler:n,dispatch:i},s){super(n),this.#i=r,this.#t=n,this.#r={...s},this.#e=e,this.#n=i}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#r,(r,n)=>{if(r)return this.#t.onError(r);let i={...this.#r,origin:n};this.#n(i,this)});return}this.#t.onError(e);return}case"ENOTFOUND":this.#e.deleteRecord(this.#i);default:this.#t.onError(e);break}}};vre.exports=t=>{if(t?.maxTTL!=null&&(typeof t?.maxTTL!="number"||t?.maxTTL<0))throw new dm("Invalid maxTTL. Must be a positive number");if(t?.maxItems!=null&&(typeof t?.maxItems!="number"||t?.maxItems<1))throw new dm("Invalid maxItems. Must be a positive number and greater than zero");if(t?.affinity!=null&&t?.affinity!==4&&t?.affinity!==6)throw new dm("Invalid affinity. Must be either 4 or 6");if(t?.dualStack!=null&&typeof t?.dualStack!="boolean")throw new dm("Invalid dualStack. Must be a boolean");if(t?.lookup!=null&&typeof t?.lookup!="function")throw new dm("Invalid lookup. Must be a function");if(t?.pick!=null&&typeof t?.pick!="function")throw new dm("Invalid pick. Must be a function");let e=t?.dualStack??!0,r;e?r=t?.affinity??null:r=t?.affinity??4;let n={maxTTL:t?.maxTTL??1e4,lookup:t?.lookup??null,pick:t?.pick??null,dualStack:e,affinity:r,maxItems:t?.maxItems??1/0},i=new tF(n);return s=>o(function(c,l){let u=c.origin.constructor===URL?c.origin:new URL(c.origin);return rze(u.hostname)!==0?s(c,l):(i.runLookup(u,c,(d,f)=>{if(d)return l.onError(d);let h=null;h={...c,servername:u.hostname,origin:f,headers:{host:u.hostname,...c.headers}},s(h,i.getHandler({origin:u,dispatch:s,handler:l},c))}),!0)},"dnsInterceptor")}});var dh=g(($Ht,Pre)=>{"use strict";var{kConstruct:oze}=cr(),{kEnumerableProperty:fm}=st(),{iteratorMixin:aze,isValidHeaderName:qC,isValidHeaderValue:Rre}=xs(),{webidl:wt}=qn(),nF=require("node:assert"),yx=require("node:util"),Zr=Symbol("headers map"),Rs=Symbol("headers map sorted");function _re(t){return t===10||t===13||t===9||t===32}o(_re,"isHTTPWhiteSpaceCharCode");function Tre(t){let e=0,r=t.length;for(;r>e&&_re(t.charCodeAt(r-1));)--r;for(;r>e&&_re(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}o(Tre,"headerValueNormalize");function Dre(t,e){if(Array.isArray(e))for(let r=0;r>","record"]})}o(Dre,"fill");function iF(t,e,r){if(r=Tre(r),qC(e)){if(!Rre(r))throw wt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw wt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(kre(t)==="immutable")throw new TypeError("immutable");return sF(t).append(e,r,!1)}o(iF,"appendHeader");function Qre(t,e){return t[0]>1),r[u][0]<=d[0]?l=u+1:c=u;if(s!==u){for(a=s;a>l;)r[a]=r[--a];r[l]=d}}if(!n.next().done)throw new TypeError("Unreachable");return r}else{let n=0;for(let{0:i,1:{value:s}}of this[Zr])r[n++]=[i,s],nF(s!==null);return r.sort(Qre)}}},ba=class t{static{o(this,"Headers")}#e;#r;constructor(e=void 0){wt.util.markAsUncloneable(this),e!==oze&&(this.#r=new Ex,this.#e="none",e!==void 0&&(e=wt.converters.HeadersInit(e,"Headers contructor","init"),Dre(this,e)))}append(e,r){wt.brandCheck(this,t),wt.argumentLengthCheck(arguments,2,"Headers.append");let n="Headers.append";return e=wt.converters.ByteString(e,n,"name"),r=wt.converters.ByteString(r,n,"value"),iF(this,e,r)}delete(e){if(wt.brandCheck(this,t),wt.argumentLengthCheck(arguments,1,"Headers.delete"),e=wt.converters.ByteString(e,"Headers.delete","name"),!qC(e))throw wt.errors.invalidArgument({prefix:"Headers.delete",value:e,type:"header name"});if(this.#e==="immutable")throw new TypeError("immutable");this.#r.contains(e,!1)&&this.#r.delete(e,!1)}get(e){wt.brandCheck(this,t),wt.argumentLengthCheck(arguments,1,"Headers.get");let r="Headers.get";if(e=wt.converters.ByteString(e,r,"name"),!qC(e))throw wt.errors.invalidArgument({prefix:r,value:e,type:"header name"});return this.#r.get(e,!1)}has(e){wt.brandCheck(this,t),wt.argumentLengthCheck(arguments,1,"Headers.has");let r="Headers.has";if(e=wt.converters.ByteString(e,r,"name"),!qC(e))throw wt.errors.invalidArgument({prefix:r,value:e,type:"header name"});return this.#r.contains(e,!1)}set(e,r){wt.brandCheck(this,t),wt.argumentLengthCheck(arguments,2,"Headers.set");let n="Headers.set";if(e=wt.converters.ByteString(e,n,"name"),r=wt.converters.ByteString(r,n,"value"),r=Tre(r),qC(e)){if(!Rre(r))throw wt.errors.invalidArgument({prefix:n,value:r,type:"header value"})}else throw wt.errors.invalidArgument({prefix:n,value:e,type:"header name"});if(this.#e==="immutable")throw new TypeError("immutable");this.#r.set(e,r,!1)}getSetCookie(){wt.brandCheck(this,t);let e=this.#r.cookies;return e?[...e]:[]}get[Rs](){if(this.#r[Rs])return this.#r[Rs];let e=[],r=this.#r.toSortedArray(),n=this.#r.cookies;if(n===null||n.length===1)return this.#r[Rs]=r;for(let i=0;i>"](t,e,r,n.bind(t)):wt.converters["record"](t,e,r)}throw wt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};Pre.exports={fill:Dre,compareHeaderName:Qre,Headers:ba,HeadersList:Ex,getHeadersGuard:kre,setHeadersGuard:cze,setHeadersList:lze,getHeadersList:sF}});var HC=g((WHt,jre)=>{"use strict";var{Headers:qre,HeadersList:Ore,fill:uze,getHeadersGuard:dze,setHeadersGuard:Gre,setHeadersList:Hre}=dh(),{extractBody:Lre,cloneBody:fze,mixinBody:hze,hasFinalizationRegistry:zre,streamRegistry:Vre,bodyUnusable:pze}=$A(),oF=st(),Fre=require("node:util"),{kEnumerableProperty:Ts}=oF,{isValidReasonPhrase:Aze,isCancelled:mze,isAborted:gze,isBlobLike:yze,serializeJavascriptValueToJSONString:Eze,isErrorLike:Cze,isomorphicEncode:bze,environmentSettingsObject:wze}=xs(),{redirectStatusSet:Ize,nullBodyStatus:Sze}=fC(),{kState:ur,kHeaders:Zl}=nd(),{webidl:Ze}=qn(),{FormData:Bze}=yC(),{URLSerializer:Mre}=Yi(),{kConstruct:bx}=cr(),aF=require("node:assert"),{types:xze}=require("node:util"),vze=new TextEncoder("utf-8"),fh=class t{static{o(this,"Response")}static error(){return GC(wx(),"immutable")}static json(e,r={}){Ze.argumentLengthCheck(arguments,1,"Response.json"),r!==null&&(r=Ze.converters.ResponseInit(r));let n=vze.encode(Eze(e)),i=Lre(n),s=GC(hm({}),"response");return Ure(s,r,{body:i[0],type:"application/json"}),s}static redirect(e,r=302){Ze.argumentLengthCheck(arguments,1,"Response.redirect"),e=Ze.converters.USVString(e),r=Ze.converters["unsigned short"](r);let n;try{n=new URL(e,wze.settingsObject.baseUrl)}catch(a){throw new TypeError(`Failed to parse URL from ${e}`,{cause:a})}if(!Ize.has(r))throw new RangeError(`Invalid status code ${r}`);let i=GC(hm({}),"immutable");i[ur].status=r;let s=bze(Mre(n));return i[ur].headersList.append("location",s,!0),i}constructor(e=null,r={}){if(Ze.util.markAsUncloneable(this),e===bx)return;e!==null&&(e=Ze.converters.BodyInit(e)),r=Ze.converters.ResponseInit(r),this[ur]=hm({}),this[Zl]=new qre(bx),Gre(this[Zl],"response"),Hre(this[Zl],this[ur].headersList);let n=null;if(e!=null){let[i,s]=Lre(e);n={body:i,type:s}}Ure(this,r,n)}get type(){return Ze.brandCheck(this,t),this[ur].type}get url(){Ze.brandCheck(this,t);let e=this[ur].urlList,r=e[e.length-1]??null;return r===null?"":Mre(r,!0)}get redirected(){return Ze.brandCheck(this,t),this[ur].urlList.length>1}get status(){return Ze.brandCheck(this,t),this[ur].status}get ok(){return Ze.brandCheck(this,t),this[ur].status>=200&&this[ur].status<=299}get statusText(){return Ze.brandCheck(this,t),this[ur].statusText}get headers(){return Ze.brandCheck(this,t),this[Zl]}get body(){return Ze.brandCheck(this,t),this[ur].body?this[ur].body.stream:null}get bodyUsed(){return Ze.brandCheck(this,t),!!this[ur].body&&oF.isDisturbed(this[ur].body.stream)}clone(){if(Ze.brandCheck(this,t),pze(this))throw Ze.errors.exception({header:"Response.clone",message:"Body has already been consumed."});let e=cF(this[ur]);return zre&&this[ur].body?.stream&&Vre.register(this,new WeakRef(this[ur].body.stream)),GC(e,dze(this[Zl]))}[Fre.inspect.custom](e,r){r.depth===null&&(r.depth=2),r.colors??=!0;let n={status:this.status,statusText:this.statusText,headers:this.headers,body:this.body,bodyUsed:this.bodyUsed,ok:this.ok,redirected:this.redirected,type:this.type,url:this.url};return`Response ${Fre.formatWithOptions(r,n)}`}};hze(fh);Object.defineProperties(fh.prototype,{type:Ts,url:Ts,status:Ts,ok:Ts,redirected:Ts,statusText:Ts,headers:Ts,clone:Ts,body:Ts,bodyUsed:Ts,[Symbol.toStringTag]:{value:"Response",configurable:!0}});Object.defineProperties(fh,{json:Ts,redirect:Ts,error:Ts});function cF(t){if(t.internalResponse)return $re(cF(t.internalResponse),t.type);let e=hm({...t,body:null});return t.body!=null&&(e.body=fze(e,t.body)),e}o(cF,"cloneResponse");function hm(t){return{aborted:!1,rangeRequested:!1,timingAllowPassed:!1,requestIncludesCredentials:!1,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...t,headersList:t?.headersList?new Ore(t?.headersList):new Ore,urlList:t?.urlList?[...t.urlList]:[]}}o(hm,"makeResponse");function wx(t){let e=Cze(t);return hm({type:"error",status:0,error:e?t:new Error(t&&String(t)),aborted:t&&t.name==="AbortError"})}o(wx,"makeNetworkError");function Nze(t){return t.type==="error"&&t.status===0}o(Nze,"isNetworkError");function Cx(t,e){return e={internalResponse:t,...e},new Proxy(t,{get(r,n){return n in e?e[n]:r[n]},set(r,n,i){return aF(!(n in e)),r[n]=i,!0}})}o(Cx,"makeFilteredResponse");function $re(t,e){if(e==="basic")return Cx(t,{type:"basic",headersList:t.headersList});if(e==="cors")return Cx(t,{type:"cors",headersList:t.headersList});if(e==="opaque")return Cx(t,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null});if(e==="opaqueredirect")return Cx(t,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null});aF(!1)}o($re,"filterResponse");function _ze(t,e=null){return aF(mze(t)),gze(t)?wx(Object.assign(new DOMException("The operation was aborted.","AbortError"),{cause:e})):wx(Object.assign(new DOMException("Request was cancelled."),{cause:e}))}o(_ze,"makeAppropriateNetworkError");function Ure(t,e,r){if(e.status!==null&&(e.status<200||e.status>599))throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.');if("statusText"in e&&e.statusText!=null&&!Aze(String(e.statusText)))throw new TypeError("Invalid statusText");if("status"in e&&e.status!=null&&(t[ur].status=e.status),"statusText"in e&&e.statusText!=null&&(t[ur].statusText=e.statusText),"headers"in e&&e.headers!=null&&uze(t[Zl],e.headers),r){if(Sze.includes(t.status))throw Ze.errors.exception({header:"Response constructor",message:`Invalid response status code ${t.status}`});t[ur].body=r.body,r.type!=null&&!t[ur].headersList.contains("content-type",!0)&&t[ur].headersList.append("content-type",r.type,!0)}}o(Ure,"initializeResponse");function GC(t,e){let r=new fh(bx);return r[ur]=t,r[Zl]=new qre(bx),Hre(r[Zl],t.headersList),Gre(r[Zl],e),zre&&t.body?.stream&&Vre.register(r,new WeakRef(t.body.stream)),r}o(GC,"fromInnerResponse");Ze.converters.ReadableStream=Ze.interfaceConverter(ReadableStream);Ze.converters.FormData=Ze.interfaceConverter(Bze);Ze.converters.URLSearchParams=Ze.interfaceConverter(URLSearchParams);Ze.converters.XMLHttpRequestBodyInit=function(t,e,r){return typeof t=="string"?Ze.converters.USVString(t,e,r):yze(t)?Ze.converters.Blob(t,e,r,{strict:!1}):ArrayBuffer.isView(t)||xze.isArrayBuffer(t)?Ze.converters.BufferSource(t,e,r):oF.isFormDataLike(t)?Ze.converters.FormData(t,e,r,{strict:!1}):t instanceof URLSearchParams?Ze.converters.URLSearchParams(t,e,r):Ze.converters.DOMString(t,e,r)};Ze.converters.BodyInit=function(t,e,r){return t instanceof ReadableStream?Ze.converters.ReadableStream(t,e,r):t?.[Symbol.asyncIterator]?t:Ze.converters.XMLHttpRequestBodyInit(t,e,r)};Ze.converters.ResponseInit=Ze.dictionaryConverter([{key:"status",converter:Ze.converters["unsigned short"],defaultValue:o(()=>200,"defaultValue")},{key:"statusText",converter:Ze.converters.ByteString,defaultValue:o(()=>"","defaultValue")},{key:"headers",converter:Ze.converters.HeadersInit}]);jre.exports={isNetworkError:Nze,makeNetworkError:wx,makeResponse:hm,makeAppropriateNetworkError:_ze,filterResponse:$re,Response:fh,cloneResponse:cF,fromInnerResponse:GC}});var Kre=g((YHt,Yre)=>{"use strict";var{kConnected:Wre,kSize:Jre}=cr(),lF=class{static{o(this,"CompatWeakRef")}constructor(e){this.value=e}deref(){return this.value[Wre]===0&&this.value[Jre]===0?void 0:this.value}},uF=class{static{o(this,"CompatFinalizer")}constructor(e){this.finalizer=e}register(e,r){e.on&&e.on("disconnect",()=>{e[Wre]===0&&e[Jre]===0&&this.finalizer(r)})}unregister(e){}};Yre.exports=function(){return process.env.NODE_V8_COVERAGE&&process.version.startsWith("v18")?(process._rawDebug("Using compatibility WeakRef and FinalizationRegistry"),{WeakRef:lF,FinalizationRegistry:uF}):{WeakRef,FinalizationRegistry}}});var pm=g((XHt,fne)=>{"use strict";var{extractBody:Rze,mixinBody:Tze,cloneBody:Dze,bodyUnusable:Xre}=$A(),{Headers:ane,fill:Qze,HeadersList:xx,setHeadersGuard:fF,getHeadersGuard:kze,setHeadersList:cne,getHeadersList:Zre}=dh(),{FinalizationRegistry:Pze}=Kre()(),Sx=st(),ene=require("node:util"),{isValidHTTPToken:Oze,sameOrigin:tne,environmentSettingsObject:Ix}=xs(),{forbiddenMethodsSet:Lze,corsSafeListedMethodsSet:Fze,referrerPolicy:Mze,requestRedirect:Uze,requestMode:qze,requestCredentials:Gze,requestCache:Hze,requestDuplex:zze}=fC(),{kEnumerableProperty:en,normalizedMethodRecordsBase:Vze,normalizedMethodRecords:$ze}=Sx,{kHeaders:Ds,kSignal:Bx,kState:Yt,kDispatcher:dF}=nd(),{webidl:Pe}=qn(),{URLSerializer:jze}=Yi(),{kConstruct:vx}=cr(),Wze=require("node:assert"),{getMaxListeners:rne,setMaxListeners:nne,getEventListeners:Jze,defaultMaxListeners:ine}=require("node:events"),Yze=Symbol("abortController"),lne=new Pze(({signal:t,abort:e})=>{t.removeEventListener("abort",e)}),Nx=new WeakMap;function sne(t){return e;function e(){let r=t.deref();if(r!==void 0){lne.unregister(e),this.removeEventListener("abort",e),r.abort(this.reason);let n=Nx.get(r.signal);if(n!==void 0){if(n.size!==0){for(let i of n){let s=i.deref();s!==void 0&&s.abort(this.reason)}n.clear()}Nx.delete(r.signal)}}}}o(sne,"buildAbort");var one=!1,pd=class t{static{o(this,"Request")}constructor(e,r={}){if(Pe.util.markAsUncloneable(this),e===vx)return;let n="Request constructor";Pe.argumentLengthCheck(arguments,1,n),e=Pe.converters.RequestInfo(e,n,"input"),r=Pe.converters.RequestInit(r,n,"init");let i=null,s=null,a=Ix.settingsObject.baseUrl,c=null;if(typeof e=="string"){this[dF]=r.dispatcher;let y;try{y=new URL(e,a)}catch(C){throw new TypeError("Failed to parse URL from "+e,{cause:C})}if(y.username||y.password)throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+e);i=_x({urlList:[y]}),s="cors"}else this[dF]=r.dispatcher||e[dF],Wze(e instanceof t),i=e[Yt],c=e[Bx];let l=Ix.settingsObject.origin,u="client";if(i.window?.constructor?.name==="EnvironmentSettingsObject"&&tne(i.window,l)&&(u=i.window),r.window!=null)throw new TypeError(`'window' option '${u}' must be null`);"window"in r&&(u="no-window"),i=_x({method:i.method,headersList:i.headersList,unsafeRequest:i.unsafeRequest,client:Ix.settingsObject,window:u,priority:i.priority,origin:i.origin,referrer:i.referrer,referrerPolicy:i.referrerPolicy,mode:i.mode,credentials:i.credentials,cache:i.cache,redirect:i.redirect,integrity:i.integrity,keepalive:i.keepalive,reloadNavigation:i.reloadNavigation,historyNavigation:i.historyNavigation,urlList:[...i.urlList]});let d=Object.keys(r).length!==0;if(d&&(i.mode==="navigate"&&(i.mode="same-origin"),i.reloadNavigation=!1,i.historyNavigation=!1,i.origin="client",i.referrer="client",i.referrerPolicy="",i.url=i.urlList[i.urlList.length-1],i.urlList=[i.url]),r.referrer!==void 0){let y=r.referrer;if(y==="")i.referrer="no-referrer";else{let C;try{C=new URL(y,a)}catch(w){throw new TypeError(`Referrer "${y}" is not a valid URL.`,{cause:w})}C.protocol==="about:"&&C.hostname==="client"||l&&!tne(C,Ix.settingsObject.baseUrl)?i.referrer="client":i.referrer=C}}r.referrerPolicy!==void 0&&(i.referrerPolicy=r.referrerPolicy);let f;if(r.mode!==void 0?f=r.mode:f=s,f==="navigate")throw Pe.errors.exception({header:"Request constructor",message:"invalid request mode navigate."});if(f!=null&&(i.mode=f),r.credentials!==void 0&&(i.credentials=r.credentials),r.cache!==void 0&&(i.cache=r.cache),i.cache==="only-if-cached"&&i.mode!=="same-origin")throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode");if(r.redirect!==void 0&&(i.redirect=r.redirect),r.integrity!=null&&(i.integrity=String(r.integrity)),r.keepalive!==void 0&&(i.keepalive=!!r.keepalive),r.method!==void 0){let y=r.method,C=$ze[y];if(C!==void 0)i.method=C;else{if(!Oze(y))throw new TypeError(`'${y}' is not a valid HTTP method.`);let w=y.toUpperCase();if(Lze.has(w))throw new TypeError(`'${y}' HTTP method is unsupported.`);y=Vze[w]??y,i.method=y}!one&&i.method==="patch"&&(process.emitWarning("Using `patch` is highly likely to result in a `405 Method Not Allowed`. `PATCH` is much more likely to succeed.",{code:"UNDICI-FETCH-patch"}),one=!0)}r.signal!==void 0&&(c=r.signal),this[Yt]=i;let h=new AbortController;if(this[Bx]=h.signal,c!=null){if(!c||typeof c.aborted!="boolean"||typeof c.addEventListener!="function")throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.");if(c.aborted)h.abort(c.reason);else{this[Yze]=h;let y=new WeakRef(h),C=sne(y);try{(typeof rne=="function"&&rne(c)===ine||Jze(c,"abort").length>=ine)&&nne(1500,c)}catch{}Sx.addAbortListener(c,C),lne.register(h,{signal:c,abort:C},C)}}if(this[Ds]=new ane(vx),cne(this[Ds],i.headersList),fF(this[Ds],"request"),f==="no-cors"){if(!Fze.has(i.method))throw new TypeError(`'${i.method} is unsupported in no-cors mode.`);fF(this[Ds],"request-no-cors")}if(d){let y=Zre(this[Ds]),C=r.headers!==void 0?r.headers:new xx(y);if(y.clear(),C instanceof xx){for(let{name:w,value:B}of C.rawValues())y.append(w,B,!1);y.cookies=C.cookies}else Qze(this[Ds],C)}let p=e instanceof t?e[Yt].body:null;if((r.body!=null||p!=null)&&(i.method==="GET"||i.method==="HEAD"))throw new TypeError("Request with GET/HEAD method cannot have body.");let m=null;if(r.body!=null){let[y,C]=Rze(r.body,i.keepalive);m=y,C&&!Zre(this[Ds]).contains("content-type",!0)&&this[Ds].append("content-type",C)}let A=m??p;if(A!=null&&A.source==null){if(m!=null&&r.duplex==null)throw new TypeError("RequestInit: duplex option is required when sending a body.");if(i.mode!=="same-origin"&&i.mode!=="cors")throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"');i.useCORSPreflightFlag=!0}let E=A;if(m==null&&p!=null){if(Xre(e))throw new TypeError("Cannot construct a Request with a Request object that has already been used.");let y=new TransformStream;p.stream.pipeThrough(y),E={source:p.source,length:p.length,stream:y.readable}}this[Yt].body=E}get method(){return Pe.brandCheck(this,t),this[Yt].method}get url(){return Pe.brandCheck(this,t),jze(this[Yt].url)}get headers(){return Pe.brandCheck(this,t),this[Ds]}get destination(){return Pe.brandCheck(this,t),this[Yt].destination}get referrer(){return Pe.brandCheck(this,t),this[Yt].referrer==="no-referrer"?"":this[Yt].referrer==="client"?"about:client":this[Yt].referrer.toString()}get referrerPolicy(){return Pe.brandCheck(this,t),this[Yt].referrerPolicy}get mode(){return Pe.brandCheck(this,t),this[Yt].mode}get credentials(){return this[Yt].credentials}get cache(){return Pe.brandCheck(this,t),this[Yt].cache}get redirect(){return Pe.brandCheck(this,t),this[Yt].redirect}get integrity(){return Pe.brandCheck(this,t),this[Yt].integrity}get keepalive(){return Pe.brandCheck(this,t),this[Yt].keepalive}get isReloadNavigation(){return Pe.brandCheck(this,t),this[Yt].reloadNavigation}get isHistoryNavigation(){return Pe.brandCheck(this,t),this[Yt].historyNavigation}get signal(){return Pe.brandCheck(this,t),this[Bx]}get body(){return Pe.brandCheck(this,t),this[Yt].body?this[Yt].body.stream:null}get bodyUsed(){return Pe.brandCheck(this,t),!!this[Yt].body&&Sx.isDisturbed(this[Yt].body.stream)}get duplex(){return Pe.brandCheck(this,t),"half"}clone(){if(Pe.brandCheck(this,t),Xre(this))throw new TypeError("unusable");let e=une(this[Yt]),r=new AbortController;if(this.signal.aborted)r.abort(this.signal.reason);else{let n=Nx.get(this.signal);n===void 0&&(n=new Set,Nx.set(this.signal,n));let i=new WeakRef(r);n.add(i),Sx.addAbortListener(r.signal,sne(i))}return dne(e,r.signal,kze(this[Ds]))}[ene.inspect.custom](e,r){r.depth===null&&(r.depth=2),r.colors??=!0;let n={method:this.method,url:this.url,headers:this.headers,destination:this.destination,referrer:this.referrer,referrerPolicy:this.referrerPolicy,mode:this.mode,credentials:this.credentials,cache:this.cache,redirect:this.redirect,integrity:this.integrity,keepalive:this.keepalive,isReloadNavigation:this.isReloadNavigation,isHistoryNavigation:this.isHistoryNavigation,signal:this.signal};return`Request ${ene.formatWithOptions(r,n)}`}};Tze(pd);function _x(t){return{method:t.method??"GET",localURLsOnly:t.localURLsOnly??!1,unsafeRequest:t.unsafeRequest??!1,body:t.body??null,client:t.client??null,reservedClient:t.reservedClient??null,replacesClientId:t.replacesClientId??"",window:t.window??"client",keepalive:t.keepalive??!1,serviceWorkers:t.serviceWorkers??"all",initiator:t.initiator??"",destination:t.destination??"",priority:t.priority??null,origin:t.origin??"client",policyContainer:t.policyContainer??"client",referrer:t.referrer??"client",referrerPolicy:t.referrerPolicy??"",mode:t.mode??"no-cors",useCORSPreflightFlag:t.useCORSPreflightFlag??!1,credentials:t.credentials??"same-origin",useCredentials:t.useCredentials??!1,cache:t.cache??"default",redirect:t.redirect??"follow",integrity:t.integrity??"",cryptoGraphicsNonceMetadata:t.cryptoGraphicsNonceMetadata??"",parserMetadata:t.parserMetadata??"",reloadNavigation:t.reloadNavigation??!1,historyNavigation:t.historyNavigation??!1,userActivation:t.userActivation??!1,taintedOrigin:t.taintedOrigin??!1,redirectCount:t.redirectCount??0,responseTainting:t.responseTainting??"basic",preventNoCacheCacheControlHeaderModification:t.preventNoCacheCacheControlHeaderModification??!1,done:t.done??!1,timingAllowFailed:t.timingAllowFailed??!1,urlList:t.urlList,url:t.urlList[0],headersList:t.headersList?new xx(t.headersList):new xx}}o(_x,"makeRequest");function une(t){let e=_x({...t,body:null});return t.body!=null&&(e.body=Dze(e,t.body)),e}o(une,"cloneRequest");function dne(t,e,r){let n=new pd(vx);return n[Yt]=t,n[Bx]=e,n[Ds]=new ane(vx),cne(n[Ds],t.headersList),fF(n[Ds],r),n}o(dne,"fromInnerRequest");Object.defineProperties(pd.prototype,{method:en,url:en,headers:en,redirect:en,clone:en,signal:en,duplex:en,destination:en,body:en,bodyUsed:en,isHistoryNavigation:en,isReloadNavigation:en,keepalive:en,integrity:en,cache:en,credentials:en,attribute:en,referrerPolicy:en,referrer:en,mode:en,[Symbol.toStringTag]:{value:"Request",configurable:!0}});Pe.converters.Request=Pe.interfaceConverter(pd);Pe.converters.RequestInfo=function(t,e,r){return typeof t=="string"?Pe.converters.USVString(t,e,r):t instanceof pd?Pe.converters.Request(t,e,r):Pe.converters.USVString(t,e,r)};Pe.converters.AbortSignal=Pe.interfaceConverter(AbortSignal);Pe.converters.RequestInit=Pe.dictionaryConverter([{key:"method",converter:Pe.converters.ByteString},{key:"headers",converter:Pe.converters.HeadersInit},{key:"body",converter:Pe.nullableConverter(Pe.converters.BodyInit)},{key:"referrer",converter:Pe.converters.USVString},{key:"referrerPolicy",converter:Pe.converters.DOMString,allowedValues:Mze},{key:"mode",converter:Pe.converters.DOMString,allowedValues:qze},{key:"credentials",converter:Pe.converters.DOMString,allowedValues:Gze},{key:"cache",converter:Pe.converters.DOMString,allowedValues:Hze},{key:"redirect",converter:Pe.converters.DOMString,allowedValues:Uze},{key:"integrity",converter:Pe.converters.DOMString},{key:"keepalive",converter:Pe.converters.boolean},{key:"signal",converter:Pe.nullableConverter(t=>Pe.converters.AbortSignal(t,"RequestInit","signal",{strict:!1}))},{key:"window",converter:Pe.converters.any},{key:"duplex",converter:Pe.converters.DOMString,allowedValues:zze},{key:"dispatcher",converter:Pe.converters.any}]);fne.exports={Request:pd,makeRequest:_x,fromInnerRequest:dne,cloneRequest:une}});var VC=g((e5t,vne)=>{"use strict";var{makeNetworkError:Mt,makeAppropriateNetworkError:Rx,filterResponse:hF,makeResponse:Tx,fromInnerResponse:Kze}=HC(),{HeadersList:hne}=dh(),{Request:Xze,cloneRequest:Zze}=pm(),Ad=require("node:zlib"),{bytesMatch:eVe,makePolicyContainer:tVe,clonePolicyContainer:rVe,requestBadPort:nVe,TAOCheck:iVe,appendRequestOriginHeader:sVe,responseLocationURL:oVe,requestCurrentURL:dc,setRequestReferrerPolicyOnRedirect:aVe,tryUpgradeRequestToAPotentiallyTrustworthyURL:cVe,createOpaqueTimingInfo:yF,appendFetchMetadata:lVe,corsCheck:uVe,crossOriginResourcePolicyCheck:dVe,determineRequestsReferrer:fVe,coarsenedSharedCurrentTime:zC,createDeferredPromise:hVe,isBlobLike:pVe,sameOrigin:gF,isCancelled:hh,isAborted:pne,isErrorLike:AVe,fullyReadBody:mVe,readableStreamClose:gVe,isomorphicEncode:Dx,urlIsLocal:yVe,urlIsHttpHttpsScheme:EF,urlHasHttpsScheme:EVe,clampAndCoarsenConnectionTimingInfo:CVe,simpleRangeHeaderValue:bVe,buildContentRange:wVe,createInflate:IVe,extractMimeType:SVe}=xs(),{kState:yne,kDispatcher:BVe}=nd(),ph=require("node:assert"),{safelyExtractBody:CF,extractBody:Ane}=$A(),{redirectStatusSet:Ene,nullBodyStatus:Cne,safeMethodsSet:xVe,requestBodyHeader:vVe,subresourceSet:NVe}=fC(),_Ve=require("node:events"),{Readable:RVe,pipeline:TVe,finished:DVe}=require("node:stream"),{addAbortListener:QVe,isErrored:kVe,isReadable:Qx,bufferToLowerCasedHeaderName:mne}=st(),{dataURLProcessor:PVe,serializeAMimeType:OVe,minimizeSupportedMimeType:LVe}=Yi(),{getGlobalDispatcher:FVe}=mx(),{webidl:MVe}=qn(),{STATUS_CODES:UVe}=require("node:http"),qVe=["GET","HEAD"],GVe=typeof __UNDICI_IS_NODE__<"u"||typeof esbuildDetection<"u"?"node":"undici",pF,kx=class extends _Ve{static{o(this,"Fetch")}constructor(e){super(),this.dispatcher=e,this.connection=null,this.dump=!1,this.state="ongoing"}terminate(e){this.state==="ongoing"&&(this.state="terminated",this.connection?.destroy(e),this.emit("terminated",e))}abort(e){this.state==="ongoing"&&(this.state="aborted",e||(e=new DOMException("The operation was aborted.","AbortError")),this.serializedAbortReason=e,this.connection?.destroy(e),this.emit("terminated",e))}};function HVe(t){bne(t,"fetch")}o(HVe,"handleFetchDone");function zVe(t,e=void 0){MVe.argumentLengthCheck(arguments,1,"globalThis.fetch");let r=hVe(),n;try{n=new Xze(t,e)}catch(d){return r.reject(d),r.promise}let i=n[yne];if(n.signal.aborted)return AF(r,i,null,n.signal.reason),r.promise;i.client.globalObject?.constructor?.name==="ServiceWorkerGlobalScope"&&(i.serviceWorkers="none");let a=null,c=!1,l=null;return QVe(n.signal,()=>{c=!0,ph(l!=null),l.abort(n.signal.reason);let d=a?.deref();AF(r,i,d,n.signal.reason)}),l=Ine({request:i,processResponseEndOfBody:HVe,processResponse:o(d=>{if(!c){if(d.aborted){AF(r,i,a,l.serializedAbortReason);return}if(d.type==="error"){r.reject(new TypeError("fetch failed",{cause:d.error}));return}a=new WeakRef(Kze(d,"immutable")),r.resolve(a.deref()),r=null}},"processResponse"),dispatcher:n[BVe]}),r.promise}o(zVe,"fetch");function bne(t,e="other"){if(t.type==="error"&&t.aborted||!t.urlList?.length)return;let r=t.urlList[0],n=t.timingInfo,i=t.cacheState;EF(r)&&n!==null&&(t.timingAllowPassed||(n=yF({startTime:n.startTime}),i=""),n.endTime=zC(),t.timingInfo=n,wne(n,r.href,e,globalThis,i))}o(bne,"finalizeAndReportTiming");var wne=performance.markResourceTiming;function AF(t,e,r,n){if(t&&t.reject(n),e.body!=null&&Qx(e.body?.stream)&&e.body.stream.cancel(n).catch(s=>{if(s.code!=="ERR_INVALID_STATE")throw s}),r==null)return;let i=r[yne];i.body!=null&&Qx(i.body?.stream)&&i.body.stream.cancel(n).catch(s=>{if(s.code!=="ERR_INVALID_STATE")throw s})}o(AF,"abortFetch");function Ine({request:t,processRequestBodyChunkLength:e,processRequestEndOfBody:r,processResponse:n,processResponseEndOfBody:i,processResponseConsumeBody:s,useParallelQueue:a=!1,dispatcher:c=FVe()}){ph(c);let l=null,u=!1;t.client!=null&&(l=t.client.globalObject,u=t.client.crossOriginIsolatedCapability);let d=zC(u),f=yF({startTime:d}),h={controller:new kx(c),request:t,timingInfo:f,processRequestBodyChunkLength:e,processRequestEndOfBody:r,processResponse:n,processResponseConsumeBody:s,processResponseEndOfBody:i,taskDestination:l,crossOriginIsolatedCapability:u};return ph(!t.body||t.body.stream),t.window==="client"&&(t.window=t.client?.globalObject?.constructor?.name==="Window"?t.client:"no-window"),t.origin==="client"&&(t.origin=t.client.origin),t.policyContainer==="client"&&(t.client!=null?t.policyContainer=rVe(t.client.policyContainer):t.policyContainer=tVe()),t.headersList.contains("accept",!0)||t.headersList.append("accept","*/*",!0),t.headersList.contains("accept-language",!0)||t.headersList.append("accept-language","*",!0),t.priority,NVe.has(t.destination),Sne(h).catch(p=>{h.controller.terminate(p)}),h.controller}o(Ine,"fetching");async function Sne(t,e=!1){let r=t.request,n=null;if(r.localURLsOnly&&!yVe(dc(r))&&(n=Mt("local URLs only")),cVe(r),nVe(r)==="blocked"&&(n=Mt("bad port")),r.referrerPolicy===""&&(r.referrerPolicy=r.policyContainer.referrerPolicy),r.referrer!=="no-referrer"&&(r.referrer=fVe(r)),n===null&&(n=await(async()=>{let s=dc(r);return gF(s,r.url)&&r.responseTainting==="basic"||s.protocol==="data:"||r.mode==="navigate"||r.mode==="websocket"?(r.responseTainting="basic",await gne(t)):r.mode==="same-origin"?Mt('request mode cannot be "same-origin"'):r.mode==="no-cors"?r.redirect!=="follow"?Mt('redirect mode cannot be "follow" for "no-cors" request'):(r.responseTainting="opaque",await gne(t)):EF(dc(r))?(r.responseTainting="cors",await Bne(t)):Mt("URL scheme must be a HTTP(S) scheme")})()),e)return n;n.status!==0&&!n.internalResponse&&(r.responseTainting,r.responseTainting==="basic"?n=hF(n,"basic"):r.responseTainting==="cors"?n=hF(n,"cors"):r.responseTainting==="opaque"?n=hF(n,"opaque"):ph(!1));let i=n.status===0?n:n.internalResponse;if(i.urlList.length===0&&i.urlList.push(...r.urlList),r.timingAllowFailed||(n.timingAllowPassed=!0),n.type==="opaque"&&i.status===206&&i.rangeRequested&&!r.headers.contains("range",!0)&&(n=i=Mt()),n.status!==0&&(r.method==="HEAD"||r.method==="CONNECT"||Cne.includes(i.status))&&(i.body=null,t.controller.dump=!0),r.integrity){let s=o(c=>mF(t,Mt(c)),"processBodyError");if(r.responseTainting==="opaque"||n.body==null){s(n.error);return}let a=o(c=>{if(!eVe(c,r.integrity)){s("integrity mismatch");return}n.body=CF(c)[0],mF(t,n)},"processBody");await mVe(n.body,a,s)}else mF(t,n)}o(Sne,"mainFetch");function gne(t){if(hh(t)&&t.request.redirectCount===0)return Promise.resolve(Rx(t));let{request:e}=t,{protocol:r}=dc(e);switch(r){case"about:":return Promise.resolve(Mt("about scheme is not supported"));case"blob:":{pF||(pF=require("node:buffer").resolveObjectURL);let n=dc(e);if(n.search.length!==0)return Promise.resolve(Mt("NetworkError when attempting to fetch resource."));let i=pF(n.toString());if(e.method!=="GET"||!pVe(i))return Promise.resolve(Mt("invalid method"));let s=Tx(),a=i.size,c=Dx(`${a}`),l=i.type;if(e.headersList.contains("range",!0)){s.rangeRequested=!0;let u=e.headersList.get("range",!0),d=bVe(u,!0);if(d==="failure")return Promise.resolve(Mt("failed to fetch the data URL"));let{rangeStartValue:f,rangeEndValue:h}=d;if(f===null)f=a-h,h=f+h-1;else{if(f>=a)return Promise.resolve(Mt("Range start is greater than the blob's size."));(h===null||h>=a)&&(h=a-1)}let p=i.slice(f,h,l),m=Ane(p);s.body=m[0];let A=Dx(`${p.size}`),E=wVe(f,h,a);s.status=206,s.statusText="Partial Content",s.headersList.set("content-length",A,!0),s.headersList.set("content-type",l,!0),s.headersList.set("content-range",E,!0)}else{let u=Ane(i);s.statusText="OK",s.body=u[0],s.headersList.set("content-length",c,!0),s.headersList.set("content-type",l,!0)}return Promise.resolve(s)}case"data:":{let n=dc(e),i=PVe(n);if(i==="failure")return Promise.resolve(Mt("failed to fetch the data URL"));let s=OVe(i.mimeType);return Promise.resolve(Tx({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:s}]],body:CF(i.body)[0]}))}case"file:":return Promise.resolve(Mt("not implemented... yet..."));case"http:":case"https:":return Bne(t).catch(n=>Mt(n));default:return Promise.resolve(Mt("unknown scheme"))}}o(gne,"schemeFetch");function VVe(t,e){t.request.done=!0,t.processResponseDone!=null&&queueMicrotask(()=>t.processResponseDone(e))}o(VVe,"finalizeResponse");function mF(t,e){let r=t.timingInfo,n=o(()=>{let s=Date.now();t.request.destination==="document"&&(t.controller.fullTimingInfo=r),t.controller.reportTimingSteps=()=>{if(t.request.url.protocol!=="https:")return;r.endTime=s;let c=e.cacheState,l=e.bodyInfo;e.timingAllowPassed||(r=yF(r),c="");let u=0;if(t.request.mode!=="navigator"||!e.hasCrossOriginRedirects){u=e.status;let d=SVe(e.headersList);d!=="failure"&&(l.contentType=LVe(d))}t.request.initiatorType!=null&&wne(r,t.request.url.href,t.request.initiatorType,globalThis,c,l,u)};let a=o(()=>{t.request.done=!0,t.processResponseEndOfBody!=null&&queueMicrotask(()=>t.processResponseEndOfBody(e)),t.request.initiatorType!=null&&t.controller.reportTimingSteps()},"processResponseEndOfBodyTask");queueMicrotask(()=>a())},"processResponseEndOfBody");t.processResponse!=null&&queueMicrotask(()=>{t.processResponse(e),t.processResponse=null});let i=e.type==="error"?e:e.internalResponse??e;i.body==null?n():DVe(i.body.stream,()=>{n()})}o(mF,"fetchFinale");async function Bne(t){let e=t.request,r=null,n=null,i=t.timingInfo;if(e.serviceWorkers,r===null){if(e.redirect==="follow"&&(e.serviceWorkers="none"),n=r=await xne(t),e.responseTainting==="cors"&&uVe(e,r)==="failure")return Mt("cors failure");iVe(e,r)==="failure"&&(e.timingAllowFailed=!0)}return(e.responseTainting==="opaque"||r.type==="opaque")&&dVe(e.origin,e.client,e.destination,n)==="blocked"?Mt("blocked"):(Ene.has(n.status)&&(e.redirect!=="manual"&&t.controller.connection.destroy(void 0,!1),e.redirect==="error"?r=Mt("unexpected redirect"):e.redirect==="manual"?r=n:e.redirect==="follow"?r=await $Ve(t,r):ph(!1)),r.timingInfo=i,r)}o(Bne,"httpFetch");function $Ve(t,e){let r=t.request,n=e.internalResponse?e.internalResponse:e,i;try{if(i=oVe(n,dc(r).hash),i==null)return e}catch(a){return Promise.resolve(Mt(a))}if(!EF(i))return Promise.resolve(Mt("URL scheme must be a HTTP(S) scheme"));if(r.redirectCount===20)return Promise.resolve(Mt("redirect count exceeded"));if(r.redirectCount+=1,r.mode==="cors"&&(i.username||i.password)&&!gF(r,i))return Promise.resolve(Mt('cross origin not allowed for request mode "cors"'));if(r.responseTainting==="cors"&&(i.username||i.password))return Promise.resolve(Mt('URL cannot contain credentials for request mode "cors"'));if(n.status!==303&&r.body!=null&&r.body.source==null)return Promise.resolve(Mt());if([301,302].includes(n.status)&&r.method==="POST"||n.status===303&&!qVe.includes(r.method)){r.method="GET",r.body=null;for(let a of vVe)r.headersList.delete(a)}gF(dc(r),i)||(r.headersList.delete("authorization",!0),r.headersList.delete("proxy-authorization",!0),r.headersList.delete("cookie",!0),r.headersList.delete("host",!0)),r.body!=null&&(ph(r.body.source!=null),r.body=CF(r.body.source)[0]);let s=t.timingInfo;return s.redirectEndTime=s.postRedirectStartTime=zC(t.crossOriginIsolatedCapability),s.redirectStartTime===0&&(s.redirectStartTime=s.startTime),r.urlList.push(i),aVe(r,n),Sne(t,!0)}o($Ve,"httpRedirectFetch");async function xne(t,e=!1,r=!1){let n=t.request,i=null,s=null,a=null,c=null,l=!1;n.window==="no-window"&&n.redirect==="error"?(i=t,s=n):(s=Zze(n),i={...t},i.request=s);let u=n.credentials==="include"||n.credentials==="same-origin"&&n.responseTainting==="basic",d=s.body?s.body.length:null,f=null;if(s.body==null&&["POST","PUT"].includes(s.method)&&(f="0"),d!=null&&(f=Dx(`${d}`)),f!=null&&s.headersList.append("content-length",f,!0),d!=null&&s.keepalive,s.referrer instanceof URL&&s.headersList.append("referer",Dx(s.referrer.href),!0),sVe(s),lVe(s),s.headersList.contains("user-agent",!0)||s.headersList.append("user-agent",GVe),s.cache==="default"&&(s.headersList.contains("if-modified-since",!0)||s.headersList.contains("if-none-match",!0)||s.headersList.contains("if-unmodified-since",!0)||s.headersList.contains("if-match",!0)||s.headersList.contains("if-range",!0))&&(s.cache="no-store"),s.cache==="no-cache"&&!s.preventNoCacheCacheControlHeaderModification&&!s.headersList.contains("cache-control",!0)&&s.headersList.append("cache-control","max-age=0",!0),(s.cache==="no-store"||s.cache==="reload")&&(s.headersList.contains("pragma",!0)||s.headersList.append("pragma","no-cache",!0),s.headersList.contains("cache-control",!0)||s.headersList.append("cache-control","no-cache",!0)),s.headersList.contains("range",!0)&&s.headersList.append("accept-encoding","identity",!0),s.headersList.contains("accept-encoding",!0)||(EVe(dc(s))?s.headersList.append("accept-encoding","br, gzip, deflate",!0):s.headersList.append("accept-encoding","gzip, deflate",!0)),s.headersList.delete("host",!0),c==null&&(s.cache="no-store"),s.cache!=="no-store"&&s.cache,a==null){if(s.cache==="only-if-cached")return Mt("only if cached");let h=await jVe(i,u,r);!xVe.has(s.method)&&h.status>=200&&h.status<=399,l&&h.status,a==null&&(a=h)}if(a.urlList=[...s.urlList],s.headersList.contains("range",!0)&&(a.rangeRequested=!0),a.requestIncludesCredentials=u,a.status===407)return n.window==="no-window"?Mt():hh(t)?Rx(t):Mt("proxy authentication required");if(a.status===421&&!r&&(n.body==null||n.body.source!=null)){if(hh(t))return Rx(t);t.controller.connection.destroy(),a=await xne(t,e,!0)}return a}o(xne,"httpNetworkOrCacheFetch");async function jVe(t,e=!1,r=!1){ph(!t.controller.connection||t.controller.connection.destroyed),t.controller.connection={abort:null,destroyed:!1,destroy(m,A=!0){this.destroyed||(this.destroyed=!0,A&&this.abort?.(m??new DOMException("The operation was aborted.","AbortError")))}};let n=t.request,i=null,s=t.timingInfo;null==null&&(n.cache="no-store");let c=r?"yes":"no";n.mode;let l=null;if(n.body==null&&t.processRequestEndOfBody)queueMicrotask(()=>t.processRequestEndOfBody());else if(n.body!=null){let m=o(async function*(y){hh(t)||(yield y,t.processRequestBodyChunkLength?.(y.byteLength))},"processBodyChunk"),A=o(()=>{hh(t)||t.processRequestEndOfBody&&t.processRequestEndOfBody()},"processEndOfBody"),E=o(y=>{hh(t)||(y.name==="AbortError"?t.controller.abort():t.controller.terminate(y))},"processBodyError");l=(async function*(){try{for await(let y of n.body.stream)yield*m(y);A()}catch(y){E(y)}})()}try{let{body:m,status:A,statusText:E,headersList:y,socket:C}=await p({body:l});if(C)i=Tx({status:A,statusText:E,headersList:y,socket:C});else{let w=m[Symbol.asyncIterator]();t.controller.next=()=>w.next(),i=Tx({status:A,statusText:E,headersList:y})}}catch(m){return m.name==="AbortError"?(t.controller.connection.destroy(),Rx(t,m)):Mt(m)}let u=o(async()=>{await t.controller.resume()},"pullAlgorithm"),d=o(m=>{hh(t)||t.controller.abort(m)},"cancelAlgorithm"),f=new ReadableStream({async start(m){t.controller.controller=m},async pull(m){await u(m)},async cancel(m){await d(m)},type:"bytes"});i.body={stream:f,source:null,length:null},t.controller.onAborted=h,t.controller.on("terminated",h),t.controller.resume=async()=>{for(;;){let m,A;try{let{done:y,value:C}=await t.controller.next();if(pne(t))break;m=y?void 0:C}catch(y){t.controller.ended&&!s.encodedBodySize?m=void 0:(m=y,A=!0)}if(m===void 0){gVe(t.controller.controller),VVe(t,i);return}if(s.decodedBodySize+=m?.byteLength??0,A){t.controller.terminate(m);return}let E=new Uint8Array(m);if(E.byteLength&&t.controller.controller.enqueue(E),kVe(f)){t.controller.terminate();return}if(t.controller.controller.desiredSize<=0)return}};function h(m){pne(t)?(i.aborted=!0,Qx(f)&&t.controller.controller.error(t.controller.serializedAbortReason)):Qx(f)&&t.controller.controller.error(new TypeError("terminated",{cause:AVe(m)?m:void 0})),t.controller.connection.destroy()}return o(h,"onAborted"),i;function p({body:m}){let A=dc(n),E=t.controller.dispatcher;return new Promise((y,C)=>E.dispatch({path:A.pathname+A.search,origin:A.origin,method:n.method,body:E.isMockActive?n.body&&(n.body.source||n.body.stream):m,headers:n.headersList.entries,maxRedirections:0,upgrade:n.mode==="websocket"?"websocket":void 0},{body:null,abort:null,onConnect(w){let{connection:B}=t.controller;s.finalConnectionTimingInfo=CVe(void 0,s.postRedirectStartTime,t.crossOriginIsolatedCapability),B.destroyed?w(new DOMException("The operation was aborted.","AbortError")):(t.controller.on("terminated",w),this.abort=B.abort=w),s.finalNetworkRequestStartTime=zC(t.crossOriginIsolatedCapability)},onResponseStarted(){s.finalNetworkResponseStartTime=zC(t.crossOriginIsolatedCapability)},onHeaders(w,B,P,U){if(w<200)return;let N="",$=new hne;for(let W=0;Wde)return C(new Error(`too many content-encodings in response: ${ue.length}, maximum allowed is ${de}`)),!0;for(let Se=ue.length-1;Se>=0;--Se){let K=ue[Se].trim();if(K==="x-gzip"||K==="gzip")Q.push(Ad.createGunzip({flush:Ad.constants.Z_SYNC_FLUSH,finishFlush:Ad.constants.Z_SYNC_FLUSH}));else if(K==="deflate")Q.push(IVe({flush:Ad.constants.Z_SYNC_FLUSH,finishFlush:Ad.constants.Z_SYNC_FLUSH}));else if(K==="br")Q.push(Ad.createBrotliDecompress({flush:Ad.constants.BROTLI_OPERATION_FLUSH,finishFlush:Ad.constants.BROTLI_OPERATION_FLUSH}));else{Q.length=0;break}}}let V=this.onError.bind(this);return y({status:w,statusText:U,headersList:$,body:Q.length?TVe(this.body,...Q,W=>{W&&this.onError(W)}).on("error",V):this.body.on("error",V)}),!0},onData(w){if(t.controller.dump)return;let B=w;return s.encodedBodySize+=B.byteLength,this.body.push(B)},onComplete(){this.abort&&t.controller.off("terminated",this.abort),t.controller.onAborted&&t.controller.off("terminated",t.controller.onAborted),t.controller.ended=!0,this.body.push(null)},onError(w){this.abort&&t.controller.off("terminated",this.abort),this.body?.destroy(w),t.controller.terminate(w),C(w)},onUpgrade(w,B,P){if(w!==101)return;let U=new hne;for(let N=0;N{"use strict";Nne.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}});var Rne=g((n5t,_ne)=>{"use strict";var{webidl:Qs}=qn(),Px=Symbol("ProgressEvent state"),wF=class t extends Event{static{o(this,"ProgressEvent")}constructor(e,r={}){e=Qs.converters.DOMString(e,"ProgressEvent constructor","type"),r=Qs.converters.ProgressEventInit(r??{}),super(e,r),this[Px]={lengthComputable:r.lengthComputable,loaded:r.loaded,total:r.total}}get lengthComputable(){return Qs.brandCheck(this,t),this[Px].lengthComputable}get loaded(){return Qs.brandCheck(this,t),this[Px].loaded}get total(){return Qs.brandCheck(this,t),this[Px].total}};Qs.converters.ProgressEventInit=Qs.dictionaryConverter([{key:"lengthComputable",converter:Qs.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"loaded",converter:Qs.converters["unsigned long long"],defaultValue:o(()=>0,"defaultValue")},{key:"total",converter:Qs.converters["unsigned long long"],defaultValue:o(()=>0,"defaultValue")},{key:"bubbles",converter:Qs.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"cancelable",converter:Qs.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"composed",converter:Qs.converters.boolean,defaultValue:o(()=>!1,"defaultValue")}]);_ne.exports={ProgressEvent:wF}});var Dne=g((s5t,Tne)=>{"use strict";function WVe(t){if(!t)return"failure";switch(t.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}o(WVe,"getEncoding");Tne.exports={getEncoding:WVe}});var Une=g((a5t,Mne)=>{"use strict";var{kState:Am,kError:IF,kResult:Qne,kAborted:$C,kLastProgressEventFired:SF}=bF(),{ProgressEvent:JVe}=Rne(),{getEncoding:kne}=Dne(),{serializeAMimeType:YVe,parseMIMEType:Pne}=Yi(),{types:KVe}=require("node:util"),{StringDecoder:One}=require("string_decoder"),{btoa:Lne}=require("node:buffer"),XVe={enumerable:!0,writable:!1,configurable:!1};function ZVe(t,e,r,n){if(t[Am]==="loading")throw new DOMException("Invalid state","InvalidStateError");t[Am]="loading",t[Qne]=null,t[IF]=null;let s=e.stream().getReader(),a=[],c=s.read(),l=!0;(async()=>{for(;!t[$C];)try{let{done:u,value:d}=await c;if(l&&!t[$C]&&queueMicrotask(()=>{md("loadstart",t)}),l=!1,!u&&KVe.isUint8Array(d))a.push(d),(t[SF]===void 0||Date.now()-t[SF]>=50)&&!t[$C]&&(t[SF]=Date.now(),queueMicrotask(()=>{md("progress",t)})),c=s.read();else if(u){queueMicrotask(()=>{t[Am]="done";try{let f=e4e(a,r,e.type,n);if(t[$C])return;t[Qne]=f,md("load",t)}catch(f){t[IF]=f,md("error",t)}t[Am]!=="loading"&&md("loadend",t)});break}}catch(u){if(t[$C])return;queueMicrotask(()=>{t[Am]="done",t[IF]=u,md("error",t),t[Am]!=="loading"&&md("loadend",t)});break}})()}o(ZVe,"readOperation");function md(t,e){let r=new JVe(t,{bubbles:!1,cancelable:!1});e.dispatchEvent(r)}o(md,"fireAProgressEvent");function e4e(t,e,r,n){switch(e){case"DataURL":{let i="data:",s=Pne(r||"application/octet-stream");s!=="failure"&&(i+=YVe(s)),i+=";base64,";let a=new One("latin1");for(let c of t)i+=Lne(a.write(c));return i+=Lne(a.end()),i}case"Text":{let i="failure";if(n&&(i=kne(n)),i==="failure"&&r){let s=Pne(r);s!=="failure"&&(i=kne(s.parameters.get("charset")))}return i==="failure"&&(i="UTF-8"),t4e(t,i)}case"ArrayBuffer":return Fne(t).buffer;case"BinaryString":{let i="",s=new One("latin1");for(let a of t)i+=s.write(a);return i+=s.end(),i}}}o(e4e,"packageData");function t4e(t,e){let r=Fne(t),n=r4e(r),i=0;n!==null&&(e=n,i=n==="UTF-8"?3:2);let s=r.slice(i);return new TextDecoder(e).decode(s)}o(t4e,"decode");function r4e(t){let[e,r,n]=t;return e===239&&r===187&&n===191?"UTF-8":e===254&&r===255?"UTF-16BE":e===255&&r===254?"UTF-16LE":null}o(r4e,"BOMSniffing");function Fne(t){let e=t.reduce((n,i)=>n+i.byteLength,0),r=0;return t.reduce((n,i)=>(n.set(i,r),r+=i.byteLength,n),new Uint8Array(e))}o(Fne,"combineByteSequences");Mne.exports={staticPropertyDescriptors:XVe,readOperation:ZVe,fireAProgressEvent:md}});var zne=g((l5t,Hne)=>{"use strict";var{staticPropertyDescriptors:mm,readOperation:Ox,fireAProgressEvent:qne}=Une(),{kState:Ah,kError:Gne,kResult:Lx,kEvents:Dt,kAborted:n4e}=bF(),{webidl:qt}=qn(),{kEnumerableProperty:Zi}=st(),wa=class t extends EventTarget{static{o(this,"FileReader")}constructor(){super(),this[Ah]="empty",this[Lx]=null,this[Gne]=null,this[Dt]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(e){qt.brandCheck(this,t),qt.argumentLengthCheck(arguments,1,"FileReader.readAsArrayBuffer"),e=qt.converters.Blob(e,{strict:!1}),Ox(this,e,"ArrayBuffer")}readAsBinaryString(e){qt.brandCheck(this,t),qt.argumentLengthCheck(arguments,1,"FileReader.readAsBinaryString"),e=qt.converters.Blob(e,{strict:!1}),Ox(this,e,"BinaryString")}readAsText(e,r=void 0){qt.brandCheck(this,t),qt.argumentLengthCheck(arguments,1,"FileReader.readAsText"),e=qt.converters.Blob(e,{strict:!1}),r!==void 0&&(r=qt.converters.DOMString(r,"FileReader.readAsText","encoding")),Ox(this,e,"Text",r)}readAsDataURL(e){qt.brandCheck(this,t),qt.argumentLengthCheck(arguments,1,"FileReader.readAsDataURL"),e=qt.converters.Blob(e,{strict:!1}),Ox(this,e,"DataURL")}abort(){if(this[Ah]==="empty"||this[Ah]==="done"){this[Lx]=null;return}this[Ah]==="loading"&&(this[Ah]="done",this[Lx]=null),this[n4e]=!0,qne("abort",this),this[Ah]!=="loading"&&qne("loadend",this)}get readyState(){switch(qt.brandCheck(this,t),this[Ah]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){return qt.brandCheck(this,t),this[Lx]}get error(){return qt.brandCheck(this,t),this[Gne]}get onloadend(){return qt.brandCheck(this,t),this[Dt].loadend}set onloadend(e){qt.brandCheck(this,t),this[Dt].loadend&&this.removeEventListener("loadend",this[Dt].loadend),typeof e=="function"?(this[Dt].loadend=e,this.addEventListener("loadend",e)):this[Dt].loadend=null}get onerror(){return qt.brandCheck(this,t),this[Dt].error}set onerror(e){qt.brandCheck(this,t),this[Dt].error&&this.removeEventListener("error",this[Dt].error),typeof e=="function"?(this[Dt].error=e,this.addEventListener("error",e)):this[Dt].error=null}get onloadstart(){return qt.brandCheck(this,t),this[Dt].loadstart}set onloadstart(e){qt.brandCheck(this,t),this[Dt].loadstart&&this.removeEventListener("loadstart",this[Dt].loadstart),typeof e=="function"?(this[Dt].loadstart=e,this.addEventListener("loadstart",e)):this[Dt].loadstart=null}get onprogress(){return qt.brandCheck(this,t),this[Dt].progress}set onprogress(e){qt.brandCheck(this,t),this[Dt].progress&&this.removeEventListener("progress",this[Dt].progress),typeof e=="function"?(this[Dt].progress=e,this.addEventListener("progress",e)):this[Dt].progress=null}get onload(){return qt.brandCheck(this,t),this[Dt].load}set onload(e){qt.brandCheck(this,t),this[Dt].load&&this.removeEventListener("load",this[Dt].load),typeof e=="function"?(this[Dt].load=e,this.addEventListener("load",e)):this[Dt].load=null}get onabort(){return qt.brandCheck(this,t),this[Dt].abort}set onabort(e){qt.brandCheck(this,t),this[Dt].abort&&this.removeEventListener("abort",this[Dt].abort),typeof e=="function"?(this[Dt].abort=e,this.addEventListener("abort",e)):this[Dt].abort=null}};wa.EMPTY=wa.prototype.EMPTY=0;wa.LOADING=wa.prototype.LOADING=1;wa.DONE=wa.prototype.DONE=2;Object.defineProperties(wa.prototype,{EMPTY:mm,LOADING:mm,DONE:mm,readAsArrayBuffer:Zi,readAsBinaryString:Zi,readAsText:Zi,readAsDataURL:Zi,abort:Zi,readyState:Zi,result:Zi,error:Zi,onloadstart:Zi,onprogress:Zi,onload:Zi,onabort:Zi,onerror:Zi,onloadend:Zi,[Symbol.toStringTag]:{value:"FileReader",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(wa,{EMPTY:mm,LOADING:mm,DONE:mm});Hne.exports={FileReader:wa}});var Fx=g((d5t,Vne)=>{"use strict";Vne.exports={kConstruct:cr().kConstruct}});var Wne=g((f5t,jne)=>{"use strict";var i4e=require("node:assert"),{URLSerializer:$ne}=Yi(),{isValidHeaderName:s4e}=xs();function o4e(t,e,r=!1){let n=$ne(t,r),i=$ne(e,r);return n===i}o(o4e,"urlEquals");function a4e(t){i4e(t!==null);let e=[];for(let r of t.split(","))r=r.trim(),s4e(r)&&e.push(r);return e}o(a4e,"getFieldValues");jne.exports={urlEquals:o4e,getFieldValues:a4e}});var Kne=g((p5t,Yne)=>{"use strict";var{kConstruct:c4e}=Fx(),{urlEquals:l4e,getFieldValues:BF}=Wne(),{kEnumerableProperty:mh,isDisturbed:u4e}=st(),{webidl:Be}=qn(),{Response:d4e,cloneResponse:f4e,fromInnerResponse:h4e}=HC(),{Request:eu,fromInnerRequest:p4e}=pm(),{kState:Ia}=nd(),{fetching:A4e}=VC(),{urlIsHttpHttpsScheme:Mx,createDeferredPromise:gm,readAllBytes:m4e}=xs(),xF=require("node:assert"),Ux=class t{static{o(this,"Cache")}#e;constructor(){arguments[0]!==c4e&&Be.illegalConstructor(),Be.util.markAsUncloneable(this),this.#e=arguments[1]}async match(e,r={}){Be.brandCheck(this,t);let n="Cache.match";Be.argumentLengthCheck(arguments,1,n),e=Be.converters.RequestInfo(e,n,"request"),r=Be.converters.CacheQueryOptions(r,n,"options");let i=this.#i(e,r,1);if(i.length!==0)return i[0]}async matchAll(e=void 0,r={}){Be.brandCheck(this,t);let n="Cache.matchAll";return e!==void 0&&(e=Be.converters.RequestInfo(e,n,"request")),r=Be.converters.CacheQueryOptions(r,n,"options"),this.#i(e,r)}async add(e){Be.brandCheck(this,t);let r="Cache.add";Be.argumentLengthCheck(arguments,1,r),e=Be.converters.RequestInfo(e,r,"request");let n=[e];return await this.addAll(n)}async addAll(e){Be.brandCheck(this,t);let r="Cache.addAll";Be.argumentLengthCheck(arguments,1,r);let n=[],i=[];for(let h of e){if(h===void 0)throw Be.errors.conversionFailed({prefix:r,argument:"Argument 1",types:["undefined is not allowed"]});if(h=Be.converters.RequestInfo(h),typeof h=="string")continue;let p=h[Ia];if(!Mx(p.url)||p.method!=="GET")throw Be.errors.exception({header:r,message:"Expected http/s scheme when method is not GET."})}let s=[];for(let h of e){let p=new eu(h)[Ia];if(!Mx(p.url))throw Be.errors.exception({header:r,message:"Expected http/s scheme."});p.initiator="fetch",p.destination="subresource",i.push(p);let m=gm();s.push(A4e({request:p,processResponse(A){if(A.type==="error"||A.status===206||A.status<200||A.status>299)m.reject(Be.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}));else if(A.headersList.contains("vary")){let E=BF(A.headersList.get("vary"));for(let y of E)if(y==="*"){m.reject(Be.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(let C of s)C.abort();return}}},processResponseEndOfBody(A){if(A.aborted){m.reject(new DOMException("aborted","AbortError"));return}m.resolve(A)}})),n.push(m.promise)}let c=await Promise.all(n),l=[],u=0;for(let h of c){let p={type:"put",request:i[u],response:h};l.push(p),u++}let d=gm(),f=null;try{this.#r(l)}catch(h){f=h}return queueMicrotask(()=>{f===null?d.resolve(void 0):d.reject(f)}),d.promise}async put(e,r){Be.brandCheck(this,t);let n="Cache.put";Be.argumentLengthCheck(arguments,2,n),e=Be.converters.RequestInfo(e,n,"request"),r=Be.converters.Response(r,n,"response");let i=null;if(e instanceof eu?i=e[Ia]:i=new eu(e)[Ia],!Mx(i.url)||i.method!=="GET")throw Be.errors.exception({header:n,message:"Expected an http/s scheme when method is not GET"});let s=r[Ia];if(s.status===206)throw Be.errors.exception({header:n,message:"Got 206 status"});if(s.headersList.contains("vary")){let p=BF(s.headersList.get("vary"));for(let m of p)if(m==="*")throw Be.errors.exception({header:n,message:"Got * vary field value"})}if(s.body&&(u4e(s.body.stream)||s.body.stream.locked))throw Be.errors.exception({header:n,message:"Response body is locked or disturbed"});let a=f4e(s),c=gm();if(s.body!=null){let m=s.body.stream.getReader();m4e(m).then(c.resolve,c.reject)}else c.resolve(void 0);let l=[],u={type:"put",request:i,response:a};l.push(u);let d=await c.promise;a.body!=null&&(a.body.source=d);let f=gm(),h=null;try{this.#r(l)}catch(p){h=p}return queueMicrotask(()=>{h===null?f.resolve():f.reject(h)}),f.promise}async delete(e,r={}){Be.brandCheck(this,t);let n="Cache.delete";Be.argumentLengthCheck(arguments,1,n),e=Be.converters.RequestInfo(e,n,"request"),r=Be.converters.CacheQueryOptions(r,n,"options");let i=null;if(e instanceof eu){if(i=e[Ia],i.method!=="GET"&&!r.ignoreMethod)return!1}else xF(typeof e=="string"),i=new eu(e)[Ia];let s=[],a={type:"delete",request:i,options:r};s.push(a);let c=gm(),l=null,u;try{u=this.#r(s)}catch(d){l=d}return queueMicrotask(()=>{l===null?c.resolve(!!u?.length):c.reject(l)}),c.promise}async keys(e=void 0,r={}){Be.brandCheck(this,t);let n="Cache.keys";e!==void 0&&(e=Be.converters.RequestInfo(e,n,"request")),r=Be.converters.CacheQueryOptions(r,n,"options");let i=null;if(e!==void 0)if(e instanceof eu){if(i=e[Ia],i.method!=="GET"&&!r.ignoreMethod)return[]}else typeof e=="string"&&(i=new eu(e)[Ia]);let s=gm(),a=[];if(e===void 0)for(let c of this.#e)a.push(c[0]);else{let c=this.#n(i,r);for(let l of c)a.push(l[0])}return queueMicrotask(()=>{let c=[];for(let l of a){let u=p4e(l,new AbortController().signal,"immutable");c.push(u)}s.resolve(Object.freeze(c))}),s.promise}#r(e){let r=this.#e,n=[...r],i=[],s=[];try{for(let a of e){if(a.type!=="delete"&&a.type!=="put")throw Be.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'});if(a.type==="delete"&&a.response!=null)throw Be.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"});if(this.#n(a.request,a.options,i).length)throw new DOMException("???","InvalidStateError");let c;if(a.type==="delete"){if(c=this.#n(a.request,a.options),c.length===0)return[];for(let l of c){let u=r.indexOf(l);xF(u!==-1),r.splice(u,1)}}else if(a.type==="put"){if(a.response==null)throw Be.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"});let l=a.request;if(!Mx(l.url))throw Be.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"});if(l.method!=="GET")throw Be.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"});if(a.options!=null)throw Be.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"});c=this.#n(a.request);for(let u of c){let d=r.indexOf(u);xF(d!==-1),r.splice(d,1)}r.push([a.request,a.response]),i.push([a.request,a.response])}s.push([a.request,a.response])}return s}catch(a){throw this.#e.length=0,this.#e=n,a}}#n(e,r,n){let i=[],s=n??this.#e;for(let a of s){let[c,l]=a;this.#t(e,c,l,r)&&i.push(a)}return i}#t(e,r,n=null,i){let s=new URL(e.url),a=new URL(r.url);if(i?.ignoreSearch&&(a.search="",s.search=""),!l4e(s,a,!0))return!1;if(n==null||i?.ignoreVary||!n.headersList.contains("vary"))return!0;let c=BF(n.headersList.get("vary"));for(let l of c){if(l==="*")return!1;let u=r.headersList.get(l),d=e.headersList.get(l);if(u!==d)return!1}return!0}#i(e,r,n=1/0){let i=null;if(e!==void 0)if(e instanceof eu){if(i=e[Ia],i.method!=="GET"&&!r.ignoreMethod)return[]}else typeof e=="string"&&(i=new eu(e)[Ia]);let s=[];if(e===void 0)for(let c of this.#e)s.push(c[1]);else{let c=this.#n(i,r);for(let l of c)s.push(l[1])}let a=[];for(let c of s){let l=h4e(c,"immutable");if(a.push(l.clone()),a.length>=n)break}return Object.freeze(a)}};Object.defineProperties(Ux.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:!0},match:mh,matchAll:mh,add:mh,addAll:mh,put:mh,delete:mh,keys:mh});var Jne=[{key:"ignoreSearch",converter:Be.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"ignoreMethod",converter:Be.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"ignoreVary",converter:Be.converters.boolean,defaultValue:o(()=>!1,"defaultValue")}];Be.converters.CacheQueryOptions=Be.dictionaryConverter(Jne);Be.converters.MultiCacheQueryOptions=Be.dictionaryConverter([...Jne,{key:"cacheName",converter:Be.converters.DOMString}]);Be.converters.Response=Be.interfaceConverter(d4e);Be.converters["sequence"]=Be.sequenceConverter(Be.converters.RequestInfo);Yne.exports={Cache:Ux}});var Zne=g((m5t,Xne)=>{"use strict";var{kConstruct:jC}=Fx(),{Cache:qx}=Kne(),{webidl:ni}=qn(),{kEnumerableProperty:WC}=st(),Gx=class t{static{o(this,"CacheStorage")}#e=new Map;constructor(){arguments[0]!==jC&&ni.illegalConstructor(),ni.util.markAsUncloneable(this)}async match(e,r={}){if(ni.brandCheck(this,t),ni.argumentLengthCheck(arguments,1,"CacheStorage.match"),e=ni.converters.RequestInfo(e),r=ni.converters.MultiCacheQueryOptions(r),r.cacheName!=null){if(this.#e.has(r.cacheName)){let n=this.#e.get(r.cacheName);return await new qx(jC,n).match(e,r)}}else for(let n of this.#e.values()){let s=await new qx(jC,n).match(e,r);if(s!==void 0)return s}}async has(e){ni.brandCheck(this,t);let r="CacheStorage.has";return ni.argumentLengthCheck(arguments,1,r),e=ni.converters.DOMString(e,r,"cacheName"),this.#e.has(e)}async open(e){ni.brandCheck(this,t);let r="CacheStorage.open";if(ni.argumentLengthCheck(arguments,1,r),e=ni.converters.DOMString(e,r,"cacheName"),this.#e.has(e)){let i=this.#e.get(e);return new qx(jC,i)}let n=[];return this.#e.set(e,n),new qx(jC,n)}async delete(e){ni.brandCheck(this,t);let r="CacheStorage.delete";return ni.argumentLengthCheck(arguments,1,r),e=ni.converters.DOMString(e,r,"cacheName"),this.#e.delete(e)}async keys(){return ni.brandCheck(this,t),[...this.#e.keys()]}};Object.defineProperties(Gx.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:!0},match:WC,has:WC,open:WC,delete:WC,keys:WC});Xne.exports={CacheStorage:Gx}});var tie=g((y5t,eie)=>{"use strict";eie.exports={maxAttributeValueSize:1024,maxNameValuePairSize:4096}});var _F=g((E5t,sie)=>{"use strict";function g4e(t){for(let e=0;e=0&&r<=8||r>=10&&r<=31||r===127)return!0}return!1}o(g4e,"isCTLExcludingHtab");function vF(t){for(let e=0;e126||r===34||r===40||r===41||r===60||r===62||r===64||r===44||r===59||r===58||r===92||r===47||r===91||r===93||r===63||r===61||r===123||r===125)throw new Error("Invalid cookie name")}}o(vF,"validateCookieName");function NF(t){let e=t.length,r=0;if(t[0]==='"'){if(e===1||t[e-1]!=='"')throw new Error("Invalid cookie value");--e,++r}for(;r126||n===34||n===44||n===59||n===92)throw new Error("Invalid cookie value")}}o(NF,"validateCookieValue");function nie(t){for(let e=0;e126||r===59)throw new Error("Invalid cookie path")}}o(nie,"validateCookiePath");function rie(t){return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122}o(rie,"isLetterOrDigit");function y4e(t){if(t===" ")return;if(t.length>255)throw new Error("Invalid cookie domain");let e=0;for(let r=0;r63)throw new Error("Invalid cookie domain")}if(e===0||t.charCodeAt(t.length-1)===45)throw new Error("Invalid cookie domain")}o(y4e,"validateCookieDomain");var E4e=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],C4e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Hx=Array(61).fill(0).map((t,e)=>e.toString().padStart(2,"0"));function iie(t){return typeof t=="number"&&(t=new Date(t)),`${E4e[t.getUTCDay()]}, ${Hx[t.getUTCDate()]} ${C4e[t.getUTCMonth()]} ${t.getUTCFullYear()} ${Hx[t.getUTCHours()]}:${Hx[t.getUTCMinutes()]}:${Hx[t.getUTCSeconds()]} GMT`}o(iie,"toIMFDate");function b4e(t){if(t<0)throw new Error("Invalid cookie max-age")}o(b4e,"validateCookieMaxAge");function w4e(t){if(t.name.length===0)return null;vF(t.name),NF(t.value);let e=[`${t.name}=${t.value}`];t.name.startsWith("__Secure-")&&(t.secure=!0),t.name.startsWith("__Host-")&&(t.secure=!0,t.domain=null,t.path="/"),t.secure&&e.push("Secure"),t.httpOnly&&e.push("HttpOnly"),typeof t.maxAge=="number"&&(b4e(t.maxAge),e.push(`Max-Age=${t.maxAge}`)),t.domain&&(y4e(t.domain),e.push(`Domain=${t.domain}`)),t.path&&(nie(t.path),e.push(`Path=${t.path}`)),t.expires&&t.expires.toString()!=="Invalid Date"&&e.push(`Expires=${iie(t.expires)}`),t.sameSite&&e.push(`SameSite=${t.sameSite}`);for(let r of t.unparsed){if(!r.includes("="))throw new Error("Invalid unparsed");let[n,...i]=r.split("="),s=n.trim(),a=i.join("=");vF(s),NF(a),e.push(`${s}=${a}`)}return e.join("; ")}o(w4e,"stringify");sie.exports={isCTLExcludingHtab:g4e,validateCookieName:vF,validateCookiePath:nie,validateCookieValue:NF,toIMFDate:iie,stringify:w4e}});var aie=g((b5t,oie)=>{"use strict";var{maxNameValuePairSize:I4e,maxAttributeValueSize:S4e}=tie(),{isCTLExcludingHtab:B4e}=_F(),{collectASequenceOfCodePointsFast:zx}=Yi(),x4e=require("node:assert");function v4e(t){if(B4e(t))return null;let e="",r="",n="",i="";if(t.includes(";")){let s={position:0};e=zx(";",t,s),r=t.slice(s.position)}else e=t;if(!e.includes("="))i=e;else{let s={position:0};n=zx("=",e,s),i=e.slice(s.position+1)}return n=n.trim(),i=i.trim(),n.length+i.length>I4e?null:{name:n,value:i,...ym(r)}}o(v4e,"parseSetCookie");function ym(t,e={}){if(t.length===0)return e;x4e(t[0]===";"),t=t.slice(1);let r="";t.includes(";")?(r=zx(";",t,{position:0}),t=t.slice(r.length)):(r=t,t="");let n="",i="";if(r.includes("=")){let a={position:0};n=zx("=",r,a),i=r.slice(a.position+1)}else n=r;if(n=n.trim(),i=i.trim(),i.length>S4e)return ym(t,e);let s=n.toLowerCase();if(s==="expires"){let a=new Date(i);e.expires=a}else if(s==="max-age"){let a=i.charCodeAt(0);if((a<48||a>57)&&i[0]!=="-"||!/^\d+$/.test(i))return ym(t,e);let c=Number(i);e.maxAge=c}else if(s==="domain"){let a=i;a[0]==="."&&(a=a.slice(1)),a=a.toLowerCase(),e.domain=a}else if(s==="path"){let a="";i.length===0||i[0]!=="/"?a="/":a=i,e.path=a}else if(s==="secure")e.secure=!0;else if(s==="httponly")e.httpOnly=!0;else if(s==="samesite"){let a=i.toLowerCase();a==="none"?e.sameSite="None":a==="strict"?e.sameSite="Strict":a==="lax"&&(e.sameSite="Lax")}else e.unparsed??=[],e.unparsed.push(`${n}=${i}`);return ym(t,e)}o(ym,"parseUnparsedAttributes");oie.exports={parseSetCookie:v4e,parseUnparsedAttributes:ym}});var uie=g((I5t,lie)=>{"use strict";var{parseSetCookie:N4e}=aie(),{stringify:_4e}=_F(),{webidl:ft}=qn(),{Headers:Vx}=dh();function R4e(t){ft.argumentLengthCheck(arguments,1,"getCookies"),ft.brandCheck(t,Vx,{strict:!1});let e=t.get("cookie"),r={};if(!e)return r;for(let n of e.split(";")){let[i,...s]=n.split("=");r[i.trim()]=s.join("=")}return r}o(R4e,"getCookies");function T4e(t,e,r){ft.brandCheck(t,Vx,{strict:!1});let n="deleteCookie";ft.argumentLengthCheck(arguments,2,n),e=ft.converters.DOMString(e,n,"name"),r=ft.converters.DeleteCookieAttributes(r),cie(t,{name:e,value:"",expires:new Date(0),...r})}o(T4e,"deleteCookie");function D4e(t){ft.argumentLengthCheck(arguments,1,"getSetCookies"),ft.brandCheck(t,Vx,{strict:!1});let e=t.getSetCookie();return e?e.map(r=>N4e(r)):[]}o(D4e,"getSetCookies");function cie(t,e){ft.argumentLengthCheck(arguments,2,"setCookie"),ft.brandCheck(t,Vx,{strict:!1}),e=ft.converters.Cookie(e);let r=_4e(e);r&&t.append("Set-Cookie",r)}o(cie,"setCookie");ft.converters.DeleteCookieAttributes=ft.dictionaryConverter([{converter:ft.nullableConverter(ft.converters.DOMString),key:"path",defaultValue:o(()=>null,"defaultValue")},{converter:ft.nullableConverter(ft.converters.DOMString),key:"domain",defaultValue:o(()=>null,"defaultValue")}]);ft.converters.Cookie=ft.dictionaryConverter([{converter:ft.converters.DOMString,key:"name"},{converter:ft.converters.DOMString,key:"value"},{converter:ft.nullableConverter(t=>typeof t=="number"?ft.converters["unsigned long long"](t):new Date(t)),key:"expires",defaultValue:o(()=>null,"defaultValue")},{converter:ft.nullableConverter(ft.converters["long long"]),key:"maxAge",defaultValue:o(()=>null,"defaultValue")},{converter:ft.nullableConverter(ft.converters.DOMString),key:"domain",defaultValue:o(()=>null,"defaultValue")},{converter:ft.nullableConverter(ft.converters.DOMString),key:"path",defaultValue:o(()=>null,"defaultValue")},{converter:ft.nullableConverter(ft.converters.boolean),key:"secure",defaultValue:o(()=>null,"defaultValue")},{converter:ft.nullableConverter(ft.converters.boolean),key:"httpOnly",defaultValue:o(()=>null,"defaultValue")},{converter:ft.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:ft.sequenceConverter(ft.converters.DOMString),key:"unparsed",defaultValue:o(()=>new Array(0),"defaultValue")}]);lie.exports={getCookies:R4e,deleteCookie:T4e,getSetCookies:D4e,setCookie:cie}});var Cm=g((B5t,fie)=>{"use strict";var{webidl:we}=qn(),{kEnumerableProperty:es}=st(),{kConstruct:die}=cr(),{MessagePort:Q4e}=require("node:worker_threads"),Em=class t extends Event{static{o(this,"MessageEvent")}#e;constructor(e,r={}){if(e===die){super(arguments[1],arguments[2]),we.util.markAsUncloneable(this);return}let n="MessageEvent constructor";we.argumentLengthCheck(arguments,1,n),e=we.converters.DOMString(e,n,"type"),r=we.converters.MessageEventInit(r,n,"eventInitDict"),super(e,r),this.#e=r,we.util.markAsUncloneable(this)}get data(){return we.brandCheck(this,t),this.#e.data}get origin(){return we.brandCheck(this,t),this.#e.origin}get lastEventId(){return we.brandCheck(this,t),this.#e.lastEventId}get source(){return we.brandCheck(this,t),this.#e.source}get ports(){return we.brandCheck(this,t),Object.isFrozen(this.#e.ports)||Object.freeze(this.#e.ports),this.#e.ports}initMessageEvent(e,r=!1,n=!1,i=null,s="",a="",c=null,l=[]){return we.brandCheck(this,t),we.argumentLengthCheck(arguments,1,"MessageEvent.initMessageEvent"),new t(e,{bubbles:r,cancelable:n,data:i,origin:s,lastEventId:a,source:c,ports:l})}static createFastMessageEvent(e,r){let n=new t(die,e,r);return n.#e=r,n.#e.data??=null,n.#e.origin??="",n.#e.lastEventId??="",n.#e.source??=null,n.#e.ports??=[],n}},{createFastMessageEvent:k4e}=Em;delete Em.createFastMessageEvent;var $x=class t extends Event{static{o(this,"CloseEvent")}#e;constructor(e,r={}){let n="CloseEvent constructor";we.argumentLengthCheck(arguments,1,n),e=we.converters.DOMString(e,n,"type"),r=we.converters.CloseEventInit(r),super(e,r),this.#e=r,we.util.markAsUncloneable(this)}get wasClean(){return we.brandCheck(this,t),this.#e.wasClean}get code(){return we.brandCheck(this,t),this.#e.code}get reason(){return we.brandCheck(this,t),this.#e.reason}},jx=class t extends Event{static{o(this,"ErrorEvent")}#e;constructor(e,r){let n="ErrorEvent constructor";we.argumentLengthCheck(arguments,1,n),super(e,r),we.util.markAsUncloneable(this),e=we.converters.DOMString(e,n,"type"),r=we.converters.ErrorEventInit(r??{}),this.#e=r}get message(){return we.brandCheck(this,t),this.#e.message}get filename(){return we.brandCheck(this,t),this.#e.filename}get lineno(){return we.brandCheck(this,t),this.#e.lineno}get colno(){return we.brandCheck(this,t),this.#e.colno}get error(){return we.brandCheck(this,t),this.#e.error}};Object.defineProperties(Em.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:!0},data:es,origin:es,lastEventId:es,source:es,ports:es,initMessageEvent:es});Object.defineProperties($x.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:!0},reason:es,code:es,wasClean:es});Object.defineProperties(jx.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:!0},message:es,filename:es,lineno:es,colno:es,error:es});we.converters.MessagePort=we.interfaceConverter(Q4e);we.converters["sequence"]=we.sequenceConverter(we.converters.MessagePort);var RF=[{key:"bubbles",converter:we.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"cancelable",converter:we.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"composed",converter:we.converters.boolean,defaultValue:o(()=>!1,"defaultValue")}];we.converters.MessageEventInit=we.dictionaryConverter([...RF,{key:"data",converter:we.converters.any,defaultValue:o(()=>null,"defaultValue")},{key:"origin",converter:we.converters.USVString,defaultValue:o(()=>"","defaultValue")},{key:"lastEventId",converter:we.converters.DOMString,defaultValue:o(()=>"","defaultValue")},{key:"source",converter:we.nullableConverter(we.converters.MessagePort),defaultValue:o(()=>null,"defaultValue")},{key:"ports",converter:we.converters["sequence"],defaultValue:o(()=>new Array(0),"defaultValue")}]);we.converters.CloseEventInit=we.dictionaryConverter([...RF,{key:"wasClean",converter:we.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"code",converter:we.converters["unsigned short"],defaultValue:o(()=>0,"defaultValue")},{key:"reason",converter:we.converters.USVString,defaultValue:o(()=>"","defaultValue")}]);we.converters.ErrorEventInit=we.dictionaryConverter([...RF,{key:"message",converter:we.converters.DOMString,defaultValue:o(()=>"","defaultValue")},{key:"filename",converter:we.converters.USVString,defaultValue:o(()=>"","defaultValue")},{key:"lineno",converter:we.converters["unsigned long"],defaultValue:o(()=>0,"defaultValue")},{key:"colno",converter:we.converters["unsigned long"],defaultValue:o(()=>0,"defaultValue")},{key:"error",converter:we.converters.any}]);fie.exports={MessageEvent:Em,CloseEvent:$x,ErrorEvent:jx,createFastMessageEvent:k4e}});var gh=g((v5t,hie)=>{"use strict";var P4e="258EAFA5-E914-47DA-95CA-C5AB0DC85B11",O4e={enumerable:!0,writable:!1,configurable:!1},L4e={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},F4e={NOT_SENT:0,PROCESSING:1,SENT:2},M4e={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10},U4e=2**16-1,q4e={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4},G4e=Buffer.allocUnsafe(0),H4e={string:1,typedArray:2,arrayBuffer:3,blob:4};hie.exports={uid:P4e,sentCloseFrameState:F4e,staticPropertyDescriptors:O4e,states:L4e,opcodes:M4e,maxUnsigned16Bit:U4e,parserStates:q4e,emptyBuffer:G4e,sendHints:H4e}});var JC=g((N5t,pie)=>{"use strict";pie.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}});var XC=g((_5t,Iie)=>{"use strict";var{kReadyState:YC,kController:z4e,kResponse:V4e,kBinaryType:$4e,kWebSocketURL:j4e}=JC(),{states:KC,opcodes:gd}=gh(),{ErrorEvent:W4e,createFastMessageEvent:J4e}=Cm(),{isUtf8:Y4e}=require("node:buffer"),{collectASequenceOfCodePointsFast:K4e,removeHTTPWhitespace:Aie}=Yi();function X4e(t){return t[YC]===KC.CONNECTING}o(X4e,"isConnecting");function Z4e(t){return t[YC]===KC.OPEN}o(Z4e,"isEstablished");function e$e(t){return t[YC]===KC.CLOSING}o(e$e,"isClosing");function t$e(t){return t[YC]===KC.CLOSED}o(t$e,"isClosed");function TF(t,e,r=(i,s)=>new Event(i,s),n={}){let i=r(t,n);e.dispatchEvent(i)}o(TF,"fireEvent");function r$e(t,e,r){if(t[YC]!==KC.OPEN)return;let n;if(e===gd.TEXT)try{n=wie(r)}catch{gie(t,"Received invalid UTF-8 in text frame.");return}else e===gd.BINARY&&(t[$4e]==="blob"?n=new Blob([r]):n=n$e(r));TF("message",t,J4e,{origin:t[j4e].origin,data:n})}o(r$e,"websocketMessageReceived");function n$e(t){return t.byteLength===t.buffer.byteLength?t.buffer:t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}o(n$e,"toArrayBuffer");function i$e(t){if(t.length===0)return!1;for(let e=0;e126||r===34||r===40||r===41||r===44||r===47||r===58||r===59||r===60||r===61||r===62||r===63||r===64||r===91||r===92||r===93||r===123||r===125)return!1}return!0}o(i$e,"isValidSubprotocol");function s$e(t){return t>=1e3&&t<1015?t!==1004&&t!==1005&&t!==1006:t>=3e3&&t<=4999}o(s$e,"isValidStatusCode");function gie(t,e){let{[z4e]:r,[V4e]:n}=t;r.abort(),n?.socket&&!n.socket.destroyed&&n.socket.destroy(),e&&TF("error",t,(i,s)=>new W4e(i,s),{error:new Error(e),message:e})}o(gie,"failWebsocketConnection");function yie(t){return t===gd.CLOSE||t===gd.PING||t===gd.PONG}o(yie,"isControlFrame");function Eie(t){return t===gd.CONTINUATION}o(Eie,"isContinuationFrame");function Cie(t){return t===gd.TEXT||t===gd.BINARY}o(Cie,"isTextBinaryFrame");function o$e(t){return Cie(t)||Eie(t)||yie(t)}o(o$e,"isValidOpcode");function a$e(t){let e={position:0},r=new Map;for(;e.position57)return!1}let e=Number.parseInt(t,10);return e>=8&&e<=15}o(c$e,"isValidClientWindowBits");var bie=typeof process.versions.icu=="string",mie=bie?new TextDecoder("utf-8",{fatal:!0}):void 0,wie=bie?mie.decode.bind(mie):function(t){if(Y4e(t))return t.toString("utf-8");throw new TypeError("Invalid utf-8 received.")};Iie.exports={isConnecting:X4e,isEstablished:Z4e,isClosing:e$e,isClosed:t$e,fireEvent:TF,isValidSubprotocol:i$e,isValidStatusCode:s$e,failWebsocketConnection:gie,websocketMessageReceived:r$e,utf8Decode:wie,isControlFrame:yie,isContinuationFrame:Eie,isTextBinaryFrame:Cie,isValidOpcode:o$e,parseExtensions:a$e,isValidClientWindowBits:c$e}});var Jx=g((T5t,Sie)=>{"use strict";var{maxUnsigned16Bit:l$e}=gh(),Wx=16386,DF,ZC=null,bm=Wx;try{DF=require("node:crypto")}catch{DF={randomFillSync:o(function(e,r,n){for(let i=0;il$e?(a+=8,s=127):i>125&&(a+=2,s=126);let c=Buffer.allocUnsafe(i+a);c[0]=c[1]=0,c[0]|=128,c[0]=(c[0]&240)+e;c[a-4]=n[0],c[a-3]=n[1],c[a-2]=n[2],c[a-1]=n[3],c[1]=s,s===126?c.writeUInt16BE(i,2):s===127&&(c[2]=c[3]=0,c.writeUIntBE(i,4,6)),c[1]|=128;for(let l=0;l{"use strict";var{uid:d$e,states:eb,sentCloseFrameState:Yx,emptyBuffer:f$e,opcodes:h$e}=gh(),{kReadyState:tb,kSentClose:Kx,kByteParser:xie,kReceivedClose:Bie,kResponse:vie}=JC(),{fireEvent:p$e,failWebsocketConnection:yd,isClosing:A$e,isClosed:m$e,isEstablished:g$e,parseExtensions:y$e}=XC(),{channels:wm}=QA(),{CloseEvent:E$e}=Cm(),{makeRequest:C$e}=pm(),{fetching:b$e}=VC(),{Headers:w$e,getHeadersList:I$e}=dh(),{getDecodeSplit:S$e}=xs(),{WebsocketFrameSend:B$e}=Jx(),kF;try{kF=require("node:crypto")}catch{}function x$e(t,e,r,n,i,s){let a=t;a.protocol=t.protocol==="ws:"?"http:":"https:";let c=C$e({urlList:[a],client:r,serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(s.headers){let f=I$e(new w$e(s.headers));c.headersList=f}let l=kF.randomBytes(16).toString("base64");c.headersList.append("sec-websocket-key",l),c.headersList.append("sec-websocket-version","13");for(let f of e)c.headersList.append("sec-websocket-protocol",f);return c.headersList.append("sec-websocket-extensions","permessage-deflate; client_max_window_bits"),b$e({request:c,useParallelQueue:!0,dispatcher:s.dispatcher,processResponse(f){if(f.type==="error"||f.status!==101){yd(n,"Received network error or non-101 status code.");return}if(e.length!==0&&!f.headersList.get("Sec-WebSocket-Protocol")){yd(n,"Server did not respond with sent protocols.");return}if(f.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){yd(n,'Server did not set Upgrade header to "websocket".');return}if(f.headersList.get("Connection")?.toLowerCase()!=="upgrade"){yd(n,'Server did not set Connection header to "upgrade".');return}let h=f.headersList.get("Sec-WebSocket-Accept"),p=kF.createHash("sha1").update(l+d$e).digest("base64");if(h!==p){yd(n,"Incorrect hash received in Sec-WebSocket-Accept header.");return}let m=f.headersList.get("Sec-WebSocket-Extensions"),A;if(m!==null&&(A=y$e(m),!A.has("permessage-deflate"))){yd(n,"Sec-WebSocket-Extensions header does not match.");return}let E=f.headersList.get("Sec-WebSocket-Protocol");if(E!==null){let y=S$e("sec-websocket-protocol",c.headersList);if(y===null||!y.includes(E)){yd(n,"Protocol was not set in the opening handshake.");return}}f.socket.on("data",Nie),f.socket.on("close",_ie),f.socket.on("error",Rie),wm.open.hasSubscribers&&wm.open.publish({address:f.socket.address(),protocol:E,extensions:m}),i(f,A)}})}o(x$e,"establishWebSocketConnection");function v$e(t,e,r,n){if(!(A$e(t)||m$e(t)))if(!g$e(t))yd(t,"Connection was closed before it was established."),t[tb]=eb.CLOSING;else if(t[Kx]===Yx.NOT_SENT){t[Kx]=Yx.PROCESSING;let i=new B$e;e!==void 0&&r===void 0?(i.frameData=Buffer.allocUnsafe(2),i.frameData.writeUInt16BE(e,0)):e!==void 0&&r!==void 0?(i.frameData=Buffer.allocUnsafe(2+n),i.frameData.writeUInt16BE(e,0),i.frameData.write(r,2,"utf-8")):i.frameData=f$e,t[vie].socket.write(i.createFrame(h$e.CLOSE)),t[Kx]=Yx.SENT,t[tb]=eb.CLOSING}else t[tb]=eb.CLOSING}o(v$e,"closeWebSocketConnection");function Nie(t){this.ws[xie].write(t)||this.pause()}o(Nie,"onSocketData");function _ie(){let{ws:t}=this,{[vie]:e}=t;e.socket.off("data",Nie),e.socket.off("close",_ie),e.socket.off("error",Rie);let r=t[Kx]===Yx.SENT&&t[Bie],n=1005,i="",s=t[xie].closingInfo;s&&!s.error?(n=s.code??1005,i=s.reason):t[Bie]||(n=1006),t[tb]=eb.CLOSED,p$e("close",t,(a,c)=>new E$e(a,c),{wasClean:r,code:n,reason:i}),wm.close.hasSubscribers&&wm.close.publish({websocket:t,code:n,reason:i})}o(_ie,"onSocketClose");function Rie(t){let{ws:e}=this;e[tb]=eb.CLOSING,wm.socketError.hasSubscribers&&wm.socketError.publish(t),this.destroy()}o(Rie,"onSocketError");Tie.exports={establishWebSocketConnection:x$e,closeWebSocketConnection:v$e}});var Qie=g((P5t,Die)=>{"use strict";var{createInflateRaw:N$e,Z_DEFAULT_WINDOWBITS:_$e}=require("node:zlib"),{isValidClientWindowBits:R$e}=XC(),{MessageSizeExceededError:T$e}=xt(),D$e=Buffer.from([0,0,255,255]),Xx=Symbol("kBuffer"),rb=Symbol("kLength"),OF=class{static{o(this,"PerMessageDeflate")}#e;#r={};#n=0;constructor(e,r){this.#r.serverNoContextTakeover=e.has("server_no_context_takeover"),this.#r.serverMaxWindowBits=e.get("server_max_window_bits"),this.#n=r.maxPayloadSize}decompress(e,r,n){if(!this.#e){let i=_$e;if(this.#r.serverMaxWindowBits){if(!R$e(this.#r.serverMaxWindowBits)){n(new Error("Invalid server_max_window_bits"));return}i=Number.parseInt(this.#r.serverMaxWindowBits)}try{this.#e=N$e({windowBits:i})}catch(s){n(s);return}this.#e[Xx]=[],this.#e[rb]=0,this.#e.on("data",s=>{if(this.#e[rb]+=s.length,this.#n>0&&this.#e[rb]>this.#n){n(new T$e),this.#e.removeAllListeners(),this.#e.destroy(),this.#e=null;return}this.#e[Xx].push(s)}),this.#e.on("error",s=>{this.#e=null,n(s)})}this.#e.write(e),r&&this.#e.write(D$e),this.#e.flush(()=>{if(!this.#e)return;let i=Buffer.concat(this.#e[Xx],this.#e[rb]);this.#e[Xx].length=0,this.#e[rb]=0,n(null,i)})}};Die.exports={PerMessageDeflate:OF}});var Hie=g((L5t,Gie)=>{"use strict";var{Writable:Q$e}=require("node:stream"),k$e=require("node:assert"),{parserStates:ts,opcodes:Im,states:P$e,emptyBuffer:kie,sentCloseFrameState:Pie}=gh(),{kReadyState:O$e,kSentClose:Oie,kResponse:Lie,kReceivedClose:Fie}=JC(),{channels:Zx}=QA(),{isValidStatusCode:L$e,isValidOpcode:F$e,failWebsocketConnection:ks,websocketMessageReceived:Mie,utf8Decode:M$e,isControlFrame:LF,isTextBinaryFrame:FF,isContinuationFrame:U$e}=XC(),{WebsocketFrameSend:Uie}=Jx(),{closeWebSocketConnection:qie}=PF(),{PerMessageDeflate:q$e}=Qie(),{MessageSizeExceededError:MF}=xt();function nb(t,e,r){qie(t,e,r,Buffer.byteLength(r)),ks(t,r)}o(nb,"failWebsocketConnectionWithCode");var UF=class extends Q$e{static{o(this,"ByteParser")}#e=[];#r=0;#n=0;#t=!1;#i=ts.INFO;#s={};#l=[];#a;#c;#o;constructor(e,r,n={}){super(),this.ws=e,this.#a=r??new Map,this.#c=n.maxFragments??0,this.#o=n.maxPayloadSize??0,this.#a.has("permessage-deflate")&&this.#a.set("permessage-deflate",new q$e(r,n))}_write(e,r,n){this.#e.push(e),this.#n+=e.length,this.#t=!0,this.run(n)}#f(){return this.#o>0&&!LF(this.#s.opcode)&&this.#s.payloadLength+this.#r>this.#o?(nb(this.ws,1009,"Payload size exceeds maximum allowed size"),!1):!0}run(e){for(;this.#t;)if(this.#i===ts.INFO){if(this.#n<2)return e();let r=this.consume(2),n=(r[0]&128)!==0,i=r[0]&15,s=(r[1]&128)===128,a=!n&&i!==Im.CONTINUATION,c=r[1]&127,l=r[0]&64,u=r[0]&32,d=r[0]&16;if(!F$e(i))return ks(this.ws,"Invalid opcode received"),e();if(s)return ks(this.ws,"Frame cannot be masked"),e();if(l!==0&&!this.#a.has("permessage-deflate")){ks(this.ws,"Expected RSV1 to be clear.");return}if(u!==0||d!==0){ks(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(a&&!FF(i)){ks(this.ws,"Invalid frame type was fragmented.");return}if(FF(i)&&this.#l.length>0){ks(this.ws,"Expected continuation frame");return}if(this.#s.fragmented&&a){ks(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((c>125||a)&&LF(i)){ks(this.ws,"Control frame either too large or fragmented");return}if(U$e(i)&&this.#l.length===0&&!this.#s.compressed){ks(this.ws,"Unexpected continuation frame");return}if(c<=125){if(this.#s.payloadLength=c,this.#i=ts.READ_DATA,!this.#f())return}else c===126?this.#i=ts.PAYLOADLENGTH_16:c===127&&(this.#i=ts.PAYLOADLENGTH_64);FF(i)&&(this.#s.binaryType=i,this.#s.compressed=l!==0),this.#s.opcode=i,this.#s.masked=s,this.#s.fin=n,this.#s.fragmented=a}else if(this.#i===ts.PAYLOADLENGTH_16){if(this.#n<2)return e();let r=this.consume(2);if(this.#s.payloadLength=r.readUInt16BE(0),this.#i=ts.READ_DATA,!this.#f())return}else if(this.#i===ts.PAYLOADLENGTH_64){if(this.#n<8)return e();let r=this.consume(8),n=r.readUInt32BE(0),i=r.readUInt32BE(4);if(n!==0||i>2**31-1){ks(this.ws,"Received payload length > 2^31 bytes.");return}if(this.#s.payloadLength=i,this.#i=ts.READ_DATA,!this.#f())return}else if(this.#i===ts.READ_DATA){if(this.#n{if(n){let s=n instanceof MF?1009:1007;nb(this.ws,s,n.message);return}if(this.writeFragments(i)){if(this.#o>0&&this.#r>this.#o){nb(this.ws,1009,new MF().message);return}if(!this.#s.fin){this.#i=ts.INFO,this.#t=!0,this.run(e);return}Mie(this.ws,this.#s.binaryType,this.consumeFragments()),this.#t=!0,this.#i=ts.INFO,this.run(e)}}),this.#t=!1;break}else{if(!this.writeFragments(r))return;if(this.#o>0&&this.#r>this.#o){nb(this.ws,1009,new MF().message);return}!this.#s.fragmented&&this.#s.fin&&Mie(this.ws,this.#s.binaryType,this.consumeFragments()),this.#i=ts.INFO}}}consume(e){if(e>this.#n)throw new Error("Called consume() before buffers satiated.");if(e===0)return kie;if(this.#e[0].length===e)return this.#n-=this.#e[0].length,this.#e.shift();let r=Buffer.allocUnsafe(e),n=0;for(;n!==e;){let i=this.#e[0],{length:s}=i;if(s+n===e){r.set(this.#e.shift(),n);break}else if(s+n>e){r.set(i.subarray(0,e-n),n),this.#e[0]=i.subarray(e-n);break}else r.set(this.#e.shift(),n),n+=i.length}return this.#n-=e,r}writeFragments(e){return this.#c>0&&this.#l.length===this.#c?(nb(this.ws,1008,"Too many message fragments"),!1):(this.#r+=e.length,this.#l.push(e),!0)}consumeFragments(){let e=this.#l;if(e.length===1)return this.#r=0,e.shift();let r=Buffer.concat(e,this.#r);return this.#l=[],this.#r=0,r}parseCloseBody(e){k$e(e.length!==1);let r;if(e.length>=2&&(r=e.readUInt16BE(0)),r!==void 0&&!L$e(r))return{code:1002,reason:"Invalid status code",error:!0};let n=e.subarray(2);n[0]===239&&n[1]===187&&n[2]===191&&(n=n.subarray(3));try{n=M$e(n)}catch{return{code:1007,reason:"Invalid UTF-8",error:!0}}return{code:r,reason:n,error:!1}}parseControlFrame(e){let{opcode:r,payloadLength:n}=this.#s;if(r===Im.CLOSE){if(n===1)return ks(this.ws,"Received close frame with a 1-byte body."),!1;if(this.#s.closeInfo=this.parseCloseBody(e),this.#s.closeInfo.error){let{code:i,reason:s}=this.#s.closeInfo;return qie(this.ws,i,s,s.length),ks(this.ws,s),!1}if(this.ws[Oie]!==Pie.SENT){let i=kie;this.#s.closeInfo.code&&(i=Buffer.allocUnsafe(2),i.writeUInt16BE(this.#s.closeInfo.code,0));let s=new Uie(i);this.ws[Lie].socket.write(s.createFrame(Im.CLOSE),a=>{a||(this.ws[Oie]=Pie.SENT)})}return this.ws[O$e]=P$e.CLOSING,this.ws[Fie]=!0,!1}else if(r===Im.PING){if(!this.ws[Fie]){let i=new Uie(e);this.ws[Lie].socket.write(i.createFrame(Im.PONG)),Zx.ping.hasSubscribers&&Zx.ping.publish({payload:e})}}else r===Im.PONG&&Zx.pong.hasSubscribers&&Zx.pong.publish({payload:e});return!0}get closingInfo(){return this.#s.closeInfo}};Gie.exports={ByteParser:UF}});var Wie=g((M5t,jie)=>{"use strict";var{WebsocketFrameSend:G$e}=Jx(),{opcodes:zie,sendHints:Sm}=gh(),H$e=$O(),Vie=Buffer[Symbol.species],qF=class{static{o(this,"SendQueue")}#e=new H$e;#r=!1;#n;constructor(e){this.#n=e}add(e,r,n){if(n!==Sm.blob){let s=$ie(e,n);if(!this.#r)this.#n.write(s,r);else{let a={promise:null,callback:r,frame:s};this.#e.push(a)}return}let i={promise:e.arrayBuffer().then(s=>{i.promise=null,i.frame=$ie(s,n)}),callback:r,frame:null};this.#e.push(i),this.#r||this.#t()}async#t(){this.#r=!0;let e=this.#e;for(;!e.isEmpty();){let r=e.shift();r.promise!==null&&await r.promise,this.#n.write(r.frame,r.callback),r.callback=r.frame=null}this.#r=!1}};function $ie(t,e){return new G$e(z$e(t,e)).createFrame(e===Sm.string?zie.TEXT:zie.BINARY)}o($ie,"createFrame");function z$e(t,e){switch(e){case Sm.string:return Buffer.from(t);case Sm.arrayBuffer:case Sm.blob:return new Vie(t);case Sm.typedArray:return new Vie(t.buffer,t.byteOffset,t.byteLength)}}o(z$e,"toBuffer");jie.exports={SendQueue:qF}});var ise=g((q5t,nse)=>{"use strict";var{webidl:Ue}=qn(),{URLSerializer:V$e}=Yi(),{environmentSettingsObject:Jie}=xs(),{staticPropertyDescriptors:Ed,states:ib,sentCloseFrameState:$$e,sendHints:ev}=gh(),{kWebSocketURL:Yie,kReadyState:GF,kController:Kie,kBinaryType:tv,kResponse:Xie,kSentClose:j$e,kByteParser:W$e}=JC(),{isConnecting:J$e,isEstablished:Y$e,isClosing:K$e,isValidSubprotocol:X$e,fireEvent:Zie}=XC(),{establishWebSocketConnection:Z$e,closeWebSocketConnection:ese}=PF(),{ByteParser:e8e}=Hie(),{kEnumerableProperty:go,isBlobLike:tse}=st(),{getGlobalDispatcher:t8e}=mx(),{types:rse}=require("node:util"),{ErrorEvent:r8e,CloseEvent:n8e}=Cm(),{SendQueue:i8e}=Wie(),Ps=class t extends EventTarget{static{o(this,"WebSocket")}#e={open:null,error:null,close:null,message:null};#r=0;#n="";#t="";#i;constructor(e,r=[]){super(),Ue.util.markAsUncloneable(this);let n="WebSocket constructor";Ue.argumentLengthCheck(arguments,1,n);let i=Ue.converters["DOMString or sequence or WebSocketInit"](r,n,"options");e=Ue.converters.USVString(e,n,"url"),r=i.protocols;let s=Jie.settingsObject.baseUrl,a;try{a=new URL(e,s)}catch(l){throw new DOMException(l,"SyntaxError")}if(a.protocol==="http:"?a.protocol="ws:":a.protocol==="https:"&&(a.protocol="wss:"),a.protocol!=="ws:"&&a.protocol!=="wss:")throw new DOMException(`Expected a ws: or wss: protocol, got ${a.protocol}`,"SyntaxError");if(a.hash||a.href.endsWith("#"))throw new DOMException("Got fragment","SyntaxError");if(typeof r=="string"&&(r=[r]),r.length!==new Set(r.map(l=>l.toLowerCase())).size)throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError");if(r.length>0&&!r.every(l=>X$e(l)))throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError");this[Yie]=new URL(a.href);let c=Jie.settingsObject;this[Kie]=Z$e(a,r,c,this,(l,u)=>this.#s(l,u),i),this[GF]=t.CONNECTING,this[j$e]=$$e.NOT_SENT,this[tv]="blob"}close(e=void 0,r=void 0){Ue.brandCheck(this,t);let n="WebSocket.close";if(e!==void 0&&(e=Ue.converters["unsigned short"](e,n,"code",{clamp:!0})),r!==void 0&&(r=Ue.converters.USVString(r,n,"reason")),e!==void 0&&e!==1e3&&(e<3e3||e>4999))throw new DOMException("invalid code","InvalidAccessError");let i=0;if(r!==void 0&&(i=Buffer.byteLength(r),i>123))throw new DOMException(`Reason must be less than 123 bytes; received ${i}`,"SyntaxError");ese(this,e,r,i)}send(e){Ue.brandCheck(this,t);let r="WebSocket.send";if(Ue.argumentLengthCheck(arguments,1,r),e=Ue.converters.WebSocketSendData(e,r,"data"),J$e(this))throw new DOMException("Sent before connected.","InvalidStateError");if(!(!Y$e(this)||K$e(this)))if(typeof e=="string"){let n=Buffer.byteLength(e);this.#r+=n,this.#i.add(e,()=>{this.#r-=n},ev.string)}else rse.isArrayBuffer(e)?(this.#r+=e.byteLength,this.#i.add(e,()=>{this.#r-=e.byteLength},ev.arrayBuffer)):ArrayBuffer.isView(e)?(this.#r+=e.byteLength,this.#i.add(e,()=>{this.#r-=e.byteLength},ev.typedArray)):tse(e)&&(this.#r+=e.size,this.#i.add(e,()=>{this.#r-=e.size},ev.blob))}get readyState(){return Ue.brandCheck(this,t),this[GF]}get bufferedAmount(){return Ue.brandCheck(this,t),this.#r}get url(){return Ue.brandCheck(this,t),V$e(this[Yie])}get extensions(){return Ue.brandCheck(this,t),this.#t}get protocol(){return Ue.brandCheck(this,t),this.#n}get onopen(){return Ue.brandCheck(this,t),this.#e.open}set onopen(e){Ue.brandCheck(this,t),this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onerror(){return Ue.brandCheck(this,t),this.#e.error}set onerror(e){Ue.brandCheck(this,t),this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}get onclose(){return Ue.brandCheck(this,t),this.#e.close}set onclose(e){Ue.brandCheck(this,t),this.#e.close&&this.removeEventListener("close",this.#e.close),typeof e=="function"?(this.#e.close=e,this.addEventListener("close",e)):this.#e.close=null}get onmessage(){return Ue.brandCheck(this,t),this.#e.message}set onmessage(e){Ue.brandCheck(this,t),this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get binaryType(){return Ue.brandCheck(this,t),this[tv]}set binaryType(e){Ue.brandCheck(this,t),e!=="blob"&&e!=="arraybuffer"?this[tv]="blob":this[tv]=e}#s(e,r){this[Xie]=e;let n=this[Kie]?.dispatcher?.webSocketOptions,i=n?.maxFragments,s=n?.maxPayloadSize,a=new e8e(this,r,{maxFragments:i,maxPayloadSize:s});a.on("drain",s8e),a.on("error",o8e.bind(this)),e.socket.ws=this,this[W$e]=a,this.#i=new i8e(e.socket),this[GF]=ib.OPEN;let c=e.headersList.get("sec-websocket-extensions");c!==null&&(this.#t=c);let l=e.headersList.get("sec-websocket-protocol");l!==null&&(this.#n=l),Zie("open",this)}};Ps.CONNECTING=Ps.prototype.CONNECTING=ib.CONNECTING;Ps.OPEN=Ps.prototype.OPEN=ib.OPEN;Ps.CLOSING=Ps.prototype.CLOSING=ib.CLOSING;Ps.CLOSED=Ps.prototype.CLOSED=ib.CLOSED;Object.defineProperties(Ps.prototype,{CONNECTING:Ed,OPEN:Ed,CLOSING:Ed,CLOSED:Ed,url:go,readyState:go,bufferedAmount:go,onopen:go,onerror:go,onclose:go,close:go,onmessage:go,binaryType:go,send:go,extensions:go,protocol:go,[Symbol.toStringTag]:{value:"WebSocket",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(Ps,{CONNECTING:Ed,OPEN:Ed,CLOSING:Ed,CLOSED:Ed});Ue.converters["sequence"]=Ue.sequenceConverter(Ue.converters.DOMString);Ue.converters["DOMString or sequence"]=function(t,e,r){return Ue.util.Type(t)==="Object"&&Symbol.iterator in t?Ue.converters["sequence"](t):Ue.converters.DOMString(t,e,r)};Ue.converters.WebSocketInit=Ue.dictionaryConverter([{key:"protocols",converter:Ue.converters["DOMString or sequence"],defaultValue:o(()=>new Array(0),"defaultValue")},{key:"dispatcher",converter:Ue.converters.any,defaultValue:o(()=>t8e(),"defaultValue")},{key:"headers",converter:Ue.nullableConverter(Ue.converters.HeadersInit)}]);Ue.converters["DOMString or sequence or WebSocketInit"]=function(t){return Ue.util.Type(t)==="Object"&&!(Symbol.iterator in t)?Ue.converters.WebSocketInit(t):{protocols:Ue.converters["DOMString or sequence"](t)}};Ue.converters.WebSocketSendData=function(t){if(Ue.util.Type(t)==="Object"){if(tse(t))return Ue.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||rse.isArrayBuffer(t))return Ue.converters.BufferSource(t)}return Ue.converters.USVString(t)};function s8e(){this.ws[Xie].socket.resume()}o(s8e,"onParserDrain");function o8e(t){let e,r;t instanceof n8e?(e=t.reason,r=t.code):e=t.message,Zie("error",this,()=>new r8e("error",{error:t,message:e})),ese(this,r)}o(o8e,"onParserError");nse.exports={WebSocket:Ps}});var HF=g((H5t,sse)=>{"use strict";function a8e(t){return t.indexOf("\0")===-1}o(a8e,"isValidLastEventId");function c8e(t){if(t.length===0)return!1;for(let e=0;e57)return!1;return!0}o(c8e,"isASCIINumber");function l8e(t){return new Promise(e=>{setTimeout(e,t).unref()})}o(l8e,"delay");sse.exports={isValidLastEventId:a8e,isASCIINumber:c8e,delay:l8e}});var ase=g((V5t,ose)=>{"use strict";var{Transform:u8e}=require("node:stream"),{isASCIINumber:d8e,isValidLastEventId:f8e}=HF(),Bm=[239,187,191],zF=10,rv=13,h8e=58,p8e=32,A8e=Buffer.from("data"),m8e=Buffer.from("event"),g8e=Buffer.from("id"),y8e=Buffer.from("retry");function E8e(t,e){if(e>=t.length)return!1;for(let r=e;r57)return!1;return!0}o(E8e,"isASCIINumberBytes");function C8e(t,e){for(let r=e;r0&&(r.event=a)}}processEvent(e){e.retry&&d8e(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&f8e(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event.data=void 0,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let n=this.lineChunkIndex;n<=this.chunkIndex;n++){let i=this.chunks[n],s=n===this.lineChunkIndex?this.linePos:0,a=n===this.chunkIndex?this.pos:i.length,c=i.subarray(s,a);r+=c.length,e.push(c)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,n=this.linePos;for(;r0&&this.lineChunkIndex{"use strict";var{pipeline:b8e}=require("node:stream"),{fetching:w8e}=VC(),{makeRequest:I8e}=pm(),{webidl:tu}=qn(),{EventSourceStream:S8e}=ase(),{parseMIMEType:B8e}=Yi(),{createFastMessageEvent:x8e}=Cm(),{isNetworkError:cse}=HC(),{delay:v8e}=HF(),{kEnumerableProperty:yh}=st(),{environmentSettingsObject:lse}=xs(),use=!1,dse=3e3,sb=0,fse=1,ob=2,N8e="anonymous",_8e="use-credentials",xm=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#r=null;#n=!1;#t=sb;#i=null;#s=null;#l;#a;constructor(e,r={}){super(),tu.util.markAsUncloneable(this);let n="EventSource constructor";tu.argumentLengthCheck(arguments,1,n),use||(use=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=tu.converters.USVString(e,n,"url"),r=tu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#l=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:dse};let i=lse,s;try{s=new URL(e,i.settingsObject.baseUrl),this.#a.origin=s.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#r=s.href;let a=N8e;r.withCredentials&&(a=_8e,this.#n=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=lse.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#r)],this.#i=I8e(c),this.#c()}get readyState(){return this.#t}get url(){return this.#r}get withCredentials(){return this.#n}#c(){if(this.#t===ob)return;this.#t=sb;let e={request:this.#i,dispatcher:this.#l},r=o(n=>{cse(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#o()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(cse(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#o();return}let i=n.headersList.get("content-type",!0),s=i!==null?B8e(i):"failure",a=s!=="failure"&&s.essence==="text/event-stream";if(n.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#t=fse,this.dispatchEvent(new Event("open")),this.#a.origin=n.urlList[n.urlList.length-1].origin;let c=new S8e({eventSourceSettings:this.#a,push:o(l=>{this.dispatchEvent(x8e(l.type,l.options))},"push")});b8e(n.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=w8e(e)}async#o(){this.#t!==ob&&(this.#t=sb,this.dispatchEvent(new Event("error")),await v8e(this.#a.reconnectionTime),this.#t===sb&&(this.#a.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#a.lastEventId,!0),this.#c()))}close(){tu.brandCheck(this,t),this.#t!==ob&&(this.#t=ob,this.#s.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},hse={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:sb,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:fse,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:ob,writable:!1}};Object.defineProperties(xm,hse);Object.defineProperties(xm.prototype,hse);Object.defineProperties(xm.prototype,{close:yh,onerror:yh,onmessage:yh,onopen:yh,readyState:yh,url:yh,withCredentials:yh});tu.converters.EventSourceInitDict=tu.dictionaryConverter([{key:"withCredentials",converter:tu.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"dispatcher",converter:tu.converters.any}]);pse.exports={EventSource:xm,defaultReconnectionTime:dse}});var Eh=g((J5t,Le)=>{"use strict";var R8e=em(),mse=lC(),T8e=tm(),D8e=Aee(),Q8e=rm(),k8e=fL(),P8e=Mee(),O8e=$ee(),gse=xt(),sv=st(),{InvalidArgumentError:iv}=gse,vm=Dte(),L8e=dC(),F8e=jL(),M8e=pre(),U8e=YL(),q8e=kL(),G8e=ox(),{getGlobalDispatcher:yse,setGlobalDispatcher:H8e}=mx(),z8e=gx(),V8e=JB(),$8e=YB();Object.assign(mse.prototype,vm);Le.exports.Dispatcher=mse;Le.exports.Client=R8e;Le.exports.Pool=T8e;Le.exports.BalancedPool=D8e;Le.exports.Agent=Q8e;Le.exports.ProxyAgent=k8e;Le.exports.EnvHttpProxyAgent=P8e;Le.exports.RetryAgent=O8e;Le.exports.RetryHandler=G8e;Le.exports.DecoratorHandler=z8e;Le.exports.RedirectHandler=V8e;Le.exports.createRedirectInterceptor=$8e;Le.exports.interceptors={redirect:bre(),retry:Ire(),dump:Bre(),dns:Nre()};Le.exports.buildConnector=L8e;Le.exports.errors=gse;Le.exports.util={parseHeaders:sv.parseHeaders,headerNameToString:sv.headerNameToString};function ab(t){return(e,r,n)=>{if(typeof r=="function"&&(n=r,r=null),!e||typeof e!="string"&&typeof e!="object"&&!(e instanceof URL))throw new iv("invalid url");if(r!=null&&typeof r!="object")throw new iv("invalid opts");if(r&&r.path!=null){if(typeof r.path!="string")throw new iv("invalid opts.path");let a=r.path;r.path.startsWith("/")||(a=`/${a}`),e=new URL(sv.parseOrigin(e).origin+a)}else r||(r=typeof e=="object"?e:{}),e=sv.parseURL(e);let{agent:i,dispatcher:s=yse()}=r;if(i)throw new iv("unsupported opts.agent. Did you mean opts.client?");return t.call(s,{...r,origin:e.origin,path:e.search?`${e.pathname}${e.search}`:e.pathname,method:r.method||(r.body?"PUT":"GET")},n)}}o(ab,"makeDispatcher");Le.exports.setGlobalDispatcher=H8e;Le.exports.getGlobalDispatcher=yse;var j8e=VC().fetch;Le.exports.fetch=o(async function(e,r=void 0){try{return await j8e(e,r)}catch(n){throw n&&typeof n=="object"&&Error.captureStackTrace(n),n}},"fetch");Le.exports.Headers=dh().Headers;Le.exports.Response=HC().Response;Le.exports.Request=pm().Request;Le.exports.FormData=yC().FormData;Le.exports.File=globalThis.File??require("node:buffer").File;Le.exports.FileReader=zne().FileReader;var{setGlobalOrigin:W8e,getGlobalOrigin:J8e}=hO();Le.exports.setGlobalOrigin=W8e;Le.exports.getGlobalOrigin=J8e;var{CacheStorage:Y8e}=Zne(),{kConstruct:K8e}=Fx();Le.exports.caches=new Y8e(K8e);var{deleteCookie:X8e,getCookies:Z8e,getSetCookies:eje,setCookie:tje}=uie();Le.exports.deleteCookie=X8e;Le.exports.getCookies=Z8e;Le.exports.getSetCookies=eje;Le.exports.setCookie=tje;var{parseMIMEType:rje,serializeAMimeType:nje}=Yi();Le.exports.parseMIMEType=rje;Le.exports.serializeAMimeType=nje;var{CloseEvent:ije,ErrorEvent:sje,MessageEvent:oje}=Cm();Le.exports.WebSocket=ise().WebSocket;Le.exports.CloseEvent=ije;Le.exports.ErrorEvent=sje;Le.exports.MessageEvent=oje;Le.exports.request=ab(vm.request);Le.exports.stream=ab(vm.stream);Le.exports.pipeline=ab(vm.pipeline);Le.exports.connect=ab(vm.connect);Le.exports.upgrade=ab(vm.upgrade);Le.exports.MockClient=F8e;Le.exports.MockPool=U8e;Le.exports.MockAgent=M8e;Le.exports.mockErrors=q8e;var{EventSource:aje}=Ase();Le.exports.EventSource=aje});var gb=g((EVt,Kse)=>{"use strict";var Qje="2.0.0",kje=Number.MAX_SAFE_INTEGER||9007199254740991,Pje=16,Oje=250,Lje=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Kse.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Pje,MAX_SAFE_BUILD_LENGTH:Oje,MAX_SAFE_INTEGER:kje,RELEASE_TYPES:Lje,SEMVER_SPEC_VERSION:Qje,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var yb=g((CVt,Xse)=>{"use strict";var Fje=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Xse.exports=Fje});var Tm=g((pc,Zse)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:AM,MAX_SAFE_BUILD_LENGTH:Mje,MAX_LENGTH:Uje}=gb(),qje=yb();pc=Zse.exports={};var Gje=pc.re=[],Hje=pc.safeRe=[],ie=pc.src=[],zje=pc.safeSrc=[],se=pc.t={},Vje=0,mM="[a-zA-Z0-9-]",$je=[["\\s",1],["\\d",Uje],[mM,Mje]],jje=o(t=>{for(let[e,r]of $je)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),$e=o((t,e,r)=>{let n=jje(e),i=Vje++;qje(t,i,e),se[t]=i,ie[i]=e,zje[i]=n,Gje[i]=new RegExp(e,r?"g":void 0),Hje[i]=new RegExp(n,r?"g":void 0)},"createToken");$e("NUMERICIDENTIFIER","0|[1-9]\\d*");$e("NUMERICIDENTIFIERLOOSE","\\d+");$e("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${mM}*`);$e("MAINVERSION",`(${ie[se.NUMERICIDENTIFIER]})\\.(${ie[se.NUMERICIDENTIFIER]})\\.(${ie[se.NUMERICIDENTIFIER]})`);$e("MAINVERSIONLOOSE",`(${ie[se.NUMERICIDENTIFIERLOOSE]})\\.(${ie[se.NUMERICIDENTIFIERLOOSE]})\\.(${ie[se.NUMERICIDENTIFIERLOOSE]})`);$e("PRERELEASEIDENTIFIER",`(?:${ie[se.NONNUMERICIDENTIFIER]}|${ie[se.NUMERICIDENTIFIER]})`);$e("PRERELEASEIDENTIFIERLOOSE",`(?:${ie[se.NONNUMERICIDENTIFIER]}|${ie[se.NUMERICIDENTIFIERLOOSE]})`);$e("PRERELEASE",`(?:-(${ie[se.PRERELEASEIDENTIFIER]}(?:\\.${ie[se.PRERELEASEIDENTIFIER]})*))`);$e("PRERELEASELOOSE",`(?:-?(${ie[se.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ie[se.PRERELEASEIDENTIFIERLOOSE]})*))`);$e("BUILDIDENTIFIER",`${mM}+`);$e("BUILD",`(?:\\+(${ie[se.BUILDIDENTIFIER]}(?:\\.${ie[se.BUILDIDENTIFIER]})*))`);$e("FULLPLAIN",`v?${ie[se.MAINVERSION]}${ie[se.PRERELEASE]}?${ie[se.BUILD]}?`);$e("FULL",`^${ie[se.FULLPLAIN]}$`);$e("LOOSEPLAIN",`[v=\\s]*${ie[se.MAINVERSIONLOOSE]}${ie[se.PRERELEASELOOSE]}?${ie[se.BUILD]}?`);$e("LOOSE",`^${ie[se.LOOSEPLAIN]}$`);$e("GTLT","((?:<|>)?=?)");$e("XRANGEIDENTIFIERLOOSE",`${ie[se.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);$e("XRANGEIDENTIFIER",`${ie[se.NUMERICIDENTIFIER]}|x|X|\\*`);$e("XRANGEPLAIN",`[v=\\s]*(${ie[se.XRANGEIDENTIFIER]})(?:\\.(${ie[se.XRANGEIDENTIFIER]})(?:\\.(${ie[se.XRANGEIDENTIFIER]})(?:${ie[se.PRERELEASE]})?${ie[se.BUILD]}?)?)?`);$e("XRANGEPLAINLOOSE",`[v=\\s]*(${ie[se.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ie[se.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ie[se.XRANGEIDENTIFIERLOOSE]})(?:${ie[se.PRERELEASELOOSE]})?${ie[se.BUILD]}?)?)?`);$e("XRANGE",`^${ie[se.GTLT]}\\s*${ie[se.XRANGEPLAIN]}$`);$e("XRANGELOOSE",`^${ie[se.GTLT]}\\s*${ie[se.XRANGEPLAINLOOSE]}$`);$e("COERCEPLAIN",`(^|[^\\d])(\\d{1,${AM}})(?:\\.(\\d{1,${AM}}))?(?:\\.(\\d{1,${AM}}))?`);$e("COERCE",`${ie[se.COERCEPLAIN]}(?:$|[^\\d])`);$e("COERCEFULL",ie[se.COERCEPLAIN]+`(?:${ie[se.PRERELEASE]})?(?:${ie[se.BUILD]})?(?:$|[^\\d])`);$e("COERCERTL",ie[se.COERCE],!0);$e("COERCERTLFULL",ie[se.COERCEFULL],!0);$e("LONETILDE","(?:~>?)");$e("TILDETRIM",`(\\s*)${ie[se.LONETILDE]}\\s+`,!0);pc.tildeTrimReplace="$1~";$e("TILDE",`^${ie[se.LONETILDE]}${ie[se.XRANGEPLAIN]}$`);$e("TILDELOOSE",`^${ie[se.LONETILDE]}${ie[se.XRANGEPLAINLOOSE]}$`);$e("LONECARET","(?:\\^)");$e("CARETTRIM",`(\\s*)${ie[se.LONECARET]}\\s+`,!0);pc.caretTrimReplace="$1^";$e("CARET",`^${ie[se.LONECARET]}${ie[se.XRANGEPLAIN]}$`);$e("CARETLOOSE",`^${ie[se.LONECARET]}${ie[se.XRANGEPLAINLOOSE]}$`);$e("COMPARATORLOOSE",`^${ie[se.GTLT]}\\s*(${ie[se.LOOSEPLAIN]})$|^$`);$e("COMPARATOR",`^${ie[se.GTLT]}\\s*(${ie[se.FULLPLAIN]})$|^$`);$e("COMPARATORTRIM",`(\\s*)${ie[se.GTLT]}\\s*(${ie[se.LOOSEPLAIN]}|${ie[se.XRANGEPLAIN]})`,!0);pc.comparatorTrimReplace="$1$2$3";$e("HYPHENRANGE",`^\\s*(${ie[se.XRANGEPLAIN]})\\s+-\\s+(${ie[se.XRANGEPLAIN]})\\s*$`);$e("HYPHENRANGELOOSE",`^\\s*(${ie[se.XRANGEPLAINLOOSE]})\\s+-\\s+(${ie[se.XRANGEPLAINLOOSE]})\\s*$`);$e("STAR","(<|>)?=?\\s*\\*");$e("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");$e("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var dv=g((wVt,eoe)=>{"use strict";var Wje=Object.freeze({loose:!0}),Jje=Object.freeze({}),Yje=o(t=>t?typeof t!="object"?Wje:t:Jje,"parseOptions");eoe.exports=Yje});var gM=g((SVt,noe)=>{"use strict";var toe=/^[0-9]+$/,roe=o((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:troe(e,t),"rcompareIdentifiers");noe.exports={compareIdentifiers:roe,rcompareIdentifiers:Kje}});var ii=g((xVt,soe)=>{"use strict";var fv=yb(),{MAX_LENGTH:ioe,MAX_SAFE_INTEGER:hv}=gb(),{safeRe:pv,t:Av}=Tm(),Xje=dv(),{compareIdentifiers:yM}=gM(),EM=class t{static{o(this,"SemVer")}constructor(e,r){if(r=Xje(r),e instanceof t){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>ioe)throw new TypeError(`version is longer than ${ioe} characters`);fv("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?pv[Av.LOOSE]:pv[Av.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>hv||this.major<0)throw new TypeError("Invalid major version");if(this.minor>hv||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>hv||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&se.major?1:this.minore.minor?1:this.patche.patch?1:0}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],i=e.prerelease[r];if(fv("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return yM(n,i)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let n=this.build[r],i=e.build[r];if(fv("build compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return yM(n,i)}while(++r)}inc(e,r,n){if(e.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let i=`-${r}`.match(this.options.loose?pv[Av.PRERELEASELOOSE]:pv[Av.PRERELEASE]);if(!i||i[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let i=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[i];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let s=[r,i];n===!1&&(s=[r]),yM(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};soe.exports=EM});var Bh=g((NVt,aoe)=>{"use strict";var ooe=ii(),Zje=o((t,e,r=!1)=>{if(t instanceof ooe)return t;try{return new ooe(t,e)}catch(n){if(!r)return null;throw n}},"parse");aoe.exports=Zje});var loe=g((RVt,coe)=>{"use strict";var eWe=Bh(),tWe=o((t,e)=>{let r=eWe(t,e);return r?r.version:null},"valid");coe.exports=tWe});var doe=g((DVt,uoe)=>{"use strict";var rWe=Bh(),nWe=o((t,e)=>{let r=rWe(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null},"clean");uoe.exports=nWe});var poe=g((kVt,hoe)=>{"use strict";var foe=ii(),iWe=o((t,e,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new foe(t instanceof foe?t.version:t,r).inc(e,n,i).version}catch{return null}},"inc");hoe.exports=iWe});var goe=g((OVt,moe)=>{"use strict";var Aoe=Bh(),sWe=o((t,e)=>{let r=Aoe(t,null,!0),n=Aoe(e,null,!0),i=r.compare(n);if(i===0)return null;let s=i>0,a=s?r:n,c=s?n:r,l=!!a.prerelease.length;if(!!c.prerelease.length&&!l){if(!c.patch&&!c.minor)return"major";if(c.compareMain(a)===0)return c.minor&&!c.patch?"minor":"patch"}let d=l?"pre":"";return r.major!==n.major?d+"major":r.minor!==n.minor?d+"minor":r.patch!==n.patch?d+"patch":"prerelease"},"diff");moe.exports=sWe});var Eoe=g((FVt,yoe)=>{"use strict";var oWe=ii(),aWe=o((t,e)=>new oWe(t,e).major,"major");yoe.exports=aWe});var boe=g((UVt,Coe)=>{"use strict";var cWe=ii(),lWe=o((t,e)=>new cWe(t,e).minor,"minor");Coe.exports=lWe});var Ioe=g((GVt,woe)=>{"use strict";var uWe=ii(),dWe=o((t,e)=>new uWe(t,e).patch,"patch");woe.exports=dWe});var Boe=g((zVt,Soe)=>{"use strict";var fWe=Bh(),hWe=o((t,e)=>{let r=fWe(t,e);return r&&r.prerelease.length?r.prerelease:null},"prerelease");Soe.exports=hWe});var Co=g(($Vt,voe)=>{"use strict";var xoe=ii(),pWe=o((t,e,r)=>new xoe(t,r).compare(new xoe(e,r)),"compare");voe.exports=pWe});var _oe=g((WVt,Noe)=>{"use strict";var AWe=Co(),mWe=o((t,e,r)=>AWe(e,t,r),"rcompare");Noe.exports=mWe});var Toe=g((YVt,Roe)=>{"use strict";var gWe=Co(),yWe=o((t,e)=>gWe(t,e,!0),"compareLoose");Roe.exports=yWe});var mv=g((XVt,Qoe)=>{"use strict";var Doe=ii(),EWe=o((t,e,r)=>{let n=new Doe(t,r),i=new Doe(e,r);return n.compare(i)||n.compareBuild(i)},"compareBuild");Qoe.exports=EWe});var Poe=g((e4t,koe)=>{"use strict";var CWe=mv(),bWe=o((t,e)=>t.sort((r,n)=>CWe(r,n,e)),"sort");koe.exports=bWe});var Loe=g((r4t,Ooe)=>{"use strict";var wWe=mv(),IWe=o((t,e)=>t.sort((r,n)=>wWe(n,r,e)),"rsort");Ooe.exports=IWe});var Eb=g((i4t,Foe)=>{"use strict";var SWe=Co(),BWe=o((t,e,r)=>SWe(t,e,r)>0,"gt");Foe.exports=BWe});var gv=g((o4t,Moe)=>{"use strict";var xWe=Co(),vWe=o((t,e,r)=>xWe(t,e,r)<0,"lt");Moe.exports=vWe});var CM=g((c4t,Uoe)=>{"use strict";var NWe=Co(),_We=o((t,e,r)=>NWe(t,e,r)===0,"eq");Uoe.exports=_We});var bM=g((u4t,qoe)=>{"use strict";var RWe=Co(),TWe=o((t,e,r)=>RWe(t,e,r)!==0,"neq");qoe.exports=TWe});var yv=g((f4t,Goe)=>{"use strict";var DWe=Co(),QWe=o((t,e,r)=>DWe(t,e,r)>=0,"gte");Goe.exports=QWe});var Ev=g((p4t,Hoe)=>{"use strict";var kWe=Co(),PWe=o((t,e,r)=>kWe(t,e,r)<=0,"lte");Hoe.exports=PWe});var wM=g((m4t,zoe)=>{"use strict";var OWe=CM(),LWe=bM(),FWe=Eb(),MWe=yv(),UWe=gv(),qWe=Ev(),GWe=o((t,e,r,n)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return OWe(t,r,n);case"!=":return LWe(t,r,n);case">":return FWe(t,r,n);case">=":return MWe(t,r,n);case"<":return UWe(t,r,n);case"<=":return qWe(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}},"cmp");zoe.exports=GWe});var $oe=g((y4t,Voe)=>{"use strict";var HWe=ii(),zWe=Bh(),{safeRe:Cv,t:bv}=Tm(),VWe=o((t,e)=>{if(t instanceof HWe)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(e.includePrerelease?Cv[bv.COERCEFULL]:Cv[bv.COERCE]);else{let l=e.includePrerelease?Cv[bv.COERCERTLFULL]:Cv[bv.COERCERTL],u;for(;(u=l.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||u.index+u[0].length!==r.index+r[0].length)&&(r=u),l.lastIndex=u.index+u[1].length+u[2].length;l.lastIndex=-1}if(r===null)return null;let n=r[2],i=r[3]||"0",s=r[4]||"0",a=e.includePrerelease&&r[5]?`-${r[5]}`:"",c=e.includePrerelease&&r[6]?`+${r[6]}`:"";return zWe(`${n}.${i}.${s}${a}${c}`,e)},"coerce");Voe.exports=VWe});var Woe=g((C4t,joe)=>{"use strict";var IM=class{static{o(this,"LRUCache")}constructor(){this.max=1e3,this.map=new Map}get(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.map.set(e,r),r}delete(e){return this.map.delete(e)}set(e,r){if(!this.delete(e)&&r!==void 0){if(this.map.size>=this.max){let i=this.map.keys().next().value;this.delete(i)}this.map.set(e,r)}return this}};joe.exports=IM});var bo=g((w4t,Xoe)=>{"use strict";var $We=/\s+/g,SM=class t{static{o(this,"Range")}constructor(e,r){if(r=WWe(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof BM)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().replace($We," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(i=>!Yoe(i[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&t9e(i[0])){this.set=[i];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e0&&(this.formatted+="||");let r=this.set[e];for(let n=0;n0&&(this.formatted+=" "),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let n=((this.options.includePrerelease&&ZWe)|(this.options.loose&&e9e))+":"+e,i=Joe.get(n);if(i)return i;let s=this.options.loose,a=s?xi[si.HYPHENRANGELOOSE]:xi[si.HYPHENRANGE];e=e.replace(a,d9e(this.options.includePrerelease)),Kt("hyphen replace",e),e=e.replace(xi[si.COMPARATORTRIM],YWe),Kt("comparator trim",e),e=e.replace(xi[si.TILDETRIM],KWe),Kt("tilde trim",e),e=e.replace(xi[si.CARETTRIM],XWe),Kt("caret trim",e);let c=e.split(" ").map(f=>r9e(f,this.options)).join(" ").split(/\s+/).map(f=>u9e(f,this.options));s&&(c=c.filter(f=>(Kt("loose invalid filter",f,this.options),!!f.match(xi[si.COMPARATORLOOSE])))),Kt("range list",c);let l=new Map,u=c.map(f=>new BM(f,this.options));for(let f of u){if(Yoe(f))return[f];l.set(f.value,f)}l.size>1&&l.has("")&&l.delete("");let d=[...l.values()];return Joe.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>Koe(n,r)&&e.set.some(i=>Koe(i,r)&&n.every(s=>i.every(a=>s.intersects(a,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new JWe(e,this.options)}catch{return!1}for(let r=0;rt.value==="<0.0.0-0","isNullSet"),t9e=o(t=>t.value==="","isAny"),Koe=o((t,e)=>{let r=!0,n=t.slice(),i=n.pop();for(;r&&n.length;)r=n.every(s=>i.intersects(s,e)),i=n.pop();return r},"isSatisfiable"),r9e=o((t,e)=>(t=t.replace(xi[si.BUILD],""),Kt("comp",t,e),t=s9e(t,e),Kt("caret",t),t=n9e(t,e),Kt("tildes",t),t=a9e(t,e),Kt("xrange",t),t=l9e(t,e),Kt("stars",t),t),"parseComparator"),vi=o(t=>!t||t.toLowerCase()==="x"||t==="*","isX"),n9e=o((t,e)=>t.trim().split(/\s+/).map(r=>i9e(r,e)).join(" "),"replaceTildes"),i9e=o((t,e)=>{let r=e.loose?xi[si.TILDELOOSE]:xi[si.TILDE];return t.replace(r,(n,i,s,a,c)=>{Kt("tilde",t,n,i,s,a,c);let l;return vi(i)?l="":vi(s)?l=`>=${i}.0.0 <${+i+1}.0.0-0`:vi(a)?l=`>=${i}.${s}.0 <${i}.${+s+1}.0-0`:c?(Kt("replaceTilde pr",c),l=`>=${i}.${s}.${a}-${c} <${i}.${+s+1}.0-0`):l=`>=${i}.${s}.${a} <${i}.${+s+1}.0-0`,Kt("tilde return",l),l})},"replaceTilde"),s9e=o((t,e)=>t.trim().split(/\s+/).map(r=>o9e(r,e)).join(" "),"replaceCarets"),o9e=o((t,e)=>{Kt("caret",t,e);let r=e.loose?xi[si.CARETLOOSE]:xi[si.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(i,s,a,c,l)=>{Kt("caret",t,i,s,a,c,l);let u;return vi(s)?u="":vi(a)?u=`>=${s}.0.0${n} <${+s+1}.0.0-0`:vi(c)?s==="0"?u=`>=${s}.${a}.0${n} <${s}.${+a+1}.0-0`:u=`>=${s}.${a}.0${n} <${+s+1}.0.0-0`:l?(Kt("replaceCaret pr",l),s==="0"?a==="0"?u=`>=${s}.${a}.${c}-${l} <${s}.${a}.${+c+1}-0`:u=`>=${s}.${a}.${c}-${l} <${s}.${+a+1}.0-0`:u=`>=${s}.${a}.${c}-${l} <${+s+1}.0.0-0`):(Kt("no pr"),s==="0"?a==="0"?u=`>=${s}.${a}.${c}${n} <${s}.${a}.${+c+1}-0`:u=`>=${s}.${a}.${c}${n} <${s}.${+a+1}.0-0`:u=`>=${s}.${a}.${c} <${+s+1}.0.0-0`),Kt("caret return",u),u})},"replaceCaret"),a9e=o((t,e)=>(Kt("replaceXRanges",t,e),t.split(/\s+/).map(r=>c9e(r,e)).join(" ")),"replaceXRanges"),c9e=o((t,e)=>{t=t.trim();let r=e.loose?xi[si.XRANGELOOSE]:xi[si.XRANGE];return t.replace(r,(n,i,s,a,c,l)=>{Kt("xRange",t,n,i,s,a,c,l);let u=vi(s),d=u||vi(a),f=d||vi(c),h=f;return i==="="&&h&&(i=""),l=e.includePrerelease?"-0":"",u?i===">"||i==="<"?n="<0.0.0-0":n="*":i&&h?(d&&(a=0),c=0,i===">"?(i=">=",d?(s=+s+1,a=0,c=0):(a=+a+1,c=0)):i==="<="&&(i="<",d?s=+s+1:a=+a+1),i==="<"&&(l="-0"),n=`${i+s}.${a}.${c}${l}`):d?n=`>=${s}.0.0${l} <${+s+1}.0.0-0`:f&&(n=`>=${s}.${a}.0${l} <${s}.${+a+1}.0-0`),Kt("xRange return",n),n})},"replaceXRange"),l9e=o((t,e)=>(Kt("replaceStars",t,e),t.trim().replace(xi[si.STAR],"")),"replaceStars"),u9e=o((t,e)=>(Kt("replaceGTE0",t,e),t.trim().replace(xi[e.includePrerelease?si.GTE0PRE:si.GTE0],"")),"replaceGTE0"),d9e=o(t=>(e,r,n,i,s,a,c,l,u,d,f,h)=>(vi(n)?r="":vi(i)?r=`>=${n}.0.0${t?"-0":""}`:vi(s)?r=`>=${n}.${i}.0${t?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,vi(u)?l="":vi(d)?l=`<${+u+1}.0.0-0`:vi(f)?l=`<${u}.${+d+1}.0-0`:h?l=`<=${u}.${d}.${f}-${h}`:t?l=`<${u}.${d}.${+f+1}-0`:l=`<=${l}`,`${r} ${l}`.trim()),"hyphenReplace"),f9e=o((t,e,r)=>{for(let n=0;n0){let i=t[n].semver;if(i.major===e.major&&i.minor===e.minor&&i.patch===e.patch)return!0}return!1}return!0},"testSet")});var Cb=g((S4t,iae)=>{"use strict";var bb=Symbol("SemVer ANY"),NM=class t{static{o(this,"Comparator")}static get ANY(){return bb}constructor(e,r){if(r=Zoe(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),vM("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===bb?this.value="":this.value=this.operator+this.semver.version,vM("comp",this)}parse(e){let r=this.options.loose?eae[tae.COMPARATORLOOSE]:eae[tae.COMPARATOR],n=e.match(r);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new rae(n[2],this.options.loose):this.semver=bb}toString(){return this.value}test(e){if(vM("Comparator.test",e,this.options.loose),this.semver===bb||e===bb)return!0;if(typeof e=="string")try{e=new rae(e,this.options)}catch{return!1}return xM(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new nae(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new nae(this.value,r).test(e.semver):(r=Zoe(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||xM(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||xM(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};iae.exports=NM;var Zoe=dv(),{safeRe:eae,t:tae}=Tm(),xM=wM(),vM=yb(),rae=ii(),nae=bo()});var wb=g((x4t,sae)=>{"use strict";var h9e=bo(),p9e=o((t,e,r)=>{try{e=new h9e(e,r)}catch{return!1}return e.test(t)},"satisfies");sae.exports=p9e});var aae=g((N4t,oae)=>{"use strict";var A9e=bo(),m9e=o((t,e)=>new A9e(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" ")),"toComparators");oae.exports=m9e});var lae=g((R4t,cae)=>{"use strict";var g9e=ii(),y9e=bo(),E9e=o((t,e,r)=>{let n=null,i=null,s=null;try{s=new y9e(e,r)}catch{return null}return t.forEach(a=>{s.test(a)&&(!n||i.compare(a)===-1)&&(n=a,i=new g9e(n,r))}),n},"maxSatisfying");cae.exports=E9e});var dae=g((D4t,uae)=>{"use strict";var C9e=ii(),b9e=bo(),w9e=o((t,e,r)=>{let n=null,i=null,s=null;try{s=new b9e(e,r)}catch{return null}return t.forEach(a=>{s.test(a)&&(!n||i.compare(a)===1)&&(n=a,i=new C9e(n,r))}),n},"minSatisfying");uae.exports=w9e});var pae=g((k4t,hae)=>{"use strict";var _M=ii(),I9e=bo(),fae=Eb(),S9e=o((t,e)=>{t=new I9e(t,e);let r=new _M("0.0.0");if(t.test(r)||(r=new _M("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n{let c=new _M(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!s||fae(c,s))&&(s=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),s&&(!r||fae(r,s))&&(r=s)}return r&&t.test(r)?r:null},"minVersion");hae.exports=S9e});var mae=g((O4t,Aae)=>{"use strict";var B9e=bo(),x9e=o((t,e)=>{try{return new B9e(t,e).range||"*"}catch{return null}},"validRange");Aae.exports=x9e});var wv=g((F4t,Cae)=>{"use strict";var v9e=ii(),Eae=Cb(),{ANY:N9e}=Eae,_9e=bo(),R9e=wb(),gae=Eb(),yae=gv(),T9e=Ev(),D9e=yv(),Q9e=o((t,e,r,n)=>{t=new v9e(t,n),e=new _9e(e,n);let i,s,a,c,l;switch(r){case">":i=gae,s=T9e,a=yae,c=">",l=">=";break;case"<":i=yae,s=D9e,a=gae,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(R9e(t,e,n))return!1;for(let u=0;u{p.semver===N9e&&(p=new Eae(">=0.0.0")),f=f||p,h=h||p,i(p.semver,f.semver,n)?f=p:a(p.semver,h.semver,n)&&(h=p)}),f.operator===c||f.operator===l||(!h.operator||h.operator===c)&&s(t,h.semver))return!1;if(h.operator===l&&a(t,h.semver))return!1}return!0},"outside");Cae.exports=Q9e});var wae=g((U4t,bae)=>{"use strict";var k9e=wv(),P9e=o((t,e,r)=>k9e(t,e,">",r),"gtr");bae.exports=P9e});var Sae=g((G4t,Iae)=>{"use strict";var O9e=wv(),L9e=o((t,e,r)=>O9e(t,e,"<",r),"ltr");Iae.exports=L9e});var vae=g((z4t,xae)=>{"use strict";var Bae=bo(),F9e=o((t,e,r)=>(t=new Bae(t,r),e=new Bae(e,r),t.intersects(e,r)),"intersects");xae.exports=F9e});var _ae=g(($4t,Nae)=>{"use strict";var M9e=wb(),U9e=Co();Nae.exports=(t,e,r)=>{let n=[],i=null,s=null,a=t.sort((d,f)=>U9e(d,f,r));for(let d of a)M9e(d,e,r)?(s=d,i||(i=d)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);let c=[];for(let[d,f]of n)d===f?c.push(d):!f&&d===a[0]?c.push("*"):f?d===a[0]?c.push(`<=${f}`):c.push(`${d} - ${f}`):c.push(`>=${d}`);let l=c.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return l.length{"use strict";var Rae=bo(),TM=Cb(),{ANY:RM}=TM,Ib=wb(),DM=Co(),q9e=o((t,e,r={})=>{if(t===e)return!0;t=new Rae(t,r),e=new Rae(e,r);let n=!1;e:for(let i of t.set){for(let s of e.set){let a=H9e(i,s,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},"subset"),G9e=[new TM(">=0.0.0-0")],Tae=[new TM(">=0.0.0")],H9e=o((t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===RM){if(e.length===1&&e[0].semver===RM)return!0;r.includePrerelease?t=G9e:t=Tae}if(e.length===1&&e[0].semver===RM){if(r.includePrerelease)return!0;e=Tae}let n=new Set,i,s;for(let p of t)p.operator===">"||p.operator===">="?i=Dae(i,p,r):p.operator==="<"||p.operator==="<="?s=Qae(s,p,r):n.add(p.semver);if(n.size>1)return null;let a;if(i&&s){if(a=DM(i.semver,s.semver,r),a>0)return null;if(a===0&&(i.operator!==">="||s.operator!=="<="))return null}for(let p of n){if(i&&!Ib(p,String(i),r)||s&&!Ib(p,String(s),r))return null;for(let m of e)if(!Ib(p,String(m),r))return!1;return!0}let c,l,u,d,f=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,h=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;f&&f.prerelease.length===1&&s.operator==="<"&&f.prerelease[0]===0&&(f=!1);for(let p of e){if(d=d||p.operator===">"||p.operator===">=",u=u||p.operator==="<"||p.operator==="<=",i){if(h&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===h.major&&p.semver.minor===h.minor&&p.semver.patch===h.patch&&(h=!1),p.operator===">"||p.operator===">="){if(c=Dae(i,p,r),c===p&&c!==i)return!1}else if(i.operator===">="&&!Ib(i.semver,String(p),r))return!1}if(s){if(f&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===f.major&&p.semver.minor===f.minor&&p.semver.patch===f.patch&&(f=!1),p.operator==="<"||p.operator==="<="){if(l=Qae(s,p,r),l===p&&l!==s)return!1}else if(s.operator==="<="&&!Ib(s.semver,String(p),r))return!1}if(!p.operator&&(s||i)&&a!==0)return!1}return!(i&&u&&!s&&a!==0||s&&d&&!i&&a!==0||h||f)},"simpleSubset"),Dae=o((t,e,r)=>{if(!t)return e;let n=DM(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},"higherGT"),Qae=o((t,e,r)=>{if(!t)return e;let n=DM(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t},"lowerLT");kae.exports=q9e});var kM=g((J4t,Fae)=>{"use strict";var QM=Tm(),Oae=gb(),z9e=ii(),Lae=gM(),V9e=Bh(),$9e=loe(),j9e=doe(),W9e=poe(),J9e=goe(),Y9e=Eoe(),K9e=boe(),X9e=Ioe(),Z9e=Boe(),e6e=Co(),t6e=_oe(),r6e=Toe(),n6e=mv(),i6e=Poe(),s6e=Loe(),o6e=Eb(),a6e=gv(),c6e=CM(),l6e=bM(),u6e=yv(),d6e=Ev(),f6e=wM(),h6e=$oe(),p6e=Cb(),A6e=bo(),m6e=wb(),g6e=aae(),y6e=lae(),E6e=dae(),C6e=pae(),b6e=mae(),w6e=wv(),I6e=wae(),S6e=Sae(),B6e=vae(),x6e=_ae(),v6e=Pae();Fae.exports={parse:V9e,valid:$9e,clean:j9e,inc:W9e,diff:J9e,major:Y9e,minor:K9e,patch:X9e,prerelease:Z9e,compare:e6e,rcompare:t6e,compareLoose:r6e,compareBuild:n6e,sort:i6e,rsort:s6e,gt:o6e,lt:a6e,eq:c6e,neq:l6e,gte:u6e,lte:d6e,cmp:f6e,coerce:h6e,Comparator:p6e,Range:A6e,satisfies:m6e,toComparators:g6e,maxSatisfying:y6e,minSatisfying:E6e,minVersion:C6e,validRange:b6e,outside:w6e,gtr:I6e,ltr:S6e,intersects:B6e,simplifyRange:x6e,subset:v6e,SemVer:z9e,re:QM.re,src:QM.src,tokens:QM.t,SEMVER_SPEC_VERSION:Oae.SEMVER_SPEC_VERSION,RELEASE_TYPES:Oae.RELEASE_TYPES,compareIdentifiers:Lae.compareIdentifiers,rcompareIdentifiers:Lae.rcompareIdentifiers}});var Lm=g(($8t,Bce)=>{"use strict";var aYe="2.0.0",cYe=Number.MAX_SAFE_INTEGER||9007199254740991,lYe=16,uYe=250,dYe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Bce.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:lYe,MAX_SAFE_BUILD_LENGTH:uYe,MAX_SAFE_INTEGER:cYe,RELEASE_TYPES:dYe,SEMVER_SPEC_VERSION:aYe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Qb=g((j8t,xce)=>{"use strict";var fYe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};xce.exports=fYe});var Fm=g((mc,vce)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:tU,MAX_SAFE_BUILD_LENGTH:hYe,MAX_LENGTH:pYe}=Lm(),AYe=Qb();mc=vce.exports={};var mYe=mc.re=[],gYe=mc.safeRe=[],oe=mc.src=[],yYe=mc.safeSrc=[],ae=mc.t={},EYe=0,rU="[a-zA-Z0-9-]",CYe=[["\\s",1],["\\d",pYe],[rU,hYe]],bYe=o(t=>{for(let[e,r]of CYe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),je=o((t,e,r)=>{let n=bYe(e),i=EYe++;AYe(t,i,e),ae[t]=i,oe[i]=e,yYe[i]=n,mYe[i]=new RegExp(e,r?"g":void 0),gYe[i]=new RegExp(n,r?"g":void 0)},"createToken");je("NUMERICIDENTIFIER","0|[1-9]\\d*");je("NUMERICIDENTIFIERLOOSE","\\d+");je("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${rU}*`);je("MAINVERSION",`(${oe[ae.NUMERICIDENTIFIER]})\\.(${oe[ae.NUMERICIDENTIFIER]})\\.(${oe[ae.NUMERICIDENTIFIER]})`);je("MAINVERSIONLOOSE",`(${oe[ae.NUMERICIDENTIFIERLOOSE]})\\.(${oe[ae.NUMERICIDENTIFIERLOOSE]})\\.(${oe[ae.NUMERICIDENTIFIERLOOSE]})`);je("PRERELEASEIDENTIFIER",`(?:${oe[ae.NONNUMERICIDENTIFIER]}|${oe[ae.NUMERICIDENTIFIER]})`);je("PRERELEASEIDENTIFIERLOOSE",`(?:${oe[ae.NONNUMERICIDENTIFIER]}|${oe[ae.NUMERICIDENTIFIERLOOSE]})`);je("PRERELEASE",`(?:-(${oe[ae.PRERELEASEIDENTIFIER]}(?:\\.${oe[ae.PRERELEASEIDENTIFIER]})*))`);je("PRERELEASELOOSE",`(?:-?(${oe[ae.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${oe[ae.PRERELEASEIDENTIFIERLOOSE]})*))`);je("BUILDIDENTIFIER",`${rU}+`);je("BUILD",`(?:\\+(${oe[ae.BUILDIDENTIFIER]}(?:\\.${oe[ae.BUILDIDENTIFIER]})*))`);je("FULLPLAIN",`v?${oe[ae.MAINVERSION]}${oe[ae.PRERELEASE]}?${oe[ae.BUILD]}?`);je("FULL",`^${oe[ae.FULLPLAIN]}$`);je("LOOSEPLAIN",`[v=\\s]*${oe[ae.MAINVERSIONLOOSE]}${oe[ae.PRERELEASELOOSE]}?${oe[ae.BUILD]}?`);je("LOOSE",`^${oe[ae.LOOSEPLAIN]}$`);je("GTLT","((?:<|>)?=?)");je("XRANGEIDENTIFIERLOOSE",`${oe[ae.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);je("XRANGEIDENTIFIER",`${oe[ae.NUMERICIDENTIFIER]}|x|X|\\*`);je("XRANGEPLAIN",`[v=\\s]*(${oe[ae.XRANGEIDENTIFIER]})(?:\\.(${oe[ae.XRANGEIDENTIFIER]})(?:\\.(${oe[ae.XRANGEIDENTIFIER]})(?:${oe[ae.PRERELEASE]})?${oe[ae.BUILD]}?)?)?`);je("XRANGEPLAINLOOSE",`[v=\\s]*(${oe[ae.XRANGEIDENTIFIERLOOSE]})(?:\\.(${oe[ae.XRANGEIDENTIFIERLOOSE]})(?:\\.(${oe[ae.XRANGEIDENTIFIERLOOSE]})(?:${oe[ae.PRERELEASELOOSE]})?${oe[ae.BUILD]}?)?)?`);je("XRANGE",`^${oe[ae.GTLT]}\\s*${oe[ae.XRANGEPLAIN]}$`);je("XRANGELOOSE",`^${oe[ae.GTLT]}\\s*${oe[ae.XRANGEPLAINLOOSE]}$`);je("COERCEPLAIN",`(^|[^\\d])(\\d{1,${tU}})(?:\\.(\\d{1,${tU}}))?(?:\\.(\\d{1,${tU}}))?`);je("COERCE",`${oe[ae.COERCEPLAIN]}(?:$|[^\\d])`);je("COERCEFULL",oe[ae.COERCEPLAIN]+`(?:${oe[ae.PRERELEASE]})?(?:${oe[ae.BUILD]})?(?:$|[^\\d])`);je("COERCERTL",oe[ae.COERCE],!0);je("COERCERTLFULL",oe[ae.COERCEFULL],!0);je("LONETILDE","(?:~>?)");je("TILDETRIM",`(\\s*)${oe[ae.LONETILDE]}\\s+`,!0);mc.tildeTrimReplace="$1~";je("TILDE",`^${oe[ae.LONETILDE]}${oe[ae.XRANGEPLAIN]}$`);je("TILDELOOSE",`^${oe[ae.LONETILDE]}${oe[ae.XRANGEPLAINLOOSE]}$`);je("LONECARET","(?:\\^)");je("CARETTRIM",`(\\s*)${oe[ae.LONECARET]}\\s+`,!0);mc.caretTrimReplace="$1^";je("CARET",`^${oe[ae.LONECARET]}${oe[ae.XRANGEPLAIN]}$`);je("CARETLOOSE",`^${oe[ae.LONECARET]}${oe[ae.XRANGEPLAINLOOSE]}$`);je("COMPARATORLOOSE",`^${oe[ae.GTLT]}\\s*(${oe[ae.LOOSEPLAIN]})$|^$`);je("COMPARATOR",`^${oe[ae.GTLT]}\\s*(${oe[ae.FULLPLAIN]})$|^$`);je("COMPARATORTRIM",`(\\s*)${oe[ae.GTLT]}\\s*(${oe[ae.LOOSEPLAIN]}|${oe[ae.XRANGEPLAIN]})`,!0);mc.comparatorTrimReplace="$1$2$3";je("HYPHENRANGE",`^\\s*(${oe[ae.XRANGEPLAIN]})\\s+-\\s+(${oe[ae.XRANGEPLAIN]})\\s*$`);je("HYPHENRANGELOOSE",`^\\s*(${oe[ae.XRANGEPLAINLOOSE]})\\s+-\\s+(${oe[ae.XRANGEPLAINLOOSE]})\\s*$`);je("STAR","(<|>)?=?\\s*\\*");je("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");je("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Tv=g((J8t,Nce)=>{"use strict";var wYe=Object.freeze({loose:!0}),IYe=Object.freeze({}),SYe=o(t=>t?typeof t!="object"?wYe:t:IYe,"parseOptions");Nce.exports=SYe});var nU=g((K8t,Tce)=>{"use strict";var _ce=/^[0-9]+$/,Rce=o((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:tRce(e,t),"rcompareIdentifiers");Tce.exports={compareIdentifiers:Rce,rcompareIdentifiers:BYe}});var Hn=g((Z8t,Qce)=>{"use strict";var Dv=Qb(),{MAX_LENGTH:Dce,MAX_SAFE_INTEGER:Qv}=Lm(),{safeRe:kv,t:Pv}=Fm(),xYe=Tv(),{compareIdentifiers:iU}=nU(),vYe=o((t,e)=>{let r=e.split(".");if(r.length>t.length)return!1;for(let n=0;nDce)throw new TypeError(`version is longer than ${Dce} characters`);Dv("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?kv[Pv.LOOSE]:kv[Pv.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Qv||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Qv||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Qv||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&se.major?1:this.minore.minor?1:this.patche.patch?1:0}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],i=e.prerelease[r];if(Dv("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return iU(n,i)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let n=this.build[r],i=e.build[r];if(Dv("build compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return iU(n,i)}while(++r)}inc(e,r,n){if(e.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let i=`-${r}`.match(this.options.loose?kv[Pv.PRERELEASELOOSE]:kv[Pv.PRERELEASE]);if(!i||i[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let i=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[i];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let s=[r,i];if(n===!1&&(s=[r]),vYe(this.prerelease,r)){let a=this.prerelease[r.split(".").length];isNaN(a)&&(this.prerelease=s)}else this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Qce.exports=sU});var Nd=g((tjt,Pce)=>{"use strict";var kce=Hn(),NYe=o((t,e,r=!1)=>{if(t instanceof kce)return t;try{return new kce(t,e)}catch(n){if(!r)return null;throw n}},"parse");Pce.exports=NYe});var Lce=g((njt,Oce)=>{"use strict";var _Ye=Nd(),RYe=o((t,e)=>{let r=_Ye(t,e);return r?r.version:null},"valid");Oce.exports=RYe});var Mce=g((sjt,Fce)=>{"use strict";var TYe=Nd(),DYe=o((t,e)=>{let r=TYe(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null},"clean");Fce.exports=DYe});var Gce=g((ajt,qce)=>{"use strict";var Uce=Hn(),QYe=o((t,e,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new Uce(t instanceof Uce?t.version:t,r).inc(e,n,i).version}catch{return null}},"inc");qce.exports=QYe});var Vce=g((ljt,zce)=>{"use strict";var Hce=Nd(),kYe=o((t,e)=>{let r=Hce(t,null,!0),n=Hce(e,null,!0),i=r.compare(n);if(i===0)return null;let s=i>0,a=s?r:n,c=s?n:r,l=!!a.prerelease.length;if(!!c.prerelease.length&&!l){if(!c.patch&&!c.minor)return"major";if(c.compareMain(a)===0)return c.minor&&!c.patch?"minor":"patch"}let d=l?"pre":"";return r.major!==n.major?d+"major":r.minor!==n.minor?d+"minor":r.patch!==n.patch?d+"patch":"prerelease"},"diff");zce.exports=kYe});var jce=g((djt,$ce)=>{"use strict";var PYe=Hn(),OYe=o((t,e)=>new PYe(t,e).major,"major");$ce.exports=OYe});var Jce=g((hjt,Wce)=>{"use strict";var LYe=Hn(),FYe=o((t,e)=>new LYe(t,e).minor,"minor");Wce.exports=FYe});var Kce=g((Ajt,Yce)=>{"use strict";var MYe=Hn(),UYe=o((t,e)=>new MYe(t,e).patch,"patch");Yce.exports=UYe});var Zce=g((gjt,Xce)=>{"use strict";var qYe=Nd(),GYe=o((t,e)=>{let r=qYe(t,e);return r&&r.prerelease.length?r.prerelease:null},"prerelease");Xce.exports=GYe});var xo=g((Ejt,tle)=>{"use strict";var ele=Hn(),HYe=o((t,e,r)=>new ele(t,r).compare(new ele(e,r)),"compare");tle.exports=HYe});var nle=g((bjt,rle)=>{"use strict";var zYe=xo(),VYe=o((t,e,r)=>zYe(e,t,r),"rcompare");rle.exports=VYe});var sle=g((Ijt,ile)=>{"use strict";var $Ye=xo(),jYe=o((t,e)=>$Ye(t,e,!0),"compareLoose");ile.exports=jYe});var Ov=g((Bjt,ale)=>{"use strict";var ole=Hn(),WYe=o((t,e,r)=>{let n=new ole(t,r),i=new ole(e,r);return n.compare(i)||n.compareBuild(i)},"compareBuild");ale.exports=WYe});var lle=g((vjt,cle)=>{"use strict";var JYe=Ov(),YYe=o((t,e)=>t.sort((r,n)=>JYe(r,n,e)),"sort");cle.exports=YYe});var dle=g((_jt,ule)=>{"use strict";var KYe=Ov(),XYe=o((t,e)=>t.sort((r,n)=>KYe(n,r,e)),"rsort");ule.exports=XYe});var kb=g((Tjt,fle)=>{"use strict";var ZYe=xo(),eKe=o((t,e,r)=>ZYe(t,e,r)>0,"gt");fle.exports=eKe});var Lv=g((Qjt,hle)=>{"use strict";var tKe=xo(),rKe=o((t,e,r)=>tKe(t,e,r)<0,"lt");hle.exports=rKe});var oU=g((Pjt,ple)=>{"use strict";var nKe=xo(),iKe=o((t,e,r)=>nKe(t,e,r)===0,"eq");ple.exports=iKe});var aU=g((Ljt,Ale)=>{"use strict";var sKe=xo(),oKe=o((t,e,r)=>sKe(t,e,r)!==0,"neq");Ale.exports=oKe});var Fv=g((Mjt,mle)=>{"use strict";var aKe=xo(),cKe=o((t,e,r)=>aKe(t,e,r)>=0,"gte");mle.exports=cKe});var Mv=g((qjt,gle)=>{"use strict";var lKe=xo(),uKe=o((t,e,r)=>lKe(t,e,r)<=0,"lte");gle.exports=uKe});var cU=g((Hjt,yle)=>{"use strict";var dKe=oU(),fKe=aU(),hKe=kb(),pKe=Fv(),AKe=Lv(),mKe=Mv(),gKe=o((t,e,r,n)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return dKe(t,r,n);case"!=":return fKe(t,r,n);case">":return hKe(t,r,n);case">=":return pKe(t,r,n);case"<":return AKe(t,r,n);case"<=":return mKe(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}},"cmp");yle.exports=gKe});var Cle=g((Vjt,Ele)=>{"use strict";var yKe=Hn(),EKe=Nd(),{safeRe:Uv,t:qv}=Fm(),CKe=o((t,e)=>{if(t instanceof yKe)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(e.includePrerelease?Uv[qv.COERCEFULL]:Uv[qv.COERCE]);else{let l=e.includePrerelease?Uv[qv.COERCERTLFULL]:Uv[qv.COERCERTL],u;for(;(u=l.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||u.index+u[0].length!==r.index+r[0].length)&&(r=u),l.lastIndex=u.index+u[1].length+u[2].length;l.lastIndex=-1}if(r===null)return null;let n=r[2],i=r[3]||"0",s=r[4]||"0",a=e.includePrerelease&&r[5]?`-${r[5]}`:"",c=e.includePrerelease&&r[6]?`+${r[6]}`:"";return EKe(`${n}.${i}.${s}${a}${c}`,e)},"coerce");Ele.exports=CKe});var wle=g((jjt,ble)=>{"use strict";var bKe=Nd(),wKe=Lm(),IKe=Hn(),SKe=o((t,e,r)=>{if(!wKe.RELEASE_TYPES.includes(e))return null;let n=BKe(t,r);return n&&xKe(n,e)},"truncate"),BKe=o((t,e)=>{let r=t instanceof IKe?t.version:t;return bKe(r,e)},"cloneInputVersion"),xKe=o((t,e)=>{if(vKe(e))return t.version;switch(t.prerelease=[],e){case"major":t.minor=0,t.patch=0;break;case"minor":t.patch=0;break}return t.format()},"doTruncation"),vKe=o(t=>t.startsWith("pre"),"isPrerelease");ble.exports=SKe});var Sle=g((Jjt,Ile)=>{"use strict";var lU=class{static{o(this,"LRUCache")}constructor(){this.max=1e3,this.map=new Map}get(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.map.set(e,r),r}delete(e){return this.map.delete(e)}set(e,r){if(!this.delete(e)&&r!==void 0){if(this.map.size>=this.max){let i=this.map.keys().next().value;this.delete(i)}this.map.set(e,r)}return this}};Ile.exports=lU});var vo=g((Kjt,Nle)=>{"use strict";var NKe=/\s+/g,uU=class t{static{o(this,"Range")}constructor(e,r){if(r=RKe(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof dU)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().replace(NKe," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(i=>!xle(i[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&MKe(i[0])){this.set=[i];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e0&&(this.formatted+="||");let r=this.set[e];for(let n=0;n0&&(this.formatted+=" "),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(FKe,"");let n=((this.options.includePrerelease&&OKe)|(this.options.loose&&LKe))+":"+e,i=Ble.get(n);if(i)return i;let s=this.options.loose,a=s?_i[zn.HYPHENRANGELOOSE]:_i[zn.HYPHENRANGE];e=e.replace(a,YKe(this.options.includePrerelease)),Xt("hyphen replace",e),e=e.replace(_i[zn.COMPARATORTRIM],QKe),Xt("comparator trim",e),e=e.replace(_i[zn.TILDETRIM],kKe),Xt("tilde trim",e),e=e.replace(_i[zn.CARETTRIM],PKe),Xt("caret trim",e);let c=e.split(" ").map(f=>UKe(f,this.options)).join(" ").split(/\s+/).map(f=>JKe(f,this.options));s&&(c=c.filter(f=>(Xt("loose invalid filter",f,this.options),!!f.match(_i[zn.COMPARATORLOOSE])))),Xt("range list",c);let l=new Map,u=c.map(f=>new dU(f,this.options));for(let f of u){if(xle(f))return[f];l.set(f.value,f)}l.size>1&&l.has("")&&l.delete("");let d=[...l.values()];return Ble.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>vle(n,r)&&e.set.some(i=>vle(i,r)&&n.every(s=>i.every(a=>s.intersects(a,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new TKe(e,this.options)}catch{return!1}for(let r=0;rt.value==="<0.0.0-0","isNullSet"),MKe=o(t=>t.value==="","isAny"),vle=o((t,e)=>{let r=!0,n=t.slice(),i=n.pop();for(;r&&n.length;)r=n.every(s=>i.intersects(s,e)),i=n.pop();return r},"isSatisfiable"),UKe=o((t,e)=>(t=t.replace(_i[zn.BUILD],""),Xt("comp",t,e),t=zKe(t,e),Xt("caret",t),t=GKe(t,e),Xt("tildes",t),t=$Ke(t,e),Xt("xrange",t),t=WKe(t,e),Xt("stars",t),t),"parseComparator"),un=o(t=>!t||t.toLowerCase()==="x"||t==="*","isX"),qKe=o((t,e,r)=>un(t)&&!un(e)||un(e)&&r&&!un(r),"invalidXRangeOrder"),GKe=o((t,e)=>t.trim().split(/\s+/).map(r=>HKe(r,e)).join(" "),"replaceTildes"),HKe=o((t,e)=>{let r=e.loose?_i[zn.TILDELOOSE]:_i[zn.TILDE],n=e.includePrerelease?"-0":"";return t.replace(r,(i,s,a,c,l)=>{Xt("tilde",t,i,s,a,c,l);let u;return un(s)?u="":un(a)?u=`>=${s}.0.0${n} <${+s+1}.0.0-0`:un(c)?u=`>=${s}.${a}.0${n} <${s}.${+a+1}.0-0`:l?(Xt("replaceTilde pr",l),u=`>=${s}.${a}.${c}-${l} <${s}.${+a+1}.0-0`):u=`>=${s}.${a}.${c} <${s}.${+a+1}.0-0`,Xt("tilde return",u),u})},"replaceTilde"),zKe=o((t,e)=>t.trim().split(/\s+/).map(r=>VKe(r,e)).join(" "),"replaceCarets"),VKe=o((t,e)=>{Xt("caret",t,e);let r=e.loose?_i[zn.CARETLOOSE]:_i[zn.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(i,s,a,c,l)=>{Xt("caret",t,i,s,a,c,l);let u;return un(s)?u="":un(a)?u=`>=${s}.0.0${n} <${+s+1}.0.0-0`:un(c)?s==="0"?u=`>=${s}.${a}.0${n} <${s}.${+a+1}.0-0`:u=`>=${s}.${a}.0${n} <${+s+1}.0.0-0`:l?(Xt("replaceCaret pr",l),s==="0"?a==="0"?u=`>=${s}.${a}.${c}-${l} <${s}.${a}.${+c+1}-0`:u=`>=${s}.${a}.${c}-${l} <${s}.${+a+1}.0-0`:u=`>=${s}.${a}.${c}-${l} <${+s+1}.0.0-0`):(Xt("no pr"),s==="0"?a==="0"?u=`>=${s}.${a}.${c} <${s}.${a}.${+c+1}-0`:u=`>=${s}.${a}.${c} <${s}.${+a+1}.0-0`:u=`>=${s}.${a}.${c} <${+s+1}.0.0-0`),Xt("caret return",u),u})},"replaceCaret"),$Ke=o((t,e)=>(Xt("replaceXRanges",t,e),t.split(/\s+/).map(r=>jKe(r,e)).join(" ")),"replaceXRanges"),jKe=o((t,e)=>{t=t.trim();let r=e.loose?_i[zn.XRANGELOOSE]:_i[zn.XRANGE];return t.replace(r,(n,i,s,a,c,l)=>{if(Xt("xRange",t,n,i,s,a,c,l),qKe(s,a,c))return t;let u=un(s),d=u||un(a),f=d||un(c),h=f;return i==="="&&h&&(i=""),l=e.includePrerelease?"-0":"",u?i===">"||i==="<"?n="<0.0.0-0":n="*":i&&h?(d&&(a=0),c=0,i===">"?(i=">=",d?(s=+s+1,a=0,c=0):(a=+a+1,c=0)):i==="<="&&(i="<",d?s=+s+1:a=+a+1),i==="<"&&(l="-0"),n=`${i+s}.${a}.${c}${l}`):d?n=`>=${s}.0.0${l} <${+s+1}.0.0-0`:f&&(n=`>=${s}.${a}.0${l} <${s}.${+a+1}.0-0`),Xt("xRange return",n),n})},"replaceXRange"),WKe=o((t,e)=>(Xt("replaceStars",t,e),t.trim().replace(_i[zn.STAR],"")),"replaceStars"),JKe=o((t,e)=>(Xt("replaceGTE0",t,e),t.trim().replace(_i[e.includePrerelease?zn.GTE0PRE:zn.GTE0],"")),"replaceGTE0"),YKe=o(t=>(e,r,n,i,s,a,c,l,u,d,f,h)=>(un(n)?r="":un(i)?r=`>=${n}.0.0${t?"-0":""}`:un(s)?r=`>=${n}.${i}.0${t?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,un(u)?l="":un(d)?l=`<${+u+1}.0.0-0`:un(f)?l=`<${u}.${+d+1}.0-0`:h?l=`<=${u}.${d}.${f}-${h}`:t?l=`<${u}.${d}.${+f+1}-0`:l=`<=${l}`,`${r} ${l}`.trim()),"hyphenReplace"),KKe=o((t,e,r)=>{for(let n=0;n0){let i=t[n].semver;if(i.major===e.major&&i.minor===e.minor&&i.patch===e.patch)return!0}return!1}return!0},"testSet")});var Pb=g((Zjt,kle)=>{"use strict";var Ob=Symbol("SemVer ANY"),pU=class t{static{o(this,"Comparator")}static get ANY(){return Ob}constructor(e,r){if(r=_le(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),hU("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===Ob?this.value="":this.value=this.operator+this.semver.version,hU("comp",this)}parse(e){let r=this.options.loose?Rle[Tle.COMPARATORLOOSE]:Rle[Tle.COMPARATOR],n=e.match(r);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new Dle(n[2],this.options.loose):this.semver=Ob}toString(){return this.value}test(e){if(hU("Comparator.test",e,this.options.loose),this.semver===Ob||e===Ob)return!0;if(typeof e=="string")try{e=new Dle(e,this.options)}catch{return!1}return fU(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Qle(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new Qle(this.value,r).test(e.semver):(r=_le(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||fU(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||fU(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};kle.exports=pU;var _le=Tv(),{safeRe:Rle,t:Tle}=Fm(),fU=cU(),hU=Qb(),Dle=Hn(),Qle=vo()});var Lb=g((tWt,Ple)=>{"use strict";var XKe=vo(),ZKe=o((t,e,r)=>{try{e=new XKe(e,r)}catch{return!1}return e.test(t)},"satisfies");Ple.exports=ZKe});var Lle=g((nWt,Ole)=>{"use strict";var e7e=vo(),t7e=o((t,e)=>new e7e(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" ")),"toComparators");Ole.exports=t7e});var Mle=g((sWt,Fle)=>{"use strict";var r7e=Hn(),n7e=vo(),i7e=o((t,e,r)=>{let n=null,i=null,s=null;try{s=new n7e(e,r)}catch{return null}return t.forEach(a=>{s.test(a)&&(!n||i.compare(a)===-1)&&(n=a,i=new r7e(n,r))}),n},"maxSatisfying");Fle.exports=i7e});var qle=g((aWt,Ule)=>{"use strict";var s7e=Hn(),o7e=vo(),a7e=o((t,e,r)=>{let n=null,i=null,s=null;try{s=new o7e(e,r)}catch{return null}return t.forEach(a=>{s.test(a)&&(!n||i.compare(a)===1)&&(n=a,i=new s7e(n,r))}),n},"minSatisfying");Ule.exports=a7e});var zle=g((lWt,Hle)=>{"use strict";var AU=Hn(),c7e=vo(),Gle=kb(),l7e=o((t,e)=>{t=new c7e(t,e);let r=new AU("0.0.0");if(t.test(r)||(r=new AU("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n{let c=new AU(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!s||Gle(c,s))&&(s=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),s&&(!r||Gle(r,s))&&(r=s)}return r&&t.test(r)?r:null},"minVersion");Hle.exports=l7e});var $le=g((dWt,Vle)=>{"use strict";var u7e=vo(),d7e=o((t,e)=>{try{return new u7e(t,e).range||"*"}catch{return null}},"validRange");Vle.exports=d7e});var Gv=g((hWt,Yle)=>{"use strict";var f7e=Hn(),Jle=Pb(),{ANY:h7e}=Jle,p7e=vo(),A7e=Lb(),jle=kb(),Wle=Lv(),m7e=Mv(),g7e=Fv(),y7e=o((t,e,r,n)=>{t=new f7e(t,n),e=new p7e(e,n);let i,s,a,c,l;switch(r){case">":i=jle,s=m7e,a=Wle,c=">",l=">=";break;case"<":i=Wle,s=g7e,a=jle,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(A7e(t,e,n))return!1;for(let u=0;u{p.semver===h7e&&(p=new Jle(">=0.0.0")),f=f||p,h=h||p,i(p.semver,f.semver,n)?f=p:a(p.semver,h.semver,n)&&(h=p)}),f.operator===c||f.operator===l||(!h.operator||h.operator===c)&&s(t,h.semver))return!1;if(h.operator===l&&a(t,h.semver))return!1}return!0},"outside");Yle.exports=y7e});var Xle=g((AWt,Kle)=>{"use strict";var E7e=Gv(),C7e=o((t,e,r)=>E7e(t,e,">",r),"gtr");Kle.exports=C7e});var eue=g((gWt,Zle)=>{"use strict";var b7e=Gv(),w7e=o((t,e,r)=>b7e(t,e,"<",r),"ltr");Zle.exports=w7e});var nue=g((EWt,rue)=>{"use strict";var tue=vo(),I7e=o((t,e,r)=>(t=new tue(t,r),e=new tue(e,r),t.intersects(e,r)),"intersects");rue.exports=I7e});var sue=g((bWt,iue)=>{"use strict";var S7e=Lb(),B7e=xo();iue.exports=(t,e,r)=>{let n=[],i=null,s=null,a=t.sort((d,f)=>B7e(d,f,r));for(let d of a)S7e(d,e,r)?(s=d,i||(i=d)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);let c=[];for(let[d,f]of n)d===f?c.push(d):!f&&d===a[0]?c.push("*"):f?d===a[0]?c.push(`<=${f}`):c.push(`${d} - ${f}`):c.push(`>=${d}`);let l=c.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return l.length{"use strict";var oue=vo(),yU=Pb(),{ANY:mU}=yU,gU=Lb(),EU=xo(),x7e=o((t,e,r={})=>{if(t===e)return!0;t=new oue(t,r),e=new oue(e,r);let n=!1;e:for(let i of t.set){for(let s of e.set){let a=N7e(i,s,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},"subset"),v7e=[new yU(">=0.0.0-0")],aue=[new yU(">=0.0.0")],N7e=o((t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===mU){if(e.length===1&&e[0].semver===mU)return!0;r.includePrerelease?t=v7e:t=aue}if(e.length===1&&e[0].semver===mU){if(r.includePrerelease)return!0;e=aue}let n=new Set,i,s;for(let p of t)p.operator===">"||p.operator===">="?i=cue(i,p,r):p.operator==="<"||p.operator==="<="?s=lue(s,p,r):n.add(p.semver);if(n.size>1)return null;let a;if(i&&s){if(a=EU(i.semver,s.semver,r),a>0)return null;if(a===0&&(i.operator!==">="||s.operator!=="<="))return null}for(let p of n){if(i&&!gU(p,String(i),r)||s&&!gU(p,String(s),r))return null;for(let m of e)if(!gU(p,String(m),r))return!1;return!0}let c,l,u,d,f=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,h=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;f&&f.prerelease.length===1&&s.operator==="<"&&f.prerelease[0]===0&&(f=!1);for(let p of e){if(d=d||p.operator===">"||p.operator===">=",u=u||p.operator==="<"||p.operator==="<=",i){if(h&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===h.major&&p.semver.minor===h.minor&&p.semver.patch===h.patch&&(h=!1),p.operator===">"||p.operator===">="){if(c=cue(i,p,r),c===p&&c!==i)return!1}else if(i.operator===">="&&!p.test(i.semver))return!1}if(s){if(f&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===f.major&&p.semver.minor===f.minor&&p.semver.patch===f.patch&&(f=!1),p.operator==="<"||p.operator==="<="){if(l=lue(s,p,r),l===p&&l!==s)return!1}else if(s.operator==="<="&&!p.test(s.semver))return!1}if(!p.operator&&(s||i)&&a!==0)return!1}return!(i&&u&&!s&&a!==0||s&&d&&!i&&a!==0||h||f)},"simpleSubset"),cue=o((t,e,r)=>{if(!t)return e;let n=EU(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},"higherGT"),lue=o((t,e,r)=>{if(!t)return e;let n=EU(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t},"lowerLT");uue.exports=x7e});var Aue=g((SWt,pue)=>{"use strict";var CU=Fm(),fue=Lm(),_7e=Hn(),hue=nU(),R7e=Nd(),T7e=Lce(),D7e=Mce(),Q7e=Gce(),k7e=Vce(),P7e=jce(),O7e=Jce(),L7e=Kce(),F7e=Zce(),M7e=xo(),U7e=nle(),q7e=sle(),G7e=Ov(),H7e=lle(),z7e=dle(),V7e=kb(),$7e=Lv(),j7e=oU(),W7e=aU(),J7e=Fv(),Y7e=Mv(),K7e=cU(),X7e=Cle(),Z7e=wle(),eXe=Pb(),tXe=vo(),rXe=Lb(),nXe=Lle(),iXe=Mle(),sXe=qle(),oXe=zle(),aXe=$le(),cXe=Gv(),lXe=Xle(),uXe=eue(),dXe=nue(),fXe=sue(),hXe=due();pue.exports={parse:R7e,valid:T7e,clean:D7e,inc:Q7e,diff:k7e,major:P7e,minor:O7e,patch:L7e,prerelease:F7e,compare:M7e,rcompare:U7e,compareLoose:q7e,compareBuild:G7e,sort:H7e,rsort:z7e,gt:V7e,lt:$7e,eq:j7e,neq:W7e,gte:J7e,lte:Y7e,cmp:K7e,coerce:X7e,truncate:Z7e,Comparator:eXe,Range:tXe,satisfies:rXe,toComparators:nXe,maxSatisfying:iXe,minSatisfying:sXe,minVersion:oXe,validRange:aXe,outside:cXe,gtr:lXe,ltr:uXe,intersects:dXe,simplifyRange:fXe,subset:hXe,SemVer:_7e,re:CU.re,src:CU.src,tokens:CU.t,SEMVER_SPEC_VERSION:fue.SEMVER_SPEC_VERSION,RELEASE_TYPES:fue.RELEASE_TYPES,compareIdentifiers:hue.compareIdentifiers,rcompareIdentifiers:hue.rcompareIdentifiers}});var nde=g((_6t,rde)=>{var Vm=1e3,$m=Vm*60,jm=$m*60,Oh=jm*24,JXe=Oh*7,YXe=Oh*365.25;rde.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return KXe(t);if(r==="number"&&isFinite(t))return e.long?ZXe(t):XXe(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function KXe(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*YXe;case"weeks":case"week":case"w":return r*JXe;case"days":case"day":case"d":return r*Oh;case"hours":case"hour":case"hrs":case"hr":case"h":return r*jm;case"minutes":case"minute":case"mins":case"min":case"m":return r*$m;case"seconds":case"second":case"secs":case"sec":case"s":return r*Vm;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}o(KXe,"parse");function XXe(t){var e=Math.abs(t);return e>=Oh?Math.round(t/Oh)+"d":e>=jm?Math.round(t/jm)+"h":e>=$m?Math.round(t/$m)+"m":e>=Vm?Math.round(t/Vm)+"s":t+"ms"}o(XXe,"fmtShort");function ZXe(t){var e=Math.abs(t);return e>=Oh?pN(t,e,Oh,"day"):e>=jm?pN(t,e,jm,"hour"):e>=$m?pN(t,e,$m,"minute"):e>=Vm?pN(t,e,Vm,"second"):t+" ms"}o(ZXe,"fmtLong");function pN(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}o(pN,"plural")});var VU=g((T6t,ide)=>{function eZe(t){r.debug=r,r.default=r,r.coerce=l,r.disable=s,r.enable=i,r.enabled=a,r.humanize=nde(),r.destroy=u,Object.keys(t).forEach(d=>{r[d]=t[d]}),r.names=[],r.skips=[],r.formatters={};function e(d){let f=0;for(let h=0;h{if(U==="%%")return"%";B++;let $=r.formatters[N];if(typeof $=="function"){let Q=E[B];U=$.call(y,Q),E.splice(B,1),B--}return U}),r.formatArgs.call(y,E),(y.log||r.log).apply(y,E)}return o(A,"debug"),A.namespace=d,A.useColors=r.useColors(),A.color=r.selectColor(d),A.extend=n,A.destroy=r.destroy,Object.defineProperty(A,"enabled",{enumerable:!0,configurable:!1,get:o(()=>h!==null?h:(p!==r.namespaces&&(p=r.namespaces,m=r.enabled(d)),m),"get"),set:o(E=>{h=E},"set")}),typeof r.init=="function"&&r.init(A),A}o(r,"createDebug");function n(d,f){let h=r(this.namespace+(typeof f>"u"?":":f)+d);return h.log=this.log,h}o(n,"extend");function i(d){r.save(d),r.namespaces=d,r.names=[],r.skips=[];let f,h=(typeof d=="string"?d:"").split(/[\s,]+/),p=h.length;for(f=0;f"-"+f)].join(",");return r.enable(""),d}o(s,"disable");function a(d){if(d[d.length-1]==="*")return!0;let f,h;for(f=0,h=r.skips.length;f{Gs.formatArgs=rZe;Gs.save=nZe;Gs.load=iZe;Gs.useColors=tZe;Gs.storage=sZe();Gs.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Gs.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function tZe(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}o(tZe,"useColors");function rZe(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+AN.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),t.splice(n,0,e)}o(rZe,"formatArgs");Gs.log=console.debug||console.log||(()=>{});function nZe(t){try{t?Gs.storage.setItem("debug",t):Gs.storage.removeItem("debug")}catch{}}o(nZe,"save");function iZe(){let t;try{t=Gs.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}o(iZe,"load");function sZe(){try{return localStorage}catch{}}o(sZe,"localstorage");AN.exports=VU()(Gs);var{formatters:oZe}=AN.exports;oZe.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var ade=g((k6t,ode)=>{"use strict";ode.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n{"use strict";var aZe=require("os"),cde=require("tty"),_o=ade(),{env:xn}=process,Td;_o("no-color")||_o("no-colors")||_o("color=false")||_o("color=never")?Td=0:(_o("color")||_o("colors")||_o("color=true")||_o("color=always"))&&(Td=1);"FORCE_COLOR"in xn&&(xn.FORCE_COLOR==="true"?Td=1:xn.FORCE_COLOR==="false"?Td=0:Td=xn.FORCE_COLOR.length===0?1:Math.min(parseInt(xn.FORCE_COLOR,10),3));function $U(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}o($U,"translateLevel");function jU(t,e){if(Td===0)return 0;if(_o("color=16m")||_o("color=full")||_o("color=truecolor"))return 3;if(_o("color=256"))return 2;if(t&&!e&&Td===void 0)return 0;let r=Td||0;if(xn.TERM==="dumb")return r;if(process.platform==="win32"){let n=aZe.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in xn)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in xn)||xn.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in xn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(xn.TEAMCITY_VERSION)?1:0;if(xn.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in xn){let n=parseInt((xn.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(xn.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(xn.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(xn.TERM)||"COLORTERM"in xn?1:r}o(jU,"supportsColor");function cZe(t){let e=jU(t,t&&t.isTTY);return $U(e)}o(cZe,"getSupportLevel");lde.exports={supportsColor:cZe,stdout:$U(jU(!0,cde.isatty(1))),stderr:$U(jU(!0,cde.isatty(2)))}});var dde=g((Vn,gN)=>{var lZe=require("tty"),mN=require("util");Vn.init=mZe;Vn.log=hZe;Vn.formatArgs=dZe;Vn.save=pZe;Vn.load=AZe;Vn.useColors=uZe;Vn.destroy=mN.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Vn.colors=[6,2,3,4,5,1];try{let t=WU();t&&(t.stderr||t).level>=2&&(Vn.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}Vn.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(i,s)=>s.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function uZe(){return"colors"in Vn.inspectOpts?!!Vn.inspectOpts.colors:lZe.isatty(process.stderr.fd)}o(uZe,"useColors");function dZe(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${i};1m${e} \x1B[0m`;t[0]=s+t[0].split(` `).join(` -`+s),t.push(i+"m+"+mN.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=lZe()+e+" "+t[0]}o(cZe,"formatArgs");function lZe(){return Vn.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(lZe,"getDate");function uZe(...t){return process.stderr.write(AN.format(...t)+` -`)}o(uZe,"log");function dZe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(dZe,"save");function fZe(){return process.env.DEBUG}o(fZe,"load");function hZe(t){t.inspectOpts={};let e=Object.keys(Vn.inspectOpts);for(let r=0;re.trim()).join(" ")};lde.O=function(t){return this.inspectOpts.colors=this.useColors,AN.inspect(t,this.inspectOpts)}});var gN=g((kJt,WU)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?WU.exports=ide():WU.exports=ude()});var hde=g(is=>{"use strict";var pZe=is&&is.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),AZe=is&&is.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),dde=is&&is.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&pZe(e,t,r);return AZe(e,t),e};Object.defineProperty(is,"__esModule",{value:!0});is.req=is.json=is.toBuffer=void 0;var mZe=dde(require("http")),gZe=dde(require("https"));async function fde(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(fde,"toBuffer");is.toBuffer=fde;async function yZe(t){let r=(await fde(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let i=n;throw i.message+=` (input: ${r})`,i}}o(yZe,"json");is.json=yZe;function EZe(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?gZe:mZe).request(t,e),i=new Promise((s,a)=>{n.once("response",s).once("error",a).end()});return n.then=i.then.bind(i),n}o(EZe,"req");is.req=EZe});var gde=g(Hs=>{"use strict";var Ade=Hs&&Hs.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),CZe=Hs&&Hs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),mde=Hs&&Hs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Ade(e,t,r);return CZe(e,t),e},bZe=Hs&&Hs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Ade(e,t,r)};Object.defineProperty(Hs,"__esModule",{value:!0});Hs.Agent=void 0;var wZe=mde(require("net")),pde=mde(require("http")),IZe=require("https");bZe(hde(),Hs);var Cc=Symbol("AgentBaseInternalState"),JU=class extends pde.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Cc]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(` -`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new wZe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],i=n.indexOf(r);i!==-1&&(n.splice(i,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?IZe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let i={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(i),a=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,i)).then(c=>{if(this.decrementSockets(s,a),c instanceof pde.Agent)try{return c.addRequest(e,i)}catch(l){return n(l)}this[Cc].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(s,a),n(c)})}createConnection(){let e=this[Cc].currentSocket;if(this[Cc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Cc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Cc]&&(this[Cc].defaultPort=e)}get protocol(){return this[Cc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Cc]&&(this[Cc].protocol=e)}};Hs.Agent=JU});var yde=g(jm=>{"use strict";var SZe=jm&&jm.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(jm,"__esModule",{value:!0});jm.parseProxyResponse=void 0;var BZe=SZe(gN()),yN=(0,BZe.default)("https-proxy-agent:parse-proxy-response");function xZe(t){return new Promise((e,r)=>{let n=0,i=[];function s(){let d=t.read();d?u(d):t.once("readable",s)}o(s,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",s)}o(a,"cleanup");function c(){a(),yN("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function l(d){a(),yN("onerror %o",d),r(d)}o(l,"onerror");function u(d){i.push(d),n+=d.length;let f=Buffer.concat(i,n),h=f.indexOf(`\r +`+s),t.push(i+"m+"+gN.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=fZe()+e+" "+t[0]}o(dZe,"formatArgs");function fZe(){return Vn.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(fZe,"getDate");function hZe(...t){return process.stderr.write(mN.format(...t)+` +`)}o(hZe,"log");function pZe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(pZe,"save");function AZe(){return process.env.DEBUG}o(AZe,"load");function mZe(t){t.inspectOpts={};let e=Object.keys(Vn.inspectOpts);for(let r=0;re.trim()).join(" ")};ude.O=function(t){return this.inspectOpts.colors=this.useColors,mN.inspect(t,this.inspectOpts)}});var yN=g((F6t,JU)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?JU.exports=sde():JU.exports=dde()});var pde=g(is=>{"use strict";var gZe=is&&is.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),yZe=is&&is.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),fde=is&&is.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&gZe(e,t,r);return yZe(e,t),e};Object.defineProperty(is,"__esModule",{value:!0});is.req=is.json=is.toBuffer=void 0;var EZe=fde(require("http")),CZe=fde(require("https"));async function hde(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(hde,"toBuffer");is.toBuffer=hde;async function bZe(t){let r=(await hde(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let i=n;throw i.message+=` (input: ${r})`,i}}o(bZe,"json");is.json=bZe;function wZe(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?CZe:EZe).request(t,e),i=new Promise((s,a)=>{n.once("response",s).once("error",a).end()});return n.then=i.then.bind(i),n}o(wZe,"req");is.req=wZe});var yde=g(Hs=>{"use strict";var mde=Hs&&Hs.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),IZe=Hs&&Hs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),gde=Hs&&Hs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&mde(e,t,r);return IZe(e,t),e},SZe=Hs&&Hs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&mde(e,t,r)};Object.defineProperty(Hs,"__esModule",{value:!0});Hs.Agent=void 0;var BZe=gde(require("net")),Ade=gde(require("http")),xZe=require("https");SZe(pde(),Hs);var Cc=Symbol("AgentBaseInternalState"),YU=class extends Ade.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Cc]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(` +`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new BZe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],i=n.indexOf(r);i!==-1&&(n.splice(i,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?xZe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let i={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(i),a=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,i)).then(c=>{if(this.decrementSockets(s,a),c instanceof Ade.Agent)try{return c.addRequest(e,i)}catch(l){return n(l)}this[Cc].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(s,a),n(c)})}createConnection(){let e=this[Cc].currentSocket;if(this[Cc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Cc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Cc]&&(this[Cc].defaultPort=e)}get protocol(){return this[Cc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Cc]&&(this[Cc].protocol=e)}};Hs.Agent=YU});var Ede=g(Wm=>{"use strict";var vZe=Wm&&Wm.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Wm,"__esModule",{value:!0});Wm.parseProxyResponse=void 0;var NZe=vZe(yN()),EN=(0,NZe.default)("https-proxy-agent:parse-proxy-response");function _Ze(t){return new Promise((e,r)=>{let n=0,i=[];function s(){let d=t.read();d?u(d):t.once("readable",s)}o(s,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",s)}o(a,"cleanup");function c(){a(),EN("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function l(d){a(),EN("onerror %o",d),r(d)}o(l,"onerror");function u(d){i.push(d),n+=d.length;let f=Buffer.concat(i,n),h=f.indexOf(`\r \r -`);if(h===-1){yN("have not received end of HTTP headers yet..."),s();return}let p=f.slice(0,h).toString("ascii").split(`\r -`),m=p.shift();if(!m)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let A=m.split(" "),E=+A[1],y=A.slice(2).join(" "),C={};for(let w of p){if(!w)continue;let B=w.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${w}"`));let P=w.slice(0,B).toLowerCase(),U=w.slice(B+1).trimStart(),N=C[P];typeof N=="string"?C[P]=[N,U]:Array.isArray(N)?N.push(U):C[P]=U}yN("got proxy server response: %o %o",m,C),a(),e({connect:{statusCode:E,statusText:y,headers:C},buffered:f})}o(u,"ondata"),t.on("error",l),t.on("end",c),s()})}o(xZe,"parseProxyResponse");jm.parseProxyResponse=xZe});var Sde=g(_o=>{"use strict";var vZe=_o&&_o.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),NZe=_o&&_o.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),wde=_o&&_o.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&vZe(e,t,r);return NZe(e,t),e},Ide=_o&&_o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_o,"__esModule",{value:!0});_o.HttpsProxyAgent=void 0;var EN=wde(require("net")),Ede=wde(require("tls")),RZe=Ide(require("assert")),_Ze=Ide(gN()),TZe=gde(),DZe=require("url"),QZe=yde(),$b=(0,_Ze.default)("https-proxy-agent"),Cde=o(t=>t.servername===void 0&&t.host&&!EN.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),CN=class extends TZe.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new DZe.URL(e):e,this.proxyHeaders=r?.headers??{},$b("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?bde(r,"headers"):null,host:n,port:i}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let i;n.protocol==="https:"?($b("Creating `tls.Socket`: %o",this.connectOpts),i=Ede.connect(Cde(this.connectOpts))):($b("Creating `net.Socket`: %o",this.connectOpts),i=EN.connect(this.connectOpts));let s=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=EN.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r +`);if(h===-1){EN("have not received end of HTTP headers yet..."),s();return}let p=f.slice(0,h).toString("ascii").split(`\r +`),m=p.shift();if(!m)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let A=m.split(" "),E=+A[1],y=A.slice(2).join(" "),C={};for(let w of p){if(!w)continue;let B=w.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${w}"`));let P=w.slice(0,B).toLowerCase(),U=w.slice(B+1).trimStart(),N=C[P];typeof N=="string"?C[P]=[N,U]:Array.isArray(N)?N.push(U):C[P]=U}EN("got proxy server response: %o %o",m,C),a(),e({connect:{statusCode:E,statusText:y,headers:C},buffered:f})}o(u,"ondata"),t.on("error",l),t.on("end",c),s()})}o(_Ze,"parseProxyResponse");Wm.parseProxyResponse=_Ze});var Bde=g(Ro=>{"use strict";var RZe=Ro&&Ro.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),TZe=Ro&&Ro.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ide=Ro&&Ro.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&RZe(e,t,r);return TZe(e,t),e},Sde=Ro&&Ro.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ro,"__esModule",{value:!0});Ro.HttpsProxyAgent=void 0;var CN=Ide(require("net")),Cde=Ide(require("tls")),DZe=Sde(require("assert")),QZe=Sde(yN()),kZe=yde(),PZe=require("url"),OZe=Ede(),jb=(0,QZe.default)("https-proxy-agent"),bde=o(t=>t.servername===void 0&&t.host&&!CN.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),bN=class extends kZe.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new PZe.URL(e):e,this.proxyHeaders=r?.headers??{},jb("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?wde(r,"headers"):null,host:n,port:i}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let i;n.protocol==="https:"?(jb("Creating `tls.Socket`: %o",this.connectOpts),i=Cde.connect(bde(this.connectOpts))):(jb("Creating `net.Socket`: %o",this.connectOpts),i=CN.connect(this.connectOpts));let s=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=CN.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r `;if(n.username||n.password){let h=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;s["Proxy-Authorization"]=`Basic ${Buffer.from(h).toString("base64")}`}s.Host=`${a}:${r.port}`,s["Proxy-Connection"]||(s["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let h of Object.keys(s))c+=`${h}: ${s[h]}\r -`;let l=(0,QZe.parseProxyResponse)(i);i.write(`${c}\r -`);let{connect:u,buffered:d}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)return e.once("socket",kZe),r.secureEndpoint?($b("Upgrading socket connection to TLS"),Ede.connect({...bde(Cde(r),"host","path","port"),socket:i})):i;i.destroy();let f=new EN.Socket({writable:!1});return f.readable=!0,e.once("socket",h=>{$b("Replaying proxy buffer for failed request"),(0,RZe.default)(h.listenerCount("data")>0),h.push(d),h.push(null)}),f}};CN.protocols=["http","https"];_o.HttpsProxyAgent=CN;function kZe(t){t.resume()}o(kZe,"resume");function bde(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(bde,"omit")});var vde=g(ss=>{"use strict";var PZe=ss&&ss.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),OZe=ss&&ss.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Bde=ss&&ss.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&PZe(e,t,r);return OZe(e,t),e};Object.defineProperty(ss,"__esModule",{value:!0});ss.req=ss.json=ss.toBuffer=void 0;var LZe=Bde(require("http")),FZe=Bde(require("https"));async function xde(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(xde,"toBuffer");ss.toBuffer=xde;async function MZe(t){let r=(await xde(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let i=n;throw i.message+=` (input: ${r})`,i}}o(MZe,"json");ss.json=MZe;function UZe(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?FZe:LZe).request(t,e),i=new Promise((s,a)=>{n.once("response",s).once("error",a).end()});return n.then=i.then.bind(i),n}o(UZe,"req");ss.req=UZe});var Tde=g(zs=>{"use strict";var Rde=zs&&zs.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),qZe=zs&&zs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),_de=zs&&zs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Rde(e,t,r);return qZe(e,t),e},GZe=zs&&zs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Rde(e,t,r)};Object.defineProperty(zs,"__esModule",{value:!0});zs.Agent=void 0;var HZe=_de(require("net")),Nde=_de(require("http")),zZe=require("https");GZe(vde(),zs);var bc=Symbol("AgentBaseInternalState"),YU=class extends Nde.Agent{static{o(this,"Agent")}constructor(e){super(e),this[bc]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(` -`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new HZe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],i=n.indexOf(r);i!==-1&&(n.splice(i,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?zZe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let i={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(i),a=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,i)).then(c=>{if(this.decrementSockets(s,a),c instanceof Nde.Agent)return c.addRequest(e,i);this[bc].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(s,a),n(c)})}createConnection(){let e=this[bc].currentSocket;if(this[bc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[bc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[bc]&&(this[bc].defaultPort=e)}get protocol(){return this[bc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[bc]&&(this[bc].protocol=e)}};zs.Agent=YU});var kde=g(To=>{"use strict";var VZe=To&&To.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),$Ze=To&&To.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Qde=To&&To.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&VZe(e,t,r);return $Ze(e,t),e},jZe=To&&To.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(To,"__esModule",{value:!0});To.HttpProxyAgent=void 0;var WZe=Qde(require("net")),JZe=Qde(require("tls")),YZe=jZe(gN()),KZe=require("events"),XZe=Tde(),Dde=require("url"),Wm=(0,YZe.default)("http-proxy-agent"),bN=class extends XZe.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new Dde.URL(e):e,this.proxyHeaders=r?.headers??{},Wm("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?ZZe(r,"headers"):null,host:n,port:i}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,i=r.secureEndpoint?"https:":"http:",s=e.getHeader("host")||"localhost",a=`${i}//${s}`,c=new Dde.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let u=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(l)){let d=l[u];d&&e.setHeader(u,d)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,i;Wm("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Wm("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,i=n.indexOf(`\r +`;let l=(0,OZe.parseProxyResponse)(i);i.write(`${c}\r +`);let{connect:u,buffered:d}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)return e.once("socket",LZe),r.secureEndpoint?(jb("Upgrading socket connection to TLS"),Cde.connect({...wde(bde(r),"host","path","port"),socket:i})):i;i.destroy();let f=new CN.Socket({writable:!1});return f.readable=!0,e.once("socket",h=>{jb("Replaying proxy buffer for failed request"),(0,DZe.default)(h.listenerCount("data")>0),h.push(d),h.push(null)}),f}};bN.protocols=["http","https"];Ro.HttpsProxyAgent=bN;function LZe(t){t.resume()}o(LZe,"resume");function wde(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(wde,"omit")});var Nde=g(ss=>{"use strict";var FZe=ss&&ss.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),MZe=ss&&ss.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),xde=ss&&ss.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&FZe(e,t,r);return MZe(e,t),e};Object.defineProperty(ss,"__esModule",{value:!0});ss.req=ss.json=ss.toBuffer=void 0;var UZe=xde(require("http")),qZe=xde(require("https"));async function vde(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(vde,"toBuffer");ss.toBuffer=vde;async function GZe(t){let r=(await vde(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let i=n;throw i.message+=` (input: ${r})`,i}}o(GZe,"json");ss.json=GZe;function HZe(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?qZe:UZe).request(t,e),i=new Promise((s,a)=>{n.once("response",s).once("error",a).end()});return n.then=i.then.bind(i),n}o(HZe,"req");ss.req=HZe});var Dde=g(zs=>{"use strict";var Rde=zs&&zs.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),zZe=zs&&zs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Tde=zs&&zs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Rde(e,t,r);return zZe(e,t),e},VZe=zs&&zs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Rde(e,t,r)};Object.defineProperty(zs,"__esModule",{value:!0});zs.Agent=void 0;var $Ze=Tde(require("net")),_de=Tde(require("http")),jZe=require("https");VZe(Nde(),zs);var bc=Symbol("AgentBaseInternalState"),KU=class extends _de.Agent{static{o(this,"Agent")}constructor(e){super(e),this[bc]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(` +`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new $Ze.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],i=n.indexOf(r);i!==-1&&(n.splice(i,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?jZe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let i={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(i),a=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,i)).then(c=>{if(this.decrementSockets(s,a),c instanceof _de.Agent)return c.addRequest(e,i);this[bc].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(s,a),n(c)})}createConnection(){let e=this[bc].currentSocket;if(this[bc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[bc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[bc]&&(this[bc].defaultPort=e)}get protocol(){return this[bc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[bc]&&(this[bc].protocol=e)}};zs.Agent=KU});var Pde=g(To=>{"use strict";var WZe=To&&To.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),JZe=To&&To.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),kde=To&&To.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&WZe(e,t,r);return JZe(e,t),e},YZe=To&&To.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(To,"__esModule",{value:!0});To.HttpProxyAgent=void 0;var KZe=kde(require("net")),XZe=kde(require("tls")),ZZe=YZe(yN()),eet=require("events"),tet=Dde(),Qde=require("url"),Jm=(0,ZZe.default)("http-proxy-agent"),wN=class extends tet.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new Qde.URL(e):e,this.proxyHeaders=r?.headers??{},Jm("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?ret(r,"headers"):null,host:n,port:i}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,i=r.secureEndpoint?"https:":"http:",s=e.getHeader("host")||"localhost",a=`${i}//${s}`,c=new Qde.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let u=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(l)){let d=l[u];d&&e.setHeader(u,d)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,i;Jm("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Jm("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,i=n.indexOf(`\r \r -`)+4,e.outputData[0].data=e._header+n.substring(i),Wm("Output buffer: %o",e.outputData[0].data));let s;return this.proxy.protocol==="https:"?(Wm("Creating `tls.Socket`: %o",this.connectOpts),s=JZe.connect(this.connectOpts)):(Wm("Creating `net.Socket`: %o",this.connectOpts),s=WZe.connect(this.connectOpts)),await(0,KZe.once)(s,"connect"),s}};bN.protocols=["http","https"];To.HttpProxyAgent=bN;function ZZe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(ZZe,"omit")});var rfe=g(PN=>{"use strict";Object.defineProperty(PN,"__esModule",{value:!0});PN.state=void 0;PN.state={instrumenterImplementation:void 0}});var Efe=g(UN=>{"use strict";Object.defineProperty(UN,"__esModule",{value:!0});UN.state=void 0;UN.state={operationRequestMap:new WeakMap}});var Kpe=g(fg=>{"use strict";Object.defineProperty(fg,"__esModule",{value:!0});var bst=require("os"),wst=require("util");function Ist(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(Ist,"_interopDefaultLegacy");var Sst=Ist(wst);function Bst(t,...e){process.stderr.write(`${Sst.default.format(t,...e)}${bst.EOL}`)}o(Bst,"log");var qpe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Hpe,N5=[],R5=[],s_=[];qpe&&_5(qpe);var zpe=Object.assign(t=>Vpe(t),{enable:_5,enabled:T5,disable:xst,log:Bst});function _5(t){Hpe=t,N5=[],R5=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?R5.push(new RegExp(`^${n.substr(1)}$`)):N5.push(new RegExp(`^${n}$`));for(let n of s_)n.enabled=T5(n.namespace)}o(_5,"enable");function T5(t){if(t.endsWith("*"))return!0;for(let e of R5)if(e.test(t))return!1;for(let e of N5)if(e.test(t))return!0;return!1}o(T5,"enabled");function xst(){let t=Hpe||"";return _5(""),t}o(xst,"disable");function Vpe(t){let e=Object.assign(r,{enabled:T5(t),destroy:vst,log:zpe.log,namespace:t,extend:Nst});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return o(r,"debug"),s_.push(e),e}o(Vpe,"createDebugger");function vst(){let t=s_.indexOf(this);return t>=0?(s_.splice(t,1),!0):!1}o(vst,"destroy");function Nst(t){let e=Vpe(`${this.namespace}:${t}`);return e.log=this.log,e}o(Nst,"extend");var Q0=zpe,$pe=new Set,n_=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,o_,a_=Q0("azure");a_.log=(...t)=>{Q0.log(...t)};var D5=["verbose","info","warning","error"];n_&&(Ype(n_)?jpe(n_):console.error(`AZURE_LOG_LEVEL set to unknown log level '${n_}'; logging is not enabled. Acceptable values: ${D5.join(", ")}.`));function jpe(t){if(t&&!Ype(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${D5.join(",")}`);o_=t;let e=[];for(let r of $pe)Jpe(r)&&e.push(r.namespace);Q0.enable(e.join(","))}o(jpe,"setLogLevel");function Rst(){return o_}o(Rst,"getLogLevel");var Gpe={verbose:400,info:300,warning:200,error:100};function _st(t){let e=a_.extend(t);return Wpe(a_,e),{error:i_(e,"error"),warning:i_(e,"warning"),info:i_(e,"info"),verbose:i_(e,"verbose")}}o(_st,"createClientLogger");function Wpe(t,e){e.log=(...r)=>{t.log(...r)}}o(Wpe,"patchLogMethod");function i_(t,e){let r=Object.assign(t.extend(e),{level:e});if(Wpe(t,r),Jpe(r)){let n=Q0.disable();Q0.enable(n+","+r.namespace)}return $pe.add(r),r}o(i_,"createLogger");function Jpe(t){return!!(o_&&Gpe[t.level]<=Gpe[o_])}o(Jpe,"shouldEnable");function Ype(t){return D5.includes(t)}o(Ype,"isAzureLogLevel");fg.AzureLogger=a_;fg.createClientLogger=_st;fg.getLogLevel=Rst;fg.setLogLevel=jpe});var P5=g(P0=>{"use strict";Object.defineProperty(P0,"__esModule",{value:!0});var hg=new WeakMap,c_=new WeakMap,k0=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,hg.set(this,[]),c_.set(this,!1)}get aborted(){if(!c_.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return c_.get(this)}static get none(){return new t}addEventListener(e,r){if(!hg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");hg.get(this).push(r)}removeEventListener(e,r){if(!hg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=hg.get(this),i=n.indexOf(r);i>-1&&n.splice(i,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function Xpe(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=hg.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),c_.set(t,!0)}o(Xpe,"abortSignal");var Q5=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},k5=class{static{o(this,"AbortController")}constructor(e){if(this._signal=new k0,!!e){Array.isArray(e)||(e=arguments);for(let r of e)r.aborted?this.abort():r.addEventListener("abort",()=>{this.abort()})}}get signal(){return this._signal}abort(){Xpe(this._signal)}static timeout(e){let r=new k0,n=setTimeout(Xpe,e,r);return typeof n.unref=="function"&&n.unref(),r}};P0.AbortController=k5;P0.AbortError=Q5;P0.AbortSignal=k0});var nAe=g(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});var Tst=P5(),G5=require("crypto");function Zpe(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:i}=e??{};return new Promise((s,a)=>{function c(){a(new Tst.AbortError(i??"The operation was aborted."))}o(c,"rejectOnAbort");function l(){n?.removeEventListener("abort",u)}o(l,"removeListeners");function u(){r?.(),l(),c()}if(o(u,"onAbort"),n?.aborted)return c();try{t(d=>{l(),s(d)},d=>{l(),a(d)})}catch(d){a(d)}n?.addEventListener("abort",u)})}o(Zpe,"createAbortablePromise");var Dst="The delay was aborted.";function Qst(t,e){let r,{abortSignal:n,abortErrorMsg:i}=e??{};return Zpe(s=>{r=setTimeout(s,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:i??Dst})}o(Qst,"delay");function kst(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t}o(kst,"getRandomIntegerInclusive");function eAe(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof Date)}o(eAe,"isObject");function tAe(t){if(eAe(t)){let e=typeof t.name=="string",r=typeof t.message=="string";return e&&r}return!1}o(tAe,"isError");function Pst(t){if(tAe(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}o(Pst,"getErrorMessage");async function Ost(t,e,r){let n=Buffer.from(t,"base64");return G5.createHmac("sha256",n).update(e).digest(r)}o(Ost,"computeSha256Hmac");async function Lst(t,e){return G5.createHash("sha256").update(t).digest(e)}o(Lst,"computeSha256Hash");function H5(t){return typeof t<"u"&&t!==null}o(H5,"isDefined");function Fst(t,e){if(!H5(t)||typeof t!="object")return!1;for(let r of e)if(!rAe(t,r))return!1;return!0}o(Fst,"isObjectWithProperties");function rAe(t,e){return H5(t)&&typeof t=="object"&&e in t}o(rAe,"objectHasProperty");function Mst(){let t="";for(let e=0;e<32;e++){let r=Math.floor(Math.random()*16);e===12?t+="4":e===16?t+=r&3|8:t+=r.toString(16),(e===7||e===11||e===15||e===19)&&(t+="-")}return t}o(Mst,"generateUUID");var O5,q5=typeof((O5=globalThis?.crypto)===null||O5===void 0?void 0:O5.randomUUID)=="function"?globalThis.crypto.randomUUID.bind(globalThis.crypto):G5.randomUUID;q5||(q5=Mst);function Ust(){return q5()}o(Ust,"randomUUID");var L5,F5,M5,U5,qst=typeof window<"u"&&typeof window.document<"u",Gst=typeof self=="object"&&typeof self?.importScripts=="function"&&(((L5=self.constructor)===null||L5===void 0?void 0:L5.name)==="DedicatedWorkerGlobalScope"||((F5=self.constructor)===null||F5===void 0?void 0:F5.name)==="ServiceWorkerGlobalScope"||((M5=self.constructor)===null||M5===void 0?void 0:M5.name)==="SharedWorkerGlobalScope"),Hst=typeof process<"u"&&!!process.version&&!!(!((U5=process.versions)===null||U5===void 0)&&U5.node),zst=typeof Deno<"u"&&typeof Deno.version<"u"&&typeof Deno.version.deno<"u",Vst=typeof Bun<"u"&&typeof Bun.version<"u",$st=typeof navigator<"u"&&navigator?.product==="ReactNative";function jst(t,e){switch(e){case"utf-8":return Kst(t);case"base64":return Jst(t);case"base64url":return Yst(t)}}o(jst,"uint8ArrayToString");function Wst(t,e){switch(e){case"utf-8":return Xst(t);case"base64":return Zst(t);case"base64url":return eot(t)}}o(Wst,"stringToUint8Array");function Jst(t){return Buffer.from(t).toString("base64")}o(Jst,"uint8ArrayToBase64");function Yst(t){return Buffer.from(t).toString("base64url")}o(Yst,"uint8ArrayToBase64Url");function Kst(t){return Buffer.from(t).toString("utf-8")}o(Kst,"uint8ArrayToUtf8String");function Xst(t){return Buffer.from(t)}o(Xst,"utf8StringToUint8Array");function Zst(t){return Buffer.from(t,"base64")}o(Zst,"base64ToUint8Array");function eot(t){return Buffer.from(t,"base64url")}o(eot,"base64UrlToUint8Array");_r.computeSha256Hash=Lst;_r.computeSha256Hmac=Ost;_r.createAbortablePromise=Zpe;_r.delay=Qst;_r.getErrorMessage=Pst;_r.getRandomIntegerInclusive=kst;_r.isBrowser=qst;_r.isBun=Vst;_r.isDefined=H5;_r.isDeno=zst;_r.isError=tAe;_r.isNode=Hst;_r.isObject=eAe;_r.isObjectWithProperties=Fst;_r.isReactNative=$st;_r.isWebWorker=Gst;_r.objectHasProperty=rAe;_r.randomUUID=Ust;_r.stringToUint8Array=Wst;_r.uint8ArrayToString=jst});var SAe=g(ep=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0});var tot=Kpe(),iAe=P5(),rot=nAe(),Zh=tot.createClientLogger("core-lro"),oAe=2e3,aAe=["succeeded","canceled","failed"];function cAe(t){try{return JSON.parse(t).state}catch{throw new Error(`Unable to deserialize input state: ${t}`)}}o(cAe,"deserializeState");function sAe(t){let{state:e,stateProxy:r,isOperationError:n}=t;return i=>{throw n(i)&&(r.setError(e,i),r.setFailed(e)),i}}o(sAe,"setStateError");function not(t,e){let r=t;return r.slice(-1)!=="."&&(r=r+"."),r+" "+e}o(not,"appendReadableErrorMessage");function iot(t){let e=t.message,r=t.code,n=t;for(;n.innererror;)n=n.innererror,r=n.code,e=not(e,n.message);return{code:r,message:e}}o(iot,"simplifyError");function lAe(t){let{state:e,stateProxy:r,status:n,isDone:i,processResult:s,getError:a,response:c,setErrorAsResult:l}=t;switch(n){case"succeeded":{r.setSucceeded(e);break}case"failed":{let u=a?.(c),d="";if(u){let{code:h,message:p}=iot(u);d=`. ${h}. ${p}`}let f=`The long-running operation has failed${d}`;r.setError(e,new Error(f)),r.setFailed(e),Zh.warning(f);break}case"canceled":{r.setCanceled(e);break}}(i?.(c,e)||i===void 0&&["succeeded","canceled"].concat(l?[]:["failed"]).includes(n))&&r.setResult(e,sot({response:c,state:e,processResult:s}))}o(lAe,"processOperationStatus");function sot(t){let{processResult:e,response:r,state:n}=t;return e?e(r,n):r}o(sot,"buildResult");async function uAe(t){let{init:e,stateProxy:r,processResult:n,getOperationStatus:i,withOperationLocation:s,setErrorAsResult:a}=t,{operationLocation:c,resourceLocation:l,metadata:u,response:d}=await e();c&&s?.(c,!1);let f={metadata:u,operationLocation:c,resourceLocation:l};Zh.verbose("LRO: Operation description:",f);let h=r.initState(f),p=i({response:d,state:h,operationLocation:c});return lAe({state:h,status:p,stateProxy:r,response:d,setErrorAsResult:a,processResult:n}),h}o(uAe,"initOperation");async function oot(t){let{poll:e,state:r,stateProxy:n,operationLocation:i,getOperationStatus:s,getResourceLocation:a,isOperationError:c,options:l}=t,u=await e(i,l).catch(sAe({state:r,stateProxy:n,isOperationError:c})),d=s(u,r);if(Zh.verbose(`LRO: Status: +`)+4,e.outputData[0].data=e._header+n.substring(i),Jm("Output buffer: %o",e.outputData[0].data));let s;return this.proxy.protocol==="https:"?(Jm("Creating `tls.Socket`: %o",this.connectOpts),s=XZe.connect(this.connectOpts)):(Jm("Creating `net.Socket`: %o",this.connectOpts),s=KZe.connect(this.connectOpts)),await(0,eet.once)(s,"connect"),s}};wN.protocols=["http","https"];To.HttpProxyAgent=wN;function ret(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(ret,"omit")});var nfe=g(ON=>{"use strict";Object.defineProperty(ON,"__esModule",{value:!0});ON.state=void 0;ON.state={instrumenterImplementation:void 0}});var Cfe=g(qN=>{"use strict";Object.defineProperty(qN,"__esModule",{value:!0});qN.state=void 0;qN.state={operationRequestMap:new WeakMap}});var Xpe=g(hg=>{"use strict";Object.defineProperty(hg,"__esModule",{value:!0});var Sst=require("os"),Bst=require("util");function xst(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(xst,"_interopDefaultLegacy");var vst=xst(Bst);function Nst(t,...e){process.stderr.write(`${vst.default.format(t,...e)}${Sst.EOL}`)}o(Nst,"log");var Gpe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,zpe,_5=[],R5=[],oR=[];Gpe&&T5(Gpe);var Vpe=Object.assign(t=>$pe(t),{enable:T5,enabled:D5,disable:_st,log:Nst});function T5(t){zpe=t,_5=[],R5=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?R5.push(new RegExp(`^${n.substr(1)}$`)):_5.push(new RegExp(`^${n}$`));for(let n of oR)n.enabled=D5(n.namespace)}o(T5,"enable");function D5(t){if(t.endsWith("*"))return!0;for(let e of R5)if(e.test(t))return!1;for(let e of _5)if(e.test(t))return!0;return!1}o(D5,"enabled");function _st(){let t=zpe||"";return T5(""),t}o(_st,"disable");function $pe(t){let e=Object.assign(r,{enabled:D5(t),destroy:Rst,log:Vpe.log,namespace:t,extend:Tst});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return o(r,"debug"),oR.push(e),e}o($pe,"createDebugger");function Rst(){let t=oR.indexOf(this);return t>=0?(oR.splice(t,1),!0):!1}o(Rst,"destroy");function Tst(t){let e=$pe(`${this.namespace}:${t}`);return e.log=this.log,e}o(Tst,"extend");var k0=Vpe,jpe=new Set,iR=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,aR,cR=k0("azure");cR.log=(...t)=>{k0.log(...t)};var Q5=["verbose","info","warning","error"];iR&&(Kpe(iR)?Wpe(iR):console.error(`AZURE_LOG_LEVEL set to unknown log level '${iR}'; logging is not enabled. Acceptable values: ${Q5.join(", ")}.`));function Wpe(t){if(t&&!Kpe(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${Q5.join(",")}`);aR=t;let e=[];for(let r of jpe)Ype(r)&&e.push(r.namespace);k0.enable(e.join(","))}o(Wpe,"setLogLevel");function Dst(){return aR}o(Dst,"getLogLevel");var Hpe={verbose:400,info:300,warning:200,error:100};function Qst(t){let e=cR.extend(t);return Jpe(cR,e),{error:sR(e,"error"),warning:sR(e,"warning"),info:sR(e,"info"),verbose:sR(e,"verbose")}}o(Qst,"createClientLogger");function Jpe(t,e){e.log=(...r)=>{t.log(...r)}}o(Jpe,"patchLogMethod");function sR(t,e){let r=Object.assign(t.extend(e),{level:e});if(Jpe(t,r),Ype(r)){let n=k0.disable();k0.enable(n+","+r.namespace)}return jpe.add(r),r}o(sR,"createLogger");function Ype(t){return!!(aR&&Hpe[t.level]<=Hpe[aR])}o(Ype,"shouldEnable");function Kpe(t){return Q5.includes(t)}o(Kpe,"isAzureLogLevel");hg.AzureLogger=cR;hg.createClientLogger=Qst;hg.getLogLevel=Dst;hg.setLogLevel=Wpe});var O5=g(O0=>{"use strict";Object.defineProperty(O0,"__esModule",{value:!0});var pg=new WeakMap,lR=new WeakMap,P0=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,pg.set(this,[]),lR.set(this,!1)}get aborted(){if(!lR.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return lR.get(this)}static get none(){return new t}addEventListener(e,r){if(!pg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");pg.get(this).push(r)}removeEventListener(e,r){if(!pg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=pg.get(this),i=n.indexOf(r);i>-1&&n.splice(i,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function Zpe(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=pg.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),lR.set(t,!0)}o(Zpe,"abortSignal");var k5=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},P5=class{static{o(this,"AbortController")}constructor(e){if(this._signal=new P0,!!e){Array.isArray(e)||(e=arguments);for(let r of e)r.aborted?this.abort():r.addEventListener("abort",()=>{this.abort()})}}get signal(){return this._signal}abort(){Zpe(this._signal)}static timeout(e){let r=new P0,n=setTimeout(Zpe,e,r);return typeof n.unref=="function"&&n.unref(),r}};O0.AbortController=P5;O0.AbortError=k5;O0.AbortSignal=P0});var iAe=g(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});var kst=O5(),H5=require("crypto");function eAe(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:i}=e??{};return new Promise((s,a)=>{function c(){a(new kst.AbortError(i??"The operation was aborted."))}o(c,"rejectOnAbort");function l(){n?.removeEventListener("abort",u)}o(l,"removeListeners");function u(){r?.(),l(),c()}if(o(u,"onAbort"),n?.aborted)return c();try{t(d=>{l(),s(d)},d=>{l(),a(d)})}catch(d){a(d)}n?.addEventListener("abort",u)})}o(eAe,"createAbortablePromise");var Pst="The delay was aborted.";function Ost(t,e){let r,{abortSignal:n,abortErrorMsg:i}=e??{};return eAe(s=>{r=setTimeout(s,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:i??Pst})}o(Ost,"delay");function Lst(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t}o(Lst,"getRandomIntegerInclusive");function tAe(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof Date)}o(tAe,"isObject");function rAe(t){if(tAe(t)){let e=typeof t.name=="string",r=typeof t.message=="string";return e&&r}return!1}o(rAe,"isError");function Fst(t){if(rAe(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}o(Fst,"getErrorMessage");async function Mst(t,e,r){let n=Buffer.from(t,"base64");return H5.createHmac("sha256",n).update(e).digest(r)}o(Mst,"computeSha256Hmac");async function Ust(t,e){return H5.createHash("sha256").update(t).digest(e)}o(Ust,"computeSha256Hash");function z5(t){return typeof t<"u"&&t!==null}o(z5,"isDefined");function qst(t,e){if(!z5(t)||typeof t!="object")return!1;for(let r of e)if(!nAe(t,r))return!1;return!0}o(qst,"isObjectWithProperties");function nAe(t,e){return z5(t)&&typeof t=="object"&&e in t}o(nAe,"objectHasProperty");function Gst(){let t="";for(let e=0;e<32;e++){let r=Math.floor(Math.random()*16);e===12?t+="4":e===16?t+=r&3|8:t+=r.toString(16),(e===7||e===11||e===15||e===19)&&(t+="-")}return t}o(Gst,"generateUUID");var L5,G5=typeof((L5=globalThis?.crypto)===null||L5===void 0?void 0:L5.randomUUID)=="function"?globalThis.crypto.randomUUID.bind(globalThis.crypto):H5.randomUUID;G5||(G5=Gst);function Hst(){return G5()}o(Hst,"randomUUID");var F5,M5,U5,q5,zst=typeof window<"u"&&typeof window.document<"u",Vst=typeof self=="object"&&typeof self?.importScripts=="function"&&(((F5=self.constructor)===null||F5===void 0?void 0:F5.name)==="DedicatedWorkerGlobalScope"||((M5=self.constructor)===null||M5===void 0?void 0:M5.name)==="ServiceWorkerGlobalScope"||((U5=self.constructor)===null||U5===void 0?void 0:U5.name)==="SharedWorkerGlobalScope"),$st=typeof process<"u"&&!!process.version&&!!(!((q5=process.versions)===null||q5===void 0)&&q5.node),jst=typeof Deno<"u"&&typeof Deno.version<"u"&&typeof Deno.version.deno<"u",Wst=typeof Bun<"u"&&typeof Bun.version<"u",Jst=typeof navigator<"u"&&navigator?.product==="ReactNative";function Yst(t,e){switch(e){case"utf-8":return eot(t);case"base64":return Xst(t);case"base64url":return Zst(t)}}o(Yst,"uint8ArrayToString");function Kst(t,e){switch(e){case"utf-8":return tot(t);case"base64":return rot(t);case"base64url":return not(t)}}o(Kst,"stringToUint8Array");function Xst(t){return Buffer.from(t).toString("base64")}o(Xst,"uint8ArrayToBase64");function Zst(t){return Buffer.from(t).toString("base64url")}o(Zst,"uint8ArrayToBase64Url");function eot(t){return Buffer.from(t).toString("utf-8")}o(eot,"uint8ArrayToUtf8String");function tot(t){return Buffer.from(t)}o(tot,"utf8StringToUint8Array");function rot(t){return Buffer.from(t,"base64")}o(rot,"base64ToUint8Array");function not(t){return Buffer.from(t,"base64url")}o(not,"base64UrlToUint8Array");Rr.computeSha256Hash=Ust;Rr.computeSha256Hmac=Mst;Rr.createAbortablePromise=eAe;Rr.delay=Ost;Rr.getErrorMessage=Fst;Rr.getRandomIntegerInclusive=Lst;Rr.isBrowser=zst;Rr.isBun=Wst;Rr.isDefined=z5;Rr.isDeno=jst;Rr.isError=rAe;Rr.isNode=$st;Rr.isObject=tAe;Rr.isObjectWithProperties=qst;Rr.isReactNative=Jst;Rr.isWebWorker=Vst;Rr.objectHasProperty=nAe;Rr.randomUUID=Hst;Rr.stringToUint8Array=Kst;Rr.uint8ArrayToString=Yst});var BAe=g(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});var iot=Xpe(),sAe=O5(),sot=iAe(),ep=iot.createClientLogger("core-lro"),aAe=2e3,cAe=["succeeded","canceled","failed"];function lAe(t){try{return JSON.parse(t).state}catch{throw new Error(`Unable to deserialize input state: ${t}`)}}o(lAe,"deserializeState");function oAe(t){let{state:e,stateProxy:r,isOperationError:n}=t;return i=>{throw n(i)&&(r.setError(e,i),r.setFailed(e)),i}}o(oAe,"setStateError");function oot(t,e){let r=t;return r.slice(-1)!=="."&&(r=r+"."),r+" "+e}o(oot,"appendReadableErrorMessage");function aot(t){let e=t.message,r=t.code,n=t;for(;n.innererror;)n=n.innererror,r=n.code,e=oot(e,n.message);return{code:r,message:e}}o(aot,"simplifyError");function uAe(t){let{state:e,stateProxy:r,status:n,isDone:i,processResult:s,getError:a,response:c,setErrorAsResult:l}=t;switch(n){case"succeeded":{r.setSucceeded(e);break}case"failed":{let u=a?.(c),d="";if(u){let{code:h,message:p}=aot(u);d=`. ${h}. ${p}`}let f=`The long-running operation has failed${d}`;r.setError(e,new Error(f)),r.setFailed(e),ep.warning(f);break}case"canceled":{r.setCanceled(e);break}}(i?.(c,e)||i===void 0&&["succeeded","canceled"].concat(l?[]:["failed"]).includes(n))&&r.setResult(e,cot({response:c,state:e,processResult:s}))}o(uAe,"processOperationStatus");function cot(t){let{processResult:e,response:r,state:n}=t;return e?e(r,n):r}o(cot,"buildResult");async function dAe(t){let{init:e,stateProxy:r,processResult:n,getOperationStatus:i,withOperationLocation:s,setErrorAsResult:a}=t,{operationLocation:c,resourceLocation:l,metadata:u,response:d}=await e();c&&s?.(c,!1);let f={metadata:u,operationLocation:c,resourceLocation:l};ep.verbose("LRO: Operation description:",f);let h=r.initState(f),p=i({response:d,state:h,operationLocation:c});return uAe({state:h,status:p,stateProxy:r,response:d,setErrorAsResult:a,processResult:n}),h}o(dAe,"initOperation");async function lot(t){let{poll:e,state:r,stateProxy:n,operationLocation:i,getOperationStatus:s,getResourceLocation:a,isOperationError:c,options:l}=t,u=await e(i,l).catch(oAe({state:r,stateProxy:n,isOperationError:c})),d=s(u,r);if(ep.verbose(`LRO: Status: Polling from: ${r.config.operationLocation} Operation status: ${d} - Polling status: ${aAe.includes(d)?"Stopped":"Running"}`),d==="succeeded"){let f=a(u,r);if(f!==void 0)return{response:await e(f).catch(sAe({state:r,stateProxy:n,isOperationError:c})),status:d}}return{response:u,status:d}}o(oot,"pollOperationHelper");async function dAe(t){let{poll:e,state:r,stateProxy:n,options:i,getOperationStatus:s,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:d,processResult:f,getError:h,updateState:p,setDelay:m,isDone:A,setErrorAsResult:E}=t,{operationLocation:y}=r.config;if(y!==void 0){let{response:C,status:w}=await oot({poll:e,getOperationStatus:s,state:r,stateProxy:n,operationLocation:y,getResourceLocation:a,isOperationError:l,options:i});if(lAe({status:w,response:C,state:r,stateProxy:n,isDone:A,processResult:f,getError:h,setErrorAsResult:E}),!aAe.includes(w)){let B=d?.(C);B&&m(B);let P=c?.(C,r);if(P!==void 0){let U=y!==P;r.config.operationLocation=P,u?.(P,U)}else u?.(y,!1)}p?.(r,C)}}o(dAe,"pollOperation");function fAe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(fAe,"getOperationLocationPollingUrl");function hAe(t){return t.headers.location}o(hAe,"getLocationHeader");function pAe(t){return t.headers["operation-location"]}o(pAe,"getOperationLocationHeader");function AAe(t){return t.headers["azure-asyncoperation"]}o(AAe,"getAzureAsyncOperationHeader");function aot(t){var e;let{location:r,requestMethod:n,requestPath:i,resourceLocationConfig:s}=t;switch(n){case"PUT":return i;case"DELETE":return;case"PATCH":return(e=a())!==null&&e!==void 0?e:i;default:return a()}function a(){switch(s){case"azure-async-operation":return;case"original-uri":return i;default:return r}}o(a,"getDefault")}o(aot,"findResourceLocation");function mAe(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:i}=t,s=pAe(e),a=AAe(e),c=fAe({operationLocation:s,azureAsyncOperation:a}),l=hAe(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:aot({requestMethod:u,location:l,requestPath:n,resourceLocationConfig:i})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}o(mAe,"inferLroMode");function gAe(t){let{status:e,statusCode:r}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return $5(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return Zh.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(gAe,"transformStatus");function cot(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return gAe({status:r,statusCode:t.statusCode})}o(cot,"getStatus");function lot(t){var e,r;let{properties:n,provisioningState:i}=(e=t.body)!==null&&e!==void 0?e:{},s=(r=n?.provisioningState)!==null&&r!==void 0?r:i;return gAe({status:s,statusCode:t.statusCode})}o(lot,"getProvisioningState");function $5(t){return t===202?"running":t<300?"succeeded":"failed"}o($5,"toOperationStatus");function yAe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?uot(new Date(e)):r*1e3}}o(yAe,"parseRetryAfter");function EAe(t){let e=t.flatResponse.error;if(!e){Zh.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Zh.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}o(EAe,"getErrorFromResponse");function uot(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e{let a=await i.sendInitialRequest(),c=mAe({rawResponse:a.rawResponse,requestPath:i.requestPath,requestMethod:i.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:n?({flatResponse:a},c)=>n(a,c):({flatResponse:a})=>a,getOperationStatus:CAe,setErrorAsResult:s})}o(dot,"initHttpOperation");function bAe({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return fAe({operationLocation:pAe(t),azureAsyncOperation:AAe(t)});case"ResourceLocation":return hAe(t);default:return}}o(bAe,"getOperationLocation");function j5({rawResponse:t},e){var r;let n=(r=e.config.metadata)===null||r===void 0?void 0:r.mode;switch(n){case"OperationLocation":return cot(t);case"ResourceLocation":return $5(t.statusCode);case"Body":return lot(t);default:throw new Error(`Internal error: Unexpected operation mode: ${n}`)}}o(j5,"getOperationStatus");function wAe({flatResponse:t},e){if(typeof t=="object"){let r=t.resourceLocation;r!==void 0&&(e.config.resourceLocation=r)}return e.config.resourceLocation}o(wAe,"getResourceLocation");function IAe(t){return t.name==="RestError"}o(IAe,"isOperationError");async function fot(t){let{lro:e,stateProxy:r,options:n,processResult:i,updateState:s,setDelay:a,state:c,setErrorAsResult:l}=t;return dAe({state:c,stateProxy:r,setDelay:a,processResult:i?({flatResponse:u},d)=>i(u,d):({flatResponse:u})=>u,getError:EAe,updateState:s,getPollingInterval:yAe,getOperationLocation:bAe,getOperationStatus:j5,isOperationError:IAe,getResourceLocation:wAe,options:n,poll:o(async(u,d)=>e.sendPollRequest(u,d),"poll"),setErrorAsResult:l})}o(fot,"pollHttpOperation");var hot=o(()=>({initState:o(t=>({status:"running",config:t}),"initState"),setCanceled:o(t=>t.status="canceled","setCanceled"),setError:o((t,e)=>t.error=e,"setError"),setResult:o((t,e)=>t.result=e,"setResult"),setRunning:o(t=>t.status="running","setRunning"),setSucceeded:o(t=>t.status="succeeded","setSucceeded"),setFailed:o(t=>t.status="failed","setFailed"),getError:o(t=>t.error,"getError"),getResult:o(t=>t.result,"getResult"),isCanceled:o(t=>t.status==="canceled","isCanceled"),isFailed:o(t=>t.status==="failed","isFailed"),isRunning:o(t=>t.status==="running","isRunning"),isSucceeded:o(t=>t.status==="succeeded","isSucceeded")}),"createStateProxy$1");function pot(t){let{getOperationLocation:e,getStatusFromInitialResponse:r,getStatusFromPollResponse:n,isOperationError:i,getResourceLocation:s,getPollingInterval:a,getError:c,resolveOnUnsuccessful:l}=t;return async({init:u,poll:d},f)=>{let{processResult:h,updateState:p,withOperationLocation:m,intervalInMs:A=oAe,restoreFrom:E}=f||{},y=hot(),C=m?(()=>{let V=!1;return(W,ue)=>{ue?m(W):V||m(W),V=!0}})():void 0,w=E?cAe(E):await uAe({init:u,stateProxy:y,processResult:h,getOperationStatus:r,withOperationLocation:C,setErrorAsResult:!l}),B,P=new iAe.AbortController,U=new Map,N=o(async()=>U.forEach(V=>V(w)),"handleProgressEvents"),$="Operation was canceled",Q=A,H={getOperationState:o(()=>w,"getOperationState"),getResult:o(()=>w.result,"getResult"),isDone:o(()=>["succeeded","failed","canceled"].includes(w.status),"isDone"),isStopped:o(()=>B===void 0,"isStopped"),stopPolling:o(()=>{P.abort()},"stopPolling"),toString:o(()=>JSON.stringify({state:w}),"toString"),onProgress:o(V=>{let W=Symbol();return U.set(W,V),()=>U.delete(W)},"onProgress"),pollUntilDone:o(V=>B??(B=(async()=>{let{abortSignal:W}=V||{},{signal:ue}=W?new iAe.AbortController([W,P.signal]):P;if(!H.isDone())for(await H.poll({abortSignal:ue});!H.isDone();)await rot.delay(Q,{abortSignal:ue}),await H.poll({abortSignal:ue});if(l)return H.getResult();switch(w.status){case"succeeded":return H.getResult();case"canceled":throw new Error($);case"failed":throw w.error;case"notStarted":case"running":throw new Error("Polling completed without succeeding or failing")}})().finally(()=>{B=void 0})),"pollUntilDone"),async poll(V){if(l){if(H.isDone())return}else switch(w.status){case"succeeded":return;case"canceled":throw new Error($);case"failed":throw w.error}if(await dAe({poll:d,state:w,stateProxy:y,getOperationLocation:e,isOperationError:i,withOperationLocation:C,getPollingInterval:a,getOperationStatus:n,getResourceLocation:s,processResult:h,getError:c,updateState:p,options:V,setDelay:o(W=>{Q=W},"setDelay"),setErrorAsResult:!l}),await N(),!l)switch(w.status){case"canceled":throw new Error($);case"failed":throw w.error}}};return H}}o(pot,"buildCreatePoller");async function Aot(t,e){let{resourceLocationConfig:r,intervalInMs:n,processResult:i,restoreFrom:s,updateState:a,withOperationLocation:c,resolveOnUnsuccessful:l=!1}=e||{};return pot({getStatusFromInitialResponse:CAe,getStatusFromPollResponse:j5,isOperationError:IAe,getOperationLocation:bAe,getResourceLocation:wAe,getPollingInterval:yAe,getError:EAe,resolveOnUnsuccessful:l})({init:o(async()=>{let u=await t.sendInitialRequest(),d=mAe({rawResponse:u.rawResponse,requestPath:t.requestPath,requestMethod:t.requestMethod,resourceLocationConfig:r});return Object.assign({response:u,operationLocation:d?.operationLocation,resourceLocation:d?.resourceLocation},d?.mode?{metadata:{mode:d.mode}}:{})},"init"),poll:t.sendPollRequest},{intervalInMs:n,withOperationLocation:c,restoreFrom:s,updateState:a,processResult:i?({flatResponse:u},d)=>i(u,d):({flatResponse:u})=>u})}o(Aot,"createHttpPoller");var mot=o(()=>({initState:o(t=>({config:t,isStarted:!0}),"initState"),setCanceled:o(t=>t.isCancelled=!0,"setCanceled"),setError:o((t,e)=>t.error=e,"setError"),setResult:o((t,e)=>t.result=e,"setResult"),setRunning:o(t=>t.isStarted=!0,"setRunning"),setSucceeded:o(t=>t.isCompleted=!0,"setSucceeded"),setFailed:o(()=>{},"setFailed"),getError:o(t=>t.error,"getError"),getResult:o(t=>t.result,"getResult"),isCanceled:o(t=>!!t.isCancelled,"isCanceled"),isFailed:o(t=>!!t.error,"isFailed"),isRunning:o(t=>!!t.isStarted,"isRunning"),isSucceeded:o(t=>!!(t.isCompleted&&!t.isCancelled&&!t.error),"isSucceeded")}),"createStateProxy"),z5=class{static{o(this,"GenericPollOperation")}constructor(e,r,n,i,s,a,c){this.state=e,this.lro=r,this.setErrorAsResult=n,this.lroResourceLocationConfig=i,this.processResult=s,this.updateState=a,this.isDone=c}setPollerConfig(e){this.pollerConfig=e}async update(e){var r;let n=mot();this.state.isStarted||(this.state=Object.assign(Object.assign({},this.state),await dot({lro:this.lro,stateProxy:n,resourceLocationConfig:this.lroResourceLocationConfig,processResult:this.processResult,setErrorAsResult:this.setErrorAsResult})));let i=this.updateState,s=this.isDone;return!this.state.isCompleted&&this.state.error===void 0&&await fot({lro:this.lro,state:this.state,stateProxy:n,processResult:this.processResult,updateState:i?(a,{rawResponse:c})=>i(a,c):void 0,isDone:s?({flatResponse:a},c)=>s(a,c):void 0,options:e,setDelay:o(a=>{this.pollerConfig.intervalInMs=a},"setDelay"),setErrorAsResult:this.setErrorAsResult}),(r=e?.fireProgress)===null||r===void 0||r.call(e,this.state),this}async cancel(){return Zh.error("`cancelOperation` is deprecated because it wasn't implemented"),this}toString(){return JSON.stringify({state:this.state})}},l_=class t extends Error{static{o(this,"PollerStoppedError")}constructor(e){super(e),this.name="PollerStoppedError",Object.setPrototypeOf(this,t.prototype)}},u_=class t extends Error{static{o(this,"PollerCancelledError")}constructor(e){super(e),this.name="PollerCancelledError",Object.setPrototypeOf(this,t.prototype)}},d_=class{static{o(this,"Poller")}constructor(e){this.resolveOnUnsuccessful=!1,this.stopped=!0,this.pollProgressCallbacks=[],this.operation=e,this.promise=new Promise((r,n)=>{this.resolve=r,this.reject=n}),this.promise.catch(()=>{})}async startPolling(e={}){for(this.stopped&&(this.stopped=!1);!this.isStopped()&&!this.isDone();)await this.poll(e),await this.delay()}async pollOnce(e={}){this.isDone()||(this.operation=await this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})),this.processUpdatedState()}fireProgress(e){for(let r of this.pollProgressCallbacks)r(e)}async cancelOnce(e={}){this.operation=await this.operation.cancel(e)}poll(e={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(e);let r=o(()=>{this.pollOncePromise=void 0},"clearPollOncePromise");this.pollOncePromise.then(r,r).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error&&(this.stopped=!0,!this.resolveOnUnsuccessful))throw this.reject(this.operation.state.error),this.operation.state.error;if(this.operation.state.isCancelled&&(this.stopped=!0,!this.resolveOnUnsuccessful)){let e=new u_("Operation was canceled");throw this.reject(e),e}this.isDone()&&this.resolve&&this.resolve(this.getResult())}async pollUntilDone(e={}){return this.stopped&&this.startPolling(e).catch(this.reject),this.processUpdatedState(),this.promise}onProgress(e){return this.pollProgressCallbacks.push(e),()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter(r=>r!==e)}}isDone(){let e=this.operation.state;return!!(e.isCompleted||e.isCancelled||e.error)}stopPolling(){this.stopped||(this.stopped=!0,this.reject&&this.reject(new l_("This poller is already stopped")))}isStopped(){return this.stopped}cancelOperation(e={}){if(!this.cancelPromise)this.cancelPromise=this.cancelOnce(e);else if(e.abortSignal)throw new Error("A cancel request is currently pending");return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){return this.operation.state.result}toString(){return this.operation.toString()}},V5=class extends d_{static{o(this,"LroEngine")}constructor(e,r){let{intervalInMs:n=oAe,resumeFrom:i,resolveOnUnsuccessful:s=!1,isDone:a,lroResourceLocationConfig:c,processResult:l,updateState:u}=r||{},d=i?cAe(i):{},f=new z5(d,e,!s,c,l,u,a);super(f),this.resolveOnUnsuccessful=s,this.config={intervalInMs:n},f.setPollerConfig(this.config)}delay(){return new Promise(e=>setTimeout(()=>e(),this.config.intervalInMs))}};ep.LroEngine=V5;ep.Poller=d_;ep.PollerCancelledError=u_;ep.PollerStoppedError=l_;ep.createHttpPoller=Aot});var $Ae=g(($fr,Lot)=>{Lot.exports={name:"@actions/cache",version:"6.3.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.7.0","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"~1.23.0","@azure/storage-blob":"~12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.8.5"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.9.8","@types/semver":"^7.8.0",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var WAe=g((jfr,jAe)=>{var Fot=$Ae();jAe.exports={version:Fot.version}});var S_=g(yg=>{"use strict";Object.defineProperty(yg,"__esModule",{value:!0});yg.isJsonObject=yg.typeofJsonValue=void 0;function $ot(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}o($ot,"typeofJsonValue");yg.typeofJsonValue=$ot;function jot(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}o(jot,"isJsonObject");yg.isJsonObject=jot});var x_=g(Eg=>{"use strict";Object.defineProperty(Eg,"__esModule",{value:!0});Eg.base64encode=Eg.base64decode=void 0;var Cu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),B_=[];for(let t=0;t>4,a=s,i=2;break;case 2:r[n++]=(a&15)<<4|(s&60)>>2,a=s,i=3;break;case 3:r[n++]=(a&3)<<6|s,i=0;break}}if(i==1)throw Error("invalid base64 string.");return r.subarray(0,n)}o(Wot,"base64decode");Eg.base64decode=Wot;function Jot(t){let e="",r=0,n,i=0;for(let s=0;s>2],i=(n&3)<<4,r=1;break;case 1:e+=Cu[i|n>>4],i=(n&15)<<2,r=2;break;case 2:e+=Cu[i|n>>6],e+=Cu[n&63],r=0;break}return r&&(e+=Cu[i],e+="=",r==1&&(e+="=")),e}o(Jot,"base64encode");Eg.base64encode=Jot});var eme=g(v_=>{"use strict";Object.defineProperty(v_,"__esModule",{value:!0});v_.utf8read=void 0;var iz=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function Yot(t){if(t.length<1)return"";let e=0,r=[],n=[],i=0,s,a=t.length;for(;e191&&s<224?n[i++]=(s&31)<<6|t[e++]&63:s>239&&s<365?(s=((s&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[i++]=55296+(s>>10),n[i++]=56320+(s&1023)):n[i++]=(s&15)<<12|(t[e++]&63)<<6|t[e++]&63,i>8191&&(r.push(iz(n)),i=0);return r.length?(i&&r.push(iz(n.slice(0,i))),r.join("")):iz(n.slice(0,i))}o(Yot,"utf8read");v_.utf8read=Yot});var H0=g(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});jc.WireType=jc.mergeBinaryOptions=jc.UnknownFieldHandler=void 0;var Kot;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,i,s,a)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:i,wireType:s,data:a})},t.onWrite=(r,n,i)=>{for(let{no:s,wireType:a,data:c}of t.list(n))i.tag(s,a).raw(c)},t.list=(r,n)=>{if(e(r)){let i=r[t.symbol];return n?i.filter(s=>s.no==n):i}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(Kot=jc.UnknownFieldHandler||(jc.UnknownFieldHandler={}));function Xot(t,e){return Object.assign(Object.assign({},t),e)}o(Xot,"mergeBinaryOptions");jc.mergeBinaryOptions=Xot;var Zot;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(Zot=jc.WireType||(jc.WireType={}))});var R_=g(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.varint32read=fs.varint32write=fs.int64toString=fs.int64fromString=fs.varint64write=fs.varint64read=void 0;function eat(){let t=0,e=0;for(let n=0;n<28;n+=7){let i=this.buf[this.pos++];if(t|=(i&127)<>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let i=this.buf[this.pos++];if(e|=(i&127)<>>s,c=!(!(a>>>7)&&e==0),l=(c?a|128:a)&255;if(r.push(l),!c)return}let n=t>>>28&15|(e&7)<<4,i=e>>3!=0;if(r.push((i?n|128:n)&255),!!i){for(let s=3;s<31;s=s+7){let a=e>>>s,c=!!(a>>>7),l=(c?a|128:a)&255;if(r.push(l),!c)return}r.push(e>>>31&1)}}o(tat,"varint64write");fs.varint64write=tat;var N_=65536*65536;function rat(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,i=0;function s(a,c){let l=Number(t.slice(a,c));i*=r,n=n*r+l,n>=N_&&(i=i+(n/N_|0),n=n%N_)}return o(s,"add1e6digit"),s(-24,-18),s(-18,-12),s(-12,-6),s(-6),[e,n,i]}o(rat,"int64fromString");fs.int64fromString=rat;function nat(t,e){if(e>>>0<=2097151)return""+(N_*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,i=e>>16&65535,s=r+n*6777216+i*6710656,a=n+i*8147497,c=i*2,l=1e7;s>=l&&(a+=Math.floor(s/l),s%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function u(d,f){let h=d?String(d):"";return f?"0000000".slice(h.length)+h:h}return o(u,"decimalFrom1e7"),u(c,0)+u(a,c)+u(s,1)}o(nat,"int64toString");fs.int64toString=nat;function iat(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}o(iat,"varint32write");fs.varint32write=iat;function sat(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}o(sat,"varint32read");fs.varint32read=sat});var Hd=g(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});Gd.PbLong=Gd.PbULong=Gd.detectBi=void 0;var z0=R_(),Ht;function tme(){let t=new DataView(new ArrayBuffer(8));Ht=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}o(tme,"detectBi");Gd.detectBi=tme;tme();function rme(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}o(rme,"assertBi");var nme=/^-?[0-9]+$/,T_=4294967296,__=2147483648,D_=class{static{o(this,"SharedPbLong")}constructor(e,r){this.lo=e|0,this.hi=r|0}isZero(){return this.lo==0&&this.hi==0}toNumber(){let e=this.hi*T_+(this.lo>>>0);if(!Number.isSafeInteger(e))throw new Error("cannot convert to safe number");return e}},V0=class t extends D_{static{o(this,"PbULong")}static from(e){if(Ht)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=Ht.C(e);case"number":if(e===0)return this.ZERO;e=Ht.C(e);case"bigint":if(!e)return this.ZERO;if(eHt.UMAX)throw new Error("ulong too large");return Ht.V.setBigUint64(0,e,!0),new t(Ht.V.getInt32(0,!0),Ht.V.getInt32(4,!0))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=e.trim(),!nme.test(e))throw new Error("string is no integer");let[r,n,i]=z0.int64fromString(e);if(r)throw new Error("signed value for ulong");return new t(n,i);case"number":if(e==0)return this.ZERO;if(!Number.isSafeInteger(e))throw new Error("number is no integer");if(e<0)throw new Error("signed value for ulong");return new t(e,e/T_)}throw new Error("unknown value "+typeof e)}toString(){return Ht?this.toBigInt().toString():z0.int64toString(this.lo,this.hi)}toBigInt(){return rme(Ht),Ht.V.setInt32(0,this.lo,!0),Ht.V.setInt32(4,this.hi,!0),Ht.V.getBigUint64(0,!0)}};Gd.PbULong=V0;V0.ZERO=new V0(0,0);var $0=class t extends D_{static{o(this,"PbLong")}static from(e){if(Ht)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=Ht.C(e);case"number":if(e===0)return this.ZERO;e=Ht.C(e);case"bigint":if(!e)return this.ZERO;if(eHt.MAX)throw new Error("signed long too large");return Ht.V.setBigInt64(0,e,!0),new t(Ht.V.getInt32(0,!0),Ht.V.getInt32(4,!0))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=e.trim(),!nme.test(e))throw new Error("string is no integer");let[r,n,i]=z0.int64fromString(e);if(r){if(i>__||i==__&&n!=0)throw new Error("signed long too small")}else if(i>=__)throw new Error("signed long too large");let s=new t(n,i);return r?s.negate():s;case"number":if(e==0)return this.ZERO;if(!Number.isSafeInteger(e))throw new Error("number is no integer");return e>0?new t(e,e/T_):new t(-e,-e/T_).negate()}throw new Error("unknown value "+typeof e)}isNegative(){return(this.hi&__)!==0}negate(){let e=~this.hi,r=this.lo;return r?r=~r+1:e+=1,new t(r,e)}toString(){if(Ht)return this.toBigInt().toString();if(this.isNegative()){let e=this.negate();return"-"+z0.int64toString(e.lo,e.hi)}return z0.int64toString(this.lo,this.hi)}toBigInt(){return rme(Ht),Ht.V.setInt32(0,this.lo,!0),Ht.V.setInt32(4,this.hi,!0),Ht.V.getBigInt64(0,!0)}};Gd.PbLong=$0;$0.ZERO=new $0(0,0)});var sz=g(bg=>{"use strict";Object.defineProperty(bg,"__esModule",{value:!0});bg.BinaryReader=bg.binaryReadOptions=void 0;var Cg=H0(),j0=Hd(),ime=R_(),sme={readUnknownField:!0,readerFactory:o(t=>new Q_(t),"readerFactory")};function oat(t){return t?Object.assign(Object.assign({},sme),t):sme}o(oat,"binaryReadOptions");bg.binaryReadOptions=oat;var Q_=class{static{o(this,"BinaryReader")}constructor(e,r){this.varint64=ime.varint64read,this.uint32=ime.varint32read,this.buf=e,this.len=e.length,this.pos=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.textDecoder=r??new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0})}tag(){let e=this.uint32(),r=e>>>3,n=e&7;if(r<=0||n<0||n>5)throw new Error("illegal tag: field no "+r+" wire type "+n);return[r,n]}skip(e){let r=this.pos;switch(e){case Cg.WireType.Varint:for(;this.buf[this.pos++]&128;);break;case Cg.WireType.Bit64:this.pos+=4;case Cg.WireType.Bit32:this.pos+=4;break;case Cg.WireType.LengthDelimited:let n=this.uint32();this.pos+=n;break;case Cg.WireType.StartGroup:let i;for(;(i=this.tag()[1])!==Cg.WireType.EndGroup;)this.skip(i);break;default:throw new Error("cant skip wire type "+e)}return this.assertBounds(),this.buf.subarray(r,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let e=this.uint32();return e>>>1^-(e&1)}int64(){return new j0.PbLong(...this.varint64())}uint64(){return new j0.PbULong(...this.varint64())}sint64(){let[e,r]=this.varint64(),n=-(e&1);return e=(e>>>1|(r&1)<<31)^n,r=r>>>1^n,new j0.PbLong(e,r)}bool(){let[e,r]=this.varint64();return e!==0||r!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return new j0.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new j0.PbLong(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let e=this.uint32(),r=this.pos;return this.pos+=e,this.assertBounds(),this.buf.subarray(r,r+e)}string(){return this.textDecoder.decode(this.bytes())}};bg.BinaryReader=Q_});var wg=g(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.assertFloat32=Fo.assertUInt32=Fo.assertInt32=Fo.assertNever=Fo.assert=void 0;function aat(t,e){if(!t)throw new Error(e)}o(aat,"assert");Fo.assert=aat;function cat(t,e){throw new Error(e??"Unexpected object: "+t)}o(cat,"assertNever");Fo.assertNever=cat;var lat=34028234663852886e22,uat=-34028234663852886e22,dat=4294967295,fat=2147483647,hat=-2147483648;function pat(t){if(typeof t!="number")throw new Error("invalid int 32: "+typeof t);if(!Number.isInteger(t)||t>fat||tdat||t<0)throw new Error("invalid uint 32: "+t)}o(Aat,"assertUInt32");Fo.assertUInt32=Aat;function mat(t){if(typeof t!="number")throw new Error("invalid float 32: "+typeof t);if(Number.isFinite(t)&&(t>lat||t{"use strict";Object.defineProperty(Sg,"__esModule",{value:!0});Sg.BinaryWriter=Sg.binaryWriteOptions=void 0;var W0=Hd(),J0=R_(),Ig=wg(),ome={writeUnknownFields:!0,writerFactory:o(()=>new k_,"writerFactory")};function gat(t){return t?Object.assign(Object.assign({},ome),t):ome}o(gat,"binaryWriteOptions");Sg.binaryWriteOptions=gat;var k_=class{static{o(this,"BinaryWriter")}constructor(e){this.stack=[],this.textEncoder=e??new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let e=0;for(let i=0;i>>0)}raw(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this}uint32(e){for(Ig.assertUInt32(e);e>127;)this.buf.push(e&127|128),e=e>>>7;return this.buf.push(e),this}int32(e){return Ig.assertInt32(e),J0.varint32write(e,this.buf),this}bool(e){return this.buf.push(e?1:0),this}bytes(e){return this.uint32(e.byteLength),this.raw(e)}string(e){let r=this.textEncoder.encode(e);return this.uint32(r.byteLength),this.raw(r)}float(e){Ig.assertFloat32(e);let r=new Uint8Array(4);return new DataView(r.buffer).setFloat32(0,e,!0),this.raw(r)}double(e){let r=new Uint8Array(8);return new DataView(r.buffer).setFloat64(0,e,!0),this.raw(r)}fixed32(e){Ig.assertUInt32(e);let r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,e,!0),this.raw(r)}sfixed32(e){Ig.assertInt32(e);let r=new Uint8Array(4);return new DataView(r.buffer).setInt32(0,e,!0),this.raw(r)}sint32(e){return Ig.assertInt32(e),e=(e<<1^e>>31)>>>0,J0.varint32write(e,this.buf),this}sfixed64(e){let r=new Uint8Array(8),n=new DataView(r.buffer),i=W0.PbLong.from(e);return n.setInt32(0,i.lo,!0),n.setInt32(4,i.hi,!0),this.raw(r)}fixed64(e){let r=new Uint8Array(8),n=new DataView(r.buffer),i=W0.PbULong.from(e);return n.setInt32(0,i.lo,!0),n.setInt32(4,i.hi,!0),this.raw(r)}int64(e){let r=W0.PbLong.from(e);return J0.varint64write(r.lo,r.hi,this.buf),this}sint64(e){let r=W0.PbLong.from(e),n=r.hi>>31,i=r.lo<<1^n,s=(r.hi<<1|r.lo>>>31)^n;return J0.varint64write(i,s,this.buf),this}uint64(e){let r=W0.PbULong.from(e);return J0.varint64write(r.lo,r.hi,this.buf),this}};Sg.BinaryWriter=k_});var az=g(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});zd.mergeJsonOptions=zd.jsonWriteOptions=zd.jsonReadOptions=void 0;var ame={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0},cme={ignoreUnknownFields:!1};function yat(t){return t?Object.assign(Object.assign({},cme),t):cme}o(yat,"jsonReadOptions");zd.jsonReadOptions=yat;function Eat(t){return t?Object.assign(Object.assign({},ame),t):ame}o(Eat,"jsonWriteOptions");zd.jsonWriteOptions=Eat;function Cat(t,e){var r,n;let i=Object.assign(Object.assign({},t),e);return i.typeRegistry=[...(r=t?.typeRegistry)!==null&&r!==void 0?r:[],...(n=e?.typeRegistry)!==null&&n!==void 0?n:[]],i}o(Cat,"mergeJsonOptions");zd.mergeJsonOptions=Cat});var Y0=g(P_=>{"use strict";Object.defineProperty(P_,"__esModule",{value:!0});P_.MESSAGE_TYPE=void 0;P_.MESSAGE_TYPE=Symbol.for("protobuf-ts/message-type")});var cz=g(O_=>{"use strict";Object.defineProperty(O_,"__esModule",{value:!0});O_.lowerCamelCase=void 0;function bat(t){let e=!1,r=[];for(let n=0;n{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.readMessageOption=An.readFieldOption=An.readFieldOptions=An.normalizeFieldInfo=An.RepeatType=An.LongType=An.ScalarType=void 0;var lme=cz(),wat;(function(t){t[t.DOUBLE=1]="DOUBLE",t[t.FLOAT=2]="FLOAT",t[t.INT64=3]="INT64",t[t.UINT64=4]="UINT64",t[t.INT32=5]="INT32",t[t.FIXED64=6]="FIXED64",t[t.FIXED32=7]="FIXED32",t[t.BOOL=8]="BOOL",t[t.STRING=9]="STRING",t[t.BYTES=12]="BYTES",t[t.UINT32=13]="UINT32",t[t.SFIXED32=15]="SFIXED32",t[t.SFIXED64=16]="SFIXED64",t[t.SINT32=17]="SINT32",t[t.SINT64=18]="SINT64"})(wat=An.ScalarType||(An.ScalarType={}));var Iat;(function(t){t[t.BIGINT=0]="BIGINT",t[t.STRING=1]="STRING",t[t.NUMBER=2]="NUMBER"})(Iat=An.LongType||(An.LongType={}));var ume;(function(t){t[t.NO=0]="NO",t[t.PACKED=1]="PACKED",t[t.UNPACKED=2]="UNPACKED"})(ume=An.RepeatType||(An.RepeatType={}));function Sat(t){var e,r,n,i;return t.localName=(e=t.localName)!==null&&e!==void 0?e:lme.lowerCamelCase(t.name),t.jsonName=(r=t.jsonName)!==null&&r!==void 0?r:lme.lowerCamelCase(t.name),t.repeat=(n=t.repeat)!==null&&n!==void 0?n:ume.NO,t.opt=(i=t.opt)!==null&&i!==void 0?i:t.repeat||t.oneof?!1:t.kind=="message",t}o(Sat,"normalizeFieldInfo");An.normalizeFieldInfo=Sat;function Bat(t,e,r,n){var i;let s=(i=t.fields.find((a,c)=>a.localName==e||c==e))===null||i===void 0?void 0:i.options;return s&&s[r]?n.fromJson(s[r]):void 0}o(Bat,"readFieldOptions");An.readFieldOptions=Bat;function xat(t,e,r,n){var i;let s=(i=t.fields.find((c,l)=>c.localName==e||l==e))===null||i===void 0?void 0:i.options;if(!s)return;let a=s[r];return a===void 0?a:n?n.fromJson(a):a}o(xat,"readFieldOption");An.readFieldOption=xat;function vat(t,e,r){let i=t.options[e];return i===void 0?i:r?r.fromJson(i):i}o(vat,"readMessageOption");An.readMessageOption=vat});var lz=g(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.getSelectedOneofValue=hs.clearOneofValue=hs.setUnknownOneofValue=hs.setOneofValue=hs.getOneofValue=hs.isOneofGroup=void 0;function Nat(t){if(typeof t!="object"||t===null||!t.hasOwnProperty("oneofKind"))return!1;switch(typeof t.oneofKind){case"string":return t[t.oneofKind]===void 0?!1:Object.keys(t).length==2;case"undefined":return Object.keys(t).length==1;default:return!1}}o(Nat,"isOneofGroup");hs.isOneofGroup=Nat;function Rat(t,e){return t[e]}o(Rat,"getOneofValue");hs.getOneofValue=Rat;function _at(t,e,r){t.oneofKind!==void 0&&delete t[t.oneofKind],t.oneofKind=e,r!==void 0&&(t[e]=r)}o(_at,"setOneofValue");hs.setOneofValue=_at;function Tat(t,e,r){t.oneofKind!==void 0&&delete t[t.oneofKind],t.oneofKind=e,r!==void 0&&e!==void 0&&(t[e]=r)}o(Tat,"setUnknownOneofValue");hs.setUnknownOneofValue=Tat;function Dat(t){t.oneofKind!==void 0&&delete t[t.oneofKind],t.oneofKind=void 0}o(Dat,"clearOneofValue");hs.clearOneofValue=Dat;function Qat(t){if(t.oneofKind!==void 0)return t[t.oneofKind]}o(Qat,"getSelectedOneofValue");hs.getSelectedOneofValue=Qat});var dz=g(L_=>{"use strict";Object.defineProperty(L_,"__esModule",{value:!0});L_.ReflectionTypeCheck=void 0;var Tr=Oa(),kat=lz(),uz=class{static{o(this,"ReflectionTypeCheck")}constructor(e){var r;this.fields=(r=e.fields)!==null&&r!==void 0?r:[]}prepare(){if(this.data)return;let e=[],r=[],n=[];for(let i of this.fields)if(i.oneof)n.includes(i.oneof)||(n.push(i.oneof),e.push(i.oneof),r.push(i.oneof));else switch(r.push(i.localName),i.kind){case"scalar":case"enum":(!i.opt||i.repeat)&&e.push(i.localName);break;case"message":i.repeat&&e.push(i.localName);break;case"map":e.push(i.localName);break}this.data={req:e,known:r,oneofs:Object.values(n)}}is(e,r,n=!1){if(r<0)return!0;if(e==null||typeof e!="object")return!1;this.prepare();let i=Object.keys(e),s=this.data;if(i.length!i.includes(a))||!n&&i.some(a=>!s.known.includes(a)))return!1;if(r<1)return!0;for(let a of s.oneofs){let c=e[a];if(!kat.isOneofGroup(c))return!1;if(c.oneofKind===void 0)continue;let l=this.fields.find(u=>u.localName===c.oneofKind);if(!l||!this.field(c[c.oneofKind],l,n,r))return!1}for(let a of this.fields)if(a.oneof===void 0&&!this.field(e[a.localName],a,n,r))return!1;return!0}field(e,r,n,i){let s=r.repeat;switch(r.kind){case"scalar":return e===void 0?r.opt:s?this.scalars(e,r.T,i,r.L):this.scalar(e,r.T,r.L);case"enum":return e===void 0?r.opt:s?this.scalars(e,Tr.ScalarType.INT32,i):this.scalar(e,Tr.ScalarType.INT32);case"message":return e===void 0?!0:s?this.messages(e,r.T(),n,i):this.message(e,r.T(),n,i);case"map":if(typeof e!="object"||e===null)return!1;if(i<2)return!0;if(!this.mapKeys(e,r.K,i))return!1;switch(r.V.kind){case"scalar":return this.scalars(Object.values(e),r.V.T,i,r.V.L);case"enum":return this.scalars(Object.values(e),Tr.ScalarType.INT32,i);case"message":return this.messages(Object.values(e),r.V.T(),n,i)}break}return!0}message(e,r,n,i){return n?r.isAssignable(e,i):r.is(e,i)}messages(e,r,n,i){if(!Array.isArray(e))return!1;if(i<2)return!0;if(n){for(let s=0;sparseInt(s)),r,n);case Tr.ScalarType.BOOL:return this.scalars(i.slice(0,n).map(s=>s=="true"?!0:s=="false"?!1:s),r,n);default:return this.scalars(i,r,n,Tr.LongType.STRING)}}};L_.ReflectionTypeCheck=uz});var M_=g(F_=>{"use strict";Object.defineProperty(F_,"__esModule",{value:!0});F_.reflectionLongConvert=void 0;var dme=Oa();function Pat(t,e){switch(e){case dme.LongType.BIGINT:return t.toBigInt();case dme.LongType.NUMBER:return t.toNumber();default:return t.toString()}}o(Pat,"reflectionLongConvert");F_.reflectionLongConvert=Pat});var hz=g(G_=>{"use strict";Object.defineProperty(G_,"__esModule",{value:!0});G_.ReflectionJsonReader=void 0;var fme=S_(),Oat=x_(),mn=Oa(),U_=Hd(),rp=wg(),q_=M_(),fz=class{static{o(this,"ReflectionJsonReader")}constructor(e){this.info=e}prepare(){var e;if(this.fMap===void 0){this.fMap={};let r=(e=this.info.fields)!==null&&e!==void 0?e:[];for(let n of r)this.fMap[n.name]=n,this.fMap[n.jsonName]=n,this.fMap[n.localName]=n}}assert(e,r,n){if(!e){let i=fme.typeofJsonValue(n);throw(i=="number"||i=="boolean")&&(i=n.toString()),new Error(`Cannot parse JSON ${i} for ${this.info.typeName}#${r}`)}}read(e,r,n){this.prepare();let i=[];for(let[s,a]of Object.entries(e)){let c=this.fMap[s];if(!c){if(!n.ignoreUnknownFields)throw new Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${s}`);continue}let l=c.localName,u;if(c.oneof){if(a===null&&(c.kind!=="enum"||c.T()[0]!=="google.protobuf.NullValue"))continue;if(i.includes(c.oneof))throw new Error(`Multiple members of the oneof group "${c.oneof}" of ${this.info.typeName} are present in JSON.`);i.push(c.oneof),u=r[c.oneof]={oneofKind:l}}else u=r;if(c.kind=="map"){if(a===null)continue;this.assert(fme.isJsonObject(a),c.name,a);let d=u[l];for(let[f,h]of Object.entries(a)){this.assert(h!==null,c.name+" map value",null);let p;switch(c.V.kind){case"message":p=c.V.T().internalJsonRead(h,n);break;case"enum":if(p=this.enum(c.V.T(),h,c.name,n.ignoreUnknownFields),p===!1)continue;break;case"scalar":p=this.scalar(h,c.V.T,c.V.L,c.name);break}this.assert(p!==void 0,c.name+" map value",h);let m=f;c.K==mn.ScalarType.BOOL&&(m=m=="true"?!0:m=="false"?!1:m),m=this.scalar(m,c.K,mn.LongType.STRING,c.name).toString(),d[m]=p}}else if(c.repeat){if(a===null)continue;this.assert(Array.isArray(a),c.name,a);let d=u[l];for(let f of a){this.assert(f!==null,c.name,null);let h;switch(c.kind){case"message":h=c.T().internalJsonRead(f,n);break;case"enum":if(h=this.enum(c.T(),f,c.name,n.ignoreUnknownFields),h===!1)continue;break;case"scalar":h=this.scalar(f,c.T,c.L,c.name);break}this.assert(h!==void 0,c.name,a),d.push(h)}}else switch(c.kind){case"message":if(a===null&&c.T().typeName!="google.protobuf.Value"){this.assert(c.oneof===void 0,c.name+" (oneof member)",null);continue}u[l]=c.T().internalJsonRead(a,n,u[l]);break;case"enum":if(a===null)continue;let d=this.enum(c.T(),a,c.name,n.ignoreUnknownFields);if(d===!1)continue;u[l]=d;break;case"scalar":if(a===null)continue;u[l]=this.scalar(a,c.T,c.L,c.name);break}}}enum(e,r,n,i){if(e[0]=="google.protobuf.NullValue"&&rp.assert(r===null||r==="NULL_VALUE",`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} only accepts null.`),r===null)return 0;switch(typeof r){case"number":return rp.assert(Number.isInteger(r),`Unable to parse field ${this.info.typeName}#${n}, enum can only be integral number, got ${r}.`),r;case"string":let s=r;e[2]&&r.substring(0,e[2].length)===e[2]&&(s=r.substring(e[2].length));let a=e[1][s];return typeof a>"u"&&i?!1:(rp.assert(typeof a=="number",`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} has no value for "${r}".`),a)}rp.assert(!1,`Unable to parse field ${this.info.typeName}#${n}, cannot parse enum value from ${typeof r}".`)}scalar(e,r,n,i){let s;try{switch(r){case mn.ScalarType.DOUBLE:case mn.ScalarType.FLOAT:if(e===null)return 0;if(e==="NaN")return Number.NaN;if(e==="Infinity")return Number.POSITIVE_INFINITY;if(e==="-Infinity")return Number.NEGATIVE_INFINITY;if(e===""){s="empty string";break}if(typeof e=="string"&&e.trim().length!==e.length){s="extra whitespace";break}if(typeof e!="string"&&typeof e!="number")break;let a=Number(e);if(Number.isNaN(a)){s="not a number";break}if(!Number.isFinite(a)){s="too large or small";break}return r==mn.ScalarType.FLOAT&&rp.assertFloat32(a),a;case mn.ScalarType.INT32:case mn.ScalarType.FIXED32:case mn.ScalarType.SFIXED32:case mn.ScalarType.SINT32:case mn.ScalarType.UINT32:if(e===null)return 0;let c;if(typeof e=="number"?c=e:e===""?s="empty string":typeof e=="string"&&(e.trim().length!==e.length?s="extra whitespace":c=Number(e)),c===void 0)break;return r==mn.ScalarType.UINT32?rp.assertUInt32(c):rp.assertInt32(c),c;case mn.ScalarType.INT64:case mn.ScalarType.SFIXED64:case mn.ScalarType.SINT64:if(e===null)return q_.reflectionLongConvert(U_.PbLong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return q_.reflectionLongConvert(U_.PbLong.from(e),n);case mn.ScalarType.FIXED64:case mn.ScalarType.UINT64:if(e===null)return q_.reflectionLongConvert(U_.PbULong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return q_.reflectionLongConvert(U_.PbULong.from(e),n);case mn.ScalarType.BOOL:if(e===null)return!1;if(typeof e!="boolean")break;return e;case mn.ScalarType.STRING:if(e===null)return"";if(typeof e!="string"){s="extra whitespace";break}try{encodeURIComponent(e)}catch(l){l="invalid UTF8";break}return e;case mn.ScalarType.BYTES:if(e===null||e==="")return new Uint8Array(0);if(typeof e!="string")break;return Oat.base64decode(e)}}catch(a){s=a.message}this.assert(!1,i+(s?" - "+s:""),e)}};G_.ReflectionJsonReader=fz});var Az=g(H_=>{"use strict";Object.defineProperty(H_,"__esModule",{value:!0});H_.ReflectionJsonWriter=void 0;var Lat=x_(),hme=Hd(),Pi=Oa(),hr=wg(),pz=class{static{o(this,"ReflectionJsonWriter")}constructor(e){var r;this.fields=(r=e.fields)!==null&&r!==void 0?r:[]}write(e,r){let n={},i=e;for(let s of this.fields){if(!s.oneof){let u=this.field(s,i[s.localName],r);u!==void 0&&(n[r.useProtoFieldName?s.name:s.jsonName]=u);continue}let a=i[s.oneof];if(a.oneofKind!==s.localName)continue;let c=s.kind=="scalar"||s.kind=="enum"?Object.assign(Object.assign({},r),{emitDefaultValues:!0}):r,l=this.field(s,a[s.localName],c);hr.assert(l!==void 0),n[r.useProtoFieldName?s.name:s.jsonName]=l}return n}field(e,r,n){let i;if(e.kind=="map"){hr.assert(typeof r=="object"&&r!==null);let s={};switch(e.V.kind){case"scalar":for(let[l,u]of Object.entries(r)){let d=this.scalar(e.V.T,u,e.name,!1,!0);hr.assert(d!==void 0),s[l.toString()]=d}break;case"message":let a=e.V.T();for(let[l,u]of Object.entries(r)){let d=this.message(a,u,e.name,n);hr.assert(d!==void 0),s[l.toString()]=d}break;case"enum":let c=e.V.T();for(let[l,u]of Object.entries(r)){hr.assert(u===void 0||typeof u=="number");let d=this.enum(c,u,e.name,!1,!0,n.enumAsInteger);hr.assert(d!==void 0),s[l.toString()]=d}break}(n.emitDefaultValues||Object.keys(s).length>0)&&(i=s)}else if(e.repeat){hr.assert(Array.isArray(r));let s=[];switch(e.kind){case"scalar":for(let l=0;l0||n.emitDefaultValues)&&(i=s)}else switch(e.kind){case"scalar":i=this.scalar(e.T,r,e.name,e.opt,n.emitDefaultValues);break;case"enum":i=this.enum(e.T(),r,e.name,e.opt,n.emitDefaultValues,n.enumAsInteger);break;case"message":i=this.message(e.T(),r,e.name,n);break}return i}enum(e,r,n,i,s,a){if(e[0]=="google.protobuf.NullValue")return!s&&!i?void 0:null;if(r===void 0){hr.assert(i);return}if(!(r===0&&!s&&!i))return hr.assert(typeof r=="number"),hr.assert(Number.isInteger(r)),a||!e[1].hasOwnProperty(r)?r:e[2]?e[2]+e[1][r]:e[1][r]}message(e,r,n,i){return r===void 0?i.emitDefaultValues?null:void 0:e.internalJsonWrite(r,i)}scalar(e,r,n,i,s){if(r===void 0){hr.assert(i);return}let a=s||i;switch(e){case Pi.ScalarType.INT32:case Pi.ScalarType.SFIXED32:case Pi.ScalarType.SINT32:return r===0?a?0:void 0:(hr.assertInt32(r),r);case Pi.ScalarType.FIXED32:case Pi.ScalarType.UINT32:return r===0?a?0:void 0:(hr.assertUInt32(r),r);case Pi.ScalarType.FLOAT:hr.assertFloat32(r);case Pi.ScalarType.DOUBLE:return r===0?a?0:void 0:(hr.assert(typeof r=="number"),Number.isNaN(r)?"NaN":r===Number.POSITIVE_INFINITY?"Infinity":r===Number.NEGATIVE_INFINITY?"-Infinity":r);case Pi.ScalarType.STRING:return r===""?a?"":void 0:(hr.assert(typeof r=="string"),r);case Pi.ScalarType.BOOL:return r===!1?a?!1:void 0:(hr.assert(typeof r=="boolean"),r);case Pi.ScalarType.UINT64:case Pi.ScalarType.FIXED64:hr.assert(typeof r=="number"||typeof r=="string"||typeof r=="bigint");let c=hme.PbULong.from(r);return c.isZero()&&!a?void 0:c.toString();case Pi.ScalarType.INT64:case Pi.ScalarType.SFIXED64:case Pi.ScalarType.SINT64:hr.assert(typeof r=="number"||typeof r=="string"||typeof r=="bigint");let l=hme.PbLong.from(r);return l.isZero()&&!a?void 0:l.toString();case Pi.ScalarType.BYTES:return hr.assert(r instanceof Uint8Array),r.byteLength?Lat.base64encode(r):a?"":void 0}}};H_.ReflectionJsonWriter=pz});var V_=g(z_=>{"use strict";Object.defineProperty(z_,"__esModule",{value:!0});z_.reflectionScalarDefault=void 0;var La=Oa(),pme=M_(),Ame=Hd();function Fat(t,e=La.LongType.STRING){switch(t){case La.ScalarType.BOOL:return!1;case La.ScalarType.UINT64:case La.ScalarType.FIXED64:return pme.reflectionLongConvert(Ame.PbULong.ZERO,e);case La.ScalarType.INT64:case La.ScalarType.SFIXED64:case La.ScalarType.SINT64:return pme.reflectionLongConvert(Ame.PbLong.ZERO,e);case La.ScalarType.DOUBLE:case La.ScalarType.FLOAT:return 0;case La.ScalarType.BYTES:return new Uint8Array(0);case La.ScalarType.STRING:return"";default:return 0}}o(Fat,"reflectionScalarDefault");z_.reflectionScalarDefault=Fat});var gz=g($_=>{"use strict";Object.defineProperty($_,"__esModule",{value:!0});$_.ReflectionBinaryReader=void 0;var mme=H0(),Hr=Oa(),K0=M_(),gme=V_(),mz=class{static{o(this,"ReflectionBinaryReader")}constructor(e){this.info=e}prepare(){var e;if(!this.fieldNoToField){let r=(e=this.info.fields)!==null&&e!==void 0?e:[];this.fieldNoToField=new Map(r.map(n=>[n.no,n]))}}read(e,r,n,i){this.prepare();let s=i===void 0?e.len:e.pos+i;for(;e.pos{"use strict";Object.defineProperty(j_,"__esModule",{value:!0});j_.ReflectionBinaryWriter=void 0;var Ys=H0(),Wt=Oa(),Bg=wg(),X0=Hd(),yz=class{static{o(this,"ReflectionBinaryWriter")}constructor(e){this.info=e}prepare(){if(!this.fields){let e=this.info.fields?this.info.fields.concat():[];this.fields=e.sort((r,n)=>r.no-n.no)}}write(e,r,n){this.prepare();for(let s of this.fields){let a,c,l=s.repeat,u=s.localName;if(s.oneof){let d=e[s.oneof];if(d.oneofKind!==u)continue;a=d[u],c=!0}else a=e[u],c=!1;switch(s.kind){case"scalar":case"enum":let d=s.kind=="enum"?Wt.ScalarType.INT32:s.T;if(l)if(Bg.assert(Array.isArray(a)),l==Wt.RepeatType.PACKED)this.packed(r,d,s.no,a);else for(let f of a)this.scalar(r,d,s.no,f,!0);else a===void 0?Bg.assert(s.opt):this.scalar(r,d,s.no,a,c||s.opt);break;case"message":if(l){Bg.assert(Array.isArray(a));for(let f of a)this.message(r,n,s.T(),s.no,f)}else this.message(r,n,s.T(),s.no,a);break;case"map":Bg.assert(typeof a=="object"&&a!==null);for(let[f,h]of Object.entries(a))this.mapEntry(r,n,s,f,h);break}}let i=n.writeUnknownFields;i!==!1&&(i===!0?Ys.UnknownFieldHandler.onWrite:i)(this.info.typeName,e,r)}mapEntry(e,r,n,i,s){e.tag(n.no,Ys.WireType.LengthDelimited),e.fork();let a=i;switch(n.K){case Wt.ScalarType.INT32:case Wt.ScalarType.FIXED32:case Wt.ScalarType.UINT32:case Wt.ScalarType.SFIXED32:case Wt.ScalarType.SINT32:a=Number.parseInt(i);break;case Wt.ScalarType.BOOL:Bg.assert(i=="true"||i=="false"),a=i=="true";break}switch(this.scalar(e,n.K,1,a,!0),n.V.kind){case"scalar":this.scalar(e,n.V.T,2,s,!0);break;case"enum":this.scalar(e,Wt.ScalarType.INT32,2,s,!0);break;case"message":this.message(e,r,n.V.T(),2,s);break}e.join()}message(e,r,n,i,s){s!==void 0&&(n.internalBinaryWrite(s,e.tag(i,Ys.WireType.LengthDelimited).fork(),r),e.join())}scalar(e,r,n,i,s){let[a,c,l]=this.scalarInfo(r,i);(!l||s)&&(e.tag(n,a),e[c](i))}packed(e,r,n,i){if(!i.length)return;Bg.assert(r!==Wt.ScalarType.BYTES&&r!==Wt.ScalarType.STRING),e.tag(n,Ys.WireType.LengthDelimited),e.fork();let[,s]=this.scalarInfo(r);for(let a=0;a{"use strict";Object.defineProperty(W_,"__esModule",{value:!0});W_.reflectionCreate=void 0;var Mat=V_(),Uat=Y0();function qat(t){let e=t.messagePrototype?Object.create(t.messagePrototype):Object.defineProperty({},Uat.MESSAGE_TYPE,{value:t});for(let r of t.fields){let n=r.localName;if(!r.opt)if(r.oneof)e[r.oneof]={oneofKind:void 0};else if(r.repeat)e[n]=[];else switch(r.kind){case"scalar":e[n]=Mat.reflectionScalarDefault(r.T,r.L);break;case"enum":e[n]=0;break;case"map":e[n]={};break}}return e}o(qat,"reflectionCreate");W_.reflectionCreate=qat});var bz=g(J_=>{"use strict";Object.defineProperty(J_,"__esModule",{value:!0});J_.reflectionMergePartial=void 0;function Gat(t,e,r){let n,i=r,s;for(let a of t.fields){let c=a.localName;if(a.oneof){let l=i[a.oneof];if(l?.oneofKind==null)continue;if(n=l[c],s=e[a.oneof],s.oneofKind=l.oneofKind,n==null){delete s[c];continue}}else if(n=i[c],s=e,n==null)continue;switch(a.repeat&&(s[c].length=n.length),a.kind){case"scalar":case"enum":if(a.repeat)for(let u=0;u{"use strict";Object.defineProperty(K_,"__esModule",{value:!0});K_.reflectionEquals=void 0;var wz=Oa();function Hat(t,e,r){if(e===r)return!0;if(!e||!r)return!1;for(let n of t.fields){let i=n.localName,s=n.oneof?e[n.oneof][i]:e[i],a=n.oneof?r[n.oneof][i]:r[i];switch(n.kind){case"enum":case"scalar":let c=n.kind=="enum"?wz.ScalarType.INT32:n.T;if(!(n.repeat?yme(c,s,a):Cme(c,s,a)))return!1;break;case"map":if(!(n.V.kind=="message"?Eme(n.V.T(),Y_(s),Y_(a)):yme(n.V.kind=="enum"?wz.ScalarType.INT32:n.V.T,Y_(s),Y_(a))))return!1;break;case"message":let l=n.T();if(!(n.repeat?Eme(l,s,a):l.equals(s,a)))return!1;break}}return!0}o(Hat,"reflectionEquals");K_.reflectionEquals=Hat;var Y_=Object.values;function Cme(t,e,r){if(e===r)return!0;if(t!==wz.ScalarType.BYTES)return!1;let n=e,i=r;if(n.length!==i.length)return!1;for(let s=0;s{"use strict";Object.defineProperty(X_,"__esModule",{value:!0});X_.MessageType=void 0;var zat=Y0(),Vat=Oa(),$at=dz(),jat=hz(),Wat=Az(),Jat=gz(),Yat=Ez(),Kat=Cz(),Sz=bz(),Xat=S_(),bme=az(),Zat=Iz(),ect=oz(),tct=sz(),wme=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})),rct=wme[zat.MESSAGE_TYPE]={},Bz=class{static{o(this,"MessageType")}constructor(e,r,n){this.defaultCheckDepth=16,this.typeName=e,this.fields=r.map(Vat.normalizeFieldInfo),this.options=n??{},rct.value=this,this.messagePrototype=Object.create(null,wme),this.refTypeCheck=new $at.ReflectionTypeCheck(this),this.refJsonReader=new jat.ReflectionJsonReader(this),this.refJsonWriter=new Wat.ReflectionJsonWriter(this),this.refBinReader=new Jat.ReflectionBinaryReader(this),this.refBinWriter=new Yat.ReflectionBinaryWriter(this)}create(e){let r=Kat.reflectionCreate(this);return e!==void 0&&Sz.reflectionMergePartial(this,r,e),r}clone(e){let r=this.create();return Sz.reflectionMergePartial(this,r,e),r}equals(e,r){return Zat.reflectionEquals(this,e,r)}is(e,r=this.defaultCheckDepth){return this.refTypeCheck.is(e,r,!1)}isAssignable(e,r=this.defaultCheckDepth){return this.refTypeCheck.is(e,r,!0)}mergePartial(e,r){Sz.reflectionMergePartial(this,e,r)}fromBinary(e,r){let n=tct.binaryReadOptions(r);return this.internalBinaryRead(n.readerFactory(e),e.byteLength,n)}fromJson(e,r){return this.internalJsonRead(e,bme.jsonReadOptions(r))}fromJsonString(e,r){let n=JSON.parse(e);return this.fromJson(n,r)}toJson(e,r){return this.internalJsonWrite(e,bme.jsonWriteOptions(r))}toJsonString(e,r){var n;let i=this.toJson(e,r);return JSON.stringify(i,null,(n=r?.prettySpaces)!==null&&n!==void 0?n:0)}toBinary(e,r){let n=ect.binaryWriteOptions(r);return this.internalBinaryWrite(e,n.writerFactory(),n).finish()}internalJsonRead(e,r,n){if(e!==null&&typeof e=="object"&&!Array.isArray(e)){let i=n??this.create();return this.refJsonReader.read(e,i,r),i}throw new Error(`Unable to parse message ${this.typeName} from JSON ${Xat.typeofJsonValue(e)}.`)}internalJsonWrite(e,r){return this.refJsonWriter.write(e,r)}internalBinaryWrite(e,r,n){return this.refBinWriter.write(e,r,n),r}internalBinaryRead(e,r,n,i){let s=i??this.create();return this.refBinReader.read(e,s,n,r),s}};X_.MessageType=Bz});var Sme=g(Z_=>{"use strict";Object.defineProperty(Z_,"__esModule",{value:!0});Z_.containsMessageType=void 0;var nct=Y0();function ict(t){return t[nct.MESSAGE_TYPE]!=null}o(ict,"containsMessageType");Z_.containsMessageType=ict});var xme=g(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});Wc.listEnumNumbers=Wc.listEnumNames=Wc.listEnumValues=Wc.isEnumObject=void 0;function Bme(t){if(typeof t!="object"||t===null||!t.hasOwnProperty(0))return!1;for(let e of Object.keys(t)){let r=parseInt(e);if(Number.isNaN(r)){let n=t[e];if(n===void 0||typeof n!="number"||t[n]===void 0)return!1}else{let n=t[r];if(n===void 0||t[n]!==r)return!1}}return!0}o(Bme,"isEnumObject");Wc.isEnumObject=Bme;function xz(t){if(!Bme(t))throw new Error("not a typescript enum object");let e=[];for(let[r,n]of Object.entries(t))typeof n=="number"&&e.push({name:r,number:n});return e}o(xz,"listEnumValues");Wc.listEnumValues=xz;function sct(t){return xz(t).map(e=>e.name)}o(sct,"listEnumNames");Wc.listEnumNames=sct;function oct(t){return xz(t).map(e=>e.number).filter((e,r,n)=>n.indexOf(e)==r)}o(oct,"listEnumNumbers");Wc.listEnumNumbers=oct});var nt=g(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});var vme=S_();Object.defineProperty(Ne,"typeofJsonValue",{enumerable:!0,get:o(function(){return vme.typeofJsonValue},"get")});Object.defineProperty(Ne,"isJsonObject",{enumerable:!0,get:o(function(){return vme.isJsonObject},"get")});var Nme=x_();Object.defineProperty(Ne,"base64decode",{enumerable:!0,get:o(function(){return Nme.base64decode},"get")});Object.defineProperty(Ne,"base64encode",{enumerable:!0,get:o(function(){return Nme.base64encode},"get")});var act=eme();Object.defineProperty(Ne,"utf8read",{enumerable:!0,get:o(function(){return act.utf8read},"get")});var vz=H0();Object.defineProperty(Ne,"WireType",{enumerable:!0,get:o(function(){return vz.WireType},"get")});Object.defineProperty(Ne,"mergeBinaryOptions",{enumerable:!0,get:o(function(){return vz.mergeBinaryOptions},"get")});Object.defineProperty(Ne,"UnknownFieldHandler",{enumerable:!0,get:o(function(){return vz.UnknownFieldHandler},"get")});var Rme=sz();Object.defineProperty(Ne,"BinaryReader",{enumerable:!0,get:o(function(){return Rme.BinaryReader},"get")});Object.defineProperty(Ne,"binaryReadOptions",{enumerable:!0,get:o(function(){return Rme.binaryReadOptions},"get")});var _me=oz();Object.defineProperty(Ne,"BinaryWriter",{enumerable:!0,get:o(function(){return _me.BinaryWriter},"get")});Object.defineProperty(Ne,"binaryWriteOptions",{enumerable:!0,get:o(function(){return _me.binaryWriteOptions},"get")});var Tme=Hd();Object.defineProperty(Ne,"PbLong",{enumerable:!0,get:o(function(){return Tme.PbLong},"get")});Object.defineProperty(Ne,"PbULong",{enumerable:!0,get:o(function(){return Tme.PbULong},"get")});var Nz=az();Object.defineProperty(Ne,"jsonReadOptions",{enumerable:!0,get:o(function(){return Nz.jsonReadOptions},"get")});Object.defineProperty(Ne,"jsonWriteOptions",{enumerable:!0,get:o(function(){return Nz.jsonWriteOptions},"get")});Object.defineProperty(Ne,"mergeJsonOptions",{enumerable:!0,get:o(function(){return Nz.mergeJsonOptions},"get")});var cct=Y0();Object.defineProperty(Ne,"MESSAGE_TYPE",{enumerable:!0,get:o(function(){return cct.MESSAGE_TYPE},"get")});var lct=Ime();Object.defineProperty(Ne,"MessageType",{enumerable:!0,get:o(function(){return lct.MessageType},"get")});var np=Oa();Object.defineProperty(Ne,"ScalarType",{enumerable:!0,get:o(function(){return np.ScalarType},"get")});Object.defineProperty(Ne,"LongType",{enumerable:!0,get:o(function(){return np.LongType},"get")});Object.defineProperty(Ne,"RepeatType",{enumerable:!0,get:o(function(){return np.RepeatType},"get")});Object.defineProperty(Ne,"normalizeFieldInfo",{enumerable:!0,get:o(function(){return np.normalizeFieldInfo},"get")});Object.defineProperty(Ne,"readFieldOptions",{enumerable:!0,get:o(function(){return np.readFieldOptions},"get")});Object.defineProperty(Ne,"readFieldOption",{enumerable:!0,get:o(function(){return np.readFieldOption},"get")});Object.defineProperty(Ne,"readMessageOption",{enumerable:!0,get:o(function(){return np.readMessageOption},"get")});var uct=dz();Object.defineProperty(Ne,"ReflectionTypeCheck",{enumerable:!0,get:o(function(){return uct.ReflectionTypeCheck},"get")});var dct=Cz();Object.defineProperty(Ne,"reflectionCreate",{enumerable:!0,get:o(function(){return dct.reflectionCreate},"get")});var fct=V_();Object.defineProperty(Ne,"reflectionScalarDefault",{enumerable:!0,get:o(function(){return fct.reflectionScalarDefault},"get")});var hct=bz();Object.defineProperty(Ne,"reflectionMergePartial",{enumerable:!0,get:o(function(){return hct.reflectionMergePartial},"get")});var pct=Iz();Object.defineProperty(Ne,"reflectionEquals",{enumerable:!0,get:o(function(){return pct.reflectionEquals},"get")});var Act=gz();Object.defineProperty(Ne,"ReflectionBinaryReader",{enumerable:!0,get:o(function(){return Act.ReflectionBinaryReader},"get")});var mct=Ez();Object.defineProperty(Ne,"ReflectionBinaryWriter",{enumerable:!0,get:o(function(){return mct.ReflectionBinaryWriter},"get")});var gct=hz();Object.defineProperty(Ne,"ReflectionJsonReader",{enumerable:!0,get:o(function(){return gct.ReflectionJsonReader},"get")});var yct=Az();Object.defineProperty(Ne,"ReflectionJsonWriter",{enumerable:!0,get:o(function(){return yct.ReflectionJsonWriter},"get")});var Ect=Sme();Object.defineProperty(Ne,"containsMessageType",{enumerable:!0,get:o(function(){return Ect.containsMessageType},"get")});var Z0=lz();Object.defineProperty(Ne,"isOneofGroup",{enumerable:!0,get:o(function(){return Z0.isOneofGroup},"get")});Object.defineProperty(Ne,"setOneofValue",{enumerable:!0,get:o(function(){return Z0.setOneofValue},"get")});Object.defineProperty(Ne,"getOneofValue",{enumerable:!0,get:o(function(){return Z0.getOneofValue},"get")});Object.defineProperty(Ne,"clearOneofValue",{enumerable:!0,get:o(function(){return Z0.clearOneofValue},"get")});Object.defineProperty(Ne,"getSelectedOneofValue",{enumerable:!0,get:o(function(){return Z0.getSelectedOneofValue},"get")});var eT=xme();Object.defineProperty(Ne,"listEnumValues",{enumerable:!0,get:o(function(){return eT.listEnumValues},"get")});Object.defineProperty(Ne,"listEnumNames",{enumerable:!0,get:o(function(){return eT.listEnumNames},"get")});Object.defineProperty(Ne,"listEnumNumbers",{enumerable:!0,get:o(function(){return eT.listEnumNumbers},"get")});Object.defineProperty(Ne,"isEnumObject",{enumerable:!0,get:o(function(){return eT.isEnumObject},"get")});var Cct=cz();Object.defineProperty(Ne,"lowerCamelCase",{enumerable:!0,get:o(function(){return Cct.lowerCamelCase},"get")});var ew=wg();Object.defineProperty(Ne,"assert",{enumerable:!0,get:o(function(){return ew.assert},"get")});Object.defineProperty(Ne,"assertNever",{enumerable:!0,get:o(function(){return ew.assertNever},"get")});Object.defineProperty(Ne,"assertInt32",{enumerable:!0,get:o(function(){return ew.assertInt32},"get")});Object.defineProperty(Ne,"assertUInt32",{enumerable:!0,get:o(function(){return ew.assertUInt32},"get")});Object.defineProperty(Ne,"assertFloat32",{enumerable:!0,get:o(function(){return ew.assertFloat32},"get")})});var Rz=g(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Jc.readServiceOption=Jc.readMethodOption=Jc.readMethodOptions=Jc.normalizeMethodInfo=void 0;var bct=nt();function wct(t,e){var r,n,i;let s=t;return s.service=e,s.localName=(r=s.localName)!==null&&r!==void 0?r:bct.lowerCamelCase(s.name),s.serverStreaming=!!s.serverStreaming,s.clientStreaming=!!s.clientStreaming,s.options=(n=s.options)!==null&&n!==void 0?n:{},s.idempotency=(i=s.idempotency)!==null&&i!==void 0?i:void 0,s}o(wct,"normalizeMethodInfo");Jc.normalizeMethodInfo=wct;function Ict(t,e,r,n){var i;let s=(i=t.methods.find((a,c)=>a.localName===e||c===e))===null||i===void 0?void 0:i.options;return s&&s[r]?n.fromJson(s[r]):void 0}o(Ict,"readMethodOptions");Jc.readMethodOptions=Ict;function Sct(t,e,r,n){var i;let s=(i=t.methods.find((c,l)=>c.localName===e||l===e))===null||i===void 0?void 0:i.options;if(!s)return;let a=s[r];return a===void 0?a:n?n.fromJson(a):a}o(Sct,"readMethodOption");Jc.readMethodOption=Sct;function Bct(t,e,r){let n=t.options;if(!n)return;let i=n[e];return i===void 0?i:r?r.fromJson(i):i}o(Bct,"readServiceOption");Jc.readServiceOption=Bct});var Dme=g(tT=>{"use strict";Object.defineProperty(tT,"__esModule",{value:!0});tT.ServiceType=void 0;var xct=Rz(),_z=class{static{o(this,"ServiceType")}constructor(e,r,n){this.typeName=e,this.methods=r.map(i=>xct.normalizeMethodInfo(i,this)),this.options=n??{}}};tT.ServiceType=_z});var Dz=g(rT=>{"use strict";Object.defineProperty(rT,"__esModule",{value:!0});rT.RpcError=void 0;var Tz=class extends Error{static{o(this,"RpcError")}constructor(e,r="UNKNOWN",n){super(e),this.name="RpcError",Object.setPrototypeOf(this,new.target.prototype),this.code=r,this.meta=n??{}}toString(){let e=[this.name+": "+this.message];this.code&&(e.push(""),e.push("Code: "+this.code)),this.serviceName&&this.methodName&&e.push("Method: "+this.serviceName+"/"+this.methodName);let r=Object.entries(this.meta);if(r.length){e.push(""),e.push("Meta:");for(let[n,i]of r)e.push(` ${n}: ${i}`)}return e.join(` -`)}};rT.RpcError=Tz});var Qz=g(iT=>{"use strict";Object.defineProperty(iT,"__esModule",{value:!0});iT.mergeRpcOptions=void 0;var Qme=nt();function vct(t,e){if(!e)return t;let r={};nT(t,r),nT(e,r);for(let n of Object.keys(e)){let i=e[n];switch(n){case"jsonOptions":r.jsonOptions=Qme.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Qme.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},nT(t.meta,r.meta),nT(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(i):i.concat();break}}return r}o(vct,"mergeRpcOptions");iT.mergeRpcOptions=vct;function nT(t,e){if(!t)return;let r=e;for(let[n,i]of Object.entries(t))i instanceof Date?r[n]=new Date(i.getTime()):Array.isArray(i)?r[n]=i.concat():r[n]=i}o(nT,"copy")});var Pz=g(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0});ip.Deferred=ip.DeferredState=void 0;var Yc;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Yc=ip.DeferredState||(ip.DeferredState={}));var kz=class{static{o(this,"Deferred")}constructor(e=!0){this._state=Yc.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Yc.PENDING)throw new Error(`cannot resolve ${Yc[this.state].toLowerCase()}`);this._resolve(e),this._state=Yc.RESOLVED}reject(e){if(this.state!==Yc.PENDING)throw new Error(`cannot reject ${Yc[this.state].toLowerCase()}`);this._reject(e),this._state=Yc.REJECTED}resolvePending(e){this._state===Yc.PENDING&&this.resolve(e)}rejectPending(e){this._state===Yc.PENDING&&this.reject(e)}};ip.Deferred=kz});var Lz=g(sT=>{"use strict";Object.defineProperty(sT,"__esModule",{value:!0});sT.RpcOutputStreamController=void 0;var kme=Pz(),sp=nt(),Oz=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){sp.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){sp.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){sp.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){sp.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:o(()=>{let e=this._itState;sp.assert(e,"bad state"),sp.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new kme.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;sp.assert(n.state==kme.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};sT.RpcOutputStreamController=Oz});var Mz=g(xg=>{"use strict";var Nct=xg&&xg.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(xg,"__esModule",{value:!0});xg.UnaryCall=void 0;var Fz=class{static{o(this,"UnaryCall")}constructor(e,r,n,i,s,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=i,this.response=s,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return Nct(this,void 0,void 0,function*(){let[e,r,n,i]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:i}})}};xg.UnaryCall=Fz});var qz=g(vg=>{"use strict";var Rct=vg&&vg.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(vg,"__esModule",{value:!0});vg.ServerStreamingCall=void 0;var Uz=class{static{o(this,"ServerStreamingCall")}constructor(e,r,n,i,s,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=i,this.responses=s,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return Rct(this,void 0,void 0,function*(){let[e,r,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,status:r,trailers:n}})}};vg.ServerStreamingCall=Uz});var Hz=g(Ng=>{"use strict";var _ct=Ng&&Ng.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(Ng,"__esModule",{value:!0});Ng.ClientStreamingCall=void 0;var Gz=class{static{o(this,"ClientStreamingCall")}constructor(e,r,n,i,s,a,c){this.method=e,this.requestHeaders=r,this.requests=n,this.headers=i,this.response=s,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return _ct(this,void 0,void 0,function*(){let[e,r,n,i]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,response:r,status:n,trailers:i}})}};Ng.ClientStreamingCall=Gz});var Vz=g(Rg=>{"use strict";var Tct=Rg&&Rg.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(Rg,"__esModule",{value:!0});Rg.DuplexStreamingCall=void 0;var zz=class{static{o(this,"DuplexStreamingCall")}constructor(e,r,n,i,s,a,c){this.method=e,this.requestHeaders=r,this.requests=n,this.headers=i,this.responses=s,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return Tct(this,void 0,void 0,function*(){let[e,r,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,status:r,trailers:n}})}};Rg.DuplexStreamingCall=zz});var Ome=g(Dg=>{"use strict";var Dct=Dg&&Dg.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(Dg,"__esModule",{value:!0});Dg.TestTransport=void 0;var Mo=Dz(),oT=nt(),Pme=Lz(),Qct=Qz(),kct=Mz(),Pct=qz(),Oct=Hz(),Lct=Vz(),Tg=class t{static{o(this,"TestTransport")}constructor(e){this.suppressUncaughtRejections=!0,this.headerDelay=10,this.responseDelay=50,this.betweenResponseDelay=10,this.afterResponseDelay=10,this.data=e??{}}get sentMessages(){return this.lastInput instanceof _g?this.lastInput.sent:typeof this.lastInput=="object"?[this.lastInput.single]:[]}get sendComplete(){return this.lastInput instanceof _g?this.lastInput.completed:typeof this.lastInput=="object"}promiseHeaders(){var e;let r=(e=this.data.headers)!==null&&e!==void 0?e:t.defaultHeaders;return r instanceof Mo.RpcError?Promise.reject(r):Promise.resolve(r)}promiseSingleResponse(e){if(this.data.response instanceof Mo.RpcError)return Promise.reject(this.data.response);let r;return Array.isArray(this.data.response)?(oT.assert(this.data.response.length>0),r=this.data.response[0]):this.data.response!==void 0?r=this.data.response:r=e.O.create(),oT.assert(e.O.is(r)),Promise.resolve(r)}streamResponses(e,r,n){return Dct(this,void 0,void 0,function*(){let i=[];if(this.data.response===void 0)i.push(e.O.create());else if(Array.isArray(this.data.response))for(let s of this.data.response)oT.assert(e.O.is(s)),i.push(s);else this.data.response instanceof Mo.RpcError||(oT.assert(e.O.is(this.data.response)),i.push(this.data.response));try{yield Tn(this.responseDelay,n)(void 0)}catch(s){r.notifyError(s);return}if(this.data.response instanceof Mo.RpcError){r.notifyError(this.data.response);return}for(let s of i){r.notifyMessage(s);try{yield Tn(this.betweenResponseDelay,n)(void 0)}catch(a){r.notifyError(a);return}}if(this.data.status instanceof Mo.RpcError){r.notifyError(this.data.status);return}if(this.data.trailers instanceof Mo.RpcError){r.notifyError(this.data.trailers);return}r.notifyComplete()})}promiseStatus(){var e;let r=(e=this.data.status)!==null&&e!==void 0?e:t.defaultStatus;return r instanceof Mo.RpcError?Promise.reject(r):Promise.resolve(r)}promiseTrailers(){var e;let r=(e=this.data.trailers)!==null&&e!==void 0?e:t.defaultTrailers;return r instanceof Mo.RpcError?Promise.reject(r):Promise.resolve(r)}maybeSuppressUncaught(...e){if(this.suppressUncaughtRejections)for(let r of e)r.catch(()=>{})}mergeOptions(e){return Qct.mergeRpcOptions({},e)}unary(e,r,n){var i;let s=(i=n.meta)!==null&&i!==void 0?i:{},a=this.promiseHeaders().then(Tn(this.headerDelay,n.abort)),c=a.catch(d=>{}).then(Tn(this.responseDelay,n.abort)).then(d=>this.promiseSingleResponse(e)),l=c.catch(d=>{}).then(Tn(this.afterResponseDelay,n.abort)).then(d=>this.promiseStatus()),u=c.catch(d=>{}).then(Tn(this.afterResponseDelay,n.abort)).then(d=>this.promiseTrailers());return this.maybeSuppressUncaught(l,u),this.lastInput={single:r},new kct.UnaryCall(e,s,r,a,c,l,u)}serverStreaming(e,r,n){var i;let s=(i=n.meta)!==null&&i!==void 0?i:{},a=this.promiseHeaders().then(Tn(this.headerDelay,n.abort)),c=new Pme.RpcOutputStreamController,l=a.then(Tn(this.responseDelay,n.abort)).catch(()=>{}).then(()=>this.streamResponses(e,c,n.abort)).then(Tn(this.afterResponseDelay,n.abort)),u=l.then(()=>this.promiseStatus()),d=l.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(u,d),this.lastInput={single:r},new Pct.ServerStreamingCall(e,s,r,a,c,u,d)}clientStreaming(e,r){var n;let i=(n=r.meta)!==null&&n!==void 0?n:{},s=this.promiseHeaders().then(Tn(this.headerDelay,r.abort)),a=s.catch(u=>{}).then(Tn(this.responseDelay,r.abort)).then(u=>this.promiseSingleResponse(e)),c=a.catch(u=>{}).then(Tn(this.afterResponseDelay,r.abort)).then(u=>this.promiseStatus()),l=a.catch(u=>{}).then(Tn(this.afterResponseDelay,r.abort)).then(u=>this.promiseTrailers());return this.maybeSuppressUncaught(c,l),this.lastInput=new _g(this.data,r.abort),new Oct.ClientStreamingCall(e,i,this.lastInput,s,a,c,l)}duplex(e,r){var n;let i=(n=r.meta)!==null&&n!==void 0?n:{},s=this.promiseHeaders().then(Tn(this.headerDelay,r.abort)),a=new Pme.RpcOutputStreamController,c=s.then(Tn(this.responseDelay,r.abort)).catch(()=>{}).then(()=>this.streamResponses(e,a,r.abort)).then(Tn(this.afterResponseDelay,r.abort)),l=c.then(()=>this.promiseStatus()),u=c.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(l,u),this.lastInput=new _g(this.data,r.abort),new Lct.DuplexStreamingCall(e,i,this.lastInput,s,a,l,u)}};Dg.TestTransport=Tg;Tg.defaultHeaders={responseHeader:"test"};Tg.defaultStatus={code:"OK",detail:"all good"};Tg.defaultTrailers={responseTrailer:"test"};function Tn(t,e){return r=>new Promise((n,i)=>{if(e?.aborted)i(new Mo.RpcError("user cancel","CANCELLED"));else{let s=setTimeout(()=>n(r),t);e&&e.addEventListener("abort",a=>{clearTimeout(s),i(new Mo.RpcError("user cancel","CANCELLED"))})}})}o(Tn,"delay");var _g=class{static{o(this,"TestInputStream")}constructor(e,r){this._completed=!1,this._sent=[],this.data=e,this.abort=r}get sent(){return this._sent}get completed(){return this._completed}send(e){if(this.data.inputMessage instanceof Mo.RpcError)return Promise.reject(this.data.inputMessage);let r=this.data.inputMessage===void 0?10:this.data.inputMessage;return Promise.resolve(void 0).then(()=>{this._sent.push(e)}).then(Tn(r,this.abort))}complete(){if(this.data.inputComplete instanceof Mo.RpcError)return Promise.reject(this.data.inputComplete);let e=this.data.inputComplete===void 0?10:this.data.inputComplete;return Promise.resolve(void 0).then(()=>{this._completed=!0}).then(Tn(e,this.abort))}}});var Lme=g(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.stackDuplexStreamingInterceptors=Uo.stackClientStreamingInterceptors=Uo.stackServerStreamingInterceptors=Uo.stackUnaryInterceptors=Uo.stackIntercept=void 0;var Fct=nt();function tw(t,e,r,n,i){var s,a,c,l;if(t=="unary"){let u=o((d,f,h)=>e.unary(d,f,h),"tail");for(let d of((s=n.interceptors)!==null&&s!==void 0?s:[]).filter(f=>f.interceptUnary).reverse()){let f=u;u=o((h,p,m)=>d.interceptUnary(f,h,p,m),"tail")}return u(r,i,n)}if(t=="serverStreaming"){let u=o((d,f,h)=>e.serverStreaming(d,f,h),"tail");for(let d of((a=n.interceptors)!==null&&a!==void 0?a:[]).filter(f=>f.interceptServerStreaming).reverse()){let f=u;u=o((h,p,m)=>d.interceptServerStreaming(f,h,p,m),"tail")}return u(r,i,n)}if(t=="clientStreaming"){let u=o((d,f)=>e.clientStreaming(d,f),"tail");for(let d of((c=n.interceptors)!==null&&c!==void 0?c:[]).filter(f=>f.interceptClientStreaming).reverse()){let f=u;u=o((h,p)=>d.interceptClientStreaming(f,h,p),"tail")}return u(r,n)}if(t=="duplex"){let u=o((d,f)=>e.duplex(d,f),"tail");for(let d of((l=n.interceptors)!==null&&l!==void 0?l:[]).filter(f=>f.interceptDuplex).reverse()){let f=u;u=o((h,p)=>d.interceptDuplex(f,h,p),"tail")}return u(r,n)}Fct.assertNever(t)}o(tw,"stackIntercept");Uo.stackIntercept=tw;function Mct(t,e,r,n){return tw("unary",t,e,n,r)}o(Mct,"stackUnaryInterceptors");Uo.stackUnaryInterceptors=Mct;function Uct(t,e,r,n){return tw("serverStreaming",t,e,n,r)}o(Uct,"stackServerStreamingInterceptors");Uo.stackServerStreamingInterceptors=Uct;function qct(t,e,r){return tw("clientStreaming",t,e,r)}o(qct,"stackClientStreamingInterceptors");Uo.stackClientStreamingInterceptors=qct;function Gct(t,e,r){return tw("duplex",t,e,r)}o(Gct,"stackDuplexStreamingInterceptors");Uo.stackDuplexStreamingInterceptors=Gct});var Fme=g(aT=>{"use strict";Object.defineProperty(aT,"__esModule",{value:!0});aT.ServerCallContextController=void 0;var $z=class{static{o(this,"ServerCallContextController")}constructor(e,r,n,i,s={code:"OK",detail:""}){this._cancelled=!1,this._listeners=[],this.method=e,this.headers=r,this.deadline=n,this.trailers={},this._sendRH=i,this.status=s}notifyCancelled(){if(!this._cancelled){this._cancelled=!0;for(let e of this._listeners)e()}}sendResponseHeaders(e){this._sendRH(e)}get cancelled(){return this._cancelled}onCancel(e){let r=this._listeners;return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}};aT.ServerCallContextController=$z});var Wz=g(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});var Hct=Dme();Object.defineProperty(Dr,"ServiceType",{enumerable:!0,get:o(function(){return Hct.ServiceType},"get")});var jz=Rz();Object.defineProperty(Dr,"readMethodOptions",{enumerable:!0,get:o(function(){return jz.readMethodOptions},"get")});Object.defineProperty(Dr,"readMethodOption",{enumerable:!0,get:o(function(){return jz.readMethodOption},"get")});Object.defineProperty(Dr,"readServiceOption",{enumerable:!0,get:o(function(){return jz.readServiceOption},"get")});var zct=Dz();Object.defineProperty(Dr,"RpcError",{enumerable:!0,get:o(function(){return zct.RpcError},"get")});var Vct=Qz();Object.defineProperty(Dr,"mergeRpcOptions",{enumerable:!0,get:o(function(){return Vct.mergeRpcOptions},"get")});var $ct=Lz();Object.defineProperty(Dr,"RpcOutputStreamController",{enumerable:!0,get:o(function(){return $ct.RpcOutputStreamController},"get")});var jct=Ome();Object.defineProperty(Dr,"TestTransport",{enumerable:!0,get:o(function(){return jct.TestTransport},"get")});var Mme=Pz();Object.defineProperty(Dr,"Deferred",{enumerable:!0,get:o(function(){return Mme.Deferred},"get")});Object.defineProperty(Dr,"DeferredState",{enumerable:!0,get:o(function(){return Mme.DeferredState},"get")});var Wct=Vz();Object.defineProperty(Dr,"DuplexStreamingCall",{enumerable:!0,get:o(function(){return Wct.DuplexStreamingCall},"get")});var Jct=Hz();Object.defineProperty(Dr,"ClientStreamingCall",{enumerable:!0,get:o(function(){return Jct.ClientStreamingCall},"get")});var Yct=qz();Object.defineProperty(Dr,"ServerStreamingCall",{enumerable:!0,get:o(function(){return Yct.ServerStreamingCall},"get")});var Kct=Mz();Object.defineProperty(Dr,"UnaryCall",{enumerable:!0,get:o(function(){return Kct.UnaryCall},"get")});var rw=Lme();Object.defineProperty(Dr,"stackIntercept",{enumerable:!0,get:o(function(){return rw.stackIntercept},"get")});Object.defineProperty(Dr,"stackDuplexStreamingInterceptors",{enumerable:!0,get:o(function(){return rw.stackDuplexStreamingInterceptors},"get")});Object.defineProperty(Dr,"stackClientStreamingInterceptors",{enumerable:!0,get:o(function(){return rw.stackClientStreamingInterceptors},"get")});Object.defineProperty(Dr,"stackServerStreamingInterceptors",{enumerable:!0,get:o(function(){return rw.stackServerStreamingInterceptors},"get")});Object.defineProperty(Dr,"stackUnaryInterceptors",{enumerable:!0,get:o(function(){return rw.stackUnaryInterceptors},"get")});var Xct=Fme();Object.defineProperty(Dr,"ServerCallContextController",{enumerable:!0,get:o(function(){return Xct.ServerCallContextController},"get")})});var kg=g((EAr,sge)=>{"use strict";var ult="2.0.0",dlt=Number.MAX_SAFE_INTEGER||9007199254740991,flt=16,hlt=250,plt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];sge.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:flt,MAX_SAFE_BUILD_LENGTH:hlt,MAX_SAFE_INTEGER:dlt,RELEASE_TYPES:plt,SEMVER_SPEC_VERSION:ult,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var ow=g((CAr,oge)=>{"use strict";var Alt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};oge.exports=Alt});var Pg=g((Zc,age)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:SV,MAX_SAFE_BUILD_LENGTH:mlt,MAX_LENGTH:glt}=kg(),ylt=ow();Zc=age.exports={};var Elt=Zc.re=[],Clt=Zc.safeRe=[],ce=Zc.src=[],blt=Zc.safeSrc=[],le=Zc.t={},wlt=0,BV="[a-zA-Z0-9-]",Ilt=[["\\s",1],["\\d",glt],[BV,mlt]],Slt=o(t=>{for(let[e,r]of Ilt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),Ye=o((t,e,r)=>{let n=Slt(e),i=wlt++;ylt(t,i,e),le[t]=i,ce[i]=e,blt[i]=n,Elt[i]=new RegExp(e,r?"g":void 0),Clt[i]=new RegExp(n,r?"g":void 0)},"createToken");Ye("NUMERICIDENTIFIER","0|[1-9]\\d*");Ye("NUMERICIDENTIFIERLOOSE","\\d+");Ye("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${BV}*`);Ye("MAINVERSION",`(${ce[le.NUMERICIDENTIFIER]})\\.(${ce[le.NUMERICIDENTIFIER]})\\.(${ce[le.NUMERICIDENTIFIER]})`);Ye("MAINVERSIONLOOSE",`(${ce[le.NUMERICIDENTIFIERLOOSE]})\\.(${ce[le.NUMERICIDENTIFIERLOOSE]})\\.(${ce[le.NUMERICIDENTIFIERLOOSE]})`);Ye("PRERELEASEIDENTIFIER",`(?:${ce[le.NONNUMERICIDENTIFIER]}|${ce[le.NUMERICIDENTIFIER]})`);Ye("PRERELEASEIDENTIFIERLOOSE",`(?:${ce[le.NONNUMERICIDENTIFIER]}|${ce[le.NUMERICIDENTIFIERLOOSE]})`);Ye("PRERELEASE",`(?:-(${ce[le.PRERELEASEIDENTIFIER]}(?:\\.${ce[le.PRERELEASEIDENTIFIER]})*))`);Ye("PRERELEASELOOSE",`(?:-?(${ce[le.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ce[le.PRERELEASEIDENTIFIERLOOSE]})*))`);Ye("BUILDIDENTIFIER",`${BV}+`);Ye("BUILD",`(?:\\+(${ce[le.BUILDIDENTIFIER]}(?:\\.${ce[le.BUILDIDENTIFIER]})*))`);Ye("FULLPLAIN",`v?${ce[le.MAINVERSION]}${ce[le.PRERELEASE]}?${ce[le.BUILD]}?`);Ye("FULL",`^${ce[le.FULLPLAIN]}$`);Ye("LOOSEPLAIN",`[v=\\s]*${ce[le.MAINVERSIONLOOSE]}${ce[le.PRERELEASELOOSE]}?${ce[le.BUILD]}?`);Ye("LOOSE",`^${ce[le.LOOSEPLAIN]}$`);Ye("GTLT","((?:<|>)?=?)");Ye("XRANGEIDENTIFIERLOOSE",`${ce[le.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Ye("XRANGEIDENTIFIER",`${ce[le.NUMERICIDENTIFIER]}|x|X|\\*`);Ye("XRANGEPLAIN",`[v=\\s]*(${ce[le.XRANGEIDENTIFIER]})(?:\\.(${ce[le.XRANGEIDENTIFIER]})(?:\\.(${ce[le.XRANGEIDENTIFIER]})(?:${ce[le.PRERELEASE]})?${ce[le.BUILD]}?)?)?`);Ye("XRANGEPLAINLOOSE",`[v=\\s]*(${ce[le.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ce[le.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ce[le.XRANGEIDENTIFIERLOOSE]})(?:${ce[le.PRERELEASELOOSE]})?${ce[le.BUILD]}?)?)?`);Ye("XRANGE",`^${ce[le.GTLT]}\\s*${ce[le.XRANGEPLAIN]}$`);Ye("XRANGELOOSE",`^${ce[le.GTLT]}\\s*${ce[le.XRANGEPLAINLOOSE]}$`);Ye("COERCEPLAIN",`(^|[^\\d])(\\d{1,${SV}})(?:\\.(\\d{1,${SV}}))?(?:\\.(\\d{1,${SV}}))?`);Ye("COERCE",`${ce[le.COERCEPLAIN]}(?:$|[^\\d])`);Ye("COERCEFULL",ce[le.COERCEPLAIN]+`(?:${ce[le.PRERELEASE]})?(?:${ce[le.BUILD]})?(?:$|[^\\d])`);Ye("COERCERTL",ce[le.COERCE],!0);Ye("COERCERTLFULL",ce[le.COERCEFULL],!0);Ye("LONETILDE","(?:~>?)");Ye("TILDETRIM",`(\\s*)${ce[le.LONETILDE]}\\s+`,!0);Zc.tildeTrimReplace="$1~";Ye("TILDE",`^${ce[le.LONETILDE]}${ce[le.XRANGEPLAIN]}$`);Ye("TILDELOOSE",`^${ce[le.LONETILDE]}${ce[le.XRANGEPLAINLOOSE]}$`);Ye("LONECARET","(?:\\^)");Ye("CARETTRIM",`(\\s*)${ce[le.LONECARET]}\\s+`,!0);Zc.caretTrimReplace="$1^";Ye("CARET",`^${ce[le.LONECARET]}${ce[le.XRANGEPLAIN]}$`);Ye("CARETLOOSE",`^${ce[le.LONECARET]}${ce[le.XRANGEPLAINLOOSE]}$`);Ye("COMPARATORLOOSE",`^${ce[le.GTLT]}\\s*(${ce[le.LOOSEPLAIN]})$|^$`);Ye("COMPARATOR",`^${ce[le.GTLT]}\\s*(${ce[le.FULLPLAIN]})$|^$`);Ye("COMPARATORTRIM",`(\\s*)${ce[le.GTLT]}\\s*(${ce[le.LOOSEPLAIN]}|${ce[le.XRANGEPLAIN]})`,!0);Zc.comparatorTrimReplace="$1$2$3";Ye("HYPHENRANGE",`^\\s*(${ce[le.XRANGEPLAIN]})\\s+-\\s+(${ce[le.XRANGEPLAIN]})\\s*$`);Ye("HYPHENRANGELOOSE",`^\\s*(${ce[le.XRANGEPLAINLOOSE]})\\s+-\\s+(${ce[le.XRANGEPLAINLOOSE]})\\s*$`);Ye("STAR","(<|>)?=?\\s*\\*");Ye("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Ye("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var AT=g((wAr,cge)=>{"use strict";var Blt=Object.freeze({loose:!0}),xlt=Object.freeze({}),vlt=o(t=>t?typeof t!="object"?Blt:t:xlt,"parseOptions");cge.exports=vlt});var xV=g((SAr,dge)=>{"use strict";var lge=/^[0-9]+$/,uge=o((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:tuge(e,t),"rcompareIdentifiers");dge.exports={compareIdentifiers:uge,rcompareIdentifiers:Nlt}});var $n=g((xAr,hge)=>{"use strict";var mT=ow(),{MAX_LENGTH:fge,MAX_SAFE_INTEGER:gT}=kg(),{safeRe:yT,t:ET}=Pg(),Rlt=AT(),{compareIdentifiers:vV}=xV(),_lt=o((t,e)=>{let r=e.split(".");if(r.length>t.length)return!1;for(let n=0;nfge)throw new TypeError(`version is longer than ${fge} characters`);mT("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?yT[ET.LOOSE]:yT[ET.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>gT||this.major<0)throw new TypeError("Invalid major version");if(this.minor>gT||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>gT||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&se.major?1:this.minore.minor?1:this.patche.patch?1:0}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],i=e.prerelease[r];if(mT("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return vV(n,i)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let n=this.build[r],i=e.build[r];if(mT("build compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return vV(n,i)}while(++r)}inc(e,r,n){if(e.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let i=`-${r}`.match(this.options.loose?yT[ET.PRERELEASELOOSE]:yT[ET.PRERELEASE]);if(!i||i[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let i=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[i];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let s=[r,i];if(n===!1&&(s=[r]),_lt(this.prerelease,r)){let a=this.prerelease[r.split(".").length];isNaN(a)&&(this.prerelease=s)}else this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};hge.exports=NV});var $d=g((NAr,Age)=>{"use strict";var pge=$n(),Tlt=o((t,e,r=!1)=>{if(t instanceof pge)return t;try{return new pge(t,e)}catch(n){if(!r)return null;throw n}},"parse");Age.exports=Tlt});var gge=g((_Ar,mge)=>{"use strict";var Dlt=$d(),Qlt=o((t,e)=>{let r=Dlt(t,e);return r?r.version:null},"valid");mge.exports=Qlt});var Ege=g((DAr,yge)=>{"use strict";var klt=$d(),Plt=o((t,e)=>{let r=klt(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null},"clean");yge.exports=Plt});var wge=g((kAr,bge)=>{"use strict";var Cge=$n(),Olt=o((t,e,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new Cge(t instanceof Cge?t.version:t,r).inc(e,n,i).version}catch{return null}},"inc");bge.exports=Olt});var Bge=g((OAr,Sge)=>{"use strict";var Ige=$d(),Llt=o((t,e)=>{let r=Ige(t,null,!0),n=Ige(e,null,!0),i=r.compare(n);if(i===0)return null;let s=i>0,a=s?r:n,c=s?n:r,l=!!a.prerelease.length;if(!!c.prerelease.length&&!l){if(!c.patch&&!c.minor)return"major";if(c.compareMain(a)===0)return c.minor&&!c.patch?"minor":"patch"}let d=l?"pre":"";return r.major!==n.major?d+"major":r.minor!==n.minor?d+"minor":r.patch!==n.patch?d+"patch":"prerelease"},"diff");Sge.exports=Llt});var vge=g((FAr,xge)=>{"use strict";var Flt=$n(),Mlt=o((t,e)=>new Flt(t,e).major,"major");xge.exports=Mlt});var Rge=g((UAr,Nge)=>{"use strict";var Ult=$n(),qlt=o((t,e)=>new Ult(t,e).minor,"minor");Nge.exports=qlt});var Tge=g((GAr,_ge)=>{"use strict";var Glt=$n(),Hlt=o((t,e)=>new Glt(t,e).patch,"patch");_ge.exports=Hlt});var Qge=g((zAr,Dge)=>{"use strict";var zlt=$d(),Vlt=o((t,e)=>{let r=zlt(t,e);return r&&r.prerelease.length?r.prerelease:null},"prerelease");Dge.exports=Vlt});var qo=g(($Ar,Pge)=>{"use strict";var kge=$n(),$lt=o((t,e,r)=>new kge(t,r).compare(new kge(e,r)),"compare");Pge.exports=$lt});var Lge=g((WAr,Oge)=>{"use strict";var jlt=qo(),Wlt=o((t,e,r)=>jlt(e,t,r),"rcompare");Oge.exports=Wlt});var Mge=g((YAr,Fge)=>{"use strict";var Jlt=qo(),Ylt=o((t,e)=>Jlt(t,e,!0),"compareLoose");Fge.exports=Ylt});var CT=g((XAr,qge)=>{"use strict";var Uge=$n(),Klt=o((t,e,r)=>{let n=new Uge(t,r),i=new Uge(e,r);return n.compare(i)||n.compareBuild(i)},"compareBuild");qge.exports=Klt});var Hge=g((emr,Gge)=>{"use strict";var Xlt=CT(),Zlt=o((t,e)=>t.sort((r,n)=>Xlt(r,n,e)),"sort");Gge.exports=Zlt});var Vge=g((rmr,zge)=>{"use strict";var eut=CT(),tut=o((t,e)=>t.sort((r,n)=>eut(n,r,e)),"rsort");zge.exports=tut});var aw=g((imr,$ge)=>{"use strict";var rut=qo(),nut=o((t,e,r)=>rut(t,e,r)>0,"gt");$ge.exports=nut});var bT=g((omr,jge)=>{"use strict";var iut=qo(),sut=o((t,e,r)=>iut(t,e,r)<0,"lt");jge.exports=sut});var RV=g((cmr,Wge)=>{"use strict";var out=qo(),aut=o((t,e,r)=>out(t,e,r)===0,"eq");Wge.exports=aut});var _V=g((umr,Jge)=>{"use strict";var cut=qo(),lut=o((t,e,r)=>cut(t,e,r)!==0,"neq");Jge.exports=lut});var wT=g((fmr,Yge)=>{"use strict";var uut=qo(),dut=o((t,e,r)=>uut(t,e,r)>=0,"gte");Yge.exports=dut});var IT=g((pmr,Kge)=>{"use strict";var fut=qo(),hut=o((t,e,r)=>fut(t,e,r)<=0,"lte");Kge.exports=hut});var TV=g((mmr,Xge)=>{"use strict";var put=RV(),Aut=_V(),mut=aw(),gut=wT(),yut=bT(),Eut=IT(),Cut=o((t,e,r,n)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return put(t,r,n);case"!=":return Aut(t,r,n);case">":return mut(t,r,n);case">=":return gut(t,r,n);case"<":return yut(t,r,n);case"<=":return Eut(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}},"cmp");Xge.exports=Cut});var eye=g((ymr,Zge)=>{"use strict";var but=$n(),wut=$d(),{safeRe:ST,t:BT}=Pg(),Iut=o((t,e)=>{if(t instanceof but)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(e.includePrerelease?ST[BT.COERCEFULL]:ST[BT.COERCE]);else{let l=e.includePrerelease?ST[BT.COERCERTLFULL]:ST[BT.COERCERTL],u;for(;(u=l.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||u.index+u[0].length!==r.index+r[0].length)&&(r=u),l.lastIndex=u.index+u[1].length+u[2].length;l.lastIndex=-1}if(r===null)return null;let n=r[2],i=r[3]||"0",s=r[4]||"0",a=e.includePrerelease&&r[5]?`-${r[5]}`:"",c=e.includePrerelease&&r[6]?`+${r[6]}`:"";return wut(`${n}.${i}.${s}${a}${c}`,e)},"coerce");Zge.exports=Iut});var rye=g((Cmr,tye)=>{"use strict";var Sut=$d(),But=kg(),xut=$n(),vut=o((t,e,r)=>{if(!But.RELEASE_TYPES.includes(e))return null;let n=Nut(t,r);return n&&Rut(n,e)},"truncate"),Nut=o((t,e)=>{let r=t instanceof xut?t.version:t;return Sut(r,e)},"cloneInputVersion"),Rut=o((t,e)=>{if(_ut(e))return t.version;switch(t.prerelease=[],e){case"major":t.minor=0,t.patch=0;break;case"minor":t.patch=0;break}return t.format()},"doTruncation"),_ut=o(t=>t.startsWith("pre"),"isPrerelease");tye.exports=vut});var iye=g((wmr,nye)=>{"use strict";var DV=class{static{o(this,"LRUCache")}constructor(){this.max=1e3,this.map=new Map}get(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.map.set(e,r),r}delete(e){return this.map.delete(e)}set(e,r){if(!this.delete(e)&&r!==void 0){if(this.map.size>=this.max){let i=this.map.keys().next().value;this.delete(i)}this.map.set(e,r)}return this}};nye.exports=DV});var Go=g((Smr,cye)=>{"use strict";var Tut=/\s+/g,QV=class t{static{o(this,"Range")}constructor(e,r){if(r=Qut(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof kV)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().replace(Tut," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(i=>!oye(i[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&Gut(i[0])){this.set=[i];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e0&&(this.formatted+="||");let r=this.set[e];for(let n=0;n0&&(this.formatted+=" "),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(qut,"");let n=((this.options.includePrerelease&&Mut)|(this.options.loose&&Uut))+":"+e,i=sye.get(n);if(i)return i;let s=this.options.loose,a=s?Oi[jn.HYPHENRANGELOOSE]:Oi[jn.HYPHENRANGE];e=e.replace(a,Zut(this.options.includePrerelease)),Zt("hyphen replace",e),e=e.replace(Oi[jn.COMPARATORTRIM],Out),Zt("comparator trim",e),e=e.replace(Oi[jn.TILDETRIM],Lut),Zt("tilde trim",e),e=e.replace(Oi[jn.CARETTRIM],Fut),Zt("caret trim",e);let c=e.split(" ").map(f=>Hut(f,this.options)).join(" ").split(/\s+/).map(f=>Xut(f,this.options));s&&(c=c.filter(f=>(Zt("loose invalid filter",f,this.options),!!f.match(Oi[jn.COMPARATORLOOSE])))),Zt("range list",c);let l=new Map,u=c.map(f=>new kV(f,this.options));for(let f of u){if(oye(f))return[f];l.set(f.value,f)}l.size>1&&l.has("")&&l.delete("");let d=[...l.values()];return sye.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>aye(n,r)&&e.set.some(i=>aye(i,r)&&n.every(s=>i.every(a=>s.intersects(a,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new kut(e,this.options)}catch{return!1}for(let r=0;rt.value==="<0.0.0-0","isNullSet"),Gut=o(t=>t.value==="","isAny"),aye=o((t,e)=>{let r=!0,n=t.slice(),i=n.pop();for(;r&&n.length;)r=n.every(s=>i.intersects(s,e)),i=n.pop();return r},"isSatisfiable"),Hut=o((t,e)=>(t=t.replace(Oi[jn.BUILD],""),Zt("comp",t,e),t=jut(t,e),Zt("caret",t),t=Vut(t,e),Zt("tildes",t),t=Jut(t,e),Zt("xrange",t),t=Kut(t,e),Zt("stars",t),t),"parseComparator"),gn=o(t=>!t||t.toLowerCase()==="x"||t==="*","isX"),zut=o((t,e,r)=>gn(t)&&!gn(e)||gn(e)&&r&&!gn(r),"invalidXRangeOrder"),Vut=o((t,e)=>t.trim().split(/\s+/).map(r=>$ut(r,e)).join(" "),"replaceTildes"),$ut=o((t,e)=>{let r=e.loose?Oi[jn.TILDELOOSE]:Oi[jn.TILDE],n=e.includePrerelease?"-0":"";return t.replace(r,(i,s,a,c,l)=>{Zt("tilde",t,i,s,a,c,l);let u;return gn(s)?u="":gn(a)?u=`>=${s}.0.0${n} <${+s+1}.0.0-0`:gn(c)?u=`>=${s}.${a}.0${n} <${s}.${+a+1}.0-0`:l?(Zt("replaceTilde pr",l),u=`>=${s}.${a}.${c}-${l} <${s}.${+a+1}.0-0`):u=`>=${s}.${a}.${c} <${s}.${+a+1}.0-0`,Zt("tilde return",u),u})},"replaceTilde"),jut=o((t,e)=>t.trim().split(/\s+/).map(r=>Wut(r,e)).join(" "),"replaceCarets"),Wut=o((t,e)=>{Zt("caret",t,e);let r=e.loose?Oi[jn.CARETLOOSE]:Oi[jn.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(i,s,a,c,l)=>{Zt("caret",t,i,s,a,c,l);let u;return gn(s)?u="":gn(a)?u=`>=${s}.0.0${n} <${+s+1}.0.0-0`:gn(c)?s==="0"?u=`>=${s}.${a}.0${n} <${s}.${+a+1}.0-0`:u=`>=${s}.${a}.0${n} <${+s+1}.0.0-0`:l?(Zt("replaceCaret pr",l),s==="0"?a==="0"?u=`>=${s}.${a}.${c}-${l} <${s}.${a}.${+c+1}-0`:u=`>=${s}.${a}.${c}-${l} <${s}.${+a+1}.0-0`:u=`>=${s}.${a}.${c}-${l} <${+s+1}.0.0-0`):(Zt("no pr"),s==="0"?a==="0"?u=`>=${s}.${a}.${c} <${s}.${a}.${+c+1}-0`:u=`>=${s}.${a}.${c} <${s}.${+a+1}.0-0`:u=`>=${s}.${a}.${c} <${+s+1}.0.0-0`),Zt("caret return",u),u})},"replaceCaret"),Jut=o((t,e)=>(Zt("replaceXRanges",t,e),t.split(/\s+/).map(r=>Yut(r,e)).join(" ")),"replaceXRanges"),Yut=o((t,e)=>{t=t.trim();let r=e.loose?Oi[jn.XRANGELOOSE]:Oi[jn.XRANGE];return t.replace(r,(n,i,s,a,c,l)=>{if(Zt("xRange",t,n,i,s,a,c,l),zut(s,a,c))return t;let u=gn(s),d=u||gn(a),f=d||gn(c),h=f;return i==="="&&h&&(i=""),l=e.includePrerelease?"-0":"",u?i===">"||i==="<"?n="<0.0.0-0":n="*":i&&h?(d&&(a=0),c=0,i===">"?(i=">=",d?(s=+s+1,a=0,c=0):(a=+a+1,c=0)):i==="<="&&(i="<",d?s=+s+1:a=+a+1),i==="<"&&(l="-0"),n=`${i+s}.${a}.${c}${l}`):d?n=`>=${s}.0.0${l} <${+s+1}.0.0-0`:f&&(n=`>=${s}.${a}.0${l} <${s}.${+a+1}.0-0`),Zt("xRange return",n),n})},"replaceXRange"),Kut=o((t,e)=>(Zt("replaceStars",t,e),t.trim().replace(Oi[jn.STAR],"")),"replaceStars"),Xut=o((t,e)=>(Zt("replaceGTE0",t,e),t.trim().replace(Oi[e.includePrerelease?jn.GTE0PRE:jn.GTE0],"")),"replaceGTE0"),Zut=o(t=>(e,r,n,i,s,a,c,l,u,d,f,h)=>(gn(n)?r="":gn(i)?r=`>=${n}.0.0${t?"-0":""}`:gn(s)?r=`>=${n}.${i}.0${t?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,gn(u)?l="":gn(d)?l=`<${+u+1}.0.0-0`:gn(f)?l=`<${u}.${+d+1}.0-0`:h?l=`<=${u}.${d}.${f}-${h}`:t?l=`<${u}.${d}.${+f+1}-0`:l=`<=${l}`,`${r} ${l}`.trim()),"hyphenReplace"),edt=o((t,e,r)=>{for(let n=0;n0){let i=t[n].semver;if(i.major===e.major&&i.minor===e.minor&&i.patch===e.patch)return!0}return!1}return!0},"testSet")});var cw=g((xmr,pye)=>{"use strict";var lw=Symbol("SemVer ANY"),LV=class t{static{o(this,"Comparator")}static get ANY(){return lw}constructor(e,r){if(r=lye(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),OV("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===lw?this.value="":this.value=this.operator+this.semver.version,OV("comp",this)}parse(e){let r=this.options.loose?uye[dye.COMPARATORLOOSE]:uye[dye.COMPARATOR],n=e.match(r);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new fye(n[2],this.options.loose):this.semver=lw}toString(){return this.value}test(e){if(OV("Comparator.test",e,this.options.loose),this.semver===lw||e===lw)return!0;if(typeof e=="string")try{e=new fye(e,this.options)}catch{return!1}return PV(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new hye(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new hye(this.value,r).test(e.semver):(r=lye(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||PV(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||PV(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};pye.exports=LV;var lye=AT(),{safeRe:uye,t:dye}=Pg(),PV=TV(),OV=ow(),fye=$n(),hye=Go()});var uw=g((Nmr,Aye)=>{"use strict";var tdt=Go(),rdt=o((t,e,r)=>{try{e=new tdt(e,r)}catch{return!1}return e.test(t)},"satisfies");Aye.exports=rdt});var gye=g((_mr,mye)=>{"use strict";var ndt=Go(),idt=o((t,e)=>new ndt(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" ")),"toComparators");mye.exports=idt});var Eye=g((Dmr,yye)=>{"use strict";var sdt=$n(),odt=Go(),adt=o((t,e,r)=>{let n=null,i=null,s=null;try{s=new odt(e,r)}catch{return null}return t.forEach(a=>{s.test(a)&&(!n||i.compare(a)===-1)&&(n=a,i=new sdt(n,r))}),n},"maxSatisfying");yye.exports=adt});var bye=g((kmr,Cye)=>{"use strict";var cdt=$n(),ldt=Go(),udt=o((t,e,r)=>{let n=null,i=null,s=null;try{s=new ldt(e,r)}catch{return null}return t.forEach(a=>{s.test(a)&&(!n||i.compare(a)===1)&&(n=a,i=new cdt(n,r))}),n},"minSatisfying");Cye.exports=udt});var Sye=g((Omr,Iye)=>{"use strict";var FV=$n(),ddt=Go(),wye=aw(),fdt=o((t,e)=>{t=new ddt(t,e);let r=new FV("0.0.0");if(t.test(r)||(r=new FV("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n{let c=new FV(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!s||wye(c,s))&&(s=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),s&&(!r||wye(r,s))&&(r=s)}return r&&t.test(r)?r:null},"minVersion");Iye.exports=fdt});var xye=g((Fmr,Bye)=>{"use strict";var hdt=Go(),pdt=o((t,e)=>{try{return new hdt(t,e).range||"*"}catch{return null}},"validRange");Bye.exports=pdt});var xT=g((Umr,_ye)=>{"use strict";var Adt=$n(),Rye=cw(),{ANY:mdt}=Rye,gdt=Go(),ydt=uw(),vye=aw(),Nye=bT(),Edt=IT(),Cdt=wT(),bdt=o((t,e,r,n)=>{t=new Adt(t,n),e=new gdt(e,n);let i,s,a,c,l;switch(r){case">":i=vye,s=Edt,a=Nye,c=">",l=">=";break;case"<":i=Nye,s=Cdt,a=vye,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ydt(t,e,n))return!1;for(let u=0;u{p.semver===mdt&&(p=new Rye(">=0.0.0")),f=f||p,h=h||p,i(p.semver,f.semver,n)?f=p:a(p.semver,h.semver,n)&&(h=p)}),f.operator===c||f.operator===l||(!h.operator||h.operator===c)&&s(t,h.semver))return!1;if(h.operator===l&&a(t,h.semver))return!1}return!0},"outside");_ye.exports=bdt});var Dye=g((Gmr,Tye)=>{"use strict";var wdt=xT(),Idt=o((t,e,r)=>wdt(t,e,">",r),"gtr");Tye.exports=Idt});var kye=g((zmr,Qye)=>{"use strict";var Sdt=xT(),Bdt=o((t,e,r)=>Sdt(t,e,"<",r),"ltr");Qye.exports=Bdt});var Lye=g(($mr,Oye)=>{"use strict";var Pye=Go(),xdt=o((t,e,r)=>(t=new Pye(t,r),e=new Pye(e,r),t.intersects(e,r)),"intersects");Oye.exports=xdt});var Mye=g((Wmr,Fye)=>{"use strict";var vdt=uw(),Ndt=qo();Fye.exports=(t,e,r)=>{let n=[],i=null,s=null,a=t.sort((d,f)=>Ndt(d,f,r));for(let d of a)vdt(d,e,r)?(s=d,i||(i=d)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);let c=[];for(let[d,f]of n)d===f?c.push(d):!f&&d===a[0]?c.push("*"):f?d===a[0]?c.push(`<=${f}`):c.push(`${d} - ${f}`):c.push(`>=${d}`);let l=c.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return l.length{"use strict";var Uye=Go(),qV=cw(),{ANY:MV}=qV,UV=uw(),GV=qo(),Rdt=o((t,e,r={})=>{if(t===e)return!0;t=new Uye(t,r),e=new Uye(e,r);let n=!1;e:for(let i of t.set){for(let s of e.set){let a=Tdt(i,s,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},"subset"),_dt=[new qV(">=0.0.0-0")],qye=[new qV(">=0.0.0")],Tdt=o((t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===MV){if(e.length===1&&e[0].semver===MV)return!0;r.includePrerelease?t=_dt:t=qye}if(e.length===1&&e[0].semver===MV){if(r.includePrerelease)return!0;e=qye}let n=new Set,i,s;for(let p of t)p.operator===">"||p.operator===">="?i=Gye(i,p,r):p.operator==="<"||p.operator==="<="?s=Hye(s,p,r):n.add(p.semver);if(n.size>1)return null;let a;if(i&&s){if(a=GV(i.semver,s.semver,r),a>0)return null;if(a===0&&(i.operator!==">="||s.operator!=="<="))return null}for(let p of n){if(i&&!UV(p,String(i),r)||s&&!UV(p,String(s),r))return null;for(let m of e)if(!UV(p,String(m),r))return!1;return!0}let c,l,u,d,f=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,h=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;f&&f.prerelease.length===1&&s.operator==="<"&&f.prerelease[0]===0&&(f=!1);for(let p of e){if(d=d||p.operator===">"||p.operator===">=",u=u||p.operator==="<"||p.operator==="<=",i){if(h&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===h.major&&p.semver.minor===h.minor&&p.semver.patch===h.patch&&(h=!1),p.operator===">"||p.operator===">="){if(c=Gye(i,p,r),c===p&&c!==i)return!1}else if(i.operator===">="&&!p.test(i.semver))return!1}if(s){if(f&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===f.major&&p.semver.minor===f.minor&&p.semver.patch===f.patch&&(f=!1),p.operator==="<"||p.operator==="<="){if(l=Hye(s,p,r),l===p&&l!==s)return!1}else if(s.operator==="<="&&!p.test(s.semver))return!1}if(!p.operator&&(s||i)&&a!==0)return!1}return!(i&&u&&!s&&a!==0||s&&d&&!i&&a!==0||h||f)},"simpleSubset"),Gye=o((t,e,r)=>{if(!t)return e;let n=GV(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},"higherGT"),Hye=o((t,e,r)=>{if(!t)return e;let n=GV(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t},"lowerLT");zye.exports=Rdt});var Ma=g((Kmr,Wye)=>{"use strict";var HV=Pg(),$ye=kg(),Ddt=$n(),jye=xV(),Qdt=$d(),kdt=gge(),Pdt=Ege(),Odt=wge(),Ldt=Bge(),Fdt=vge(),Mdt=Rge(),Udt=Tge(),qdt=Qge(),Gdt=qo(),Hdt=Lge(),zdt=Mge(),Vdt=CT(),$dt=Hge(),jdt=Vge(),Wdt=aw(),Jdt=bT(),Ydt=RV(),Kdt=_V(),Xdt=wT(),Zdt=IT(),eft=TV(),tft=eye(),rft=rye(),nft=cw(),ift=Go(),sft=uw(),oft=gye(),aft=Eye(),cft=bye(),lft=Sye(),uft=xye(),dft=xT(),fft=Dye(),hft=kye(),pft=Lye(),Aft=Mye(),mft=Vye();Wye.exports={parse:Qdt,valid:kdt,clean:Pdt,inc:Odt,diff:Ldt,major:Fdt,minor:Mdt,patch:Udt,prerelease:qdt,compare:Gdt,rcompare:Hdt,compareLoose:zdt,compareBuild:Vdt,sort:$dt,rsort:jdt,gt:Wdt,lt:Jdt,eq:Ydt,neq:Kdt,gte:Xdt,lte:Zdt,cmp:eft,coerce:tft,truncate:rft,Comparator:nft,Range:ift,satisfies:sft,toComparators:oft,maxSatisfying:aft,minSatisfying:cft,minVersion:lft,validRange:uft,outside:dft,gtr:fft,ltr:hft,intersects:pft,simplifyRange:Aft,subset:mft,SemVer:Ddt,re:HV.re,src:HV.src,tokens:HV.t,SEMVER_SPEC_VERSION:$ye.SEMVER_SPEC_VERSION,RELEASE_TYPES:$ye.RELEASE_TYPES,compareIdentifiers:jye.compareIdentifiers,rcompareIdentifiers:jye.rcompareIdentifiers}});var Yye=g((egr,Jye)=>{function Ho(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}o(Ho,"RetryOperation");Jye.exports=Ho;Ho.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};Ho.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};Ho.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0};Ho.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};Ho.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};Ho.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};Ho.prototype.start=Ho.prototype.try;Ho.prototype.errors=function(){return this._errors};Ho.prototype.attempts=function(){return this._attempts};Ho.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,n=0;n=r&&(e=i,r=a)}return e}});var Kye=g(up=>{var gft=Yye();up.operation=function(t){var e=up.timeouts(t);return new gft(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};up.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i{Xye.exports=Kye()});var tEe=g((sgr,eEe)=>{var yft=Zye();function Eft(t,e){function r(n,i){var s=e||{},a;"randomize"in s||(s.randomize=!0),a=yft.operation(s);function c(d){i(d||new Error("Aborted"))}o(c,"bail");function l(d,f){if(d.bail){c(d);return}a.retry(d)?s.onRetry&&s.onRetry(d,f):i(a.mainError())}o(l,"onError");function u(d){var f;try{f=t(c,d)}catch(h){l(h,d);return}Promise.resolve(f).then(n).catch(o(function(p){l(p,d)},"catchIt"))}o(u,"runAttempt"),a.attempt(u)}return o(r,"run"),new Promise(r)}o(Eft,"retry");eEe.exports=Eft});var EEe=g((agr,bu)=>{var Gt=require("fs"),RT=require("os"),yn=require("path"),rEe=require("crypto"),el={fs:Gt.constants,os:RT.constants},nEe="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",aEe=/XXXXXX/,Cft=3,cEe=(el.O_CREAT||el.fs.O_CREAT)|(el.O_EXCL||el.fs.O_EXCL)|(el.O_RDWR||el.fs.O_RDWR),bft=RT.platform()==="win32",wft=el.EBADF||el.os.errno.EBADF,Ift=el.ENOENT||el.os.errno.ENOENT,lEe=448,uEe=384,Sft="exit",Og=[],dEe=Gt.rmdirSync.bind(Gt),fEe=!1;function Bft(t,e){return Gt.rm(t,{recursive:!0},e)}o(Bft,"rimraf");function hEe(t){return Gt.rmSync(t,{recursive:!0})}o(hEe,"FN_RIMRAF_SYNC");function jV(t,e){let r=Lg(t,e),n=r[0],i=r[1];Pft(n,function(s,a){if(s)return i(s);let c=a.tries;o((function l(){try{let u=AEe(a);Gt.stat(u,function(d){if(!d)return c-- >0?l():i(new Error("Could not get a unique tmp filename, max tries reached "+u));i(null,u)})}catch(u){i(u)}}),"_getUniqueName")()})}o(jV,"tmpName");function WV(t){let e=Lg(t),r=e[0],n=Oft(r),i=n.tries;do{let s=AEe(n);try{Gt.statSync(s)}catch{return s}}while(i-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}o(WV,"tmpNameSync");function xft(t,e){let r=Lg(t,e),n=r[0],i=r[1];jV(n,o(function(a,c){if(a)return i(a);Gt.open(c,cEe,n.mode||uEe,o(function(u,d){if(u)return i(u);if(n.discardDescriptor)return Gt.close(d,o(function(h){return i(h,c,void 0,VV(c,-1,n,!1))},"_discardCallback"));{let f=n.discardDescriptor||n.detachDescriptor;i(null,c,d,VV(c,f?-1:d,n,!1))}},"_fileCreated"))},"_tmpNameCreated"))}o(xft,"file");function vft(t){let e=Lg(t),r=e[0],n=r.discardDescriptor||r.detachDescriptor,i=WV(r),s=Gt.openSync(i,cEe,r.mode||uEe);return r.discardDescriptor&&(Gt.closeSync(s),s=void 0),{name:i,fd:s,removeCallback:VV(i,n?-1:s,r,!0)}}o(vft,"fileSync");function Nft(t,e){let r=Lg(t,e),n=r[0],i=r[1];jV(n,o(function(a,c){if(a)return i(a);Gt.mkdir(c,n.mode||lEe,o(function(u){if(u)return i(u);i(null,c,pEe(c,n,!1))},"_dirCreated"))},"_tmpNameCreated"))}o(Nft,"dir");function Rft(t){let e=Lg(t),r=e[0],n=WV(r);return Gt.mkdirSync(n,r.mode||lEe),{name:n,removeCallback:pEe(n,r,!0)}}o(Rft,"dirSync");function _ft(t,e){let r=o(function(n){if(n&&!$V(n))return e(n);e()},"_handler");0<=t[0]?Gt.close(t[0],function(){Gt.unlink(t[1],r)}):Gt.unlink(t[1],r)}o(_ft,"_removeFileAsync");function Tft(t){let e=null;try{0<=t[0]&&Gt.closeSync(t[0])}catch(r){if(!Lft(r)&&!$V(r))throw r}finally{try{Gt.unlinkSync(t[1])}catch(r){$V(r)||(e=r)}}if(e!==null)throw e}o(Tft,"_removeFileSync");function VV(t,e,r,n){let i=NT(Tft,[e,t],n),s=NT(_ft,[e,t],n,i);return r.keep||Og.unshift(i),n?i:s}o(VV,"_prepareTmpFileRemoveCallback");function pEe(t,e,r){let n=e.unsafeCleanup?Bft:Gt.rmdir.bind(Gt),i=e.unsafeCleanup?hEe:dEe,s=NT(i,t,r),a=NT(n,t,r,s);return e.keep||Og.unshift(s),r?s:a}o(pEe,"_prepareTmpDirRemoveCallback");function NT(t,e,r,n){let i=!1;return o(function s(a){if(!i){let c=n||s,l=Og.indexOf(c);return l>=0&&Og.splice(l,1),i=!0,r||t===dEe||t===hEe?t(e):t(e,a||function(){})}},"_cleanupCallback")}o(NT,"_prepareRemoveCallback");function Dft(){if(fEe)for(;Og.length;)try{Og[0]()}catch{}}o(Dft,"_garbageCollector");function iEe(t){let e=[],r=null;try{r=rEe.randomBytes(t)}catch{r=rEe.pseudoRandomBytes(t)}for(let n=0;n"u"}o(As,"_isUndefined");function Lg(t,e){if(typeof t=="function")return[{},t];if(As(t))return[{},e];let r={};for(let n of Object.getOwnPropertyNames(t))r[n]=t[n];return[r,e]}o(Lg,"_parseArguments");function Qft(t,e,r){let n=yn.isAbsolute(t)?t:yn.join(e,t);Gt.stat(n,function(i){i?Gt.realpath(yn.dirname(n),function(s,a){if(s)return r(s);r(null,yn.join(a,yn.basename(n)))}):Gt.realpath(n,r)})}o(Qft,"_resolvePath");function kft(t,e){let r=yn.isAbsolute(t)?t:yn.join(e,t);try{return Gt.statSync(r),Gt.realpathSync(r)}catch{let i=Gt.realpathSync(yn.dirname(r));return yn.join(i,yn.basename(r))}}o(kft,"_resolvePathSync");function AEe(t){let e=t.tmpdir;if(!As(t.name))return yn.join(e,t.dir,t.name);if(!As(t.template))return yn.join(e,t.dir,t.template).replace(aEe,iEe(6));let r=[t.prefix?t.prefix:"tmp","-",process.pid,"-",iEe(12),t.postfix?"-"+t.postfix:""].join("");return yn.join(e,t.dir,r)}o(AEe,"_generateTmpName");function zV(t,e){if(typeof e!="string")throw new Error(`${t} option must be a string, got "${typeof e}".`);if(e.includes(".."))throw new Error("Relative value not allowed");return e}o(zV,"_assertPath");function mEe(t){if(!As(t.name)){let e=t.name;if(yn.isAbsolute(e))throw new Error(`name option must not contain an absolute path, found "${e}".`);let r=yn.basename(e);if(r===".."||r==="."||r!==e)throw new Error(`name option must not contain a path, found "${e}".`)}if(!As(t.template)){if(typeof t.template!="string")throw new Error(`template option must be a string, got "${typeof t.template}".`);if(!t.template.match(aEe))throw new Error(`Invalid template, found "${t.template}".`)}if(!As(t.tries)&&isNaN(t.tries)||t.tries<0)throw new Error(`Invalid tries, found "${t.tries}".`);t.tries=As(t.name)?t.tries||Cft:1,t.keep=!!t.keep,t.detachDescriptor=!!t.detachDescriptor,t.discardDescriptor=!!t.discardDescriptor,t.unsafeCleanup=!!t.unsafeCleanup,t.prefix=As(t.prefix)?"":zV("prefix",t.prefix),t.postfix=As(t.postfix)?"":zV("postfix",t.postfix),t.template=As(t.template)?void 0:zV("template",t.template)}o(mEe,"_assertOptionsBase");function sEe(t,e,r,n){if(As(e))return n(null);Qft(e,r,function(i,s){if(i)return n(i);let a=yn.relative(r,s);if(a.startsWith("..")||yn.isAbsolute(a))return n(new Error(`${t} option must be relative to "${r}", found "${a}".`));n(null,a)})}o(sEe,"_getRelativePath");function oEe(t,e,r){if(As(e))return;let n=kft(e,r),i=yn.relative(r,n);if(i.startsWith("..")||yn.isAbsolute(i))throw new Error(`${t} option must be relative to "${r}", found "${i}".`);return i}o(oEe,"_getRelativePathSync");function Pft(t,e){Mft(t,function(r,n){if(r)return e(r);t.tmpdir=n;try{mEe(t,n)}catch(i){return e(i)}sEe("dir",t.dir,n,function(i,s){if(i)return e(i);t.dir=As(s)?"":s,sEe("template",t.template,n,function(a,c){if(a)return e(a);t.template=c,e(null,t)})})})}o(Pft,"_assertAndSanitizeOptions");function Oft(t){let e=t.tmpdir=yEe(t);mEe(t,e);let r=oEe("dir",t.dir,e);return t.dir=As(r)?"":r,t.template=oEe("template",t.template,e),t}o(Oft,"_assertAndSanitizeOptionsSync");function Lft(t){return gEe(t,-wft,"EBADF")}o(Lft,"_isEBADF");function $V(t){return gEe(t,-Ift,"ENOENT")}o($V,"_isENOENT");function gEe(t,e,r){return bft?t.code===r:t.code===r&&t.errno===e}o(gEe,"_isExpectedError");function Fft(){fEe=!0}o(Fft,"setGracefulCleanup");function Mft(t,e){return Gt.realpath(t&&t.tmpdir||RT.tmpdir(),e)}o(Mft,"_getTmpDir");function yEe(t){return Gt.realpathSync(t&&t.tmpdir||RT.tmpdir())}o(yEe,"_getTmpDirSync");process.addListener(Sft,Dft);Object.defineProperty(bu.exports,"tmpdir",{enumerable:!0,configurable:!1,get:o(function(){return yEe()},"get")});bu.exports.dir=Nft;bu.exports.dirSync=Rft;bu.exports.file=xft;bu.exports.fileSync=vft;bu.exports.tmpName=jV;bu.exports.tmpNameSync=WV;bu.exports.setGracefulCleanup=Fft});var li=g(Xs=>{"use strict";Xs.__esModule=!0;Xs.extend=IEe;Xs.indexOf=zft;Xs.escapeExpression=Vft;Xs.isEmpty=$ft;Xs.createFrame=jft;Xs.blockParams=Wft;Xs.appendContextPath=Jft;var Uft={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},qft=/[&<>"'`=]/g,Gft=/[&<>"'`=]/;function Hft(t){return Uft[t]}o(Hft,"escapeChar");function IEe(t){for(var e=1;e{"use strict";_T.__esModule=!0;var XV=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function ZV(t,e){var r=e&&e.loc,n=void 0,i=void 0,s=void 0,a=void 0;r&&r.start&&(n=r.start.line,s=r.start.column,r.end&&(i=r.end.line,a=r.end.column),t+=" - "+n+":"+s);for(var c=Error.prototype.constructor.call(this,t),l=0;l{"use strict";TT.__esModule=!0;var e4=li();TT.default=function(t){t.registerHelper("blockHelperMissing",function(e,r){var n=r.inverse,i=r.fn;if(e===!0)return i(this);if(e===!1||e==null)return n(this);if(e4.isArray(e))return e.length>0?(r.ids&&(r.ids=[r.name]),t.helpers.each(e,r)):n(this);if(r.data&&r.ids){var s=e4.createFrame(r.data);s.contextPath=e4.appendContextPath(r.data.contextPath,r.name),r={data:s}}return i(e,r)})};xEe.exports=TT.default});var REe=g((DT,NEe)=>{"use strict";DT.__esModule=!0;function Yft(t){return t&&t.__esModule?t:{default:t}}o(Yft,"_interopRequireDefault");var Fg=li(),Kft=zo(),Xft=Yft(Kft);function Zft(t){try{var e=t.return;Fg.isFunction(e)&&e.call(t)}catch{}}o(Zft,"closeIterator");DT.default=function(t){t.registerHelper("each",function(e,r){if(!r)throw new Xft.default("Must pass iterator to #each");var n=r.fn,i=r.inverse,s=0,a="",c=void 0,l=void 0;r.data&&r.ids&&(l=Fg.appendContextPath(r.data.contextPath,r.ids[0])+"."),Fg.isFunction(e)&&(e=e.call(this)),r.data&&(c=Fg.createFrame(r.data));function u(m,A,E,y){c&&(c.key=m,c.index=A,c.first=A===0,c.last=!!E,l&&(c.contextPath=l+m)),a=a+n(y,{data:c,blockParams:Fg.blockParams([y,m],[l+m,null])})}if(o(u,"execIteration"),e&&typeof e=="object")if(Fg.isArray(e))for(var d=e.length;s{"use strict";QT.__esModule=!0;function eht(t){return t&&t.__esModule?t:{default:t}}o(eht,"_interopRequireDefault");var tht=zo(),rht=eht(tht);QT.default=function(t){t.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new rht.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};_Ee.exports=QT.default});var PEe=g((kT,kEe)=>{"use strict";kT.__esModule=!0;function nht(t){return t&&t.__esModule?t:{default:t}}o(nht,"_interopRequireDefault");var DEe=li(),iht=zo(),QEe=nht(iht);kT.default=function(t){t.registerHelper("if",function(e,r){if(arguments.length!=2)throw new QEe.default("#if requires exactly one argument");return DEe.isFunction(e)&&(e=e.call(this)),!r.hash.includeZero&&!e||DEe.isEmpty(e)?r.inverse(this):r.fn(this)}),t.registerHelper("unless",function(e,r){if(arguments.length!=2)throw new QEe.default("#unless requires exactly one argument");return t.helpers.if.call(this,e,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};kEe.exports=kT.default});var LEe=g((PT,OEe)=>{"use strict";PT.__esModule=!0;PT.default=function(t){t.registerHelper("log",function(){for(var e=[void 0],r=arguments[arguments.length-1],n=0;n{"use strict";OT.__esModule=!0;OT.default=function(t){t.registerHelper("lookup",function(e,r,n){return e&&n.lookupProperty(e,r)})};FEe.exports=OT.default});var qEe=g((LT,UEe)=>{"use strict";LT.__esModule=!0;function sht(t){return t&&t.__esModule?t:{default:t}}o(sht,"_interopRequireDefault");var dw=li(),oht=zo(),aht=sht(oht);LT.default=function(t){t.registerHelper("with",function(e,r){if(arguments.length!=2)throw new aht.default("#with requires exactly one argument");dw.isFunction(e)&&(e=e.call(this));var n=r.fn;if(dw.isEmpty(e))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=dw.createFrame(r.data),i.contextPath=dw.appendContextPath(r.data.contextPath,r.ids[0])),n(e,{data:i,blockParams:dw.blockParams([e],[i&&i.contextPath])})})};UEe.exports=LT.default});var t4=g(FT=>{"use strict";FT.__esModule=!0;FT.registerDefaultHelpers=wht;FT.moveHelperToHooks=Iht;function dp(t){return t&&t.__esModule?t:{default:t}}o(dp,"_interopRequireDefault");var cht=vEe(),lht=dp(cht),uht=REe(),dht=dp(uht),fht=TEe(),hht=dp(fht),pht=PEe(),Aht=dp(pht),mht=LEe(),ght=dp(mht),yht=MEe(),Eht=dp(yht),Cht=qEe(),bht=dp(Cht);function wht(t){lht.default(t),dht.default(t),hht.default(t),Aht.default(t),ght.default(t),Eht.default(t),bht.default(t)}o(wht,"registerDefaultHelpers");function Iht(t,e,r){t.helpers[e]&&(t.hooks[e]=t.helpers[e],r||(t.helpers[e]=void 0))}o(Iht,"moveHelperToHooks")});var HEe=g((MT,GEe)=>{"use strict";MT.__esModule=!0;var Sht=li();MT.default=function(t){t.registerDecorator("inline",function(e,r,n,i){var s=e;return r.partials||(r.partials={},s=o(function(a,c){var l=n.partials;n.partials=Sht.extend({},l,r.partials);var u=e(a,c);return n.partials=l,u},"ret")),r.partials[i.args[0]]=i.fn,s})};GEe.exports=MT.default});var zEe=g(r4=>{"use strict";r4.__esModule=!0;r4.registerDefaultDecorators=Nht;function Bht(t){return t&&t.__esModule?t:{default:t}}o(Bht,"_interopRequireDefault");var xht=HEe(),vht=Bht(xht);function Nht(t){vht.default(t)}o(Nht,"registerDefaultDecorators")});var n4=g((UT,VEe)=>{"use strict";UT.__esModule=!0;var Rht=li(),Mg={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:o(function(e){if(typeof e=="string"){var r=Rht.indexOf(Mg.methodMap,e.toLowerCase());r>=0?e=r:e=parseInt(e,10)}return e},"lookupLevel"),log:o(function(e){if(e=Mg.lookupLevel(e),typeof console<"u"&&Mg.lookupLevel(Mg.level)<=e){var r=Mg.methodMap[e];console[r]||(r="log");for(var n=arguments.length,i=Array(n>1?n-1:0),s=1;s{"use strict";Ug.__esModule=!0;Ug.createProtoAccessControl=Qht;Ug.resultIsAllowed=kht;Ug.isPrototypeConstructor=Pht;Ug.resetLoggedProperties=Lht;function _ht(t){return t&&t.__esModule?t:{default:t}}o(_ht,"_interopRequireDefault");var $Ee=li(),Tht=n4(),Dht=_ht(Tht),qT=Object.create(null);function Qht(t){var e=Object.create(null);e.__proto__=!1,$Ee.extend(e,t.allowedProtoProperties);var r=Object.create(null);return r.constructor=!1,r.__defineGetter__=!1,r.__defineSetter__=!1,r.__lookupGetter__=!1,r.__lookupSetter__=!1,$Ee.extend(r,t.allowedProtoMethods),{properties:{whitelist:e,defaultValue:t.allowProtoPropertiesByDefault},methods:{whitelist:r,defaultValue:t.allowProtoMethodsByDefault}}}o(Qht,"createProtoAccessControl");function kht(t,e,r){return jEe(typeof t=="function"?e.methods:e.properties,r)}o(kht,"resultIsAllowed");function Pht(t,e,r){return e==="constructor"&&typeof r=="function"&&t===r.prototype}o(Pht,"isPrototypeConstructor");function jEe(t,e){return t.whitelist[e]!==void 0?t.whitelist[e]===!0:t.defaultValue!==void 0?t.defaultValue:(Oht(e),!1)}o(jEe,"checkWhiteList");function Oht(t){qT[t]!==!0&&(qT[t]=!0,Dht.default.log("error",'Handlebars: Access has been denied to resolve the property "'+t+`" because it is not an "own property" of its parent. + Polling status: ${cAe.includes(d)?"Stopped":"Running"}`),d==="succeeded"){let f=a(u,r);if(f!==void 0)return{response:await e(f).catch(oAe({state:r,stateProxy:n,isOperationError:c})),status:d}}return{response:u,status:d}}o(lot,"pollOperationHelper");async function fAe(t){let{poll:e,state:r,stateProxy:n,options:i,getOperationStatus:s,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:d,processResult:f,getError:h,updateState:p,setDelay:m,isDone:A,setErrorAsResult:E}=t,{operationLocation:y}=r.config;if(y!==void 0){let{response:C,status:w}=await lot({poll:e,getOperationStatus:s,state:r,stateProxy:n,operationLocation:y,getResourceLocation:a,isOperationError:l,options:i});if(uAe({status:w,response:C,state:r,stateProxy:n,isDone:A,processResult:f,getError:h,setErrorAsResult:E}),!cAe.includes(w)){let B=d?.(C);B&&m(B);let P=c?.(C,r);if(P!==void 0){let U=y!==P;r.config.operationLocation=P,u?.(P,U)}else u?.(y,!1)}p?.(r,C)}}o(fAe,"pollOperation");function hAe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(hAe,"getOperationLocationPollingUrl");function pAe(t){return t.headers.location}o(pAe,"getLocationHeader");function AAe(t){return t.headers["operation-location"]}o(AAe,"getOperationLocationHeader");function mAe(t){return t.headers["azure-asyncoperation"]}o(mAe,"getAzureAsyncOperationHeader");function uot(t){var e;let{location:r,requestMethod:n,requestPath:i,resourceLocationConfig:s}=t;switch(n){case"PUT":return i;case"DELETE":return;case"PATCH":return(e=a())!==null&&e!==void 0?e:i;default:return a()}function a(){switch(s){case"azure-async-operation":return;case"original-uri":return i;default:return r}}o(a,"getDefault")}o(uot,"findResourceLocation");function gAe(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:i}=t,s=AAe(e),a=mAe(e),c=hAe({operationLocation:s,azureAsyncOperation:a}),l=pAe(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:uot({requestMethod:u,location:l,requestPath:n,resourceLocationConfig:i})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}o(gAe,"inferLroMode");function yAe(t){let{status:e,statusCode:r}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return j5(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return ep.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(yAe,"transformStatus");function dot(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return yAe({status:r,statusCode:t.statusCode})}o(dot,"getStatus");function fot(t){var e,r;let{properties:n,provisioningState:i}=(e=t.body)!==null&&e!==void 0?e:{},s=(r=n?.provisioningState)!==null&&r!==void 0?r:i;return yAe({status:s,statusCode:t.statusCode})}o(fot,"getProvisioningState");function j5(t){return t===202?"running":t<300?"succeeded":"failed"}o(j5,"toOperationStatus");function EAe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?hot(new Date(e)):r*1e3}}o(EAe,"parseRetryAfter");function CAe(t){let e=t.flatResponse.error;if(!e){ep.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){ep.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}o(CAe,"getErrorFromResponse");function hot(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e{let a=await i.sendInitialRequest(),c=gAe({rawResponse:a.rawResponse,requestPath:i.requestPath,requestMethod:i.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:n?({flatResponse:a},c)=>n(a,c):({flatResponse:a})=>a,getOperationStatus:bAe,setErrorAsResult:s})}o(pot,"initHttpOperation");function wAe({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return hAe({operationLocation:AAe(t),azureAsyncOperation:mAe(t)});case"ResourceLocation":return pAe(t);default:return}}o(wAe,"getOperationLocation");function W5({rawResponse:t},e){var r;let n=(r=e.config.metadata)===null||r===void 0?void 0:r.mode;switch(n){case"OperationLocation":return dot(t);case"ResourceLocation":return j5(t.statusCode);case"Body":return fot(t);default:throw new Error(`Internal error: Unexpected operation mode: ${n}`)}}o(W5,"getOperationStatus");function IAe({flatResponse:t},e){if(typeof t=="object"){let r=t.resourceLocation;r!==void 0&&(e.config.resourceLocation=r)}return e.config.resourceLocation}o(IAe,"getResourceLocation");function SAe(t){return t.name==="RestError"}o(SAe,"isOperationError");async function Aot(t){let{lro:e,stateProxy:r,options:n,processResult:i,updateState:s,setDelay:a,state:c,setErrorAsResult:l}=t;return fAe({state:c,stateProxy:r,setDelay:a,processResult:i?({flatResponse:u},d)=>i(u,d):({flatResponse:u})=>u,getError:CAe,updateState:s,getPollingInterval:EAe,getOperationLocation:wAe,getOperationStatus:W5,isOperationError:SAe,getResourceLocation:IAe,options:n,poll:o(async(u,d)=>e.sendPollRequest(u,d),"poll"),setErrorAsResult:l})}o(Aot,"pollHttpOperation");var mot=o(()=>({initState:o(t=>({status:"running",config:t}),"initState"),setCanceled:o(t=>t.status="canceled","setCanceled"),setError:o((t,e)=>t.error=e,"setError"),setResult:o((t,e)=>t.result=e,"setResult"),setRunning:o(t=>t.status="running","setRunning"),setSucceeded:o(t=>t.status="succeeded","setSucceeded"),setFailed:o(t=>t.status="failed","setFailed"),getError:o(t=>t.error,"getError"),getResult:o(t=>t.result,"getResult"),isCanceled:o(t=>t.status==="canceled","isCanceled"),isFailed:o(t=>t.status==="failed","isFailed"),isRunning:o(t=>t.status==="running","isRunning"),isSucceeded:o(t=>t.status==="succeeded","isSucceeded")}),"createStateProxy$1");function got(t){let{getOperationLocation:e,getStatusFromInitialResponse:r,getStatusFromPollResponse:n,isOperationError:i,getResourceLocation:s,getPollingInterval:a,getError:c,resolveOnUnsuccessful:l}=t;return async({init:u,poll:d},f)=>{let{processResult:h,updateState:p,withOperationLocation:m,intervalInMs:A=aAe,restoreFrom:E}=f||{},y=mot(),C=m?(()=>{let V=!1;return(W,ue)=>{ue?m(W):V||m(W),V=!0}})():void 0,w=E?lAe(E):await dAe({init:u,stateProxy:y,processResult:h,getOperationStatus:r,withOperationLocation:C,setErrorAsResult:!l}),B,P=new sAe.AbortController,U=new Map,N=o(async()=>U.forEach(V=>V(w)),"handleProgressEvents"),$="Operation was canceled",Q=A,H={getOperationState:o(()=>w,"getOperationState"),getResult:o(()=>w.result,"getResult"),isDone:o(()=>["succeeded","failed","canceled"].includes(w.status),"isDone"),isStopped:o(()=>B===void 0,"isStopped"),stopPolling:o(()=>{P.abort()},"stopPolling"),toString:o(()=>JSON.stringify({state:w}),"toString"),onProgress:o(V=>{let W=Symbol();return U.set(W,V),()=>U.delete(W)},"onProgress"),pollUntilDone:o(V=>B??(B=(async()=>{let{abortSignal:W}=V||{},{signal:ue}=W?new sAe.AbortController([W,P.signal]):P;if(!H.isDone())for(await H.poll({abortSignal:ue});!H.isDone();)await sot.delay(Q,{abortSignal:ue}),await H.poll({abortSignal:ue});if(l)return H.getResult();switch(w.status){case"succeeded":return H.getResult();case"canceled":throw new Error($);case"failed":throw w.error;case"notStarted":case"running":throw new Error("Polling completed without succeeding or failing")}})().finally(()=>{B=void 0})),"pollUntilDone"),async poll(V){if(l){if(H.isDone())return}else switch(w.status){case"succeeded":return;case"canceled":throw new Error($);case"failed":throw w.error}if(await fAe({poll:d,state:w,stateProxy:y,getOperationLocation:e,isOperationError:i,withOperationLocation:C,getPollingInterval:a,getOperationStatus:n,getResourceLocation:s,processResult:h,getError:c,updateState:p,options:V,setDelay:o(W=>{Q=W},"setDelay"),setErrorAsResult:!l}),await N(),!l)switch(w.status){case"canceled":throw new Error($);case"failed":throw w.error}}};return H}}o(got,"buildCreatePoller");async function yot(t,e){let{resourceLocationConfig:r,intervalInMs:n,processResult:i,restoreFrom:s,updateState:a,withOperationLocation:c,resolveOnUnsuccessful:l=!1}=e||{};return got({getStatusFromInitialResponse:bAe,getStatusFromPollResponse:W5,isOperationError:SAe,getOperationLocation:wAe,getResourceLocation:IAe,getPollingInterval:EAe,getError:CAe,resolveOnUnsuccessful:l})({init:o(async()=>{let u=await t.sendInitialRequest(),d=gAe({rawResponse:u.rawResponse,requestPath:t.requestPath,requestMethod:t.requestMethod,resourceLocationConfig:r});return Object.assign({response:u,operationLocation:d?.operationLocation,resourceLocation:d?.resourceLocation},d?.mode?{metadata:{mode:d.mode}}:{})},"init"),poll:t.sendPollRequest},{intervalInMs:n,withOperationLocation:c,restoreFrom:s,updateState:a,processResult:i?({flatResponse:u},d)=>i(u,d):({flatResponse:u})=>u})}o(yot,"createHttpPoller");var Eot=o(()=>({initState:o(t=>({config:t,isStarted:!0}),"initState"),setCanceled:o(t=>t.isCancelled=!0,"setCanceled"),setError:o((t,e)=>t.error=e,"setError"),setResult:o((t,e)=>t.result=e,"setResult"),setRunning:o(t=>t.isStarted=!0,"setRunning"),setSucceeded:o(t=>t.isCompleted=!0,"setSucceeded"),setFailed:o(()=>{},"setFailed"),getError:o(t=>t.error,"getError"),getResult:o(t=>t.result,"getResult"),isCanceled:o(t=>!!t.isCancelled,"isCanceled"),isFailed:o(t=>!!t.error,"isFailed"),isRunning:o(t=>!!t.isStarted,"isRunning"),isSucceeded:o(t=>!!(t.isCompleted&&!t.isCancelled&&!t.error),"isSucceeded")}),"createStateProxy"),V5=class{static{o(this,"GenericPollOperation")}constructor(e,r,n,i,s,a,c){this.state=e,this.lro=r,this.setErrorAsResult=n,this.lroResourceLocationConfig=i,this.processResult=s,this.updateState=a,this.isDone=c}setPollerConfig(e){this.pollerConfig=e}async update(e){var r;let n=Eot();this.state.isStarted||(this.state=Object.assign(Object.assign({},this.state),await pot({lro:this.lro,stateProxy:n,resourceLocationConfig:this.lroResourceLocationConfig,processResult:this.processResult,setErrorAsResult:this.setErrorAsResult})));let i=this.updateState,s=this.isDone;return!this.state.isCompleted&&this.state.error===void 0&&await Aot({lro:this.lro,state:this.state,stateProxy:n,processResult:this.processResult,updateState:i?(a,{rawResponse:c})=>i(a,c):void 0,isDone:s?({flatResponse:a},c)=>s(a,c):void 0,options:e,setDelay:o(a=>{this.pollerConfig.intervalInMs=a},"setDelay"),setErrorAsResult:this.setErrorAsResult}),(r=e?.fireProgress)===null||r===void 0||r.call(e,this.state),this}async cancel(){return ep.error("`cancelOperation` is deprecated because it wasn't implemented"),this}toString(){return JSON.stringify({state:this.state})}},uR=class t extends Error{static{o(this,"PollerStoppedError")}constructor(e){super(e),this.name="PollerStoppedError",Object.setPrototypeOf(this,t.prototype)}},dR=class t extends Error{static{o(this,"PollerCancelledError")}constructor(e){super(e),this.name="PollerCancelledError",Object.setPrototypeOf(this,t.prototype)}},fR=class{static{o(this,"Poller")}constructor(e){this.resolveOnUnsuccessful=!1,this.stopped=!0,this.pollProgressCallbacks=[],this.operation=e,this.promise=new Promise((r,n)=>{this.resolve=r,this.reject=n}),this.promise.catch(()=>{})}async startPolling(e={}){for(this.stopped&&(this.stopped=!1);!this.isStopped()&&!this.isDone();)await this.poll(e),await this.delay()}async pollOnce(e={}){this.isDone()||(this.operation=await this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})),this.processUpdatedState()}fireProgress(e){for(let r of this.pollProgressCallbacks)r(e)}async cancelOnce(e={}){this.operation=await this.operation.cancel(e)}poll(e={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(e);let r=o(()=>{this.pollOncePromise=void 0},"clearPollOncePromise");this.pollOncePromise.then(r,r).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error&&(this.stopped=!0,!this.resolveOnUnsuccessful))throw this.reject(this.operation.state.error),this.operation.state.error;if(this.operation.state.isCancelled&&(this.stopped=!0,!this.resolveOnUnsuccessful)){let e=new dR("Operation was canceled");throw this.reject(e),e}this.isDone()&&this.resolve&&this.resolve(this.getResult())}async pollUntilDone(e={}){return this.stopped&&this.startPolling(e).catch(this.reject),this.processUpdatedState(),this.promise}onProgress(e){return this.pollProgressCallbacks.push(e),()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter(r=>r!==e)}}isDone(){let e=this.operation.state;return!!(e.isCompleted||e.isCancelled||e.error)}stopPolling(){this.stopped||(this.stopped=!0,this.reject&&this.reject(new uR("This poller is already stopped")))}isStopped(){return this.stopped}cancelOperation(e={}){if(!this.cancelPromise)this.cancelPromise=this.cancelOnce(e);else if(e.abortSignal)throw new Error("A cancel request is currently pending");return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){return this.operation.state.result}toString(){return this.operation.toString()}},$5=class extends fR{static{o(this,"LroEngine")}constructor(e,r){let{intervalInMs:n=aAe,resumeFrom:i,resolveOnUnsuccessful:s=!1,isDone:a,lroResourceLocationConfig:c,processResult:l,updateState:u}=r||{},d=i?lAe(i):{},f=new V5(d,e,!s,c,l,u,a);super(f),this.resolveOnUnsuccessful=s,this.config={intervalInMs:n},f.setPollerConfig(this.config)}delay(){return new Promise(e=>setTimeout(()=>e(),this.config.intervalInMs))}};tp.LroEngine=$5;tp.Poller=fR;tp.PollerCancelledError=dR;tp.PollerStoppedError=uR;tp.createHttpPoller=yot});var jAe=g((Yfr,Uot)=>{Uot.exports={name:"@actions/cache",version:"6.3.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.7.0","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"~1.23.0","@azure/storage-blob":"~12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.8.5"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.9.8","@types/semver":"^7.8.0",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var JAe=g((Kfr,WAe)=>{var qot=jAe();WAe.exports={version:qot.version}});var BR=g(Eg=>{"use strict";Object.defineProperty(Eg,"__esModule",{value:!0});Eg.isJsonObject=Eg.typeofJsonValue=void 0;function Jot(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}o(Jot,"typeofJsonValue");Eg.typeofJsonValue=Jot;function Yot(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}o(Yot,"isJsonObject");Eg.isJsonObject=Yot});var vR=g(Cg=>{"use strict";Object.defineProperty(Cg,"__esModule",{value:!0});Cg.base64encode=Cg.base64decode=void 0;var bu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),xR=[];for(let t=0;t>4,a=s,i=2;break;case 2:r[n++]=(a&15)<<4|(s&60)>>2,a=s,i=3;break;case 3:r[n++]=(a&3)<<6|s,i=0;break}}if(i==1)throw Error("invalid base64 string.");return r.subarray(0,n)}o(Kot,"base64decode");Cg.base64decode=Kot;function Xot(t){let e="",r=0,n,i=0;for(let s=0;s>2],i=(n&3)<<4,r=1;break;case 1:e+=bu[i|n>>4],i=(n&15)<<2,r=2;break;case 2:e+=bu[i|n>>6],e+=bu[n&63],r=0;break}return r&&(e+=bu[i],e+="=",r==1&&(e+="=")),e}o(Xot,"base64encode");Cg.base64encode=Xot});var tme=g(NR=>{"use strict";Object.defineProperty(NR,"__esModule",{value:!0});NR.utf8read=void 0;var sz=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function Zot(t){if(t.length<1)return"";let e=0,r=[],n=[],i=0,s,a=t.length;for(;e191&&s<224?n[i++]=(s&31)<<6|t[e++]&63:s>239&&s<365?(s=((s&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[i++]=55296+(s>>10),n[i++]=56320+(s&1023)):n[i++]=(s&15)<<12|(t[e++]&63)<<6|t[e++]&63,i>8191&&(r.push(sz(n)),i=0);return r.length?(i&&r.push(sz(n.slice(0,i))),r.join("")):sz(n.slice(0,i))}o(Zot,"utf8read");NR.utf8read=Zot});var z0=g(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});jc.WireType=jc.mergeBinaryOptions=jc.UnknownFieldHandler=void 0;var eat;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,i,s,a)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:i,wireType:s,data:a})},t.onWrite=(r,n,i)=>{for(let{no:s,wireType:a,data:c}of t.list(n))i.tag(s,a).raw(c)},t.list=(r,n)=>{if(e(r)){let i=r[t.symbol];return n?i.filter(s=>s.no==n):i}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(eat=jc.UnknownFieldHandler||(jc.UnknownFieldHandler={}));function tat(t,e){return Object.assign(Object.assign({},t),e)}o(tat,"mergeBinaryOptions");jc.mergeBinaryOptions=tat;var rat;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(rat=jc.WireType||(jc.WireType={}))});var RR=g(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.varint32read=fs.varint32write=fs.int64toString=fs.int64fromString=fs.varint64write=fs.varint64read=void 0;function nat(){let t=0,e=0;for(let n=0;n<28;n+=7){let i=this.buf[this.pos++];if(t|=(i&127)<>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let i=this.buf[this.pos++];if(e|=(i&127)<>>s,c=!(!(a>>>7)&&e==0),l=(c?a|128:a)&255;if(r.push(l),!c)return}let n=t>>>28&15|(e&7)<<4,i=e>>3!=0;if(r.push((i?n|128:n)&255),!!i){for(let s=3;s<31;s=s+7){let a=e>>>s,c=!!(a>>>7),l=(c?a|128:a)&255;if(r.push(l),!c)return}r.push(e>>>31&1)}}o(iat,"varint64write");fs.varint64write=iat;var _R=65536*65536;function sat(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,i=0;function s(a,c){let l=Number(t.slice(a,c));i*=r,n=n*r+l,n>=_R&&(i=i+(n/_R|0),n=n%_R)}return o(s,"add1e6digit"),s(-24,-18),s(-18,-12),s(-12,-6),s(-6),[e,n,i]}o(sat,"int64fromString");fs.int64fromString=sat;function oat(t,e){if(e>>>0<=2097151)return""+(_R*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,i=e>>16&65535,s=r+n*6777216+i*6710656,a=n+i*8147497,c=i*2,l=1e7;s>=l&&(a+=Math.floor(s/l),s%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function u(d,f){let h=d?String(d):"";return f?"0000000".slice(h.length)+h:h}return o(u,"decimalFrom1e7"),u(c,0)+u(a,c)+u(s,1)}o(oat,"int64toString");fs.int64toString=oat;function aat(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}o(aat,"varint32write");fs.varint32write=aat;function cat(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}o(cat,"varint32read");fs.varint32read=cat});var zd=g(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});Hd.PbLong=Hd.PbULong=Hd.detectBi=void 0;var V0=RR(),Ht;function rme(){let t=new DataView(new ArrayBuffer(8));Ht=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}o(rme,"detectBi");Hd.detectBi=rme;rme();function nme(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}o(nme,"assertBi");var ime=/^-?[0-9]+$/,DR=4294967296,TR=2147483648,QR=class{static{o(this,"SharedPbLong")}constructor(e,r){this.lo=e|0,this.hi=r|0}isZero(){return this.lo==0&&this.hi==0}toNumber(){let e=this.hi*DR+(this.lo>>>0);if(!Number.isSafeInteger(e))throw new Error("cannot convert to safe number");return e}},$0=class t extends QR{static{o(this,"PbULong")}static from(e){if(Ht)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=Ht.C(e);case"number":if(e===0)return this.ZERO;e=Ht.C(e);case"bigint":if(!e)return this.ZERO;if(eHt.UMAX)throw new Error("ulong too large");return Ht.V.setBigUint64(0,e,!0),new t(Ht.V.getInt32(0,!0),Ht.V.getInt32(4,!0))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=e.trim(),!ime.test(e))throw new Error("string is no integer");let[r,n,i]=V0.int64fromString(e);if(r)throw new Error("signed value for ulong");return new t(n,i);case"number":if(e==0)return this.ZERO;if(!Number.isSafeInteger(e))throw new Error("number is no integer");if(e<0)throw new Error("signed value for ulong");return new t(e,e/DR)}throw new Error("unknown value "+typeof e)}toString(){return Ht?this.toBigInt().toString():V0.int64toString(this.lo,this.hi)}toBigInt(){return nme(Ht),Ht.V.setInt32(0,this.lo,!0),Ht.V.setInt32(4,this.hi,!0),Ht.V.getBigUint64(0,!0)}};Hd.PbULong=$0;$0.ZERO=new $0(0,0);var j0=class t extends QR{static{o(this,"PbLong")}static from(e){if(Ht)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=Ht.C(e);case"number":if(e===0)return this.ZERO;e=Ht.C(e);case"bigint":if(!e)return this.ZERO;if(eHt.MAX)throw new Error("signed long too large");return Ht.V.setBigInt64(0,e,!0),new t(Ht.V.getInt32(0,!0),Ht.V.getInt32(4,!0))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=e.trim(),!ime.test(e))throw new Error("string is no integer");let[r,n,i]=V0.int64fromString(e);if(r){if(i>TR||i==TR&&n!=0)throw new Error("signed long too small")}else if(i>=TR)throw new Error("signed long too large");let s=new t(n,i);return r?s.negate():s;case"number":if(e==0)return this.ZERO;if(!Number.isSafeInteger(e))throw new Error("number is no integer");return e>0?new t(e,e/DR):new t(-e,-e/DR).negate()}throw new Error("unknown value "+typeof e)}isNegative(){return(this.hi&TR)!==0}negate(){let e=~this.hi,r=this.lo;return r?r=~r+1:e+=1,new t(r,e)}toString(){if(Ht)return this.toBigInt().toString();if(this.isNegative()){let e=this.negate();return"-"+V0.int64toString(e.lo,e.hi)}return V0.int64toString(this.lo,this.hi)}toBigInt(){return nme(Ht),Ht.V.setInt32(0,this.lo,!0),Ht.V.setInt32(4,this.hi,!0),Ht.V.getBigInt64(0,!0)}};Hd.PbLong=j0;j0.ZERO=new j0(0,0)});var oz=g(wg=>{"use strict";Object.defineProperty(wg,"__esModule",{value:!0});wg.BinaryReader=wg.binaryReadOptions=void 0;var bg=z0(),W0=zd(),sme=RR(),ome={readUnknownField:!0,readerFactory:o(t=>new kR(t),"readerFactory")};function lat(t){return t?Object.assign(Object.assign({},ome),t):ome}o(lat,"binaryReadOptions");wg.binaryReadOptions=lat;var kR=class{static{o(this,"BinaryReader")}constructor(e,r){this.varint64=sme.varint64read,this.uint32=sme.varint32read,this.buf=e,this.len=e.length,this.pos=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.textDecoder=r??new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0})}tag(){let e=this.uint32(),r=e>>>3,n=e&7;if(r<=0||n<0||n>5)throw new Error("illegal tag: field no "+r+" wire type "+n);return[r,n]}skip(e){let r=this.pos;switch(e){case bg.WireType.Varint:for(;this.buf[this.pos++]&128;);break;case bg.WireType.Bit64:this.pos+=4;case bg.WireType.Bit32:this.pos+=4;break;case bg.WireType.LengthDelimited:let n=this.uint32();this.pos+=n;break;case bg.WireType.StartGroup:let i;for(;(i=this.tag()[1])!==bg.WireType.EndGroup;)this.skip(i);break;default:throw new Error("cant skip wire type "+e)}return this.assertBounds(),this.buf.subarray(r,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let e=this.uint32();return e>>>1^-(e&1)}int64(){return new W0.PbLong(...this.varint64())}uint64(){return new W0.PbULong(...this.varint64())}sint64(){let[e,r]=this.varint64(),n=-(e&1);return e=(e>>>1|(r&1)<<31)^n,r=r>>>1^n,new W0.PbLong(e,r)}bool(){let[e,r]=this.varint64();return e!==0||r!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return new W0.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new W0.PbLong(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let e=this.uint32(),r=this.pos;return this.pos+=e,this.assertBounds(),this.buf.subarray(r,r+e)}string(){return this.textDecoder.decode(this.bytes())}};wg.BinaryReader=kR});var Ig=g(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.assertFloat32=Fo.assertUInt32=Fo.assertInt32=Fo.assertNever=Fo.assert=void 0;function uat(t,e){if(!t)throw new Error(e)}o(uat,"assert");Fo.assert=uat;function dat(t,e){throw new Error(e??"Unexpected object: "+t)}o(dat,"assertNever");Fo.assertNever=dat;var fat=34028234663852886e22,hat=-34028234663852886e22,pat=4294967295,Aat=2147483647,mat=-2147483648;function gat(t){if(typeof t!="number")throw new Error("invalid int 32: "+typeof t);if(!Number.isInteger(t)||t>Aat||tpat||t<0)throw new Error("invalid uint 32: "+t)}o(yat,"assertUInt32");Fo.assertUInt32=yat;function Eat(t){if(typeof t!="number")throw new Error("invalid float 32: "+typeof t);if(Number.isFinite(t)&&(t>fat||t{"use strict";Object.defineProperty(Bg,"__esModule",{value:!0});Bg.BinaryWriter=Bg.binaryWriteOptions=void 0;var J0=zd(),Y0=RR(),Sg=Ig(),ame={writeUnknownFields:!0,writerFactory:o(()=>new PR,"writerFactory")};function Cat(t){return t?Object.assign(Object.assign({},ame),t):ame}o(Cat,"binaryWriteOptions");Bg.binaryWriteOptions=Cat;var PR=class{static{o(this,"BinaryWriter")}constructor(e){this.stack=[],this.textEncoder=e??new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let e=0;for(let i=0;i>>0)}raw(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this}uint32(e){for(Sg.assertUInt32(e);e>127;)this.buf.push(e&127|128),e=e>>>7;return this.buf.push(e),this}int32(e){return Sg.assertInt32(e),Y0.varint32write(e,this.buf),this}bool(e){return this.buf.push(e?1:0),this}bytes(e){return this.uint32(e.byteLength),this.raw(e)}string(e){let r=this.textEncoder.encode(e);return this.uint32(r.byteLength),this.raw(r)}float(e){Sg.assertFloat32(e);let r=new Uint8Array(4);return new DataView(r.buffer).setFloat32(0,e,!0),this.raw(r)}double(e){let r=new Uint8Array(8);return new DataView(r.buffer).setFloat64(0,e,!0),this.raw(r)}fixed32(e){Sg.assertUInt32(e);let r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,e,!0),this.raw(r)}sfixed32(e){Sg.assertInt32(e);let r=new Uint8Array(4);return new DataView(r.buffer).setInt32(0,e,!0),this.raw(r)}sint32(e){return Sg.assertInt32(e),e=(e<<1^e>>31)>>>0,Y0.varint32write(e,this.buf),this}sfixed64(e){let r=new Uint8Array(8),n=new DataView(r.buffer),i=J0.PbLong.from(e);return n.setInt32(0,i.lo,!0),n.setInt32(4,i.hi,!0),this.raw(r)}fixed64(e){let r=new Uint8Array(8),n=new DataView(r.buffer),i=J0.PbULong.from(e);return n.setInt32(0,i.lo,!0),n.setInt32(4,i.hi,!0),this.raw(r)}int64(e){let r=J0.PbLong.from(e);return Y0.varint64write(r.lo,r.hi,this.buf),this}sint64(e){let r=J0.PbLong.from(e),n=r.hi>>31,i=r.lo<<1^n,s=(r.hi<<1|r.lo>>>31)^n;return Y0.varint64write(i,s,this.buf),this}uint64(e){let r=J0.PbULong.from(e);return Y0.varint64write(r.lo,r.hi,this.buf),this}};Bg.BinaryWriter=PR});var cz=g(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});Vd.mergeJsonOptions=Vd.jsonWriteOptions=Vd.jsonReadOptions=void 0;var cme={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0},lme={ignoreUnknownFields:!1};function bat(t){return t?Object.assign(Object.assign({},lme),t):lme}o(bat,"jsonReadOptions");Vd.jsonReadOptions=bat;function wat(t){return t?Object.assign(Object.assign({},cme),t):cme}o(wat,"jsonWriteOptions");Vd.jsonWriteOptions=wat;function Iat(t,e){var r,n;let i=Object.assign(Object.assign({},t),e);return i.typeRegistry=[...(r=t?.typeRegistry)!==null&&r!==void 0?r:[],...(n=e?.typeRegistry)!==null&&n!==void 0?n:[]],i}o(Iat,"mergeJsonOptions");Vd.mergeJsonOptions=Iat});var K0=g(OR=>{"use strict";Object.defineProperty(OR,"__esModule",{value:!0});OR.MESSAGE_TYPE=void 0;OR.MESSAGE_TYPE=Symbol.for("protobuf-ts/message-type")});var lz=g(LR=>{"use strict";Object.defineProperty(LR,"__esModule",{value:!0});LR.lowerCamelCase=void 0;function Sat(t){let e=!1,r=[];for(let n=0;n{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.readMessageOption=An.readFieldOption=An.readFieldOptions=An.normalizeFieldInfo=An.RepeatType=An.LongType=An.ScalarType=void 0;var ume=lz(),Bat;(function(t){t[t.DOUBLE=1]="DOUBLE",t[t.FLOAT=2]="FLOAT",t[t.INT64=3]="INT64",t[t.UINT64=4]="UINT64",t[t.INT32=5]="INT32",t[t.FIXED64=6]="FIXED64",t[t.FIXED32=7]="FIXED32",t[t.BOOL=8]="BOOL",t[t.STRING=9]="STRING",t[t.BYTES=12]="BYTES",t[t.UINT32=13]="UINT32",t[t.SFIXED32=15]="SFIXED32",t[t.SFIXED64=16]="SFIXED64",t[t.SINT32=17]="SINT32",t[t.SINT64=18]="SINT64"})(Bat=An.ScalarType||(An.ScalarType={}));var xat;(function(t){t[t.BIGINT=0]="BIGINT",t[t.STRING=1]="STRING",t[t.NUMBER=2]="NUMBER"})(xat=An.LongType||(An.LongType={}));var dme;(function(t){t[t.NO=0]="NO",t[t.PACKED=1]="PACKED",t[t.UNPACKED=2]="UNPACKED"})(dme=An.RepeatType||(An.RepeatType={}));function vat(t){var e,r,n,i;return t.localName=(e=t.localName)!==null&&e!==void 0?e:ume.lowerCamelCase(t.name),t.jsonName=(r=t.jsonName)!==null&&r!==void 0?r:ume.lowerCamelCase(t.name),t.repeat=(n=t.repeat)!==null&&n!==void 0?n:dme.NO,t.opt=(i=t.opt)!==null&&i!==void 0?i:t.repeat||t.oneof?!1:t.kind=="message",t}o(vat,"normalizeFieldInfo");An.normalizeFieldInfo=vat;function Nat(t,e,r,n){var i;let s=(i=t.fields.find((a,c)=>a.localName==e||c==e))===null||i===void 0?void 0:i.options;return s&&s[r]?n.fromJson(s[r]):void 0}o(Nat,"readFieldOptions");An.readFieldOptions=Nat;function _at(t,e,r,n){var i;let s=(i=t.fields.find((c,l)=>c.localName==e||l==e))===null||i===void 0?void 0:i.options;if(!s)return;let a=s[r];return a===void 0?a:n?n.fromJson(a):a}o(_at,"readFieldOption");An.readFieldOption=_at;function Rat(t,e,r){let i=t.options[e];return i===void 0?i:r?r.fromJson(i):i}o(Rat,"readMessageOption");An.readMessageOption=Rat});var uz=g(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.getSelectedOneofValue=hs.clearOneofValue=hs.setUnknownOneofValue=hs.setOneofValue=hs.getOneofValue=hs.isOneofGroup=void 0;function Tat(t){if(typeof t!="object"||t===null||!t.hasOwnProperty("oneofKind"))return!1;switch(typeof t.oneofKind){case"string":return t[t.oneofKind]===void 0?!1:Object.keys(t).length==2;case"undefined":return Object.keys(t).length==1;default:return!1}}o(Tat,"isOneofGroup");hs.isOneofGroup=Tat;function Dat(t,e){return t[e]}o(Dat,"getOneofValue");hs.getOneofValue=Dat;function Qat(t,e,r){t.oneofKind!==void 0&&delete t[t.oneofKind],t.oneofKind=e,r!==void 0&&(t[e]=r)}o(Qat,"setOneofValue");hs.setOneofValue=Qat;function kat(t,e,r){t.oneofKind!==void 0&&delete t[t.oneofKind],t.oneofKind=e,r!==void 0&&e!==void 0&&(t[e]=r)}o(kat,"setUnknownOneofValue");hs.setUnknownOneofValue=kat;function Pat(t){t.oneofKind!==void 0&&delete t[t.oneofKind],t.oneofKind=void 0}o(Pat,"clearOneofValue");hs.clearOneofValue=Pat;function Oat(t){if(t.oneofKind!==void 0)return t[t.oneofKind]}o(Oat,"getSelectedOneofValue");hs.getSelectedOneofValue=Oat});var fz=g(FR=>{"use strict";Object.defineProperty(FR,"__esModule",{value:!0});FR.ReflectionTypeCheck=void 0;var Tr=Oa(),Lat=uz(),dz=class{static{o(this,"ReflectionTypeCheck")}constructor(e){var r;this.fields=(r=e.fields)!==null&&r!==void 0?r:[]}prepare(){if(this.data)return;let e=[],r=[],n=[];for(let i of this.fields)if(i.oneof)n.includes(i.oneof)||(n.push(i.oneof),e.push(i.oneof),r.push(i.oneof));else switch(r.push(i.localName),i.kind){case"scalar":case"enum":(!i.opt||i.repeat)&&e.push(i.localName);break;case"message":i.repeat&&e.push(i.localName);break;case"map":e.push(i.localName);break}this.data={req:e,known:r,oneofs:Object.values(n)}}is(e,r,n=!1){if(r<0)return!0;if(e==null||typeof e!="object")return!1;this.prepare();let i=Object.keys(e),s=this.data;if(i.length!i.includes(a))||!n&&i.some(a=>!s.known.includes(a)))return!1;if(r<1)return!0;for(let a of s.oneofs){let c=e[a];if(!Lat.isOneofGroup(c))return!1;if(c.oneofKind===void 0)continue;let l=this.fields.find(u=>u.localName===c.oneofKind);if(!l||!this.field(c[c.oneofKind],l,n,r))return!1}for(let a of this.fields)if(a.oneof===void 0&&!this.field(e[a.localName],a,n,r))return!1;return!0}field(e,r,n,i){let s=r.repeat;switch(r.kind){case"scalar":return e===void 0?r.opt:s?this.scalars(e,r.T,i,r.L):this.scalar(e,r.T,r.L);case"enum":return e===void 0?r.opt:s?this.scalars(e,Tr.ScalarType.INT32,i):this.scalar(e,Tr.ScalarType.INT32);case"message":return e===void 0?!0:s?this.messages(e,r.T(),n,i):this.message(e,r.T(),n,i);case"map":if(typeof e!="object"||e===null)return!1;if(i<2)return!0;if(!this.mapKeys(e,r.K,i))return!1;switch(r.V.kind){case"scalar":return this.scalars(Object.values(e),r.V.T,i,r.V.L);case"enum":return this.scalars(Object.values(e),Tr.ScalarType.INT32,i);case"message":return this.messages(Object.values(e),r.V.T(),n,i)}break}return!0}message(e,r,n,i){return n?r.isAssignable(e,i):r.is(e,i)}messages(e,r,n,i){if(!Array.isArray(e))return!1;if(i<2)return!0;if(n){for(let s=0;sparseInt(s)),r,n);case Tr.ScalarType.BOOL:return this.scalars(i.slice(0,n).map(s=>s=="true"?!0:s=="false"?!1:s),r,n);default:return this.scalars(i,r,n,Tr.LongType.STRING)}}};FR.ReflectionTypeCheck=dz});var UR=g(MR=>{"use strict";Object.defineProperty(MR,"__esModule",{value:!0});MR.reflectionLongConvert=void 0;var fme=Oa();function Fat(t,e){switch(e){case fme.LongType.BIGINT:return t.toBigInt();case fme.LongType.NUMBER:return t.toNumber();default:return t.toString()}}o(Fat,"reflectionLongConvert");MR.reflectionLongConvert=Fat});var pz=g(HR=>{"use strict";Object.defineProperty(HR,"__esModule",{value:!0});HR.ReflectionJsonReader=void 0;var hme=BR(),Mat=vR(),mn=Oa(),qR=zd(),np=Ig(),GR=UR(),hz=class{static{o(this,"ReflectionJsonReader")}constructor(e){this.info=e}prepare(){var e;if(this.fMap===void 0){this.fMap={};let r=(e=this.info.fields)!==null&&e!==void 0?e:[];for(let n of r)this.fMap[n.name]=n,this.fMap[n.jsonName]=n,this.fMap[n.localName]=n}}assert(e,r,n){if(!e){let i=hme.typeofJsonValue(n);throw(i=="number"||i=="boolean")&&(i=n.toString()),new Error(`Cannot parse JSON ${i} for ${this.info.typeName}#${r}`)}}read(e,r,n){this.prepare();let i=[];for(let[s,a]of Object.entries(e)){let c=this.fMap[s];if(!c){if(!n.ignoreUnknownFields)throw new Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${s}`);continue}let l=c.localName,u;if(c.oneof){if(a===null&&(c.kind!=="enum"||c.T()[0]!=="google.protobuf.NullValue"))continue;if(i.includes(c.oneof))throw new Error(`Multiple members of the oneof group "${c.oneof}" of ${this.info.typeName} are present in JSON.`);i.push(c.oneof),u=r[c.oneof]={oneofKind:l}}else u=r;if(c.kind=="map"){if(a===null)continue;this.assert(hme.isJsonObject(a),c.name,a);let d=u[l];for(let[f,h]of Object.entries(a)){this.assert(h!==null,c.name+" map value",null);let p;switch(c.V.kind){case"message":p=c.V.T().internalJsonRead(h,n);break;case"enum":if(p=this.enum(c.V.T(),h,c.name,n.ignoreUnknownFields),p===!1)continue;break;case"scalar":p=this.scalar(h,c.V.T,c.V.L,c.name);break}this.assert(p!==void 0,c.name+" map value",h);let m=f;c.K==mn.ScalarType.BOOL&&(m=m=="true"?!0:m=="false"?!1:m),m=this.scalar(m,c.K,mn.LongType.STRING,c.name).toString(),d[m]=p}}else if(c.repeat){if(a===null)continue;this.assert(Array.isArray(a),c.name,a);let d=u[l];for(let f of a){this.assert(f!==null,c.name,null);let h;switch(c.kind){case"message":h=c.T().internalJsonRead(f,n);break;case"enum":if(h=this.enum(c.T(),f,c.name,n.ignoreUnknownFields),h===!1)continue;break;case"scalar":h=this.scalar(f,c.T,c.L,c.name);break}this.assert(h!==void 0,c.name,a),d.push(h)}}else switch(c.kind){case"message":if(a===null&&c.T().typeName!="google.protobuf.Value"){this.assert(c.oneof===void 0,c.name+" (oneof member)",null);continue}u[l]=c.T().internalJsonRead(a,n,u[l]);break;case"enum":if(a===null)continue;let d=this.enum(c.T(),a,c.name,n.ignoreUnknownFields);if(d===!1)continue;u[l]=d;break;case"scalar":if(a===null)continue;u[l]=this.scalar(a,c.T,c.L,c.name);break}}}enum(e,r,n,i){if(e[0]=="google.protobuf.NullValue"&&np.assert(r===null||r==="NULL_VALUE",`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} only accepts null.`),r===null)return 0;switch(typeof r){case"number":return np.assert(Number.isInteger(r),`Unable to parse field ${this.info.typeName}#${n}, enum can only be integral number, got ${r}.`),r;case"string":let s=r;e[2]&&r.substring(0,e[2].length)===e[2]&&(s=r.substring(e[2].length));let a=e[1][s];return typeof a>"u"&&i?!1:(np.assert(typeof a=="number",`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} has no value for "${r}".`),a)}np.assert(!1,`Unable to parse field ${this.info.typeName}#${n}, cannot parse enum value from ${typeof r}".`)}scalar(e,r,n,i){let s;try{switch(r){case mn.ScalarType.DOUBLE:case mn.ScalarType.FLOAT:if(e===null)return 0;if(e==="NaN")return Number.NaN;if(e==="Infinity")return Number.POSITIVE_INFINITY;if(e==="-Infinity")return Number.NEGATIVE_INFINITY;if(e===""){s="empty string";break}if(typeof e=="string"&&e.trim().length!==e.length){s="extra whitespace";break}if(typeof e!="string"&&typeof e!="number")break;let a=Number(e);if(Number.isNaN(a)){s="not a number";break}if(!Number.isFinite(a)){s="too large or small";break}return r==mn.ScalarType.FLOAT&&np.assertFloat32(a),a;case mn.ScalarType.INT32:case mn.ScalarType.FIXED32:case mn.ScalarType.SFIXED32:case mn.ScalarType.SINT32:case mn.ScalarType.UINT32:if(e===null)return 0;let c;if(typeof e=="number"?c=e:e===""?s="empty string":typeof e=="string"&&(e.trim().length!==e.length?s="extra whitespace":c=Number(e)),c===void 0)break;return r==mn.ScalarType.UINT32?np.assertUInt32(c):np.assertInt32(c),c;case mn.ScalarType.INT64:case mn.ScalarType.SFIXED64:case mn.ScalarType.SINT64:if(e===null)return GR.reflectionLongConvert(qR.PbLong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return GR.reflectionLongConvert(qR.PbLong.from(e),n);case mn.ScalarType.FIXED64:case mn.ScalarType.UINT64:if(e===null)return GR.reflectionLongConvert(qR.PbULong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return GR.reflectionLongConvert(qR.PbULong.from(e),n);case mn.ScalarType.BOOL:if(e===null)return!1;if(typeof e!="boolean")break;return e;case mn.ScalarType.STRING:if(e===null)return"";if(typeof e!="string"){s="extra whitespace";break}try{encodeURIComponent(e)}catch(l){l="invalid UTF8";break}return e;case mn.ScalarType.BYTES:if(e===null||e==="")return new Uint8Array(0);if(typeof e!="string")break;return Mat.base64decode(e)}}catch(a){s=a.message}this.assert(!1,i+(s?" - "+s:""),e)}};HR.ReflectionJsonReader=hz});var mz=g(zR=>{"use strict";Object.defineProperty(zR,"__esModule",{value:!0});zR.ReflectionJsonWriter=void 0;var Uat=vR(),pme=zd(),Pi=Oa(),hr=Ig(),Az=class{static{o(this,"ReflectionJsonWriter")}constructor(e){var r;this.fields=(r=e.fields)!==null&&r!==void 0?r:[]}write(e,r){let n={},i=e;for(let s of this.fields){if(!s.oneof){let u=this.field(s,i[s.localName],r);u!==void 0&&(n[r.useProtoFieldName?s.name:s.jsonName]=u);continue}let a=i[s.oneof];if(a.oneofKind!==s.localName)continue;let c=s.kind=="scalar"||s.kind=="enum"?Object.assign(Object.assign({},r),{emitDefaultValues:!0}):r,l=this.field(s,a[s.localName],c);hr.assert(l!==void 0),n[r.useProtoFieldName?s.name:s.jsonName]=l}return n}field(e,r,n){let i;if(e.kind=="map"){hr.assert(typeof r=="object"&&r!==null);let s={};switch(e.V.kind){case"scalar":for(let[l,u]of Object.entries(r)){let d=this.scalar(e.V.T,u,e.name,!1,!0);hr.assert(d!==void 0),s[l.toString()]=d}break;case"message":let a=e.V.T();for(let[l,u]of Object.entries(r)){let d=this.message(a,u,e.name,n);hr.assert(d!==void 0),s[l.toString()]=d}break;case"enum":let c=e.V.T();for(let[l,u]of Object.entries(r)){hr.assert(u===void 0||typeof u=="number");let d=this.enum(c,u,e.name,!1,!0,n.enumAsInteger);hr.assert(d!==void 0),s[l.toString()]=d}break}(n.emitDefaultValues||Object.keys(s).length>0)&&(i=s)}else if(e.repeat){hr.assert(Array.isArray(r));let s=[];switch(e.kind){case"scalar":for(let l=0;l0||n.emitDefaultValues)&&(i=s)}else switch(e.kind){case"scalar":i=this.scalar(e.T,r,e.name,e.opt,n.emitDefaultValues);break;case"enum":i=this.enum(e.T(),r,e.name,e.opt,n.emitDefaultValues,n.enumAsInteger);break;case"message":i=this.message(e.T(),r,e.name,n);break}return i}enum(e,r,n,i,s,a){if(e[0]=="google.protobuf.NullValue")return!s&&!i?void 0:null;if(r===void 0){hr.assert(i);return}if(!(r===0&&!s&&!i))return hr.assert(typeof r=="number"),hr.assert(Number.isInteger(r)),a||!e[1].hasOwnProperty(r)?r:e[2]?e[2]+e[1][r]:e[1][r]}message(e,r,n,i){return r===void 0?i.emitDefaultValues?null:void 0:e.internalJsonWrite(r,i)}scalar(e,r,n,i,s){if(r===void 0){hr.assert(i);return}let a=s||i;switch(e){case Pi.ScalarType.INT32:case Pi.ScalarType.SFIXED32:case Pi.ScalarType.SINT32:return r===0?a?0:void 0:(hr.assertInt32(r),r);case Pi.ScalarType.FIXED32:case Pi.ScalarType.UINT32:return r===0?a?0:void 0:(hr.assertUInt32(r),r);case Pi.ScalarType.FLOAT:hr.assertFloat32(r);case Pi.ScalarType.DOUBLE:return r===0?a?0:void 0:(hr.assert(typeof r=="number"),Number.isNaN(r)?"NaN":r===Number.POSITIVE_INFINITY?"Infinity":r===Number.NEGATIVE_INFINITY?"-Infinity":r);case Pi.ScalarType.STRING:return r===""?a?"":void 0:(hr.assert(typeof r=="string"),r);case Pi.ScalarType.BOOL:return r===!1?a?!1:void 0:(hr.assert(typeof r=="boolean"),r);case Pi.ScalarType.UINT64:case Pi.ScalarType.FIXED64:hr.assert(typeof r=="number"||typeof r=="string"||typeof r=="bigint");let c=pme.PbULong.from(r);return c.isZero()&&!a?void 0:c.toString();case Pi.ScalarType.INT64:case Pi.ScalarType.SFIXED64:case Pi.ScalarType.SINT64:hr.assert(typeof r=="number"||typeof r=="string"||typeof r=="bigint");let l=pme.PbLong.from(r);return l.isZero()&&!a?void 0:l.toString();case Pi.ScalarType.BYTES:return hr.assert(r instanceof Uint8Array),r.byteLength?Uat.base64encode(r):a?"":void 0}}};zR.ReflectionJsonWriter=Az});var $R=g(VR=>{"use strict";Object.defineProperty(VR,"__esModule",{value:!0});VR.reflectionScalarDefault=void 0;var La=Oa(),Ame=UR(),mme=zd();function qat(t,e=La.LongType.STRING){switch(t){case La.ScalarType.BOOL:return!1;case La.ScalarType.UINT64:case La.ScalarType.FIXED64:return Ame.reflectionLongConvert(mme.PbULong.ZERO,e);case La.ScalarType.INT64:case La.ScalarType.SFIXED64:case La.ScalarType.SINT64:return Ame.reflectionLongConvert(mme.PbLong.ZERO,e);case La.ScalarType.DOUBLE:case La.ScalarType.FLOAT:return 0;case La.ScalarType.BYTES:return new Uint8Array(0);case La.ScalarType.STRING:return"";default:return 0}}o(qat,"reflectionScalarDefault");VR.reflectionScalarDefault=qat});var yz=g(jR=>{"use strict";Object.defineProperty(jR,"__esModule",{value:!0});jR.ReflectionBinaryReader=void 0;var gme=z0(),Hr=Oa(),X0=UR(),yme=$R(),gz=class{static{o(this,"ReflectionBinaryReader")}constructor(e){this.info=e}prepare(){var e;if(!this.fieldNoToField){let r=(e=this.info.fields)!==null&&e!==void 0?e:[];this.fieldNoToField=new Map(r.map(n=>[n.no,n]))}}read(e,r,n,i){this.prepare();let s=i===void 0?e.len:e.pos+i;for(;e.pos{"use strict";Object.defineProperty(WR,"__esModule",{value:!0});WR.ReflectionBinaryWriter=void 0;var Ys=z0(),Wt=Oa(),xg=Ig(),Z0=zd(),Ez=class{static{o(this,"ReflectionBinaryWriter")}constructor(e){this.info=e}prepare(){if(!this.fields){let e=this.info.fields?this.info.fields.concat():[];this.fields=e.sort((r,n)=>r.no-n.no)}}write(e,r,n){this.prepare();for(let s of this.fields){let a,c,l=s.repeat,u=s.localName;if(s.oneof){let d=e[s.oneof];if(d.oneofKind!==u)continue;a=d[u],c=!0}else a=e[u],c=!1;switch(s.kind){case"scalar":case"enum":let d=s.kind=="enum"?Wt.ScalarType.INT32:s.T;if(l)if(xg.assert(Array.isArray(a)),l==Wt.RepeatType.PACKED)this.packed(r,d,s.no,a);else for(let f of a)this.scalar(r,d,s.no,f,!0);else a===void 0?xg.assert(s.opt):this.scalar(r,d,s.no,a,c||s.opt);break;case"message":if(l){xg.assert(Array.isArray(a));for(let f of a)this.message(r,n,s.T(),s.no,f)}else this.message(r,n,s.T(),s.no,a);break;case"map":xg.assert(typeof a=="object"&&a!==null);for(let[f,h]of Object.entries(a))this.mapEntry(r,n,s,f,h);break}}let i=n.writeUnknownFields;i!==!1&&(i===!0?Ys.UnknownFieldHandler.onWrite:i)(this.info.typeName,e,r)}mapEntry(e,r,n,i,s){e.tag(n.no,Ys.WireType.LengthDelimited),e.fork();let a=i;switch(n.K){case Wt.ScalarType.INT32:case Wt.ScalarType.FIXED32:case Wt.ScalarType.UINT32:case Wt.ScalarType.SFIXED32:case Wt.ScalarType.SINT32:a=Number.parseInt(i);break;case Wt.ScalarType.BOOL:xg.assert(i=="true"||i=="false"),a=i=="true";break}switch(this.scalar(e,n.K,1,a,!0),n.V.kind){case"scalar":this.scalar(e,n.V.T,2,s,!0);break;case"enum":this.scalar(e,Wt.ScalarType.INT32,2,s,!0);break;case"message":this.message(e,r,n.V.T(),2,s);break}e.join()}message(e,r,n,i,s){s!==void 0&&(n.internalBinaryWrite(s,e.tag(i,Ys.WireType.LengthDelimited).fork(),r),e.join())}scalar(e,r,n,i,s){let[a,c,l]=this.scalarInfo(r,i);(!l||s)&&(e.tag(n,a),e[c](i))}packed(e,r,n,i){if(!i.length)return;xg.assert(r!==Wt.ScalarType.BYTES&&r!==Wt.ScalarType.STRING),e.tag(n,Ys.WireType.LengthDelimited),e.fork();let[,s]=this.scalarInfo(r);for(let a=0;a{"use strict";Object.defineProperty(JR,"__esModule",{value:!0});JR.reflectionCreate=void 0;var Gat=$R(),Hat=K0();function zat(t){let e=t.messagePrototype?Object.create(t.messagePrototype):Object.defineProperty({},Hat.MESSAGE_TYPE,{value:t});for(let r of t.fields){let n=r.localName;if(!r.opt)if(r.oneof)e[r.oneof]={oneofKind:void 0};else if(r.repeat)e[n]=[];else switch(r.kind){case"scalar":e[n]=Gat.reflectionScalarDefault(r.T,r.L);break;case"enum":e[n]=0;break;case"map":e[n]={};break}}return e}o(zat,"reflectionCreate");JR.reflectionCreate=zat});var wz=g(YR=>{"use strict";Object.defineProperty(YR,"__esModule",{value:!0});YR.reflectionMergePartial=void 0;function Vat(t,e,r){let n,i=r,s;for(let a of t.fields){let c=a.localName;if(a.oneof){let l=i[a.oneof];if(l?.oneofKind==null)continue;if(n=l[c],s=e[a.oneof],s.oneofKind=l.oneofKind,n==null){delete s[c];continue}}else if(n=i[c],s=e,n==null)continue;switch(a.repeat&&(s[c].length=n.length),a.kind){case"scalar":case"enum":if(a.repeat)for(let u=0;u{"use strict";Object.defineProperty(XR,"__esModule",{value:!0});XR.reflectionEquals=void 0;var Iz=Oa();function $at(t,e,r){if(e===r)return!0;if(!e||!r)return!1;for(let n of t.fields){let i=n.localName,s=n.oneof?e[n.oneof][i]:e[i],a=n.oneof?r[n.oneof][i]:r[i];switch(n.kind){case"enum":case"scalar":let c=n.kind=="enum"?Iz.ScalarType.INT32:n.T;if(!(n.repeat?Eme(c,s,a):bme(c,s,a)))return!1;break;case"map":if(!(n.V.kind=="message"?Cme(n.V.T(),KR(s),KR(a)):Eme(n.V.kind=="enum"?Iz.ScalarType.INT32:n.V.T,KR(s),KR(a))))return!1;break;case"message":let l=n.T();if(!(n.repeat?Cme(l,s,a):l.equals(s,a)))return!1;break}}return!0}o($at,"reflectionEquals");XR.reflectionEquals=$at;var KR=Object.values;function bme(t,e,r){if(e===r)return!0;if(t!==Iz.ScalarType.BYTES)return!1;let n=e,i=r;if(n.length!==i.length)return!1;for(let s=0;s{"use strict";Object.defineProperty(ZR,"__esModule",{value:!0});ZR.MessageType=void 0;var jat=K0(),Wat=Oa(),Jat=fz(),Yat=pz(),Kat=mz(),Xat=yz(),Zat=Cz(),ect=bz(),Bz=wz(),tct=BR(),wme=cz(),rct=Sz(),nct=az(),ict=oz(),Ime=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})),sct=Ime[jat.MESSAGE_TYPE]={},xz=class{static{o(this,"MessageType")}constructor(e,r,n){this.defaultCheckDepth=16,this.typeName=e,this.fields=r.map(Wat.normalizeFieldInfo),this.options=n??{},sct.value=this,this.messagePrototype=Object.create(null,Ime),this.refTypeCheck=new Jat.ReflectionTypeCheck(this),this.refJsonReader=new Yat.ReflectionJsonReader(this),this.refJsonWriter=new Kat.ReflectionJsonWriter(this),this.refBinReader=new Xat.ReflectionBinaryReader(this),this.refBinWriter=new Zat.ReflectionBinaryWriter(this)}create(e){let r=ect.reflectionCreate(this);return e!==void 0&&Bz.reflectionMergePartial(this,r,e),r}clone(e){let r=this.create();return Bz.reflectionMergePartial(this,r,e),r}equals(e,r){return rct.reflectionEquals(this,e,r)}is(e,r=this.defaultCheckDepth){return this.refTypeCheck.is(e,r,!1)}isAssignable(e,r=this.defaultCheckDepth){return this.refTypeCheck.is(e,r,!0)}mergePartial(e,r){Bz.reflectionMergePartial(this,e,r)}fromBinary(e,r){let n=ict.binaryReadOptions(r);return this.internalBinaryRead(n.readerFactory(e),e.byteLength,n)}fromJson(e,r){return this.internalJsonRead(e,wme.jsonReadOptions(r))}fromJsonString(e,r){let n=JSON.parse(e);return this.fromJson(n,r)}toJson(e,r){return this.internalJsonWrite(e,wme.jsonWriteOptions(r))}toJsonString(e,r){var n;let i=this.toJson(e,r);return JSON.stringify(i,null,(n=r?.prettySpaces)!==null&&n!==void 0?n:0)}toBinary(e,r){let n=nct.binaryWriteOptions(r);return this.internalBinaryWrite(e,n.writerFactory(),n).finish()}internalJsonRead(e,r,n){if(e!==null&&typeof e=="object"&&!Array.isArray(e)){let i=n??this.create();return this.refJsonReader.read(e,i,r),i}throw new Error(`Unable to parse message ${this.typeName} from JSON ${tct.typeofJsonValue(e)}.`)}internalJsonWrite(e,r){return this.refJsonWriter.write(e,r)}internalBinaryWrite(e,r,n){return this.refBinWriter.write(e,r,n),r}internalBinaryRead(e,r,n,i){let s=i??this.create();return this.refBinReader.read(e,s,n,r),s}};ZR.MessageType=xz});var Bme=g(eT=>{"use strict";Object.defineProperty(eT,"__esModule",{value:!0});eT.containsMessageType=void 0;var oct=K0();function act(t){return t[oct.MESSAGE_TYPE]!=null}o(act,"containsMessageType");eT.containsMessageType=act});var vme=g(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});Wc.listEnumNumbers=Wc.listEnumNames=Wc.listEnumValues=Wc.isEnumObject=void 0;function xme(t){if(typeof t!="object"||t===null||!t.hasOwnProperty(0))return!1;for(let e of Object.keys(t)){let r=parseInt(e);if(Number.isNaN(r)){let n=t[e];if(n===void 0||typeof n!="number"||t[n]===void 0)return!1}else{let n=t[r];if(n===void 0||t[n]!==r)return!1}}return!0}o(xme,"isEnumObject");Wc.isEnumObject=xme;function vz(t){if(!xme(t))throw new Error("not a typescript enum object");let e=[];for(let[r,n]of Object.entries(t))typeof n=="number"&&e.push({name:r,number:n});return e}o(vz,"listEnumValues");Wc.listEnumValues=vz;function cct(t){return vz(t).map(e=>e.name)}o(cct,"listEnumNames");Wc.listEnumNames=cct;function lct(t){return vz(t).map(e=>e.number).filter((e,r,n)=>n.indexOf(e)==r)}o(lct,"listEnumNumbers");Wc.listEnumNumbers=lct});var nt=g(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});var Nme=BR();Object.defineProperty(Ne,"typeofJsonValue",{enumerable:!0,get:o(function(){return Nme.typeofJsonValue},"get")});Object.defineProperty(Ne,"isJsonObject",{enumerable:!0,get:o(function(){return Nme.isJsonObject},"get")});var _me=vR();Object.defineProperty(Ne,"base64decode",{enumerable:!0,get:o(function(){return _me.base64decode},"get")});Object.defineProperty(Ne,"base64encode",{enumerable:!0,get:o(function(){return _me.base64encode},"get")});var uct=tme();Object.defineProperty(Ne,"utf8read",{enumerable:!0,get:o(function(){return uct.utf8read},"get")});var Nz=z0();Object.defineProperty(Ne,"WireType",{enumerable:!0,get:o(function(){return Nz.WireType},"get")});Object.defineProperty(Ne,"mergeBinaryOptions",{enumerable:!0,get:o(function(){return Nz.mergeBinaryOptions},"get")});Object.defineProperty(Ne,"UnknownFieldHandler",{enumerable:!0,get:o(function(){return Nz.UnknownFieldHandler},"get")});var Rme=oz();Object.defineProperty(Ne,"BinaryReader",{enumerable:!0,get:o(function(){return Rme.BinaryReader},"get")});Object.defineProperty(Ne,"binaryReadOptions",{enumerable:!0,get:o(function(){return Rme.binaryReadOptions},"get")});var Tme=az();Object.defineProperty(Ne,"BinaryWriter",{enumerable:!0,get:o(function(){return Tme.BinaryWriter},"get")});Object.defineProperty(Ne,"binaryWriteOptions",{enumerable:!0,get:o(function(){return Tme.binaryWriteOptions},"get")});var Dme=zd();Object.defineProperty(Ne,"PbLong",{enumerable:!0,get:o(function(){return Dme.PbLong},"get")});Object.defineProperty(Ne,"PbULong",{enumerable:!0,get:o(function(){return Dme.PbULong},"get")});var _z=cz();Object.defineProperty(Ne,"jsonReadOptions",{enumerable:!0,get:o(function(){return _z.jsonReadOptions},"get")});Object.defineProperty(Ne,"jsonWriteOptions",{enumerable:!0,get:o(function(){return _z.jsonWriteOptions},"get")});Object.defineProperty(Ne,"mergeJsonOptions",{enumerable:!0,get:o(function(){return _z.mergeJsonOptions},"get")});var dct=K0();Object.defineProperty(Ne,"MESSAGE_TYPE",{enumerable:!0,get:o(function(){return dct.MESSAGE_TYPE},"get")});var fct=Sme();Object.defineProperty(Ne,"MessageType",{enumerable:!0,get:o(function(){return fct.MessageType},"get")});var ip=Oa();Object.defineProperty(Ne,"ScalarType",{enumerable:!0,get:o(function(){return ip.ScalarType},"get")});Object.defineProperty(Ne,"LongType",{enumerable:!0,get:o(function(){return ip.LongType},"get")});Object.defineProperty(Ne,"RepeatType",{enumerable:!0,get:o(function(){return ip.RepeatType},"get")});Object.defineProperty(Ne,"normalizeFieldInfo",{enumerable:!0,get:o(function(){return ip.normalizeFieldInfo},"get")});Object.defineProperty(Ne,"readFieldOptions",{enumerable:!0,get:o(function(){return ip.readFieldOptions},"get")});Object.defineProperty(Ne,"readFieldOption",{enumerable:!0,get:o(function(){return ip.readFieldOption},"get")});Object.defineProperty(Ne,"readMessageOption",{enumerable:!0,get:o(function(){return ip.readMessageOption},"get")});var hct=fz();Object.defineProperty(Ne,"ReflectionTypeCheck",{enumerable:!0,get:o(function(){return hct.ReflectionTypeCheck},"get")});var pct=bz();Object.defineProperty(Ne,"reflectionCreate",{enumerable:!0,get:o(function(){return pct.reflectionCreate},"get")});var Act=$R();Object.defineProperty(Ne,"reflectionScalarDefault",{enumerable:!0,get:o(function(){return Act.reflectionScalarDefault},"get")});var mct=wz();Object.defineProperty(Ne,"reflectionMergePartial",{enumerable:!0,get:o(function(){return mct.reflectionMergePartial},"get")});var gct=Sz();Object.defineProperty(Ne,"reflectionEquals",{enumerable:!0,get:o(function(){return gct.reflectionEquals},"get")});var yct=yz();Object.defineProperty(Ne,"ReflectionBinaryReader",{enumerable:!0,get:o(function(){return yct.ReflectionBinaryReader},"get")});var Ect=Cz();Object.defineProperty(Ne,"ReflectionBinaryWriter",{enumerable:!0,get:o(function(){return Ect.ReflectionBinaryWriter},"get")});var Cct=pz();Object.defineProperty(Ne,"ReflectionJsonReader",{enumerable:!0,get:o(function(){return Cct.ReflectionJsonReader},"get")});var bct=mz();Object.defineProperty(Ne,"ReflectionJsonWriter",{enumerable:!0,get:o(function(){return bct.ReflectionJsonWriter},"get")});var wct=Bme();Object.defineProperty(Ne,"containsMessageType",{enumerable:!0,get:o(function(){return wct.containsMessageType},"get")});var ew=uz();Object.defineProperty(Ne,"isOneofGroup",{enumerable:!0,get:o(function(){return ew.isOneofGroup},"get")});Object.defineProperty(Ne,"setOneofValue",{enumerable:!0,get:o(function(){return ew.setOneofValue},"get")});Object.defineProperty(Ne,"getOneofValue",{enumerable:!0,get:o(function(){return ew.getOneofValue},"get")});Object.defineProperty(Ne,"clearOneofValue",{enumerable:!0,get:o(function(){return ew.clearOneofValue},"get")});Object.defineProperty(Ne,"getSelectedOneofValue",{enumerable:!0,get:o(function(){return ew.getSelectedOneofValue},"get")});var tT=vme();Object.defineProperty(Ne,"listEnumValues",{enumerable:!0,get:o(function(){return tT.listEnumValues},"get")});Object.defineProperty(Ne,"listEnumNames",{enumerable:!0,get:o(function(){return tT.listEnumNames},"get")});Object.defineProperty(Ne,"listEnumNumbers",{enumerable:!0,get:o(function(){return tT.listEnumNumbers},"get")});Object.defineProperty(Ne,"isEnumObject",{enumerable:!0,get:o(function(){return tT.isEnumObject},"get")});var Ict=lz();Object.defineProperty(Ne,"lowerCamelCase",{enumerable:!0,get:o(function(){return Ict.lowerCamelCase},"get")});var tw=Ig();Object.defineProperty(Ne,"assert",{enumerable:!0,get:o(function(){return tw.assert},"get")});Object.defineProperty(Ne,"assertNever",{enumerable:!0,get:o(function(){return tw.assertNever},"get")});Object.defineProperty(Ne,"assertInt32",{enumerable:!0,get:o(function(){return tw.assertInt32},"get")});Object.defineProperty(Ne,"assertUInt32",{enumerable:!0,get:o(function(){return tw.assertUInt32},"get")});Object.defineProperty(Ne,"assertFloat32",{enumerable:!0,get:o(function(){return tw.assertFloat32},"get")})});var Rz=g(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Jc.readServiceOption=Jc.readMethodOption=Jc.readMethodOptions=Jc.normalizeMethodInfo=void 0;var Sct=nt();function Bct(t,e){var r,n,i;let s=t;return s.service=e,s.localName=(r=s.localName)!==null&&r!==void 0?r:Sct.lowerCamelCase(s.name),s.serverStreaming=!!s.serverStreaming,s.clientStreaming=!!s.clientStreaming,s.options=(n=s.options)!==null&&n!==void 0?n:{},s.idempotency=(i=s.idempotency)!==null&&i!==void 0?i:void 0,s}o(Bct,"normalizeMethodInfo");Jc.normalizeMethodInfo=Bct;function xct(t,e,r,n){var i;let s=(i=t.methods.find((a,c)=>a.localName===e||c===e))===null||i===void 0?void 0:i.options;return s&&s[r]?n.fromJson(s[r]):void 0}o(xct,"readMethodOptions");Jc.readMethodOptions=xct;function vct(t,e,r,n){var i;let s=(i=t.methods.find((c,l)=>c.localName===e||l===e))===null||i===void 0?void 0:i.options;if(!s)return;let a=s[r];return a===void 0?a:n?n.fromJson(a):a}o(vct,"readMethodOption");Jc.readMethodOption=vct;function Nct(t,e,r){let n=t.options;if(!n)return;let i=n[e];return i===void 0?i:r?r.fromJson(i):i}o(Nct,"readServiceOption");Jc.readServiceOption=Nct});var Qme=g(rT=>{"use strict";Object.defineProperty(rT,"__esModule",{value:!0});rT.ServiceType=void 0;var _ct=Rz(),Tz=class{static{o(this,"ServiceType")}constructor(e,r,n){this.typeName=e,this.methods=r.map(i=>_ct.normalizeMethodInfo(i,this)),this.options=n??{}}};rT.ServiceType=Tz});var Qz=g(nT=>{"use strict";Object.defineProperty(nT,"__esModule",{value:!0});nT.RpcError=void 0;var Dz=class extends Error{static{o(this,"RpcError")}constructor(e,r="UNKNOWN",n){super(e),this.name="RpcError",Object.setPrototypeOf(this,new.target.prototype),this.code=r,this.meta=n??{}}toString(){let e=[this.name+": "+this.message];this.code&&(e.push(""),e.push("Code: "+this.code)),this.serviceName&&this.methodName&&e.push("Method: "+this.serviceName+"/"+this.methodName);let r=Object.entries(this.meta);if(r.length){e.push(""),e.push("Meta:");for(let[n,i]of r)e.push(` ${n}: ${i}`)}return e.join(` +`)}};nT.RpcError=Dz});var kz=g(sT=>{"use strict";Object.defineProperty(sT,"__esModule",{value:!0});sT.mergeRpcOptions=void 0;var kme=nt();function Rct(t,e){if(!e)return t;let r={};iT(t,r),iT(e,r);for(let n of Object.keys(e)){let i=e[n];switch(n){case"jsonOptions":r.jsonOptions=kme.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=kme.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},iT(t.meta,r.meta),iT(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(i):i.concat();break}}return r}o(Rct,"mergeRpcOptions");sT.mergeRpcOptions=Rct;function iT(t,e){if(!t)return;let r=e;for(let[n,i]of Object.entries(t))i instanceof Date?r[n]=new Date(i.getTime()):Array.isArray(i)?r[n]=i.concat():r[n]=i}o(iT,"copy")});var Oz=g(sp=>{"use strict";Object.defineProperty(sp,"__esModule",{value:!0});sp.Deferred=sp.DeferredState=void 0;var Yc;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Yc=sp.DeferredState||(sp.DeferredState={}));var Pz=class{static{o(this,"Deferred")}constructor(e=!0){this._state=Yc.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Yc.PENDING)throw new Error(`cannot resolve ${Yc[this.state].toLowerCase()}`);this._resolve(e),this._state=Yc.RESOLVED}reject(e){if(this.state!==Yc.PENDING)throw new Error(`cannot reject ${Yc[this.state].toLowerCase()}`);this._reject(e),this._state=Yc.REJECTED}resolvePending(e){this._state===Yc.PENDING&&this.resolve(e)}rejectPending(e){this._state===Yc.PENDING&&this.reject(e)}};sp.Deferred=Pz});var Fz=g(oT=>{"use strict";Object.defineProperty(oT,"__esModule",{value:!0});oT.RpcOutputStreamController=void 0;var Pme=Oz(),op=nt(),Lz=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){op.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){op.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){op.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){op.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:o(()=>{let e=this._itState;op.assert(e,"bad state"),op.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new Pme.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;op.assert(n.state==Pme.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};oT.RpcOutputStreamController=Lz});var Uz=g(vg=>{"use strict";var Tct=vg&&vg.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(vg,"__esModule",{value:!0});vg.UnaryCall=void 0;var Mz=class{static{o(this,"UnaryCall")}constructor(e,r,n,i,s,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=i,this.response=s,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return Tct(this,void 0,void 0,function*(){let[e,r,n,i]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:i}})}};vg.UnaryCall=Mz});var Gz=g(Ng=>{"use strict";var Dct=Ng&&Ng.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(Ng,"__esModule",{value:!0});Ng.ServerStreamingCall=void 0;var qz=class{static{o(this,"ServerStreamingCall")}constructor(e,r,n,i,s,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=i,this.responses=s,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return Dct(this,void 0,void 0,function*(){let[e,r,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,status:r,trailers:n}})}};Ng.ServerStreamingCall=qz});var zz=g(_g=>{"use strict";var Qct=_g&&_g.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(_g,"__esModule",{value:!0});_g.ClientStreamingCall=void 0;var Hz=class{static{o(this,"ClientStreamingCall")}constructor(e,r,n,i,s,a,c){this.method=e,this.requestHeaders=r,this.requests=n,this.headers=i,this.response=s,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return Qct(this,void 0,void 0,function*(){let[e,r,n,i]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,response:r,status:n,trailers:i}})}};_g.ClientStreamingCall=Hz});var $z=g(Rg=>{"use strict";var kct=Rg&&Rg.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(Rg,"__esModule",{value:!0});Rg.DuplexStreamingCall=void 0;var Vz=class{static{o(this,"DuplexStreamingCall")}constructor(e,r,n,i,s,a,c){this.method=e,this.requestHeaders=r,this.requests=n,this.headers=i,this.responses=s,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return kct(this,void 0,void 0,function*(){let[e,r,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,status:r,trailers:n}})}};Rg.DuplexStreamingCall=Vz});var Lme=g(Qg=>{"use strict";var Pct=Qg&&Qg.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(Qg,"__esModule",{value:!0});Qg.TestTransport=void 0;var Mo=Qz(),aT=nt(),Ome=Fz(),Oct=kz(),Lct=Uz(),Fct=Gz(),Mct=zz(),Uct=$z(),Dg=class t{static{o(this,"TestTransport")}constructor(e){this.suppressUncaughtRejections=!0,this.headerDelay=10,this.responseDelay=50,this.betweenResponseDelay=10,this.afterResponseDelay=10,this.data=e??{}}get sentMessages(){return this.lastInput instanceof Tg?this.lastInput.sent:typeof this.lastInput=="object"?[this.lastInput.single]:[]}get sendComplete(){return this.lastInput instanceof Tg?this.lastInput.completed:typeof this.lastInput=="object"}promiseHeaders(){var e;let r=(e=this.data.headers)!==null&&e!==void 0?e:t.defaultHeaders;return r instanceof Mo.RpcError?Promise.reject(r):Promise.resolve(r)}promiseSingleResponse(e){if(this.data.response instanceof Mo.RpcError)return Promise.reject(this.data.response);let r;return Array.isArray(this.data.response)?(aT.assert(this.data.response.length>0),r=this.data.response[0]):this.data.response!==void 0?r=this.data.response:r=e.O.create(),aT.assert(e.O.is(r)),Promise.resolve(r)}streamResponses(e,r,n){return Pct(this,void 0,void 0,function*(){let i=[];if(this.data.response===void 0)i.push(e.O.create());else if(Array.isArray(this.data.response))for(let s of this.data.response)aT.assert(e.O.is(s)),i.push(s);else this.data.response instanceof Mo.RpcError||(aT.assert(e.O.is(this.data.response)),i.push(this.data.response));try{yield Tn(this.responseDelay,n)(void 0)}catch(s){r.notifyError(s);return}if(this.data.response instanceof Mo.RpcError){r.notifyError(this.data.response);return}for(let s of i){r.notifyMessage(s);try{yield Tn(this.betweenResponseDelay,n)(void 0)}catch(a){r.notifyError(a);return}}if(this.data.status instanceof Mo.RpcError){r.notifyError(this.data.status);return}if(this.data.trailers instanceof Mo.RpcError){r.notifyError(this.data.trailers);return}r.notifyComplete()})}promiseStatus(){var e;let r=(e=this.data.status)!==null&&e!==void 0?e:t.defaultStatus;return r instanceof Mo.RpcError?Promise.reject(r):Promise.resolve(r)}promiseTrailers(){var e;let r=(e=this.data.trailers)!==null&&e!==void 0?e:t.defaultTrailers;return r instanceof Mo.RpcError?Promise.reject(r):Promise.resolve(r)}maybeSuppressUncaught(...e){if(this.suppressUncaughtRejections)for(let r of e)r.catch(()=>{})}mergeOptions(e){return Oct.mergeRpcOptions({},e)}unary(e,r,n){var i;let s=(i=n.meta)!==null&&i!==void 0?i:{},a=this.promiseHeaders().then(Tn(this.headerDelay,n.abort)),c=a.catch(d=>{}).then(Tn(this.responseDelay,n.abort)).then(d=>this.promiseSingleResponse(e)),l=c.catch(d=>{}).then(Tn(this.afterResponseDelay,n.abort)).then(d=>this.promiseStatus()),u=c.catch(d=>{}).then(Tn(this.afterResponseDelay,n.abort)).then(d=>this.promiseTrailers());return this.maybeSuppressUncaught(l,u),this.lastInput={single:r},new Lct.UnaryCall(e,s,r,a,c,l,u)}serverStreaming(e,r,n){var i;let s=(i=n.meta)!==null&&i!==void 0?i:{},a=this.promiseHeaders().then(Tn(this.headerDelay,n.abort)),c=new Ome.RpcOutputStreamController,l=a.then(Tn(this.responseDelay,n.abort)).catch(()=>{}).then(()=>this.streamResponses(e,c,n.abort)).then(Tn(this.afterResponseDelay,n.abort)),u=l.then(()=>this.promiseStatus()),d=l.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(u,d),this.lastInput={single:r},new Fct.ServerStreamingCall(e,s,r,a,c,u,d)}clientStreaming(e,r){var n;let i=(n=r.meta)!==null&&n!==void 0?n:{},s=this.promiseHeaders().then(Tn(this.headerDelay,r.abort)),a=s.catch(u=>{}).then(Tn(this.responseDelay,r.abort)).then(u=>this.promiseSingleResponse(e)),c=a.catch(u=>{}).then(Tn(this.afterResponseDelay,r.abort)).then(u=>this.promiseStatus()),l=a.catch(u=>{}).then(Tn(this.afterResponseDelay,r.abort)).then(u=>this.promiseTrailers());return this.maybeSuppressUncaught(c,l),this.lastInput=new Tg(this.data,r.abort),new Mct.ClientStreamingCall(e,i,this.lastInput,s,a,c,l)}duplex(e,r){var n;let i=(n=r.meta)!==null&&n!==void 0?n:{},s=this.promiseHeaders().then(Tn(this.headerDelay,r.abort)),a=new Ome.RpcOutputStreamController,c=s.then(Tn(this.responseDelay,r.abort)).catch(()=>{}).then(()=>this.streamResponses(e,a,r.abort)).then(Tn(this.afterResponseDelay,r.abort)),l=c.then(()=>this.promiseStatus()),u=c.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(l,u),this.lastInput=new Tg(this.data,r.abort),new Uct.DuplexStreamingCall(e,i,this.lastInput,s,a,l,u)}};Qg.TestTransport=Dg;Dg.defaultHeaders={responseHeader:"test"};Dg.defaultStatus={code:"OK",detail:"all good"};Dg.defaultTrailers={responseTrailer:"test"};function Tn(t,e){return r=>new Promise((n,i)=>{if(e?.aborted)i(new Mo.RpcError("user cancel","CANCELLED"));else{let s=setTimeout(()=>n(r),t);e&&e.addEventListener("abort",a=>{clearTimeout(s),i(new Mo.RpcError("user cancel","CANCELLED"))})}})}o(Tn,"delay");var Tg=class{static{o(this,"TestInputStream")}constructor(e,r){this._completed=!1,this._sent=[],this.data=e,this.abort=r}get sent(){return this._sent}get completed(){return this._completed}send(e){if(this.data.inputMessage instanceof Mo.RpcError)return Promise.reject(this.data.inputMessage);let r=this.data.inputMessage===void 0?10:this.data.inputMessage;return Promise.resolve(void 0).then(()=>{this._sent.push(e)}).then(Tn(r,this.abort))}complete(){if(this.data.inputComplete instanceof Mo.RpcError)return Promise.reject(this.data.inputComplete);let e=this.data.inputComplete===void 0?10:this.data.inputComplete;return Promise.resolve(void 0).then(()=>{this._completed=!0}).then(Tn(e,this.abort))}}});var Fme=g(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.stackDuplexStreamingInterceptors=Uo.stackClientStreamingInterceptors=Uo.stackServerStreamingInterceptors=Uo.stackUnaryInterceptors=Uo.stackIntercept=void 0;var qct=nt();function rw(t,e,r,n,i){var s,a,c,l;if(t=="unary"){let u=o((d,f,h)=>e.unary(d,f,h),"tail");for(let d of((s=n.interceptors)!==null&&s!==void 0?s:[]).filter(f=>f.interceptUnary).reverse()){let f=u;u=o((h,p,m)=>d.interceptUnary(f,h,p,m),"tail")}return u(r,i,n)}if(t=="serverStreaming"){let u=o((d,f,h)=>e.serverStreaming(d,f,h),"tail");for(let d of((a=n.interceptors)!==null&&a!==void 0?a:[]).filter(f=>f.interceptServerStreaming).reverse()){let f=u;u=o((h,p,m)=>d.interceptServerStreaming(f,h,p,m),"tail")}return u(r,i,n)}if(t=="clientStreaming"){let u=o((d,f)=>e.clientStreaming(d,f),"tail");for(let d of((c=n.interceptors)!==null&&c!==void 0?c:[]).filter(f=>f.interceptClientStreaming).reverse()){let f=u;u=o((h,p)=>d.interceptClientStreaming(f,h,p),"tail")}return u(r,n)}if(t=="duplex"){let u=o((d,f)=>e.duplex(d,f),"tail");for(let d of((l=n.interceptors)!==null&&l!==void 0?l:[]).filter(f=>f.interceptDuplex).reverse()){let f=u;u=o((h,p)=>d.interceptDuplex(f,h,p),"tail")}return u(r,n)}qct.assertNever(t)}o(rw,"stackIntercept");Uo.stackIntercept=rw;function Gct(t,e,r,n){return rw("unary",t,e,n,r)}o(Gct,"stackUnaryInterceptors");Uo.stackUnaryInterceptors=Gct;function Hct(t,e,r,n){return rw("serverStreaming",t,e,n,r)}o(Hct,"stackServerStreamingInterceptors");Uo.stackServerStreamingInterceptors=Hct;function zct(t,e,r){return rw("clientStreaming",t,e,r)}o(zct,"stackClientStreamingInterceptors");Uo.stackClientStreamingInterceptors=zct;function Vct(t,e,r){return rw("duplex",t,e,r)}o(Vct,"stackDuplexStreamingInterceptors");Uo.stackDuplexStreamingInterceptors=Vct});var Mme=g(cT=>{"use strict";Object.defineProperty(cT,"__esModule",{value:!0});cT.ServerCallContextController=void 0;var jz=class{static{o(this,"ServerCallContextController")}constructor(e,r,n,i,s={code:"OK",detail:""}){this._cancelled=!1,this._listeners=[],this.method=e,this.headers=r,this.deadline=n,this.trailers={},this._sendRH=i,this.status=s}notifyCancelled(){if(!this._cancelled){this._cancelled=!0;for(let e of this._listeners)e()}}sendResponseHeaders(e){this._sendRH(e)}get cancelled(){return this._cancelled}onCancel(e){let r=this._listeners;return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}};cT.ServerCallContextController=jz});var Jz=g(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});var $ct=Qme();Object.defineProperty(Dr,"ServiceType",{enumerable:!0,get:o(function(){return $ct.ServiceType},"get")});var Wz=Rz();Object.defineProperty(Dr,"readMethodOptions",{enumerable:!0,get:o(function(){return Wz.readMethodOptions},"get")});Object.defineProperty(Dr,"readMethodOption",{enumerable:!0,get:o(function(){return Wz.readMethodOption},"get")});Object.defineProperty(Dr,"readServiceOption",{enumerable:!0,get:o(function(){return Wz.readServiceOption},"get")});var jct=Qz();Object.defineProperty(Dr,"RpcError",{enumerable:!0,get:o(function(){return jct.RpcError},"get")});var Wct=kz();Object.defineProperty(Dr,"mergeRpcOptions",{enumerable:!0,get:o(function(){return Wct.mergeRpcOptions},"get")});var Jct=Fz();Object.defineProperty(Dr,"RpcOutputStreamController",{enumerable:!0,get:o(function(){return Jct.RpcOutputStreamController},"get")});var Yct=Lme();Object.defineProperty(Dr,"TestTransport",{enumerable:!0,get:o(function(){return Yct.TestTransport},"get")});var Ume=Oz();Object.defineProperty(Dr,"Deferred",{enumerable:!0,get:o(function(){return Ume.Deferred},"get")});Object.defineProperty(Dr,"DeferredState",{enumerable:!0,get:o(function(){return Ume.DeferredState},"get")});var Kct=$z();Object.defineProperty(Dr,"DuplexStreamingCall",{enumerable:!0,get:o(function(){return Kct.DuplexStreamingCall},"get")});var Xct=zz();Object.defineProperty(Dr,"ClientStreamingCall",{enumerable:!0,get:o(function(){return Xct.ClientStreamingCall},"get")});var Zct=Gz();Object.defineProperty(Dr,"ServerStreamingCall",{enumerable:!0,get:o(function(){return Zct.ServerStreamingCall},"get")});var elt=Uz();Object.defineProperty(Dr,"UnaryCall",{enumerable:!0,get:o(function(){return elt.UnaryCall},"get")});var nw=Fme();Object.defineProperty(Dr,"stackIntercept",{enumerable:!0,get:o(function(){return nw.stackIntercept},"get")});Object.defineProperty(Dr,"stackDuplexStreamingInterceptors",{enumerable:!0,get:o(function(){return nw.stackDuplexStreamingInterceptors},"get")});Object.defineProperty(Dr,"stackClientStreamingInterceptors",{enumerable:!0,get:o(function(){return nw.stackClientStreamingInterceptors},"get")});Object.defineProperty(Dr,"stackServerStreamingInterceptors",{enumerable:!0,get:o(function(){return nw.stackServerStreamingInterceptors},"get")});Object.defineProperty(Dr,"stackUnaryInterceptors",{enumerable:!0,get:o(function(){return nw.stackUnaryInterceptors},"get")});var tlt=Mme();Object.defineProperty(Dr,"ServerCallContextController",{enumerable:!0,get:o(function(){return tlt.ServerCallContextController},"get")})});var Pg=g((IAr,oge)=>{"use strict";var hlt="2.0.0",plt=Number.MAX_SAFE_INTEGER||9007199254740991,Alt=16,mlt=250,glt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];oge.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Alt,MAX_SAFE_BUILD_LENGTH:mlt,MAX_SAFE_INTEGER:plt,RELEASE_TYPES:glt,SEMVER_SPEC_VERSION:hlt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var aw=g((SAr,age)=>{"use strict";var ylt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};age.exports=ylt});var Og=g((Zc,cge)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:BV,MAX_SAFE_BUILD_LENGTH:Elt,MAX_LENGTH:Clt}=Pg(),blt=aw();Zc=cge.exports={};var wlt=Zc.re=[],Ilt=Zc.safeRe=[],ce=Zc.src=[],Slt=Zc.safeSrc=[],le=Zc.t={},Blt=0,xV="[a-zA-Z0-9-]",xlt=[["\\s",1],["\\d",Clt],[xV,Elt]],vlt=o(t=>{for(let[e,r]of xlt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),Ye=o((t,e,r)=>{let n=vlt(e),i=Blt++;blt(t,i,e),le[t]=i,ce[i]=e,Slt[i]=n,wlt[i]=new RegExp(e,r?"g":void 0),Ilt[i]=new RegExp(n,r?"g":void 0)},"createToken");Ye("NUMERICIDENTIFIER","0|[1-9]\\d*");Ye("NUMERICIDENTIFIERLOOSE","\\d+");Ye("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${xV}*`);Ye("MAINVERSION",`(${ce[le.NUMERICIDENTIFIER]})\\.(${ce[le.NUMERICIDENTIFIER]})\\.(${ce[le.NUMERICIDENTIFIER]})`);Ye("MAINVERSIONLOOSE",`(${ce[le.NUMERICIDENTIFIERLOOSE]})\\.(${ce[le.NUMERICIDENTIFIERLOOSE]})\\.(${ce[le.NUMERICIDENTIFIERLOOSE]})`);Ye("PRERELEASEIDENTIFIER",`(?:${ce[le.NONNUMERICIDENTIFIER]}|${ce[le.NUMERICIDENTIFIER]})`);Ye("PRERELEASEIDENTIFIERLOOSE",`(?:${ce[le.NONNUMERICIDENTIFIER]}|${ce[le.NUMERICIDENTIFIERLOOSE]})`);Ye("PRERELEASE",`(?:-(${ce[le.PRERELEASEIDENTIFIER]}(?:\\.${ce[le.PRERELEASEIDENTIFIER]})*))`);Ye("PRERELEASELOOSE",`(?:-?(${ce[le.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ce[le.PRERELEASEIDENTIFIERLOOSE]})*))`);Ye("BUILDIDENTIFIER",`${xV}+`);Ye("BUILD",`(?:\\+(${ce[le.BUILDIDENTIFIER]}(?:\\.${ce[le.BUILDIDENTIFIER]})*))`);Ye("FULLPLAIN",`v?${ce[le.MAINVERSION]}${ce[le.PRERELEASE]}?${ce[le.BUILD]}?`);Ye("FULL",`^${ce[le.FULLPLAIN]}$`);Ye("LOOSEPLAIN",`[v=\\s]*${ce[le.MAINVERSIONLOOSE]}${ce[le.PRERELEASELOOSE]}?${ce[le.BUILD]}?`);Ye("LOOSE",`^${ce[le.LOOSEPLAIN]}$`);Ye("GTLT","((?:<|>)?=?)");Ye("XRANGEIDENTIFIERLOOSE",`${ce[le.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Ye("XRANGEIDENTIFIER",`${ce[le.NUMERICIDENTIFIER]}|x|X|\\*`);Ye("XRANGEPLAIN",`[v=\\s]*(${ce[le.XRANGEIDENTIFIER]})(?:\\.(${ce[le.XRANGEIDENTIFIER]})(?:\\.(${ce[le.XRANGEIDENTIFIER]})(?:${ce[le.PRERELEASE]})?${ce[le.BUILD]}?)?)?`);Ye("XRANGEPLAINLOOSE",`[v=\\s]*(${ce[le.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ce[le.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ce[le.XRANGEIDENTIFIERLOOSE]})(?:${ce[le.PRERELEASELOOSE]})?${ce[le.BUILD]}?)?)?`);Ye("XRANGE",`^${ce[le.GTLT]}\\s*${ce[le.XRANGEPLAIN]}$`);Ye("XRANGELOOSE",`^${ce[le.GTLT]}\\s*${ce[le.XRANGEPLAINLOOSE]}$`);Ye("COERCEPLAIN",`(^|[^\\d])(\\d{1,${BV}})(?:\\.(\\d{1,${BV}}))?(?:\\.(\\d{1,${BV}}))?`);Ye("COERCE",`${ce[le.COERCEPLAIN]}(?:$|[^\\d])`);Ye("COERCEFULL",ce[le.COERCEPLAIN]+`(?:${ce[le.PRERELEASE]})?(?:${ce[le.BUILD]})?(?:$|[^\\d])`);Ye("COERCERTL",ce[le.COERCE],!0);Ye("COERCERTLFULL",ce[le.COERCEFULL],!0);Ye("LONETILDE","(?:~>?)");Ye("TILDETRIM",`(\\s*)${ce[le.LONETILDE]}\\s+`,!0);Zc.tildeTrimReplace="$1~";Ye("TILDE",`^${ce[le.LONETILDE]}${ce[le.XRANGEPLAIN]}$`);Ye("TILDELOOSE",`^${ce[le.LONETILDE]}${ce[le.XRANGEPLAINLOOSE]}$`);Ye("LONECARET","(?:\\^)");Ye("CARETTRIM",`(\\s*)${ce[le.LONECARET]}\\s+`,!0);Zc.caretTrimReplace="$1^";Ye("CARET",`^${ce[le.LONECARET]}${ce[le.XRANGEPLAIN]}$`);Ye("CARETLOOSE",`^${ce[le.LONECARET]}${ce[le.XRANGEPLAINLOOSE]}$`);Ye("COMPARATORLOOSE",`^${ce[le.GTLT]}\\s*(${ce[le.LOOSEPLAIN]})$|^$`);Ye("COMPARATOR",`^${ce[le.GTLT]}\\s*(${ce[le.FULLPLAIN]})$|^$`);Ye("COMPARATORTRIM",`(\\s*)${ce[le.GTLT]}\\s*(${ce[le.LOOSEPLAIN]}|${ce[le.XRANGEPLAIN]})`,!0);Zc.comparatorTrimReplace="$1$2$3";Ye("HYPHENRANGE",`^\\s*(${ce[le.XRANGEPLAIN]})\\s+-\\s+(${ce[le.XRANGEPLAIN]})\\s*$`);Ye("HYPHENRANGELOOSE",`^\\s*(${ce[le.XRANGEPLAINLOOSE]})\\s+-\\s+(${ce[le.XRANGEPLAINLOOSE]})\\s*$`);Ye("STAR","(<|>)?=?\\s*\\*");Ye("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Ye("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var mT=g((xAr,lge)=>{"use strict";var Nlt=Object.freeze({loose:!0}),_lt=Object.freeze({}),Rlt=o(t=>t?typeof t!="object"?Nlt:t:_lt,"parseOptions");lge.exports=Rlt});var vV=g((NAr,fge)=>{"use strict";var uge=/^[0-9]+$/,dge=o((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:tdge(e,t),"rcompareIdentifiers");fge.exports={compareIdentifiers:dge,rcompareIdentifiers:Tlt}});var $n=g((RAr,pge)=>{"use strict";var gT=aw(),{MAX_LENGTH:hge,MAX_SAFE_INTEGER:yT}=Pg(),{safeRe:ET,t:CT}=Og(),Dlt=mT(),{compareIdentifiers:NV}=vV(),Qlt=o((t,e)=>{let r=e.split(".");if(r.length>t.length)return!1;for(let n=0;nhge)throw new TypeError(`version is longer than ${hge} characters`);gT("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?ET[CT.LOOSE]:ET[CT.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>yT||this.major<0)throw new TypeError("Invalid major version");if(this.minor>yT||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>yT||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&se.major?1:this.minore.minor?1:this.patche.patch?1:0}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],i=e.prerelease[r];if(gT("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return NV(n,i)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let n=this.build[r],i=e.build[r];if(gT("build compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return NV(n,i)}while(++r)}inc(e,r,n){if(e.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let i=`-${r}`.match(this.options.loose?ET[CT.PRERELEASELOOSE]:ET[CT.PRERELEASE]);if(!i||i[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let i=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[i];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let s=[r,i];if(n===!1&&(s=[r]),Qlt(this.prerelease,r)){let a=this.prerelease[r.split(".").length];isNaN(a)&&(this.prerelease=s)}else this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};pge.exports=_V});var jd=g((DAr,mge)=>{"use strict";var Age=$n(),klt=o((t,e,r=!1)=>{if(t instanceof Age)return t;try{return new Age(t,e)}catch(n){if(!r)return null;throw n}},"parse");mge.exports=klt});var yge=g((kAr,gge)=>{"use strict";var Plt=jd(),Olt=o((t,e)=>{let r=Plt(t,e);return r?r.version:null},"valid");gge.exports=Olt});var Cge=g((OAr,Ege)=>{"use strict";var Llt=jd(),Flt=o((t,e)=>{let r=Llt(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null},"clean");Ege.exports=Flt});var Ige=g((FAr,wge)=>{"use strict";var bge=$n(),Mlt=o((t,e,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new bge(t instanceof bge?t.version:t,r).inc(e,n,i).version}catch{return null}},"inc");wge.exports=Mlt});var xge=g((UAr,Bge)=>{"use strict";var Sge=jd(),Ult=o((t,e)=>{let r=Sge(t,null,!0),n=Sge(e,null,!0),i=r.compare(n);if(i===0)return null;let s=i>0,a=s?r:n,c=s?n:r,l=!!a.prerelease.length;if(!!c.prerelease.length&&!l){if(!c.patch&&!c.minor)return"major";if(c.compareMain(a)===0)return c.minor&&!c.patch?"minor":"patch"}let d=l?"pre":"";return r.major!==n.major?d+"major":r.minor!==n.minor?d+"minor":r.patch!==n.patch?d+"patch":"prerelease"},"diff");Bge.exports=Ult});var Nge=g((GAr,vge)=>{"use strict";var qlt=$n(),Glt=o((t,e)=>new qlt(t,e).major,"major");vge.exports=Glt});var Rge=g((zAr,_ge)=>{"use strict";var Hlt=$n(),zlt=o((t,e)=>new Hlt(t,e).minor,"minor");_ge.exports=zlt});var Dge=g(($Ar,Tge)=>{"use strict";var Vlt=$n(),$lt=o((t,e)=>new Vlt(t,e).patch,"patch");Tge.exports=$lt});var kge=g((WAr,Qge)=>{"use strict";var jlt=jd(),Wlt=o((t,e)=>{let r=jlt(t,e);return r&&r.prerelease.length?r.prerelease:null},"prerelease");Qge.exports=Wlt});var qo=g((YAr,Oge)=>{"use strict";var Pge=$n(),Jlt=o((t,e,r)=>new Pge(t,r).compare(new Pge(e,r)),"compare");Oge.exports=Jlt});var Fge=g((XAr,Lge)=>{"use strict";var Ylt=qo(),Klt=o((t,e,r)=>Ylt(e,t,r),"rcompare");Lge.exports=Klt});var Uge=g((emr,Mge)=>{"use strict";var Xlt=qo(),Zlt=o((t,e)=>Xlt(t,e,!0),"compareLoose");Mge.exports=Zlt});var bT=g((rmr,Gge)=>{"use strict";var qge=$n(),eut=o((t,e,r)=>{let n=new qge(t,r),i=new qge(e,r);return n.compare(i)||n.compareBuild(i)},"compareBuild");Gge.exports=eut});var zge=g((imr,Hge)=>{"use strict";var tut=bT(),rut=o((t,e)=>t.sort((r,n)=>tut(r,n,e)),"sort");Hge.exports=rut});var $ge=g((omr,Vge)=>{"use strict";var nut=bT(),iut=o((t,e)=>t.sort((r,n)=>nut(n,r,e)),"rsort");Vge.exports=iut});var cw=g((cmr,jge)=>{"use strict";var sut=qo(),out=o((t,e,r)=>sut(t,e,r)>0,"gt");jge.exports=out});var wT=g((umr,Wge)=>{"use strict";var aut=qo(),cut=o((t,e,r)=>aut(t,e,r)<0,"lt");Wge.exports=cut});var RV=g((fmr,Jge)=>{"use strict";var lut=qo(),uut=o((t,e,r)=>lut(t,e,r)===0,"eq");Jge.exports=uut});var TV=g((pmr,Yge)=>{"use strict";var dut=qo(),fut=o((t,e,r)=>dut(t,e,r)!==0,"neq");Yge.exports=fut});var IT=g((mmr,Kge)=>{"use strict";var hut=qo(),put=o((t,e,r)=>hut(t,e,r)>=0,"gte");Kge.exports=put});var ST=g((ymr,Xge)=>{"use strict";var Aut=qo(),mut=o((t,e,r)=>Aut(t,e,r)<=0,"lte");Xge.exports=mut});var DV=g((Cmr,Zge)=>{"use strict";var gut=RV(),yut=TV(),Eut=cw(),Cut=IT(),but=wT(),wut=ST(),Iut=o((t,e,r,n)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return gut(t,r,n);case"!=":return yut(t,r,n);case">":return Eut(t,r,n);case">=":return Cut(t,r,n);case"<":return but(t,r,n);case"<=":return wut(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}},"cmp");Zge.exports=Iut});var tye=g((wmr,eye)=>{"use strict";var Sut=$n(),But=jd(),{safeRe:BT,t:xT}=Og(),xut=o((t,e)=>{if(t instanceof Sut)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(e.includePrerelease?BT[xT.COERCEFULL]:BT[xT.COERCE]);else{let l=e.includePrerelease?BT[xT.COERCERTLFULL]:BT[xT.COERCERTL],u;for(;(u=l.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||u.index+u[0].length!==r.index+r[0].length)&&(r=u),l.lastIndex=u.index+u[1].length+u[2].length;l.lastIndex=-1}if(r===null)return null;let n=r[2],i=r[3]||"0",s=r[4]||"0",a=e.includePrerelease&&r[5]?`-${r[5]}`:"",c=e.includePrerelease&&r[6]?`+${r[6]}`:"";return But(`${n}.${i}.${s}${a}${c}`,e)},"coerce");eye.exports=xut});var nye=g((Smr,rye)=>{"use strict";var vut=jd(),Nut=Pg(),_ut=$n(),Rut=o((t,e,r)=>{if(!Nut.RELEASE_TYPES.includes(e))return null;let n=Tut(t,r);return n&&Dut(n,e)},"truncate"),Tut=o((t,e)=>{let r=t instanceof _ut?t.version:t;return vut(r,e)},"cloneInputVersion"),Dut=o((t,e)=>{if(Qut(e))return t.version;switch(t.prerelease=[],e){case"major":t.minor=0,t.patch=0;break;case"minor":t.patch=0;break}return t.format()},"doTruncation"),Qut=o(t=>t.startsWith("pre"),"isPrerelease");rye.exports=Rut});var sye=g((xmr,iye)=>{"use strict";var QV=class{static{o(this,"LRUCache")}constructor(){this.max=1e3,this.map=new Map}get(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.map.set(e,r),r}delete(e){return this.map.delete(e)}set(e,r){if(!this.delete(e)&&r!==void 0){if(this.map.size>=this.max){let i=this.map.keys().next().value;this.delete(i)}this.map.set(e,r)}return this}};iye.exports=QV});var Go=g((Nmr,lye)=>{"use strict";var kut=/\s+/g,kV=class t{static{o(this,"Range")}constructor(e,r){if(r=Out(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof PV)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().replace(kut," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(i=>!aye(i[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&Vut(i[0])){this.set=[i];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e0&&(this.formatted+="||");let r=this.set[e];for(let n=0;n0&&(this.formatted+=" "),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(zut,"");let n=((this.options.includePrerelease&&Gut)|(this.options.loose&&Hut))+":"+e,i=oye.get(n);if(i)return i;let s=this.options.loose,a=s?Oi[jn.HYPHENRANGELOOSE]:Oi[jn.HYPHENRANGE];e=e.replace(a,rdt(this.options.includePrerelease)),Zt("hyphen replace",e),e=e.replace(Oi[jn.COMPARATORTRIM],Mut),Zt("comparator trim",e),e=e.replace(Oi[jn.TILDETRIM],Uut),Zt("tilde trim",e),e=e.replace(Oi[jn.CARETTRIM],qut),Zt("caret trim",e);let c=e.split(" ").map(f=>$ut(f,this.options)).join(" ").split(/\s+/).map(f=>tdt(f,this.options));s&&(c=c.filter(f=>(Zt("loose invalid filter",f,this.options),!!f.match(Oi[jn.COMPARATORLOOSE])))),Zt("range list",c);let l=new Map,u=c.map(f=>new PV(f,this.options));for(let f of u){if(aye(f))return[f];l.set(f.value,f)}l.size>1&&l.has("")&&l.delete("");let d=[...l.values()];return oye.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>cye(n,r)&&e.set.some(i=>cye(i,r)&&n.every(s=>i.every(a=>s.intersects(a,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new Lut(e,this.options)}catch{return!1}for(let r=0;rt.value==="<0.0.0-0","isNullSet"),Vut=o(t=>t.value==="","isAny"),cye=o((t,e)=>{let r=!0,n=t.slice(),i=n.pop();for(;r&&n.length;)r=n.every(s=>i.intersects(s,e)),i=n.pop();return r},"isSatisfiable"),$ut=o((t,e)=>(t=t.replace(Oi[jn.BUILD],""),Zt("comp",t,e),t=Yut(t,e),Zt("caret",t),t=Wut(t,e),Zt("tildes",t),t=Xut(t,e),Zt("xrange",t),t=edt(t,e),Zt("stars",t),t),"parseComparator"),gn=o(t=>!t||t.toLowerCase()==="x"||t==="*","isX"),jut=o((t,e,r)=>gn(t)&&!gn(e)||gn(e)&&r&&!gn(r),"invalidXRangeOrder"),Wut=o((t,e)=>t.trim().split(/\s+/).map(r=>Jut(r,e)).join(" "),"replaceTildes"),Jut=o((t,e)=>{let r=e.loose?Oi[jn.TILDELOOSE]:Oi[jn.TILDE],n=e.includePrerelease?"-0":"";return t.replace(r,(i,s,a,c,l)=>{Zt("tilde",t,i,s,a,c,l);let u;return gn(s)?u="":gn(a)?u=`>=${s}.0.0${n} <${+s+1}.0.0-0`:gn(c)?u=`>=${s}.${a}.0${n} <${s}.${+a+1}.0-0`:l?(Zt("replaceTilde pr",l),u=`>=${s}.${a}.${c}-${l} <${s}.${+a+1}.0-0`):u=`>=${s}.${a}.${c} <${s}.${+a+1}.0-0`,Zt("tilde return",u),u})},"replaceTilde"),Yut=o((t,e)=>t.trim().split(/\s+/).map(r=>Kut(r,e)).join(" "),"replaceCarets"),Kut=o((t,e)=>{Zt("caret",t,e);let r=e.loose?Oi[jn.CARETLOOSE]:Oi[jn.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(i,s,a,c,l)=>{Zt("caret",t,i,s,a,c,l);let u;return gn(s)?u="":gn(a)?u=`>=${s}.0.0${n} <${+s+1}.0.0-0`:gn(c)?s==="0"?u=`>=${s}.${a}.0${n} <${s}.${+a+1}.0-0`:u=`>=${s}.${a}.0${n} <${+s+1}.0.0-0`:l?(Zt("replaceCaret pr",l),s==="0"?a==="0"?u=`>=${s}.${a}.${c}-${l} <${s}.${a}.${+c+1}-0`:u=`>=${s}.${a}.${c}-${l} <${s}.${+a+1}.0-0`:u=`>=${s}.${a}.${c}-${l} <${+s+1}.0.0-0`):(Zt("no pr"),s==="0"?a==="0"?u=`>=${s}.${a}.${c} <${s}.${a}.${+c+1}-0`:u=`>=${s}.${a}.${c} <${s}.${+a+1}.0-0`:u=`>=${s}.${a}.${c} <${+s+1}.0.0-0`),Zt("caret return",u),u})},"replaceCaret"),Xut=o((t,e)=>(Zt("replaceXRanges",t,e),t.split(/\s+/).map(r=>Zut(r,e)).join(" ")),"replaceXRanges"),Zut=o((t,e)=>{t=t.trim();let r=e.loose?Oi[jn.XRANGELOOSE]:Oi[jn.XRANGE];return t.replace(r,(n,i,s,a,c,l)=>{if(Zt("xRange",t,n,i,s,a,c,l),jut(s,a,c))return t;let u=gn(s),d=u||gn(a),f=d||gn(c),h=f;return i==="="&&h&&(i=""),l=e.includePrerelease?"-0":"",u?i===">"||i==="<"?n="<0.0.0-0":n="*":i&&h?(d&&(a=0),c=0,i===">"?(i=">=",d?(s=+s+1,a=0,c=0):(a=+a+1,c=0)):i==="<="&&(i="<",d?s=+s+1:a=+a+1),i==="<"&&(l="-0"),n=`${i+s}.${a}.${c}${l}`):d?n=`>=${s}.0.0${l} <${+s+1}.0.0-0`:f&&(n=`>=${s}.${a}.0${l} <${s}.${+a+1}.0-0`),Zt("xRange return",n),n})},"replaceXRange"),edt=o((t,e)=>(Zt("replaceStars",t,e),t.trim().replace(Oi[jn.STAR],"")),"replaceStars"),tdt=o((t,e)=>(Zt("replaceGTE0",t,e),t.trim().replace(Oi[e.includePrerelease?jn.GTE0PRE:jn.GTE0],"")),"replaceGTE0"),rdt=o(t=>(e,r,n,i,s,a,c,l,u,d,f,h)=>(gn(n)?r="":gn(i)?r=`>=${n}.0.0${t?"-0":""}`:gn(s)?r=`>=${n}.${i}.0${t?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,gn(u)?l="":gn(d)?l=`<${+u+1}.0.0-0`:gn(f)?l=`<${u}.${+d+1}.0-0`:h?l=`<=${u}.${d}.${f}-${h}`:t?l=`<${u}.${d}.${+f+1}-0`:l=`<=${l}`,`${r} ${l}`.trim()),"hyphenReplace"),ndt=o((t,e,r)=>{for(let n=0;n0){let i=t[n].semver;if(i.major===e.major&&i.minor===e.minor&&i.patch===e.patch)return!0}return!1}return!0},"testSet")});var lw=g((Rmr,Aye)=>{"use strict";var uw=Symbol("SemVer ANY"),FV=class t{static{o(this,"Comparator")}static get ANY(){return uw}constructor(e,r){if(r=uye(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),LV("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===uw?this.value="":this.value=this.operator+this.semver.version,LV("comp",this)}parse(e){let r=this.options.loose?dye[fye.COMPARATORLOOSE]:dye[fye.COMPARATOR],n=e.match(r);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new hye(n[2],this.options.loose):this.semver=uw}toString(){return this.value}test(e){if(LV("Comparator.test",e,this.options.loose),this.semver===uw||e===uw)return!0;if(typeof e=="string")try{e=new hye(e,this.options)}catch{return!1}return OV(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new pye(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new pye(this.value,r).test(e.semver):(r=uye(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||OV(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||OV(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};Aye.exports=FV;var uye=mT(),{safeRe:dye,t:fye}=Og(),OV=DV(),LV=aw(),hye=$n(),pye=Go()});var dw=g((Dmr,mye)=>{"use strict";var idt=Go(),sdt=o((t,e,r)=>{try{e=new idt(e,r)}catch{return!1}return e.test(t)},"satisfies");mye.exports=sdt});var yye=g((kmr,gye)=>{"use strict";var odt=Go(),adt=o((t,e)=>new odt(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" ")),"toComparators");gye.exports=adt});var Cye=g((Omr,Eye)=>{"use strict";var cdt=$n(),ldt=Go(),udt=o((t,e,r)=>{let n=null,i=null,s=null;try{s=new ldt(e,r)}catch{return null}return t.forEach(a=>{s.test(a)&&(!n||i.compare(a)===-1)&&(n=a,i=new cdt(n,r))}),n},"maxSatisfying");Eye.exports=udt});var wye=g((Fmr,bye)=>{"use strict";var ddt=$n(),fdt=Go(),hdt=o((t,e,r)=>{let n=null,i=null,s=null;try{s=new fdt(e,r)}catch{return null}return t.forEach(a=>{s.test(a)&&(!n||i.compare(a)===1)&&(n=a,i=new ddt(n,r))}),n},"minSatisfying");bye.exports=hdt});var Bye=g((Umr,Sye)=>{"use strict";var MV=$n(),pdt=Go(),Iye=cw(),Adt=o((t,e)=>{t=new pdt(t,e);let r=new MV("0.0.0");if(t.test(r)||(r=new MV("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n{let c=new MV(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!s||Iye(c,s))&&(s=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),s&&(!r||Iye(r,s))&&(r=s)}return r&&t.test(r)?r:null},"minVersion");Sye.exports=Adt});var vye=g((Gmr,xye)=>{"use strict";var mdt=Go(),gdt=o((t,e)=>{try{return new mdt(t,e).range||"*"}catch{return null}},"validRange");xye.exports=gdt});var vT=g((zmr,Tye)=>{"use strict";var ydt=$n(),Rye=lw(),{ANY:Edt}=Rye,Cdt=Go(),bdt=dw(),Nye=cw(),_ye=wT(),wdt=ST(),Idt=IT(),Sdt=o((t,e,r,n)=>{t=new ydt(t,n),e=new Cdt(e,n);let i,s,a,c,l;switch(r){case">":i=Nye,s=wdt,a=_ye,c=">",l=">=";break;case"<":i=_ye,s=Idt,a=Nye,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(bdt(t,e,n))return!1;for(let u=0;u{p.semver===Edt&&(p=new Rye(">=0.0.0")),f=f||p,h=h||p,i(p.semver,f.semver,n)?f=p:a(p.semver,h.semver,n)&&(h=p)}),f.operator===c||f.operator===l||(!h.operator||h.operator===c)&&s(t,h.semver))return!1;if(h.operator===l&&a(t,h.semver))return!1}return!0},"outside");Tye.exports=Sdt});var Qye=g(($mr,Dye)=>{"use strict";var Bdt=vT(),xdt=o((t,e,r)=>Bdt(t,e,">",r),"gtr");Dye.exports=xdt});var Pye=g((Wmr,kye)=>{"use strict";var vdt=vT(),Ndt=o((t,e,r)=>vdt(t,e,"<",r),"ltr");kye.exports=Ndt});var Fye=g((Ymr,Lye)=>{"use strict";var Oye=Go(),_dt=o((t,e,r)=>(t=new Oye(t,r),e=new Oye(e,r),t.intersects(e,r)),"intersects");Lye.exports=_dt});var Uye=g((Xmr,Mye)=>{"use strict";var Rdt=dw(),Tdt=qo();Mye.exports=(t,e,r)=>{let n=[],i=null,s=null,a=t.sort((d,f)=>Tdt(d,f,r));for(let d of a)Rdt(d,e,r)?(s=d,i||(i=d)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);let c=[];for(let[d,f]of n)d===f?c.push(d):!f&&d===a[0]?c.push("*"):f?d===a[0]?c.push(`<=${f}`):c.push(`${d} - ${f}`):c.push(`>=${d}`);let l=c.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return l.length{"use strict";var qye=Go(),GV=lw(),{ANY:UV}=GV,qV=dw(),HV=qo(),Ddt=o((t,e,r={})=>{if(t===e)return!0;t=new qye(t,r),e=new qye(e,r);let n=!1;e:for(let i of t.set){for(let s of e.set){let a=kdt(i,s,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},"subset"),Qdt=[new GV(">=0.0.0-0")],Gye=[new GV(">=0.0.0")],kdt=o((t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===UV){if(e.length===1&&e[0].semver===UV)return!0;r.includePrerelease?t=Qdt:t=Gye}if(e.length===1&&e[0].semver===UV){if(r.includePrerelease)return!0;e=Gye}let n=new Set,i,s;for(let p of t)p.operator===">"||p.operator===">="?i=Hye(i,p,r):p.operator==="<"||p.operator==="<="?s=zye(s,p,r):n.add(p.semver);if(n.size>1)return null;let a;if(i&&s){if(a=HV(i.semver,s.semver,r),a>0)return null;if(a===0&&(i.operator!==">="||s.operator!=="<="))return null}for(let p of n){if(i&&!qV(p,String(i),r)||s&&!qV(p,String(s),r))return null;for(let m of e)if(!qV(p,String(m),r))return!1;return!0}let c,l,u,d,f=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,h=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;f&&f.prerelease.length===1&&s.operator==="<"&&f.prerelease[0]===0&&(f=!1);for(let p of e){if(d=d||p.operator===">"||p.operator===">=",u=u||p.operator==="<"||p.operator==="<=",i){if(h&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===h.major&&p.semver.minor===h.minor&&p.semver.patch===h.patch&&(h=!1),p.operator===">"||p.operator===">="){if(c=Hye(i,p,r),c===p&&c!==i)return!1}else if(i.operator===">="&&!p.test(i.semver))return!1}if(s){if(f&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===f.major&&p.semver.minor===f.minor&&p.semver.patch===f.patch&&(f=!1),p.operator==="<"||p.operator==="<="){if(l=zye(s,p,r),l===p&&l!==s)return!1}else if(s.operator==="<="&&!p.test(s.semver))return!1}if(!p.operator&&(s||i)&&a!==0)return!1}return!(i&&u&&!s&&a!==0||s&&d&&!i&&a!==0||h||f)},"simpleSubset"),Hye=o((t,e,r)=>{if(!t)return e;let n=HV(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},"higherGT"),zye=o((t,e,r)=>{if(!t)return e;let n=HV(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t},"lowerLT");Vye.exports=Ddt});var Ma=g((tgr,Jye)=>{"use strict";var zV=Og(),jye=Pg(),Pdt=$n(),Wye=vV(),Odt=jd(),Ldt=yge(),Fdt=Cge(),Mdt=Ige(),Udt=xge(),qdt=Nge(),Gdt=Rge(),Hdt=Dge(),zdt=kge(),Vdt=qo(),$dt=Fge(),jdt=Uge(),Wdt=bT(),Jdt=zge(),Ydt=$ge(),Kdt=cw(),Xdt=wT(),Zdt=RV(),eft=TV(),tft=IT(),rft=ST(),nft=DV(),ift=tye(),sft=nye(),oft=lw(),aft=Go(),cft=dw(),lft=yye(),uft=Cye(),dft=wye(),fft=Bye(),hft=vye(),pft=vT(),Aft=Qye(),mft=Pye(),gft=Fye(),yft=Uye(),Eft=$ye();Jye.exports={parse:Odt,valid:Ldt,clean:Fdt,inc:Mdt,diff:Udt,major:qdt,minor:Gdt,patch:Hdt,prerelease:zdt,compare:Vdt,rcompare:$dt,compareLoose:jdt,compareBuild:Wdt,sort:Jdt,rsort:Ydt,gt:Kdt,lt:Xdt,eq:Zdt,neq:eft,gte:tft,lte:rft,cmp:nft,coerce:ift,truncate:sft,Comparator:oft,Range:aft,satisfies:cft,toComparators:lft,maxSatisfying:uft,minSatisfying:dft,minVersion:fft,validRange:hft,outside:pft,gtr:Aft,ltr:mft,intersects:gft,simplifyRange:yft,subset:Eft,SemVer:Pdt,re:zV.re,src:zV.src,tokens:zV.t,SEMVER_SPEC_VERSION:jye.SEMVER_SPEC_VERSION,RELEASE_TYPES:jye.RELEASE_TYPES,compareIdentifiers:Wye.compareIdentifiers,rcompareIdentifiers:Wye.rcompareIdentifiers}});var Kye=g((igr,Yye)=>{function Ho(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}o(Ho,"RetryOperation");Yye.exports=Ho;Ho.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};Ho.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};Ho.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0};Ho.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};Ho.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};Ho.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};Ho.prototype.start=Ho.prototype.try;Ho.prototype.errors=function(){return this._errors};Ho.prototype.attempts=function(){return this._attempts};Ho.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,n=0;n=r&&(e=i,r=a)}return e}});var Xye=g(dp=>{var Cft=Kye();dp.operation=function(t){var e=dp.timeouts(t);return new Cft(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};dp.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i{Zye.exports=Xye()});var rEe=g((lgr,tEe)=>{var bft=eEe();function wft(t,e){function r(n,i){var s=e||{},a;"randomize"in s||(s.randomize=!0),a=bft.operation(s);function c(d){i(d||new Error("Aborted"))}o(c,"bail");function l(d,f){if(d.bail){c(d);return}a.retry(d)?s.onRetry&&s.onRetry(d,f):i(a.mainError())}o(l,"onError");function u(d){var f;try{f=t(c,d)}catch(h){l(h,d);return}Promise.resolve(f).then(n).catch(o(function(p){l(p,d)},"catchIt"))}o(u,"runAttempt"),a.attempt(u)}return o(r,"run"),new Promise(r)}o(wft,"retry");tEe.exports=wft});var CEe=g((dgr,wu)=>{var Gt=require("fs"),RT=require("os"),yn=require("path"),nEe=require("crypto"),el={fs:Gt.constants,os:RT.constants},iEe="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",cEe=/XXXXXX/,Ift=3,lEe=(el.O_CREAT||el.fs.O_CREAT)|(el.O_EXCL||el.fs.O_EXCL)|(el.O_RDWR||el.fs.O_RDWR),Sft=RT.platform()==="win32",Bft=el.EBADF||el.os.errno.EBADF,xft=el.ENOENT||el.os.errno.ENOENT,uEe=448,dEe=384,vft="exit",Lg=[],fEe=Gt.rmdirSync.bind(Gt),hEe=!1;function Nft(t,e){return Gt.rm(t,{recursive:!0},e)}o(Nft,"rimraf");function pEe(t){return Gt.rmSync(t,{recursive:!0})}o(pEe,"FN_RIMRAF_SYNC");function WV(t,e){let r=Fg(t,e),n=r[0],i=r[1];Fft(n,function(s,a){if(s)return i(s);let c=a.tries;o((function l(){try{let u=mEe(a);Gt.stat(u,function(d){if(!d)return c-- >0?l():i(new Error("Could not get a unique tmp filename, max tries reached "+u));i(null,u)})}catch(u){i(u)}}),"_getUniqueName")()})}o(WV,"tmpName");function JV(t){let e=Fg(t),r=e[0],n=Mft(r),i=n.tries;do{let s=mEe(n);try{Gt.statSync(s)}catch{return s}}while(i-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}o(JV,"tmpNameSync");function _ft(t,e){let r=Fg(t,e),n=r[0],i=r[1];WV(n,o(function(a,c){if(a)return i(a);Gt.open(c,lEe,n.mode||dEe,o(function(u,d){if(u)return i(u);if(n.discardDescriptor)return Gt.close(d,o(function(h){return i(h,c,void 0,$V(c,-1,n,!1))},"_discardCallback"));{let f=n.discardDescriptor||n.detachDescriptor;i(null,c,d,$V(c,f?-1:d,n,!1))}},"_fileCreated"))},"_tmpNameCreated"))}o(_ft,"file");function Rft(t){let e=Fg(t),r=e[0],n=r.discardDescriptor||r.detachDescriptor,i=JV(r),s=Gt.openSync(i,lEe,r.mode||dEe);return r.discardDescriptor&&(Gt.closeSync(s),s=void 0),{name:i,fd:s,removeCallback:$V(i,n?-1:s,r,!0)}}o(Rft,"fileSync");function Tft(t,e){let r=Fg(t,e),n=r[0],i=r[1];WV(n,o(function(a,c){if(a)return i(a);Gt.mkdir(c,n.mode||uEe,o(function(u){if(u)return i(u);i(null,c,AEe(c,n,!1))},"_dirCreated"))},"_tmpNameCreated"))}o(Tft,"dir");function Dft(t){let e=Fg(t),r=e[0],n=JV(r);return Gt.mkdirSync(n,r.mode||uEe),{name:n,removeCallback:AEe(n,r,!0)}}o(Dft,"dirSync");function Qft(t,e){let r=o(function(n){if(n&&!jV(n))return e(n);e()},"_handler");0<=t[0]?Gt.close(t[0],function(){Gt.unlink(t[1],r)}):Gt.unlink(t[1],r)}o(Qft,"_removeFileAsync");function kft(t){let e=null;try{0<=t[0]&&Gt.closeSync(t[0])}catch(r){if(!Uft(r)&&!jV(r))throw r}finally{try{Gt.unlinkSync(t[1])}catch(r){jV(r)||(e=r)}}if(e!==null)throw e}o(kft,"_removeFileSync");function $V(t,e,r,n){let i=_T(kft,[e,t],n),s=_T(Qft,[e,t],n,i);return r.keep||Lg.unshift(i),n?i:s}o($V,"_prepareTmpFileRemoveCallback");function AEe(t,e,r){let n=e.unsafeCleanup?Nft:Gt.rmdir.bind(Gt),i=e.unsafeCleanup?pEe:fEe,s=_T(i,t,r),a=_T(n,t,r,s);return e.keep||Lg.unshift(s),r?s:a}o(AEe,"_prepareTmpDirRemoveCallback");function _T(t,e,r,n){let i=!1;return o(function s(a){if(!i){let c=n||s,l=Lg.indexOf(c);return l>=0&&Lg.splice(l,1),i=!0,r||t===fEe||t===pEe?t(e):t(e,a||function(){})}},"_cleanupCallback")}o(_T,"_prepareRemoveCallback");function Pft(){if(hEe)for(;Lg.length;)try{Lg[0]()}catch{}}o(Pft,"_garbageCollector");function sEe(t){let e=[],r=null;try{r=nEe.randomBytes(t)}catch{r=nEe.pseudoRandomBytes(t)}for(let n=0;n"u"}o(As,"_isUndefined");function Fg(t,e){if(typeof t=="function")return[{},t];if(As(t))return[{},e];let r={};for(let n of Object.getOwnPropertyNames(t))r[n]=t[n];return[r,e]}o(Fg,"_parseArguments");function Oft(t,e,r){let n=yn.isAbsolute(t)?t:yn.join(e,t);Gt.stat(n,function(i){i?Gt.realpath(yn.dirname(n),function(s,a){if(s)return r(s);r(null,yn.join(a,yn.basename(n)))}):Gt.realpath(n,r)})}o(Oft,"_resolvePath");function Lft(t,e){let r=yn.isAbsolute(t)?t:yn.join(e,t);try{return Gt.statSync(r),Gt.realpathSync(r)}catch{let i=Gt.realpathSync(yn.dirname(r));return yn.join(i,yn.basename(r))}}o(Lft,"_resolvePathSync");function mEe(t){let e=t.tmpdir;if(!As(t.name))return yn.join(e,t.dir,t.name);if(!As(t.template))return yn.join(e,t.dir,t.template).replace(cEe,sEe(6));let r=[t.prefix?t.prefix:"tmp","-",process.pid,"-",sEe(12),t.postfix?"-"+t.postfix:""].join("");return yn.join(e,t.dir,r)}o(mEe,"_generateTmpName");function VV(t,e){if(typeof e!="string")throw new Error(`${t} option must be a string, got "${typeof e}".`);if(e.includes(".."))throw new Error("Relative value not allowed");return e}o(VV,"_assertPath");function gEe(t){if(!As(t.name)){let e=t.name;if(yn.isAbsolute(e))throw new Error(`name option must not contain an absolute path, found "${e}".`);let r=yn.basename(e);if(r===".."||r==="."||r!==e)throw new Error(`name option must not contain a path, found "${e}".`)}if(!As(t.template)){if(typeof t.template!="string")throw new Error(`template option must be a string, got "${typeof t.template}".`);if(!t.template.match(cEe))throw new Error(`Invalid template, found "${t.template}".`)}if(!As(t.tries)&&isNaN(t.tries)||t.tries<0)throw new Error(`Invalid tries, found "${t.tries}".`);t.tries=As(t.name)?t.tries||Ift:1,t.keep=!!t.keep,t.detachDescriptor=!!t.detachDescriptor,t.discardDescriptor=!!t.discardDescriptor,t.unsafeCleanup=!!t.unsafeCleanup,t.prefix=As(t.prefix)?"":VV("prefix",t.prefix),t.postfix=As(t.postfix)?"":VV("postfix",t.postfix),t.template=As(t.template)?void 0:VV("template",t.template)}o(gEe,"_assertOptionsBase");function oEe(t,e,r,n){if(As(e))return n(null);Oft(e,r,function(i,s){if(i)return n(i);let a=yn.relative(r,s);if(a.startsWith("..")||yn.isAbsolute(a))return n(new Error(`${t} option must be relative to "${r}", found "${a}".`));n(null,a)})}o(oEe,"_getRelativePath");function aEe(t,e,r){if(As(e))return;let n=Lft(e,r),i=yn.relative(r,n);if(i.startsWith("..")||yn.isAbsolute(i))throw new Error(`${t} option must be relative to "${r}", found "${i}".`);return i}o(aEe,"_getRelativePathSync");function Fft(t,e){Gft(t,function(r,n){if(r)return e(r);t.tmpdir=n;try{gEe(t,n)}catch(i){return e(i)}oEe("dir",t.dir,n,function(i,s){if(i)return e(i);t.dir=As(s)?"":s,oEe("template",t.template,n,function(a,c){if(a)return e(a);t.template=c,e(null,t)})})})}o(Fft,"_assertAndSanitizeOptions");function Mft(t){let e=t.tmpdir=EEe(t);gEe(t,e);let r=aEe("dir",t.dir,e);return t.dir=As(r)?"":r,t.template=aEe("template",t.template,e),t}o(Mft,"_assertAndSanitizeOptionsSync");function Uft(t){return yEe(t,-Bft,"EBADF")}o(Uft,"_isEBADF");function jV(t){return yEe(t,-xft,"ENOENT")}o(jV,"_isENOENT");function yEe(t,e,r){return Sft?t.code===r:t.code===r&&t.errno===e}o(yEe,"_isExpectedError");function qft(){hEe=!0}o(qft,"setGracefulCleanup");function Gft(t,e){return Gt.realpath(t&&t.tmpdir||RT.tmpdir(),e)}o(Gft,"_getTmpDir");function EEe(t){return Gt.realpathSync(t&&t.tmpdir||RT.tmpdir())}o(EEe,"_getTmpDirSync");process.addListener(vft,Pft);Object.defineProperty(wu.exports,"tmpdir",{enumerable:!0,configurable:!1,get:o(function(){return EEe()},"get")});wu.exports.dir=Tft;wu.exports.dirSync=Dft;wu.exports.file=_ft;wu.exports.fileSync=Rft;wu.exports.tmpName=WV;wu.exports.tmpNameSync=JV;wu.exports.setGracefulCleanup=qft});var li=g(Xs=>{"use strict";Xs.__esModule=!0;Xs.extend=SEe;Xs.indexOf=jft;Xs.escapeExpression=Wft;Xs.isEmpty=Jft;Xs.createFrame=Yft;Xs.blockParams=Kft;Xs.appendContextPath=Xft;var Hft={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},zft=/[&<>"'`=]/g,Vft=/[&<>"'`=]/;function $ft(t){return Hft[t]}o($ft,"escapeChar");function SEe(t){for(var e=1;e{"use strict";TT.__esModule=!0;var ZV=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function e4(t,e){var r=e&&e.loc,n=void 0,i=void 0,s=void 0,a=void 0;r&&r.start&&(n=r.start.line,s=r.start.column,r.end&&(i=r.end.line,a=r.end.column),t+=" - "+n+":"+s);for(var c=Error.prototype.constructor.call(this,t),l=0;l{"use strict";DT.__esModule=!0;var t4=li();DT.default=function(t){t.registerHelper("blockHelperMissing",function(e,r){var n=r.inverse,i=r.fn;if(e===!0)return i(this);if(e===!1||e==null)return n(this);if(t4.isArray(e))return e.length>0?(r.ids&&(r.ids=[r.name]),t.helpers.each(e,r)):n(this);if(r.data&&r.ids){var s=t4.createFrame(r.data);s.contextPath=t4.appendContextPath(r.data.contextPath,r.name),r={data:s}}return i(e,r)})};vEe.exports=DT.default});var REe=g((QT,_Ee)=>{"use strict";QT.__esModule=!0;function Zft(t){return t&&t.__esModule?t:{default:t}}o(Zft,"_interopRequireDefault");var Mg=li(),eht=zo(),tht=Zft(eht);function rht(t){try{var e=t.return;Mg.isFunction(e)&&e.call(t)}catch{}}o(rht,"closeIterator");QT.default=function(t){t.registerHelper("each",function(e,r){if(!r)throw new tht.default("Must pass iterator to #each");var n=r.fn,i=r.inverse,s=0,a="",c=void 0,l=void 0;r.data&&r.ids&&(l=Mg.appendContextPath(r.data.contextPath,r.ids[0])+"."),Mg.isFunction(e)&&(e=e.call(this)),r.data&&(c=Mg.createFrame(r.data));function u(m,A,E,y){c&&(c.key=m,c.index=A,c.first=A===0,c.last=!!E,l&&(c.contextPath=l+m)),a=a+n(y,{data:c,blockParams:Mg.blockParams([y,m],[l+m,null])})}if(o(u,"execIteration"),e&&typeof e=="object")if(Mg.isArray(e))for(var d=e.length;s{"use strict";kT.__esModule=!0;function nht(t){return t&&t.__esModule?t:{default:t}}o(nht,"_interopRequireDefault");var iht=zo(),sht=nht(iht);kT.default=function(t){t.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new sht.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};TEe.exports=kT.default});var OEe=g((PT,PEe)=>{"use strict";PT.__esModule=!0;function oht(t){return t&&t.__esModule?t:{default:t}}o(oht,"_interopRequireDefault");var QEe=li(),aht=zo(),kEe=oht(aht);PT.default=function(t){t.registerHelper("if",function(e,r){if(arguments.length!=2)throw new kEe.default("#if requires exactly one argument");return QEe.isFunction(e)&&(e=e.call(this)),!r.hash.includeZero&&!e||QEe.isEmpty(e)?r.inverse(this):r.fn(this)}),t.registerHelper("unless",function(e,r){if(arguments.length!=2)throw new kEe.default("#unless requires exactly one argument");return t.helpers.if.call(this,e,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};PEe.exports=PT.default});var FEe=g((OT,LEe)=>{"use strict";OT.__esModule=!0;OT.default=function(t){t.registerHelper("log",function(){for(var e=[void 0],r=arguments[arguments.length-1],n=0;n{"use strict";LT.__esModule=!0;LT.default=function(t){t.registerHelper("lookup",function(e,r,n){return e&&n.lookupProperty(e,r)})};MEe.exports=LT.default});var GEe=g((FT,qEe)=>{"use strict";FT.__esModule=!0;function cht(t){return t&&t.__esModule?t:{default:t}}o(cht,"_interopRequireDefault");var fw=li(),lht=zo(),uht=cht(lht);FT.default=function(t){t.registerHelper("with",function(e,r){if(arguments.length!=2)throw new uht.default("#with requires exactly one argument");fw.isFunction(e)&&(e=e.call(this));var n=r.fn;if(fw.isEmpty(e))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=fw.createFrame(r.data),i.contextPath=fw.appendContextPath(r.data.contextPath,r.ids[0])),n(e,{data:i,blockParams:fw.blockParams([e],[i&&i.contextPath])})})};qEe.exports=FT.default});var r4=g(MT=>{"use strict";MT.__esModule=!0;MT.registerDefaultHelpers=Bht;MT.moveHelperToHooks=xht;function fp(t){return t&&t.__esModule?t:{default:t}}o(fp,"_interopRequireDefault");var dht=NEe(),fht=fp(dht),hht=REe(),pht=fp(hht),Aht=DEe(),mht=fp(Aht),ght=OEe(),yht=fp(ght),Eht=FEe(),Cht=fp(Eht),bht=UEe(),wht=fp(bht),Iht=GEe(),Sht=fp(Iht);function Bht(t){fht.default(t),pht.default(t),mht.default(t),yht.default(t),Cht.default(t),wht.default(t),Sht.default(t)}o(Bht,"registerDefaultHelpers");function xht(t,e,r){t.helpers[e]&&(t.hooks[e]=t.helpers[e],r||(t.helpers[e]=void 0))}o(xht,"moveHelperToHooks")});var zEe=g((UT,HEe)=>{"use strict";UT.__esModule=!0;var vht=li();UT.default=function(t){t.registerDecorator("inline",function(e,r,n,i){var s=e;return r.partials||(r.partials={},s=o(function(a,c){var l=n.partials;n.partials=vht.extend({},l,r.partials);var u=e(a,c);return n.partials=l,u},"ret")),r.partials[i.args[0]]=i.fn,s})};HEe.exports=UT.default});var VEe=g(n4=>{"use strict";n4.__esModule=!0;n4.registerDefaultDecorators=Tht;function Nht(t){return t&&t.__esModule?t:{default:t}}o(Nht,"_interopRequireDefault");var _ht=zEe(),Rht=Nht(_ht);function Tht(t){Rht.default(t)}o(Tht,"registerDefaultDecorators")});var i4=g((qT,$Ee)=>{"use strict";qT.__esModule=!0;var Dht=li(),Ug={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:o(function(e){if(typeof e=="string"){var r=Dht.indexOf(Ug.methodMap,e.toLowerCase());r>=0?e=r:e=parseInt(e,10)}return e},"lookupLevel"),log:o(function(e){if(e=Ug.lookupLevel(e),typeof console<"u"&&Ug.lookupLevel(Ug.level)<=e){var r=Ug.methodMap[e];console[r]||(r="log");for(var n=arguments.length,i=Array(n>1?n-1:0),s=1;s{"use strict";qg.__esModule=!0;qg.createProtoAccessControl=Oht;qg.resultIsAllowed=Lht;qg.isPrototypeConstructor=Fht;qg.resetLoggedProperties=Uht;function Qht(t){return t&&t.__esModule?t:{default:t}}o(Qht,"_interopRequireDefault");var jEe=li(),kht=i4(),Pht=Qht(kht),GT=Object.create(null);function Oht(t){var e=Object.create(null);e.__proto__=!1,jEe.extend(e,t.allowedProtoProperties);var r=Object.create(null);return r.constructor=!1,r.__defineGetter__=!1,r.__defineSetter__=!1,r.__lookupGetter__=!1,r.__lookupSetter__=!1,jEe.extend(r,t.allowedProtoMethods),{properties:{whitelist:e,defaultValue:t.allowProtoPropertiesByDefault},methods:{whitelist:r,defaultValue:t.allowProtoMethodsByDefault}}}o(Oht,"createProtoAccessControl");function Lht(t,e,r){return WEe(typeof t=="function"?e.methods:e.properties,r)}o(Lht,"resultIsAllowed");function Fht(t,e,r){return e==="constructor"&&typeof r=="function"&&t===r.prototype}o(Fht,"isPrototypeConstructor");function WEe(t,e){return t.whitelist[e]!==void 0?t.whitelist[e]===!0:t.defaultValue!==void 0?t.defaultValue:(Mht(e),!1)}o(WEe,"checkWhiteList");function Mht(t){GT[t]!==!0&&(GT[t]=!0,Pht.default.log("error",'Handlebars: Access has been denied to resolve the property "'+t+`" because it is not an "own property" of its parent. You can add a runtime option to disable the check or this warning: -See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(Oht,"logUnexpecedPropertyAccessOnce");function Lht(){Object.keys(qT).forEach(function(t){delete qT[t]})}o(Lht,"resetLoggedProperties")});var HT=g(tl=>{"use strict";tl.__esModule=!0;tl.HandlebarsEnvironment=a4;function WEe(t){return t&&t.__esModule?t:{default:t}}o(WEe,"_interopRequireDefault");var fp=li(),Fht=zo(),s4=WEe(Fht),Mht=t4(),Uht=zEe(),qht=n4(),GT=WEe(qht),Ght=i4(),Hht="4.7.10";tl.VERSION=Hht;var zht=8;tl.COMPILER_REVISION=zht;var Vht=7;tl.LAST_COMPATIBLE_COMPILER_REVISION=Vht;var $ht={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};tl.REVISION_CHANGES=$ht;var o4="[object Object]";function a4(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},Mht.registerDefaultHelpers(this),Uht.registerDefaultDecorators(this)}o(a4,"HandlebarsEnvironment");a4.prototype={constructor:a4,logger:GT.default,log:GT.default.log,registerHelper:o(function(e,r){if(fp.toString.call(e)===o4){if(r)throw new s4.default("Arg not supported with multiple helpers");fp.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:o(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:o(function(e,r){if(fp.toString.call(e)===o4)fp.extend(this.partials,e);else{if(typeof r>"u")throw new s4.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:o(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:o(function(e,r){if(fp.toString.call(e)===o4){if(r)throw new s4.default("Arg not supported with multiple decorators");fp.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){Ght.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var jht=GT.default.log;tl.log=jht;tl.createFrame=fp.createFrame;tl.logger=GT.default});var YEe=g((zT,JEe)=>{"use strict";zT.__esModule=!0;function c4(t){this.string=t}o(c4,"SafeString");c4.prototype.toString=c4.prototype.toHTML=function(){return""+this.string};zT.default=c4;JEe.exports=zT.default});var KEe=g(l4=>{"use strict";l4.__esModule=!0;l4.wrapHelper=Wht;function Wht(t,e){if(typeof t!="function")return t;var r=o(function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=e(i),t.apply(this,arguments)},"wrapper");return r}o(Wht,"wrapHelper")});var rCe=g(jd=>{"use strict";jd.__esModule=!0;jd.checkRevision=ept;jd.template=tpt;jd.wrapProgram=VT;jd.resolvePartial=rpt;jd.invokePartial=npt;jd.noop=eCe;function Jht(t){return t&&t.__esModule?t:{default:t}}o(Jht,"_interopRequireDefault");function Yht(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(Yht,"_interopRequireWildcard");var Kht=li(),hp=Yht(Kht),Xht=zo(),Ua=Jht(Xht),wu=HT(),XEe=t4(),Zht=KEe(),u4=i4();function ept(t){var e=t&&t[0]||1,r=wu.COMPILER_REVISION;if(!(e>=wu.LAST_COMPATIBLE_COMPILER_REVISION&&e<=wu.COMPILER_REVISION))if(e{"use strict";tl.__esModule=!0;tl.HandlebarsEnvironment=c4;function JEe(t){return t&&t.__esModule?t:{default:t}}o(JEe,"_interopRequireDefault");var hp=li(),qht=zo(),o4=JEe(qht),Ght=r4(),Hht=VEe(),zht=i4(),HT=JEe(zht),Vht=s4(),$ht="4.7.10";tl.VERSION=$ht;var jht=8;tl.COMPILER_REVISION=jht;var Wht=7;tl.LAST_COMPATIBLE_COMPILER_REVISION=Wht;var Jht={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};tl.REVISION_CHANGES=Jht;var a4="[object Object]";function c4(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},Ght.registerDefaultHelpers(this),Hht.registerDefaultDecorators(this)}o(c4,"HandlebarsEnvironment");c4.prototype={constructor:c4,logger:HT.default,log:HT.default.log,registerHelper:o(function(e,r){if(hp.toString.call(e)===a4){if(r)throw new o4.default("Arg not supported with multiple helpers");hp.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:o(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:o(function(e,r){if(hp.toString.call(e)===a4)hp.extend(this.partials,e);else{if(typeof r>"u")throw new o4.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:o(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:o(function(e,r){if(hp.toString.call(e)===a4){if(r)throw new o4.default("Arg not supported with multiple decorators");hp.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){Vht.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var Yht=HT.default.log;tl.log=Yht;tl.createFrame=hp.createFrame;tl.logger=HT.default});var KEe=g((VT,YEe)=>{"use strict";VT.__esModule=!0;function l4(t){this.string=t}o(l4,"SafeString");l4.prototype.toString=l4.prototype.toHTML=function(){return""+this.string};VT.default=l4;YEe.exports=VT.default});var XEe=g(u4=>{"use strict";u4.__esModule=!0;u4.wrapHelper=Kht;function Kht(t,e){if(typeof t!="function")return t;var r=o(function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=e(i),t.apply(this,arguments)},"wrapper");return r}o(Kht,"wrapHelper")});var nCe=g(Wd=>{"use strict";Wd.__esModule=!0;Wd.checkRevision=npt;Wd.template=ipt;Wd.wrapProgram=$T;Wd.resolvePartial=spt;Wd.invokePartial=opt;Wd.noop=tCe;function Xht(t){return t&&t.__esModule?t:{default:t}}o(Xht,"_interopRequireDefault");function Zht(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(Zht,"_interopRequireWildcard");var ept=li(),pp=Zht(ept),tpt=zo(),Ua=Xht(tpt),Iu=zT(),ZEe=r4(),rpt=XEe(),d4=s4();function npt(t){var e=t&&t[0]||1,r=Iu.COMPILER_REVISION;if(!(e>=Iu.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Iu.COMPILER_REVISION))if(e{"use strict";jT.__esModule=!0;jT.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}};nCe.exports=jT.default});var cCe=g((WT,aCe)=>{"use strict";WT.__esModule=!0;function h4(t){return t&&t.__esModule?t:{default:t}}o(h4,"_interopRequireDefault");function p4(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(p4,"_interopRequireWildcard");var opt=HT(),iCe=p4(opt),apt=YEe(),cpt=h4(apt),lpt=zo(),upt=h4(lpt),dpt=li(),f4=p4(dpt),fpt=rCe(),sCe=p4(fpt),hpt=d4(),ppt=h4(hpt);function oCe(){var t=new iCe.HandlebarsEnvironment;return f4.extend(t,iCe),t.SafeString=cpt.default,t.Exception=upt.default,t.Utils=f4,t.escapeExpression=f4.escapeExpression,t.VM=sCe,t.template=function(e){return sCe.template(e,t)},t}o(oCe,"create");var fw=oCe();fw.create=oCe;ppt.default(fw);fw.default=fw;WT.default=fw;aCe.exports=WT.default});var A4=g((JT,uCe)=>{"use strict";JT.__esModule=!0;var lCe={helpers:{helperExpression:o(function(e){return e.type==="SubExpression"||(e.type==="MustacheStatement"||e.type==="BlockStatement")&&!!(e.params&&e.params.length||e.hash)},"helperExpression"),scopedId:o(function(e){return/^\.|this\b/.test(e.original)},"scopedId"),simpleId:o(function(e){return e.parts.length===1&&!lCe.helpers.scopedId(e)&&!e.depth},"simpleId")}};JT.default=lCe;uCe.exports=JT.default});var fCe=g((YT,dCe)=>{"use strict";YT.__esModule=!0;var Apt=(function(){var t={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:o(function(i,s,a,c,l,u,d){var f=u.length-1;switch(l){case 1:return u[f-1];case 2:this.$=c.prepareProgram(u[f]);break;case 3:this.$=u[f];break;case 4:this.$=u[f];break;case 5:this.$=u[f];break;case 6:this.$=u[f];break;case 7:this.$=u[f];break;case 8:this.$=u[f];break;case 9:this.$={type:"CommentStatement",value:c.stripComment(u[f]),strip:c.stripFlags(u[f],u[f]),loc:c.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:u[f],value:u[f],loc:c.locInfo(this._$)};break;case 11:this.$=c.prepareRawBlock(u[f-2],u[f-1],u[f],this._$);break;case 12:this.$={path:u[f-3],params:u[f-2],hash:u[f-1]};break;case 13:this.$=c.prepareBlock(u[f-3],u[f-2],u[f-1],u[f],!1,this._$);break;case 14:this.$=c.prepareBlock(u[f-3],u[f-2],u[f-1],u[f],!0,this._$);break;case 15:this.$={open:u[f-5],path:u[f-4],params:u[f-3],hash:u[f-2],blockParams:u[f-1],strip:c.stripFlags(u[f-5],u[f])};break;case 16:this.$={path:u[f-4],params:u[f-3],hash:u[f-2],blockParams:u[f-1],strip:c.stripFlags(u[f-5],u[f])};break;case 17:this.$={path:u[f-4],params:u[f-3],hash:u[f-2],blockParams:u[f-1],strip:c.stripFlags(u[f-5],u[f])};break;case 18:this.$={strip:c.stripFlags(u[f-1],u[f-1]),program:u[f]};break;case 19:var h=c.prepareBlock(u[f-2],u[f-1],u[f],u[f],!1,this._$),p=c.prepareProgram([h],u[f-1].loc);p.chained=!0,this.$={strip:u[f-2].strip,program:p,chain:!0};break;case 20:this.$=u[f];break;case 21:this.$={path:u[f-1],strip:c.stripFlags(u[f-2],u[f])};break;case 22:this.$=c.prepareMustache(u[f-3],u[f-2],u[f-1],u[f-4],c.stripFlags(u[f-4],u[f]),this._$);break;case 23:this.$=c.prepareMustache(u[f-3],u[f-2],u[f-1],u[f-4],c.stripFlags(u[f-4],u[f]),this._$);break;case 24:this.$={type:"PartialStatement",name:u[f-3],params:u[f-2],hash:u[f-1],indent:"",strip:c.stripFlags(u[f-4],u[f]),loc:c.locInfo(this._$)};break;case 25:this.$=c.preparePartialBlock(u[f-2],u[f-1],u[f],this._$);break;case 26:this.$={path:u[f-3],params:u[f-2],hash:u[f-1],strip:c.stripFlags(u[f-4],u[f])};break;case 27:this.$=u[f];break;case 28:this.$=u[f];break;case 29:this.$={type:"SubExpression",path:u[f-3],params:u[f-2],hash:u[f-1],loc:c.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:u[f],loc:c.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:c.id(u[f-2]),value:u[f],loc:c.locInfo(this._$)};break;case 32:this.$=c.id(u[f-1]);break;case 33:this.$=u[f];break;case 34:this.$=u[f];break;case 35:this.$={type:"StringLiteral",value:u[f],original:u[f],loc:c.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(u[f]),original:Number(u[f]),loc:c.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:u[f]==="true",original:u[f]==="true",loc:c.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:c.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:c.locInfo(this._$)};break;case 40:this.$=u[f];break;case 41:this.$=u[f];break;case 42:this.$=c.preparePath(!0,u[f],this._$);break;case 43:this.$=c.preparePath(!1,u[f],this._$);break;case 44:u[f-2].push({part:c.id(u[f]),original:u[f],separator:u[f-1]}),this.$=u[f-2];break;case 45:this.$=[{part:c.id(u[f]),original:u[f]}];break;case 46:this.$=[];break;case 47:u[f-1].push(u[f]);break;case 48:this.$=[];break;case 49:u[f-1].push(u[f]);break;case 50:this.$=[];break;case 51:u[f-1].push(u[f]);break;case 58:this.$=[];break;case 59:u[f-1].push(u[f]);break;case 64:this.$=[];break;case 65:u[f-1].push(u[f]);break;case 70:this.$=[];break;case 71:u[f-1].push(u[f]);break;case 78:this.$=[];break;case 79:u[f-1].push(u[f]);break;case 82:this.$=[];break;case 83:u[f-1].push(u[f]);break;case 86:this.$=[];break;case 87:u[f-1].push(u[f]);break;case 90:this.$=[];break;case 91:u[f-1].push(u[f]);break;case 94:this.$=[];break;case 95:u[f-1].push(u[f]);break;case 98:this.$=[u[f]];break;case 99:u[f-1].push(u[f]);break;case 100:this.$=[u[f]];break;case 101:u[f-1].push(u[f]);break}},"anonymous"),table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:o(function(i,s){throw new Error(i)},"parseError"),parse:o(function(i){var s=this,a=[0],c=[null],l=[],u=this.table,d="",f=0,h=0,p=0,m=2,A=1;this.lexer.setInput(i),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var E=this.lexer.yylloc;l.push(E);var y=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function C(K){a.length=a.length-2*K,c.length=c.length-K,l.length=l.length-K}o(C,"popStack");function w(){var K;return K=s.lexer.lex()||1,typeof K!="number"&&(K=s.symbols_[K]||K),K}o(w,"lex");for(var B,P,U,N,$,Q,H={},V,W,ue,de;;){if(U=a[a.length-1],this.defaultActions[U]?N=this.defaultActions[U]:((B===null||typeof B>"u")&&(B=w()),N=u[U]&&u[U][B]),typeof N>"u"||!N.length||!N[0]){var Se="";if(!p){de=[];for(V in u[U])this.terminals_[V]&&V>2&&de.push("'"+this.terminals_[V]+"'");this.lexer.showPosition?Se="Parse error on line "+(f+1)+`: +`)}return u}else throw new Ua.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}o(n,"invokePartialWrapper");var i={strict:o(function(c,l,u){if(!c||!(l in c))throw new Ua.default('"'+l+'" not defined in '+c,{loc:u});return i.lookupProperty(c,l)},"strict"),lookupProperty:o(function(c,l){var u=c[l];if(u==null||Object.prototype.hasOwnProperty.call(c,l)&&!d4.isPrototypeConstructor(c,l,u)||d4.resultIsAllowed(u,i.protoAccessControl,l))return u},"lookupProperty"),lookup:o(function(c,l){for(var u=c.length,d=0;d{"use strict";WT.__esModule=!0;WT.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}};iCe.exports=WT.default});var lCe=g((JT,cCe)=>{"use strict";JT.__esModule=!0;function p4(t){return t&&t.__esModule?t:{default:t}}o(p4,"_interopRequireDefault");function A4(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(A4,"_interopRequireWildcard");var lpt=zT(),sCe=A4(lpt),upt=KEe(),dpt=p4(upt),fpt=zo(),hpt=p4(fpt),ppt=li(),h4=A4(ppt),Apt=nCe(),oCe=A4(Apt),mpt=f4(),gpt=p4(mpt);function aCe(){var t=new sCe.HandlebarsEnvironment;return h4.extend(t,sCe),t.SafeString=dpt.default,t.Exception=hpt.default,t.Utils=h4,t.escapeExpression=h4.escapeExpression,t.VM=oCe,t.template=function(e){return oCe.template(e,t)},t}o(aCe,"create");var hw=aCe();hw.create=aCe;gpt.default(hw);hw.default=hw;JT.default=hw;cCe.exports=JT.default});var m4=g((YT,dCe)=>{"use strict";YT.__esModule=!0;var uCe={helpers:{helperExpression:o(function(e){return e.type==="SubExpression"||(e.type==="MustacheStatement"||e.type==="BlockStatement")&&!!(e.params&&e.params.length||e.hash)},"helperExpression"),scopedId:o(function(e){return/^\.|this\b/.test(e.original)},"scopedId"),simpleId:o(function(e){return e.parts.length===1&&!uCe.helpers.scopedId(e)&&!e.depth},"simpleId")}};YT.default=uCe;dCe.exports=YT.default});var hCe=g((KT,fCe)=>{"use strict";KT.__esModule=!0;var ypt=(function(){var t={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:o(function(i,s,a,c,l,u,d){var f=u.length-1;switch(l){case 1:return u[f-1];case 2:this.$=c.prepareProgram(u[f]);break;case 3:this.$=u[f];break;case 4:this.$=u[f];break;case 5:this.$=u[f];break;case 6:this.$=u[f];break;case 7:this.$=u[f];break;case 8:this.$=u[f];break;case 9:this.$={type:"CommentStatement",value:c.stripComment(u[f]),strip:c.stripFlags(u[f],u[f]),loc:c.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:u[f],value:u[f],loc:c.locInfo(this._$)};break;case 11:this.$=c.prepareRawBlock(u[f-2],u[f-1],u[f],this._$);break;case 12:this.$={path:u[f-3],params:u[f-2],hash:u[f-1]};break;case 13:this.$=c.prepareBlock(u[f-3],u[f-2],u[f-1],u[f],!1,this._$);break;case 14:this.$=c.prepareBlock(u[f-3],u[f-2],u[f-1],u[f],!0,this._$);break;case 15:this.$={open:u[f-5],path:u[f-4],params:u[f-3],hash:u[f-2],blockParams:u[f-1],strip:c.stripFlags(u[f-5],u[f])};break;case 16:this.$={path:u[f-4],params:u[f-3],hash:u[f-2],blockParams:u[f-1],strip:c.stripFlags(u[f-5],u[f])};break;case 17:this.$={path:u[f-4],params:u[f-3],hash:u[f-2],blockParams:u[f-1],strip:c.stripFlags(u[f-5],u[f])};break;case 18:this.$={strip:c.stripFlags(u[f-1],u[f-1]),program:u[f]};break;case 19:var h=c.prepareBlock(u[f-2],u[f-1],u[f],u[f],!1,this._$),p=c.prepareProgram([h],u[f-1].loc);p.chained=!0,this.$={strip:u[f-2].strip,program:p,chain:!0};break;case 20:this.$=u[f];break;case 21:this.$={path:u[f-1],strip:c.stripFlags(u[f-2],u[f])};break;case 22:this.$=c.prepareMustache(u[f-3],u[f-2],u[f-1],u[f-4],c.stripFlags(u[f-4],u[f]),this._$);break;case 23:this.$=c.prepareMustache(u[f-3],u[f-2],u[f-1],u[f-4],c.stripFlags(u[f-4],u[f]),this._$);break;case 24:this.$={type:"PartialStatement",name:u[f-3],params:u[f-2],hash:u[f-1],indent:"",strip:c.stripFlags(u[f-4],u[f]),loc:c.locInfo(this._$)};break;case 25:this.$=c.preparePartialBlock(u[f-2],u[f-1],u[f],this._$);break;case 26:this.$={path:u[f-3],params:u[f-2],hash:u[f-1],strip:c.stripFlags(u[f-4],u[f])};break;case 27:this.$=u[f];break;case 28:this.$=u[f];break;case 29:this.$={type:"SubExpression",path:u[f-3],params:u[f-2],hash:u[f-1],loc:c.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:u[f],loc:c.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:c.id(u[f-2]),value:u[f],loc:c.locInfo(this._$)};break;case 32:this.$=c.id(u[f-1]);break;case 33:this.$=u[f];break;case 34:this.$=u[f];break;case 35:this.$={type:"StringLiteral",value:u[f],original:u[f],loc:c.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(u[f]),original:Number(u[f]),loc:c.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:u[f]==="true",original:u[f]==="true",loc:c.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:c.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:c.locInfo(this._$)};break;case 40:this.$=u[f];break;case 41:this.$=u[f];break;case 42:this.$=c.preparePath(!0,u[f],this._$);break;case 43:this.$=c.preparePath(!1,u[f],this._$);break;case 44:u[f-2].push({part:c.id(u[f]),original:u[f],separator:u[f-1]}),this.$=u[f-2];break;case 45:this.$=[{part:c.id(u[f]),original:u[f]}];break;case 46:this.$=[];break;case 47:u[f-1].push(u[f]);break;case 48:this.$=[];break;case 49:u[f-1].push(u[f]);break;case 50:this.$=[];break;case 51:u[f-1].push(u[f]);break;case 58:this.$=[];break;case 59:u[f-1].push(u[f]);break;case 64:this.$=[];break;case 65:u[f-1].push(u[f]);break;case 70:this.$=[];break;case 71:u[f-1].push(u[f]);break;case 78:this.$=[];break;case 79:u[f-1].push(u[f]);break;case 82:this.$=[];break;case 83:u[f-1].push(u[f]);break;case 86:this.$=[];break;case 87:u[f-1].push(u[f]);break;case 90:this.$=[];break;case 91:u[f-1].push(u[f]);break;case 94:this.$=[];break;case 95:u[f-1].push(u[f]);break;case 98:this.$=[u[f]];break;case 99:u[f-1].push(u[f]);break;case 100:this.$=[u[f]];break;case 101:u[f-1].push(u[f]);break}},"anonymous"),table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:o(function(i,s){throw new Error(i)},"parseError"),parse:o(function(i){var s=this,a=[0],c=[null],l=[],u=this.table,d="",f=0,h=0,p=0,m=2,A=1;this.lexer.setInput(i),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var E=this.lexer.yylloc;l.push(E);var y=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function C(K){a.length=a.length-2*K,c.length=c.length-K,l.length=l.length-K}o(C,"popStack");function w(){var K;return K=s.lexer.lex()||1,typeof K!="number"&&(K=s.symbols_[K]||K),K}o(w,"lex");for(var B,P,U,N,$,Q,H={},V,W,ue,de;;){if(U=a[a.length-1],this.defaultActions[U]?N=this.defaultActions[U]:((B===null||typeof B>"u")&&(B=w()),N=u[U]&&u[U][B]),typeof N>"u"||!N.length||!N[0]){var Se="";if(!p){de=[];for(V in u[U])this.terminals_[V]&&V>2&&de.push("'"+this.terminals_[V]+"'");this.lexer.showPosition?Se="Parse error on line "+(f+1)+`: `+this.lexer.showPosition()+` Expecting `+de.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Se="Parse error on line "+(f+1)+": Unexpected "+(B==1?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Se,{text:this.lexer.match,token:this.terminals_[B]||B,line:this.lexer.yylineno,loc:E,expected:de})}}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+B);switch(N[0]){case 1:a.push(B),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(N[1]),B=null,P?(B=P,P=null):(h=this.lexer.yyleng,d=this.lexer.yytext,f=this.lexer.yylineno,E=this.lexer.yylloc,p>0&&p--);break;case 2:if(W=this.productions_[N[1]][1],H.$=c[c.length-W],H._$={first_line:l[l.length-(W||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(W||1)].first_column,last_column:l[l.length-1].last_column},y&&(H._$.range=[l[l.length-(W||1)].range[0],l[l.length-1].range[1]]),Q=this.performAction.call(H,d,h,f,this.yy,N[1],c,l),typeof Q<"u")return Q;W&&(a=a.slice(0,-1*W*2),c=c.slice(0,-1*W),l=l.slice(0,-1*W)),a.push(this.productions_[N[1]][0]),c.push(H.$),l.push(H._$),ue=u[a[a.length-2]][a[a.length-1]],a.push(ue);break;case 3:return!0}}return!0},"parse")},e=(function(){var n={EOF:1,parseError:o(function(s,a){if(this.yy.parser)this.yy.parser.parseError(s,a);else throw new Error(s)},"parseError"),setInput:o(function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var a=s.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:o(function(s){var a=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===l.length?this.yylloc.first_column:0)+l[l.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+` `+a+"^"},"showPosition"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,a,c,l,u,d;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),h=0;ha[0].length)&&(a=c,l=h,!this.options.flex)));h++);return a?(d=a[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],s=this.performAction.call(this,this.yy,this,f[l],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var s=this.next();return typeof s<"u"?s:this.lex()},"lex"),begin:o(function(s){this.conditionStack.push(s)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(s){this.begin(s)},"begin")};return n.options={},n.performAction=o(function(s,a,c,l){function u(f,h){return a.yytext=a.yytext.substring(f,a.yyleng-h+f)}o(u,"strip");var d=l;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n})();t.lexer=e;function r(){this.yy={}}return o(r,"Parser"),r.prototype=t,t.Parser=r,new r})();YT.default=Apt;dCe.exports=YT.default});var g4=g(m4=>{"use strict";m4.__esModule=!0;var mpt=["Program","BlockStatement","DecoratorBlock","PartialStatement","PartialBlockStatement","Decorator","MustacheStatement","ContentStatement","CommentStatement","SubExpression","PathExpression","StringLiteral","NumberLiteral","BooleanLiteral","UndefinedLiteral","NullLiteral","Hash","HashPair"];m4.NODE_TYPES=mpt});var e2=g((ZT,mCe)=>{"use strict";ZT.__esModule=!0;function gpt(t){return t&&t.__esModule?t:{default:t}}o(gpt,"_interopRequireDefault");var ypt=zo(),y4=gpt(ypt),Ept=li(),Cpt=g4();function XT(){this.parents=[]}o(XT,"Visitor");function hCe(t,e){return Ept.indexOf(Cpt.NODE_TYPES,e)!==-1||!(e in XT.prototype)&&typeof t[e]=="function"}o(hCe,"isDispatchable");XT.prototype={constructor:XT,mutating:!1,acceptKey:o(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!hCe(this,n.type))throw new y4.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},"acceptKey"),acceptRequired:o(function(e,r){if(this.acceptKey(e,r),!e[r])throw new y4.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(e){for(var r=0,n=e.length;r{"use strict";t2.__esModule=!0;function bpt(t){return t&&t.__esModule?t:{default:t}}o(bpt,"_interopRequireDefault");var wpt=e2(),Ipt=bpt(wpt);function rl(){var t=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=t}o(rl,"WhitespaceControl");rl.prototype=new Ipt.default;rl.prototype.Program=function(t){var e=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=t.body,i=0,s=n.length;i{"use strict";Vo.__esModule=!0;Vo.SourceLocation=xpt;Vo.id=vpt;Vo.stripFlags=Npt;Vo.stripComment=Rpt;Vo.preparePath=_pt;Vo.prepareMustache=Tpt;Vo.prepareRawBlock=Dpt;Vo.prepareBlock=Qpt;Vo.prepareProgram=kpt;Vo.preparePartialBlock=Ppt;function Spt(t){return t&&t.__esModule?t:{default:t}}o(Spt,"_interopRequireDefault");var Bpt=zo(),b4=Spt(Bpt);function w4(t,e){if(e=e.path?e.path.original:e,t.path.original!==e){var r={loc:t.path.loc};throw new b4.default(t.path.original+" doesn't match "+e,r)}}o(w4,"validateClose");function xpt(t,e){this.source=t,this.start={line:e.first_line,column:e.first_column},this.end={line:e.last_line,column:e.last_column}}o(xpt,"SourceLocation");function vpt(t){return/^\[.*\]$/.test(t)?t.substring(1,t.length-1):t}o(vpt,"id");function Npt(t,e){return{open:t.charAt(2)==="~",close:e.charAt(e.length-3)==="~"}}o(Npt,"stripFlags");function Rpt(t){return t.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}o(Rpt,"stripComment");function _pt(t,e,r){r=this.locInfo(r);for(var n=t?"@":"",i=[],s=0,a=0,c=e.length;a0)throw new b4.default("Invalid path: "+n,{loc:r});l===".."&&s++}else i.push(l)}return{type:"PathExpression",data:t,depth:s,parts:i,original:n,loc:r}}o(_pt,"preparePath");function Tpt(t,e,r,n,i,s){var a=n.charAt(3)||n.charAt(2),c=a!=="{"&&a!=="&",l=/\*/.test(n);return{type:l?"Decorator":"MustacheStatement",path:t,params:e,hash:r,escaped:c,strip:i,loc:this.locInfo(s)}}o(Tpt,"prepareMustache");function Dpt(t,e,r,n){w4(t,r),n=this.locInfo(n);var i={type:"Program",body:e,strip:{},loc:n};return{type:"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}o(Dpt,"prepareRawBlock");function Qpt(t,e,r,n,i,s){n&&n.path&&w4(t,n);var a=/\*/.test(t.open);e.blockParams=t.blockParams;var c=void 0,l=void 0;if(r){if(a)throw new b4.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),l=r.strip,c=r.program}return i&&(i=c,c=e,e=i),{type:a?"DecoratorBlock":"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:e,inverse:c,openStrip:t.strip,inverseStrip:l,closeStrip:n&&n.strip,loc:this.locInfo(s)}}o(Qpt,"prepareBlock");function kpt(t,e){if(!e&&t.length){var r=t[0].loc,n=t[t.length-1].loc;r&&n&&(e={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:t,strip:{},loc:e}}o(kpt,"prepareProgram");function Ppt(t,e,r,n){return w4(t,r),{type:"PartialBlockStatement",name:t.path,params:t.params,hash:t.hash,program:e,openStrip:t.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}o(Ppt,"preparePartialBlock")});var wCe=g(hw=>{"use strict";hw.__esModule=!0;hw.parseWithoutProcessing=bCe;hw.parse=Hpt;function Opt(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(Opt,"_interopRequireWildcard");function CCe(t){return t&&t.__esModule?t:{default:t}}o(CCe,"_interopRequireDefault");var Lpt=fCe(),I4=CCe(Lpt),Fpt=yCe(),Mpt=CCe(Fpt),Upt=ECe(),qpt=Opt(Upt),Gpt=li();hw.parser=I4.default;var r2={};Gpt.extend(r2,qpt);function bCe(t,e){if(t.type==="Program")return t;I4.default.yy=r2,r2.locInfo=function(n){return new r2.SourceLocation(e&&e.srcName,n)};var r=I4.default.parse(t);return r}o(bCe,"parseWithoutProcessing");function Hpt(t,e){var r=bCe(t,e),n=new Mpt.default(e);return n.accept(r)}o(Hpt,"parse")});var vCe=g(Aw=>{"use strict";Aw.__esModule=!0;Aw.Compiler=x4;Aw.precompile=Wpt;Aw.compile=Jpt;function SCe(t){return t&&t.__esModule?t:{default:t}}o(SCe,"_interopRequireDefault");var zpt=zo(),qg=SCe(zpt),Jd=li(),Vpt=A4(),pw=SCe(Vpt),$pt=g4(),jpt=[].slice;function x4(){}o(x4,"Compiler");x4.prototype={compiler:x4,equals:o(function(e){var r=this.opcodes.length;if(e.opcodes.length!==r)return!1;for(var n=0;n1)throw new qg.default("Unsupported number of partial arguments: "+n.length,e);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var i=e.name.original,s=e.name.type==="SubExpression";s&&this.accept(e.name),this.setupFullMustacheParams(e,r,void 0,!0);var a=e.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",s,i,a),this.opcode("append")},"PartialStatement"),PartialBlockStatement:o(function(e){this.PartialStatement(e)},"PartialBlockStatement"),MustacheStatement:o(function(e){this.SubExpression(e),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},"MustacheStatement"),Decorator:o(function(e){this.DecoratorBlock(e)},"Decorator"),ContentStatement:o(function(e){if(e.value!=null&&typeof e.value!="string")throw Iu(e,"value must be a string");e.value&&this.opcode("appendContent",e.value)},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:o(function(e){ICe(e);var r=this.classifySexpr(e);r==="simple"?this.simpleSexpr(e):r==="helper"?this.helperSexpr(e):this.ambiguousSexpr(e)},"SubExpression"),ambiguousSexpr:o(function(e,r,n){var i=e.path,s=i.parts[0],a=r!=null||n!=null;this.opcode("getContext",S4(i)),this.opcode("pushProgram",r),this.opcode("pushProgram",n),i.strict=!0,this.accept(i),this.opcode("invokeAmbiguous",s,a)},"ambiguousSexpr"),simpleSexpr:o(function(e){var r=e.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},"simpleSexpr"),helperSexpr:o(function(e,r,n){var i=this.setupFullMustacheParams(e,r,n),s=e.path,a=s.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",i.length,a);else{if(this.options.knownHelpersOnly)throw new qg.default("You specified knownHelpersOnly, but used the unknown helper "+a,e);s.strict=!0,s.falsy=!0,this.accept(s),this.opcode("invokeHelper",i.length,s.original,pw.default.helpers.simpleId(s))}},"helperSexpr"),PathExpression:o(function(e){var r=S4(e),n=B4(e);this.addDepth(r),this.opcode("getContext",r);var i=n[0],s=pw.default.helpers.scopedId(e),a=!r&&!s&&this.blockParamIndex(i);a?this.opcode("lookupBlockParam",a,n):i?e.data?(this.options.data=!0,this.opcode("lookupData",r,n,e.strict)):this.opcode("lookupOnContext",n,e.falsy,e.strict,s):this.opcode("pushContext")},"PathExpression"),StringLiteral:o(function(e){n2(e),this.opcode("pushString",e.value)},"StringLiteral"),NumberLiteral:o(function(e){n2(e),this.opcode("pushLiteral",e.value)},"NumberLiteral"),BooleanLiteral:o(function(e){n2(e),this.opcode("pushLiteral",e.value)},"BooleanLiteral"),UndefinedLiteral:o(function(){this.opcode("pushLiteral","undefined")},"UndefinedLiteral"),NullLiteral:o(function(){this.opcode("pushLiteral","null")},"NullLiteral"),Hash:o(function(e){var r=e.pairs,n=0,i=void 0;if(!Jd.isArray(r))throw Iu(e,"pairs must be an array");i=r.length;for(var s=0;s=0)return[r,s]}},"blockParamIndex")};function Wpt(t,e,r){if(t==null||typeof t!="string"&&t.type!=="Program")throw new qg.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+t);e=e||{},"data"in e||(e.data=!0),e.compat&&(e.useDepths=!0);var n=r.parse(t,e),i=new r.Compiler().compile(n,e);return new r.JavaScriptCompiler().compile(i,e)}o(Wpt,"precompile");function Jpt(t,e,r){if(e===void 0&&(e={}),t==null||typeof t!="string"&&t.type!=="Program")throw new qg.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+t);e=Jd.extend({},e),"data"in e||(e.data=!0),e.compat&&(e.useDepths=!0);var n=void 0;function i(){var a=r.parse(t,e),c=new r.Compiler().compile(a,e),l=new r.JavaScriptCompiler().compile(c,e,void 0,!0);return r.template(l)}o(i,"compileInput");function s(a,c){return n||(n=i()),n.call(this,a,c)}return o(s,"ret"),s._setup=function(a){return n||(n=i()),n._setup(a)},s._child=function(a,c,l,u){return n||(n=i()),n._child(a,c,l,u)},s}o(Jpt,"compile");function Iu(t,e){return new qg.default("Invalid AST: "+t.type+" "+e,t)}o(Iu,"invalidAst");function S4(t){var e=t.depth;if(e==null)return 0;if(typeof e!="number"||!isFinite(e)||Math.floor(e)!==e||e<0)throw Iu(t,"depth must be a non-negative integer");return e}o(S4,"validateDepth");function n2(t){var e=t.value;if(t.type==="StringLiteral"&&typeof e!="string")throw Iu(t,"value must be a string");if(t.type==="NumberLiteral"&&typeof e!="number")throw Iu(t,"value must be a number");if(t.type==="BooleanLiteral"&&typeof e!="boolean")throw Iu(t,"value must be a boolean")}o(n2,"validateLiteral");function BCe(t,e,r){if(!Jd.isArray(e))throw Iu(t,r+" must be an array");for(var n=0;n{var NCe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");v4.encode=function(t){if(0<=t&&t{var _Ce=RCe(),N4=5,TCe=1<>1;return e?-r:r}o(Xpt,"fromVLQSigned");R4.encode=o(function(e){var r="",n,i=Kpt(e);do n=i&DCe,i>>>=N4,i>0&&(n|=QCe),r+=_Ce.encode(n);while(i>0);return r},"base64VLQ_encode");R4.decode=o(function(e,r,n){var i=e.length,s=0,a=0,c,l;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(l=_Ce.decode(e.charCodeAt(r++)),l===-1)throw new Error("Invalid base64 digit: "+e.charAt(r-1));c=!!(l&QCe),l&=DCe,s=s+(l<{function Zpt(t,e,r){if(e in t)return t[e];if(arguments.length===3)return r;throw new Error('"'+e+'" is a required argument.')}o(Zpt,"getArg");ui.getArg=Zpt;var kCe=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,eAt=/^data:.+\,.+$/;function mw(t){var e=t.match(kCe);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}o(mw,"urlParse");ui.urlParse=mw;function Gg(t){var e="";return t.scheme&&(e+=t.scheme+":"),e+="//",t.auth&&(e+=t.auth+"@"),t.host&&(e+=t.host),t.port&&(e+=":"+t.port),t.path&&(e+=t.path),e}o(Gg,"urlGenerate");ui.urlGenerate=Gg;function T4(t){var e=t,r=mw(t);if(r){if(!r.path)return t;e=r.path}for(var n=ui.isAbsolute(e),i=e.split(/\/+/),s,a=0,c=i.length-1;c>=0;c--)s=i[c],s==="."?i.splice(c,1):s===".."?a++:a>0&&(s===""?(i.splice(c+1,a),a=0):(i.splice(c,2),a--));return e=i.join("/"),e===""&&(e=n?"/":"."),r?(r.path=e,Gg(r)):e}o(T4,"normalize");ui.normalize=T4;function PCe(t,e){t===""&&(t="."),e===""&&(e=".");var r=mw(e),n=mw(t);if(n&&(t=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Gg(r);if(r||e.match(eAt))return e;if(n&&!n.host&&!n.path)return n.host=e,Gg(n);var i=e.charAt(0)==="/"?e:T4(t.replace(/\/+$/,"")+"/"+e);return n?(n.path=i,Gg(n)):i}o(PCe,"join");ui.join=PCe;ui.isAbsolute=function(t){return t.charAt(0)==="/"||kCe.test(t)};function tAt(t,e){t===""&&(t="."),t=t.replace(/\/$/,"");for(var r=0;e.indexOf(t+"/")!==0;){var n=t.lastIndexOf("/");if(n<0||(t=t.slice(0,n),t.match(/^([^\/]+:\/)?\/*$/)))return e;++r}return Array(r+1).join("../")+e.substr(t.length+1)}o(tAt,"relative");ui.relative=tAt;var OCe=(function(){var t=Object.create(null);return!("__proto__"in t)})();function LCe(t){return t}o(LCe,"identity");function rAt(t){return FCe(t)?"$"+t:t}o(rAt,"toSetString");ui.toSetString=OCe?LCe:rAt;function nAt(t){return FCe(t)?t.slice(1):t}o(nAt,"fromSetString");ui.fromSetString=OCe?LCe:nAt;function FCe(t){if(!t)return!1;var e=t.length;if(e<9||t.charCodeAt(e-1)!==95||t.charCodeAt(e-2)!==95||t.charCodeAt(e-3)!==111||t.charCodeAt(e-4)!==116||t.charCodeAt(e-5)!==111||t.charCodeAt(e-6)!==114||t.charCodeAt(e-7)!==112||t.charCodeAt(e-8)!==95||t.charCodeAt(e-9)!==95)return!1;for(var r=e-10;r>=0;r--)if(t.charCodeAt(r)!==36)return!1;return!0}o(FCe,"isProtoString");function iAt(t,e,r){var n=Hg(t.source,e.source);return n!==0||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0||r)||(n=t.generatedColumn-e.generatedColumn,n!==0)||(n=t.generatedLine-e.generatedLine,n!==0)?n:Hg(t.name,e.name)}o(iAt,"compareByOriginalPositions");ui.compareByOriginalPositions=iAt;function sAt(t,e,r){var n=t.generatedLine-e.generatedLine;return n!==0||(n=t.generatedColumn-e.generatedColumn,n!==0||r)||(n=Hg(t.source,e.source),n!==0)||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0)?n:Hg(t.name,e.name)}o(sAt,"compareByGeneratedPositionsDeflated");ui.compareByGeneratedPositionsDeflated=sAt;function Hg(t,e){return t===e?0:t===null?1:e===null?-1:t>e?1:-1}o(Hg,"strcmp");function oAt(t,e){var r=t.generatedLine-e.generatedLine;return r!==0||(r=t.generatedColumn-e.generatedColumn,r!==0)||(r=Hg(t.source,e.source),r!==0)||(r=t.originalLine-e.originalLine,r!==0)||(r=t.originalColumn-e.originalColumn,r!==0)?r:Hg(t.name,e.name)}o(oAt,"compareByGeneratedPositionsInflated");ui.compareByGeneratedPositionsInflated=oAt;function aAt(t){return JSON.parse(t.replace(/^\)]}'[^\n]*\n/,""))}o(aAt,"parseSourceMapInput");ui.parseSourceMapInput=aAt;function cAt(t,e,r){if(e=e||"",t&&(t[t.length-1]!=="/"&&e[0]!=="/"&&(t+="/"),e=t+e),r){var n=mw(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var i=n.path.lastIndexOf("/");i>=0&&(n.path=n.path.substring(0,i+1))}e=PCe(Gg(n),e)}return T4(e)}o(cAt,"computeSourceURL");ui.computeSourceURL=cAt});var k4=g(MCe=>{var D4=zg(),Q4=Object.prototype.hasOwnProperty,Ap=typeof Map<"u";function Su(){this._array=[],this._set=Ap?new Map:Object.create(null)}o(Su,"ArraySet");Su.fromArray=o(function(e,r){for(var n=new Su,i=0,s=e.length;i=0)return r}else{var n=D4.toSetString(e);if(Q4.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},"ArraySet_indexOf");Su.prototype.at=o(function(e){if(e>=0&&e{var UCe=zg();function lAt(t,e){var r=t.generatedLine,n=e.generatedLine,i=t.generatedColumn,s=e.generatedColumn;return n>r||n==r&&s>=i||UCe.compareByGeneratedPositionsInflated(t,e)<=0}o(lAt,"generatedPositionAfter");function i2(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o(i2,"MappingList");i2.prototype.unsortedForEach=o(function(e,r){this._array.forEach(e,r)},"MappingList_forEach");i2.prototype.add=o(function(e){lAt(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},"MappingList_add");i2.prototype.toArray=o(function(){return this._sorted||(this._array.sort(UCe.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");qCe.MappingList=i2});var P4=g(HCe=>{var gw=_4(),rn=zg(),s2=k4().ArraySet,uAt=GCe().MappingList;function $o(t){t||(t={}),this._file=rn.getArg(t,"file",null),this._sourceRoot=rn.getArg(t,"sourceRoot",null),this._skipValidation=rn.getArg(t,"skipValidation",!1),this._sources=new s2,this._names=new s2,this._mappings=new uAt,this._sourcesContents=null}o($o,"SourceMapGenerator");$o.prototype._version=3;$o.fromSourceMap=o(function(e){var r=e.sourceRoot,n=new $o({file:e.file,sourceRoot:r});return e.eachMapping(function(i){var s={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(s.source=i.source,r!=null&&(s.source=rn.relative(r,s.source)),s.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(s.name=i.name)),n.addMapping(s)}),e.sources.forEach(function(i){var s=i;r!==null&&(s=rn.relative(r,i)),n._sources.has(s)||n._sources.add(s);var a=e.sourceContentFor(i);a!=null&&n.setSourceContent(i,a)}),n},"SourceMapGenerator_fromSourceMap");$o.prototype.addMapping=o(function(e){var r=rn.getArg(e,"generated"),n=rn.getArg(e,"original",null),i=rn.getArg(e,"source",null),s=rn.getArg(e,"name",null);this._skipValidation||this._validateMapping(r,n,i,s),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:s})},"SourceMapGenerator_addMapping");$o.prototype.setSourceContent=o(function(e,r){var n=e;this._sourceRoot!=null&&(n=rn.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[rn.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[rn.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");$o.prototype.applySourceMap=o(function(e,r,n){var i=r;if(r==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=e.file}var s=this._sourceRoot;s!=null&&(i=rn.relative(s,i));var a=new s2,c=new s2;this._mappings.unsortedForEach(function(l){if(l.source===i&&l.originalLine!=null){var u=e.originalPositionFor({line:l.originalLine,column:l.originalColumn});u.source!=null&&(l.source=u.source,n!=null&&(l.source=rn.join(n,l.source)),s!=null&&(l.source=rn.relative(s,l.source)),l.originalLine=u.line,l.originalColumn=u.column,u.name!=null&&(l.name=u.name))}var d=l.source;d!=null&&!a.has(d)&&a.add(d);var f=l.name;f!=null&&!c.has(f)&&c.add(f)},this),this._sources=a,this._names=c,e.sources.forEach(function(l){var u=e.sourceContentFor(l);u!=null&&(n!=null&&(l=rn.join(n,l)),s!=null&&(l=rn.relative(s,l)),this.setSourceContent(l,u))},this)},"SourceMapGenerator_applySourceMap");$o.prototype._validateMapping=o(function(e,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!r&&!n&&!i)){if(e&&"line"in e&&"column"in e&&r&&"line"in r&&"column"in r&&e.line>0&&e.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:r,name:i}))}},"SourceMapGenerator_validateMapping");$o.prototype._serializeMappings=o(function(){for(var e=0,r=1,n=0,i=0,s=0,a=0,c="",l,u,d,f,h=this._mappings.toArray(),p=0,m=h.length;p0){if(!rn.compareByGeneratedPositionsInflated(u,h[p-1]))continue;l+=","}l+=gw.encode(u.generatedColumn-e),e=u.generatedColumn,u.source!=null&&(f=this._sources.indexOf(u.source),l+=gw.encode(f-a),a=f,l+=gw.encode(u.originalLine-1-i),i=u.originalLine-1,l+=gw.encode(u.originalColumn-n),n=u.originalColumn,u.name!=null&&(d=this._names.indexOf(u.name),l+=gw.encode(d-s),s=d)),c+=l}return c},"SourceMapGenerator_serializeMappings");$o.prototype._generateSourcesContent=o(function(e,r){return e.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=rn.relative(r,n));var i=rn.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");$o.prototype.toJSON=o(function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},"SourceMapGenerator_toJSON");$o.prototype.toString=o(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");HCe.SourceMapGenerator=$o});var zCe=g(mp=>{mp.GREATEST_LOWER_BOUND=1;mp.LEAST_UPPER_BOUND=2;function O4(t,e,r,n,i,s){var a=Math.floor((e-t)/2)+t,c=i(r,n[a],!0);return c===0?a:c>0?e-a>1?O4(a,e,r,n,i,s):s==mp.LEAST_UPPER_BOUND?e1?O4(t,a,r,n,i,s):s==mp.LEAST_UPPER_BOUND?a:t<0?-1:t}o(O4,"recursiveSearch");mp.search=o(function(e,r,n,i){if(r.length===0)return-1;var s=O4(-1,r.length,e,r,n,i||mp.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(r[s],r[s-1],!0)===0;)--s;return s},"search")});var $Ce=g(VCe=>{function L4(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}o(L4,"swap");function dAt(t,e){return Math.round(t+Math.random()*(e-t))}o(dAt,"randomIntInRange");function F4(t,e,r,n){if(r{var ge=zg(),M4=zCe(),Vg=k4().ArraySet,fAt=_4(),yw=$Ce().quickSort;function er(t,e){var r=t;return typeof t=="string"&&(r=ge.parseSourceMapInput(t)),r.sections!=null?new qa(r,e):new Wn(r,e)}o(er,"SourceMapConsumer");er.fromSourceMap=function(t,e){return Wn.fromSourceMap(t,e)};er.prototype._version=3;er.prototype.__generatedMappings=null;Object.defineProperty(er.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});er.prototype.__originalMappings=null;Object.defineProperty(er.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});er.prototype._charIsMappingSeparator=o(function(e,r){var n=e.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");er.prototype._parseMappings=o(function(e,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");er.GENERATED_ORDER=1;er.ORIGINAL_ORDER=2;er.GREATEST_LOWER_BOUND=1;er.LEAST_UPPER_BOUND=2;er.prototype.eachMapping=o(function(e,r,n){var i=r||null,s=n||er.GENERATED_ORDER,a;switch(s){case er.GENERATED_ORDER:a=this._generatedMappings;break;case er.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var c=this.sourceRoot;a.map(function(l){var u=l.source===null?null:this._sources.at(l.source);return u=ge.computeSourceURL(c,u,this._sourceMapURL),{source:u,generatedLine:l.generatedLine,generatedColumn:l.generatedColumn,originalLine:l.originalLine,originalColumn:l.originalColumn,name:l.name===null?null:this._names.at(l.name)}},this).forEach(e,i)},"SourceMapConsumer_eachMapping");er.prototype.allGeneratedPositionsFor=o(function(e){var r=ge.getArg(e,"line"),n={source:ge.getArg(e,"source"),originalLine:r,originalColumn:ge.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",ge.compareByOriginalPositions,M4.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(e.column===void 0)for(var c=a.originalLine;a&&a.originalLine===c;)i.push({line:ge.getArg(a,"generatedLine",null),column:ge.getArg(a,"generatedColumn",null),lastColumn:ge.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var l=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==l;)i.push({line:ge.getArg(a,"generatedLine",null),column:ge.getArg(a,"generatedColumn",null),lastColumn:ge.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return i},"SourceMapConsumer_allGeneratedPositionsFor");o2.SourceMapConsumer=er;function Wn(t,e){var r=t;typeof t=="string"&&(r=ge.parseSourceMapInput(t));var n=ge.getArg(r,"version"),i=ge.getArg(r,"sources"),s=ge.getArg(r,"names",[]),a=ge.getArg(r,"sourceRoot",null),c=ge.getArg(r,"sourcesContent",null),l=ge.getArg(r,"mappings"),u=ge.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=ge.normalize(a)),i=i.map(String).map(ge.normalize).map(function(d){return a&&ge.isAbsolute(a)&&ge.isAbsolute(d)?ge.relative(a,d):d}),this._names=Vg.fromArray(s.map(String),!0),this._sources=Vg.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(d){return ge.computeSourceURL(a,d,e)}),this.sourceRoot=a,this.sourcesContent=c,this._mappings=l,this._sourceMapURL=e,this.file=u}o(Wn,"BasicSourceMapConsumer");Wn.prototype=Object.create(er.prototype);Wn.prototype.consumer=er;Wn.prototype._findSourceIndex=function(t){var e=t;if(this.sourceRoot!=null&&(e=ge.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var r;for(r=0;r1&&(A.source=c+y[1],c+=y[1],A.originalLine=s+y[2],s=A.originalLine,A.originalLine+=1,A.originalColumn=a+y[3],a=A.originalColumn,y.length>4&&(A.name=l+y[4],l+=y[4])),m.push(A),typeof A.originalLine=="number"&&p.push(A)}yw(m,ge.compareByGeneratedPositionsDeflated),this.__generatedMappings=m,yw(p,ge.compareByOriginalPositions),this.__originalMappings=p},"SourceMapConsumer_parseMappings");Wn.prototype._findMapping=o(function(e,r,n,i,s,a){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[i]);return M4.search(e,r,s,a)},"SourceMapConsumer_findMapping");Wn.prototype.computeColumnSpans=o(function(){for(var e=0;e=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=ge.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=ge.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var a=ge.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:s,line:ge.getArg(i,"originalLine",null),column:ge.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},"SourceMapConsumer_originalPositionFor");Wn.prototype.hasContentsOfAllSources=o(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");Wn.prototype.sourceContentFor=o(function(e,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var i=e;this.sourceRoot!=null&&(i=ge.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=ge.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')},"SourceMapConsumer_sourceContentFor");Wn.prototype.generatedPositionFor=o(function(e){var r=ge.getArg(e,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:ge.getArg(e,"line"),originalColumn:ge.getArg(e,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",ge.compareByOriginalPositions,ge.getArg(e,"bias",er.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:ge.getArg(s,"generatedLine",null),column:ge.getArg(s,"generatedColumn",null),lastColumn:ge.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");o2.BasicSourceMapConsumer=Wn;function qa(t,e){var r=t;typeof t=="string"&&(r=ge.parseSourceMapInput(t));var n=ge.getArg(r,"version"),i=ge.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Vg,this._names=new Vg;var s={line:-1,column:0};this._sections=i.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var c=ge.getArg(a,"offset"),l=ge.getArg(c,"line"),u=ge.getArg(c,"column");if(l{var hAt=P4().SourceMapGenerator,a2=zg(),pAt=/(\r?\n)/,AAt=10,$g="$$$isSourceNode$$$";function Zs(t,e,r,n,i){this.children=[],this.sourceContents={},this.line=t??null,this.column=e??null,this.source=r??null,this.name=i??null,this[$g]=!0,n!=null&&this.add(n)}o(Zs,"SourceNode");Zs.fromStringWithSourceMap=o(function(e,r,n){var i=new Zs,s=e.split(pAt),a=0,c=o(function(){var h=m(),p=m()||"";return h+p;function m(){return a=0;r--)this.prepend(e[r]);else if(e[$g]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this},"SourceNode_prepend");Zs.prototype.walk=o(function(e){for(var r,n=0,i=this.children.length;n0){for(r=[],n=0;n{c2.SourceMapGenerator=P4().SourceMapGenerator;c2.SourceMapConsumer=WCe().SourceMapConsumer;c2.SourceNode=YCe().SourceNode});var tbe=g(l2=>{"use strict";l2.__esModule=!0;l2.safeJsonLiteral=ZCe;var q4=li(),mAt=/[\x00-\x1f\\"\u2028\u2029<\ud800-\udfff]/,gAt=/<(?=!--|\/?script)/gi;function yAt(t){return t.replace(gAt,"\\u003C")}o(yAt,"escapeScriptDelimiters");function EAt(t){return"\\u"+t.charCodeAt(0).toString(16)}o(EAt,"escapeSurrogate");function ZCe(t){return yAt(JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/[\ud800-\udfff]/g,EAt))}o(ZCe,"safeJsonLiteral");var gp=void 0;try{(typeof define!="function"||!define.amd)&&(XCe=KCe(),gp=XCe.SourceNode)}catch{}var XCe;gp||(gp=o(function(t,e,r,n){this.src="",n&&this.add(n)},"SourceNode"),gp.prototype={add:o(function(e){q4.isArray(e)&&(e=e.join("")),this.src+=e},"add"),prepend:o(function(e){q4.isArray(e)&&(e=e.join("")),this.src=e+this.src},"prepend"),toStringWithSourceMap:o(function(){return{code:this.toString()}},"toStringWithSourceMap"),toString:o(function(){return this.src},"toString")});function U4(t,e,r){if(q4.isArray(t)){for(var n=[],i=0,s=t.length;i{"use strict";u2.__esModule=!0;function ibe(t){return t&&t.__esModule?t:{default:t}}o(ibe,"_interopRequireDefault");var rbe=HT(),CAt=zo(),G4=ibe(CAt),bAt=li(),sbe=tbe(),nbe=ibe(sbe);function jg(t){this.value=t}o(jg,"Literal");function Wg(){}o(Wg,"JavaScriptCompiler");Wg.prototype={nameLookup:o(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:o(function(e){return[this.aliasable("container.lookup"),"(depths, ",this.quotedString(e),")"]},"depthedLookup"),compilerInfo:o(function(){var e=rbe.COMPILER_REVISION,r=rbe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,n){return bAt.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",this.quotedString(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(e,r,n,i){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!i,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var s=e.opcodes,a=void 0,c=void 0,l=void 0,u=void 0;for(l=0,u=s.length;l@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n})();t.lexer=e;function r(){this.yy={}}return o(r,"Parser"),r.prototype=t,t.Parser=r,new r})();KT.default=ypt;fCe.exports=KT.default});var y4=g(g4=>{"use strict";g4.__esModule=!0;var Ept=["Program","BlockStatement","DecoratorBlock","PartialStatement","PartialBlockStatement","Decorator","MustacheStatement","ContentStatement","CommentStatement","SubExpression","PathExpression","StringLiteral","NumberLiteral","BooleanLiteral","UndefinedLiteral","NullLiteral","Hash","HashPair"];g4.NODE_TYPES=Ept});var t2=g((e2,gCe)=>{"use strict";e2.__esModule=!0;function Cpt(t){return t&&t.__esModule?t:{default:t}}o(Cpt,"_interopRequireDefault");var bpt=zo(),E4=Cpt(bpt),wpt=li(),Ipt=y4();function ZT(){this.parents=[]}o(ZT,"Visitor");function pCe(t,e){return wpt.indexOf(Ipt.NODE_TYPES,e)!==-1||!(e in ZT.prototype)&&typeof t[e]=="function"}o(pCe,"isDispatchable");ZT.prototype={constructor:ZT,mutating:!1,acceptKey:o(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!pCe(this,n.type))throw new E4.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},"acceptKey"),acceptRequired:o(function(e,r){if(this.acceptKey(e,r),!e[r])throw new E4.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(e){for(var r=0,n=e.length;r{"use strict";r2.__esModule=!0;function Spt(t){return t&&t.__esModule?t:{default:t}}o(Spt,"_interopRequireDefault");var Bpt=t2(),xpt=Spt(Bpt);function rl(){var t=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=t}o(rl,"WhitespaceControl");rl.prototype=new xpt.default;rl.prototype.Program=function(t){var e=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=t.body,i=0,s=n.length;i{"use strict";Vo.__esModule=!0;Vo.SourceLocation=_pt;Vo.id=Rpt;Vo.stripFlags=Tpt;Vo.stripComment=Dpt;Vo.preparePath=Qpt;Vo.prepareMustache=kpt;Vo.prepareRawBlock=Ppt;Vo.prepareBlock=Opt;Vo.prepareProgram=Lpt;Vo.preparePartialBlock=Fpt;function vpt(t){return t&&t.__esModule?t:{default:t}}o(vpt,"_interopRequireDefault");var Npt=zo(),w4=vpt(Npt);function I4(t,e){if(e=e.path?e.path.original:e,t.path.original!==e){var r={loc:t.path.loc};throw new w4.default(t.path.original+" doesn't match "+e,r)}}o(I4,"validateClose");function _pt(t,e){this.source=t,this.start={line:e.first_line,column:e.first_column},this.end={line:e.last_line,column:e.last_column}}o(_pt,"SourceLocation");function Rpt(t){return/^\[.*\]$/.test(t)?t.substring(1,t.length-1):t}o(Rpt,"id");function Tpt(t,e){return{open:t.charAt(2)==="~",close:e.charAt(e.length-3)==="~"}}o(Tpt,"stripFlags");function Dpt(t){return t.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}o(Dpt,"stripComment");function Qpt(t,e,r){r=this.locInfo(r);for(var n=t?"@":"",i=[],s=0,a=0,c=e.length;a0)throw new w4.default("Invalid path: "+n,{loc:r});l===".."&&s++}else i.push(l)}return{type:"PathExpression",data:t,depth:s,parts:i,original:n,loc:r}}o(Qpt,"preparePath");function kpt(t,e,r,n,i,s){var a=n.charAt(3)||n.charAt(2),c=a!=="{"&&a!=="&",l=/\*/.test(n);return{type:l?"Decorator":"MustacheStatement",path:t,params:e,hash:r,escaped:c,strip:i,loc:this.locInfo(s)}}o(kpt,"prepareMustache");function Ppt(t,e,r,n){I4(t,r),n=this.locInfo(n);var i={type:"Program",body:e,strip:{},loc:n};return{type:"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}o(Ppt,"prepareRawBlock");function Opt(t,e,r,n,i,s){n&&n.path&&I4(t,n);var a=/\*/.test(t.open);e.blockParams=t.blockParams;var c=void 0,l=void 0;if(r){if(a)throw new w4.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),l=r.strip,c=r.program}return i&&(i=c,c=e,e=i),{type:a?"DecoratorBlock":"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:e,inverse:c,openStrip:t.strip,inverseStrip:l,closeStrip:n&&n.strip,loc:this.locInfo(s)}}o(Opt,"prepareBlock");function Lpt(t,e){if(!e&&t.length){var r=t[0].loc,n=t[t.length-1].loc;r&&n&&(e={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:t,strip:{},loc:e}}o(Lpt,"prepareProgram");function Fpt(t,e,r,n){return I4(t,r),{type:"PartialBlockStatement",name:t.path,params:t.params,hash:t.hash,program:e,openStrip:t.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}o(Fpt,"preparePartialBlock")});var ICe=g(pw=>{"use strict";pw.__esModule=!0;pw.parseWithoutProcessing=wCe;pw.parse=$pt;function Mpt(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(Mpt,"_interopRequireWildcard");function bCe(t){return t&&t.__esModule?t:{default:t}}o(bCe,"_interopRequireDefault");var Upt=hCe(),S4=bCe(Upt),qpt=ECe(),Gpt=bCe(qpt),Hpt=CCe(),zpt=Mpt(Hpt),Vpt=li();pw.parser=S4.default;var n2={};Vpt.extend(n2,zpt);function wCe(t,e){if(t.type==="Program")return t;S4.default.yy=n2,n2.locInfo=function(n){return new n2.SourceLocation(e&&e.srcName,n)};var r=S4.default.parse(t);return r}o(wCe,"parseWithoutProcessing");function $pt(t,e){var r=wCe(t,e),n=new Gpt.default(e);return n.accept(r)}o($pt,"parse")});var NCe=g(mw=>{"use strict";mw.__esModule=!0;mw.Compiler=v4;mw.precompile=Kpt;mw.compile=Xpt;function BCe(t){return t&&t.__esModule?t:{default:t}}o(BCe,"_interopRequireDefault");var jpt=zo(),Gg=BCe(jpt),Yd=li(),Wpt=m4(),Aw=BCe(Wpt),Jpt=y4(),Ypt=[].slice;function v4(){}o(v4,"Compiler");v4.prototype={compiler:v4,equals:o(function(e){var r=this.opcodes.length;if(e.opcodes.length!==r)return!1;for(var n=0;n1)throw new Gg.default("Unsupported number of partial arguments: "+n.length,e);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var i=e.name.original,s=e.name.type==="SubExpression";s&&this.accept(e.name),this.setupFullMustacheParams(e,r,void 0,!0);var a=e.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",s,i,a),this.opcode("append")},"PartialStatement"),PartialBlockStatement:o(function(e){this.PartialStatement(e)},"PartialBlockStatement"),MustacheStatement:o(function(e){this.SubExpression(e),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},"MustacheStatement"),Decorator:o(function(e){this.DecoratorBlock(e)},"Decorator"),ContentStatement:o(function(e){if(e.value!=null&&typeof e.value!="string")throw Su(e,"value must be a string");e.value&&this.opcode("appendContent",e.value)},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:o(function(e){SCe(e);var r=this.classifySexpr(e);r==="simple"?this.simpleSexpr(e):r==="helper"?this.helperSexpr(e):this.ambiguousSexpr(e)},"SubExpression"),ambiguousSexpr:o(function(e,r,n){var i=e.path,s=i.parts[0],a=r!=null||n!=null;this.opcode("getContext",B4(i)),this.opcode("pushProgram",r),this.opcode("pushProgram",n),i.strict=!0,this.accept(i),this.opcode("invokeAmbiguous",s,a)},"ambiguousSexpr"),simpleSexpr:o(function(e){var r=e.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},"simpleSexpr"),helperSexpr:o(function(e,r,n){var i=this.setupFullMustacheParams(e,r,n),s=e.path,a=s.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",i.length,a);else{if(this.options.knownHelpersOnly)throw new Gg.default("You specified knownHelpersOnly, but used the unknown helper "+a,e);s.strict=!0,s.falsy=!0,this.accept(s),this.opcode("invokeHelper",i.length,s.original,Aw.default.helpers.simpleId(s))}},"helperSexpr"),PathExpression:o(function(e){var r=B4(e),n=x4(e);this.addDepth(r),this.opcode("getContext",r);var i=n[0],s=Aw.default.helpers.scopedId(e),a=!r&&!s&&this.blockParamIndex(i);a?this.opcode("lookupBlockParam",a,n):i?e.data?(this.options.data=!0,this.opcode("lookupData",r,n,e.strict)):this.opcode("lookupOnContext",n,e.falsy,e.strict,s):this.opcode("pushContext")},"PathExpression"),StringLiteral:o(function(e){i2(e),this.opcode("pushString",e.value)},"StringLiteral"),NumberLiteral:o(function(e){i2(e),this.opcode("pushLiteral",e.value)},"NumberLiteral"),BooleanLiteral:o(function(e){i2(e),this.opcode("pushLiteral",e.value)},"BooleanLiteral"),UndefinedLiteral:o(function(){this.opcode("pushLiteral","undefined")},"UndefinedLiteral"),NullLiteral:o(function(){this.opcode("pushLiteral","null")},"NullLiteral"),Hash:o(function(e){var r=e.pairs,n=0,i=void 0;if(!Yd.isArray(r))throw Su(e,"pairs must be an array");i=r.length;for(var s=0;s=0)return[r,s]}},"blockParamIndex")};function Kpt(t,e,r){if(t==null||typeof t!="string"&&t.type!=="Program")throw new Gg.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+t);e=e||{},"data"in e||(e.data=!0),e.compat&&(e.useDepths=!0);var n=r.parse(t,e),i=new r.Compiler().compile(n,e);return new r.JavaScriptCompiler().compile(i,e)}o(Kpt,"precompile");function Xpt(t,e,r){if(e===void 0&&(e={}),t==null||typeof t!="string"&&t.type!=="Program")throw new Gg.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+t);e=Yd.extend({},e),"data"in e||(e.data=!0),e.compat&&(e.useDepths=!0);var n=void 0;function i(){var a=r.parse(t,e),c=new r.Compiler().compile(a,e),l=new r.JavaScriptCompiler().compile(c,e,void 0,!0);return r.template(l)}o(i,"compileInput");function s(a,c){return n||(n=i()),n.call(this,a,c)}return o(s,"ret"),s._setup=function(a){return n||(n=i()),n._setup(a)},s._child=function(a,c,l,u){return n||(n=i()),n._child(a,c,l,u)},s}o(Xpt,"compile");function Su(t,e){return new Gg.default("Invalid AST: "+t.type+" "+e,t)}o(Su,"invalidAst");function B4(t){var e=t.depth;if(e==null)return 0;if(typeof e!="number"||!isFinite(e)||Math.floor(e)!==e||e<0)throw Su(t,"depth must be a non-negative integer");return e}o(B4,"validateDepth");function i2(t){var e=t.value;if(t.type==="StringLiteral"&&typeof e!="string")throw Su(t,"value must be a string");if(t.type==="NumberLiteral"&&typeof e!="number")throw Su(t,"value must be a number");if(t.type==="BooleanLiteral"&&typeof e!="boolean")throw Su(t,"value must be a boolean")}o(i2,"validateLiteral");function xCe(t,e,r){if(!Yd.isArray(e))throw Su(t,r+" must be an array");for(var n=0;n{var _Ce="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");N4.encode=function(t){if(0<=t&&t<_Ce.length)return _Ce[t];throw new TypeError("Must be between 0 and 63: "+t)};N4.decode=function(t){var e=65,r=90,n=97,i=122,s=48,a=57,c=43,l=47,u=26,d=52;return e<=t&&t<=r?t-e:n<=t&&t<=i?t-n+u:s<=t&&t<=a?t-s+d:t==c?62:t==l?63:-1}});var T4=g(R4=>{var TCe=RCe(),_4=5,DCe=1<<_4,QCe=DCe-1,kCe=DCe;function eAt(t){return t<0?(-t<<1)+1:(t<<1)+0}o(eAt,"toVLQSigned");function tAt(t){var e=(t&1)===1,r=t>>1;return e?-r:r}o(tAt,"fromVLQSigned");R4.encode=o(function(e){var r="",n,i=eAt(e);do n=i&QCe,i>>>=_4,i>0&&(n|=kCe),r+=TCe.encode(n);while(i>0);return r},"base64VLQ_encode");R4.decode=o(function(e,r,n){var i=e.length,s=0,a=0,c,l;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(l=TCe.decode(e.charCodeAt(r++)),l===-1)throw new Error("Invalid base64 digit: "+e.charAt(r-1));c=!!(l&kCe),l&=QCe,s=s+(l<{function rAt(t,e,r){if(e in t)return t[e];if(arguments.length===3)return r;throw new Error('"'+e+'" is a required argument.')}o(rAt,"getArg");ui.getArg=rAt;var PCe=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,nAt=/^data:.+\,.+$/;function gw(t){var e=t.match(PCe);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}o(gw,"urlParse");ui.urlParse=gw;function Hg(t){var e="";return t.scheme&&(e+=t.scheme+":"),e+="//",t.auth&&(e+=t.auth+"@"),t.host&&(e+=t.host),t.port&&(e+=":"+t.port),t.path&&(e+=t.path),e}o(Hg,"urlGenerate");ui.urlGenerate=Hg;function D4(t){var e=t,r=gw(t);if(r){if(!r.path)return t;e=r.path}for(var n=ui.isAbsolute(e),i=e.split(/\/+/),s,a=0,c=i.length-1;c>=0;c--)s=i[c],s==="."?i.splice(c,1):s===".."?a++:a>0&&(s===""?(i.splice(c+1,a),a=0):(i.splice(c,2),a--));return e=i.join("/"),e===""&&(e=n?"/":"."),r?(r.path=e,Hg(r)):e}o(D4,"normalize");ui.normalize=D4;function OCe(t,e){t===""&&(t="."),e===""&&(e=".");var r=gw(e),n=gw(t);if(n&&(t=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Hg(r);if(r||e.match(nAt))return e;if(n&&!n.host&&!n.path)return n.host=e,Hg(n);var i=e.charAt(0)==="/"?e:D4(t.replace(/\/+$/,"")+"/"+e);return n?(n.path=i,Hg(n)):i}o(OCe,"join");ui.join=OCe;ui.isAbsolute=function(t){return t.charAt(0)==="/"||PCe.test(t)};function iAt(t,e){t===""&&(t="."),t=t.replace(/\/$/,"");for(var r=0;e.indexOf(t+"/")!==0;){var n=t.lastIndexOf("/");if(n<0||(t=t.slice(0,n),t.match(/^([^\/]+:\/)?\/*$/)))return e;++r}return Array(r+1).join("../")+e.substr(t.length+1)}o(iAt,"relative");ui.relative=iAt;var LCe=(function(){var t=Object.create(null);return!("__proto__"in t)})();function FCe(t){return t}o(FCe,"identity");function sAt(t){return MCe(t)?"$"+t:t}o(sAt,"toSetString");ui.toSetString=LCe?FCe:sAt;function oAt(t){return MCe(t)?t.slice(1):t}o(oAt,"fromSetString");ui.fromSetString=LCe?FCe:oAt;function MCe(t){if(!t)return!1;var e=t.length;if(e<9||t.charCodeAt(e-1)!==95||t.charCodeAt(e-2)!==95||t.charCodeAt(e-3)!==111||t.charCodeAt(e-4)!==116||t.charCodeAt(e-5)!==111||t.charCodeAt(e-6)!==114||t.charCodeAt(e-7)!==112||t.charCodeAt(e-8)!==95||t.charCodeAt(e-9)!==95)return!1;for(var r=e-10;r>=0;r--)if(t.charCodeAt(r)!==36)return!1;return!0}o(MCe,"isProtoString");function aAt(t,e,r){var n=zg(t.source,e.source);return n!==0||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0||r)||(n=t.generatedColumn-e.generatedColumn,n!==0)||(n=t.generatedLine-e.generatedLine,n!==0)?n:zg(t.name,e.name)}o(aAt,"compareByOriginalPositions");ui.compareByOriginalPositions=aAt;function cAt(t,e,r){var n=t.generatedLine-e.generatedLine;return n!==0||(n=t.generatedColumn-e.generatedColumn,n!==0||r)||(n=zg(t.source,e.source),n!==0)||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0)?n:zg(t.name,e.name)}o(cAt,"compareByGeneratedPositionsDeflated");ui.compareByGeneratedPositionsDeflated=cAt;function zg(t,e){return t===e?0:t===null?1:e===null?-1:t>e?1:-1}o(zg,"strcmp");function lAt(t,e){var r=t.generatedLine-e.generatedLine;return r!==0||(r=t.generatedColumn-e.generatedColumn,r!==0)||(r=zg(t.source,e.source),r!==0)||(r=t.originalLine-e.originalLine,r!==0)||(r=t.originalColumn-e.originalColumn,r!==0)?r:zg(t.name,e.name)}o(lAt,"compareByGeneratedPositionsInflated");ui.compareByGeneratedPositionsInflated=lAt;function uAt(t){return JSON.parse(t.replace(/^\)]}'[^\n]*\n/,""))}o(uAt,"parseSourceMapInput");ui.parseSourceMapInput=uAt;function dAt(t,e,r){if(e=e||"",t&&(t[t.length-1]!=="/"&&e[0]!=="/"&&(t+="/"),e=t+e),r){var n=gw(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var i=n.path.lastIndexOf("/");i>=0&&(n.path=n.path.substring(0,i+1))}e=OCe(Hg(n),e)}return D4(e)}o(dAt,"computeSourceURL");ui.computeSourceURL=dAt});var P4=g(UCe=>{var Q4=Vg(),k4=Object.prototype.hasOwnProperty,mp=typeof Map<"u";function Bu(){this._array=[],this._set=mp?new Map:Object.create(null)}o(Bu,"ArraySet");Bu.fromArray=o(function(e,r){for(var n=new Bu,i=0,s=e.length;i=0)return r}else{var n=Q4.toSetString(e);if(k4.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},"ArraySet_indexOf");Bu.prototype.at=o(function(e){if(e>=0&&e{var qCe=Vg();function fAt(t,e){var r=t.generatedLine,n=e.generatedLine,i=t.generatedColumn,s=e.generatedColumn;return n>r||n==r&&s>=i||qCe.compareByGeneratedPositionsInflated(t,e)<=0}o(fAt,"generatedPositionAfter");function s2(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o(s2,"MappingList");s2.prototype.unsortedForEach=o(function(e,r){this._array.forEach(e,r)},"MappingList_forEach");s2.prototype.add=o(function(e){fAt(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},"MappingList_add");s2.prototype.toArray=o(function(){return this._sorted||(this._array.sort(qCe.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");GCe.MappingList=s2});var O4=g(zCe=>{var yw=T4(),rn=Vg(),o2=P4().ArraySet,hAt=HCe().MappingList;function $o(t){t||(t={}),this._file=rn.getArg(t,"file",null),this._sourceRoot=rn.getArg(t,"sourceRoot",null),this._skipValidation=rn.getArg(t,"skipValidation",!1),this._sources=new o2,this._names=new o2,this._mappings=new hAt,this._sourcesContents=null}o($o,"SourceMapGenerator");$o.prototype._version=3;$o.fromSourceMap=o(function(e){var r=e.sourceRoot,n=new $o({file:e.file,sourceRoot:r});return e.eachMapping(function(i){var s={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(s.source=i.source,r!=null&&(s.source=rn.relative(r,s.source)),s.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(s.name=i.name)),n.addMapping(s)}),e.sources.forEach(function(i){var s=i;r!==null&&(s=rn.relative(r,i)),n._sources.has(s)||n._sources.add(s);var a=e.sourceContentFor(i);a!=null&&n.setSourceContent(i,a)}),n},"SourceMapGenerator_fromSourceMap");$o.prototype.addMapping=o(function(e){var r=rn.getArg(e,"generated"),n=rn.getArg(e,"original",null),i=rn.getArg(e,"source",null),s=rn.getArg(e,"name",null);this._skipValidation||this._validateMapping(r,n,i,s),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:s})},"SourceMapGenerator_addMapping");$o.prototype.setSourceContent=o(function(e,r){var n=e;this._sourceRoot!=null&&(n=rn.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[rn.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[rn.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");$o.prototype.applySourceMap=o(function(e,r,n){var i=r;if(r==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=e.file}var s=this._sourceRoot;s!=null&&(i=rn.relative(s,i));var a=new o2,c=new o2;this._mappings.unsortedForEach(function(l){if(l.source===i&&l.originalLine!=null){var u=e.originalPositionFor({line:l.originalLine,column:l.originalColumn});u.source!=null&&(l.source=u.source,n!=null&&(l.source=rn.join(n,l.source)),s!=null&&(l.source=rn.relative(s,l.source)),l.originalLine=u.line,l.originalColumn=u.column,u.name!=null&&(l.name=u.name))}var d=l.source;d!=null&&!a.has(d)&&a.add(d);var f=l.name;f!=null&&!c.has(f)&&c.add(f)},this),this._sources=a,this._names=c,e.sources.forEach(function(l){var u=e.sourceContentFor(l);u!=null&&(n!=null&&(l=rn.join(n,l)),s!=null&&(l=rn.relative(s,l)),this.setSourceContent(l,u))},this)},"SourceMapGenerator_applySourceMap");$o.prototype._validateMapping=o(function(e,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!r&&!n&&!i)){if(e&&"line"in e&&"column"in e&&r&&"line"in r&&"column"in r&&e.line>0&&e.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:r,name:i}))}},"SourceMapGenerator_validateMapping");$o.prototype._serializeMappings=o(function(){for(var e=0,r=1,n=0,i=0,s=0,a=0,c="",l,u,d,f,h=this._mappings.toArray(),p=0,m=h.length;p0){if(!rn.compareByGeneratedPositionsInflated(u,h[p-1]))continue;l+=","}l+=yw.encode(u.generatedColumn-e),e=u.generatedColumn,u.source!=null&&(f=this._sources.indexOf(u.source),l+=yw.encode(f-a),a=f,l+=yw.encode(u.originalLine-1-i),i=u.originalLine-1,l+=yw.encode(u.originalColumn-n),n=u.originalColumn,u.name!=null&&(d=this._names.indexOf(u.name),l+=yw.encode(d-s),s=d)),c+=l}return c},"SourceMapGenerator_serializeMappings");$o.prototype._generateSourcesContent=o(function(e,r){return e.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=rn.relative(r,n));var i=rn.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");$o.prototype.toJSON=o(function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},"SourceMapGenerator_toJSON");$o.prototype.toString=o(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");zCe.SourceMapGenerator=$o});var VCe=g(gp=>{gp.GREATEST_LOWER_BOUND=1;gp.LEAST_UPPER_BOUND=2;function L4(t,e,r,n,i,s){var a=Math.floor((e-t)/2)+t,c=i(r,n[a],!0);return c===0?a:c>0?e-a>1?L4(a,e,r,n,i,s):s==gp.LEAST_UPPER_BOUND?e1?L4(t,a,r,n,i,s):s==gp.LEAST_UPPER_BOUND?a:t<0?-1:t}o(L4,"recursiveSearch");gp.search=o(function(e,r,n,i){if(r.length===0)return-1;var s=L4(-1,r.length,e,r,n,i||gp.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(r[s],r[s-1],!0)===0;)--s;return s},"search")});var jCe=g($Ce=>{function F4(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}o(F4,"swap");function pAt(t,e){return Math.round(t+Math.random()*(e-t))}o(pAt,"randomIntInRange");function M4(t,e,r,n){if(r{var ge=Vg(),U4=VCe(),$g=P4().ArraySet,AAt=T4(),Ew=jCe().quickSort;function er(t,e){var r=t;return typeof t=="string"&&(r=ge.parseSourceMapInput(t)),r.sections!=null?new qa(r,e):new Wn(r,e)}o(er,"SourceMapConsumer");er.fromSourceMap=function(t,e){return Wn.fromSourceMap(t,e)};er.prototype._version=3;er.prototype.__generatedMappings=null;Object.defineProperty(er.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});er.prototype.__originalMappings=null;Object.defineProperty(er.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});er.prototype._charIsMappingSeparator=o(function(e,r){var n=e.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");er.prototype._parseMappings=o(function(e,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");er.GENERATED_ORDER=1;er.ORIGINAL_ORDER=2;er.GREATEST_LOWER_BOUND=1;er.LEAST_UPPER_BOUND=2;er.prototype.eachMapping=o(function(e,r,n){var i=r||null,s=n||er.GENERATED_ORDER,a;switch(s){case er.GENERATED_ORDER:a=this._generatedMappings;break;case er.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var c=this.sourceRoot;a.map(function(l){var u=l.source===null?null:this._sources.at(l.source);return u=ge.computeSourceURL(c,u,this._sourceMapURL),{source:u,generatedLine:l.generatedLine,generatedColumn:l.generatedColumn,originalLine:l.originalLine,originalColumn:l.originalColumn,name:l.name===null?null:this._names.at(l.name)}},this).forEach(e,i)},"SourceMapConsumer_eachMapping");er.prototype.allGeneratedPositionsFor=o(function(e){var r=ge.getArg(e,"line"),n={source:ge.getArg(e,"source"),originalLine:r,originalColumn:ge.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",ge.compareByOriginalPositions,U4.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(e.column===void 0)for(var c=a.originalLine;a&&a.originalLine===c;)i.push({line:ge.getArg(a,"generatedLine",null),column:ge.getArg(a,"generatedColumn",null),lastColumn:ge.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var l=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==l;)i.push({line:ge.getArg(a,"generatedLine",null),column:ge.getArg(a,"generatedColumn",null),lastColumn:ge.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return i},"SourceMapConsumer_allGeneratedPositionsFor");a2.SourceMapConsumer=er;function Wn(t,e){var r=t;typeof t=="string"&&(r=ge.parseSourceMapInput(t));var n=ge.getArg(r,"version"),i=ge.getArg(r,"sources"),s=ge.getArg(r,"names",[]),a=ge.getArg(r,"sourceRoot",null),c=ge.getArg(r,"sourcesContent",null),l=ge.getArg(r,"mappings"),u=ge.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=ge.normalize(a)),i=i.map(String).map(ge.normalize).map(function(d){return a&&ge.isAbsolute(a)&&ge.isAbsolute(d)?ge.relative(a,d):d}),this._names=$g.fromArray(s.map(String),!0),this._sources=$g.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(d){return ge.computeSourceURL(a,d,e)}),this.sourceRoot=a,this.sourcesContent=c,this._mappings=l,this._sourceMapURL=e,this.file=u}o(Wn,"BasicSourceMapConsumer");Wn.prototype=Object.create(er.prototype);Wn.prototype.consumer=er;Wn.prototype._findSourceIndex=function(t){var e=t;if(this.sourceRoot!=null&&(e=ge.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var r;for(r=0;r1&&(A.source=c+y[1],c+=y[1],A.originalLine=s+y[2],s=A.originalLine,A.originalLine+=1,A.originalColumn=a+y[3],a=A.originalColumn,y.length>4&&(A.name=l+y[4],l+=y[4])),m.push(A),typeof A.originalLine=="number"&&p.push(A)}Ew(m,ge.compareByGeneratedPositionsDeflated),this.__generatedMappings=m,Ew(p,ge.compareByOriginalPositions),this.__originalMappings=p},"SourceMapConsumer_parseMappings");Wn.prototype._findMapping=o(function(e,r,n,i,s,a){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[i]);return U4.search(e,r,s,a)},"SourceMapConsumer_findMapping");Wn.prototype.computeColumnSpans=o(function(){for(var e=0;e=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=ge.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=ge.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var a=ge.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:s,line:ge.getArg(i,"originalLine",null),column:ge.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},"SourceMapConsumer_originalPositionFor");Wn.prototype.hasContentsOfAllSources=o(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");Wn.prototype.sourceContentFor=o(function(e,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var i=e;this.sourceRoot!=null&&(i=ge.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=ge.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')},"SourceMapConsumer_sourceContentFor");Wn.prototype.generatedPositionFor=o(function(e){var r=ge.getArg(e,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:ge.getArg(e,"line"),originalColumn:ge.getArg(e,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",ge.compareByOriginalPositions,ge.getArg(e,"bias",er.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:ge.getArg(s,"generatedLine",null),column:ge.getArg(s,"generatedColumn",null),lastColumn:ge.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");a2.BasicSourceMapConsumer=Wn;function qa(t,e){var r=t;typeof t=="string"&&(r=ge.parseSourceMapInput(t));var n=ge.getArg(r,"version"),i=ge.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new $g,this._names=new $g;var s={line:-1,column:0};this._sections=i.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var c=ge.getArg(a,"offset"),l=ge.getArg(c,"line"),u=ge.getArg(c,"column");if(l{var mAt=O4().SourceMapGenerator,c2=Vg(),gAt=/(\r?\n)/,yAt=10,jg="$$$isSourceNode$$$";function Zs(t,e,r,n,i){this.children=[],this.sourceContents={},this.line=t??null,this.column=e??null,this.source=r??null,this.name=i??null,this[jg]=!0,n!=null&&this.add(n)}o(Zs,"SourceNode");Zs.fromStringWithSourceMap=o(function(e,r,n){var i=new Zs,s=e.split(gAt),a=0,c=o(function(){var h=m(),p=m()||"";return h+p;function m(){return a=0;r--)this.prepend(e[r]);else if(e[jg]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this},"SourceNode_prepend");Zs.prototype.walk=o(function(e){for(var r,n=0,i=this.children.length;n0){for(r=[],n=0;n{l2.SourceMapGenerator=O4().SourceMapGenerator;l2.SourceMapConsumer=JCe().SourceMapConsumer;l2.SourceNode=KCe().SourceNode});var rbe=g(u2=>{"use strict";u2.__esModule=!0;u2.safeJsonLiteral=ebe;var G4=li(),EAt=/[\x00-\x1f\\"\u2028\u2029<\ud800-\udfff]/,CAt=/<(?=!--|\/?script)/gi;function bAt(t){return t.replace(CAt,"\\u003C")}o(bAt,"escapeScriptDelimiters");function wAt(t){return"\\u"+t.charCodeAt(0).toString(16)}o(wAt,"escapeSurrogate");function ebe(t){return bAt(JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/[\ud800-\udfff]/g,wAt))}o(ebe,"safeJsonLiteral");var yp=void 0;try{(typeof define!="function"||!define.amd)&&(ZCe=XCe(),yp=ZCe.SourceNode)}catch{}var ZCe;yp||(yp=o(function(t,e,r,n){this.src="",n&&this.add(n)},"SourceNode"),yp.prototype={add:o(function(e){G4.isArray(e)&&(e=e.join("")),this.src+=e},"add"),prepend:o(function(e){G4.isArray(e)&&(e=e.join("")),this.src=e+this.src},"prepend"),toStringWithSourceMap:o(function(){return{code:this.toString()}},"toStringWithSourceMap"),toString:o(function(){return this.src},"toString")});function q4(t,e,r){if(G4.isArray(t)){for(var n=[],i=0,s=t.length;i{"use strict";d2.__esModule=!0;function sbe(t){return t&&t.__esModule?t:{default:t}}o(sbe,"_interopRequireDefault");var nbe=zT(),IAt=zo(),H4=sbe(IAt),SAt=li(),obe=rbe(),ibe=sbe(obe);function Wg(t){this.value=t}o(Wg,"Literal");function Jg(){}o(Jg,"JavaScriptCompiler");Jg.prototype={nameLookup:o(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:o(function(e){return[this.aliasable("container.lookup"),"(depths, ",this.quotedString(e),")"]},"depthedLookup"),compilerInfo:o(function(){var e=nbe.COMPILER_REVISION,r=nbe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,n){return SAt.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",this.quotedString(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(e,r,n,i){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!i,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var s=e.opcodes,a=void 0,c=void 0,l=void 0,u=void 0;for(l=0,u=s.length;l0&&(n+=", "+i.join(", "));var s=0;Object.keys(this.aliases).forEach(function(l){var u=r.aliases[l];u.children&&u.referenceCount>1&&(n+=", alias"+ ++s+"="+l,u.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) { +`),this.decorators=this.decorators.merge()));var d=this.createFunctionContext(i);if(this.isChild)return d;var f={compiler:this.compilerInfo(),main:d};this.decorators&&(f.main_d=this.decorators,f.useDecorators=!0);var h=this.context,p=h.programs,m=h.decorators;for(l=0,u=p.length;l0&&(n+=", "+i.join(", "));var s=0;Object.keys(this.aliases).forEach(function(l){var u=r.aliases[l];u.children&&u.referenceCount>1&&(n+=", alias"+ ++s+"="+l,u.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) { `,c,"}"])},"createFunctionContext"),mergeSource:o(function(e){var r=this.environment.isSimple,n=!this.forceBuffer,i=void 0,s=void 0,a=void 0,c=void 0;return this.source.each(function(l){l.appendToBuffer?(a?l.prepend(" + "):a=l,c=l):(a&&(s?a.prepend("buffer += "):i=!0,c.add(";"),a=c=void 0),s=!0,r||(n=!1))}),n?a?(a.prepend("return "),c.add(";")):s||this.source.push('return "";'):(e+=", buffer = "+(i?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(i?"":`; `)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:o(function(){return` lookupProperty = container.lookupProperty || function(parent, propertyName) { @@ -83,169 +83,169 @@ Expecting `+de.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Se="Parse error } return undefined } - `.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var i=this.popStack();n.splice(1,0,i),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:o(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:o(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(e){this.lastContext=e},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(e,r,n,i){var s=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[s++])):this.pushContext(),this.resolvePath("context",e,s,r,n)},"lookupOnContext"),lookupBlockParam:o(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(e,r,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:o(function(e,r,n,i,s){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(wAt(this.options.strict&&s,this,r,n,e));return}for(var c=r.length,l=o(function(d){a.replaceStack(function(f){var h=a.nameLookup(f,r[d],e);return i?[" && ",h]:[" != null ? ",h," : ",f]})},"_loop"),u=n;uthis.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:o(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:o(function(){var e=this.inlineStack;this.inlineStack=[];for(var r=0,n=e.length;r{"use strict";d2.__esModule=!0;function Ew(t){return t&&t.__esModule?t:{default:t}}o(Ew,"_interopRequireDefault");var IAt=cCe(),SAt=Ew(IAt),BAt=A4(),xAt=Ew(BAt),H4=wCe(),z4=vCe(),vAt=cbe(),NAt=Ew(vAt),RAt=e2(),_At=Ew(RAt),TAt=d4(),DAt=Ew(TAt),QAt=SAt.default.create;function lbe(){var t=QAt();return t.compile=function(e,r){return z4.compile(e,r,t)},t.precompile=function(e,r){return z4.precompile(e,r,t)},t.AST=xAt.default,t.Compiler=z4.Compiler,t.JavaScriptCompiler=NAt.default,t.Parser=H4.parser,t.parse=H4.parse,t.parseWithoutProcessing=H4.parseWithoutProcessing,t}o(lbe,"create");var Jg=lbe();Jg.create=lbe;DAt.default(Jg);Jg.Visitor=_At.default;Jg.default=Jg;d2.default=Jg;ube.exports=d2.default});var fbe=g(f2=>{"use strict";f2.__esModule=!0;f2.print=LAt;f2.PrintVisitor=Qr;function kAt(t){return t&&t.__esModule?t:{default:t}}o(kAt,"_interopRequireDefault");var PAt=e2(),OAt=kAt(PAt);function LAt(t){return new Qr().accept(t)}o(LAt,"print");function Qr(){this.padding=0}o(Qr,"PrintVisitor");Qr.prototype=new OAt.default;Qr.prototype.pad=function(t){for(var e="",r=0,n=this.padding;r "+e+" }}")};Qr.prototype.PartialBlockStatement=function(t){var e="PARTIAL BLOCK:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};Qr.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};Qr.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};Qr.prototype.SubExpression=function(t){for(var e=t.params,r=[],n=void 0,i=0,s=e.length;i{"use strict";Object.defineProperty(y2,"__esModule",{value:!0});y2.getProxyUrl=qAt;y2.checkBypass=vbe;function qAt(t){let e=t.protocol==="https:";if(vbe(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new g2(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new g2(`http://${r}`)}else return}o(qAt,"getProxyUrl");function vbe(t){if(!t.hostname)return!1;let e=t.hostname;if(GAt(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let i=[t.hostname.toUpperCase()];typeof n=="number"&&i.push(`${i[0]}:${n}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||i.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}o(vbe,"checkBypass");function GAt(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(GAt,"isLoopbackAddress");var g2=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}});var _be=g(pr=>{"use strict";var HAt=pr&&pr.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),zAt=pr&&pr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),w2=pr&&pr.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i$r(this,void 0,void 0,function*(){let r=Buffer.alloc(0);this.message.on("data",n=>{r=Buffer.concat([r,n])}),this.message.on("end",()=>{e(r.toString())})}))})}readBodyBuffer(){return $r(this,void 0,void 0,function*(){return new Promise(e=>$r(this,void 0,void 0,function*(){let r=[];this.message.on("data",n=>{r.push(n)}),this.message.on("end",()=>{e(Buffer.concat(r))})}))})}};pr.HttpClientResponse=b2;function XAt(t){return new URL(t).protocol==="https:"}o(XAt,"isHttps");var X4=class{static{o(this,"HttpClient")}constructor(e,r,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=r||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,r){return $r(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,r||{})})}get(e,r){return $r(this,void 0,void 0,function*(){return this.request("GET",e,null,r||{})})}del(e,r){return $r(this,void 0,void 0,function*(){return this.request("DELETE",e,null,r||{})})}post(e,r,n){return $r(this,void 0,void 0,function*(){return this.request("POST",e,r,n||{})})}patch(e,r,n){return $r(this,void 0,void 0,function*(){return this.request("PATCH",e,r,n||{})})}put(e,r,n){return $r(this,void 0,void 0,function*(){return this.request("PUT",e,r,n||{})})}head(e,r){return $r(this,void 0,void 0,function*(){return this.request("HEAD",e,null,r||{})})}sendStream(e,r,n,i){return $r(this,void 0,void 0,function*(){return this.request(e,r,n,i)})}getJson(e){return $r(this,arguments,void 0,function*(r,n={}){n[Li.Accept]=this._getExistingOrDefaultHeader(n,Li.Accept,Bu.ApplicationJson);let i=yield this.get(r,n);return this._processResponse(i,this.requestOptions)})}postJson(e,r){return $r(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[Li.Accept]=this._getExistingOrDefaultHeader(s,Li.Accept,Bu.ApplicationJson),s[Li.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,Bu.ApplicationJson);let c=yield this.post(n,a,s);return this._processResponse(c,this.requestOptions)})}putJson(e,r){return $r(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[Li.Accept]=this._getExistingOrDefaultHeader(s,Li.Accept,Bu.ApplicationJson),s[Li.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,Bu.ApplicationJson);let c=yield this.put(n,a,s);return this._processResponse(c,this.requestOptions)})}patchJson(e,r){return $r(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[Li.Accept]=this._getExistingOrDefaultHeader(s,Li.Accept,Bu.ApplicationJson),s[Li.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,Bu.ApplicationJson);let c=yield this.patch(n,a,s);return this._processResponse(c,this.requestOptions)})}request(e,r,n,i){return $r(this,void 0,void 0,function*(){if(this._disposed)throw new Error("Client has already been disposed.");let s=new URL(r),a=this._prepareRequest(e,s,i),c=this._allowRetries&&JAt.includes(e)?this._maxRetries+1:1,l=0,u;do{if(u=yield this.requestRaw(a,n),u&&u.message&&u.message.statusCode===jo.Unauthorized){let f;for(let h of this.handlers)if(h.canHandleAuthentication(u)){f=h;break}return f?f.handleAuthentication(this,a,n):u}let d=this._maxRedirects;for(;u.message.statusCode&&jAt.includes(u.message.statusCode)&&this._allowRedirects&&d>0;){let f=u.message.headers.location;if(!f)break;let h=new URL(f);if(s.protocol==="https:"&&s.protocol!==h.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield u.readBody(),h.hostname!==s.hostname)for(let p in i)p.toLowerCase()==="authorization"&&delete i[p];a=this._prepareRequest(e,h,i),u=yield this.requestRaw(a,n),d--}if(!u.message.statusCode||!WAt.includes(u.message.statusCode))return u;l+=1,l{function s(a,c){a?i(a):c?n(c):i(new Error("Unknown error"))}o(s,"callbackForResult"),this.requestRawWithCallback(e,r,s)})})}requestRawWithCallback(e,r,n){typeof r=="string"&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8"));let i=!1;function s(l,u){i||(i=!0,n(l,u))}o(s,"handleResult");let a=e.httpModule.request(e.options,l=>{let u=new b2(l);s(void 0,u)}),c;a.on("socket",l=>{c=l}),a.setTimeout(this._socketTimeout||3*6e4,()=>{c&&c.end(),s(new Error(`Request timeout: ${e.options.path}`))}),a.on("error",function(l){s(l)}),r&&typeof r=="string"&&a.write(r,"utf8"),r&&typeof r!="string"?(r.on("close",function(){a.end()}),r.pipe(a)):a.end()}getAgent(e){let r=new URL(e);return this._getAgent(r)}getAgentDispatcher(e){let r=new URL(e),n=K4.getProxyUrl(r);if(n&&n.hostname)return this._getProxyAgentDispatcher(r,n)}_prepareRequest(e,r,n){let i={};i.parsedUrl=r;let s=i.parsedUrl.protocol==="https:";i.httpModule=s?Rbe:Y4;let a=s?443:80;if(i.options={},i.options.host=i.parsedUrl.hostname,i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):a,i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||""),i.options.method=e,i.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(i.options.headers["user-agent"]=this.userAgent),i.options.agent=this._getAgent(i.parsedUrl),this.handlers)for(let c of this.handlers)c.prepareRequest(i.options);return i}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},Iw(this.requestOptions.headers),Iw(e||{})):Iw(e||{})}_getExistingOrDefaultHeader(e,r,n){let i;if(this.requestOptions&&this.requestOptions.headers){let a=Iw(this.requestOptions.headers)[r];a&&(i=typeof a=="number"?a.toString():a)}let s=e[r];return s!==void 0?typeof s=="number"?s.toString():s:i!==void 0?i:n}_getExistingOrDefaultContentTypeHeader(e,r){let n;if(this.requestOptions&&this.requestOptions.headers){let s=Iw(this.requestOptions.headers)[Li.ContentType];s&&(typeof s=="number"?n=String(s):Array.isArray(s)?n=s.join(", "):n=s)}let i=e[Li.ContentType];return i!==void 0?typeof i=="number"?String(i):Array.isArray(i)?i.join(", "):i:n!==void 0?n:r}_getAgent(e){let r,n=K4.getProxyUrl(e),i=n&&n.hostname;if(this._keepAlive&&i&&(r=this._proxyAgent),i||(r=this._agent),r)return r;let s=e.protocol==="https:",a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||Y4.globalAgent.maxSockets),n&&n.hostname){let c={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},l,u=n.protocol==="https:";s?l=u?E2.httpsOverHttps:E2.httpsOverHttp:l=u?E2.httpOverHttps:E2.httpOverHttp,r=l(c),this._proxyAgent=r}if(!r){let c={keepAlive:this._keepAlive,maxSockets:a};r=s?new Rbe.Agent(c):new Y4.Agent(c),this._agent=r}return s&&this._ignoreSslError&&(r.options=Object.assign(r.options||{},{rejectUnauthorized:!1})),r}_getProxyAgentDispatcher(e,r){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;let i=e.protocol==="https:";return n=new VAt.ProxyAgent(Object.assign({uri:r.href,pipelining:this._keepAlive?1:0},(r.username||r.password)&&{token:`Basic ${Buffer.from(`${r.username}:${r.password}`).toString("base64")}`})),this._proxyAgentDispatcher=n,i&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_getUserAgentWithOrchestrationId(e){let r=e||"actions/http-client",n=process.env.ACTIONS_ORCHESTRATION_ID;if(n){let i=n.replace(/[^a-z0-9_.-]/gi,"_");return`${r} actions_orchestration_id/${i}`}return r}_performExponentialBackoff(e){return $r(this,void 0,void 0,function*(){e=Math.min(YAt,e);let r=KAt*Math.pow(2,e);return new Promise(n=>setTimeout(()=>n(),r))})}_processResponse(e,r){return $r(this,void 0,void 0,function*(){return new Promise((n,i)=>$r(this,void 0,void 0,function*(){let s=e.message.statusCode||0,a={statusCode:s,result:null,headers:{}};s===jo.NotFound&&n(a);function c(d,f){if(typeof f=="string"){let h=new Date(f);if(!isNaN(h.valueOf()))return h}return f}o(c,"dateTimeDeserializer");let l,u;try{u=yield e.readBody(),u&&u.length>0&&(r&&r.deserializeDates?l=JSON.parse(u,c):l=JSON.parse(u),a.result=l),a.headers=e.message.headers}catch{}if(s>299){let d;l&&l.message?d=l.message:u&&u.length>0?d=u:d=`Failed request: (${s})`;let f=new C2(d,s);f.result=a.result,i(f)}else n(a)}))})}};pr.HttpClient=X4;var Iw=o(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys")});var Xbe=g((kEr,Bw)=>{"use strict";var x2=o(function(){},"NullObject");x2.prototype=Object.create(null);var S2=/; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu,B2=/\\([\v\u0020-\u00ff])/gu,Jbe=/^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u,yp={type:"",parameters:new x2};Object.freeze(yp.parameters);Object.freeze(yp);function Ybe(t){if(typeof t!="string")throw new TypeError("argument header is required and must be a string");let e=t.indexOf(";"),r=e!==-1?t.slice(0,e).trim():t.trim();if(Jbe.test(r)===!1)throw new TypeError("invalid media type");let n={type:r.toLowerCase(),parameters:new x2};if(e===-1)return n;let i,s,a;for(S2.lastIndex=e;s=S2.exec(t);){if(s.index!==e)throw new TypeError("invalid parameter format");e+=s[0].length,i=s[1].toLowerCase(),a=s[2],a[0]==='"'&&(a=a.slice(1,a.length-1),B2.test(a)&&(a=a.replace(B2,"$1"))),n.parameters[i]=a}if(e!==t.length)throw new TypeError("invalid parameter format");return n}o(Ybe,"parse");function Kbe(t){if(typeof t!="string")return yp;let e=t.indexOf(";"),r=e!==-1?t.slice(0,e).trim():t.trim();if(Jbe.test(r)===!1)return yp;let n={type:r.toLowerCase(),parameters:new x2};if(e===-1)return n;let i,s,a;for(S2.lastIndex=e;s=S2.exec(t);){if(s.index!==e)return yp;e+=s[0].length,i=s[1].toLowerCase(),a=s[2],a[0]==='"'&&(a=a.slice(1,a.length-1),B2.test(a)&&(a=a.replace(B2,"$1"))),n.parameters[i]=a}return e!==t.length?yp:n}o(Kbe,"safeParse");Bw.exports.default={parse:Ybe,safeParse:Kbe};Bw.exports.parse=Ybe;Bw.exports.safeParse=Kbe;Bw.exports.defaultContentType=yp});var q0e=g((Lbr,ygt)=>{ygt.exports={name:"@actions/artifact",version:"6.3.1",preview:!0,description:"Actions artifact lib",keywords:["github","actions","artifact"],homepage:"https://github.com/actions/toolkit/tree/main/packages/artifact",license:"MIT",type:"module",main:"lib/artifact.js",types:"lib/artifact.d.ts",exports:{".":{types:"./lib/artifact.d.ts",import:"./lib/artifact.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/artifact"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:"cd ../../ && npm run test ./packages/artifact",bootstrap:"cd ../../ && npm run bootstrap","tsc-run":"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/",tsc:"npm run bootstrap && npm run tsc-run","gen:docs":"typedoc --plugin typedoc-plugin-markdown --out docs/generated src/artifact.ts --githubPages false --readme none"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/github":"^9.1.1","@actions/http-client":"^4.0.1","@azure/storage-blob":"^12.31.0","@octokit/core":"^7.0.6","@octokit/plugin-request-log":"^6.0.0","@octokit/plugin-retry":"^8.1.0","@octokit/request":"^10.0.8","@octokit/request-error":"^7.1.0","@protobuf-ts/runtime":"^2.11.1","@protobuf-ts/runtime-rpc":"^2.11.1",archiver:"^7.0.1","jwt-decode":"^4.0.0","unzip-stream":"^0.3.1"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/archiver":"^7.0.0","@types/unzip-stream":"^0.3.4",typedoc:"^0.28.19","typedoc-plugin-markdown":"^4.11.0",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var H0e=g((Fbr,G0e)=>{var Egt=q0e();G0e.exports={version:Egt.version}});var ewe=g((h0r,Z0e)=>{var Cgt=typeof process=="object"&&process&&process.platform==="win32";Z0e.exports=Cgt?{sep:"\\"}:{sep:"/"}});var swe=g((p0r,iwe)=>{"use strict";iwe.exports=rwe;function rwe(t,e,r){t instanceof RegExp&&(t=twe(t,r)),e instanceof RegExp&&(e=twe(e,r));var n=nwe(t,e,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+t.length,n[1]),post:r.slice(n[1]+e.length)}}o(rwe,"balanced");function twe(t,e){var r=e.match(t);return r?r[0]:null}o(twe,"maybeMatch");rwe.range=nwe;function nwe(t,e,r){var n,i,s,a,c,l=r.indexOf(t),u=r.indexOf(e,l+1),d=l;if(l>=0&&u>0){if(t===e)return[l,u];for(n=[],s=r.length;d>=0&&!c;)d==l?(n.push(d),l=r.indexOf(t,d+1)):n.length==1?c=[n.pop(),u]:(i=n.pop(),i=0?l:u;n.length&&(c=[s,a])}return c}o(nwe,"range")});var d8=g((m0r,fwe)=>{var owe=swe();fwe.exports=Igt;var awe="\0SLASH"+Math.random()+"\0",cwe="\0OPEN"+Math.random()+"\0",u8="\0CLOSE"+Math.random()+"\0",lwe="\0COMMA"+Math.random()+"\0",uwe="\0PERIOD"+Math.random()+"\0";function l8(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}o(l8,"numeric");function bgt(t){return t.split("\\\\").join(awe).split("\\{").join(cwe).split("\\}").join(u8).split("\\,").join(lwe).split("\\.").join(uwe)}o(bgt,"escapeBraces");function wgt(t){return t.split(awe).join("\\").split(cwe).join("{").split(u8).join("}").split(lwe).join(",").split(uwe).join(".")}o(wgt,"unescapeBraces");function dwe(t){if(!t)return[""];var e=[],r=owe("{","}",t);if(!r)return t.split(",");var n=r.pre,i=r.body,s=r.post,a=n.split(",");a[a.length-1]+="{"+i+"}";var c=dwe(s);return s.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),e.push.apply(e,a),e}o(dwe,"parseCommaParts");function Igt(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),Dw(bgt(t),!0).map(wgt)):[]}o(Igt,"expandTop");function Sgt(t){return"{"+t+"}"}o(Sgt,"embrace");function Bgt(t){return/^-?0\d/.test(t)}o(Bgt,"isPadded");function xgt(t,e){return t<=e}o(xgt,"lte");function vgt(t,e){return t>=e}o(vgt,"gte");function Dw(t,e){var r=[],n=owe("{","}",t);if(!n)return[t];var i=n.pre,s=n.post.length?Dw(n.post,!1):[""];if(/\$$/.test(n.pre))for(var a=0;a=0;if(!d&&!f)return n.post.match(/,(?!,).*\}/)?(t=n.pre+"{"+n.body+u8+n.post,Dw(t)):[t];var h;if(d)h=n.body.split(/\.\./);else if(h=dwe(n.body),h.length===1&&(h=Dw(h[0],!1).map(Sgt),h.length===1))return s.map(function(H){return n.pre+h[0]+H});var p;if(d){var m=l8(h[0]),A=l8(h[1]),E=Math.max(h[0].length,h[1].length),y=h.length==3?Math.abs(l8(h[2])):1,C=xgt,w=A0){var $=new Array(N+1).join("0");P<0?U="-"+$+U.slice(1):U=$+U}}p.push(U)}}else{p=[];for(var Q=0;Q{var ro=m8.exports=(t,e,r={})=>(U2(e),!r.nocomment&&e.charAt(0)==="#"?!1:new cy(e,r).match(t));m8.exports=ro;var p8=ewe();ro.sep=p8.sep;var Ha=Symbol("globstar **");ro.GLOBSTAR=Ha;var Ngt=d8(),hwe={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},A8="[^/]",f8=A8+"*?",Rgt="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",_gt="(?:(?!(?:\\/|^)\\.).)*?",mwe=o(t=>t.split("").reduce((e,r)=>(e[r]=!0,e),{}),"charSet"),pwe=mwe("().*{}+?[]^$\\!"),Tgt=mwe("[.("),Awe=/\/+/;ro.filter=(t,e={})=>(r,n,i)=>ro(r,t,e);var ef=o((t,e={})=>{let r={};return Object.keys(t).forEach(n=>r[n]=t[n]),Object.keys(e).forEach(n=>r[n]=e[n]),r},"ext");ro.defaults=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return ro;let e=ro,r=o((n,i,s)=>e(n,i,ef(t,s)),"m");return r.Minimatch=class extends e.Minimatch{static{o(this,"Minimatch")}constructor(i,s){super(i,ef(t,s))}},r.Minimatch.defaults=n=>e.defaults(ef(t,n)).Minimatch,r.filter=(n,i)=>e.filter(n,ef(t,i)),r.defaults=n=>e.defaults(ef(t,n)),r.makeRe=(n,i)=>e.makeRe(n,ef(t,i)),r.braceExpand=(n,i)=>e.braceExpand(n,ef(t,i)),r.match=(n,i,s)=>e.match(n,i,ef(t,s)),r};ro.braceExpand=(t,e)=>gwe(t,e);var gwe=o((t,e={})=>(U2(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:Ngt(t)),"braceExpand"),Dgt=1024*64,U2=o(t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>Dgt)throw new TypeError("pattern is too long")},"assertValidPattern"),h8=Symbol("subparse");ro.makeRe=(t,e)=>new cy(t,e||{}).makeRe();ro.match=(t,e,r={})=>{let n=new cy(e,r);return t=t.filter(i=>n.match(i)),n.options.nonull&&!t.length&&t.push(e),t};var Qgt=o(t=>t.replace(/\\(.)/g,"$1"),"globUnescape"),kgt=o(t=>t.replace(/\\([^-\]])/g,"$1"),"charUnescape"),Pgt=o(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),Ogt=o(t=>t.replace(/[[\]\\]/g,"\\$&"),"braExpEscape"),cy=class{static{o(this,"Minimatch")}constructor(e,r){U2(e),r||(r={}),this.options=r,this.set=[],this.pattern=e,this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.make()}debug(){}make(){let e=this.pattern,r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();let n=this.globSet=this.braceExpand();r.debug&&(this.debug=(...i)=>console.error(...i)),this.debug(this.pattern,n),n=this.globParts=n.map(i=>i.split(Awe)),this.debug(this.pattern,n),n=n.map((i,s,a)=>i.map(this.parse,this)),this.debug(this.pattern,n),n=n.filter(i=>i.indexOf(!1)===-1),this.debug(this.pattern,n),this.set=n}parseNegate(){if(this.options.nonegate)return;let e=this.pattern,r=!1,n=0;for(let i=0;ithis.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:o(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:o(function(){var e=this.inlineStack;this.inlineStack=[];for(var r=0,n=e.length;r{"use strict";f2.__esModule=!0;function Cw(t){return t&&t.__esModule?t:{default:t}}o(Cw,"_interopRequireDefault");var xAt=lCe(),vAt=Cw(xAt),NAt=m4(),_At=Cw(NAt),z4=ICe(),V4=NCe(),RAt=lbe(),TAt=Cw(RAt),DAt=t2(),QAt=Cw(DAt),kAt=f4(),PAt=Cw(kAt),OAt=vAt.default.create;function ube(){var t=OAt();return t.compile=function(e,r){return V4.compile(e,r,t)},t.precompile=function(e,r){return V4.precompile(e,r,t)},t.AST=_At.default,t.Compiler=V4.Compiler,t.JavaScriptCompiler=TAt.default,t.Parser=z4.parser,t.parse=z4.parse,t.parseWithoutProcessing=z4.parseWithoutProcessing,t}o(ube,"create");var Yg=ube();Yg.create=ube;PAt.default(Yg);Yg.Visitor=QAt.default;Yg.default=Yg;f2.default=Yg;dbe.exports=f2.default});var hbe=g(h2=>{"use strict";h2.__esModule=!0;h2.print=UAt;h2.PrintVisitor=Qr;function LAt(t){return t&&t.__esModule?t:{default:t}}o(LAt,"_interopRequireDefault");var FAt=t2(),MAt=LAt(FAt);function UAt(t){return new Qr().accept(t)}o(UAt,"print");function Qr(){this.padding=0}o(Qr,"PrintVisitor");Qr.prototype=new MAt.default;Qr.prototype.pad=function(t){for(var e="",r=0,n=this.padding;r "+e+" }}")};Qr.prototype.PartialBlockStatement=function(t){var e="PARTIAL BLOCK:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};Qr.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};Qr.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};Qr.prototype.SubExpression=function(t){for(var e=t.params,r=[],n=void 0,i=0,s=e.length;i{"use strict";Object.defineProperty(E2,"__esModule",{value:!0});E2.getProxyUrl=zAt;E2.checkBypass=Nbe;function zAt(t){let e=t.protocol==="https:";if(Nbe(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new y2(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new y2(`http://${r}`)}else return}o(zAt,"getProxyUrl");function Nbe(t){if(!t.hostname)return!1;let e=t.hostname;if(VAt(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let i=[t.hostname.toUpperCase()];typeof n=="number"&&i.push(`${i[0]}:${n}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||i.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}o(Nbe,"checkBypass");function VAt(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(VAt,"isLoopbackAddress");var y2=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}});var Tbe=g(pr=>{"use strict";var $At=pr&&pr.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),jAt=pr&&pr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),I2=pr&&pr.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i$r(this,void 0,void 0,function*(){let r=Buffer.alloc(0);this.message.on("data",n=>{r=Buffer.concat([r,n])}),this.message.on("end",()=>{e(r.toString())})}))})}readBodyBuffer(){return $r(this,void 0,void 0,function*(){return new Promise(e=>$r(this,void 0,void 0,function*(){let r=[];this.message.on("data",n=>{r.push(n)}),this.message.on("end",()=>{e(Buffer.concat(r))})}))})}};pr.HttpClientResponse=w2;function tmt(t){return new URL(t).protocol==="https:"}o(tmt,"isHttps");var Z4=class{static{o(this,"HttpClient")}constructor(e,r,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=r||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,r){return $r(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,r||{})})}get(e,r){return $r(this,void 0,void 0,function*(){return this.request("GET",e,null,r||{})})}del(e,r){return $r(this,void 0,void 0,function*(){return this.request("DELETE",e,null,r||{})})}post(e,r,n){return $r(this,void 0,void 0,function*(){return this.request("POST",e,r,n||{})})}patch(e,r,n){return $r(this,void 0,void 0,function*(){return this.request("PATCH",e,r,n||{})})}put(e,r,n){return $r(this,void 0,void 0,function*(){return this.request("PUT",e,r,n||{})})}head(e,r){return $r(this,void 0,void 0,function*(){return this.request("HEAD",e,null,r||{})})}sendStream(e,r,n,i){return $r(this,void 0,void 0,function*(){return this.request(e,r,n,i)})}getJson(e){return $r(this,arguments,void 0,function*(r,n={}){n[Li.Accept]=this._getExistingOrDefaultHeader(n,Li.Accept,xu.ApplicationJson);let i=yield this.get(r,n);return this._processResponse(i,this.requestOptions)})}postJson(e,r){return $r(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[Li.Accept]=this._getExistingOrDefaultHeader(s,Li.Accept,xu.ApplicationJson),s[Li.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,xu.ApplicationJson);let c=yield this.post(n,a,s);return this._processResponse(c,this.requestOptions)})}putJson(e,r){return $r(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[Li.Accept]=this._getExistingOrDefaultHeader(s,Li.Accept,xu.ApplicationJson),s[Li.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,xu.ApplicationJson);let c=yield this.put(n,a,s);return this._processResponse(c,this.requestOptions)})}patchJson(e,r){return $r(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[Li.Accept]=this._getExistingOrDefaultHeader(s,Li.Accept,xu.ApplicationJson),s[Li.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,xu.ApplicationJson);let c=yield this.patch(n,a,s);return this._processResponse(c,this.requestOptions)})}request(e,r,n,i){return $r(this,void 0,void 0,function*(){if(this._disposed)throw new Error("Client has already been disposed.");let s=new URL(r),a=this._prepareRequest(e,s,i),c=this._allowRetries&&XAt.includes(e)?this._maxRetries+1:1,l=0,u;do{if(u=yield this.requestRaw(a,n),u&&u.message&&u.message.statusCode===jo.Unauthorized){let f;for(let h of this.handlers)if(h.canHandleAuthentication(u)){f=h;break}return f?f.handleAuthentication(this,a,n):u}let d=this._maxRedirects;for(;u.message.statusCode&&YAt.includes(u.message.statusCode)&&this._allowRedirects&&d>0;){let f=u.message.headers.location;if(!f)break;let h=new URL(f);if(s.protocol==="https:"&&s.protocol!==h.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield u.readBody(),h.hostname!==s.hostname)for(let p in i)p.toLowerCase()==="authorization"&&delete i[p];a=this._prepareRequest(e,h,i),u=yield this.requestRaw(a,n),d--}if(!u.message.statusCode||!KAt.includes(u.message.statusCode))return u;l+=1,l{function s(a,c){a?i(a):c?n(c):i(new Error("Unknown error"))}o(s,"callbackForResult"),this.requestRawWithCallback(e,r,s)})})}requestRawWithCallback(e,r,n){typeof r=="string"&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8"));let i=!1;function s(l,u){i||(i=!0,n(l,u))}o(s,"handleResult");let a=e.httpModule.request(e.options,l=>{let u=new w2(l);s(void 0,u)}),c;a.on("socket",l=>{c=l}),a.setTimeout(this._socketTimeout||3*6e4,()=>{c&&c.end(),s(new Error(`Request timeout: ${e.options.path}`))}),a.on("error",function(l){s(l)}),r&&typeof r=="string"&&a.write(r,"utf8"),r&&typeof r!="string"?(r.on("close",function(){a.end()}),r.pipe(a)):a.end()}getAgent(e){let r=new URL(e);return this._getAgent(r)}getAgentDispatcher(e){let r=new URL(e),n=X4.getProxyUrl(r);if(n&&n.hostname)return this._getProxyAgentDispatcher(r,n)}_prepareRequest(e,r,n){let i={};i.parsedUrl=r;let s=i.parsedUrl.protocol==="https:";i.httpModule=s?Rbe:K4;let a=s?443:80;if(i.options={},i.options.host=i.parsedUrl.hostname,i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):a,i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||""),i.options.method=e,i.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(i.options.headers["user-agent"]=this.userAgent),i.options.agent=this._getAgent(i.parsedUrl),this.handlers)for(let c of this.handlers)c.prepareRequest(i.options);return i}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},Sw(this.requestOptions.headers),Sw(e||{})):Sw(e||{})}_getExistingOrDefaultHeader(e,r,n){let i;if(this.requestOptions&&this.requestOptions.headers){let a=Sw(this.requestOptions.headers)[r];a&&(i=typeof a=="number"?a.toString():a)}let s=e[r];return s!==void 0?typeof s=="number"?s.toString():s:i!==void 0?i:n}_getExistingOrDefaultContentTypeHeader(e,r){let n;if(this.requestOptions&&this.requestOptions.headers){let s=Sw(this.requestOptions.headers)[Li.ContentType];s&&(typeof s=="number"?n=String(s):Array.isArray(s)?n=s.join(", "):n=s)}let i=e[Li.ContentType];return i!==void 0?typeof i=="number"?String(i):Array.isArray(i)?i.join(", "):i:n!==void 0?n:r}_getAgent(e){let r,n=X4.getProxyUrl(e),i=n&&n.hostname;if(this._keepAlive&&i&&(r=this._proxyAgent),i||(r=this._agent),r)return r;let s=e.protocol==="https:",a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||K4.globalAgent.maxSockets),n&&n.hostname){let c={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},l,u=n.protocol==="https:";s?l=u?C2.httpsOverHttps:C2.httpsOverHttp:l=u?C2.httpOverHttps:C2.httpOverHttp,r=l(c),this._proxyAgent=r}if(!r){let c={keepAlive:this._keepAlive,maxSockets:a};r=s?new Rbe.Agent(c):new K4.Agent(c),this._agent=r}return s&&this._ignoreSslError&&(r.options=Object.assign(r.options||{},{rejectUnauthorized:!1})),r}_getProxyAgentDispatcher(e,r){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;let i=e.protocol==="https:";return n=new WAt.ProxyAgent(Object.assign({uri:r.href,pipelining:this._keepAlive?1:0},(r.username||r.password)&&{token:`Basic ${Buffer.from(`${r.username}:${r.password}`).toString("base64")}`})),this._proxyAgentDispatcher=n,i&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_getUserAgentWithOrchestrationId(e){let r=e||"actions/http-client",n=process.env.ACTIONS_ORCHESTRATION_ID;if(n){let i=n.replace(/[^a-z0-9_.-]/gi,"_");return`${r} actions_orchestration_id/${i}`}return r}_performExponentialBackoff(e){return $r(this,void 0,void 0,function*(){e=Math.min(ZAt,e);let r=emt*Math.pow(2,e);return new Promise(n=>setTimeout(()=>n(),r))})}_processResponse(e,r){return $r(this,void 0,void 0,function*(){return new Promise((n,i)=>$r(this,void 0,void 0,function*(){let s=e.message.statusCode||0,a={statusCode:s,result:null,headers:{}};s===jo.NotFound&&n(a);function c(d,f){if(typeof f=="string"){let h=new Date(f);if(!isNaN(h.valueOf()))return h}return f}o(c,"dateTimeDeserializer");let l,u;try{u=yield e.readBody(),u&&u.length>0&&(r&&r.deserializeDates?l=JSON.parse(u,c):l=JSON.parse(u),a.result=l),a.headers=e.message.headers}catch{}if(s>299){let d;l&&l.message?d=l.message:u&&u.length>0?d=u:d=`Failed request: (${s})`;let f=new b2(d,s);f.result=a.result,i(f)}else n(a)}))})}};pr.HttpClient=Z4;var Sw=o(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys")});var Zbe=g((FEr,xw)=>{"use strict";var v2=o(function(){},"NullObject");v2.prototype=Object.create(null);var B2=/; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu,x2=/\\([\v\u0020-\u00ff])/gu,Ybe=/^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u,Ep={type:"",parameters:new v2};Object.freeze(Ep.parameters);Object.freeze(Ep);function Kbe(t){if(typeof t!="string")throw new TypeError("argument header is required and must be a string");let e=t.indexOf(";"),r=e!==-1?t.slice(0,e).trim():t.trim();if(Ybe.test(r)===!1)throw new TypeError("invalid media type");let n={type:r.toLowerCase(),parameters:new v2};if(e===-1)return n;let i,s,a;for(B2.lastIndex=e;s=B2.exec(t);){if(s.index!==e)throw new TypeError("invalid parameter format");e+=s[0].length,i=s[1].toLowerCase(),a=s[2],a[0]==='"'&&(a=a.slice(1,a.length-1),x2.test(a)&&(a=a.replace(x2,"$1"))),n.parameters[i]=a}if(e!==t.length)throw new TypeError("invalid parameter format");return n}o(Kbe,"parse");function Xbe(t){if(typeof t!="string")return Ep;let e=t.indexOf(";"),r=e!==-1?t.slice(0,e).trim():t.trim();if(Ybe.test(r)===!1)return Ep;let n={type:r.toLowerCase(),parameters:new v2};if(e===-1)return n;let i,s,a;for(B2.lastIndex=e;s=B2.exec(t);){if(s.index!==e)return Ep;e+=s[0].length,i=s[1].toLowerCase(),a=s[2],a[0]==='"'&&(a=a.slice(1,a.length-1),x2.test(a)&&(a=a.replace(x2,"$1"))),n.parameters[i]=a}return e!==t.length?Ep:n}o(Xbe,"safeParse");xw.exports.default={parse:Kbe,safeParse:Xbe};xw.exports.parse=Kbe;xw.exports.safeParse=Xbe;xw.exports.defaultContentType=Ep});var G0e=g((qbr,bgt)=>{bgt.exports={name:"@actions/artifact",version:"6.3.1",preview:!0,description:"Actions artifact lib",keywords:["github","actions","artifact"],homepage:"https://github.com/actions/toolkit/tree/main/packages/artifact",license:"MIT",type:"module",main:"lib/artifact.js",types:"lib/artifact.d.ts",exports:{".":{types:"./lib/artifact.d.ts",import:"./lib/artifact.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/artifact"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:"cd ../../ && npm run test ./packages/artifact",bootstrap:"cd ../../ && npm run bootstrap","tsc-run":"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/",tsc:"npm run bootstrap && npm run tsc-run","gen:docs":"typedoc --plugin typedoc-plugin-markdown --out docs/generated src/artifact.ts --githubPages false --readme none"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/github":"^9.1.1","@actions/http-client":"^4.0.1","@azure/storage-blob":"^12.31.0","@octokit/core":"^7.0.6","@octokit/plugin-request-log":"^6.0.0","@octokit/plugin-retry":"^8.1.0","@octokit/request":"^10.0.8","@octokit/request-error":"^7.1.0","@protobuf-ts/runtime":"^2.11.1","@protobuf-ts/runtime-rpc":"^2.11.1",archiver:"^7.0.1","jwt-decode":"^4.0.0","unzip-stream":"^0.3.1"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/archiver":"^7.0.0","@types/unzip-stream":"^0.3.4",typedoc:"^0.28.19","typedoc-plugin-markdown":"^4.11.0",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var z0e=g((Gbr,H0e)=>{var wgt=G0e();H0e.exports={version:wgt.version}});var twe=g((g0r,ewe)=>{var Igt=typeof process=="object"&&process&&process.platform==="win32";ewe.exports=Igt?{sep:"\\"}:{sep:"/"}});var owe=g((y0r,swe)=>{"use strict";swe.exports=nwe;function nwe(t,e,r){t instanceof RegExp&&(t=rwe(t,r)),e instanceof RegExp&&(e=rwe(e,r));var n=iwe(t,e,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+t.length,n[1]),post:r.slice(n[1]+e.length)}}o(nwe,"balanced");function rwe(t,e){var r=e.match(t);return r?r[0]:null}o(rwe,"maybeMatch");nwe.range=iwe;function iwe(t,e,r){var n,i,s,a,c,l=r.indexOf(t),u=r.indexOf(e,l+1),d=l;if(l>=0&&u>0){if(t===e)return[l,u];for(n=[],s=r.length;d>=0&&!c;)d==l?(n.push(d),l=r.indexOf(t,d+1)):n.length==1?c=[n.pop(),u]:(i=n.pop(),i=0?l:u;n.length&&(c=[s,a])}return c}o(iwe,"range")});var f8=g((C0r,hwe)=>{var awe=owe();hwe.exports=xgt;var cwe="\0SLASH"+Math.random()+"\0",lwe="\0OPEN"+Math.random()+"\0",d8="\0CLOSE"+Math.random()+"\0",uwe="\0COMMA"+Math.random()+"\0",dwe="\0PERIOD"+Math.random()+"\0";function u8(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}o(u8,"numeric");function Sgt(t){return t.split("\\\\").join(cwe).split("\\{").join(lwe).split("\\}").join(d8).split("\\,").join(uwe).split("\\.").join(dwe)}o(Sgt,"escapeBraces");function Bgt(t){return t.split(cwe).join("\\").split(lwe).join("{").split(d8).join("}").split(uwe).join(",").split(dwe).join(".")}o(Bgt,"unescapeBraces");function fwe(t){if(!t)return[""];var e=[],r=awe("{","}",t);if(!r)return t.split(",");var n=r.pre,i=r.body,s=r.post,a=n.split(",");a[a.length-1]+="{"+i+"}";var c=fwe(s);return s.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),e.push.apply(e,a),e}o(fwe,"parseCommaParts");function xgt(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),Qw(Sgt(t),!0).map(Bgt)):[]}o(xgt,"expandTop");function vgt(t){return"{"+t+"}"}o(vgt,"embrace");function Ngt(t){return/^-?0\d/.test(t)}o(Ngt,"isPadded");function _gt(t,e){return t<=e}o(_gt,"lte");function Rgt(t,e){return t>=e}o(Rgt,"gte");function Qw(t,e){var r=[],n=awe("{","}",t);if(!n)return[t];var i=n.pre,s=n.post.length?Qw(n.post,!1):[""];if(/\$$/.test(n.pre))for(var a=0;a=0;if(!d&&!f)return n.post.match(/,(?!,).*\}/)?(t=n.pre+"{"+n.body+d8+n.post,Qw(t)):[t];var h;if(d)h=n.body.split(/\.\./);else if(h=fwe(n.body),h.length===1&&(h=Qw(h[0],!1).map(vgt),h.length===1))return s.map(function(H){return n.pre+h[0]+H});var p;if(d){var m=u8(h[0]),A=u8(h[1]),E=Math.max(h[0].length,h[1].length),y=h.length==3?Math.abs(u8(h[2])):1,C=_gt,w=A0){var $=new Array(N+1).join("0");P<0?U="-"+$+U.slice(1):U=$+U}}p.push(U)}}else{p=[];for(var Q=0;Q{var ro=g8.exports=(t,e,r={})=>(q2(e),!r.nocomment&&e.charAt(0)==="#"?!1:new ly(e,r).match(t));g8.exports=ro;var A8=twe();ro.sep=A8.sep;var Ha=Symbol("globstar **");ro.GLOBSTAR=Ha;var Tgt=f8(),pwe={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},m8="[^/]",h8=m8+"*?",Dgt="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Qgt="(?:(?!(?:\\/|^)\\.).)*?",gwe=o(t=>t.split("").reduce((e,r)=>(e[r]=!0,e),{}),"charSet"),Awe=gwe("().*{}+?[]^$\\!"),kgt=gwe("[.("),mwe=/\/+/;ro.filter=(t,e={})=>(r,n,i)=>ro(r,t,e);var tf=o((t,e={})=>{let r={};return Object.keys(t).forEach(n=>r[n]=t[n]),Object.keys(e).forEach(n=>r[n]=e[n]),r},"ext");ro.defaults=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return ro;let e=ro,r=o((n,i,s)=>e(n,i,tf(t,s)),"m");return r.Minimatch=class extends e.Minimatch{static{o(this,"Minimatch")}constructor(i,s){super(i,tf(t,s))}},r.Minimatch.defaults=n=>e.defaults(tf(t,n)).Minimatch,r.filter=(n,i)=>e.filter(n,tf(t,i)),r.defaults=n=>e.defaults(tf(t,n)),r.makeRe=(n,i)=>e.makeRe(n,tf(t,i)),r.braceExpand=(n,i)=>e.braceExpand(n,tf(t,i)),r.match=(n,i,s)=>e.match(n,i,tf(t,s)),r};ro.braceExpand=(t,e)=>ywe(t,e);var ywe=o((t,e={})=>(q2(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:Tgt(t)),"braceExpand"),Pgt=1024*64,q2=o(t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>Pgt)throw new TypeError("pattern is too long")},"assertValidPattern"),p8=Symbol("subparse");ro.makeRe=(t,e)=>new ly(t,e||{}).makeRe();ro.match=(t,e,r={})=>{let n=new ly(e,r);return t=t.filter(i=>n.match(i)),n.options.nonull&&!t.length&&t.push(e),t};var Ogt=o(t=>t.replace(/\\(.)/g,"$1"),"globUnescape"),Lgt=o(t=>t.replace(/\\([^-\]])/g,"$1"),"charUnescape"),Fgt=o(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),Mgt=o(t=>t.replace(/[[\]\\]/g,"\\$&"),"braExpEscape"),ly=class{static{o(this,"Minimatch")}constructor(e,r){q2(e),r||(r={}),this.options=r,this.set=[],this.pattern=e,this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.make()}debug(){}make(){let e=this.pattern,r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();let n=this.globSet=this.braceExpand();r.debug&&(this.debug=(...i)=>console.error(...i)),this.debug(this.pattern,n),n=this.globParts=n.map(i=>i.split(mwe)),this.debug(this.pattern,n),n=n.map((i,s,a)=>i.map(this.parse,this)),this.debug(this.pattern,n),n=n.filter(i=>i.indexOf(!1)===-1),this.debug(this.pattern,n),this.set=n}parseNegate(){if(this.options.nonegate)return;let e=this.pattern,r=!1,n=0;for(let i=0;i>> no match, partial?`,e,f,r,h),f===c))}var m;if(typeof u=="string"?(m=d===u,this.debug("string match",u,d,m)):(m=d.match(u),this.debug("pattern match",u,d,m)),!m)return!1}if(s===c&&a===l)return!0;if(s===c)return n;if(a===l)return s===c-1&&e[s]==="";throw new Error("wtf?")}braceExpand(){return gwe(this.pattern,this.options)}parse(e,r){U2(e);let n=this.options;if(e==="**")if(n.noglobstar)e="*";else return Ha;if(e==="")return"";let i="",s=!1,a=!1,c=[],l=[],u,d=!1,f=-1,h=-1,p,m,A,E=e.charAt(0)===".",y=n.dot||E,C=o(()=>E?"":y?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)","patternStart"),w=o(N=>N.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)","subPatternStart"),B=o(()=>{if(u){switch(u){case"*":i+=f8,s=!0;break;case"?":i+=A8,s=!0;break;default:i+="\\"+u;break}this.debug("clearStateChar %j %j",u,i),u=!1}},"clearStateChar");for(let N=0,$;N(V||(V="\\"),H+H+V+"|")),this.debug(`tail=%j - %s`,N,N,m,i);let $=m.type==="*"?f8:m.type==="?"?A8:"\\"+m.type;s=!0,i=i.slice(0,m.reStart)+$+"\\("+N}B(),a&&(i+="\\\\");let P=Tgt[i.charAt(0)];for(let N=l.length-1;N>-1;N--){let $=l[N],Q=i.slice(0,$.reStart),H=i.slice($.reStart,$.reEnd-8),V=i.slice($.reEnd),W=i.slice($.reEnd-8,$.reEnd)+V,ue=Q.split(")").length,de=Q.split("(").length-ue,Se=V;for(let fe=0;fe(a=a.map(c=>typeof c=="string"?Pgt(c):c===Ha?Ha:c._src).reduce((c,l)=>(c[c.length-1]===Ha&&l===Ha||c.push(l),c),[]),a.forEach((c,l)=>{c!==Ha||a[l-1]===Ha||(l===0?a.length>1?a[l+1]="(?:\\/|"+n+"\\/)?"+a[l+1]:a[l]=n:l===a.length-1?a[l-1]+="(?:\\/|"+n+")?":(a[l-1]+="(?:\\/|\\/"+n+"\\/)"+a[l+1],a[l+1]=Ha))}),a.filter(c=>c!==Ha).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,i)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;p8.sep!=="/"&&(e=e.split(p8.sep).join("/")),e=e.split(Awe),this.debug(this.pattern,"split",e);let i=this.set;this.debug(this.pattern,"set",i);let s;for(let a=e.length-1;a>=0&&(s=e[a],!s);a--);for(let a=0;a{wwe.exports=bwe;var y8=require("fs"),{EventEmitter:Lgt}=require("events"),{Minimatch:g8}=ywe(),{resolve:Fgt}=require("path");function Mgt(t,e){return new Promise((r,n)=>{y8.readdir(t,{withFileTypes:!0},(i,s)=>{if(i)switch(i.code){case"ENOTDIR":e?n(i):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(i);break}else r(s)})})}o(Mgt,"readdir");function Ewe(t,e){return new Promise((r,n)=>{(e?y8.stat:y8.lstat)(t,(s,a)=>{s?s.code==="ENOENT"?r(e?Ewe(t,!1):null):r(null):r(a)})})}o(Ewe,"stat");async function*Cwe(t,e,r,n,i,s){let a=await Mgt(e+t,s);for(let c of a){let l=c.name;l===void 0&&(l=c,n=!0);let u=t+"/"+l,d=u.slice(1),f=e+"/"+d,h=null;(n||r)&&(h=await Ewe(f,r)),!h&&c.name!==void 0&&(h=c),h===null&&(h={isDirectory:o(()=>!1,"isDirectory")}),h.isDirectory()?i(d)||(yield{relative:d,absolute:f,stats:h},yield*Cwe(u,e,r,n,i,!1)):yield{relative:d,absolute:f,stats:h}}}o(Cwe,"exploreWalkAsync");async function*Ugt(t,e,r,n){yield*Cwe("",t,e,r,n,!0)}o(Ugt,"explore");function qgt(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}o(qgt,"readOptions");var q2=class extends Lgt{static{o(this,"ReaddirGlob")}constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=qgt(r||{}),this.matchers=[],this.options.pattern){let i=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=i.map(s=>new g8(s,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let i=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=i.map(s=>new g8(s,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let i=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=i.map(s=>new g8(s,{dot:!0}))}this.iterator=Ugt(Fgt(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",i=>this._matches.push(this.options.absolute?i.absolute:i.relative)),this.on("error",i=>n(i)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(i=>i.match(n)))&&!this.ignoreMatchers.some(i=>i.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,i=e.value.absolute;this.options.mark&&r&&(n+="/",i+="/"),this.options.stat?this.emit("match",{relative:n,absolute:i,stat:e.value.stats}):this.emit("match",{relative:n,absolute:i})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}abort(){this.aborted=!0}pause(){this.paused=!0}resume(){this.paused=!1,this.inactive&&(this.inactive=!1,this._next())}};function bwe(t,e,r){return new q2(t,e,r)}o(bwe,"readdirGlob");bwe.ReaddirGlob=q2});var Bwe=g((G2,Swe)=>{(function(t,e){typeof G2=="object"&&typeof Swe<"u"?e(G2):typeof define=="function"&&define.amd?define(["exports"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.async={}))})(G2,(function(t){"use strict";function e(I,...b){return(...S)=>I(...b,...S)}o(e,"apply");function r(I){return function(...b){var S=b.pop();return I.call(this,b,S)}}o(r,"initialParams");var n=typeof queueMicrotask=="function"&&queueMicrotask,i=typeof setImmediate=="function"&&setImmediate,s=typeof process=="object"&&typeof process.nextTick=="function";function a(I){setTimeout(I,0)}o(a,"fallback");function c(I){return(b,...S)=>I(()=>b(...S))}o(c,"wrap");var l;n?l=queueMicrotask:i?l=setImmediate:s?l=process.nextTick:l=a;var u=c(l);function d(I){return p(I)?function(...b){let S=b.pop(),R=I.apply(this,b);return f(R,S)}:r(function(b,S){var R;try{R=I.apply(this,b)}catch(k){return S(k)}if(R&&typeof R.then=="function")return f(R,S);S(null,R)})}o(d,"asyncify");function f(I,b){return I.then(S=>{h(b,null,S)},S=>{h(b,S&&(S instanceof Error||S.message)?S:new Error(S))})}o(f,"handlePromise");function h(I,b,S){try{I(b,S)}catch(R){u(k=>{throw k},R)}}o(h,"invokeCallback");function p(I){return I[Symbol.toStringTag]==="AsyncFunction"}o(p,"isAsync");function m(I){return I[Symbol.toStringTag]==="AsyncGenerator"}o(m,"isAsyncGenerator");function A(I){return typeof I[Symbol.asyncIterator]=="function"}o(A,"isAsyncIterable");function E(I){if(typeof I!="function")throw new Error("expected a function");return p(I)?d(I):I}o(E,"wrapAsync");function y(I,b){if(b||(b=I.length),!b)throw new Error("arity is undefined");function S(...R){return typeof R[b-1]=="function"?I.apply(this,R):new Promise((k,L)=>{R[b-1]=(M,...G)=>{if(M)return L(M);k(G.length>1?G:G[0])},I.apply(this,R)})}return o(S,"awaitable"),S}o(y,"awaitify");function C(I){return o(function(S,...R){return y(function(L){var M=this;return I(S,(G,j)=>{E(G).apply(M,R.concat(j))},L)})},"applyEach")}o(C,"applyEach$1");function w(I,b,S,R){b=b||[];var k=[],L=0,M=E(S);return I(b,(G,j,be)=>{var gt=L++;M(G,(vt,Ct)=>{k[gt]=Ct,be(vt)})},G=>{R(G,k)})}o(w,"_asyncMap");function B(I){return I&&typeof I.length=="number"&&I.length>=0&&I.length%1===0}o(B,"isArrayLike");var U={};function N(I){function b(...S){if(I!==null){var R=I;I=null,R.apply(this,S)}}return o(b,"wrapper"),Object.assign(b,I),b}o(N,"once");function $(I){return I[Symbol.iterator]&&I[Symbol.iterator]()}o($,"getIterator");function Q(I){var b=-1,S=I.length;return o(function(){return++b=b||M||k||(M=!0,I.next().then(({value:Ct,done:lo})=>{if(!(L||k)){if(M=!1,lo){k=!0,G<=0&&R(null);return}G++,S(Ct,j,gt),j++,be()}}).catch(vt))}o(be,"replenish");function gt(Ct,lo){if(G-=1,!L){if(Ct)return vt(Ct);if(Ct===!1){k=!0,L=!0;return}if(lo===U||k&&G<=0)return k=!0,R(null);be()}}o(gt,"iterateeCallback");function vt(Ct){L||(M=!1,k=!0,R(Ct))}o(vt,"handleError"),be()}o(de,"asyncEachOfLimit");var Se=o(I=>(b,S,R)=>{if(R=N(R),I<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!b)return R(null);if(m(b))return de(b,I,S,R);if(A(b))return de(b[Symbol.asyncIterator](),I,S,R);var k=W(b),L=!1,M=!1,G=0,j=!1;function be(vt,Ct){if(!M)if(G-=1,vt)L=!0,R(vt);else if(vt===!1)L=!0,M=!0;else{if(Ct===U||L&&G<=0)return L=!0,R(null);j||gt()}}o(be,"iterateeCallback");function gt(){for(j=!0;G1?k:k[0])}return o(S,"callback"),S[Fl]=new Promise((R,k)=>{I=R,b=k}),S}o(ed,"promiseCallback");function JE(I,b,S){typeof b!="number"&&(S=b,b=null),S=N(S||ed());var R=Object.keys(I).length;if(!R)return S(null);b||(b=R);var k={},L=0,M=!1,G=!1,j=Object.create(null),be=[],gt=[],vt={};Object.keys(I).forEach(Ce=>{var De=I[Ce];if(!Array.isArray(De)){Ct(Ce,[De]),gt.push(Ce);return}var bt=De.slice(0,De.length-1),ar=bt.length;if(ar===0){Ct(Ce,De),gt.push(Ce);return}vt[Ce]=ar,bt.forEach(In=>{if(!I[In])throw new Error("async.auto task `"+Ce+"` has a non-existent dependency `"+In+"` in "+bt.join(", "));vA(In,()=>{ar--,ar===0&&Ct(Ce,De)})})}),Nt(),lo();function Ct(Ce,De){be.push(()=>iC(Ce,De))}o(Ct,"enqueueTask");function lo(){if(!M){if(be.length===0&&L===0)return S(null,k);for(;be.length&&Lbt()),lo()}o(zf,"taskComplete");function iC(Ce,De){if(!G){var bt=ue((In,...uo)=>{if(L--,In===!1){M=!0;return}if(uo.length<2&&([uo]=uo),In){var NA={};if(Object.keys(k).forEach(Vf=>{NA[Vf]=k[Vf]}),NA[Ce]=uo,G=!0,j=Object.create(null),M)return;S(In,NA)}else k[Ce]=uo,zf(Ce)});L++;var ar=E(De[De.length-1]);De.length>1?ar(k,bt):ar(bt)}}o(iC,"runTask");function Nt(){for(var Ce,De=0;gt.length;)Ce=gt.pop(),De++,Te(Ce).forEach(bt=>{--vt[bt]===0&>.push(bt)});if(De!==R)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}o(Nt,"checkForDeadlocks");function Te(Ce){var De=[];return Object.keys(I).forEach(bt=>{let ar=I[bt];Array.isArray(ar)&&ar.indexOf(Ce)>=0&&De.push(bt)}),De}return o(Te,"getDependents"),S[Fl]}o(JE,"auto");var aP=/^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/,QS=/^(?:async\s+)?\(?\s*([^)=]+)\s*\)?(?:\s*=>)/,kS=/,/,YE=/(=.+)?(\s*)$/;function KE(I){let b="",S=0,R=I.indexOf("*/");for(;S>> no match, partial?`,e,f,r,h),f===c))}var m;if(typeof u=="string"?(m=d===u,this.debug("string match",u,d,m)):(m=d.match(u),this.debug("pattern match",u,d,m)),!m)return!1}if(s===c&&a===l)return!0;if(s===c)return n;if(a===l)return s===c-1&&e[s]==="";throw new Error("wtf?")}braceExpand(){return ywe(this.pattern,this.options)}parse(e,r){q2(e);let n=this.options;if(e==="**")if(n.noglobstar)e="*";else return Ha;if(e==="")return"";let i="",s=!1,a=!1,c=[],l=[],u,d=!1,f=-1,h=-1,p,m,A,E=e.charAt(0)===".",y=n.dot||E,C=o(()=>E?"":y?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)","patternStart"),w=o(N=>N.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)","subPatternStart"),B=o(()=>{if(u){switch(u){case"*":i+=h8,s=!0;break;case"?":i+=m8,s=!0;break;default:i+="\\"+u;break}this.debug("clearStateChar %j %j",u,i),u=!1}},"clearStateChar");for(let N=0,$;N(V||(V="\\"),H+H+V+"|")),this.debug(`tail=%j + %s`,N,N,m,i);let $=m.type==="*"?h8:m.type==="?"?m8:"\\"+m.type;s=!0,i=i.slice(0,m.reStart)+$+"\\("+N}B(),a&&(i+="\\\\");let P=kgt[i.charAt(0)];for(let N=l.length-1;N>-1;N--){let $=l[N],Q=i.slice(0,$.reStart),H=i.slice($.reStart,$.reEnd-8),V=i.slice($.reEnd),W=i.slice($.reEnd-8,$.reEnd)+V,ue=Q.split(")").length,de=Q.split("(").length-ue,Se=V;for(let fe=0;fe(a=a.map(c=>typeof c=="string"?Fgt(c):c===Ha?Ha:c._src).reduce((c,l)=>(c[c.length-1]===Ha&&l===Ha||c.push(l),c),[]),a.forEach((c,l)=>{c!==Ha||a[l-1]===Ha||(l===0?a.length>1?a[l+1]="(?:\\/|"+n+"\\/)?"+a[l+1]:a[l]=n:l===a.length-1?a[l-1]+="(?:\\/|"+n+")?":(a[l-1]+="(?:\\/|\\/"+n+"\\/)"+a[l+1],a[l+1]=Ha))}),a.filter(c=>c!==Ha).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,i)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;A8.sep!=="/"&&(e=e.split(A8.sep).join("/")),e=e.split(mwe),this.debug(this.pattern,"split",e);let i=this.set;this.debug(this.pattern,"set",i);let s;for(let a=e.length-1;a>=0&&(s=e[a],!s);a--);for(let a=0;a{Iwe.exports=wwe;var E8=require("fs"),{EventEmitter:Ugt}=require("events"),{Minimatch:y8}=Ewe(),{resolve:qgt}=require("path");function Ggt(t,e){return new Promise((r,n)=>{E8.readdir(t,{withFileTypes:!0},(i,s)=>{if(i)switch(i.code){case"ENOTDIR":e?n(i):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(i);break}else r(s)})})}o(Ggt,"readdir");function Cwe(t,e){return new Promise((r,n)=>{(e?E8.stat:E8.lstat)(t,(s,a)=>{s?s.code==="ENOENT"?r(e?Cwe(t,!1):null):r(null):r(a)})})}o(Cwe,"stat");async function*bwe(t,e,r,n,i,s){let a=await Ggt(e+t,s);for(let c of a){let l=c.name;l===void 0&&(l=c,n=!0);let u=t+"/"+l,d=u.slice(1),f=e+"/"+d,h=null;(n||r)&&(h=await Cwe(f,r)),!h&&c.name!==void 0&&(h=c),h===null&&(h={isDirectory:o(()=>!1,"isDirectory")}),h.isDirectory()?i(d)||(yield{relative:d,absolute:f,stats:h},yield*bwe(u,e,r,n,i,!1)):yield{relative:d,absolute:f,stats:h}}}o(bwe,"exploreWalkAsync");async function*Hgt(t,e,r,n){yield*bwe("",t,e,r,n,!0)}o(Hgt,"explore");function zgt(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}o(zgt,"readOptions");var G2=class extends Ugt{static{o(this,"ReaddirGlob")}constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=zgt(r||{}),this.matchers=[],this.options.pattern){let i=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=i.map(s=>new y8(s,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let i=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=i.map(s=>new y8(s,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let i=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=i.map(s=>new y8(s,{dot:!0}))}this.iterator=Hgt(qgt(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",i=>this._matches.push(this.options.absolute?i.absolute:i.relative)),this.on("error",i=>n(i)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(i=>i.match(n)))&&!this.ignoreMatchers.some(i=>i.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,i=e.value.absolute;this.options.mark&&r&&(n+="/",i+="/"),this.options.stat?this.emit("match",{relative:n,absolute:i,stat:e.value.stats}):this.emit("match",{relative:n,absolute:i})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}abort(){this.aborted=!0}pause(){this.paused=!0}resume(){this.paused=!1,this.inactive&&(this.inactive=!1,this._next())}};function wwe(t,e,r){return new G2(t,e,r)}o(wwe,"readdirGlob");wwe.ReaddirGlob=G2});var xwe=g((H2,Bwe)=>{(function(t,e){typeof H2=="object"&&typeof Bwe<"u"?e(H2):typeof define=="function"&&define.amd?define(["exports"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.async={}))})(H2,(function(t){"use strict";function e(I,...b){return(...S)=>I(...b,...S)}o(e,"apply");function r(I){return function(...b){var S=b.pop();return I.call(this,b,S)}}o(r,"initialParams");var n=typeof queueMicrotask=="function"&&queueMicrotask,i=typeof setImmediate=="function"&&setImmediate,s=typeof process=="object"&&typeof process.nextTick=="function";function a(I){setTimeout(I,0)}o(a,"fallback");function c(I){return(b,...S)=>I(()=>b(...S))}o(c,"wrap");var l;n?l=queueMicrotask:i?l=setImmediate:s?l=process.nextTick:l=a;var u=c(l);function d(I){return p(I)?function(...b){let S=b.pop(),R=I.apply(this,b);return f(R,S)}:r(function(b,S){var R;try{R=I.apply(this,b)}catch(k){return S(k)}if(R&&typeof R.then=="function")return f(R,S);S(null,R)})}o(d,"asyncify");function f(I,b){return I.then(S=>{h(b,null,S)},S=>{h(b,S&&(S instanceof Error||S.message)?S:new Error(S))})}o(f,"handlePromise");function h(I,b,S){try{I(b,S)}catch(R){u(k=>{throw k},R)}}o(h,"invokeCallback");function p(I){return I[Symbol.toStringTag]==="AsyncFunction"}o(p,"isAsync");function m(I){return I[Symbol.toStringTag]==="AsyncGenerator"}o(m,"isAsyncGenerator");function A(I){return typeof I[Symbol.asyncIterator]=="function"}o(A,"isAsyncIterable");function E(I){if(typeof I!="function")throw new Error("expected a function");return p(I)?d(I):I}o(E,"wrapAsync");function y(I,b){if(b||(b=I.length),!b)throw new Error("arity is undefined");function S(...R){return typeof R[b-1]=="function"?I.apply(this,R):new Promise((k,L)=>{R[b-1]=(M,...G)=>{if(M)return L(M);k(G.length>1?G:G[0])},I.apply(this,R)})}return o(S,"awaitable"),S}o(y,"awaitify");function C(I){return o(function(S,...R){return y(function(L){var M=this;return I(S,(G,j)=>{E(G).apply(M,R.concat(j))},L)})},"applyEach")}o(C,"applyEach$1");function w(I,b,S,R){b=b||[];var k=[],L=0,M=E(S);return I(b,(G,j,be)=>{var gt=L++;M(G,(vt,Ct)=>{k[gt]=Ct,be(vt)})},G=>{R(G,k)})}o(w,"_asyncMap");function B(I){return I&&typeof I.length=="number"&&I.length>=0&&I.length%1===0}o(B,"isArrayLike");var U={};function N(I){function b(...S){if(I!==null){var R=I;I=null,R.apply(this,S)}}return o(b,"wrapper"),Object.assign(b,I),b}o(N,"once");function $(I){return I[Symbol.iterator]&&I[Symbol.iterator]()}o($,"getIterator");function Q(I){var b=-1,S=I.length;return o(function(){return++b=b||M||k||(M=!0,I.next().then(({value:Ct,done:lo})=>{if(!(L||k)){if(M=!1,lo){k=!0,G<=0&&R(null);return}G++,S(Ct,j,gt),j++,be()}}).catch(vt))}o(be,"replenish");function gt(Ct,lo){if(G-=1,!L){if(Ct)return vt(Ct);if(Ct===!1){k=!0,L=!0;return}if(lo===U||k&&G<=0)return k=!0,R(null);be()}}o(gt,"iterateeCallback");function vt(Ct){L||(M=!1,k=!0,R(Ct))}o(vt,"handleError"),be()}o(de,"asyncEachOfLimit");var Se=o(I=>(b,S,R)=>{if(R=N(R),I<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!b)return R(null);if(m(b))return de(b,I,S,R);if(A(b))return de(b[Symbol.asyncIterator](),I,S,R);var k=W(b),L=!1,M=!1,G=0,j=!1;function be(vt,Ct){if(!M)if(G-=1,vt)L=!0,R(vt);else if(vt===!1)L=!0,M=!0;else{if(Ct===U||L&&G<=0)return L=!0,R(null);j||gt()}}o(be,"iterateeCallback");function gt(){for(j=!0;G1?k:k[0])}return o(S,"callback"),S[Ml]=new Promise((R,k)=>{I=R,b=k}),S}o(td,"promiseCallback");function YE(I,b,S){typeof b!="number"&&(S=b,b=null),S=N(S||td());var R=Object.keys(I).length;if(!R)return S(null);b||(b=R);var k={},L=0,M=!1,G=!1,j=Object.create(null),be=[],gt=[],vt={};Object.keys(I).forEach(Ce=>{var De=I[Ce];if(!Array.isArray(De)){Ct(Ce,[De]),gt.push(Ce);return}var bt=De.slice(0,De.length-1),ar=bt.length;if(ar===0){Ct(Ce,De),gt.push(Ce);return}vt[Ce]=ar,bt.forEach(In=>{if(!I[In])throw new Error("async.auto task `"+Ce+"` has a non-existent dependency `"+In+"` in "+bt.join(", "));NA(In,()=>{ar--,ar===0&&Ct(Ce,De)})})}),Nt(),lo();function Ct(Ce,De){be.push(()=>sC(Ce,De))}o(Ct,"enqueueTask");function lo(){if(!M){if(be.length===0&&L===0)return S(null,k);for(;be.length&&Lbt()),lo()}o(Vf,"taskComplete");function sC(Ce,De){if(!G){var bt=ue((In,...uo)=>{if(L--,In===!1){M=!0;return}if(uo.length<2&&([uo]=uo),In){var _A={};if(Object.keys(k).forEach($f=>{_A[$f]=k[$f]}),_A[Ce]=uo,G=!0,j=Object.create(null),M)return;S(In,_A)}else k[Ce]=uo,Vf(Ce)});L++;var ar=E(De[De.length-1]);De.length>1?ar(k,bt):ar(bt)}}o(sC,"runTask");function Nt(){for(var Ce,De=0;gt.length;)Ce=gt.pop(),De++,Te(Ce).forEach(bt=>{--vt[bt]===0&>.push(bt)});if(De!==R)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}o(Nt,"checkForDeadlocks");function Te(Ce){var De=[];return Object.keys(I).forEach(bt=>{let ar=I[bt];Array.isArray(ar)&&ar.indexOf(Ce)>=0&&De.push(bt)}),De}return o(Te,"getDependents"),S[Ml]}o(YE,"auto");var cP=/^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/,kS=/^(?:async\s+)?\(?\s*([^)=]+)\s*\)?(?:\s*=>)/,PS=/,/,KE=/(=.+)?(\s*)$/;function XE(I){let b="",S=0,R=I.indexOf("*/");for(;Sk.replace(YE,"").trim())}o(PS,"parseParams");function IA(I,b){var S={};return Object.keys(I).forEach(R=>{var k=I[R],L,M=p(k),G=!M&&k.length===1||M&&k.length===0;if(Array.isArray(k))L=[...k],k=L.pop(),S[R]=L.concat(L.length>0?j:k);else if(G)S[R]=k;else{if(L=PS(k),k.length===0&&!M&&L.length===0)throw new Error("autoInject task functions require explicit parameters.");M||L.pop(),S[R]=L.concat(j)}function j(be,gt){var vt=L.map(Ct=>be[Ct]);vt.push(gt),E(k)(...vt)}o(j,"newTask")}),JE(S,b)}o(IA,"autoInject");class OS{static{o(this,"DLL")}constructor(){this.head=this.tail=null,this.length=0}removeLink(b){return b.prev?b.prev.next=b.next:this.head=b.next,b.next?b.next.prev=b.prev:this.tail=b.prev,b.prev=b.next=null,this.length-=1,b}empty(){for(;this.head;)this.shift();return this}insertAfter(b,S){S.prev=b,S.next=b.next,b.next?b.next.prev=S:this.tail=S,b.next=S,this.length+=1}insertBefore(b,S){S.prev=b.prev,S.next=b,b.prev?b.prev.next=S:this.head=S,b.prev=S,this.length+=1}unshift(b){this.head?this.insertBefore(this.head,b):XE(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):XE(this,b)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var b=this.head;b;)yield b.data,b=b.next}remove(b){for(var S=this.head;S;){var{next:R}=S;b(S)&&this.removeLink(S),S=R}return this}}function XE(I,b){I.length=1,I.head=I.tail=b}o(XE,"setInitial");function SA(I,b,S){if(b==null)b=1;else if(b===0)throw new RangeError("Concurrency must not be zero");var R=E(I),k=0,L=[];let M={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function G(Te,Ce){M[Te].push(Ce)}o(G,"on");function j(Te,Ce){let De=o((...bt)=>{be(Te,De),Ce(...bt)},"handleAndRemove");M[Te].push(De)}o(j,"once");function be(Te,Ce){if(!Te)return Object.keys(M).forEach(De=>M[De]=[]);if(!Ce)return M[Te]=[];M[Te]=M[Te].filter(De=>De!==Ce)}o(be,"off");function gt(Te,...Ce){M[Te].forEach(De=>De(...Ce))}o(gt,"trigger");var vt=!1;function Ct(Te,Ce,De,bt){if(bt!=null&&typeof bt!="function")throw new Error("task callback must be a function");Nt.started=!0;var ar,In;function uo(Vf,...sC){if(Vf)return De?In(Vf):ar();if(sC.length<=1)return ar(sC[0]);ar(sC)}o(uo,"promiseCallback");var NA=Nt._createTaskItem(Te,De?uo:bt||uo);if(Ce?Nt._tasks.unshift(NA):Nt._tasks.push(NA),vt||(vt=!0,u(()=>{vt=!1,Nt.process()})),De||!bt)return new Promise((Vf,sC)=>{ar=Vf,In=sC})}o(Ct,"_insert");function lo(Te){return function(Ce,...De){k-=1;for(var bt=0,ar=Te.length;bt0&&L.splice(uo,1),In.callback(Ce,...De),Ce!=null&>("error",Ce,In.data)}k<=Nt.concurrency-Nt.buffer&>("unsaturated"),Nt.idle()&>("drain"),Nt.process()}}o(lo,"_createCB");function vA(Te){return Te.length===0&&Nt.idle()?(u(()=>gt("drain")),!0):!1}o(vA,"_maybeDrain");let zf=o(Te=>Ce=>{if(!Ce)return new Promise((De,bt)=>{j(Te,(ar,In)=>{if(ar)return bt(ar);De(In)})});be(Te),G(Te,Ce)},"eventMethod");var iC=!1,Nt={_tasks:new OS,_createTaskItem(Te,Ce){return{data:Te,callback:Ce}},*[Symbol.iterator](){yield*Nt._tasks[Symbol.iterator]()},concurrency:b,payload:S,buffer:b/4,started:!1,paused:!1,push(Te,Ce){return Array.isArray(Te)?vA(Te)?void 0:Te.map(De=>Ct(De,!1,!1,Ce)):Ct(Te,!1,!1,Ce)},pushAsync(Te,Ce){return Array.isArray(Te)?vA(Te)?void 0:Te.map(De=>Ct(De,!1,!0,Ce)):Ct(Te,!1,!0,Ce)},kill(){be(),Nt._tasks.empty()},unshift(Te,Ce){return Array.isArray(Te)?vA(Te)?void 0:Te.map(De=>Ct(De,!0,!1,Ce)):Ct(Te,!0,!1,Ce)},unshiftAsync(Te,Ce){return Array.isArray(Te)?vA(Te)?void 0:Te.map(De=>Ct(De,!0,!0,Ce)):Ct(Te,!0,!0,Ce)},remove(Te){Nt._tasks.remove(Te)},process(){if(!iC){for(iC=!0;!Nt.paused&&k{k(b,L,(j,be)=>{b=be,G(j)})},L=>R(L,b))}o(LS,"reduce");var ha=y(LS,4);function ZE(...I){var b=I.map(E);return function(...S){var R=this,k=S[S.length-1];return typeof k=="function"?S.pop():k=ed(),ha(b,S,(L,M,G)=>{M.apply(R,L.concat((j,...be)=>{G(j,be)}))},(L,M)=>k(L,...M)),k[Fl]}}o(ZE,"seq");function Ee(...I){return ZE(...I.reverse())}o(Ee,"compose");function O(I,b,S,R){return w(Se(b),I,S,R)}o(O,"mapLimit");var x=y(O,4);function F(I,b,S,R){var k=E(S);return x(I,b,(L,M)=>{k(L,(G,...j)=>G?M(G):M(G,j))},(L,M)=>{for(var G=[],j=0;j{var M=!1,G;let j=E(k);S(R,(be,gt,vt)=>{j(be,(Ct,lo)=>{if(Ct||Ct===!1)return vt(Ct);if(I(lo)&&!G)return M=!0,G=b(!0,be),vt(null,U);vt()})},be=>{if(be)return L(be);L(null,M?G:b(!1))})}}o(Vt,"_createTester");function Hf(I,b,S){return Vt(R=>R,(R,k)=>k)(or,I,b,S)}o(Hf,"detect");var xA=y(Hf,3);function FS(I,b,S,R){return Vt(k=>k,(k,L)=>L)(Se(b),I,S,R)}o(FS,"detectLimit");var MS=y(FS,4);function WOe(I,b,S){return Vt(R=>R,(R,k)=>k)(Se(1),I,b,S)}o(WOe,"detectSeries");var US=y(WOe,3);function oK(I){return(b,...S)=>E(b)(...S,(R,...k)=>{typeof console=="object"&&(R?console.error&&console.error(R):console[I]&&k.forEach(L=>console[I](L)))})}o(oK,"consoleFunc");var aK=oK("dir");function JOe(I,b,S){S=ue(S);var R=E(I),k=E(b),L;function M(j,...be){if(j)return S(j);j!==!1&&(L=be,k(...be,G))}o(M,"next");function G(j,be){if(j)return S(j);if(j!==!1){if(!be)return S(null,...L);R(M)}}return o(G,"check"),G(null,!0)}o(JOe,"doWhilst");var eC=y(JOe,3);function cK(I,b,S){let R=E(b);return eC(I,(...k)=>{let L=k.pop();R(...k,(M,G)=>L(M,!G))},S)}o(cK,"doUntil");function lK(I){return(b,S,R)=>I(b,R)}o(lK,"_withoutIndex");function YOe(I,b,S){return or(I,lK(E(b)),S)}o(YOe,"eachLimit$2");var qS=y(YOe,3);function KOe(I,b,S,R){return Se(b)(I,lK(E(S)),R)}o(KOe,"eachLimit");var tC=y(KOe,4);function XOe(I,b,S){return tC(I,1,b,S)}o(XOe,"eachSeries");var rC=y(XOe,3);function cP(I){return p(I)?I:function(...b){var S=b.pop(),R=!0;b.push((...k)=>{R?u(()=>S(...k)):S(...k)}),I.apply(this,b),R=!1}}o(cP,"ensureAsync");function ZOe(I,b,S){return Vt(R=>!R,R=>!R)(or,I,b,S)}o(ZOe,"every");var GS=y(ZOe,3);function eLe(I,b,S,R){return Vt(k=>!k,k=>!k)(Se(b),I,S,R)}o(eLe,"everyLimit");var HS=y(eLe,4);function tLe(I,b,S){return Vt(R=>!R,R=>!R)(ti,I,b,S)}o(tLe,"everySeries");var zS=y(tLe,3);function rLe(I,b,S,R){var k=new Array(b.length);I(b,(L,M,G)=>{S(L,(j,be)=>{k[M]=!!be,G(j)})},L=>{if(L)return R(L);for(var M=[],G=0;G{S(L,(j,be)=>{if(j)return G(j);be&&k.push({index:M,value:L}),G(j)})},L=>{if(L)return R(L);R(null,k.sort((M,G)=>M.index-G.index).map(M=>M.value))})}o(nLe,"filterGeneric");function VS(I,b,S,R){var k=B(b)?rLe:nLe;return k(I,b,E(S),R)}o(VS,"_filter");function iLe(I,b,S){return VS(or,I,b,S)}o(iLe,"filter");var $S=y(iLe,3);function sLe(I,b,S,R){return VS(Se(b),I,S,R)}o(sLe,"filterLimit");var jS=y(sLe,4);function oLe(I,b,S){return VS(ti,I,b,S)}o(oLe,"filterSeries");var WS=y(oLe,3);function aLe(I,b){var S=ue(b),R=E(cP(I));function k(L){if(L)return S(L);L!==!1&&R(k)}return o(k,"next"),k()}o(aLe,"forever");var uK=y(aLe,2);function cLe(I,b,S,R){var k=E(S);return x(I,b,(L,M)=>{k(L,(G,j)=>G?M(G):M(G,{key:j,val:L}))},(L,M)=>{for(var G={},{hasOwnProperty:j}=Object.prototype,be=0;be{L(M,G,(be,gt)=>{if(be)return j(be);k[G]=gt,j(be)})},M=>R(M,k))}o(lLe,"mapValuesLimit");var YS=y(lLe,4);function pK(I,b,S){return YS(I,1/0,b,S)}o(pK,"mapValues");function AK(I,b,S){return YS(I,1,b,S)}o(AK,"mapValuesSeries");function mK(I,b=S=>S){var S=Object.create(null),R=Object.create(null),k=E(I),L=r((M,G)=>{var j=b(...M);j in S?u(()=>G(null,...S[j])):j in R?R[j].push(G):(R[j]=[G],k(...M,(be,...gt)=>{be||(S[j]=gt);var vt=R[j];delete R[j];for(var Ct=0,lo=vt.length;Ct{var R=B(b)?[]:{};I(b,(k,L,M)=>{E(k)((G,...j)=>{j.length<2&&([j]=j),R[L]=j,M(G)})},k=>S(k,R))},3);function yK(I,b){return lP(or,I,b)}o(yK,"parallel");function EK(I,b,S){return lP(Se(b),I,S)}o(EK,"parallelLimit");function uP(I,b){var S=E(I);return SA((R,k)=>{S(R[0],k)},b,1)}o(uP,"queue");class uLe{static{o(this,"Heap")}constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(b){let S;for(;b>0&&dP(this.heap[b],this.heap[S=CK(b)]);){let R=this.heap[b];this.heap[b]=this.heap[S],this.heap[S]=R,b=S}}percDown(b){let S;for(;(S=dLe(b))=0;R--)this.percDown(R);return this}}function dLe(I){return(I<<1)+1}o(dLe,"leftChi");function CK(I){return(I+1>>1)-1}o(CK,"parent");function dP(I,b){return I.priority!==b.priority?I.priority({data:M,priority:G,callback:j});function L(M,G){return Array.isArray(M)?M.map(j=>({data:j,priority:G})):{data:M,priority:G}}return o(L,"createDataItems"),S.push=function(M,G=0,j){return R(L(M,G),j)},S.pushAsync=function(M,G=0,j){return k(L(M,G),j)},delete S.unshift,delete S.unshiftAsync,S}o(bK,"priorityQueue");function fLe(I,b){if(b=N(b),!Array.isArray(I))return b(new TypeError("First argument to race must be an array of functions"));if(!I.length)return b();for(var S=0,R=I.length;S{let G={};if(L&&(G.error=L),M.length>0){var j=M;M.length<=1&&([j]=M),G.value=j}k(null,G)}),b.apply(this,R)},"reflectOn"))}o(ZS,"reflect");function IK(I){var b;return Array.isArray(I)?b=I.map(ZS):(b={},Object.keys(I).forEach(S=>{b[S]=ZS.call(this,I[S])})),b}o(IK,"reflectAll");function fP(I,b,S,R){let k=E(S);return VS(I,b,(L,M)=>{k(L,(G,j)=>{M(G,!j)})},R)}o(fP,"reject$2");function hLe(I,b,S){return fP(or,I,b,S)}o(hLe,"reject");var SK=y(hLe,3);function pLe(I,b,S,R){return fP(Se(b),I,S,R)}o(pLe,"rejectLimit");var BK=y(pLe,4);function ALe(I,b,S){return fP(ti,I,b,S)}o(ALe,"rejectSeries");var xK=y(ALe,3);function vK(I){return function(){return I}}o(vK,"constant");let hP=5,NK=0;function eB(I,b,S){var R={times:hP,intervalFunc:vK(NK)};if(arguments.length<3&&typeof I=="function"?(S=b||ed(),b=I):(mLe(R,I),S=S||ed()),typeof b!="function")throw new Error("Invalid arguments for async.retry");var k=E(b),L=1;function M(){k((G,...j)=>{G!==!1&&(G&&L++{(k.lengthR)(or,I,b,S)}o(gLe,"some");var tB=y(gLe,3);function yLe(I,b,S,R){return Vt(Boolean,k=>k)(Se(b),I,S,R)}o(yLe,"someLimit");var rB=y(yLe,4);function ELe(I,b,S){return Vt(Boolean,R=>R)(ti,I,b,S)}o(ELe,"someSeries");var nB=y(ELe,3);function CLe(I,b,S){var R=E(b);return bi(I,(L,M)=>{R(L,(G,j)=>{if(G)return M(G);M(G,{value:L,criteria:j})})},(L,M)=>{if(L)return S(L);S(null,M.sort(k).map(G=>G.value))});function k(L,M){var G=L.criteria,j=M.criteria;return Gj?1:0}}o(CLe,"sortBy");var TK=y(CLe,3);function DK(I,b,S){var R=E(I);return r((k,L)=>{var M=!1,G;function j(){var be=I.name||"anonymous",gt=new Error('Callback function "'+be+'" timed out.');gt.code="ETIMEDOUT",S&&(gt.info=S),M=!0,L(gt)}o(j,"timeoutCallback"),k.push((...be)=>{M||(L(...be),clearTimeout(G))}),G=setTimeout(j,b),R(...k)})}o(DK,"timeout");function bLe(I){for(var b=Array(I);I--;)b[I]=I;return b}o(bLe,"range");function iB(I,b,S,R){var k=E(S);return x(bLe(I),b,k,R)}o(iB,"timesLimit");function QK(I,b,S){return iB(I,1/0,b,S)}o(QK,"times");function kK(I,b,S){return iB(I,1,b,S)}o(kK,"timesSeries");function PK(I,b,S,R){arguments.length<=3&&typeof b=="function"&&(R=S,S=b,b=Array.isArray(I)?[]:{}),R=N(R||ed());var k=E(S);return or(I,(L,M,G)=>{k(b,L,M,G)},L=>R(L,b)),R[Fl]}o(PK,"transform");function wLe(I,b){var S=null,R;return rC(I,(k,L)=>{E(k)((M,...G)=>{if(M===!1)return L(M);G.length<2?[R]=G:R=G,S=M,L(M?null:{})})},()=>b(S,R))}o(wLe,"tryEach");var OK=y(wLe);function LK(I){return(...b)=>(I.unmemoized||I)(...b)}o(LK,"unmemoize");function ILe(I,b,S){S=ue(S);var R=E(b),k=E(I),L=[];function M(j,...be){if(j)return S(j);L=be,j!==!1&&k(G)}o(M,"next");function G(j,be){if(j)return S(j);if(j!==!1){if(!be)return S(null,...L);R(M)}}return o(G,"check"),k(G)}o(ILe,"whilst");var nC=y(ILe,3);function FK(I,b,S){let R=E(I);return nC(k=>R((L,M)=>k(L,!M)),b,S)}o(FK,"until");function SLe(I,b){if(b=N(b),!Array.isArray(I))return b(new Error("First argument to waterfall must be an array of functions"));if(!I.length)return b();var S=0;function R(L){var M=E(I[S++]);M(...L,ue(k))}o(R,"nextTask");function k(L,...M){if(L!==!1){if(L||S===I.length)return b(L,...M);R(M)}}o(k,"next"),R([])}o(SLe,"waterfall");var MK=y(SLe),BLe={apply:e,applyEach:tc,applyEachSeries:WE,asyncify:d,auto:JE,autoInject:IA,cargo:BA,cargoQueue:Bs,compose:Ee,concat:Y,concatLimit:q,concatSeries:Et,constant:Kr,detect:xA,detectLimit:MS,detectSeries:US,dir:aK,doUntil:cK,doWhilst:eC,each:qS,eachLimit:tC,eachOf:or,eachOfLimit:fe,eachOfSeries:ti,eachSeries:rC,ensureAsync:cP,every:GS,everyLimit:HS,everySeries:zS,filter:$S,filterLimit:jS,filterSeries:WS,forever:uK,groupBy:dK,groupByLimit:JS,groupBySeries:fK,log:hK,map:bi,mapLimit:x,mapSeries:wA,mapValues:pK,mapValuesLimit:YS,mapValuesSeries:AK,memoize:mK,nextTick:gK,parallel:yK,parallelLimit:EK,priorityQueue:bK,queue:uP,race:wK,reduce:ha,reduceRight:XS,reflect:ZS,reflectAll:IK,reject:SK,rejectLimit:BK,rejectSeries:xK,retry:eB,retryable:RK,seq:ZE,series:_K,setImmediate:u,some:tB,someLimit:rB,someSeries:nB,sortBy:TK,timeout:DK,times:QK,timesLimit:iB,timesSeries:kK,transform:PK,tryEach:OK,unmemoize:LK,until:FK,waterfall:MK,whilst:nC,all:GS,allLimit:HS,allSeries:zS,any:tB,anyLimit:rB,anySeries:nB,find:xA,findLimit:MS,findSeries:US,flatMap:Y,flatMapLimit:q,flatMapSeries:Et,forEach:qS,forEachSeries:rC,forEachLimit:tC,forEachOf:or,forEachOfSeries:ti,forEachOfLimit:fe,inject:ha,foldl:ha,foldr:XS,select:$S,selectLimit:jS,selectSeries:WS,wrapSync:d,during:nC,doDuring:eC};t.all=GS,t.allLimit=HS,t.allSeries=zS,t.any=tB,t.anyLimit=rB,t.anySeries=nB,t.apply=e,t.applyEach=tc,t.applyEachSeries=WE,t.asyncify=d,t.auto=JE,t.autoInject=IA,t.cargo=BA,t.cargoQueue=Bs,t.compose=Ee,t.concat=Y,t.concatLimit=q,t.concatSeries=Et,t.constant=Kr,t.default=BLe,t.detect=xA,t.detectLimit=MS,t.detectSeries=US,t.dir=aK,t.doDuring=eC,t.doUntil=cK,t.doWhilst=eC,t.during=nC,t.each=qS,t.eachLimit=tC,t.eachOf=or,t.eachOfLimit=fe,t.eachOfSeries=ti,t.eachSeries=rC,t.ensureAsync=cP,t.every=GS,t.everyLimit=HS,t.everySeries=zS,t.filter=$S,t.filterLimit=jS,t.filterSeries=WS,t.find=xA,t.findLimit=MS,t.findSeries=US,t.flatMap=Y,t.flatMapLimit=q,t.flatMapSeries=Et,t.foldl=ha,t.foldr=XS,t.forEach=qS,t.forEachLimit=tC,t.forEachOf=or,t.forEachOfLimit=fe,t.forEachOfSeries=ti,t.forEachSeries=rC,t.forever=uK,t.groupBy=dK,t.groupByLimit=JS,t.groupBySeries=fK,t.inject=ha,t.log=hK,t.map=bi,t.mapLimit=x,t.mapSeries=wA,t.mapValues=pK,t.mapValuesLimit=YS,t.mapValuesSeries=AK,t.memoize=mK,t.nextTick=gK,t.parallel=yK,t.parallelLimit=EK,t.priorityQueue=bK,t.queue=uP,t.race=wK,t.reduce=ha,t.reduceRight=XS,t.reflect=ZS,t.reflectAll=IK,t.reject=SK,t.rejectLimit=BK,t.rejectSeries=xK,t.retry=eB,t.retryable=RK,t.select=$S,t.selectLimit=jS,t.selectSeries=WS,t.seq=ZE,t.series=_K,t.setImmediate=u,t.some=tB,t.someLimit=rB,t.someSeries=nB,t.sortBy=TK,t.timeout=DK,t.times=QK,t.timesLimit=iB,t.timesSeries=kK,t.transform=PK,t.tryEach=OK,t.unmemoize=LK,t.until=FK,t.waterfall=MK,t.whilst=nC,t.wrapSync=d,Object.defineProperty(t,"__esModule",{value:!0})}))});var vwe=g((S0r,xwe)=>{var tf=require("constants"),Ggt=process.cwd,H2=null,Hgt=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return H2||(H2=Ggt.call(process)),H2};try{process.cwd()}catch{}typeof process.chdir=="function"&&(E8=process.chdir,process.chdir=function(t){H2=null,E8.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,E8));var E8;xwe.exports=zgt;function zgt(t){tf.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=a(t.chownSync),t.fchownSync=a(t.fchownSync),t.lchownSync=a(t.lchownSync),t.chmodSync=i(t.chmodSync),t.fchmodSync=i(t.fchmodSync),t.lchmodSync=i(t.lchmodSync),t.stat=c(t.stat),t.fstat=c(t.fstat),t.lstat=c(t.lstat),t.statSync=l(t.statSync),t.fstatSync=l(t.fstatSync),t.lstatSync=l(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(d,f,h){h&&process.nextTick(h)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(d,f,h,p){p&&process.nextTick(p)},t.lchownSync=function(){}),Hgt==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:(function(d){function f(h,p,m){var A=Date.now(),E=0;d(h,p,o(function y(C){if(C&&(C.code==="EACCES"||C.code==="EPERM"||C.code==="EBUSY")&&Date.now()-A<6e4){setTimeout(function(){t.stat(p,function(w,B){w&&w.code==="ENOENT"?d(h,p,y):m(C)})},E),E<100&&(E+=10);return}m&&m(C)},"CB"))}return o(f,"rename"),Object.setPrototypeOf&&Object.setPrototypeOf(f,d),f})(t.rename)),t.read=typeof t.read!="function"?t.read:(function(d){function f(h,p,m,A,E,y){var C;if(y&&typeof y=="function"){var w=0;C=o(function(B,P,U){if(B&&B.code==="EAGAIN"&&w<10)return w++,d.call(t,h,p,m,A,E,C);y.apply(this,arguments)},"callback")}return d.call(t,h,p,m,A,E,C)}return o(f,"read"),Object.setPrototypeOf&&Object.setPrototypeOf(f,d),f})(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:(function(d){return function(f,h,p,m,A){for(var E=0;;)try{return d.call(t,f,h,p,m,A)}catch(y){if(y.code==="EAGAIN"&&E<10){E++;continue}throw y}}})(t.readSync);function e(d){d.lchmod=function(f,h,p){d.open(f,tf.O_WRONLY|tf.O_SYMLINK,h,function(m,A){if(m){p&&p(m);return}d.fchmod(A,h,function(E){d.close(A,function(y){p&&p(E||y)})})})},d.lchmodSync=function(f,h){var p=d.openSync(f,tf.O_WRONLY|tf.O_SYMLINK,h),m=!0,A;try{A=d.fchmodSync(p,h),m=!1}finally{if(m)try{d.closeSync(p)}catch{}else d.closeSync(p)}return A}}o(e,"patchLchmod");function r(d){tf.hasOwnProperty("O_SYMLINK")&&d.futimes?(d.lutimes=function(f,h,p,m){d.open(f,tf.O_SYMLINK,function(A,E){if(A){m&&m(A);return}d.futimes(E,h,p,function(y){d.close(E,function(C){m&&m(y||C)})})})},d.lutimesSync=function(f,h,p){var m=d.openSync(f,tf.O_SYMLINK),A,E=!0;try{A=d.futimesSync(m,h,p),E=!1}finally{if(E)try{d.closeSync(m)}catch{}else d.closeSync(m)}return A}):d.futimes&&(d.lutimes=function(f,h,p,m){m&&process.nextTick(m)},d.lutimesSync=function(){})}o(r,"patchLutimes");function n(d){return d&&function(f,h,p){return d.call(t,f,h,function(m){u(m)&&(m=null),p&&p.apply(this,arguments)})}}o(n,"chmodFix");function i(d){return d&&function(f,h){try{return d.call(t,f,h)}catch(p){if(!u(p))throw p}}}o(i,"chmodFixSync");function s(d){return d&&function(f,h,p,m){return d.call(t,f,h,p,function(A){u(A)&&(A=null),m&&m.apply(this,arguments)})}}o(s,"chownFix");function a(d){return d&&function(f,h,p){try{return d.call(t,f,h,p)}catch(m){if(!u(m))throw m}}}o(a,"chownFixSync");function c(d){return d&&function(f,h,p){typeof h=="function"&&(p=h,h=null);function m(A,E){E&&(E.uid<0&&(E.uid+=4294967296),E.gid<0&&(E.gid+=4294967296)),p&&p.apply(this,arguments)}return o(m,"callback"),h?d.call(t,f,h,m):d.call(t,f,m)}}o(c,"statFix");function l(d){return d&&function(f,h){var p=h?d.call(t,f,h):d.call(t,f);return p&&(p.uid<0&&(p.uid+=4294967296),p.gid<0&&(p.gid+=4294967296)),p}}o(l,"statFixSync");function u(d){if(!d||d.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;return!!(f&&(d.code==="EINVAL"||d.code==="EPERM"))}o(u,"chownErOk")}o(zgt,"patch")});var _we=g((x0r,Rwe)=>{var Nwe=require("stream").Stream;Rwe.exports=Vgt;function Vgt(t){return{ReadStream:e,WriteStream:r};function e(n,i){if(!(this instanceof e))return new e(n,i);Nwe.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var a=Object.keys(i),c=0,l=a.length;cthis.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}t.open(this.path,this.flags,this.mode,function(d,f){if(d){s.emit("error",d),s.readable=!1;return}s.fd=f,s.emit("open",f),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);Nwe.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),a=0,c=s.length;a= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}o(Vgt,"legacy")});var Dwe=g((N0r,Twe)=>{"use strict";Twe.exports=jgt;var $gt=Object.getPrototypeOf||function(t){return t.__proto__};function jgt(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:$gt(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}o(jgt,"clone")});var I8=g((_0r,w8)=>{var Er=require("fs"),Wgt=vwe(),Jgt=_we(),Ygt=Dwe(),z2=require("util"),Jn,$2;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Jn=Symbol.for("graceful-fs.queue"),$2=Symbol.for("graceful-fs.previous")):(Jn="___graceful-fs.queue",$2="___graceful-fs.previous");function Kgt(){}o(Kgt,"noop");function Pwe(t,e){Object.defineProperty(t,Jn,{get:o(function(){return e},"get")})}o(Pwe,"publishQueue");var Bp=Kgt;z2.debuglog?Bp=z2.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Bp=o(function(){var t=z2.format.apply(z2,arguments);t="GFS4: "+t.split(/\n/).join(` -GFS4: `),console.error(t)},"debug"));Er[Jn]||(Qwe=global[Jn]||[],Pwe(Er,Qwe),Er.close=(function(t){function e(r,n){return t.call(Er,r,function(i){i||kwe(),typeof n=="function"&&n.apply(this,arguments)})}return o(e,"close"),Object.defineProperty(e,$2,{value:t}),e})(Er.close),Er.closeSync=(function(t){function e(r){t.apply(Er,arguments),kwe()}return o(e,"closeSync"),Object.defineProperty(e,$2,{value:t}),e})(Er.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Bp(Er[Jn]),require("assert").equal(Er[Jn].length,0)}));var Qwe;global[Jn]||Pwe(global,Er[Jn]);w8.exports=C8(Ygt(Er));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Er.__patched&&(w8.exports=C8(Er),Er.__patched=!0);function C8(t){Wgt(t),t.gracefulify=C8,t.createReadStream=P,t.createWriteStream=U;var e=t.readFile;t.readFile=r;function r(Q,H,V){return typeof H=="function"&&(V=H,H=null),W(Q,H,V);function W(ue,de,Se,K){return e(ue,de,function(fe){fe&&(fe.code==="EMFILE"||fe.code==="ENFILE")?ly([W,[ue,de,Se],fe,K||Date.now(),Date.now()]):typeof Se=="function"&&Se.apply(this,arguments)})}o(W,"go$readFile")}o(r,"readFile");var n=t.writeFile;t.writeFile=i;function i(Q,H,V,W){return typeof V=="function"&&(W=V,V=null),ue(Q,H,V,W);function ue(de,Se,K,fe,Tt){return n(de,Se,K,function(yt){yt&&(yt.code==="EMFILE"||yt.code==="ENFILE")?ly([ue,[de,Se,K,fe],yt,Tt||Date.now(),Date.now()]):typeof fe=="function"&&fe.apply(this,arguments)})}o(ue,"go$writeFile")}o(i,"writeFile");var s=t.appendFile;s&&(t.appendFile=a);function a(Q,H,V,W){return typeof V=="function"&&(W=V,V=null),ue(Q,H,V,W);function ue(de,Se,K,fe,Tt){return s(de,Se,K,function(yt){yt&&(yt.code==="EMFILE"||yt.code==="ENFILE")?ly([ue,[de,Se,K,fe],yt,Tt||Date.now(),Date.now()]):typeof fe=="function"&&fe.apply(this,arguments)})}o(ue,"go$appendFile")}o(a,"appendFile");var c=t.copyFile;c&&(t.copyFile=l);function l(Q,H,V,W){return typeof V=="function"&&(W=V,V=0),ue(Q,H,V,W);function ue(de,Se,K,fe,Tt){return c(de,Se,K,function(yt){yt&&(yt.code==="EMFILE"||yt.code==="ENFILE")?ly([ue,[de,Se,K,fe],yt,Tt||Date.now(),Date.now()]):typeof fe=="function"&&fe.apply(this,arguments)})}o(ue,"go$copyFile")}o(l,"copyFile");var u=t.readdir;t.readdir=f;var d=/^v[0-5]\./;function f(Q,H,V){typeof H=="function"&&(V=H,H=null);var W=d.test(process.version)?o(function(Se,K,fe,Tt){return u(Se,ue(Se,K,fe,Tt))},"go$readdir"):o(function(Se,K,fe,Tt){return u(Se,K,ue(Se,K,fe,Tt))},"go$readdir");return W(Q,H,V);function ue(de,Se,K,fe){return function(Tt,yt){Tt&&(Tt.code==="EMFILE"||Tt.code==="ENFILE")?ly([W,[de,Se,K],Tt,fe||Date.now(),Date.now()]):(yt&&yt.sort&&yt.sort(),typeof K=="function"&&K.call(this,Tt,yt))}}}if(o(f,"readdir"),process.version.substr(0,4)==="v0.8"){var h=Jgt(t);y=h.ReadStream,w=h.WriteStream}var p=t.ReadStream;p&&(y.prototype=Object.create(p.prototype),y.prototype.open=C);var m=t.WriteStream;m&&(w.prototype=Object.create(m.prototype),w.prototype.open=B),Object.defineProperty(t,"ReadStream",{get:o(function(){return y},"get"),set:o(function(Q){y=Q},"set"),enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:o(function(){return w},"get"),set:o(function(Q){w=Q},"set"),enumerable:!0,configurable:!0});var A=y;Object.defineProperty(t,"FileReadStream",{get:o(function(){return A},"get"),set:o(function(Q){A=Q},"set"),enumerable:!0,configurable:!0});var E=w;Object.defineProperty(t,"FileWriteStream",{get:o(function(){return E},"get"),set:o(function(Q){E=Q},"set"),enumerable:!0,configurable:!0});function y(Q,H){return this instanceof y?(p.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}o(y,"ReadStream");function C(){var Q=this;$(Q.path,Q.flags,Q.mode,function(H,V){H?(Q.autoClose&&Q.destroy(),Q.emit("error",H)):(Q.fd=V,Q.emit("open",V),Q.read())})}o(C,"ReadStream$open");function w(Q,H){return this instanceof w?(m.apply(this,arguments),this):w.apply(Object.create(w.prototype),arguments)}o(w,"WriteStream");function B(){var Q=this;$(Q.path,Q.flags,Q.mode,function(H,V){H?(Q.destroy(),Q.emit("error",H)):(Q.fd=V,Q.emit("open",V))})}o(B,"WriteStream$open");function P(Q,H){return new t.ReadStream(Q,H)}o(P,"createReadStream");function U(Q,H){return new t.WriteStream(Q,H)}o(U,"createWriteStream");var N=t.open;t.open=$;function $(Q,H,V,W){return typeof V=="function"&&(W=V,V=null),ue(Q,H,V,W);function ue(de,Se,K,fe,Tt){return N(de,Se,K,function(yt,sr){yt&&(yt.code==="EMFILE"||yt.code==="ENFILE")?ly([ue,[de,Se,K,fe],yt,Tt||Date.now(),Date.now()]):typeof fe=="function"&&fe.apply(this,arguments)})}o(ue,"go$open")}return o($,"open"),t}o(C8,"patch");function ly(t){Bp("ENQUEUE",t[0].name,t[1]),Er[Jn].push(t),b8()}o(ly,"enqueue");var V2;function kwe(){for(var t=Date.now(),e=0;e2&&(Er[Jn][e][3]=t,Er[Jn][e][4]=t);b8()}o(kwe,"resetQueue");function b8(){if(clearTimeout(V2),V2=void 0,Er[Jn].length!==0){var t=Er[Jn].shift(),e=t[0],r=t[1],n=t[2],i=t[3],s=t[4];if(i===void 0)Bp("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-i>=6e4){Bp("TIMEOUT",e.name,r);var a=r.pop();typeof a=="function"&&a.call(null,n)}else{var c=Date.now()-s,l=Math.max(s-i,1),u=Math.min(l*1.2,100);c>=u?(Bp("RETRY",e.name,r),e.apply(null,r.concat([i]))):Er[Jn].push(t)}V2===void 0&&(V2=setTimeout(b8,0))}}o(b8,"retry")});var j2=g((D0r,Owe)=>{"use strict";var ul=o(t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function","isStream");ul.writable=t=>ul(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";ul.readable=t=>ul(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";ul.duplex=t=>ul.writable(t)&&ul.readable(t);ul.transform=t=>ul.duplex(t)&&typeof t._transform=="function";Owe.exports=ul});var Qw=g((k0r,S8)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?S8.exports={nextTick:Xgt}:S8.exports=process;function Xgt(t,e,r,n){if(typeof t!="function")throw new TypeError('"callback" argument must be a function');var i=arguments.length,s,a;switch(i){case 0:case 1:return process.nextTick(t);case 2:return process.nextTick(o(function(){t.call(null,e)},"afterTickOne"));case 3:return process.nextTick(o(function(){t.call(null,e,r)},"afterTickTwo"));case 4:return process.nextTick(o(function(){t.call(null,e,r,n)},"afterTickThree"));default:for(s=new Array(i-1),a=0;a{var Zgt={}.toString;Lwe.exports=Array.isArray||function(t){return Zgt.call(t)=="[object Array]"}});var B8=g((L0r,Mwe)=>{Mwe.exports=require("stream")});var kw=g((x8,qwe)=>{var W2=require("buffer"),_u=W2.Buffer;function Uwe(t,e){for(var r in t)e[r]=t[r]}o(Uwe,"copyProps");_u.from&&_u.alloc&&_u.allocUnsafe&&_u.allocUnsafeSlow?qwe.exports=W2:(Uwe(W2,x8),x8.Buffer=uy);function uy(t,e,r){return _u(t,e,r)}o(uy,"SafeBuffer");Uwe(_u,uy);uy.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return _u(t,e,r)};uy.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=_u(t);return e!==void 0?typeof r=="string"?n.fill(e,r):n.fill(e):n.fill(0),n};uy.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return _u(t)};uy.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return W2.SlowBuffer(t)}});var dy=g(di=>{function eyt(t){return Array.isArray?Array.isArray(t):J2(t)==="[object Array]"}o(eyt,"isArray");di.isArray=eyt;function tyt(t){return typeof t=="boolean"}o(tyt,"isBoolean");di.isBoolean=tyt;function ryt(t){return t===null}o(ryt,"isNull");di.isNull=ryt;function nyt(t){return t==null}o(nyt,"isNullOrUndefined");di.isNullOrUndefined=nyt;function iyt(t){return typeof t=="number"}o(iyt,"isNumber");di.isNumber=iyt;function syt(t){return typeof t=="string"}o(syt,"isString");di.isString=syt;function oyt(t){return typeof t=="symbol"}o(oyt,"isSymbol");di.isSymbol=oyt;function ayt(t){return t===void 0}o(ayt,"isUndefined");di.isUndefined=ayt;function cyt(t){return J2(t)==="[object RegExp]"}o(cyt,"isRegExp");di.isRegExp=cyt;function lyt(t){return typeof t=="object"&&t!==null}o(lyt,"isObject");di.isObject=lyt;function uyt(t){return J2(t)==="[object Date]"}o(uyt,"isDate");di.isDate=uyt;function dyt(t){return J2(t)==="[object Error]"||t instanceof Error}o(dyt,"isError");di.isError=dyt;function fyt(t){return typeof t=="function"}o(fyt,"isFunction");di.isFunction=fyt;function hyt(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}o(hyt,"isPrimitive");di.isPrimitive=hyt;di.isBuffer=require("buffer").Buffer.isBuffer;function J2(t){return Object.prototype.toString.call(t)}o(J2,"objectToString")});var Gwe=g((q0r,v8)=>{typeof Object.create=="function"?v8.exports=o(function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))},"inherits"):v8.exports=o(function(e,r){if(r){e.super_=r;var n=o(function(){},"TempCtor");n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}},"inherits")});var fy=g((H0r,R8)=>{try{if(N8=require("util"),typeof N8.inherits!="function")throw"";R8.exports=N8.inherits}catch{R8.exports=Gwe()}var N8});var zwe=g((z0r,_8)=>{"use strict";function pyt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}o(pyt,"_classCallCheck");var Hwe=kw().Buffer,Pw=require("util");function Ayt(t,e,r){t.copy(e,r)}o(Ayt,"copyBuffer");_8.exports=(function(){function t(){pyt(this,t),this.head=null,this.tail=null,this.length=0}return o(t,"BufferList"),t.prototype.push=o(function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length},"push"),t.prototype.unshift=o(function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length},"unshift"),t.prototype.shift=o(function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},"shift"),t.prototype.clear=o(function(){this.head=this.tail=null,this.length=0},"clear"),t.prototype.join=o(function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i},"join"),t.prototype.concat=o(function(r){if(this.length===0)return Hwe.alloc(0);for(var n=Hwe.allocUnsafe(r>>>0),i=this.head,s=0;i;)Ayt(i.data,n,s),s+=i.data.length,i=i.next;return n},"concat"),t})();Pw&&Pw.inspect&&Pw.inspect.custom&&(_8.exports.prototype[Pw.inspect.custom]=function(){var t=Pw.inspect({length:this.length});return this.constructor.name+" "+t})});var T8=g(($0r,Vwe)=>{"use strict";var Y2=Qw();function myt(t,e){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Y2.nextTick(K2,this,t)):Y2.nextTick(K2,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,Y2.nextTick(K2,r,s)):Y2.nextTick(K2,r,s):e&&e(s)}),this)}o(myt,"destroy");function gyt(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}o(gyt,"undestroy");function K2(t,e){t.emit("error",e)}o(K2,"emitErrorNT");Vwe.exports={destroy:myt,undestroy:gyt}});var jwe=g((W0r,$we)=>{$we.exports=require("util").deprecate});var Q8=g((J0r,tIe)=>{"use strict";var xp=Qw();tIe.exports=sn;function Jwe(t){var e=this;this.next=null,this.entry=null,this.finish=function(){Pyt(e,t)}}o(Jwe,"CorkedRequest");var yyt=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:xp.nextTick,hy;sn.WritableState=Lw;var Ywe=Object.create(dy());Ywe.inherits=fy();var Eyt={deprecate:jwe()},Kwe=B8(),Z2=kw().Buffer,Cyt=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function byt(t){return Z2.from(t)}o(byt,"_uint8ArrayToBuffer");function wyt(t){return Z2.isBuffer(t)||t instanceof Cyt}o(wyt,"_isUint8Array");var Xwe=T8();Ywe.inherits(sn,Kwe);function Iyt(){}o(Iyt,"nop");function Lw(t,e){hy=hy||vp(),t=t||{};var r=e instanceof hy;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var n=t.highWaterMark,i=t.writableHighWaterMark,s=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:r&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=t.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(c){_yt(e,c)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Jwe(this)}o(Lw,"WritableState");Lw.prototype.getBuffer=o(function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r},"getBuffer");(function(){try{Object.defineProperty(Lw.prototype,"buffer",{get:Eyt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var X2;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(X2=Function.prototype[Symbol.hasInstance],Object.defineProperty(sn,Symbol.hasInstance,{value:o(function(t){return X2.call(this,t)?!0:this!==sn?!1:t&&t._writableState instanceof Lw},"value")})):X2=o(function(t){return t instanceof this},"realHasInstance");function sn(t){if(hy=hy||vp(),!X2.call(sn,this)&&!(this instanceof hy))return new sn(t);this._writableState=new Lw(t,this),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),Kwe.call(this)}o(sn,"Writable");sn.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Syt(t,e){var r=new Error("write after end");t.emit("error",r),xp.nextTick(e,r)}o(Syt,"writeAfterEnd");function Byt(t,e,r,n){var i=!0,s=!1;return r===null?s=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!e.objectMode&&(s=new TypeError("Invalid non-string/buffer chunk")),s&&(t.emit("error",s),xp.nextTick(n,s),i=!1),i}o(Byt,"validChunk");sn.prototype.write=function(t,e,r){var n=this._writableState,i=!1,s=!n.objectMode&&wyt(t);return s&&!Z2.isBuffer(t)&&(t=byt(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=n.defaultEncoding),typeof r!="function"&&(r=Iyt),n.ended?Syt(this,r):(s||Byt(this,n,t,r))&&(n.pendingcb++,i=vyt(this,n,s,t,e,r)),i};sn.prototype.cork=function(){var t=this._writableState;t.corked++};sn.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Zwe(this,t))};sn.prototype.setDefaultEncoding=o(function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},"setDefaultEncoding");function xyt(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=Z2.from(e,r)),e}o(xyt,"decodeChunk");Object.defineProperty(sn.prototype,"writableHighWaterMark",{enumerable:!1,get:o(function(){return this._writableState.highWaterMark},"get")});function vyt(t,e,r,n,i,s){if(!r){var a=xyt(e,n,i);n!==a&&(r=!0,i="buffer",n=a)}var c=e.objectMode?1:n.length;e.length+=c;var l=e.length{"use strict";var rIe=Qw(),Oyt=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};sIe.exports=Tu;var nIe=Object.create(dy());nIe.inherits=fy();var iIe=O8(),P8=Q8();nIe.inherits(Tu,iIe);for(k8=Oyt(P8.prototype),eD=0;eD{"use strict";var F8=kw().Buffer,oIe=F8.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Myt(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}o(Myt,"_normalizeEncoding");function Uyt(t){var e=Myt(t);if(typeof e!="string"&&(F8.isEncoding===oIe||!oIe(t)))throw new Error("Unknown encoding: "+t);return e||t}o(Uyt,"normalizeEncoding");aIe.StringDecoder=Fw;function Fw(t){this.encoding=Uyt(t);var e;switch(this.encoding){case"utf16le":this.text=$yt,this.end=jyt,e=4;break;case"utf8":this.fillLast=Hyt,e=4;break;case"base64":this.text=Wyt,this.end=Jyt,e=3;break;default:this.write=Yyt,this.end=Kyt;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=F8.allocUnsafe(e)}o(Fw,"StringDecoder");Fw.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}o(L8,"utf8CheckByte");function qyt(t,e,r){var n=e.length-1;if(n=0?(i>0&&(t.lastNeed=i-1),i):--n=0?(i>0&&(t.lastNeed=i-2),i):--n=0?(i>0&&(i===2?i=0:t.lastNeed=i-3),i):0))}o(qyt,"utf8CheckIncomplete");function Gyt(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}o(Gyt,"utf8CheckExtraBytes");function Hyt(t){var e=this.lastTotal-this.lastNeed,r=Gyt(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}o(Hyt,"utf8FillLast");function zyt(t,e){var r=qyt(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}o(zyt,"utf8Text");function Vyt(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}o(Vyt,"utf8End");function $yt(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}o($yt,"utf16Text");function jyt(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}o(jyt,"utf16End");function Wyt(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}o(Wyt,"base64Text");function Jyt(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}o(Jyt,"base64End");function Yyt(t){return t.toString(this.encoding)}o(Yyt,"simpleWrite");function Kyt(t){return t&&t.length?this.write(t):""}o(Kyt,"simpleEnd")});var O8=g((rwr,EIe)=>{"use strict";var Ay=Qw();EIe.exports=tr;var Xyt=Fwe(),Mw;tr.ReadableState=pIe;var twr=require("events").EventEmitter,dIe=o(function(t,e){return t.listeners(e).length},"EElistenerCount"),z8=B8(),Uw=kw().Buffer,Zyt=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function eEt(t){return Uw.from(t)}o(eEt,"_uint8ArrayToBuffer");function tEt(t){return Uw.isBuffer(t)||t instanceof Zyt}o(tEt,"_isUint8Array");var fIe=Object.create(dy());fIe.inherits=fy();var U8=require("util"),Pt=void 0;U8&&U8.debuglog?Pt=U8.debuglog("stream"):Pt=o(function(){},"debug");var rEt=zwe(),hIe=T8(),py;fIe.inherits(tr,z8);var q8=["error","close","destroy","pause","resume"];function nEt(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):Xyt(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}o(nEt,"prependListener");function pIe(t,e){Mw=Mw||vp(),t=t||{};var r=e instanceof Mw;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var n=t.highWaterMark,i=t.readableHighWaterMark,s=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:r&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new rEt,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(py||(py=M8().StringDecoder),this.decoder=new py(t.encoding),this.encoding=t.encoding)}o(pIe,"ReadableState");function tr(t){if(Mw=Mw||vp(),!(this instanceof tr))return new tr(t);this._readableState=new pIe(t,this),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),z8.call(this)}o(tr,"Readable");Object.defineProperty(tr.prototype,"destroyed",{get:o(function(){return this._readableState===void 0?!1:this._readableState.destroyed},"get"),set:o(function(t){this._readableState&&(this._readableState.destroyed=t)},"set")});tr.prototype.destroy=hIe.destroy;tr.prototype._undestroy=hIe.undestroy;tr.prototype._destroy=function(t,e){this.push(null),e(t)};tr.prototype.push=function(t,e){var r=this._readableState,n;return r.objectMode?n=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=Uw.from(t,e),e=""),n=!0),AIe(this,t,e,!1,n)};tr.prototype.unshift=function(t){return AIe(this,t,null,!0,!1)};function AIe(t,e,r,n,i){var s=t._readableState;if(e===null)s.reading=!1,aEt(t,s);else{var a;i||(a=iEt(s,e)),a?t.emit("error",a):s.objectMode||e&&e.length>0?(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==Uw.prototype&&(e=eEt(e)),n?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):G8(t,s,e,!0):s.ended?t.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||e.length!==0?G8(t,s,e,!1):mIe(t,s)):G8(t,s,e,!1))):n||(s.reading=!1)}return sEt(s)}o(AIe,"readableAddChunk");function G8(t,e,r,n){e.flowing&&e.length===0&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&rD(t)),mIe(t,e)}o(G8,"addChunk");function iEt(t,e){var r;return!tEt(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}o(iEt,"chunkInvalid");function sEt(t){return!t.ended&&(t.needReadable||t.length=cIe?t=cIe:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}o(oEt,"computeNewHighWaterMark");function lIe(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=oEt(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}o(lIe,"howMuchToRead");tr.prototype.read=function(t){Pt("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return Pt("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?H8(this):rD(this),null;if(t=lIe(t,e),t===0&&e.ended)return e.length===0&&H8(this),null;var n=e.needReadable;Pt("need readable",n),(e.length===0||e.length-t0?i=gIe(t,e):i=null,i===null?(e.needReadable=!0,t=0):e.length-=t,e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&H8(this)),i!==null&&this.emit("data",i),i};function aEt(t,e){if(!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,rD(t)}}o(aEt,"onEofChunk");function rD(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(Pt("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?Ay.nextTick(uIe,t):uIe(t))}o(rD,"emitReadable");function uIe(t){Pt("emit readable"),t.emit("readable"),V8(t)}o(uIe,"emitReadable_");function mIe(t,e){e.readingMore||(e.readingMore=!0,Ay.nextTick(cEt,t,e))}o(mIe,"maybeReadMore");function cEt(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length1&&yIe(n.pipes,t)!==-1)&&!u&&(Pt("false write response, pause",n.awaitDrain),n.awaitDrain++,f=!0),r.pause())}o(h,"ondata");function p(y){Pt("onerror",y),E(),t.removeListener("error",p),dIe(t,"error")===0&&t.emit("error",y)}o(p,"onerror"),nEt(t,"error",p);function m(){t.removeListener("finish",A),E()}o(m,"onclose"),t.once("close",m);function A(){Pt("onfinish"),t.removeListener("close",m),E()}o(A,"onfinish"),t.once("finish",A);function E(){Pt("unpipe"),r.unpipe(t)}return o(E,"unpipe"),t.emit("pipe",r),n.flowing||(Pt("pipe resume"),r.resume()),t};function lEt(t){return function(){var e=t._readableState;Pt("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,e.awaitDrain===0&&dIe(t,"data")&&(e.flowing=!0,V8(t))}}o(lEt,"pipeOnDrain");tr.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.head.data:r=e.buffer.concat(e.length),e.buffer.clear()):r=hEt(t,e.buffer,e.decoder),r}o(gIe,"fromList");function hEt(t,e,r){var n;return ts.length?s.length:t;if(a===s.length?i+=s:i+=s.slice(0,t),t-=a,t===0){a===s.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=s.slice(a));break}++n}return e.length-=n,i}o(pEt,"copyFromBufferString");function AEt(t,e){var r=Uw.allocUnsafe(t),n=e.head,i=1;for(n.data.copy(r),t-=n.data.length;n=n.next;){var s=n.data,a=t>s.length?s.length:t;if(s.copy(r,r.length-t,0,a),t-=a,t===0){a===s.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=s.slice(a));break}++i}return e.length-=i,r}o(AEt,"copyFromBuffer");function H8(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,Ay.nextTick(mEt,e,t))}o(H8,"endReadable");function mEt(t,e){!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"))}o(mEt,"endReadableNT");function yIe(t,e){for(var r=0,n=t.length;r{"use strict";wIe.exports=Du;var nD=vp(),bIe=Object.create(dy());bIe.inherits=fy();bIe.inherits(Du,nD);function gEt(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,e!=null&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";BIe.exports=qw;var IIe=$8(),SIe=Object.create(dy());SIe.inherits=fy();SIe.inherits(qw,IIe);function qw(t){if(!(this instanceof qw))return new qw(t);IIe.call(this,t)}o(qw,"PassThrough");qw.prototype._transform=function(t,e,r){r(null,t)}});var vIe=g((Yn,iD)=>{var dl=require("stream");process.env.READABLE_STREAM==="disable"&&dl?(iD.exports=dl,Yn=iD.exports=dl.Readable,Yn.Readable=dl.Readable,Yn.Writable=dl.Writable,Yn.Duplex=dl.Duplex,Yn.Transform=dl.Transform,Yn.PassThrough=dl.PassThrough,Yn.Stream=dl):(Yn=iD.exports=O8(),Yn.Stream=dl||Yn,Yn.Readable=Yn,Yn.Writable=Q8(),Yn.Duplex=vp(),Yn.Transform=$8(),Yn.PassThrough=xIe())});var RIe=g((cwr,NIe)=>{NIe.exports=vIe().PassThrough});var QIe=g((lwr,DIe)=>{var _Ie=require("util"),aD=RIe();DIe.exports={Readable:sD,Writable:oD};_Ie.inherits(sD,aD);_Ie.inherits(oD,aD);function TIe(t,e,r){t[e]=function(){return delete t[e],r.apply(this,arguments),this[e].apply(this,arguments)}}o(TIe,"beforeFirstCall");function sD(t,e){if(!(this instanceof sD))return new sD(t,e);aD.call(this,e),TIe(this,"_read",function(){var r=t.call(this,e),n=this.emit.bind(this,"error");r.on("error",n),r.pipe(this)}),this.emit("readable")}o(sD,"Readable");function oD(t,e){if(!(this instanceof oD))return new oD(t,e);aD.call(this,e),TIe(this,"_write",function(){var r=t.call(this,e),n=this.emit.bind(this,"error");r.on("error",n),this.pipe(r)}),this.emit("writable")}o(oD,"Writable")});var j8=g((dwr,kIe)=>{kIe.exports=function(t,e){if(typeof t!="string")throw new TypeError("expected path to be a string");if(t==="\\"||t==="/")return"/";var r=t.length;if(r<=1)return t;var n="";if(r>4&&t[3]==="\\"){var i=t[2];(i==="?"||i===".")&&t.slice(0,2)==="\\\\"&&(t=t.slice(2),n="//")}var s=t.split(/[/\\]+/);return e!==!1&&s[s.length-1]===""&&s.pop(),n+s.join("/")}});var W8=g((fwr,PIe)=>{function EEt(t){return t}o(EEt,"identity");PIe.exports=EEt});var LIe=g((pwr,OIe)=>{function CEt(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}o(CEt,"apply");OIe.exports=CEt});var UIe=g((mwr,MIe)=>{var bEt=LIe(),FIe=Math.max;function wEt(t,e,r){return e=FIe(e===void 0?t.length-1:e,0),function(){for(var n=arguments,i=-1,s=FIe(n.length-e,0),a=Array(s);++i{function IEt(t){return function(){return t}}o(IEt,"constant");qIe.exports=IEt});var J8=g((Cwr,HIe)=>{var SEt=typeof global=="object"&&global&&global.Object===Object&&global;HIe.exports=SEt});var my=g((bwr,zIe)=>{var BEt=J8(),xEt=typeof self=="object"&&self&&self.Object===Object&&self,vEt=BEt||xEt||Function("return this")();zIe.exports=vEt});var cD=g((wwr,VIe)=>{var NEt=my(),REt=NEt.Symbol;VIe.exports=REt});var JIe=g((Iwr,WIe)=>{var $Ie=cD(),jIe=Object.prototype,_Et=jIe.hasOwnProperty,TEt=jIe.toString,Gw=$Ie?$Ie.toStringTag:void 0;function DEt(t){var e=_Et.call(t,Gw),r=t[Gw];try{t[Gw]=void 0;var n=!0}catch{}var i=TEt.call(t);return n&&(e?t[Gw]=r:delete t[Gw]),i}o(DEt,"getRawTag");WIe.exports=DEt});var KIe=g((Bwr,YIe)=>{var QEt=Object.prototype,kEt=QEt.toString;function PEt(t){return kEt.call(t)}o(PEt,"objectToString");YIe.exports=PEt});var Hw=g((vwr,eSe)=>{var XIe=cD(),OEt=JIe(),LEt=KIe(),FEt="[object Null]",MEt="[object Undefined]",ZIe=XIe?XIe.toStringTag:void 0;function UEt(t){return t==null?t===void 0?MEt:FEt:ZIe&&ZIe in Object(t)?OEt(t):LEt(t)}o(UEt,"baseGetTag");eSe.exports=UEt});var zw=g((Rwr,tSe)=>{function qEt(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}o(qEt,"isObject");tSe.exports=qEt});var Y8=g((Twr,rSe)=>{var GEt=Hw(),HEt=zw(),zEt="[object AsyncFunction]",VEt="[object Function]",$Et="[object GeneratorFunction]",jEt="[object Proxy]";function WEt(t){if(!HEt(t))return!1;var e=GEt(t);return e==VEt||e==$Et||e==zEt||e==jEt}o(WEt,"isFunction");rSe.exports=WEt});var iSe=g((Qwr,nSe)=>{var JEt=my(),YEt=JEt["__core-js_shared__"];nSe.exports=YEt});var aSe=g((kwr,oSe)=>{var K8=iSe(),sSe=(function(){var t=/[^.]+$/.exec(K8&&K8.keys&&K8.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function KEt(t){return!!sSe&&sSe in t}o(KEt,"isMasked");oSe.exports=KEt});var lSe=g((Owr,cSe)=>{var XEt=Function.prototype,ZEt=XEt.toString;function eCt(t){if(t!=null){try{return ZEt.call(t)}catch{}try{return t+""}catch{}}return""}o(eCt,"toSource");cSe.exports=eCt});var dSe=g((Fwr,uSe)=>{var tCt=Y8(),rCt=aSe(),nCt=zw(),iCt=lSe(),sCt=/[\\^$.*+?()[\]{}|]/g,oCt=/^\[object .+?Constructor\]$/,aCt=Function.prototype,cCt=Object.prototype,lCt=aCt.toString,uCt=cCt.hasOwnProperty,dCt=RegExp("^"+lCt.call(uCt).replace(sCt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function fCt(t){if(!nCt(t)||rCt(t))return!1;var e=tCt(t)?dCt:oCt;return e.test(iCt(t))}o(fCt,"baseIsNative");uSe.exports=fCt});var hSe=g((Uwr,fSe)=>{function hCt(t,e){return t?.[e]}o(hCt,"getValue");fSe.exports=hCt});var Vw=g((Gwr,pSe)=>{var pCt=dSe(),ACt=hSe();function mCt(t,e){var r=ACt(t,e);return pCt(r)?r:void 0}o(mCt,"getNative");pSe.exports=mCt});var mSe=g((zwr,ASe)=>{var gCt=Vw(),yCt=(function(){try{var t=gCt(Object,"defineProperty");return t({},"",{}),t}catch{}})();ASe.exports=yCt});var ESe=g((Vwr,ySe)=>{var ECt=GIe(),gSe=mSe(),CCt=W8(),bCt=gSe?function(t,e){return gSe(t,"toString",{configurable:!0,enumerable:!1,value:ECt(e),writable:!0})}:CCt;ySe.exports=bCt});var bSe=g(($wr,CSe)=>{var wCt=800,ICt=16,SCt=Date.now;function BCt(t){var e=0,r=0;return function(){var n=SCt(),i=ICt-(n-r);if(r=n,i>0){if(++e>=wCt)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}o(BCt,"shortOut");CSe.exports=BCt});var ISe=g((Wwr,wSe)=>{var xCt=ESe(),vCt=bSe(),NCt=vCt(xCt);wSe.exports=NCt});var lD=g((Jwr,SSe)=>{var RCt=W8(),_Ct=UIe(),TCt=ISe();function DCt(t,e){return TCt(_Ct(t,e,RCt),t+"")}o(DCt,"baseRest");SSe.exports=DCt});var uD=g((Kwr,BSe)=>{function QCt(t,e){return t===e||t!==t&&e!==e}o(QCt,"eq");BSe.exports=QCt});var X8=g((Zwr,xSe)=>{var kCt=9007199254740991;function PCt(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=kCt}o(PCt,"isLength");xSe.exports=PCt});var dD=g((tIr,vSe)=>{var OCt=Y8(),LCt=X8();function FCt(t){return t!=null&&LCt(t.length)&&!OCt(t)}o(FCt,"isArrayLike");vSe.exports=FCt});var Z8=g((nIr,NSe)=>{var MCt=9007199254740991,UCt=/^(?:0|[1-9]\d*)$/;function qCt(t,e){var r=typeof t;return e=e??MCt,!!e&&(r=="number"||r!="symbol"&&UCt.test(t))&&t>-1&&t%1==0&&t{var GCt=uD(),HCt=dD(),zCt=Z8(),VCt=zw();function $Ct(t,e,r){if(!VCt(r))return!1;var n=typeof e;return(n=="number"?HCt(r)&&zCt(e,r.length):n=="string"&&e in r)?GCt(r[e],t):!1}o($Ct,"isIterateeCall");RSe.exports=$Ct});var DSe=g((aIr,TSe)=>{function jCt(t,e){for(var r=-1,n=Array(t);++r{function WCt(t){return t!=null&&typeof t=="object"}o(WCt,"isObjectLike");QSe.exports=WCt});var PSe=g((dIr,kSe)=>{var JCt=Hw(),YCt=gy(),KCt="[object Arguments]";function XCt(t){return YCt(t)&&JCt(t)==KCt}o(XCt,"baseIsArguments");kSe.exports=XCt});var ej=g((hIr,FSe)=>{var OSe=PSe(),ZCt=gy(),LSe=Object.prototype,ebt=LSe.hasOwnProperty,tbt=LSe.propertyIsEnumerable,rbt=OSe((function(){return arguments})())?OSe:function(t){return ZCt(t)&&ebt.call(t,"callee")&&!tbt.call(t,"callee")};FSe.exports=rbt});var tj=g((pIr,MSe)=>{var nbt=Array.isArray;MSe.exports=nbt});var qSe=g((AIr,USe)=>{function ibt(){return!1}o(ibt,"stubFalse");USe.exports=ibt});var VSe=g(($w,yy)=>{var sbt=my(),obt=qSe(),zSe=typeof $w=="object"&&$w&&!$w.nodeType&&$w,GSe=zSe&&typeof yy=="object"&&yy&&!yy.nodeType&&yy,abt=GSe&&GSe.exports===zSe,HSe=abt?sbt.Buffer:void 0,cbt=HSe?HSe.isBuffer:void 0,lbt=cbt||obt;yy.exports=lbt});var jSe=g((gIr,$Se)=>{var ubt=Hw(),dbt=X8(),fbt=gy(),hbt="[object Arguments]",pbt="[object Array]",Abt="[object Boolean]",mbt="[object Date]",gbt="[object Error]",ybt="[object Function]",Ebt="[object Map]",Cbt="[object Number]",bbt="[object Object]",wbt="[object RegExp]",Ibt="[object Set]",Sbt="[object String]",Bbt="[object WeakMap]",xbt="[object ArrayBuffer]",vbt="[object DataView]",Nbt="[object Float32Array]",Rbt="[object Float64Array]",_bt="[object Int8Array]",Tbt="[object Int16Array]",Dbt="[object Int32Array]",Qbt="[object Uint8Array]",kbt="[object Uint8ClampedArray]",Pbt="[object Uint16Array]",Obt="[object Uint32Array]",rr={};rr[Nbt]=rr[Rbt]=rr[_bt]=rr[Tbt]=rr[Dbt]=rr[Qbt]=rr[kbt]=rr[Pbt]=rr[Obt]=!0;rr[hbt]=rr[pbt]=rr[xbt]=rr[Abt]=rr[vbt]=rr[mbt]=rr[gbt]=rr[ybt]=rr[Ebt]=rr[Cbt]=rr[bbt]=rr[wbt]=rr[Ibt]=rr[Sbt]=rr[Bbt]=!1;function Lbt(t){return fbt(t)&&dbt(t.length)&&!!rr[ubt(t)]}o(Lbt,"baseIsTypedArray");$Se.exports=Lbt});var rj=g((EIr,WSe)=>{function Fbt(t){return function(e){return t(e)}}o(Fbt,"baseUnary");WSe.exports=Fbt});var YSe=g((jw,Ey)=>{var Mbt=J8(),JSe=typeof jw=="object"&&jw&&!jw.nodeType&&jw,Ww=JSe&&typeof Ey=="object"&&Ey&&!Ey.nodeType&&Ey,Ubt=Ww&&Ww.exports===JSe,nj=Ubt&&Mbt.process,qbt=(function(){try{var t=Ww&&Ww.require&&Ww.require("util").types;return t||nj&&nj.binding&&nj.binding("util")}catch{}})();Ey.exports=qbt});var eBe=g((bIr,ZSe)=>{var Gbt=jSe(),Hbt=rj(),KSe=YSe(),XSe=KSe&&KSe.isTypedArray,zbt=XSe?Hbt(XSe):Gbt;ZSe.exports=zbt});var rBe=g((wIr,tBe)=>{var Vbt=DSe(),$bt=ej(),jbt=tj(),Wbt=VSe(),Jbt=Z8(),Ybt=eBe(),Kbt=Object.prototype,Xbt=Kbt.hasOwnProperty;function Zbt(t,e){var r=jbt(t),n=!r&&$bt(t),i=!r&&!n&&Wbt(t),s=!r&&!n&&!i&&Ybt(t),a=r||n||i||s,c=a?Vbt(t.length,String):[],l=c.length;for(var u in t)(e||Xbt.call(t,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Jbt(u,l)))&&c.push(u);return c}o(Zbt,"arrayLikeKeys");tBe.exports=Zbt});var iBe=g((SIr,nBe)=>{var e0t=Object.prototype;function t0t(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||e0t;return t===r}o(t0t,"isPrototype");nBe.exports=t0t});var oBe=g((xIr,sBe)=>{function r0t(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}o(r0t,"nativeKeysIn");sBe.exports=r0t});var cBe=g((NIr,aBe)=>{var n0t=zw(),i0t=iBe(),s0t=oBe(),o0t=Object.prototype,a0t=o0t.hasOwnProperty;function c0t(t){if(!n0t(t))return s0t(t);var e=i0t(t),r=[];for(var n in t)n=="constructor"&&(e||!a0t.call(t,n))||r.push(n);return r}o(c0t,"baseKeysIn");aBe.exports=c0t});var uBe=g((_Ir,lBe)=>{var l0t=rBe(),u0t=cBe(),d0t=dD();function f0t(t){return d0t(t)?l0t(t,!0):u0t(t)}o(f0t,"keysIn");lBe.exports=f0t});var hBe=g((DIr,fBe)=>{var h0t=lD(),p0t=uD(),A0t=_Se(),m0t=uBe(),dBe=Object.prototype,g0t=dBe.hasOwnProperty,y0t=h0t(function(t,e){t=Object(t);var r=-1,n=e.length,i=n>2?e[2]:void 0;for(i&&A0t(e[0],e[1],i)&&(n=1);++r{"use strict";pBe.exports={ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var SBe=g((Kw,Yw)=>{"use strict";Object.defineProperty(Kw,"__esModule",{value:!0});var CBe=new WeakMap,ij=new WeakMap;function nr(t){let e=CBe.get(t);return console.assert(e!=null,"'this' is expected an Event object, but got",t),e}o(nr,"pd");function ABe(t){if(t.passiveListener!=null){typeof console<"u"&&typeof console.error=="function"&&console.error("Unable to preventDefault inside passive event listener invocation.",t.passiveListener);return}t.event.cancelable&&(t.canceled=!0,typeof t.event.preventDefault=="function"&&t.event.preventDefault())}o(ABe,"setCancelFlag");function Cy(t,e){CBe.set(this,{eventTarget:t,event:e,eventPhase:2,currentTarget:t,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:e.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let r=Object.keys(e);for(let n=0;n0){let t=new Array(arguments.length);for(let e=0;e{"use strict";Object.defineProperty(Zw,"__esModule",{value:!0});var oj=SBe(),rf=class extends oj.EventTarget{static{o(this,"AbortSignal")}constructor(){throw super(),new TypeError("AbortSignal cannot be constructed directly")}get aborted(){let e=pD.get(this);if(typeof e!="boolean")throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return e}};oj.defineEventAttribute(rf.prototype,"abort");function x0t(){let t=Object.create(rf.prototype);return oj.EventTarget.call(t),pD.set(t,!1),t}o(x0t,"createAbortSignal");function v0t(t){pD.get(t)===!1&&(pD.set(t,!0),t.dispatchEvent({type:"abort"}))}o(v0t,"abortSignal");var pD=new WeakMap;Object.defineProperties(rf.prototype,{aborted:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(rf.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});var nf=class{static{o(this,"AbortController")}constructor(){xBe.set(this,x0t())}get signal(){return BBe(this)}abort(){v0t(BBe(this))}},xBe=new WeakMap;function BBe(t){let e=xBe.get(t);if(e==null)throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${t===null?"null":typeof t}`);return e}o(BBe,"getSignal");Object.defineProperties(nf.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(nf.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});Zw.AbortController=nf;Zw.AbortSignal=rf;Zw.default=nf;Xw.exports=nf;Xw.exports.AbortController=Xw.exports.default=nf;Xw.exports.AbortSignal=rf});var fi=g((OIr,cj)=>{"use strict";var N0t=require("buffer"),{kResistStopPropagation:R0t,SymbolDispose:_0t}=Cr(),T0t=globalThis.AbortSignal||by().AbortSignal,D0t=globalThis.AbortController||by().AbortController,Q0t=Object.getPrototypeOf(async function(){}).constructor,vBe=globalThis.Blob||N0t.Blob,k0t=o(typeof vBe<"u"?function(e){return e instanceof vBe}:function(e){return!1},"isBlob"),NBe=o((t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new ERR_INVALID_ARG_TYPE(e,"AbortSignal",t)},"validateAbortSignal"),P0t=o((t,e)=>{if(typeof t!="function")throw new ERR_INVALID_ARG_TYPE(e,"Function",t)},"validateFunction"),aj=class extends Error{static{o(this,"AggregateError")}constructor(e){if(!Array.isArray(e))throw new TypeError(`Expected input to be an Array, got ${typeof e}`);let r="";for(let n=0;n{t=n,e=i}),resolve:t,reject:e}},"createDeferredPromise"),promisify(t){return new Promise((e,r)=>{t((n,...i)=>n?r(n):e(...i))})},debuglog(){return function(){}},format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let i=e.shift();return n==="f"?i.toFixed(6):n==="j"?JSON.stringify(i):n==="s"&&typeof i=="object"?`${i.constructor!==Object?i.constructor.name:""} {}`.trim():i.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}},types:{isAsyncFunction(t){return t instanceof Q0t},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:k0t,deprecate(t,e){return t},addAbortListener:require("events").addAbortListener||o(function(e,r){if(e===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",e);NBe(e,"signal"),P0t(r,"listener");let n;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[R0t]:!0}),n=o(()=>{e.removeEventListener("abort",r)},"removeEventListener")),{__proto__:null,[_0t](){var i;(i=n)===null||i===void 0||i()}}},"addAbortListener"),AbortSignalAny:T0t.any||o(function(e){if(e.length===1)return e[0];let r=new D0t,n=o(()=>r.abort(),"abort");return e.forEach(i=>{NBe(i,"signals"),i.addEventListener("abort",n,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(i=>i.removeEventListener("abort",n))},{once:!0}),r.signal},"AbortSignalAny")};cj.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var qi=g((FIr,TBe)=>{"use strict";var{format:O0t,inspect:AD,AggregateError:L0t}=fi(),F0t=globalThis.AggregateError||L0t,M0t=Symbol("kIsNodeError"),U0t=["string","function","number","object","Function","Object","boolean","bigint","symbol"],q0t=/^([A-Z][a-z0-9]*)+$/,G0t="__node_internal_",mD={};function Np(t,e){if(!t)throw new mD.ERR_INTERNAL_ASSERTION(e)}o(Np,"assert");function RBe(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}o(RBe,"addNumericalSeparator");function H0t(t,e,r){if(typeof e=="function")return Np(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return Np(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:O0t(e,...r)}o(H0t,"getMessage");function Kn(t,e,r){r||(r=Error);class n extends r{static{o(this,"NodeError")}constructor(...s){super(H0t(t,e,s))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[M0t]=!0,mD[t]=n}o(Kn,"E");function _Be(t){let e=G0t+t.name;return Object.defineProperty(t,"name",{value:e}),t}o(_Be,"hideStackFrames");function z0t(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new F0t([e,t],e.message);return r.code=e.code,r}return t||e}o(z0t,"aggregateTwoErrors");var lj=class extends Error{static{o(this,"AbortError")}constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new mD.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};Kn("ERR_ASSERTION","%s",Error);Kn("ERR_INVALID_ARG_TYPE",(t,e,r)=>{Np(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let i=[],s=[],a=[];for(let l of e)Np(typeof l=="string","All expected entries have to be of type string"),U0t.includes(l)?i.push(l.toLowerCase()):q0t.test(l)?s.push(l):(Np(l!=="object",'The value "object" should be written as "Object"'),a.push(l));if(s.length>0){let l=i.indexOf("object");l!==-1&&(i.splice(i,l,1),s.push("Object"))}if(i.length>0){switch(i.length){case 1:n+=`of type ${i[0]}`;break;case 2:n+=`one of type ${i[0]} or ${i[1]}`;break;default:{let l=i.pop();n+=`one of type ${i.join(", ")}, or ${l}`}}(s.length>0||a.length>0)&&(n+=" or ")}if(s.length>0){switch(s.length){case 1:n+=`an instance of ${s[0]}`;break;case 2:n+=`an instance of ${s[0]} or ${s[1]}`;break;default:{let l=s.pop();n+=`an instance of ${s.join(", ")}, or ${l}`}}a.length>0&&(n+=" or ")}switch(a.length){case 0:break;case 1:a[0].toLowerCase()!==a[0]&&(n+="an "),n+=`${a[0]}`;break;case 2:n+=`one of ${a[0]} or ${a[1]}`;break;default:{let l=a.pop();n+=`one of ${a.join(", ")}, or ${l}`}}if(r==null)n+=`. Received ${r}`;else if(typeof r=="function"&&r.name)n+=`. Received function ${r.name}`;else if(typeof r=="object"){var c;if((c=r.constructor)!==null&&c!==void 0&&c.name)n+=`. Received an instance of ${r.constructor.name}`;else{let l=AD(r,{depth:-1});n+=`. Received ${l}`}}else{let l=AD(r,{colors:!1});l.length>25&&(l=`${l.slice(0,25)}...`),n+=`. Received type ${typeof r} (${l})`}return n},TypeError);Kn("ERR_INVALID_ARG_VALUE",(t,e,r="is invalid")=>{let n=AD(e);return n.length>128&&(n=n.slice(0,128)+"..."),`The ${t.includes(".")?"property":"argument"} '${t}' ${r}. Received ${n}`},TypeError);Kn("ERR_INVALID_RETURN_VALUE",(t,e,r)=>{var n;let i=r!=null&&(n=r.constructor)!==null&&n!==void 0&&n.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${t} to be returned from the "${e}" function but got ${i}.`},TypeError);Kn("ERR_MISSING_ARGS",(...t)=>{Np(t.length>0,"At least one arg needs to be specified");let e,r=t.length;switch(t=(Array.isArray(t)?t:[t]).map(n=>`"${n}"`).join(" or "),r){case 1:e+=`The ${t[0]} argument`;break;case 2:e+=`The ${t[0]} and ${t[1]} arguments`;break;default:{let n=t.pop();e+=`The ${t.join(", ")}, and ${n} arguments`}break}return`${e} must be specified`},TypeError);Kn("ERR_OUT_OF_RANGE",(t,e,r)=>{Np(e,'Missing "range" argument');let n;return Number.isInteger(r)&&Math.abs(r)>2**32?n=RBe(String(r)):typeof r=="bigint"?(n=String(r),(r>2n**32n||r<-(2n**32n))&&(n=RBe(n)),n+="n"):n=AD(r),`The value of "${t}" is out of range. It must be ${e}. Received ${n}`},RangeError);Kn("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);Kn("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);Kn("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);Kn("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);Kn("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);Kn("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Kn("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);Kn("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);Kn("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);Kn("ERR_STREAM_WRITE_AFTER_END","write after end",Error);Kn("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);TBe.exports={AbortError:lj,aggregateTwoErrors:_Be(z0t),hideStackFrames:_Be,codes:mD}});var Iy=g((UIr,qBe)=>{"use strict";var{ArrayIsArray:dj,ArrayPrototypeIncludes:PBe,ArrayPrototypeJoin:OBe,ArrayPrototypeMap:V0t,NumberIsInteger:fj,NumberIsNaN:$0t,NumberMAX_SAFE_INTEGER:j0t,NumberMIN_SAFE_INTEGER:W0t,NumberParseInt:J0t,ObjectPrototypeHasOwnProperty:Y0t,RegExpPrototypeExec:LBe,String:K0t,StringPrototypeToUpperCase:X0t,StringPrototypeTrim:Z0t}=Cr(),{hideStackFrames:Zo,codes:{ERR_SOCKET_BAD_PORT:ewt,ERR_INVALID_ARG_TYPE:hi,ERR_INVALID_ARG_VALUE:wy,ERR_OUT_OF_RANGE:Rp,ERR_UNKNOWN_SIGNAL:DBe}}=qi(),{normalizeEncoding:twt}=fi(),{isAsyncFunction:rwt,isArrayBufferView:nwt}=fi().types,QBe={};function iwt(t){return t===(t|0)}o(iwt,"isInt32");function swt(t){return t===t>>>0}o(swt,"isUint32");var owt=/^[0-7]+$/,awt="must be a 32-bit unsigned integer or an octal string";function cwt(t,e,r){if(typeof t>"u"&&(t=r),typeof t=="string"){if(LBe(owt,t)===null)throw new wy(e,t,awt);t=J0t(t,8)}return FBe(t,e),t}o(cwt,"parseFileMode");var lwt=Zo((t,e,r=W0t,n=j0t)=>{if(typeof t!="number")throw new hi(e,"number",t);if(!fj(t))throw new Rp(e,"an integer",t);if(tn)throw new Rp(e,`>= ${r} && <= ${n}`,t)}),uwt=Zo((t,e,r=-2147483648,n=2147483647)=>{if(typeof t!="number")throw new hi(e,"number",t);if(!fj(t))throw new Rp(e,"an integer",t);if(tn)throw new Rp(e,`>= ${r} && <= ${n}`,t)}),FBe=Zo((t,e,r=!1)=>{if(typeof t!="number")throw new hi(e,"number",t);if(!fj(t))throw new Rp(e,"an integer",t);let n=r?1:0,i=4294967295;if(ti)throw new Rp(e,`>= ${n} && <= ${i}`,t)});function hj(t,e){if(typeof t!="string")throw new hi(e,"string",t)}o(hj,"validateString");function dwt(t,e,r=void 0,n){if(typeof t!="number")throw new hi(e,"number",t);if(r!=null&&tn||(r!=null||n!=null)&&$0t(t))throw new Rp(e,`${r!=null?`>= ${r}`:""}${r!=null&&n!=null?" && ":""}${n!=null?`<= ${n}`:""}`,t)}o(dwt,"validateNumber");var fwt=Zo((t,e,r)=>{if(!PBe(r,t)){let i="must be one of: "+OBe(V0t(r,s=>typeof s=="string"?`'${s}'`:K0t(s)),", ");throw new wy(e,t,i)}});function MBe(t,e){if(typeof t!="boolean")throw new hi(e,"boolean",t)}o(MBe,"validateBoolean");function uj(t,e,r){return t==null||!Y0t(t,e)?r:t[e]}o(uj,"getOwnPropertyValueOrDefault");var hwt=Zo((t,e,r=null)=>{let n=uj(r,"allowArray",!1),i=uj(r,"allowFunction",!1);if(!uj(r,"nullable",!1)&&t===null||!n&&dj(t)||typeof t!="object"&&(!i||typeof t!="function"))throw new hi(e,"Object",t)}),pwt=Zo((t,e)=>{if(t!=null&&typeof t!="object"&&typeof t!="function")throw new hi(e,"a dictionary",t)}),gD=Zo((t,e,r=0)=>{if(!dj(t))throw new hi(e,"Array",t);if(t.length{if(!nwt(t))throw new hi(e,["Buffer","TypedArray","DataView"],t)});function Cwt(t,e){let r=twt(e),n=t.length;if(r==="hex"&&n%2!==0)throw new wy("encoding",e,`is invalid for data of length ${n}`)}o(Cwt,"validateEncoding");function bwt(t,e="Port",r=!0){if(typeof t!="number"&&typeof t!="string"||typeof t=="string"&&Z0t(t).length===0||+t!==+t>>>0||t>65535||t===0&&!r)throw new ewt(e,t,r);return t|0}o(bwt,"validatePort");var UBe=Zo((t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new hi(e,"AbortSignal",t)}),wwt=Zo((t,e)=>{if(typeof t!="function")throw new hi(e,"Function",t)}),Iwt=Zo((t,e)=>{if(typeof t!="function"||rwt(t))throw new hi(e,"Function",t)}),Swt=Zo((t,e)=>{if(t!==void 0)throw new hi(e,"undefined",t)});function Bwt(t,e,r){if(!PBe(r,t))throw new hi(e,`('${OBe(r,"|")}')`,t)}o(Bwt,"validateUnion");var xwt=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function kBe(t,e){if(typeof t>"u"||!LBe(xwt,t))throw new wy(e,t,'must be an array or string of format "; rel=preload; as=style"')}o(kBe,"validateLinkHeaderFormat");function vwt(t){if(typeof t=="string")return kBe(t,"hints"),t;if(dj(t)){let e=t.length,r="";if(e===0)return r;for(let n=0;n; rel=preload; as=style"')}o(vwt,"validateLinkHeaderValue");qBe.exports={isInt32:iwt,isUint32:swt,parseFileMode:cwt,validateArray:gD,validateStringArray:Awt,validateBooleanArray:mwt,validateAbortSignalArray:gwt,validateBoolean:MBe,validateBuffer:Ewt,validateDictionary:pwt,validateEncoding:Cwt,validateFunction:wwt,validateInt32:uwt,validateInteger:lwt,validateNumber:dwt,validateObject:hwt,validateOneOf:fwt,validatePlainFunction:Iwt,validatePort:bwt,validateSignalName:ywt,validateString:hj,validateUint32:FBe,validateUndefined:Swt,validateUnion:Bwt,validateAbortSignal:UBe,validateLinkHeaderValue:vwt}});var sf=g((GIr,GBe)=>{GBe.exports=global.process});var hl=g((HIr,nxe)=>{"use strict";var{SymbolAsyncIterator:HBe,SymbolIterator:zBe,SymbolFor:_p}=Cr(),VBe=_p("nodejs.stream.destroyed"),$Be=_p("nodejs.stream.errored"),pj=_p("nodejs.stream.readable"),Aj=_p("nodejs.stream.writable"),jBe=_p("nodejs.stream.disturbed"),Nwt=_p("nodejs.webstream.isClosedPromise"),Rwt=_p("nodejs.webstream.controllerErrorFunction");function yD(t,e=!1){var r;return!!(t&&typeof t.pipe=="function"&&typeof t.on=="function"&&(!e||typeof t.pause=="function"&&typeof t.resume=="function")&&(!t._writableState||((r=t._readableState)===null||r===void 0?void 0:r.readable)!==!1)&&(!t._writableState||t._readableState))}o(yD,"isReadableNodeStream");function ED(t){var e;return!!(t&&typeof t.write=="function"&&typeof t.on=="function"&&(!t._readableState||((e=t._writableState)===null||e===void 0?void 0:e.writable)!==!1))}o(ED,"isWritableNodeStream");function _wt(t){return!!(t&&typeof t.pipe=="function"&&t._readableState&&typeof t.on=="function"&&typeof t.write=="function")}o(_wt,"isDuplexNodeStream");function fl(t){return t&&(t._readableState||t._writableState||typeof t.write=="function"&&typeof t.on=="function"||typeof t.pipe=="function"&&typeof t.on=="function")}o(fl,"isNodeStream");function WBe(t){return!!(t&&!fl(t)&&typeof t.pipeThrough=="function"&&typeof t.getReader=="function"&&typeof t.cancel=="function")}o(WBe,"isReadableStream");function JBe(t){return!!(t&&!fl(t)&&typeof t.getWriter=="function"&&typeof t.abort=="function")}o(JBe,"isWritableStream");function YBe(t){return!!(t&&!fl(t)&&typeof t.readable=="object"&&typeof t.writable=="object")}o(YBe,"isTransformStream");function Twt(t){return WBe(t)||JBe(t)||YBe(t)}o(Twt,"isWebStream");function Dwt(t,e){return t==null?!1:e===!0?typeof t[HBe]=="function":e===!1?typeof t[zBe]=="function":typeof t[HBe]=="function"||typeof t[zBe]=="function"}o(Dwt,"isIterable");function CD(t){if(!fl(t))return null;let e=t._writableState,r=t._readableState,n=e||r;return!!(t.destroyed||t[VBe]||n!=null&&n.destroyed)}o(CD,"isDestroyed");function KBe(t){if(!ED(t))return null;if(t.writableEnded===!0)return!0;let e=t._writableState;return e!=null&&e.errored?!1:typeof e?.ended!="boolean"?null:e.ended}o(KBe,"isWritableEnded");function Qwt(t,e){if(!ED(t))return null;if(t.writableFinished===!0)return!0;let r=t._writableState;return r!=null&&r.errored?!1:typeof r?.finished!="boolean"?null:!!(r.finished||e===!1&&r.ended===!0&&r.length===0)}o(Qwt,"isWritableFinished");function kwt(t){if(!yD(t))return null;if(t.readableEnded===!0)return!0;let e=t._readableState;return!e||e.errored?!1:typeof e?.ended!="boolean"?null:e.ended}o(kwt,"isReadableEnded");function XBe(t,e){if(!yD(t))return null;let r=t._readableState;return r!=null&&r.errored?!1:typeof r?.endEmitted!="boolean"?null:!!(r.endEmitted||e===!1&&r.ended===!0&&r.length===0)}o(XBe,"isReadableFinished");function ZBe(t){return t&&t[pj]!=null?t[pj]:typeof t?.readable!="boolean"?null:CD(t)?!1:yD(t)&&t.readable&&!XBe(t)}o(ZBe,"isReadable");function exe(t){return t&&t[Aj]!=null?t[Aj]:typeof t?.writable!="boolean"?null:CD(t)?!1:ED(t)&&t.writable&&!KBe(t)}o(exe,"isWritable");function Pwt(t,e){return fl(t)?CD(t)?!0:!(e?.readable!==!1&&ZBe(t)||e?.writable!==!1&&exe(t)):null}o(Pwt,"isFinished");function Owt(t){var e,r;return fl(t)?t.writableErrored?t.writableErrored:(e=(r=t._writableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}o(Owt,"isWritableErrored");function Lwt(t){var e,r;return fl(t)?t.readableErrored?t.readableErrored:(e=(r=t._readableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}o(Lwt,"isReadableErrored");function Fwt(t){if(!fl(t))return null;if(typeof t.closed=="boolean")return t.closed;let e=t._writableState,r=t._readableState;return typeof e?.closed=="boolean"||typeof r?.closed=="boolean"?e?.closed||r?.closed:typeof t._closed=="boolean"&&txe(t)?t._closed:null}o(Fwt,"isClosed");function txe(t){return typeof t._closed=="boolean"&&typeof t._defaultKeepAlive=="boolean"&&typeof t._removedConnection=="boolean"&&typeof t._removedContLen=="boolean"}o(txe,"isOutgoingMessage");function rxe(t){return typeof t._sent100=="boolean"&&txe(t)}o(rxe,"isServerResponse");function Mwt(t){var e;return typeof t._consuming=="boolean"&&typeof t._dumped=="boolean"&&((e=t.req)===null||e===void 0?void 0:e.upgradeOrConnect)===void 0}o(Mwt,"isServerRequest");function Uwt(t){if(!fl(t))return null;let e=t._writableState,r=t._readableState,n=e||r;return!n&&rxe(t)||!!(n&&n.autoDestroy&&n.emitClose&&n.closed===!1)}o(Uwt,"willEmitClose");function qwt(t){var e;return!!(t&&((e=t[jBe])!==null&&e!==void 0?e:t.readableDidRead||t.readableAborted))}o(qwt,"isDisturbed");function Gwt(t){var e,r,n,i,s,a,c,l,u,d;return!!(t&&((e=(r=(n=(i=(s=(a=t[$Be])!==null&&a!==void 0?a:t.readableErrored)!==null&&s!==void 0?s:t.writableErrored)!==null&&i!==void 0?i:(c=t._readableState)===null||c===void 0?void 0:c.errorEmitted)!==null&&n!==void 0?n:(l=t._writableState)===null||l===void 0?void 0:l.errorEmitted)!==null&&r!==void 0?r:(u=t._readableState)===null||u===void 0?void 0:u.errored)!==null&&e!==void 0?e:!((d=t._writableState)===null||d===void 0)&&d.errored))}o(Gwt,"isErrored");nxe.exports={isDestroyed:CD,kIsDestroyed:VBe,isDisturbed:qwt,kIsDisturbed:jBe,isErrored:Gwt,kIsErrored:$Be,isReadable:ZBe,kIsReadable:pj,kIsClosedPromise:Nwt,kControllerErrorFunction:Rwt,kIsWritable:Aj,isClosed:Fwt,isDuplexNodeStream:_wt,isFinished:Pwt,isIterable:Dwt,isReadableNodeStream:yD,isReadableStream:WBe,isReadableEnded:kwt,isReadableFinished:XBe,isReadableErrored:Lwt,isNodeStream:fl,isWebStream:Twt,isWritable:exe,isWritableNodeStream:ED,isWritableStream:JBe,isWritableEnded:KBe,isWritableFinished:Qwt,isWritableErrored:Owt,isServerRequest:Mwt,isServerResponse:rxe,willEmitClose:Uwt,isTransformStream:YBe}});var Qu=g((VIr,Cj)=>{var of=sf(),{AbortError:fxe,codes:Hwt}=qi(),{ERR_INVALID_ARG_TYPE:zwt,ERR_STREAM_PREMATURE_CLOSE:ixe}=Hwt,{kEmptyObject:gj,once:yj}=fi(),{validateAbortSignal:Vwt,validateFunction:$wt,validateObject:jwt,validateBoolean:Wwt}=Iy(),{Promise:Jwt,PromisePrototypeThen:Ywt,SymbolDispose:hxe}=Cr(),{isClosed:Kwt,isReadable:sxe,isReadableNodeStream:mj,isReadableStream:Xwt,isReadableFinished:oxe,isReadableErrored:axe,isWritable:cxe,isWritableNodeStream:lxe,isWritableStream:Zwt,isWritableFinished:uxe,isWritableErrored:dxe,isNodeStream:eIt,willEmitClose:tIt,kIsClosedPromise:rIt}=hl(),Sy;function nIt(t){return t.setHeader&&typeof t.abort=="function"}o(nIt,"isRequest");var Ej=o(()=>{},"nop");function pxe(t,e,r){var n,i;if(arguments.length===2?(r=e,e=gj):e==null?e=gj:jwt(e,"options"),$wt(r,"callback"),Vwt(e.signal,"options.signal"),r=yj(r),Xwt(t)||Zwt(t))return iIt(t,e,r);if(!eIt(t))throw new zwt("stream",["ReadableStream","WritableStream","Stream"],t);let s=(n=e.readable)!==null&&n!==void 0?n:mj(t),a=(i=e.writable)!==null&&i!==void 0?i:lxe(t),c=t._writableState,l=t._readableState,u=o(()=>{t.writable||h()},"onlegacyfinish"),d=tIt(t)&&mj(t)===s&&lxe(t)===a,f=uxe(t,!1),h=o(()=>{f=!0,t.destroyed&&(d=!1),!(d&&(!t.readable||s))&&(!s||p)&&r.call(t)},"onfinish"),p=oxe(t,!1),m=o(()=>{p=!0,t.destroyed&&(d=!1),!(d&&(!t.writable||a))&&(!a||f)&&r.call(t)},"onend"),A=o(P=>{r.call(t,P)},"onerror"),E=Kwt(t),y=o(()=>{E=!0;let P=dxe(t)||axe(t);if(P&&typeof P!="boolean")return r.call(t,P);if(s&&!p&&mj(t,!0)&&!oxe(t,!1))return r.call(t,new ixe);if(a&&!f&&!uxe(t,!1))return r.call(t,new ixe);r.call(t)},"onclose"),C=o(()=>{E=!0;let P=dxe(t)||axe(t);if(P&&typeof P!="boolean")return r.call(t,P);r.call(t)},"onclosed"),w=o(()=>{t.req.on("finish",h)},"onrequest");nIt(t)?(t.on("complete",h),d||t.on("abort",y),t.req?w():t.on("request",w)):a&&!c&&(t.on("end",u),t.on("close",u)),!d&&typeof t.aborted=="boolean"&&t.on("aborted",y),t.on("end",m),t.on("finish",h),e.error!==!1&&t.on("error",A),t.on("close",y),E?of.nextTick(y):c!=null&&c.errorEmitted||l!=null&&l.errorEmitted?d||of.nextTick(C):(!s&&(!d||sxe(t))&&(f||cxe(t)===!1)||!a&&(!d||cxe(t))&&(p||sxe(t)===!1)||l&&t.req&&t.aborted)&&of.nextTick(C);let B=o(()=>{r=Ej,t.removeListener("aborted",y),t.removeListener("complete",h),t.removeListener("abort",y),t.removeListener("request",w),t.req&&t.req.removeListener("finish",h),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",h),t.removeListener("end",m),t.removeListener("error",A),t.removeListener("close",y)},"cleanup");if(e.signal&&!E){let P=o(()=>{let U=r;B(),U.call(t,new fxe(void 0,{cause:e.signal.reason}))},"abort");if(e.signal.aborted)of.nextTick(P);else{Sy=Sy||fi().addAbortListener;let U=Sy(e.signal,P),N=r;r=yj((...$)=>{U[hxe](),N.apply(t,$)})}}return B}o(pxe,"eos");function iIt(t,e,r){let n=!1,i=Ej;if(e.signal)if(i=o(()=>{n=!0,r.call(t,new fxe(void 0,{cause:e.signal.reason}))},"abort"),e.signal.aborted)of.nextTick(i);else{Sy=Sy||fi().addAbortListener;let a=Sy(e.signal,i),c=r;r=yj((...l)=>{a[hxe](),c.apply(t,l)})}let s=o((...a)=>{n||of.nextTick(()=>r.apply(t,a))},"resolverFn");return Ywt(t[rIt].promise,s,s),Ej}o(iIt,"eosWeb");function sIt(t,e){var r;let n=!1;return e===null&&(e=gj),(r=e)!==null&&r!==void 0&&r.cleanup&&(Wwt(e.cleanup,"cleanup"),n=e.cleanup),new Jwt((i,s)=>{let a=pxe(t,e,c=>{n&&a(),c?s(c):i()})})}o(sIt,"finished");Cj.exports=pxe;Cj.exports.finished=sIt});var Tp=g((jIr,wxe)=>{"use strict";var pl=sf(),{aggregateTwoErrors:oIt,codes:{ERR_MULTIPLE_CALLBACK:aIt},AbortError:cIt}=qi(),{Symbol:gxe}=Cr(),{kIsDestroyed:lIt,isDestroyed:uIt,isFinished:dIt,isServerRequest:fIt}=hl(),yxe=gxe("kDestroy"),bj=gxe("kConstruct");function Exe(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}o(Exe,"checkError");function hIt(t,e){let r=this._readableState,n=this._writableState,i=n||r;return n!=null&&n.destroyed||r!=null&&r.destroyed?(typeof e=="function"&&e(),this):(Exe(t,n,r),n&&(n.destroyed=!0),r&&(r.destroyed=!0),i.constructed?Axe(this,t,e):this.once(yxe,function(s){Axe(this,oIt(s,t),e)}),this)}o(hIt,"destroy");function Axe(t,e,r){let n=!1;function i(s){if(n)return;n=!0;let a=t._readableState,c=t._writableState;Exe(s,c,a),c&&(c.closed=!0),a&&(a.closed=!0),typeof r=="function"&&r(s),s?pl.nextTick(pIt,t,s):pl.nextTick(Cxe,t)}o(i,"onDestroy");try{t._destroy(e||null,i)}catch(s){i(s)}}o(Axe,"_destroy");function pIt(t,e){wj(t,e),Cxe(t)}o(pIt,"emitErrorCloseNT");function Cxe(t){let e=t._readableState,r=t._writableState;r&&(r.closeEmitted=!0),e&&(e.closeEmitted=!0),(r!=null&&r.emitClose||e!=null&&e.emitClose)&&t.emit("close")}o(Cxe,"emitCloseNT");function wj(t,e){let r=t._readableState,n=t._writableState;n!=null&&n.errorEmitted||r!=null&&r.errorEmitted||(n&&(n.errorEmitted=!0),r&&(r.errorEmitted=!0),t.emit("error",e))}o(wj,"emitErrorNT");function AIt(){let t=this._readableState,e=this._writableState;t&&(t.constructed=!0,t.closed=!1,t.closeEmitted=!1,t.destroyed=!1,t.errored=null,t.errorEmitted=!1,t.reading=!1,t.ended=t.readable===!1,t.endEmitted=t.readable===!1),e&&(e.constructed=!0,e.destroyed=!1,e.closed=!1,e.closeEmitted=!1,e.errored=null,e.errorEmitted=!1,e.finalCalled=!1,e.prefinished=!1,e.ended=e.writable===!1,e.ending=e.writable===!1,e.finished=e.writable===!1)}o(AIt,"undestroy");function Ij(t,e,r){let n=t._readableState,i=t._writableState;if(i!=null&&i.destroyed||n!=null&&n.destroyed)return this;n!=null&&n.autoDestroy||i!=null&&i.autoDestroy?t.destroy(e):e&&(e.stack,i&&!i.errored&&(i.errored=e),n&&!n.errored&&(n.errored=e),r?pl.nextTick(wj,t,e):wj(t,e))}o(Ij,"errorOrDestroy");function mIt(t,e){if(typeof t._construct!="function")return;let r=t._readableState,n=t._writableState;r&&(r.constructed=!1),n&&(n.constructed=!1),t.once(bj,e),!(t.listenerCount(bj)>1)&&pl.nextTick(gIt,t)}o(mIt,"construct");function gIt(t){let e=!1;function r(n){if(e){Ij(t,n??new aIt);return}e=!0;let i=t._readableState,s=t._writableState,a=s||i;i&&(i.constructed=!0),s&&(s.constructed=!0),a.destroyed?t.emit(yxe,n):n?Ij(t,n,!0):pl.nextTick(yIt,t)}o(r,"onConstruct");try{t._construct(n=>{pl.nextTick(r,n)})}catch(n){pl.nextTick(r,n)}}o(gIt,"constructNT");function yIt(t){t.emit(bj)}o(yIt,"emitConstructNT");function mxe(t){return t?.setHeader&&typeof t.abort=="function"}o(mxe,"isRequest");function bxe(t){t.emit("close")}o(bxe,"emitCloseLegacy");function EIt(t,e){t.emit("error",e),pl.nextTick(bxe,t)}o(EIt,"emitErrorCloseLegacy");function CIt(t,e){!t||uIt(t)||(!e&&!dIt(t)&&(e=new cIt),fIt(t)?(t.socket=null,t.destroy(e)):mxe(t)?t.abort():mxe(t.req)?t.req.abort():typeof t.destroy=="function"?t.destroy(e):typeof t.close=="function"?t.close():e?pl.nextTick(EIt,t,e):pl.nextTick(bxe,t),t.destroyed||(t[lIt]=!0))}o(CIt,"destroyer");wxe.exports={construct:mIt,destroyer:CIt,destroy:hIt,undestroy:AIt,errorOrDestroy:Ij}});var ID=g((JIr,Sxe)=>{"use strict";var{ArrayIsArray:bIt,ObjectSetPrototypeOf:Ixe}=Cr(),{EventEmitter:bD}=require("events");function wD(t){bD.call(this,t)}o(wD,"Stream");Ixe(wD.prototype,bD.prototype);Ixe(wD,bD);wD.prototype.pipe=function(t,e){let r=this;function n(d){t.writable&&t.write(d)===!1&&r.pause&&r.pause()}o(n,"ondata"),r.on("data",n);function i(){r.readable&&r.resume&&r.resume()}o(i,"ondrain"),t.on("drain",i),!t._isStdio&&(!e||e.end!==!1)&&(r.on("end",a),r.on("close",c));let s=!1;function a(){s||(s=!0,t.end())}o(a,"onend");function c(){s||(s=!0,typeof t.destroy=="function"&&t.destroy())}o(c,"onclose");function l(d){u(),bD.listenerCount(this,"error")===0&&this.emit("error",d)}o(l,"onerror"),Sj(r,"error",l),Sj(t,"error",l);function u(){r.removeListener("data",n),t.removeListener("drain",i),r.removeListener("end",a),r.removeListener("close",c),r.removeListener("error",l),t.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),t.removeListener("close",u)}return o(u,"cleanup"),r.on("end",u),r.on("close",u),t.on("close",u),t.emit("pipe",r),t};function Sj(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):bIt(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}o(Sj,"prependListener");Sxe.exports={Stream:wD,prependListener:Sj}});var eI=g((KIr,SD)=>{"use strict";var{SymbolDispose:wIt}=Cr(),{AbortError:Bxe,codes:IIt}=qi(),{isNodeStream:xxe,isWebStream:SIt,kControllerErrorFunction:BIt}=hl(),xIt=Qu(),{ERR_INVALID_ARG_TYPE:vxe}=IIt,Bj,vIt=o((t,e)=>{if(typeof t!="object"||!("aborted"in t))throw new vxe(e,"AbortSignal",t)},"validateAbortSignal");SD.exports.addAbortSignal=o(function(e,r){if(vIt(e,"signal"),!xxe(r)&&!SIt(r))throw new vxe("stream",["ReadableStream","WritableStream","Stream"],r);return SD.exports.addAbortSignalNoValidate(e,r)},"addAbortSignal");SD.exports.addAbortSignalNoValidate=function(t,e){if(typeof t!="object"||!("aborted"in t))return e;let r=xxe(e)?()=>{e.destroy(new Bxe(void 0,{cause:t.reason}))}:()=>{e[BIt](new Bxe(void 0,{cause:t.reason}))};if(t.aborted)r();else{Bj=Bj||fi().addAbortListener;let n=Bj(t,r);xIt(e,n[wIt])}return e}});var _xe=g((eSr,Rxe)=>{"use strict";var{StringPrototypeSlice:Nxe,SymbolIterator:NIt,TypedArrayPrototypeSet:BD,Uint8Array:RIt}=Cr(),{Buffer:xj}=require("buffer"),{inspect:_It}=fi();Rxe.exports=class{static{o(this,"BufferList")}constructor(){this.head=null,this.tail=null,this.length=0}push(e){let r={data:e,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}unshift(e){let r={data:e,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}shift(){if(this.length===0)return;let e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(this.length===0)return"";let r=this.head,n=""+r.data;for(;(r=r.next)!==null;)n+=e+r.data;return n}concat(e){if(this.length===0)return xj.alloc(0);let r=xj.allocUnsafe(e>>>0),n=this.head,i=0;for(;n;)BD(r,n.data,i),i+=n.data.length,n=n.next;return r}consume(e,r){let n=this.head.data;if(es.length)r+=s,e-=s.length;else{e===s.length?(r+=s,++i,n.next?this.head=n.next:this.head=this.tail=null):(r+=Nxe(s,0,e),this.head=n,n.data=Nxe(s,e));break}++i}while((n=n.next)!==null);return this.length-=i,r}_getBuffer(e){let r=xj.allocUnsafe(e),n=e,i=this.head,s=0;do{let a=i.data;if(e>a.length)BD(r,a,n-e),e-=a.length;else{e===a.length?(BD(r,a,n-e),++s,i.next?this.head=i.next:this.head=this.tail=null):(BD(r,new RIt(a.buffer,a.byteOffset,e),n-e),this.head=i,i.data=a.slice(e));break}++s}while((i=i.next)!==null);return this.length-=s,r}[Symbol.for("nodejs.util.inspect.custom")](e,r){return _It(this,{...r,depth:0,customInspect:!1})}}});var tI=g((rSr,kxe)=>{"use strict";var{MathFloor:TIt,NumberIsInteger:DIt}=Cr(),{validateInteger:QIt}=Iy(),{ERR_INVALID_ARG_VALUE:kIt}=qi().codes,Txe=16*1024,Dxe=16;function PIt(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}o(PIt,"highWaterMarkFrom");function Qxe(t){return t?Dxe:Txe}o(Qxe,"getDefaultHighWaterMark");function OIt(t,e){QIt(e,"value",0),t?Dxe=e:Txe=e}o(OIt,"setDefaultHighWaterMark");function LIt(t,e,r,n){let i=PIt(e,n,r);if(i!=null){if(!DIt(i)||i<0){let s=n?`options.${r}`:"options.highWaterMark";throw new kIt(s,i)}return TIt(i)}return Qxe(t.objectMode)}o(LIt,"getHighWaterMark");kxe.exports={getHighWaterMark:LIt,getDefaultHighWaterMark:Qxe,setDefaultHighWaterMark:OIt}});var vj=g((iSr,Fxe)=>{"use strict";var Pxe=sf(),{PromisePrototypeThen:FIt,SymbolAsyncIterator:Oxe,SymbolIterator:Lxe}=Cr(),{Buffer:MIt}=require("buffer"),{ERR_INVALID_ARG_TYPE:UIt,ERR_STREAM_NULL_VALUES:qIt}=qi().codes;function GIt(t,e,r){let n;if(typeof e=="string"||e instanceof MIt)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});let i;if(e&&e[Oxe])i=!0,n=e[Oxe]();else if(e&&e[Lxe])i=!1,n=e[Lxe]();else throw new UIt("iterable",["Iterable"],e);let s=new t({objectMode:!0,highWaterMark:1,...r}),a=!1;s._read=function(){a||(a=!0,l())},s._destroy=function(u,d){FIt(c(u),()=>Pxe.nextTick(d,u),f=>Pxe.nextTick(d,f||u))};async function c(u){let d=u!=null,f=typeof n.throw=="function";if(d&&f){let{value:h,done:p}=await n.throw(u);if(await h,p)return}if(typeof n.return=="function"){let{value:h}=await n.return();await h}}o(c,"close");async function l(){for(;;){try{let{value:u,done:d}=i?await n.next():n.next();if(d)s.push(null);else{let f=u&&typeof u.then=="function"?await u:u;if(f===null)throw a=!1,new qIt;if(s.push(f))continue;a=!1}}catch(u){s.destroy(u)}break}}return o(l,"next"),s}o(GIt,"from");Fxe.exports=GIt});var nI=g((oSr,rve)=>{var Va=sf(),{ArrayPrototypeIndexOf:HIt,NumberIsInteger:zIt,NumberIsNaN:VIt,NumberParseInt:$It,ObjectDefineProperties:Pj,ObjectKeys:jIt,ObjectSetPrototypeOf:qxe,Promise:Gxe,SafeSet:WIt,SymbolAsyncDispose:JIt,SymbolAsyncIterator:YIt,Symbol:KIt}=Cr();rve.exports=it;it.ReadableState=RD;var{EventEmitter:XIt}=require("events"),{Stream:af,prependListener:ZIt}=ID(),{Buffer:Nj}=require("buffer"),{addAbortSignal:eSt}=eI(),Hxe=Qu(),At=fi().debuglog("stream",t=>{At=t}),tSt=_xe(),vy=Tp(),{getHighWaterMark:rSt,getDefaultHighWaterMark:nSt}=tI(),{aggregateTwoErrors:Mxe,codes:{ERR_INVALID_ARG_TYPE:iSt,ERR_METHOD_NOT_IMPLEMENTED:sSt,ERR_OUT_OF_RANGE:oSt,ERR_STREAM_PUSH_AFTER_EOF:aSt,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:cSt},AbortError:lSt}=qi(),{validateObject:uSt}=Iy(),Dp=KIt("kPaused"),{StringDecoder:zxe}=require("string_decoder"),dSt=vj();qxe(it.prototype,af.prototype);qxe(it,af);var Rj=o(()=>{},"nop"),{errorOrDestroy:By}=vy,xy=1,fSt=2,Vxe=4,rI=8,$xe=16,xD=32,vD=64,jxe=128,hSt=256,pSt=512,ASt=1024,Qj=2048,kj=4096,mSt=8192,gSt=16384,ySt=32768,Wxe=65536,ESt=1<<17,CSt=1<<18;function bn(t){return{enumerable:!1,get(){return(this.state&t)!==0},set(e){e?this.state|=t:this.state&=~t}}}o(bn,"makeBitMapDescriptor");Pj(RD.prototype,{objectMode:bn(xy),ended:bn(fSt),endEmitted:bn(Vxe),reading:bn(rI),constructed:bn($xe),sync:bn(xD),needReadable:bn(vD),emittedReadable:bn(jxe),readableListening:bn(hSt),resumeScheduled:bn(pSt),errorEmitted:bn(ASt),emitClose:bn(Qj),autoDestroy:bn(kj),destroyed:bn(mSt),closed:bn(gSt),closeEmitted:bn(ySt),multiAwaitDrain:bn(Wxe),readingMore:bn(ESt),dataEmitted:bn(CSt)});function RD(t,e,r){typeof r!="boolean"&&(r=e instanceof Al()),this.state=Qj|kj|$xe|xD,t&&t.objectMode&&(this.state|=xy),r&&t&&t.readableObjectMode&&(this.state|=xy),this.highWaterMark=t?rSt(this,t,"readableHighWaterMark",r):nSt(!1),this.buffer=new tSt,this.length=0,this.pipes=[],this.flowing=null,this[Dp]=null,t&&t.emitClose===!1&&(this.state&=~Qj),t&&t.autoDestroy===!1&&(this.state&=~kj),this.errored=null,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,t&&t.encoding&&(this.decoder=new zxe(t.encoding),this.encoding=t.encoding)}o(RD,"ReadableState");function it(t){if(!(this instanceof it))return new it(t);let e=this instanceof Al();this._readableState=new RD(t,this,e),t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.construct=="function"&&(this._construct=t.construct),t.signal&&!e&&eSt(t.signal,this)),af.call(this,t),vy.construct(this,()=>{this._readableState.needReadable&&ND(this,this._readableState)})}o(it,"Readable");it.prototype.destroy=vy.destroy;it.prototype._undestroy=vy.undestroy;it.prototype._destroy=function(t,e){e(t)};it.prototype[XIt.captureRejectionSymbol]=function(t){this.destroy(t)};it.prototype[JIt]=function(){let t;return this.destroyed||(t=this.readableEnded?null:new lSt,this.destroy(t)),new Gxe((e,r)=>Hxe(this,n=>n&&n!==t?r(n):e(null)))};it.prototype.push=function(t,e){return Jxe(this,t,e,!1)};it.prototype.unshift=function(t,e){return Jxe(this,t,e,!0)};function Jxe(t,e,r,n){At("readableAddChunk",e);let i=t._readableState,s;if((i.state&xy)===0&&(typeof e=="string"?(r=r||i.defaultEncoding,i.encoding!==r&&(n&&i.encoding?e=Nj.from(e,r).toString(i.encoding):(e=Nj.from(e,r),r=""))):e instanceof Nj?r="":af._isUint8Array(e)?(e=af._uint8ArrayToBuffer(e),r=""):e!=null&&(s=new iSt("chunk",["string","Buffer","Uint8Array"],e))),s)By(t,s);else if(e===null)i.state&=~rI,ISt(t,i);else if((i.state&xy)!==0||e&&e.length>0)if(n)if((i.state&Vxe)!==0)By(t,new cSt);else{if(i.destroyed||i.errored)return!1;_j(t,i,e,!0)}else if(i.ended)By(t,new aSt);else{if(i.destroyed||i.errored)return!1;i.state&=~rI,i.decoder&&!r?(e=i.decoder.write(e),i.objectMode||e.length!==0?_j(t,i,e,!1):ND(t,i)):_j(t,i,e,!1)}else n||(i.state&=~rI,ND(t,i));return!i.ended&&(i.length0?((e.state&Wxe)!==0?e.awaitDrainWriters.clear():e.awaitDrainWriters=null,e.dataEmitted=!0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),(e.state&vD)!==0&&_D(t)),ND(t,e)}o(_j,"addChunk");it.prototype.isPaused=function(){let t=this._readableState;return t[Dp]===!0||t.flowing===!1};it.prototype.setEncoding=function(t){let e=new zxe(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;let r=this._readableState.buffer,n="";for(let i of r)n+=e.write(i);return r.clear(),n!==""&&r.push(n),this._readableState.length=n.length,this};var bSt=1073741824;function wSt(t){if(t>bSt)throw new oSt("size","<= 1GiB",t);return t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++,t}o(wSt,"computeNewHighWaterMark");function Uxe(t,e){return t<=0||e.length===0&&e.ended?0:(e.state&xy)!==0?1:VIt(t)?e.flowing&&e.length?e.buffer.first().length:e.length:t<=e.length?t:e.ended?e.length:0}o(Uxe,"howMuchToRead");it.prototype.read=function(t){At("read",t),t===void 0?t=NaN:zIt(t)||(t=$It(t,10));let e=this._readableState,r=t;if(t>e.highWaterMark&&(e.highWaterMark=wSt(t)),t!==0&&(e.state&=~jxe),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return At("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Tj(this):_D(this),null;if(t=Uxe(t,e),t===0&&e.ended)return e.length===0&&Tj(this),null;let n=(e.state&vD)!==0;if(At("need readable",n),(e.length===0||e.length-t0?i=eve(t,e):i=null,i===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.multiAwaitDrain?e.awaitDrainWriters.clear():e.awaitDrainWriters=null),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&Tj(this)),i!==null&&!e.errorEmitted&&!e.closeEmitted&&(e.dataEmitted=!0,this.emit("data",i)),i};function ISt(t,e){if(At("onEofChunk"),!e.ended){if(e.decoder){let r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?_D(t):(e.needReadable=!1,e.emittedReadable=!0,Yxe(t))}}o(ISt,"onEofChunk");function _D(t){let e=t._readableState;At("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(At("emitReadable",e.flowing),e.emittedReadable=!0,Va.nextTick(Yxe,t))}o(_D,"emitReadable");function Yxe(t){let e=t._readableState;At("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&!e.errored&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Xxe(t)}o(Yxe,"emitReadable_");function ND(t,e){!e.readingMore&&e.constructed&&(e.readingMore=!0,Va.nextTick(SSt,t,e))}o(ND,"maybeReadMore");function SSt(t,e){for(;!e.reading&&!e.ended&&(e.length1&&n.pipes.includes(t)&&(At("false write response, pause",n.awaitDrainWriters.size),n.awaitDrainWriters.add(t)),r.pause()),l||(l=BSt(r,t),t.on("drain",l))}o(f,"pause"),r.on("data",h);function h(y){At("ondata");let C=t.write(y);At("dest.write",C),C===!1&&f()}o(h,"ondata");function p(y){if(At("onerror",y),E(),t.removeListener("error",p),t.listenerCount("error")===0){let C=t._writableState||t._readableState;C&&!C.errorEmitted?By(t,y):t.emit("error",y)}}o(p,"onerror"),ZIt(t,"error",p);function m(){t.removeListener("finish",A),E()}o(m,"onclose"),t.once("close",m);function A(){At("onfinish"),t.removeListener("close",m),E()}o(A,"onfinish"),t.once("finish",A);function E(){At("unpipe"),r.unpipe(t)}return o(E,"unpipe"),t.emit("pipe",r),t.writableNeedDrain===!0?f():n.flowing||(At("pipe resume"),r.resume()),t};function BSt(t,e){return o(function(){let n=t._readableState;n.awaitDrainWriters===e?(At("pipeOnDrain",1),n.awaitDrainWriters=null):n.multiAwaitDrain&&(At("pipeOnDrain",n.awaitDrainWriters.size),n.awaitDrainWriters.delete(e)),(!n.awaitDrainWriters||n.awaitDrainWriters.size===0)&&t.listenerCount("data")&&t.resume()},"pipeOnDrainFunctionResult")}o(BSt,"pipeOnDrain");it.prototype.unpipe=function(t){let e=this._readableState,r={hasUnpiped:!1};if(e.pipes.length===0)return this;if(!t){let i=e.pipes;e.pipes=[],this.pause();for(let s=0;s0,n.flowing!==!1&&this.resume()):t==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,At("on readable",n.length,n.reading),n.length?_D(this):n.reading||Va.nextTick(xSt,this)),r};it.prototype.addListener=it.prototype.on;it.prototype.removeListener=function(t,e){let r=af.prototype.removeListener.call(this,t,e);return t==="readable"&&Va.nextTick(Kxe,this),r};it.prototype.off=it.prototype.removeListener;it.prototype.removeAllListeners=function(t){let e=af.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&Va.nextTick(Kxe,this),e};function Kxe(t){let e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&e[Dp]===!1?e.flowing=!0:t.listenerCount("data")>0?t.resume():e.readableListening||(e.flowing=null)}o(Kxe,"updateReadableListening");function xSt(t){At("readable nexttick read 0"),t.read(0)}o(xSt,"nReadingNextTick");it.prototype.resume=function(){let t=this._readableState;return t.flowing||(At("resume"),t.flowing=!t.readableListening,vSt(this,t)),t[Dp]=!1,this};function vSt(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Va.nextTick(NSt,t,e))}o(vSt,"resume");function NSt(t,e){At("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),Xxe(t),e.flowing&&!e.reading&&t.read(0)}o(NSt,"resume_");it.prototype.pause=function(){return At("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(At("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[Dp]=!0,this};function Xxe(t){let e=t._readableState;for(At("flow",e.flowing);e.flowing&&t.read()!==null;);}o(Xxe,"flow");it.prototype.wrap=function(t){let e=!1;t.on("data",n=>{!this.push(n)&&t.pause&&(e=!0,t.pause())}),t.on("end",()=>{this.push(null)}),t.on("error",n=>{By(this,n)}),t.on("close",()=>{this.destroy()}),t.on("destroy",()=>{this.destroy()}),this._read=()=>{e&&t.resume&&(e=!1,t.resume())};let r=jIt(t);for(let n=1;n{i=a?Mxe(i,a):null,r(),r=Rj});try{for(;;){let a=t.destroyed?null:t.read();if(a!==null)yield a;else{if(i)throw i;if(i===null)return;await new Gxe(n)}}}catch(a){throw i=Mxe(i,a),i}finally{(i||e?.destroyOnReturn!==!1)&&(i===void 0||t._readableState.autoDestroy)?vy.destroyer(t,null):(t.off("readable",n),s())}}o(RSt,"createAsyncIterator");Pj(it.prototype,{readable:{__proto__:null,get(){let t=this._readableState;return!!t&&t.readable!==!1&&!t.destroyed&&!t.errorEmitted&&!t.endEmitted},set(t){this._readableState&&(this._readableState.readable=!!t)}},readableDidRead:{__proto__:null,enumerable:!1,get:o(function(){return this._readableState.dataEmitted},"get")},readableAborted:{__proto__:null,enumerable:!1,get:o(function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)},"get")},readableHighWaterMark:{__proto__:null,enumerable:!1,get:o(function(){return this._readableState.highWaterMark},"get")},readableBuffer:{__proto__:null,enumerable:!1,get:o(function(){return this._readableState&&this._readableState.buffer},"get")},readableFlowing:{__proto__:null,enumerable:!1,get:o(function(){return this._readableState.flowing},"get"),set:o(function(t){this._readableState&&(this._readableState.flowing=t)},"set")},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(t){this._readableState&&(this._readableState.destroyed=t)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}});Pj(RD.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[Dp]!==!1},set(t){this[Dp]=!!t}}});it._fromList=eve;function eve(t,e){if(e.length===0)return null;let r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}o(eve,"fromList");function Tj(t){let e=t._readableState;At("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,Va.nextTick(_St,e,t))}o(Tj,"endReadable");function _St(t,e){if(At("endReadableNT",t.endEmitted,t.length),!t.errored&&!t.closeEmitted&&!t.endEmitted&&t.length===0){if(t.endEmitted=!0,e.emit("end"),e.writable&&e.allowHalfOpen===!1)Va.nextTick(TSt,e);else if(t.autoDestroy){let r=e._writableState;(!r||r.autoDestroy&&(r.finished||r.writable===!1))&&e.destroy()}}}o(_St,"endReadableNT");function TSt(t){t.writable&&!t.writableEnded&&!t.destroyed&&t.end()}o(TSt,"endWritableNT");it.from=function(t,e){return dSt(it,t,e)};var Dj;function tve(){return Dj===void 0&&(Dj={}),Dj}o(tve,"lazyWebStreams");it.fromWeb=function(t,e){return tve().newStreamReadableFromReadableStream(t,e)};it.toWeb=function(t,e){return tve().newReadableStreamFromStreamReadable(t,e)};it.wrap=function(t,e){var r,n;return new it({objectMode:(r=(n=t.readableObjectMode)!==null&&n!==void 0?n:t.objectMode)!==null&&r!==void 0?r:!0,...e,destroy(i,s){vy.destroyer(t,i),s(i)}}).wrap(t)}});var PD=g((cSr,pve)=>{var Qp=sf(),{ArrayPrototypeSlice:sve,Error:DSt,FunctionPrototypeSymbolHasInstance:ove,ObjectDefineProperty:ave,ObjectDefineProperties:QSt,ObjectSetPrototypeOf:cve,StringPrototypeToLowerCase:kSt,Symbol:PSt,SymbolHasInstance:OSt}=Cr();pve.exports=br;br.WritableState=oI;var{EventEmitter:LSt}=require("events"),iI=ID().Stream,{Buffer:TD}=require("buffer"),kD=Tp(),{addAbortSignal:FSt}=eI(),{getHighWaterMark:MSt,getDefaultHighWaterMark:USt}=tI(),{ERR_INVALID_ARG_TYPE:qSt,ERR_METHOD_NOT_IMPLEMENTED:GSt,ERR_MULTIPLE_CALLBACK:lve,ERR_STREAM_CANNOT_PIPE:HSt,ERR_STREAM_DESTROYED:sI,ERR_STREAM_ALREADY_FINISHED:zSt,ERR_STREAM_NULL_VALUES:VSt,ERR_STREAM_WRITE_AFTER_END:$St,ERR_UNKNOWN_ENCODING:uve}=qi().codes,{errorOrDestroy:Ny}=kD;cve(br.prototype,iI.prototype);cve(br,iI);function Fj(){}o(Fj,"nop");var Ry=PSt("kOnFinished");function oI(t,e,r){typeof r!="boolean"&&(r=e instanceof Al()),this.objectMode=!!(t&&t.objectMode),r&&(this.objectMode=this.objectMode||!!(t&&t.writableObjectMode)),this.highWaterMark=t?MSt(this,t,"writableHighWaterMark",r):USt(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let n=!!(t&&t.decodeStrings===!1);this.decodeStrings=!n,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=WSt.bind(void 0,e),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,QD(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!t||t.emitClose!==!1,this.autoDestroy=!t||t.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[Ry]=[]}o(oI,"WritableState");function QD(t){t.buffered=[],t.bufferedIndex=0,t.allBuffers=!0,t.allNoop=!0}o(QD,"resetBuffer");oI.prototype.getBuffer=o(function(){return sve(this.buffered,this.bufferedIndex)},"getBuffer");ave(oI.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function br(t){let e=this instanceof Al();if(!e&&!ove(br,this))return new br(t);this._writableState=new oI(t,this,e),t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final),typeof t.construct=="function"&&(this._construct=t.construct),t.signal&&FSt(t.signal,this)),iI.call(this,t),kD.construct(this,()=>{let r=this._writableState;r.writing||Uj(this,r),qj(this,r)})}o(br,"Writable");ave(br,OSt,{__proto__:null,value:o(function(t){return ove(this,t)?!0:this!==br?!1:t&&t._writableState instanceof oI},"value")});br.prototype.pipe=function(){Ny(this,new HSt)};function dve(t,e,r,n){let i=t._writableState;if(typeof r=="function")n=r,r=i.defaultEncoding;else{if(!r)r=i.defaultEncoding;else if(r!=="buffer"&&!TD.isEncoding(r))throw new uve(r);typeof n!="function"&&(n=Fj)}if(e===null)throw new VSt;if(!i.objectMode)if(typeof e=="string")i.decodeStrings!==!1&&(e=TD.from(e,r),r="buffer");else if(e instanceof TD)r="buffer";else if(iI._isUint8Array(e))e=iI._uint8ArrayToBuffer(e),r="buffer";else throw new qSt("chunk",["string","Buffer","Uint8Array"],e);let s;return i.ending?s=new $St:i.destroyed&&(s=new sI("write")),s?(Qp.nextTick(n,s),Ny(t,s,!0),s):(i.pendingcb++,jSt(t,i,e,r,n))}o(dve,"_write");br.prototype.write=function(t,e,r){return dve(this,t,e,r)===!0};br.prototype.cork=function(){this._writableState.corked++};br.prototype.uncork=function(){let t=this._writableState;t.corked&&(t.corked--,t.writing||Uj(this,t))};br.prototype.setDefaultEncoding=o(function(e){if(typeof e=="string"&&(e=kSt(e)),!TD.isEncoding(e))throw new uve(e);return this._writableState.defaultEncoding=e,this},"setDefaultEncoding");function jSt(t,e,r,n,i){let s=e.objectMode?1:r.length;e.length+=s;let a=e.lengthr.bufferedIndex&&Uj(t,r),n?r.afterWriteTickInfo!==null&&r.afterWriteTickInfo.cb===i?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:i,stream:t,state:r},Qp.nextTick(JSt,r.afterWriteTickInfo)):fve(t,r,1,i))}o(WSt,"onwrite");function JSt({stream:t,state:e,count:r,cb:n}){return e.afterWriteTickInfo=null,fve(t,e,r,n)}o(JSt,"afterWriteTick");function fve(t,e,r,n){for(!e.ending&&!t.destroyed&&e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"));r-- >0;)e.pendingcb--,n();e.destroyed&&Mj(e),qj(t,e)}o(fve,"afterWrite");function Mj(t){if(t.writing)return;for(let i=t.bufferedIndex;i1&&t._writev){e.pendingcb-=s-1;let c=e.allNoop?Fj:u=>{for(let d=a;d256?(r.splice(0,a),e.bufferedIndex=0):e.bufferedIndex=a}e.bufferProcessing=!1}o(Uj,"clearBuffer");br.prototype._write=function(t,e,r){if(this._writev)this._writev([{chunk:t,encoding:e}],r);else throw new GSt("_write()")};br.prototype._writev=null;br.prototype.end=function(t,e,r){let n=this._writableState;typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null);let i;if(t!=null){let s=dve(this,t,e);s instanceof DSt&&(i=s)}return n.corked&&(n.corked=1,this.uncork()),i||(!n.errored&&!n.ending?(n.ending=!0,qj(this,n,!0),n.ended=!0):n.finished?i=new zSt("end"):n.destroyed&&(i=new sI("end"))),typeof r=="function"&&(i||n.finished?Qp.nextTick(r,i):n[Ry].push(r)),this};function DD(t){return t.ending&&!t.destroyed&&t.constructed&&t.length===0&&!t.errored&&t.buffered.length===0&&!t.finished&&!t.writing&&!t.errorEmitted&&!t.closeEmitted}o(DD,"needFinish");function YSt(t,e){let r=!1;function n(i){if(r){Ny(t,i??lve());return}if(r=!0,e.pendingcb--,i){let s=e[Ry].splice(0);for(let a=0;a{DD(i)?Lj(n,i):i.pendingcb--},t,e)):DD(e)&&(e.pendingcb++,Lj(t,e))))}o(qj,"finishMaybe");function Lj(t,e){e.pendingcb--,e.finished=!0;let r=e[Ry].splice(0);for(let n=0;n{var Gj=sf(),ZSt=require("buffer"),{isReadable:eBt,isWritable:tBt,isIterable:Ave,isNodeStream:rBt,isReadableNodeStream:mve,isWritableNodeStream:gve,isDuplexNodeStream:nBt,isReadableStream:yve,isWritableStream:Eve}=hl(),Cve=Qu(),{AbortError:xve,codes:{ERR_INVALID_ARG_TYPE:iBt,ERR_INVALID_RETURN_VALUE:bve}}=qi(),{destroyer:Ty}=Tp(),sBt=Al(),vve=nI(),oBt=PD(),{createDeferredPromise:wve}=fi(),Ive=vj(),Sve=globalThis.Blob||ZSt.Blob,aBt=o(typeof Sve<"u"?function(e){return e instanceof Sve}:function(e){return!1},"isBlob"),cBt=globalThis.AbortController||by().AbortController,{FunctionPrototypeCall:Bve}=Cr(),cf=class extends sBt{static{o(this,"Duplexify")}constructor(e){super(e),e?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),e?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};Nve.exports=o(function t(e,r){if(nBt(e))return e;if(mve(e))return _y({readable:e});if(gve(e))return _y({writable:e});if(rBt(e))return _y({writable:!1,readable:!1});if(yve(e))return _y({readable:vve.fromWeb(e)});if(Eve(e))return _y({writable:oBt.fromWeb(e)});if(typeof e=="function"){let{value:i,write:s,final:a,destroy:c}=lBt(e);if(Ave(i))return Ive(cf,i,{objectMode:!0,write:s,final:a,destroy:c});let l=i?.then;if(typeof l=="function"){let u,d=Bve(l,i,f=>{if(f!=null)throw new bve("nully","body",f)},f=>{Ty(u,f)});return u=new cf({objectMode:!0,readable:!1,write:s,final(f){a(async()=>{try{await d,Gj.nextTick(f,null)}catch(h){Gj.nextTick(f,h)}})},destroy:c})}throw new bve("Iterable, AsyncIterable or AsyncFunction",r,i)}if(aBt(e))return t(e.arrayBuffer());if(Ave(e))return Ive(cf,e,{objectMode:!0,writable:!1});if(yve(e?.readable)&&Eve(e?.writable))return cf.fromWeb(e);if(typeof e?.writable=="object"||typeof e?.readable=="object"){let i=e!=null&&e.readable?mve(e?.readable)?e?.readable:t(e.readable):void 0,s=e!=null&&e.writable?gve(e?.writable)?e?.writable:t(e.writable):void 0;return _y({readable:i,writable:s})}let n=e?.then;if(typeof n=="function"){let i;return Bve(n,e,s=>{s!=null&&i.push(s),i.push(null)},s=>{Ty(i,s)}),i=new cf({objectMode:!0,writable:!1,read(){}})}throw new iBt(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)},"duplexify");function lBt(t){let{promise:e,resolve:r}=wve(),n=new cBt,i=n.signal;return{value:t((async function*(){for(;;){let a=e;e=null;let{chunk:c,done:l,cb:u}=await a;if(Gj.nextTick(u),l)return;if(i.aborted)throw new xve(void 0,{cause:i.reason});({promise:e,resolve:r}=wve()),yield c}})(),{signal:i}),write(a,c,l){let u=r;r=null,u({chunk:a,done:!1,cb:l})},final(a){let c=r;r=null,c({done:!0,cb:a})},destroy(a,c){n.abort(),c(a)}}}o(lBt,"fromAsyncGen");function _y(t){let e=t.readable&&typeof t.readable.read!="function"?vve.wrap(t.readable):t.readable,r=t.writable,n=!!eBt(e),i=!!tBt(r),s,a,c,l,u;function d(f){let h=l;l=null,h?h(f):f&&u.destroy(f)}return o(d,"onfinished"),u=new cf({readableObjectMode:!!(e!=null&&e.readableObjectMode),writableObjectMode:!!(r!=null&&r.writableObjectMode),readable:n,writable:i}),i&&(Cve(r,f=>{i=!1,f&&Ty(e,f),d(f)}),u._write=function(f,h,p){r.write(f,h)?p():s=p},u._final=function(f){r.end(),a=f},r.on("drain",function(){if(s){let f=s;s=null,f()}}),r.on("finish",function(){if(a){let f=a;a=null,f()}})),n&&(Cve(e,f=>{n=!1,f&&Ty(e,f),d(f)}),e.on("readable",function(){if(c){let f=c;c=null,f()}}),e.on("end",function(){u.push(null)}),u._read=function(){for(;;){let f=e.read();if(f===null){c=u._read;return}if(!u.push(f))return}}),u._destroy=function(f,h){!f&&l!==null&&(f=new xve),c=null,s=null,a=null,l===null?h(f):(l=h,Ty(r,f),Ty(e,f))},u}o(_y,"_duplexify")});var Al=g((fSr,Dve)=>{"use strict";var{ObjectDefineProperties:uBt,ObjectGetOwnPropertyDescriptor:ku,ObjectKeys:dBt,ObjectSetPrototypeOf:_ve}=Cr();Dve.exports=$a;var Vj=nI(),ea=PD();_ve($a.prototype,Vj.prototype);_ve($a,Vj);{let t=dBt(ea.prototype);for(let e=0;e{"use strict";var{ObjectSetPrototypeOf:Qve,Symbol:fBt}=Cr();kve.exports=Pu;var{ERR_METHOD_NOT_IMPLEMENTED:hBt}=qi().codes,jj=Al(),{getHighWaterMark:pBt}=tI();Qve(Pu.prototype,jj.prototype);Qve(Pu,jj);var aI=fBt("kCallback");function Pu(t){if(!(this instanceof Pu))return new Pu(t);let e=t?pBt(this,t,"readableHighWaterMark",!0):null;e===0&&(t={...t,highWaterMark:null,readableHighWaterMark:e,writableHighWaterMark:t.writableHighWaterMark||0}),jj.call(this,t),this._readableState.sync=!1,this[aI]=null,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",ABt)}o(Pu,"Transform");function $j(t){typeof this._flush=="function"&&!this.destroyed?this._flush((e,r)=>{if(e){t?t(e):this.destroy(e);return}r!=null&&this.push(r),this.push(null),t&&t()}):(this.push(null),t&&t())}o($j,"final");function ABt(){this._final!==$j&&$j.call(this)}o(ABt,"prefinish");Pu.prototype._final=$j;Pu.prototype._transform=function(t,e,r){throw new hBt("_transform()")};Pu.prototype._write=function(t,e,r){let n=this._readableState,i=this._writableState,s=n.length;this._transform(t,e,(a,c)=>{if(a){r(a);return}c!=null&&this.push(c),i.ended||s===n.length||n.length{"use strict";var{ObjectSetPrototypeOf:Pve}=Cr();Ove.exports=Dy;var Jj=Wj();Pve(Dy.prototype,Jj.prototype);Pve(Dy,Jj);function Dy(t){if(!(this instanceof Dy))return new Dy(t);Jj.call(this,t)}o(Dy,"PassThrough");Dy.prototype._transform=function(t,e,r){r(null,t)}});var MD=g((ySr,qve)=>{var cI=sf(),{ArrayIsArray:mBt,Promise:gBt,SymbolAsyncIterator:yBt,SymbolDispose:EBt}=Cr(),FD=Qu(),{once:CBt}=fi(),bBt=Tp(),Lve=Al(),{aggregateTwoErrors:wBt,codes:{ERR_INVALID_ARG_TYPE:sW,ERR_INVALID_RETURN_VALUE:Kj,ERR_MISSING_ARGS:IBt,ERR_STREAM_DESTROYED:SBt,ERR_STREAM_PREMATURE_CLOSE:BBt},AbortError:xBt}=qi(),{validateFunction:vBt,validateAbortSignal:NBt}=Iy(),{isIterable:kp,isReadable:Xj,isReadableNodeStream:LD,isNodeStream:Fve,isTransformStream:Qy,isWebStream:RBt,isReadableStream:Zj,isReadableFinished:_Bt}=hl(),TBt=globalThis.AbortController||by().AbortController,eW,tW,rW;function Mve(t,e,r){let n=!1;t.on("close",()=>{n=!0});let i=FD(t,{readable:e,writable:r},s=>{n=!s});return{destroy:o(s=>{n||(n=!0,bBt.destroyer(t,s||new SBt("pipe")))},"destroy"),cleanup:i}}o(Mve,"destroyer");function DBt(t){return vBt(t[t.length-1],"streams[stream.length - 1]"),t.pop()}o(DBt,"popCallback");function nW(t){if(kp(t))return t;if(LD(t))return QBt(t);throw new sW("val",["Readable","Iterable","AsyncIterable"],t)}o(nW,"makeAsyncIterable");async function*QBt(t){tW||(tW=nI()),yield*tW.prototype[yBt].call(t)}o(QBt,"fromReadable");async function OD(t,e,r,{end:n}){let i,s=null,a=o(u=>{if(u&&(i=u),s){let d=s;s=null,d()}},"resume"),c=o(()=>new gBt((u,d)=>{i?d(i):s=o(()=>{i?d(i):u()},"onresolve")}),"wait");e.on("drain",a);let l=FD(e,{readable:!1},a);try{e.writableNeedDrain&&await c();for await(let u of t)e.write(u)||await c();n&&(e.end(),await c()),r()}catch(u){r(i!==u?wBt(i,u):u)}finally{l(),e.off("drain",a)}}o(OD,"pumpToNode");async function iW(t,e,r,{end:n}){Qy(e)&&(e=e.writable);let i=e.getWriter();try{for await(let s of t)await i.ready,i.write(s).catch(()=>{});await i.ready,n&&await i.close(),r()}catch(s){try{await i.abort(s),r(s)}catch(a){r(a)}}}o(iW,"pumpToWeb");function kBt(...t){return Uve(t,CBt(DBt(t)))}o(kBt,"pipeline");function Uve(t,e,r){if(t.length===1&&mBt(t[0])&&(t=t[0]),t.length<2)throw new IBt("streams");let n=new TBt,i=n.signal,s=r?.signal,a=[];NBt(s,"options.signal");function c(){m(new xBt)}o(c,"abort"),rW=rW||fi().addAbortListener;let l;s&&(l=rW(s,c));let u,d,f=[],h=0;function p(w){m(w,--h===0)}o(p,"finish");function m(w,B){var P;if(w&&(!u||u.code==="ERR_STREAM_PREMATURE_CLOSE")&&(u=w),!(!u&&!B)){for(;f.length;)f.shift()(u);(P=l)===null||P===void 0||P[EBt](),n.abort(),B&&(u||a.forEach(U=>U()),cI.nextTick(e,u,d))}}o(m,"finishImpl");let A;for(let w=0;w0,N=P||r?.end!==!1,$=w===t.length-1;if(Fve(B)){let Q=function(H){H&&H.name!=="AbortError"&&H.code!=="ERR_STREAM_PREMATURE_CLOSE"&&p(H)};var C=Q;if(o(Q,"onError"),N){let{destroy:H,cleanup:V}=Mve(B,P,U);f.push(H),Xj(B)&&$&&a.push(V)}B.on("error",Q),Xj(B)&&$&&a.push(()=>{B.removeListener("error",Q)})}if(w===0)if(typeof B=="function"){if(A=B({signal:i}),!kp(A))throw new Kj("Iterable, AsyncIterable or Stream","source",A)}else kp(B)||LD(B)||Qy(B)?A=B:A=Lve.from(B);else if(typeof B=="function"){if(Qy(A)){var E;A=nW((E=A)===null||E===void 0?void 0:E.readable)}else A=nW(A);if(A=B(A,{signal:i}),P){if(!kp(A,!0))throw new Kj("AsyncIterable",`transform[${w-1}]`,A)}else{var y;eW||(eW=Yj());let Q=new eW({objectMode:!0}),H=(y=A)===null||y===void 0?void 0:y.then;if(typeof H=="function")h++,H.call(A,ue=>{d=ue,ue!=null&&Q.write(ue),N&&Q.end(),cI.nextTick(p)},ue=>{Q.destroy(ue),cI.nextTick(p,ue)});else if(kp(A,!0))h++,OD(A,Q,p,{end:N});else if(Zj(A)||Qy(A)){let ue=A.readable||A;h++,OD(ue,Q,p,{end:N})}else throw new Kj("AsyncIterable or Promise","destination",A);A=Q;let{destroy:V,cleanup:W}=Mve(A,!1,!0);f.push(V),$&&a.push(W)}}else if(Fve(B)){if(LD(A)){h+=2;let Q=PBt(A,B,p,{end:N});Xj(B)&&$&&a.push(Q)}else if(Qy(A)||Zj(A)){let Q=A.readable||A;h++,OD(Q,B,p,{end:N})}else if(kp(A))h++,OD(A,B,p,{end:N});else throw new sW("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],A);A=B}else if(RBt(B)){if(LD(A))h++,iW(nW(A),B,p,{end:N});else if(Zj(A)||kp(A))h++,iW(A,B,p,{end:N});else if(Qy(A))h++,iW(A.readable,B,p,{end:N});else throw new sW("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],A);A=B}else A=Lve.from(B)}return(i!=null&&i.aborted||s!=null&&s.aborted)&&cI.nextTick(c),A}o(Uve,"pipelineImpl");function PBt(t,e,r,{end:n}){let i=!1;if(e.on("close",()=>{i||r(new BBt)}),t.pipe(e,{end:!1}),n){let a=function(){i=!0,e.end()};var s=a;o(a,"endFn"),_Bt(t)?cI.nextTick(a):t.once("end",a)}else r();return FD(t,{readable:!0,writable:!1},a=>{let c=t._readableState;a&&a.code==="ERR_STREAM_PREMATURE_CLOSE"&&c&&c.ended&&!c.errored&&!c.errorEmitted?t.once("end",r).once("error",r):r(a)}),FD(e,{readable:!1,writable:!0},r)}o(PBt,"pipe");qve.exports={pipelineImpl:Uve,pipeline:kBt}});var aW=g((CSr,jve)=>{"use strict";var{pipeline:OBt}=MD(),UD=Al(),{destroyer:LBt}=Tp(),{isNodeStream:qD,isReadable:Gve,isWritable:Hve,isWebStream:oW,isTransformStream:Pp,isWritableStream:zve,isReadableStream:Vve}=hl(),{AbortError:FBt,codes:{ERR_INVALID_ARG_VALUE:$ve,ERR_MISSING_ARGS:MBt}}=qi(),UBt=Qu();jve.exports=o(function(...e){if(e.length===0)throw new MBt("streams");if(e.length===1)return UD.from(e[0]);let r=[...e];if(typeof e[0]=="function"&&(e[0]=UD.from(e[0])),typeof e[e.length-1]=="function"){let p=e.length-1;e[p]=UD.from(e[p])}for(let p=0;p0&&!(Hve(e[p])||zve(e[p])||Pp(e[p])))throw new $ve(`streams[${p}]`,r[p],"must be writable")}let n,i,s,a,c;function l(p){let m=a;a=null,m?m(p):p?c.destroy(p):!h&&!f&&c.destroy()}o(l,"onfinished");let u=e[0],d=OBt(e,l),f=!!(Hve(u)||zve(u)||Pp(u)),h=!!(Gve(d)||Vve(d)||Pp(d));if(c=new UD({writableObjectMode:!!(u!=null&&u.writableObjectMode),readableObjectMode:!!(d!=null&&d.readableObjectMode),writable:f,readable:h}),f){if(qD(u))c._write=function(m,A,E){u.write(m,A)?E():n=E},c._final=function(m){u.end(),i=m},u.on("drain",function(){if(n){let m=n;n=null,m()}});else if(oW(u)){let A=(Pp(u)?u.writable:u).getWriter();c._write=async function(E,y,C){try{await A.ready,A.write(E).catch(()=>{}),C()}catch(w){C(w)}},c._final=async function(E){try{await A.ready,A.close().catch(()=>{}),i=E}catch(y){E(y)}}}let p=Pp(d)?d.readable:d;UBt(p,()=>{if(i){let m=i;i=null,m()}})}if(h){if(qD(d))d.on("readable",function(){if(s){let p=s;s=null,p()}}),d.on("end",function(){c.push(null)}),c._read=function(){for(;;){let p=d.read();if(p===null){s=c._read;return}if(!c.push(p))return}};else if(oW(d)){let m=(Pp(d)?d.readable:d).getReader();c._read=async function(){for(;;)try{let{value:A,done:E}=await m.read();if(!c.push(A))return;if(E){c.push(null);return}}catch{return}}}}return c._destroy=function(p,m){!p&&a!==null&&(p=new FBt),s=null,n=null,i=null,a===null?m(p):(a=m,qD(d)&&LBt(d,p))},c},"compose")});var nNe=g((wSr,uW)=>{"use strict";var qBt=globalThis.AbortController||by().AbortController,{codes:{ERR_INVALID_ARG_VALUE:GBt,ERR_INVALID_ARG_TYPE:lI,ERR_MISSING_ARGS:HBt,ERR_OUT_OF_RANGE:zBt},AbortError:ml}=qi(),{validateAbortSignal:Op,validateInteger:Wve,validateObject:Lp}=Iy(),VBt=Cr().Symbol("kWeak"),$Bt=Cr().Symbol("kResistStopPropagation"),{finished:jBt}=Qu(),WBt=aW(),{addAbortSignalNoValidate:JBt}=eI(),{isWritable:YBt,isNodeStream:KBt}=hl(),{deprecate:XBt}=fi(),{ArrayPrototypePush:ZBt,Boolean:ext,MathFloor:Jve,Number:txt,NumberIsNaN:rxt,Promise:Yve,PromiseReject:Kve,PromiseResolve:nxt,PromisePrototypeThen:Xve,Symbol:eNe}=Cr(),GD=eNe("kEmpty"),Zve=eNe("kEof");function ixt(t,e){if(e!=null&&Lp(e,"options"),e?.signal!=null&&Op(e.signal,"options.signal"),KBt(t)&&!YBt(t))throw new GBt("stream",t,"must be writable");let r=WBt(this,t);return e!=null&&e.signal&&JBt(e.signal,r),r}o(ixt,"compose");function HD(t,e){if(typeof t!="function")throw new lI("fn",["Function","AsyncFunction"],t);e!=null&&Lp(e,"options"),e?.signal!=null&&Op(e.signal,"options.signal");let r=1;e?.concurrency!=null&&(r=Jve(e.concurrency));let n=r-1;return e?.highWaterMark!=null&&(n=Jve(e.highWaterMark)),Wve(r,"options.concurrency",1),Wve(n,"options.highWaterMark",0),n+=r,o(async function*(){let s=fi().AbortSignalAny([e?.signal].filter(ext)),a=this,c=[],l={signal:s},u,d,f=!1,h=0;function p(){f=!0,m()}o(p,"onCatch");function m(){h-=1,A()}o(m,"afterItemProcessed");function A(){d&&!f&&h=n||h>=r)&&await new Yve(C=>{d=C})}c.push(Zve)}catch(y){let C=Kve(y);Xve(C,m,p),c.push(C)}finally{f=!0,u&&(u(),u=null)}}o(E,"pump"),E();try{for(;;){for(;c.length>0;){let y=await c[0];if(y===Zve)return;if(s.aborted)throw new ml;y!==GD&&(yield y),c.shift(),A()}await new Yve(y=>{u=y})}}finally{f=!0,d&&(d(),d=null)}},"map").call(this)}o(HD,"map");function sxt(t=void 0){return t!=null&&Lp(t,"options"),t?.signal!=null&&Op(t.signal,"options.signal"),o(async function*(){let r=0;for await(let i of this){var n;if(t!=null&&(n=t.signal)!==null&&n!==void 0&&n.aborted)throw new ml({cause:t.signal.reason});yield[r++,i]}},"asIndexedPairs").call(this)}o(sxt,"asIndexedPairs");async function tNe(t,e=void 0){for await(let r of lW.call(this,t,e))return!0;return!1}o(tNe,"some");async function oxt(t,e=void 0){if(typeof t!="function")throw new lI("fn",["Function","AsyncFunction"],t);return!await tNe.call(this,async(...r)=>!await t(...r),e)}o(oxt,"every");async function axt(t,e){for await(let r of lW.call(this,t,e))return r}o(axt,"find");async function cxt(t,e){if(typeof t!="function")throw new lI("fn",["Function","AsyncFunction"],t);async function r(n,i){return await t(n,i),GD}o(r,"forEachFn");for await(let n of HD.call(this,r,e));}o(cxt,"forEach");function lW(t,e){if(typeof t!="function")throw new lI("fn",["Function","AsyncFunction"],t);async function r(n,i){return await t(n,i)?n:GD}return o(r,"filterFn"),HD.call(this,r,e)}o(lW,"filter");var cW=class extends HBt{static{o(this,"ReduceAwareErrMissingArgs")}constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function lxt(t,e,r){var n;if(typeof t!="function")throw new lI("reducer",["Function","AsyncFunction"],t);r!=null&&Lp(r,"options"),r?.signal!=null&&Op(r.signal,"options.signal");let i=arguments.length>1;if(r!=null&&(n=r.signal)!==null&&n!==void 0&&n.aborted){let u=new ml(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await jBt(this.destroy(u)),u}let s=new qBt,a=s.signal;if(r!=null&&r.signal){let u={once:!0,[VBt]:this,[$Bt]:!0};r.signal.addEventListener("abort",()=>s.abort(),u)}let c=!1;try{for await(let u of this){var l;if(c=!0,r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new ml;i?e=await t(e,u,{signal:a}):(e=u,i=!0)}if(!c&&!i)throw new cW}finally{s.abort()}return e}o(lxt,"reduce");async function uxt(t){t!=null&&Lp(t,"options"),t?.signal!=null&&Op(t.signal,"options.signal");let e=[];for await(let n of this){var r;if(t!=null&&(r=t.signal)!==null&&r!==void 0&&r.aborted)throw new ml(void 0,{cause:t.signal.reason});ZBt(e,n)}return e}o(uxt,"toArray");function dxt(t,e){let r=HD.call(this,t,e);return o(async function*(){for await(let i of r)yield*i},"flatMap").call(this)}o(dxt,"flatMap");function rNe(t){if(t=txt(t),rxt(t))return 0;if(t<0)throw new zBt("number",">= 0",t);return t}o(rNe,"toIntegerOrInfinity");function fxt(t,e=void 0){return e!=null&&Lp(e,"options"),e?.signal!=null&&Op(e.signal,"options.signal"),t=rNe(t),o(async function*(){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new ml;for await(let s of this){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new ml;t--<=0&&(yield s)}},"drop").call(this)}o(fxt,"drop");function hxt(t,e=void 0){return e!=null&&Lp(e,"options"),e?.signal!=null&&Op(e.signal,"options.signal"),t=rNe(t),o(async function*(){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new ml;for await(let s of this){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new ml;if(t-- >0&&(yield s),t<=0)return}},"take").call(this)}o(hxt,"take");uW.exports.streamReturningOperators={asIndexedPairs:XBt(sxt,"readable.asIndexedPairs will be removed in a future version."),drop:fxt,filter:lW,flatMap:dxt,map:HD,take:hxt,compose:ixt};uW.exports.promiseReturningOperators={every:oxt,forEach:cxt,reduce:lxt,toArray:uxt,some:tNe,find:axt}});var dW=g((SSr,iNe)=>{"use strict";var{ArrayPrototypePop:pxt,Promise:Axt}=Cr(),{isIterable:mxt,isNodeStream:gxt,isWebStream:yxt}=hl(),{pipelineImpl:Ext}=MD(),{finished:Cxt}=Qu();fW();function bxt(...t){return new Axt((e,r)=>{let n,i,s=t[t.length-1];if(s&&typeof s=="object"&&!gxt(s)&&!mxt(s)&&!yxt(s)){let a=pxt(t);n=a.signal,i=a.end}Ext(t,(a,c)=>{a?r(a):e(c)},{signal:n,end:i})})}o(bxt,"pipeline");iNe.exports={finished:Cxt,pipeline:bxt}});var fW=g((xSr,hNe)=>{var{Buffer:wxt}=require("buffer"),{ObjectDefineProperty:Ou,ObjectKeys:aNe,ReflectApply:cNe}=Cr(),{promisify:{custom:lNe}}=fi(),{streamReturningOperators:sNe,promiseReturningOperators:oNe}=nNe(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:uNe}}=qi(),Ixt=aW(),{setDefaultHighWaterMark:Sxt,getDefaultHighWaterMark:Bxt}=tI(),{pipeline:dNe}=MD(),{destroyer:xxt}=Tp(),fNe=Qu(),hW=dW(),uI=hl(),ir=hNe.exports=ID().Stream;ir.isDestroyed=uI.isDestroyed;ir.isDisturbed=uI.isDisturbed;ir.isErrored=uI.isErrored;ir.isReadable=uI.isReadable;ir.isWritable=uI.isWritable;ir.Readable=nI();for(let t of aNe(sNe)){let r=function(...n){if(new.target)throw uNe();return ir.Readable.from(cNe(e,this,n))};pW=r,o(r,"fn");let e=sNe[t];Ou(r,"name",{__proto__:null,value:e.name}),Ou(r,"length",{__proto__:null,value:e.length}),Ou(ir.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}var pW;for(let t of aNe(oNe)){let r=function(...i){if(new.target)throw uNe();return cNe(e,this,i)};pW=r,o(r,"fn");let e=oNe[t];Ou(r,"name",{__proto__:null,value:e.name}),Ou(r,"length",{__proto__:null,value:e.length}),Ou(ir.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}var pW;ir.Writable=PD();ir.Duplex=Al();ir.Transform=Wj();ir.PassThrough=Yj();ir.pipeline=dNe;var{addAbortSignal:vxt}=eI();ir.addAbortSignal=vxt;ir.finished=fNe;ir.destroy=xxt;ir.compose=Ixt;ir.setDefaultHighWaterMark=Sxt;ir.getDefaultHighWaterMark=Bxt;Ou(ir,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return hW}});Ou(dNe,lNe,{__proto__:null,enumerable:!0,get(){return hW.pipeline}});Ou(fNe,lNe,{__proto__:null,enumerable:!0,get(){return hW.finished}});ir.Stream=ir;ir._isUint8Array=o(function(e){return e instanceof Uint8Array},"isUint8Array");ir._uint8ArrayToBuffer=o(function(e){return wxt.from(e.buffer,e.byteOffset,e.byteLength)},"_uint8ArrayToBuffer")});var Fp=g((NSr,ut)=>{"use strict";var wn=require("stream");if(wn&&process.env.READABLE_STREAM==="disable"){let t=wn.promises;ut.exports._uint8ArrayToBuffer=wn._uint8ArrayToBuffer,ut.exports._isUint8Array=wn._isUint8Array,ut.exports.isDisturbed=wn.isDisturbed,ut.exports.isErrored=wn.isErrored,ut.exports.isReadable=wn.isReadable,ut.exports.Readable=wn.Readable,ut.exports.Writable=wn.Writable,ut.exports.Duplex=wn.Duplex,ut.exports.Transform=wn.Transform,ut.exports.PassThrough=wn.PassThrough,ut.exports.addAbortSignal=wn.addAbortSignal,ut.exports.finished=wn.finished,ut.exports.destroy=wn.destroy,ut.exports.pipeline=wn.pipeline,ut.exports.compose=wn.compose,Object.defineProperty(wn,"promises",{configurable:!0,enumerable:!0,get(){return t}}),ut.exports.Stream=wn.Stream}else{let t=fW(),e=dW(),r=t.Readable.destroy;ut.exports=t.Readable,ut.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,ut.exports._isUint8Array=t._isUint8Array,ut.exports.isDisturbed=t.isDisturbed,ut.exports.isErrored=t.isErrored,ut.exports.isReadable=t.isReadable,ut.exports.Readable=t.Readable,ut.exports.Writable=t.Writable,ut.exports.Duplex=t.Duplex,ut.exports.Transform=t.Transform,ut.exports.PassThrough=t.PassThrough,ut.exports.addAbortSignal=t.addAbortSignal,ut.exports.finished=t.finished,ut.exports.destroy=t.destroy,ut.exports.destroy=r,ut.exports.pipeline=t.pipeline,ut.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get(){return e}}),ut.exports.Stream=t.Stream}ut.exports.default=ut.exports});var ANe=g((RSr,pNe)=>{function Nxt(t,e){for(var r=-1,n=e.length,i=t.length;++r{var mNe=cD(),Rxt=ej(),_xt=tj(),gNe=mNe?mNe.isConcatSpreadable:void 0;function Txt(t){return _xt(t)||Rxt(t)||!!(gNe&&t&&t[gNe])}o(Txt,"isFlattenable");yNe.exports=Txt});var zD=g((QSr,bNe)=>{var Dxt=ANe(),Qxt=ENe();function CNe(t,e,r,n,i){var s=-1,a=t.length;for(r||(r=Qxt),i||(i=[]);++s0&&r(c)?e>1?CNe(c,e-1,r,n,i):Dxt(i,c):n||(i[i.length]=c)}return i}o(CNe,"baseFlatten");bNe.exports=CNe});var INe=g((PSr,wNe)=>{var kxt=zD();function Pxt(t){var e=t==null?0:t.length;return e?kxt(t,1):[]}o(Pxt,"flatten");wNe.exports=Pxt});var dI=g((LSr,SNe)=>{var Oxt=Vw(),Lxt=Oxt(Object,"create");SNe.exports=Lxt});var vNe=g((FSr,xNe)=>{var BNe=dI();function Fxt(){this.__data__=BNe?BNe(null):{},this.size=0}o(Fxt,"hashClear");xNe.exports=Fxt});var RNe=g((USr,NNe)=>{function Mxt(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}o(Mxt,"hashDelete");NNe.exports=Mxt});var TNe=g((GSr,_Ne)=>{var Uxt=dI(),qxt="__lodash_hash_undefined__",Gxt=Object.prototype,Hxt=Gxt.hasOwnProperty;function zxt(t){var e=this.__data__;if(Uxt){var r=e[t];return r===qxt?void 0:r}return Hxt.call(e,t)?e[t]:void 0}o(zxt,"hashGet");_Ne.exports=zxt});var QNe=g((zSr,DNe)=>{var Vxt=dI(),$xt=Object.prototype,jxt=$xt.hasOwnProperty;function Wxt(t){var e=this.__data__;return Vxt?e[t]!==void 0:jxt.call(e,t)}o(Wxt,"hashHas");DNe.exports=Wxt});var PNe=g(($Sr,kNe)=>{var Jxt=dI(),Yxt="__lodash_hash_undefined__";function Kxt(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Jxt&&e===void 0?Yxt:e,this}o(Kxt,"hashSet");kNe.exports=Kxt});var LNe=g((WSr,ONe)=>{var Xxt=vNe(),Zxt=RNe(),evt=TNe(),tvt=QNe(),rvt=PNe();function ky(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e{function nvt(){this.__data__=[],this.size=0}o(nvt,"listCacheClear");FNe.exports=nvt});var fI=g((XSr,UNe)=>{var ivt=uD();function svt(t,e){for(var r=t.length;r--;)if(ivt(t[r][0],e))return r;return-1}o(svt,"assocIndexOf");UNe.exports=svt});var GNe=g((eBr,qNe)=>{var ovt=fI(),avt=Array.prototype,cvt=avt.splice;function lvt(t){var e=this.__data__,r=ovt(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():cvt.call(e,r,1),--this.size,!0}o(lvt,"listCacheDelete");qNe.exports=lvt});var zNe=g((rBr,HNe)=>{var uvt=fI();function dvt(t){var e=this.__data__,r=uvt(e,t);return r<0?void 0:e[r][1]}o(dvt,"listCacheGet");HNe.exports=dvt});var $Ne=g((iBr,VNe)=>{var fvt=fI();function hvt(t){return fvt(this.__data__,t)>-1}o(hvt,"listCacheHas");VNe.exports=hvt});var WNe=g((oBr,jNe)=>{var pvt=fI();function Avt(t,e){var r=this.__data__,n=pvt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}o(Avt,"listCacheSet");jNe.exports=Avt});var YNe=g((cBr,JNe)=>{var mvt=MNe(),gvt=GNe(),yvt=zNe(),Evt=$Ne(),Cvt=WNe();function Py(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e{var bvt=Vw(),wvt=my(),Ivt=bvt(wvt,"Map");KNe.exports=Ivt});var tRe=g((dBr,eRe)=>{var ZNe=LNe(),Svt=YNe(),Bvt=XNe();function xvt(){this.size=0,this.__data__={hash:new ZNe,map:new(Bvt||Svt),string:new ZNe}}o(xvt,"mapCacheClear");eRe.exports=xvt});var nRe=g((hBr,rRe)=>{function vvt(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}o(vvt,"isKeyable");rRe.exports=vvt});var hI=g((ABr,iRe)=>{var Nvt=nRe();function Rvt(t,e){var r=t.__data__;return Nvt(e)?r[typeof e=="string"?"string":"hash"]:r.map}o(Rvt,"getMapData");iRe.exports=Rvt});var oRe=g((gBr,sRe)=>{var _vt=hI();function Tvt(t){var e=_vt(this,t).delete(t);return this.size-=e?1:0,e}o(Tvt,"mapCacheDelete");sRe.exports=Tvt});var cRe=g((EBr,aRe)=>{var Dvt=hI();function Qvt(t){return Dvt(this,t).get(t)}o(Qvt,"mapCacheGet");aRe.exports=Qvt});var uRe=g((bBr,lRe)=>{var kvt=hI();function Pvt(t){return kvt(this,t).has(t)}o(Pvt,"mapCacheHas");lRe.exports=Pvt});var fRe=g((IBr,dRe)=>{var Ovt=hI();function Lvt(t,e){var r=Ovt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}o(Lvt,"mapCacheSet");dRe.exports=Lvt});var pRe=g((BBr,hRe)=>{var Fvt=tRe(),Mvt=oRe(),Uvt=cRe(),qvt=uRe(),Gvt=fRe();function Oy(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e{var Hvt="__lodash_hash_undefined__";function zvt(t){return this.__data__.set(t,Hvt),this}o(zvt,"setCacheAdd");ARe.exports=zvt});var yRe=g((RBr,gRe)=>{function Vvt(t){return this.__data__.has(t)}o(Vvt,"setCacheHas");gRe.exports=Vvt});var AW=g((TBr,ERe)=>{var $vt=pRe(),jvt=mRe(),Wvt=yRe();function VD(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new $vt;++e{function Jvt(t,e,r,n){for(var i=t.length,s=r+(n?1:-1);n?s--:++s{function Yvt(t){return t!==t}o(Yvt,"baseIsNaN");wRe.exports=Yvt});var BRe=g((LBr,SRe)=>{function Kvt(t,e,r){for(var n=r-1,i=t.length;++n{var Xvt=bRe(),Zvt=IRe(),eNt=BRe();function tNt(t,e,r){return e===e?eNt(t,e,r):Xvt(t,Zvt,r)}o(tNt,"baseIndexOf");xRe.exports=tNt});var mW=g((qBr,NRe)=>{var rNt=vRe();function nNt(t,e){var r=t==null?0:t.length;return!!r&&rNt(t,e,0)>-1}o(nNt,"arrayIncludes");NRe.exports=nNt});var gW=g((HBr,RRe)=>{function iNt(t,e,r){for(var n=-1,i=t==null?0:t.length;++n{function sNt(t,e){for(var r=-1,n=t==null?0:t.length,i=Array(n);++r{function oNt(t,e){return t.has(e)}o(oNt,"cacheHas");DRe.exports=oNt});var kRe=g((JBr,QRe)=>{var aNt=AW(),cNt=mW(),lNt=gW(),uNt=TRe(),dNt=rj(),fNt=yW(),hNt=200;function pNt(t,e,r,n){var i=-1,s=cNt,a=!0,c=t.length,l=[],u=e.length;if(!c)return l;r&&(e=uNt(e,dNt(r))),n?(s=lNt,a=!1):e.length>=hNt&&(s=fNt,a=!1,e=new aNt(e));e:for(;++i{var ANt=dD(),mNt=gy();function gNt(t){return mNt(t)&&ANt(t)}o(gNt,"isArrayLikeObject");PRe.exports=gNt});var FRe=g((ZBr,LRe)=>{var yNt=kRe(),ENt=zD(),CNt=lD(),ORe=EW(),bNt=CNt(function(t,e){return ORe(t)?yNt(t,ENt(e,1,ORe,!0)):[]});LRe.exports=bNt});var URe=g((exr,MRe)=>{var wNt=Vw(),INt=my(),SNt=wNt(INt,"Set");MRe.exports=SNt});var GRe=g((txr,qRe)=>{function BNt(){}o(BNt,"noop");qRe.exports=BNt});var CW=g((nxr,HRe)=>{function xNt(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}o(xNt,"setToArray");HRe.exports=xNt});var VRe=g((sxr,zRe)=>{var bW=URe(),vNt=GRe(),NNt=CW(),RNt=1/0,_Nt=bW&&1/NNt(new bW([,-0]))[1]==RNt?function(t){return new bW(t)}:vNt;zRe.exports=_Nt});var jRe=g((oxr,$Re)=>{var TNt=AW(),DNt=mW(),QNt=gW(),kNt=yW(),PNt=VRe(),ONt=CW(),LNt=200;function FNt(t,e,r){var n=-1,i=DNt,s=t.length,a=!0,c=[],l=c;if(r)a=!1,i=QNt;else if(s>=LNt){var u=e?null:PNt(t);if(u)return ONt(u);a=!1,i=kNt,l=new TNt}else l=e?[]:c;e:for(;++n{var MNt=zD(),UNt=lD(),qNt=jRe(),GNt=EW(),HNt=UNt(function(t){return qNt(MNt(t,1,GNt,!0))});WRe.exports=HNt});var KRe=g((lxr,YRe)=>{function zNt(t,e){return function(r){return t(e(r))}}o(zNt,"overArg");YRe.exports=zNt});var ZRe=g((dxr,XRe)=>{var VNt=KRe(),$Nt=VNt(Object.getPrototypeOf,Object);XRe.exports=$Nt});var r_e=g((fxr,t_e)=>{var jNt=Hw(),WNt=ZRe(),JNt=gy(),YNt="[object Object]",KNt=Function.prototype,XNt=Object.prototype,e_e=KNt.toString,ZNt=XNt.hasOwnProperty,eRt=e_e.call(Object);function tRt(t){if(!JNt(t)||jNt(t)!=YNt)return!1;var e=WNt(t);if(e===null)return!0;var r=ZNt.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&e_e.call(r)==eRt}o(tRt,"isPlainObject");t_e.exports=tRt});var n_e=g($D=>{"use strict";Object.defineProperty($D,"__esModule",{value:!0});$D.assertValidPattern=void 0;var rRt=1024*64,nRt=o(t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>rRt)throw new TypeError("pattern is too long")},"assertValidPattern");$D.assertValidPattern=nRt});var s_e=g(jD=>{"use strict";Object.defineProperty(jD,"__esModule",{value:!0});jD.parseClass=void 0;var iRt={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},pI=o(t=>t.replace(/[[\]\\-]/g,"\\$&"),"braceEscape"),sRt=o(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regexpEscape"),i_e=o(t=>t.join(""),"rangesToString"),oRt=o((t,e)=>{let r=e;if(t.charAt(r)!=="[")throw new Error("not in a brace expression");let n=[],i=[],s=r+1,a=!1,c=!1,l=!1,u=!1,d=r,f="";e:for(;sf?n.push(pI(f)+"-"+pI(A)):A===f&&n.push(pI(A)),f="",s++;continue}if(t.startsWith("-]",s+1)){n.push(pI(A+"-")),s+=2;continue}if(t.startsWith("-",s+1)){f=A,s+=2;continue}n.push(pI(A)),s++}if(d{"use strict";Object.defineProperty(WD,"__esModule",{value:!0});WD.unescape=void 0;var aRt=o((t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),"unescape");WD.unescape=aRt});var SW=g(ZD=>{"use strict";var ys;Object.defineProperty(ZD,"__esModule",{value:!0});ZD.AST=void 0;var cRt=s_e(),YD=JD(),lRt=new Set(["!","?","+","*","@"]),wW=o(t=>lRt.has(t),"isExtglobType"),o_e=o(t=>wW(t.type),"isExtglobAST"),uRt=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),dRt=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),fRt=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),a_e=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),hRt="(?!(?:^|/)\\.\\.?(?:$|/))",KD="(?!\\.)",pRt=new Set(["[","."]),ARt=new Set(["..","."]),mRt=new Set("().*{}+?[]^$\\!"),gRt=o(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),IW="[^/]",c_e=IW+"*?",l_e=IW+"+?",XD=class{static{o(this,"AST")}type;#e;#r;#n=!1;#t=[];#i;#s;#l;#a=!1;#c;#o;#f=!1;constructor(e,r,n={}){this.type=e,e&&(this.#r=!0),this.#i=r,this.#e=this.#i?this.#i.#e:this,this.#c=this.#e===this?n:this.#e.#c,this.#l=this.#e===this?[]:this.#e.#l,e==="!"&&!this.#e.#a&&this.#l.push(this),this.#s=this.#i?this.#i.#t.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(let e of this.#t)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#o!==void 0?this.#o:this.type?this.#o=this.type+"("+this.#t.map(e=>String(e)).join("|")+")":this.#o=this.#t.map(e=>String(e)).join("")}#C(){if(this!==this.#e)throw new Error("should only call on root");if(this.#a)return this;this.toString(),this.#a=!0;let e;for(;e=this.#l.pop();){if(e.type!=="!")continue;let r=e,n=r.#i;for(;n;){for(let i=r.#s+1;!n.type&&itypeof r=="string"?r:r.toJSON()):[this.type,...this.#t.map(r=>r.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#a&&this.#i?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#i?.isStart())return!1;if(this.#s===0)return!0;let e=this.#i;for(let r=0;r{let[m,A,E,y]=typeof p=="string"?ys.#S(p,this.#r,l):p.toRegExpSource(e);return this.#r=this.#r||E,this.#n=this.#n||y,m}).join(""),d="";if(this.isStart()&&typeof this.#t[0]=="string"&&!(this.#t.length===1&&ARt.has(this.#t[0]))){let m=pRt,A=r&&m.has(u.charAt(0))||u.startsWith("\\.")&&m.has(u.charAt(2))||u.startsWith("\\.\\.")&&m.has(u.charAt(4)),E=!r&&!e&&m.has(u.charAt(0));d=A?hRt:E?KD:""}let f="";return this.isEnd()&&this.#e.#a&&this.#i?.type==="!"&&(f="(?:$|\\/)"),[d+u+f,(0,YD.unescape)(u),this.#r=!!this.#r,this.#n]}let n=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#w(r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let l=this.toString(),u=this;return u.#t=[l],u.type=null,u.#r=void 0,[l,(0,YD.unescape)(this.toString()),!1,!1]}let a=!n||e||r||!KD?"":this.#w(!0);a===s&&(a=""),a&&(s=`(?:${s})(?:${a})*?`);let c="";if(this.type==="!"&&this.#f)c=(this.isStart()&&!r?KD:"")+l_e;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!e?KD:"")+c_e+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`;c=i+s+l}return[c,(0,YD.unescape)(s),this.#r=!!this.#r,this.#n]}#w(e){return this.#t.map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");let[n,i,s,a]=r.toRegExpSource(e);return this.#n=this.#n||a,n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#S(e,r,n=!1){let i=!1,s="",a=!1,c=!1;for(let l=0;l{"use strict";Object.defineProperty(eQ,"__esModule",{value:!0});eQ.escape=void 0;var yRt=o((t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),"escape");eQ.escape=yRt});var lf=g(he=>{"use strict";var ERt=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(he,"__esModule",{value:!0});he.unescape=he.escape=he.AST=he.Minimatch=he.match=he.makeRe=he.braceExpand=he.defaults=he.filter=he.GLOBSTAR=he.sep=he.minimatch=void 0;var CRt=ERt(d8()),tQ=n_e(),f_e=SW(),bRt=BW(),wRt=JD(),IRt=o((t,e,r={})=>((0,tQ.assertValidPattern)(e),!r.nocomment&&e.charAt(0)==="#"?!1:new Mp(e,r).match(t)),"minimatch");he.minimatch=IRt;var SRt=/^\*+([^+@!?\*\[\(]*)$/,BRt=o(t=>e=>!e.startsWith(".")&&e.endsWith(t),"starDotExtTest"),xRt=o(t=>e=>e.endsWith(t),"starDotExtTestDot"),vRt=o(t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),"starDotExtTestNocase"),NRt=o(t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),"starDotExtTestNocaseDot"),RRt=/^\*+\.\*+$/,_Rt=o(t=>!t.startsWith(".")&&t.includes("."),"starDotStarTest"),TRt=o(t=>t!=="."&&t!==".."&&t.includes("."),"starDotStarTestDot"),DRt=/^\.\*+$/,QRt=o(t=>t!=="."&&t!==".."&&t.startsWith("."),"dotStarTest"),kRt=/^\*+$/,PRt=o(t=>t.length!==0&&!t.startsWith("."),"starTest"),ORt=o(t=>t.length!==0&&t!=="."&&t!=="..","starTestDot"),LRt=/^\?+([^+@!?\*\[\(]*)?$/,FRt=o(([t,e=""])=>{let r=h_e([t]);return e?(e=e.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(e)):r},"qmarksTestNocase"),MRt=o(([t,e=""])=>{let r=p_e([t]);return e?(e=e.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(e)):r},"qmarksTestNocaseDot"),URt=o(([t,e=""])=>{let r=p_e([t]);return e?n=>r(n)&&n.endsWith(e):r},"qmarksTestDot"),qRt=o(([t,e=""])=>{let r=h_e([t]);return e?n=>r(n)&&n.endsWith(e):r},"qmarksTest"),h_e=o(([t])=>{let e=t.length;return r=>r.length===e&&!r.startsWith(".")},"qmarksTestNoExt"),p_e=o(([t])=>{let e=t.length;return r=>r.length===e&&r!=="."&&r!==".."},"qmarksTestNoExtDot"),A_e=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",u_e={win32:{sep:"\\"},posix:{sep:"/"}};he.sep=A_e==="win32"?u_e.win32.sep:u_e.posix.sep;he.minimatch.sep=he.sep;he.GLOBSTAR=Symbol("globstar **");he.minimatch.GLOBSTAR=he.GLOBSTAR;var GRt="[^/]",HRt=GRt+"*?",zRt="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",VRt="(?:(?!(?:\\/|^)\\.).)*?",$Rt=o((t,e={})=>r=>(0,he.minimatch)(r,t,e),"filter");he.filter=$Rt;he.minimatch.filter=he.filter;var ta=o((t,e={})=>Object.assign({},t,e),"ext"),jRt=o(t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return he.minimatch;let e=he.minimatch;return Object.assign(o((n,i,s={})=>e(n,i,ta(t,s)),"m"),{Minimatch:class extends e.Minimatch{static{o(this,"Minimatch")}constructor(i,s={}){super(i,ta(t,s))}static defaults(i){return e.defaults(ta(t,i)).Minimatch}},AST:class extends e.AST{static{o(this,"AST")}constructor(i,s,a={}){super(i,s,ta(t,a))}static fromGlob(i,s={}){return e.AST.fromGlob(i,ta(t,s))}},unescape:o((n,i={})=>e.unescape(n,ta(t,i)),"unescape"),escape:o((n,i={})=>e.escape(n,ta(t,i)),"escape"),filter:o((n,i={})=>e.filter(n,ta(t,i)),"filter"),defaults:o(n=>e.defaults(ta(t,n)),"defaults"),makeRe:o((n,i={})=>e.makeRe(n,ta(t,i)),"makeRe"),braceExpand:o((n,i={})=>e.braceExpand(n,ta(t,i)),"braceExpand"),match:o((n,i,s={})=>e.match(n,i,ta(t,s)),"match"),sep:e.sep,GLOBSTAR:he.GLOBSTAR})},"defaults");he.defaults=jRt;he.minimatch.defaults=he.defaults;var WRt=o((t,e={})=>((0,tQ.assertValidPattern)(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,CRt.default)(t)),"braceExpand");he.braceExpand=WRt;he.minimatch.braceExpand=he.braceExpand;var JRt=o((t,e={})=>new Mp(t,e).makeRe(),"makeRe");he.makeRe=JRt;he.minimatch.makeRe=he.makeRe;var YRt=o((t,e,r={})=>{let n=new Mp(e,r);return t=t.filter(i=>n.match(i)),n.options.nonull&&!t.length&&t.push(e),t},"match");he.match=YRt;he.minimatch.match=he.match;var d_e=/[?*]|[+@!]\(.*?\)|\[|\]/,KRt=o(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),Mp=class{static{o(this,"Minimatch")}options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,r={}){(0,tQ.assertValidPattern)(e),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=e,this.platform=r.platform||A_e,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let r of e)if(typeof r!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let i=this.globParts.map((s,a,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=s[0]===""&&s[1]===""&&(s[2]==="?"||!d_e.test(s[2]))&&!d_e.test(s[3]),u=/^[a-z]:/i.test(s[0]);if(l)return[...s.slice(0,4),...s.slice(4).map(d=>this.parse(d))];if(u)return[s[0],...s.slice(1).map(d=>this.parse(d))]}return s.map(l=>this.parse(l))});if(this.debug(this.pattern,i),this.set=i.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):r>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let i=n;for(;r[i+1]==="**";)i++;i!==n&&r.splice(n,i-n)}return r})}levelOneOptimize(e){return e.map(r=>(r=r.reduce((n,i)=>{let s=n[n.length-1];return i==="**"&&s==="**"?n:i===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(n.pop(),n):(n.push(i),n)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let i=1;ii&&n.splice(i+1,a-i);let c=n[i+1],l=n[i+2],u=n[i+3];if(c!==".."||!l||l==="."||l===".."||!u||u==="."||u==="..")continue;r=!0,n.splice(i,1);let d=n.slice(0);d[i]="**",e.push(d),i--}if(!this.preserveMultipleSlashes){for(let a=1;ar.length)}partsMatch(e,r,n=!1){let i=0,s=0,a=[],c="";for(;i=2&&(e=this.levelTwoFileOptimize(e)),r.includes(he.GLOBSTAR)?this.#e(e,r,n,i,s):this.#n(e,r,n,i,s)}#e(e,r,n,i,s){let a=r.indexOf(he.GLOBSTAR,s),c=r.lastIndexOf(he.GLOBSTAR),[l,u,d]=n?[r.slice(s,a),r.slice(a+1),[]]:[r.slice(s,a),r.slice(a+1,c),r.slice(c+1)];if(l.length){let C=e.slice(i,i+l.length);if(!this.#n(C,l,n,0,0))return!1;i+=l.length}let f=0;if(d.length){if(d.length+i>e.length)return!1;let C=e.length-d.length;if(this.#n(e,d,n,C,0))f=d.length;else{if(e[e.length-1]!==""||i+d.length===e.length||(C--,!this.#n(e,d,n,C,0)))return!1;f=d.length+1}}if(!u.length){let C=!!f;for(let w=i;w{let u=l.map(d=>{if(d instanceof RegExp)for(let f of d.flags.split(""))i.add(f);return typeof d=="string"?KRt(d):d===he.GLOBSTAR?he.GLOBSTAR:d._src});return u.forEach((d,f)=>{let h=u[f+1],p=u[f-1];d!==he.GLOBSTAR||p===he.GLOBSTAR||(p===void 0?h!==void 0&&h!==he.GLOBSTAR?u[f+1]="(?:\\/|"+n+"\\/)?"+h:u[f]=n:h===void 0?u[f-1]=p+"(?:\\/|"+n+")?":h!==he.GLOBSTAR&&(u[f-1]=p+"(?:\\/|\\/"+n+"\\/)"+h,u[f+1]=he.GLOBSTAR))}),u.filter(d=>d!==he.GLOBSTAR).join("/")}).join("|"),[a,c]=e.length>1?["(?:",")"]:["",""];s="^"+a+s+c+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;this.isWindows&&(e=e.split("\\").join("/"));let i=this.slashSplit(e);this.debug(this.pattern,"split",i);let s=this.set;this.debug(this.pattern,"set",s);let a=i[i.length-1];if(!a)for(let c=i.length-2;!a&&c>=0;c--)a=i[c];for(let c=0;c{"use strict";Object.defineProperty(nQ,"__esModule",{value:!0});nQ.LRUCache=void 0;var Ly=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,g_e=new Set,xW=typeof process=="object"&&process?process:{},y_e=o((t,e,r,n)=>{typeof xW.emitWarning=="function"?xW.emitWarning(t,e,r,n):console.error(`[${r}] ${e}: ${t}`)},"emitWarning"),rQ=globalThis.AbortController,m_e=globalThis.AbortSignal;if(typeof rQ>"u"){m_e=class{static{o(this,"AbortSignal")}onabort;_onabort=[];reason;aborted=!1;addEventListener(n,i){this._onabort.push(i)}},rQ=class{static{o(this,"AbortController")}constructor(){e()}signal=new m_e;abort(n){if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let i of this.signal._onabort)i(n);this.signal.onabort?.(n)}}};let t=xW.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=o(()=>{t&&(t=!1,y_e("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))},"warnACPolyfill")}var t_t=o(t=>!g_e.has(t),"shouldWarn"),uf=o(t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),"isPosInt"),E_e=o(t=>uf(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Fy:null:null,"getUintArray"),Fy=class extends Array{static{o(this,"ZeroArray")}constructor(e){super(e),this.fill(0)}},vW=class t{static{o(this,"Stack")}heap;length;static#e=!1;static create(e){let r=E_e(e);if(!r)return[];t.#e=!0;let n=new t(e,r);return t.#e=!1,n}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},NW=class t{static{o(this,"LRUCache")}#e;#r;#n;#t;#i;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#s;#l;#a;#c;#o;#f;#C;#p;#m;#g;#h;#I;#y;#b;#E;#B;#d;static unsafeExposeInternals(e){return{starts:e.#y,ttls:e.#b,sizes:e.#I,keyMap:e.#a,keyList:e.#c,valList:e.#o,next:e.#f,prev:e.#C,get head(){return e.#p},get tail(){return e.#m},free:e.#g,isBackgroundFetch:o(r=>e.#A(r),"isBackgroundFetch"),backgroundFetch:o((r,n,i,s)=>e.#k(r,n,i,s),"backgroundFetch"),moveToTail:o(r=>e.#Q(r),"moveToTail"),indexes:o(r=>e.#R(r),"indexes"),rindexes:o(r=>e.#_(r),"rindexes"),isStale:o(r=>e.#x(r),"isStale")}}get max(){return this.#e}get maxSize(){return this.#r}get calculatedSize(){return this.#l}get size(){return this.#s}get fetchMethod(){return this.#i}get dispose(){return this.#n}get disposeAfter(){return this.#t}constructor(e){let{max:r=0,ttl:n,ttlResolution:i=1,ttlAutopurge:s,updateAgeOnGet:a,updateAgeOnHas:c,allowStale:l,dispose:u,disposeAfter:d,noDisposeOnSet:f,noUpdateTTL:h,maxSize:p=0,maxEntrySize:m=0,sizeCalculation:A,fetchMethod:E,noDeleteOnFetchRejection:y,noDeleteOnStaleGet:C,allowStaleOnFetchRejection:w,allowStaleOnFetchAbort:B,ignoreFetchAbort:P}=e;if(r!==0&&!uf(r))throw new TypeError("max option must be a nonnegative integer");let U=r?E_e(r):Array;if(!U)throw new Error("invalid max value: "+r);if(this.#e=r,this.#r=p,this.maxEntrySize=m||this.#r,this.sizeCalculation=A,this.sizeCalculation){if(!this.#r&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(E!==void 0&&typeof E!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#i=E,this.#B=!!E,this.#a=new Map,this.#c=new Array(r).fill(void 0),this.#o=new Array(r).fill(void 0),this.#f=new U(r),this.#C=new U(r),this.#p=0,this.#m=0,this.#g=vW.create(r),this.#s=0,this.#l=0,typeof u=="function"&&(this.#n=u),typeof d=="function"?(this.#t=d,this.#h=[]):(this.#t=void 0,this.#h=void 0),this.#E=!!this.#n,this.#d=!!this.#t,this.noDisposeOnSet=!!f,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!y,this.allowStaleOnFetchRejection=!!w,this.allowStaleOnFetchAbort=!!B,this.ignoreFetchAbort=!!P,this.maxEntrySize!==0){if(this.#r!==0&&!uf(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!uf(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#T()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!C,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!c,this.ttlResolution=uf(i)||i===0?i:1,this.ttlAutopurge=!!s,this.ttl=n||0,this.ttl){if(!uf(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#w()}if(this.#e===0&&this.ttl===0&&this.#r===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#r){let N="LRU_CACHE_UNBOUNDED";t_t(N)&&(g_e.add(N),y_e("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",N,t))}}getRemainingTTL(e){return this.#a.has(e)?1/0:0}#w(){let e=new Fy(this.#e),r=new Fy(this.#e);this.#b=e,this.#y=r,this.#u=(s,a,c=Ly.now())=>{if(r[s]=a!==0?c:0,e[s]=a,a!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#x(s)&&this.delete(this.#c[s])},a+1);l.unref&&l.unref()}},this.#S=s=>{r[s]=e[s]!==0?Ly.now():0},this.#v=(s,a)=>{if(e[a]){let c=e[a],l=r[a];if(!c||!l)return;s.ttl=c,s.start=l,s.now=n||i();let u=s.now-l;s.remainingTTL=c-u}};let n=0,i=o(()=>{let s=Ly.now();if(this.ttlResolution>0){n=s;let a=setTimeout(()=>n=0,this.ttlResolution);a.unref&&a.unref()}return s},"getNow");this.getRemainingTTL=s=>{let a=this.#a.get(s);if(a===void 0)return 0;let c=e[a],l=r[a];if(!c||!l)return 1/0;let u=(n||i())-l;return c-u},this.#x=s=>{let a=r[s],c=e[s];return!!c&&!!a&&(n||i())-a>c}}#S=o(()=>{},"#updateItemAge");#v=o(()=>{},"#statusTTL");#u=o(()=>{},"#setItemTTL");#x=o(()=>!1,"#isStale");#T(){let e=new Fy(this.#e);this.#l=0,this.#I=e,this.#N=r=>{this.#l-=e[r],e[r]=0},this.#O=(r,n,i,s)=>{if(this.#A(n))return 0;if(!uf(i))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(i=s(n,r),!uf(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i},this.#P=(r,n,i)=>{if(e[r]=n,this.#r){let s=this.#r-e[r];for(;this.#l>s;)this.#D(!0)}this.#l+=e[r],i&&(i.entrySize=n,i.totalCalculatedSize=this.#l)}}#N=o(e=>{},"#removeItemSize");#P=o((e,r,n)=>{},"#addItemSize");#O=o((e,r,n,i)=>{if(n||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0},"#requireSize");*#R({allowStale:e=this.allowStale}={}){if(this.#s)for(let r=this.#m;!(!this.#L(r)||((e||!this.#x(r))&&(yield r),r===this.#p));)r=this.#C[r]}*#_({allowStale:e=this.allowStale}={}){if(this.#s)for(let r=this.#p;!(!this.#L(r)||((e||!this.#x(r))&&(yield r),r===this.#m));)r=this.#f[r]}#L(e){return e!==void 0&&this.#a.get(this.#c[e])===e}*entries(){for(let e of this.#R())this.#o[e]!==void 0&&this.#c[e]!==void 0&&!this.#A(this.#o[e])&&(yield[this.#c[e],this.#o[e]])}*rentries(){for(let e of this.#_())this.#o[e]!==void 0&&this.#c[e]!==void 0&&!this.#A(this.#o[e])&&(yield[this.#c[e],this.#o[e]])}*keys(){for(let e of this.#R()){let r=this.#c[e];r!==void 0&&!this.#A(this.#o[e])&&(yield r)}}*rkeys(){for(let e of this.#_()){let r=this.#c[e];r!==void 0&&!this.#A(this.#o[e])&&(yield r)}}*values(){for(let e of this.#R())this.#o[e]!==void 0&&!this.#A(this.#o[e])&&(yield this.#o[e])}*rvalues(){for(let e of this.#_())this.#o[e]!==void 0&&!this.#A(this.#o[e])&&(yield this.#o[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,r={}){for(let n of this.#R()){let i=this.#o[n],s=this.#A(i)?i.__staleWhileFetching:i;if(s!==void 0&&e(s,this.#c[n],this))return this.get(this.#c[n],r)}}forEach(e,r=this){for(let n of this.#R()){let i=this.#o[n],s=this.#A(i)?i.__staleWhileFetching:i;s!==void 0&&e.call(r,s,this.#c[n],this)}}rforEach(e,r=this){for(let n of this.#_()){let i=this.#o[n],s=this.#A(i)?i.__staleWhileFetching:i;s!==void 0&&e.call(r,s,this.#c[n],this)}}purgeStale(){let e=!1;for(let r of this.#_({allowStale:!0}))this.#x(r)&&(this.delete(this.#c[r]),e=!0);return e}info(e){let r=this.#a.get(e);if(r===void 0)return;let n=this.#o[r],i=this.#A(n)?n.__staleWhileFetching:n;if(i===void 0)return;let s={value:i};if(this.#b&&this.#y){let a=this.#b[r],c=this.#y[r];if(a&&c){let l=a-(Ly.now()-c);s.ttl=l,s.start=Date.now()}}return this.#I&&(s.size=this.#I[r]),s}dump(){let e=[];for(let r of this.#R({allowStale:!0})){let n=this.#c[r],i=this.#o[r],s=this.#A(i)?i.__staleWhileFetching:i;if(s===void 0||n===void 0)continue;let a={value:s};if(this.#b&&this.#y){a.ttl=this.#b[r];let c=Ly.now()-this.#y[r];a.start=Math.floor(Date.now()-c)}this.#I&&(a.size=this.#I[r]),e.unshift([n,a])}return e}load(e){this.clear();for(let[r,n]of e){if(n.start){let i=Date.now()-n.start;n.start=Ly.now()-i}this.set(r,n.value,n)}}set(e,r,n={}){if(r===void 0)return this.delete(e),this;let{ttl:i=this.ttl,start:s,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:c=this.sizeCalculation,status:l}=n,{noUpdateTTL:u=this.noUpdateTTL}=n,d=this.#O(e,r,n.size||0,c);if(this.maxEntrySize&&d>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.delete(e),this;let f=this.#s===0?void 0:this.#a.get(e);if(f===void 0)f=this.#s===0?this.#m:this.#g.length!==0?this.#g.pop():this.#s===this.#e?this.#D(!1):this.#s,this.#c[f]=e,this.#o[f]=r,this.#a.set(e,f),this.#f[this.#m]=f,this.#C[f]=this.#m,this.#m=f,this.#s++,this.#P(f,d,l),l&&(l.set="add"),u=!1;else{this.#Q(f);let h=this.#o[f];if(r!==h){if(this.#B&&this.#A(h)){h.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:p}=h;p!==void 0&&!a&&(this.#E&&this.#n?.(p,e,"set"),this.#d&&this.#h?.push([p,e,"set"]))}else a||(this.#E&&this.#n?.(h,e,"set"),this.#d&&this.#h?.push([h,e,"set"]));if(this.#N(f),this.#P(f,d,l),this.#o[f]=r,l){l.set="replace";let p=h&&this.#A(h)?h.__staleWhileFetching:h;p!==void 0&&(l.oldValue=p)}}else l&&(l.set="update")}if(i!==0&&!this.#b&&this.#w(),this.#b&&(u||this.#u(f,i,s),l&&this.#v(l,f)),!a&&this.#d&&this.#h){let h=this.#h,p;for(;p=h?.shift();)this.#t?.(...p)}return this}pop(){try{for(;this.#s;){let e=this.#o[this.#p];if(this.#D(!0),this.#A(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#d&&this.#h){let e=this.#h,r;for(;r=e?.shift();)this.#t?.(...r)}}}#D(e){let r=this.#p,n=this.#c[r],i=this.#o[r];return this.#B&&this.#A(i)?i.__abortController.abort(new Error("evicted")):(this.#E||this.#d)&&(this.#E&&this.#n?.(i,n,"evict"),this.#d&&this.#h?.push([i,n,"evict"])),this.#N(r),e&&(this.#c[r]=void 0,this.#o[r]=void 0,this.#g.push(r)),this.#s===1?(this.#p=this.#m=0,this.#g.length=0):this.#p=this.#f[r],this.#a.delete(n),this.#s--,r}has(e,r={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:i}=r,s=this.#a.get(e);if(s!==void 0){let a=this.#o[s];if(this.#A(a)&&a.__staleWhileFetching===void 0)return!1;if(this.#x(s))i&&(i.has="stale",this.#v(i,s));else return n&&this.#S(s),i&&(i.has="hit",this.#v(i,s)),!0}else i&&(i.has="miss");return!1}peek(e,r={}){let{allowStale:n=this.allowStale}=r,i=this.#a.get(e);if(i===void 0||!n&&this.#x(i))return;let s=this.#o[i];return this.#A(s)?s.__staleWhileFetching:s}#k(e,r,n,i){let s=r===void 0?void 0:this.#o[r];if(this.#A(s))return s;let a=new rQ,{signal:c}=n;c?.addEventListener("abort",()=>a.abort(c.reason),{signal:a.signal});let l={signal:a.signal,options:n,context:i},u=o((A,E=!1)=>{let{aborted:y}=a.signal,C=n.ignoreFetchAbort&&A!==void 0;if(n.status&&(y&&!E?(n.status.fetchAborted=!0,n.status.fetchError=a.signal.reason,C&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),y&&!C&&!E)return f(a.signal.reason);let w=p;return this.#o[r]===p&&(A===void 0?w.__staleWhileFetching?this.#o[r]=w.__staleWhileFetching:this.delete(e):(n.status&&(n.status.fetchUpdated=!0),this.set(e,A,l.options))),A},"cb"),d=o(A=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=A),f(A)),"eb"),f=o(A=>{let{aborted:E}=a.signal,y=E&&n.allowStaleOnFetchAbort,C=y||n.allowStaleOnFetchRejection,w=C||n.noDeleteOnFetchRejection,B=p;if(this.#o[r]===p&&(!w||B.__staleWhileFetching===void 0?this.delete(e):y||(this.#o[r]=B.__staleWhileFetching)),C)return n.status&&B.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),B.__staleWhileFetching;if(B.__returned===B)throw A},"fetchFail"),h=o((A,E)=>{let y=this.#i?.(e,s,l);y&&y instanceof Promise&&y.then(C=>A(C===void 0?void 0:C),E),a.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(A(void 0),n.allowStaleOnFetchAbort&&(A=o(C=>u(C,!0),"res")))})},"pcall");n.status&&(n.status.fetchDispatched=!0);let p=new Promise(h).then(u,d),m=Object.assign(p,{__abortController:a,__staleWhileFetching:s,__returned:void 0});return r===void 0?(this.set(e,m,{...l.options,status:void 0}),r=this.#a.get(e)):this.#o[r]=m,m}#A(e){if(!this.#B)return!1;let r=e;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof rQ}async fetch(e,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:c=this.noDisposeOnSet,size:l=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:d=this.noUpdateTTL,noDeleteOnFetchRejection:f=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:m=this.allowStaleOnFetchAbort,context:A,forceRefresh:E=!1,status:y,signal:C}=r;if(!this.#B)return y&&(y.fetch="get"),this.get(e,{allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:s,status:y});let w={allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:s,ttl:a,noDisposeOnSet:c,size:l,sizeCalculation:u,noUpdateTTL:d,noDeleteOnFetchRejection:f,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:m,ignoreFetchAbort:p,status:y,signal:C},B=this.#a.get(e);if(B===void 0){y&&(y.fetch="miss");let P=this.#k(e,B,w,A);return P.__returned=P}else{let P=this.#o[B];if(this.#A(P)){let H=n&&P.__staleWhileFetching!==void 0;return y&&(y.fetch="inflight",H&&(y.returnedStale=!0)),H?P.__staleWhileFetching:P.__returned=P}let U=this.#x(B);if(!E&&!U)return y&&(y.fetch="hit"),this.#Q(B),i&&this.#S(B),y&&this.#v(y,B),P;let N=this.#k(e,B,w,A),Q=N.__staleWhileFetching!==void 0&&n;return y&&(y.fetch=U?"stale":"refresh",Q&&U&&(y.returnedStale=!0)),Q?N.__staleWhileFetching:N.__returned=N}}get(e,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:a}=r,c=this.#a.get(e);if(c!==void 0){let l=this.#o[c],u=this.#A(l);return a&&this.#v(a,c),this.#x(c)?(a&&(a.get="stale"),u?(a&&n&&l.__staleWhileFetching!==void 0&&(a.returnedStale=!0),n?l.__staleWhileFetching:void 0):(s||this.delete(e),a&&n&&(a.returnedStale=!0),n?l:void 0)):(a&&(a.get="hit"),u?l.__staleWhileFetching:(this.#Q(c),i&&this.#S(c),l))}else a&&(a.get="miss")}#F(e,r){this.#C[r]=e,this.#f[e]=r}#Q(e){e!==this.#m&&(e===this.#p?this.#p=this.#f[e]:this.#F(this.#C[e],this.#f[e]),this.#F(this.#m,e),this.#m=e)}delete(e){let r=!1;if(this.#s!==0){let n=this.#a.get(e);if(n!==void 0)if(r=!0,this.#s===1)this.clear();else{this.#N(n);let i=this.#o[n];if(this.#A(i)?i.__abortController.abort(new Error("deleted")):(this.#E||this.#d)&&(this.#E&&this.#n?.(i,e,"delete"),this.#d&&this.#h?.push([i,e,"delete"])),this.#a.delete(e),this.#c[n]=void 0,this.#o[n]=void 0,n===this.#m)this.#m=this.#C[n];else if(n===this.#p)this.#p=this.#f[n];else{let s=this.#C[n];this.#f[s]=this.#f[n];let a=this.#f[n];this.#C[a]=this.#C[n]}this.#s--,this.#g.push(n)}}if(this.#d&&this.#h?.length){let n=this.#h,i;for(;i=n?.shift();)this.#t?.(...i)}return r}clear(){for(let e of this.#_({allowStale:!0})){let r=this.#o[e];if(this.#A(r))r.__abortController.abort(new Error("deleted"));else{let n=this.#c[e];this.#E&&this.#n?.(r,n,"delete"),this.#d&&this.#h?.push([r,n,"delete"])}}if(this.#a.clear(),this.#o.fill(void 0),this.#c.fill(void 0),this.#b&&this.#y&&(this.#b.fill(0),this.#y.fill(0)),this.#I&&this.#I.fill(0),this.#p=0,this.#m=0,this.#g.length=0,this.#l=0,this.#s=0,this.#d&&this.#h){let e=this.#h,r;for(;r=e?.shift();)this.#t?.(...r)}}};nQ.LRUCache=NW});var x_e=g(Hi=>{"use strict";var r_t=Hi&&Hi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Hi,"__esModule",{value:!0});Hi.Minipass=Hi.isWritable=Hi.isReadable=Hi.isStream=void 0;var b_e=typeof process=="object"&&process?process:{stdout:null,stderr:null},PW=require("events"),B_e=r_t(require("stream")),n_t=require("string_decoder"),i_t=o(t=>!!t&&typeof t=="object"&&(t instanceof uQ||t instanceof B_e.default||(0,Hi.isReadable)(t)||(0,Hi.isWritable)(t)),"isStream");Hi.isStream=i_t;var s_t=o(t=>!!t&&typeof t=="object"&&t instanceof PW.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==B_e.default.Writable.prototype.pipe,"isReadable");Hi.isReadable=s_t;var o_t=o(t=>!!t&&typeof t=="object"&&t instanceof PW.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function","isWritable");Hi.isWritable=o_t;var Lu=Symbol("EOF"),Fu=Symbol("maybeEmitEnd"),df=Symbol("emittedEnd"),iQ=Symbol("emittingEnd"),AI=Symbol("emittedError"),sQ=Symbol("closed"),w_e=Symbol("read"),oQ=Symbol("flush"),I_e=Symbol("flushChunk"),ja=Symbol("encoding"),My=Symbol("decoder"),Qn=Symbol("flowing"),mI=Symbol("paused"),Uy=Symbol("resume"),kn=Symbol("buffer"),Gi=Symbol("pipes"),Pn=Symbol("bufferLength"),RW=Symbol("bufferPush"),aQ=Symbol("bufferShift"),pi=Symbol("objectMode"),Jr=Symbol("destroyed"),_W=Symbol("error"),TW=Symbol("emitData"),S_e=Symbol("emitEnd"),DW=Symbol("emitEnd2"),gl=Symbol("async"),QW=Symbol("abort"),cQ=Symbol("aborted"),gI=Symbol("signal"),Up=Symbol("dataListeners"),no=Symbol("discarded"),yI=o(t=>Promise.resolve().then(t),"defer"),a_t=o(t=>t(),"nodefer"),c_t=o(t=>t==="end"||t==="finish"||t==="prefinish","isEndish"),l_t=o(t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,"isArrayBufferLike"),u_t=o(t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),"isArrayBufferView"),lQ=class{static{o(this,"Pipe")}src;dest;opts;ondrain;constructor(e,r,n){this.src=e,this.dest=r,this.opts=n,this.ondrain=()=>e[Uy](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},kW=class extends lQ{static{o(this,"PipeProxyErrors")}unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,n){super(e,r,n),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}},d_t=o(t=>!!t.objectMode,"isObjectModeOptions"),f_t=o(t=>!t.objectMode&&!!t.encoding&&t.encoding!=="buffer","isEncodingOptions"),uQ=class extends PW.EventEmitter{static{o(this,"Minipass")}[Qn]=!1;[mI]=!1;[Gi]=[];[kn]=[];[pi];[ja];[gl];[My];[Lu]=!1;[df]=!1;[iQ]=!1;[sQ]=!1;[AI]=null;[Pn]=0;[Jr]=!1;[gI];[cQ]=!1;[Up]=0;[no]=!1;writable=!0;readable=!0;constructor(...e){let r=e[0]||{};if(super(),r.objectMode&&typeof r.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");d_t(r)?(this[pi]=!0,this[ja]=null):f_t(r)?(this[ja]=r.encoding,this[pi]=!1):(this[pi]=!1,this[ja]=null),this[gl]=!!r.async,this[My]=this[ja]?new n_t.StringDecoder(this[ja]):null,r&&r.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:o(()=>this[kn],"get")}),r&&r.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:o(()=>this[Gi],"get")});let{signal:n}=r;n&&(this[gI]=n,n.aborted?this[QW]():n.addEventListener("abort",()=>this[QW]()))}get bufferLength(){return this[Pn]}get encoding(){return this[ja]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[pi]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[gl]}set async(e){this[gl]=this[gl]||!!e}[QW](){this[cQ]=!0,this.emit("abort",this[gI]?.reason),this.destroy(this[gI]?.reason)}get aborted(){return this[cQ]}set aborted(e){}write(e,r,n){if(this[cQ])return!1;if(this[Lu])throw new Error("write after end");if(this[Jr])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[gl]?yI:a_t;if(!this[pi]&&!Buffer.isBuffer(e)){if(u_t(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(l_t(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[pi]?(this[Qn]&&this[Pn]!==0&&this[oQ](!0),this[Qn]?this.emit("data",e):this[RW](e),this[Pn]!==0&&this.emit("readable"),n&&i(n),this[Qn]):e.length?(typeof e=="string"&&!(r===this[ja]&&!this[My]?.lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[ja]&&(e=this[My].write(e)),this[Qn]&&this[Pn]!==0&&this[oQ](!0),this[Qn]?this.emit("data",e):this[RW](e),this[Pn]!==0&&this.emit("readable"),n&&i(n),this[Qn]):(this[Pn]!==0&&this.emit("readable"),n&&i(n),this[Qn])}read(e){if(this[Jr])return null;if(this[no]=!1,this[Pn]===0||e===0||e&&e>this[Pn])return this[Fu](),null;this[pi]&&(e=null),this[kn].length>1&&!this[pi]&&(this[kn]=[this[ja]?this[kn].join(""):Buffer.concat(this[kn],this[Pn])]);let r=this[w_e](e||null,this[kn][0]);return this[Fu](),r}[w_e](e,r){if(this[pi])this[aQ]();else{let n=r;e===n.length||e===null?this[aQ]():typeof n=="string"?(this[kn][0]=n.slice(e),r=n.slice(0,e),this[Pn]-=e):(this[kn][0]=n.subarray(e),r=n.subarray(0,e),this[Pn]-=e)}return this.emit("data",r),!this[kn].length&&!this[Lu]&&this.emit("drain"),r}end(e,r,n){return typeof e=="function"&&(n=e,e=void 0),typeof r=="function"&&(n=r,r="utf8"),e!==void 0&&this.write(e,r),n&&this.once("end",n),this[Lu]=!0,this.writable=!1,(this[Qn]||!this[mI])&&this[Fu](),this}[Uy](){this[Jr]||(!this[Up]&&!this[Gi].length&&(this[no]=!0),this[mI]=!1,this[Qn]=!0,this.emit("resume"),this[kn].length?this[oQ]():this[Lu]?this[Fu]():this.emit("drain"))}resume(){return this[Uy]()}pause(){this[Qn]=!1,this[mI]=!0,this[no]=!1}get destroyed(){return this[Jr]}get flowing(){return this[Qn]}get paused(){return this[mI]}[RW](e){this[pi]?this[Pn]+=1:this[Pn]+=e.length,this[kn].push(e)}[aQ](){return this[pi]?this[Pn]-=1:this[Pn]-=this[kn][0].length,this[kn].shift()}[oQ](e=!1){do;while(this[I_e](this[aQ]())&&this[kn].length);!e&&!this[kn].length&&!this[Lu]&&this.emit("drain")}[I_e](e){return this.emit("data",e),this[Qn]}pipe(e,r){if(this[Jr])return e;this[no]=!1;let n=this[df];return r=r||{},e===b_e.stdout||e===b_e.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&e.end():(this[Gi].push(r.proxyErrors?new kW(this,e,r):new lQ(this,e,r)),this[gl]?yI(()=>this[Uy]()):this[Uy]()),e}unpipe(e){let r=this[Gi].find(n=>n.dest===e);r&&(this[Gi].length===1?(this[Qn]&&this[Up]===0&&(this[Qn]=!1),this[Gi]=[]):this[Gi].splice(this[Gi].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let n=super.on(e,r);if(e==="data")this[no]=!1,this[Up]++,!this[Gi].length&&!this[Qn]&&this[Uy]();else if(e==="readable"&&this[Pn]!==0)super.emit("readable");else if(c_t(e)&&this[df])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[AI]){let i=r;this[gl]?yI(()=>i.call(this,this[AI])):i.call(this,this[AI])}return n}removeListener(e,r){return this.off(e,r)}off(e,r){let n=super.off(e,r);return e==="data"&&(this[Up]=this.listeners("data").length,this[Up]===0&&!this[no]&&!this[Gi].length&&(this[Qn]=!1)),n}removeAllListeners(e){let r=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[Up]=0,!this[no]&&!this[Gi].length&&(this[Qn]=!1)),r}get emittedEnd(){return this[df]}[Fu](){!this[iQ]&&!this[df]&&!this[Jr]&&this[kn].length===0&&this[Lu]&&(this[iQ]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[sQ]&&this.emit("close"),this[iQ]=!1)}emit(e,...r){let n=r[0];if(e!=="error"&&e!=="close"&&e!==Jr&&this[Jr])return!1;if(e==="data")return!this[pi]&&!n?!1:this[gl]?(yI(()=>this[TW](n)),!0):this[TW](n);if(e==="end")return this[S_e]();if(e==="close"){if(this[sQ]=!0,!this[df]&&!this[Jr])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[AI]=n,super.emit(_W,n);let s=!this[gI]||this.listeners("error").length?super.emit("error",n):!1;return this[Fu](),s}else if(e==="resume"){let s=super.emit("resume");return this[Fu](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,...r);return this[Fu](),i}[TW](e){for(let n of this[Gi])n.dest.write(e)===!1&&this.pause();let r=this[no]?!1:super.emit("data",e);return this[Fu](),r}[S_e](){return this[df]?!1:(this[df]=!0,this.readable=!1,this[gl]?(yI(()=>this[DW]()),!0):this[DW]())}[DW](){if(this[My]){let r=this[My].end();if(r){for(let n of this[Gi])n.dest.write(r);this[no]||super.emit("data",r)}}for(let r of this[Gi])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[pi]||(e.dataLength=0);let r=this.promise();return this.on("data",n=>{e.push(n),this[pi]||(e.dataLength+=n.length)}),await r,e}async concat(){if(this[pi])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[ja]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,r)=>{this.on(Jr,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[no]=!1;let e=!1,r=o(async()=>(this.pause(),e=!0,{value:void 0,done:!0}),"stop");return{next:o(()=>{if(e)return r();let i=this.read();if(i!==null)return Promise.resolve({done:!1,value:i});if(this[Lu])return r();let s,a,c=o(f=>{this.off("data",l),this.off("end",u),this.off(Jr,d),r(),a(f)},"onerr"),l=o(f=>{this.off("error",c),this.off("end",u),this.off(Jr,d),this.pause(),s({value:f,done:!!this[Lu]})},"ondata"),u=o(()=>{this.off("error",c),this.off("data",l),this.off(Jr,d),r(),s({done:!0,value:void 0})},"onend"),d=o(()=>c(new Error("stream destroyed")),"ondestroy");return new Promise((f,h)=>{a=h,s=f,this.once(Jr,d),this.once("error",c),this.once("end",u),this.once("data",l)})},"next"),throw:r,return:r,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[no]=!1;let e=!1,r=o(()=>(this.pause(),this.off(_W,r),this.off(Jr,r),this.off("end",r),e=!0,{done:!0,value:void 0}),"stop"),n=o(()=>{if(e)return r();let i=this.read();return i===null?r():{done:!1,value:i}},"next");return this.once("end",r),this.once(_W,r),this.once(Jr,r),{next:n,throw:r,return:r,[Symbol.iterator](){return this}}}destroy(e){if(this[Jr])return e?this.emit("error",e):this.emit(Jr),this;this[Jr]=!0,this[no]=!0,this[kn].length=0,this[Pn]=0;let r=this;return typeof r.close=="function"&&!this[sQ]&&r.close(),e?this.emit("error",e):this.emit(Jr),this}static get isStream(){return Hi.isStream}};Hi.Minipass=uQ});var q_e=g(Lt=>{"use strict";var h_t=Lt&&Lt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),p_t=Lt&&Lt.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),A_t=Lt&&Lt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&h_t(e,t,r);return p_t(e,t),e};Object.defineProperty(Lt,"__esModule",{value:!0});Lt.PathScurry=Lt.Path=Lt.PathScurryDarwin=Lt.PathScurryPosix=Lt.PathScurryWin32=Lt.PathScurryBase=Lt.PathPosix=Lt.PathWin32=Lt.PathBase=Lt.ChildrenCache=Lt.ResolveCache=void 0;var D_e=C_e(),AQ=require("node:path"),m_t=require("node:url"),CI=require("fs"),g_t=A_t(require("node:fs")),y_t=CI.realpathSync.native,dQ=require("node:fs/promises"),v_e=x_e(),bI={lstatSync:CI.lstatSync,readdir:CI.readdir,readdirSync:CI.readdirSync,readlinkSync:CI.readlinkSync,realpathSync:y_t,promises:{lstat:dQ.lstat,readdir:dQ.readdir,readlink:dQ.readlink,realpath:dQ.realpath}},Q_e=o(t=>!t||t===bI||t===g_t?bI:{...bI,...t,promises:{...bI.promises,...t.promises||{}}},"fsFromOption"),k_e=/^\\\\\?\\([a-z]:)\\?$/i,E_t=o(t=>t.replace(/\//g,"\\").replace(k_e,"$1\\"),"uncToDrive"),C_t=/[\\\/]/,na=0,P_e=1,O_e=2,yl=4,L_e=6,F_e=8,qp=10,M_e=12,ra=15,EI=~ra,OW=16,N_e=32,wI=64,Wa=128,fQ=256,pQ=512,R_e=wI|Wa|pQ,b_t=1023,LW=o(t=>t.isFile()?F_e:t.isDirectory()?yl:t.isSymbolicLink()?qp:t.isCharacterDevice()?O_e:t.isBlockDevice()?L_e:t.isSocket()?M_e:t.isFIFO()?P_e:na,"entToType"),__e=new Map,II=o(t=>{let e=__e.get(t);if(e)return e;let r=t.normalize("NFKD");return __e.set(t,r),r},"normalize"),T_e=new Map,hQ=o(t=>{let e=T_e.get(t);if(e)return e;let r=II(t.toLowerCase());return T_e.set(t,r),r},"normalizeNocase"),SI=class extends D_e.LRUCache{static{o(this,"ResolveCache")}constructor(){super({max:256})}};Lt.ResolveCache=SI;var mQ=class extends D_e.LRUCache{static{o(this,"ChildrenCache")}constructor(e=16*1024){super({maxSize:e,sizeCalculation:o(r=>r.length+1,"sizeCalculation")})}};Lt.ChildrenCache=mQ;var U_e=Symbol("PathScurry setAsCwd"),Xn=class{static{o(this,"PathBase")}name;root;roots;parent;nocase;isCWD=!1;#e;#r;get dev(){return this.#r}#n;get mode(){return this.#n}#t;get nlink(){return this.#t}#i;get uid(){return this.#i}#s;get gid(){return this.#s}#l;get rdev(){return this.#l}#a;get blksize(){return this.#a}#c;get ino(){return this.#c}#o;get size(){return this.#o}#f;get blocks(){return this.#f}#C;get atimeMs(){return this.#C}#p;get mtimeMs(){return this.#p}#m;get ctimeMs(){return this.#m}#g;get birthtimeMs(){return this.#g}#h;get atime(){return this.#h}#I;get mtime(){return this.#I}#y;get ctime(){return this.#y}#b;get birthtime(){return this.#b}#E;#B;#d;#w;#S;#v;#u;#x;#T;#N;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,r=na,n,i,s,a,c){this.name=e,this.#E=s?hQ(e):II(e),this.#u=r&b_t,this.nocase=s,this.roots=i,this.root=n||this,this.#x=a,this.#d=c.fullpath,this.#S=c.relative,this.#v=c.relativePosix,this.parent=c.parent,this.parent?this.#e=this.parent.#e:this.#e=Q_e(c.fs)}depth(){return this.#B!==void 0?this.#B:this.parent?this.#B=this.parent.depth()+1:this.#B=0}childrenCache(){return this.#x}resolve(e){if(!e)return this;let r=this.getRootString(e),i=e.substring(r.length).split(this.splitSep);return r?this.getRoot(r).#P(i):this.#P(i)}#P(e){let r=this;for(let n of e)r=r.child(n);return r}children(){let e=this.#x.get(this);if(e)return e;let r=Object.assign([],{provisional:0});return this.#x.set(this,r),this.#u&=~OW,r}child(e,r){if(e===""||e===".")return this;if(e==="..")return this.parent||this;let n=this.children(),i=this.nocase?hQ(e):II(e);for(let l of n)if(l.#E===i)return l;let s=this.parent?this.sep:"",a=this.#d?this.#d+s+e:void 0,c=this.newChild(e,na,{...r,parent:this,fullpath:a});return this.canReaddir()||(c.#u|=Wa),n.push(c),c}relative(){if(this.isCWD)return"";if(this.#S!==void 0)return this.#S;let e=this.name,r=this.parent;if(!r)return this.#S=this.name;let n=r.relative();return n+(!n||!r.parent?"":this.sep)+e}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#v!==void 0)return this.#v;let e=this.name,r=this.parent;if(!r)return this.#v=this.fullpathPosix();let n=r.relativePosix();return n+(!n||!r.parent?"":"/")+e}fullpath(){if(this.#d!==void 0)return this.#d;let e=this.name,r=this.parent;if(!r)return this.#d=this.name;let i=r.fullpath()+(r.parent?this.sep:"")+e;return this.#d=i}fullpathPosix(){if(this.#w!==void 0)return this.#w;if(this.sep==="/")return this.#w=this.fullpath();if(!this.parent){let i=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(i)?this.#w=`//?/${i}`:this.#w=i}let e=this.parent,r=e.fullpathPosix(),n=r+(!r||!e.parent?"":"/")+this.name;return this.#w=n}isUnknown(){return(this.#u&ra)===na}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#u&ra)===F_e}isDirectory(){return(this.#u&ra)===yl}isCharacterDevice(){return(this.#u&ra)===O_e}isBlockDevice(){return(this.#u&ra)===L_e}isFIFO(){return(this.#u&ra)===P_e}isSocket(){return(this.#u&ra)===M_e}isSymbolicLink(){return(this.#u&qp)===qp}lstatCached(){return this.#u&N_e?this:void 0}readlinkCached(){return this.#T}realpathCached(){return this.#N}readdirCached(){let e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#T)return!0;if(!this.parent)return!1;let e=this.#u&ra;return!(e!==na&&e!==qp||this.#u&fQ||this.#u&Wa)}calledReaddir(){return!!(this.#u&OW)}isENOENT(){return!!(this.#u&Wa)}isNamed(e){return this.nocase?this.#E===hQ(e):this.#E===II(e)}async readlink(){let e=this.#T;if(e)return e;if(this.canReadlink()&&this.parent)try{let r=await this.#e.promises.readlink(this.fullpath()),n=(await this.parent.realpath())?.resolve(r);if(n)return this.#T=n}catch(r){this.#F(r.code);return}}readlinkSync(){let e=this.#T;if(e)return e;if(this.canReadlink()&&this.parent)try{let r=this.#e.readlinkSync(this.fullpath()),n=this.parent.realpathSync()?.resolve(r);if(n)return this.#T=n}catch(r){this.#F(r.code);return}}#O(e){this.#u|=OW;for(let r=e.provisional;rn(null,e))}readdirCB(e,r=!1){if(!this.canReaddir()){r?e(null,[]):queueMicrotask(()=>e(null,[]));return}let n=this.children();if(this.calledReaddir()){let s=n.slice(0,n.provisional);r?e(null,s):queueMicrotask(()=>e(null,s));return}if(this.#U.push(e),this.#q)return;this.#q=!0;let i=this.fullpath();this.#e.readdir(i,{withFileTypes:!0},(s,a)=>{if(s)this.#k(s.code),n.provisional=0;else{for(let c of a)this.#Q(c,n);this.#O(n)}this.#$(n.slice(0,n.provisional))})}#M;async readdir(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let r=this.fullpath();if(this.#M)await this.#M;else{let n=o(()=>{},"resolve");this.#M=new Promise(i=>n=i);try{for(let i of await this.#e.promises.readdir(r,{withFileTypes:!0}))this.#Q(i,e);this.#O(e)}catch(i){this.#k(i.code),e.provisional=0}this.#M=void 0,n()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let r=this.fullpath();try{for(let n of this.#e.readdirSync(r,{withFileTypes:!0}))this.#Q(n,e);this.#O(e)}catch(n){this.#k(n.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#u&R_e)return!1;let e=ra&this.#u;return e===na||e===yl||e===qp}shouldWalk(e,r){return(this.#u&yl)===yl&&!(this.#u&R_e)&&!e.has(this)&&(!r||r(this))}async realpath(){if(this.#N)return this.#N;if(!((pQ|fQ|Wa)&this.#u))try{let e=await this.#e.promises.realpath(this.fullpath());return this.#N=this.resolve(e)}catch{this.#L()}}realpathSync(){if(this.#N)return this.#N;if(!((pQ|fQ|Wa)&this.#u))try{let e=this.#e.realpathSync(this.fullpath());return this.#N=this.resolve(e)}catch{this.#L()}}[U_e](e){if(e===this)return;e.isCWD=!1,this.isCWD=!0;let r=new Set([]),n=[],i=this;for(;i&&i.parent;)r.add(i),i.#S=n.join(this.sep),i.#v=n.join("/"),i=i.parent,n.push("..");for(i=e;i&&i.parent&&!r.has(i);)i.#S=void 0,i.#v=void 0,i=i.parent}};Lt.PathBase=Xn;var BI=class t extends Xn{static{o(this,"PathWin32")}sep="\\";splitSep=C_t;constructor(e,r=na,n,i,s,a,c){super(e,r,n,i,s,a,c)}newChild(e,r=na,n={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),n)}getRootString(e){return AQ.win32.parse(e).root}getRoot(e){if(e=E_t(e.toUpperCase()),e===this.root.name)return this.root;for(let[r,n]of Object.entries(this.roots))if(this.sameRoot(e,r))return this.roots[e]=n;return this.roots[e]=new NI(e,this).root}sameRoot(e,r=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(k_e,"$1\\"),e===r}};Lt.PathWin32=BI;var xI=class t extends Xn{static{o(this,"PathPosix")}splitSep="/";sep="/";constructor(e,r=na,n,i,s,a,c){super(e,r,n,i,s,a,c)}getRootString(e){return e.startsWith("/")?"/":""}getRoot(e){return this.root}newChild(e,r=na,n={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),n)}};Lt.PathPosix=xI;var vI=class{static{o(this,"PathScurryBase")}root;rootPath;roots;cwd;#e;#r;#n;nocase;#t;constructor(e=process.cwd(),r,n,{nocase:i,childrenCacheSize:s=16*1024,fs:a=bI}={}){this.#t=Q_e(a),(e instanceof URL||e.startsWith("file://"))&&(e=(0,m_t.fileURLToPath)(e));let c=r.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(c),this.#e=new SI,this.#r=new SI,this.#n=new mQ(s);let l=c.substring(this.rootPath.length).split(n);if(l.length===1&&!l[0]&&l.pop(),i===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=i,this.root=this.newRoot(this.#t),this.roots[this.rootPath]=this.root;let u=this.root,d=l.length-1,f=r.sep,h=this.rootPath,p=!1;for(let m of l){let A=d--;u=u.child(m,{relative:new Array(A).fill("..").join(f),relativePosix:new Array(A).fill("..").join("/"),fullpath:h+=(p?"":f)+m}),p=!0}this.cwd=u}depth(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.depth()}childrenCache(){return this.#n}resolve(...e){let r="";for(let s=e.length-1;s>=0;s--){let a=e[s];if(!(!a||a===".")&&(r=r?`${a}/${r}`:a,this.isAbsolute(a)))break}let n=this.#e.get(r);if(n!==void 0)return n;let i=this.cwd.resolve(r).fullpath();return this.#e.set(r,i),i}resolvePosix(...e){let r="";for(let s=e.length-1;s>=0;s--){let a=e[s];if(!(!a||a===".")&&(r=r?`${a}/${r}`:a,this.isAbsolute(a)))break}let n=this.#r.get(r);if(n!==void 0)return n;let i=this.cwd.resolve(r).fullpathPosix();return this.#r.set(r,i),i}relative(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relative()}relativePosix(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relativePosix()}basename(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.name}dirname(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),(e.parent||e).fullpath()}async readdir(e=this.cwd,r={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Xn||(r=e,e=this.cwd);let{withFileTypes:n}=r;if(e.canReaddir()){let i=await e.readdir();return n?i:i.map(s=>s.name)}else return[]}readdirSync(e=this.cwd,r={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Xn||(r=e,e=this.cwd);let{withFileTypes:n=!0}=r;return e.canReaddir()?n?e.readdirSync():e.readdirSync().map(i=>i.name):[]}async lstat(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstat()}lstatSync(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Xn||(r=e.withFileTypes,e=this.cwd);let n=await e.readlink();return r?n:n?.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Xn||(r=e.withFileTypes,e=this.cwd);let n=e.readlinkSync();return r?n:n?.fullpath()}async realpath(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Xn||(r=e.withFileTypes,e=this.cwd);let n=await e.realpath();return r?n:n?.fullpath()}realpathSync(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Xn||(r=e.withFileTypes,e=this.cwd);let n=e.realpathSync();return r?n:n?.fullpath()}async walk(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Xn||(r=e,e=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:a}=r,c=[];(!s||s(e))&&c.push(n?e:e.fullpath());let l=new Set,u=o((f,h)=>{l.add(f),f.readdirCB((p,m)=>{if(p)return h(p);let A=m.length;if(!A)return h();let E=o(()=>{--A===0&&h()},"next");for(let y of m)(!s||s(y))&&c.push(n?y:y.fullpath()),i&&y.isSymbolicLink()?y.realpath().then(C=>C?.isUnknown()?C.lstat():C).then(C=>C?.shouldWalk(l,a)?u(C,E):E()):y.shouldWalk(l,a)?u(y,E):E()},!0)},"walk"),d=e;return new Promise((f,h)=>{u(d,p=>{if(p)return h(p);f(c)})})}walkSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Xn||(r=e,e=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:a}=r,c=[];(!s||s(e))&&c.push(n?e:e.fullpath());let l=new Set([e]);for(let u of l){let d=u.readdirSync();for(let f of d){(!s||s(f))&&c.push(n?f:f.fullpath());let h=f;if(f.isSymbolicLink()){if(!(i&&(h=f.realpathSync())))continue;h.isUnknown()&&h.lstatSync()}h.shouldWalk(l,a)&&l.add(h)}}return c}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,r={}){return typeof e=="string"?e=this.cwd.resolve(e):e instanceof Xn||(r=e,e=this.cwd),this.stream(e,r)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Xn||(r=e,e=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:a}=r;(!s||s(e))&&(yield n?e:e.fullpath());let c=new Set([e]);for(let l of c){let u=l.readdirSync();for(let d of u){(!s||s(d))&&(yield n?d:d.fullpath());let f=d;if(d.isSymbolicLink()){if(!(i&&(f=d.realpathSync())))continue;f.isUnknown()&&f.lstatSync()}f.shouldWalk(c,a)&&c.add(f)}}}stream(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Xn||(r=e,e=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:a}=r,c=new v_e.Minipass({objectMode:!0});(!s||s(e))&&c.write(n?e:e.fullpath());let l=new Set,u=[e],d=0,f=o(()=>{let h=!1;for(;!h;){let p=u.shift();if(!p){d===0&&c.end();return}d++,l.add(p);let m=o((E,y,C=!1)=>{if(E)return c.emit("error",E);if(i&&!C){let w=[];for(let B of y)B.isSymbolicLink()&&w.push(B.realpath().then(P=>P?.isUnknown()?P.lstat():P));if(w.length){Promise.all(w).then(()=>m(null,y,!0));return}}for(let w of y)w&&(!s||s(w))&&(c.write(n?w:w.fullpath())||(h=!0));d--;for(let w of y){let B=w.realpathCached()||w;B.shouldWalk(l,a)&&u.push(B)}h&&!c.flowing?c.once("drain",f):A||f()},"onReaddir"),A=!0;p.readdirCB(m,!0),A=!1}},"process");return f(),c}streamSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Xn||(r=e,e=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:a}=r,c=new v_e.Minipass({objectMode:!0}),l=new Set;(!s||s(e))&&c.write(n?e:e.fullpath());let u=[e],d=0,f=o(()=>{let h=!1;for(;!h;){let p=u.shift();if(!p){d===0&&c.end();return}d++,l.add(p);let m=p.readdirSync();for(let A of m)(!s||s(A))&&(c.write(n?A:A.fullpath())||(h=!0));d--;for(let A of m){let E=A;if(A.isSymbolicLink()){if(!(i&&(E=A.realpathSync())))continue;E.isUnknown()&&E.lstatSync()}E.shouldWalk(l,a)&&u.push(E)}}h&&!c.flowing&&c.once("drain",f)},"process");return f(),c}chdir(e=this.cwd){let r=this.cwd;this.cwd=typeof e=="string"?this.cwd.resolve(e):e,this.cwd[U_e](r)}};Lt.PathScurryBase=vI;var NI=class extends vI{static{o(this,"PathScurryWin32")}sep="\\";constructor(e=process.cwd(),r={}){let{nocase:n=!0}=r;super(e,AQ.win32,"\\",{...r,nocase:n}),this.nocase=n;for(let i=this.cwd;i;i=i.parent)i.nocase=this.nocase}parseRootPath(e){return AQ.win32.parse(e).root.toUpperCase()}newRoot(e){return new BI(this.rootPath,yl,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}};Lt.PathScurryWin32=NI;var RI=class extends vI{static{o(this,"PathScurryPosix")}sep="/";constructor(e=process.cwd(),r={}){let{nocase:n=!1}=r;super(e,AQ.posix,"/",{...r,nocase:n}),this.nocase=n}parseRootPath(e){return"/"}newRoot(e){return new xI(this.rootPath,yl,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}};Lt.PathScurryPosix=RI;var gQ=class extends RI{static{o(this,"PathScurryDarwin")}constructor(e=process.cwd(),r={}){let{nocase:n=!0}=r;super(e,{...r,nocase:n})}};Lt.PathScurryDarwin=gQ;Lt.Path=process.platform==="win32"?BI:xI;Lt.PathScurry=process.platform==="win32"?NI:process.platform==="darwin"?gQ:RI});var MW=g(yQ=>{"use strict";Object.defineProperty(yQ,"__esModule",{value:!0});yQ.Pattern=void 0;var w_t=lf(),I_t=o(t=>t.length>=1,"isPatternList"),S_t=o(t=>t.length>=1,"isGlobList"),FW=class t{static{o(this,"Pattern")}#e;#r;#n;length;#t;#i;#s;#l;#a;#c;#o=!0;constructor(e,r,n,i){if(!I_t(e))throw new TypeError("empty pattern list");if(!S_t(r))throw new TypeError("empty glob list");if(r.length!==e.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=e.length,n<0||n>=this.length)throw new TypeError("index out of range");if(this.#e=e,this.#r=r,this.#n=n,this.#t=i,this.#n===0){if(this.isUNC()){let[s,a,c,l,...u]=this.#e,[d,f,h,p,...m]=this.#r;u[0]===""&&(u.shift(),m.shift());let A=[s,a,c,l,""].join("/"),E=[d,f,h,p,""].join("/");this.#e=[A,...u],this.#r=[E,...m],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[s,...a]=this.#e,[c,...l]=this.#r;a[0]===""&&(a.shift(),l.shift());let u=s+"/",d=c+"/";this.#e=[u,...a],this.#r=[d,...l],this.length=this.#e.length}}}pattern(){return this.#e[this.#n]}isString(){return typeof this.#e[this.#n]=="string"}isGlobstar(){return this.#e[this.#n]===w_t.GLOBSTAR}isRegExp(){return this.#e[this.#n]instanceof RegExp}globString(){return this.#s=this.#s||(this.#n===0?this.isAbsolute()?this.#r[0]+this.#r.slice(1).join("/"):this.#r.join("/"):this.#r.slice(this.#n).join("/"))}hasMore(){return this.length>this.#n+1}rest(){return this.#i!==void 0?this.#i:this.hasMore()?(this.#i=new t(this.#e,this.#r,this.#n+1,this.#t),this.#i.#c=this.#c,this.#i.#a=this.#a,this.#i.#l=this.#l,this.#i):this.#i=null}isUNC(){let e=this.#e;return this.#a!==void 0?this.#a:this.#a=this.#t==="win32"&&this.#n===0&&e[0]===""&&e[1]===""&&typeof e[2]=="string"&&!!e[2]&&typeof e[3]=="string"&&!!e[3]}isDrive(){let e=this.#e;return this.#l!==void 0?this.#l:this.#l=this.#t==="win32"&&this.#n===0&&this.length>1&&typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0])}isAbsolute(){let e=this.#e;return this.#c!==void 0?this.#c:this.#c=e[0]===""&&e.length>1||this.isDrive()||this.isUNC()}root(){let e=this.#e[0];return typeof e=="string"&&this.isAbsolute()&&this.#n===0?e:""}checkFollowGlobstar(){return!(this.#n===0||!this.isGlobstar()||!this.#o)}markFollowGlobstar(){return this.#n===0||!this.isGlobstar()||!this.#o?!1:(this.#o=!1,!0)}};yQ.Pattern=FW});var j_e=g(Vi=>{"use strict";var B_t=Vi&&Vi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Vi,"__esModule",{value:!0});Vi.Minipass=Vi.isWritable=Vi.isReadable=Vi.isStream=void 0;var G_e=typeof process=="object"&&process?process:{stdout:null,stderr:null},$W=require("node:events"),$_e=B_t(require("node:stream")),x_t=require("node:string_decoder"),v_t=o(t=>!!t&&typeof t=="object"&&(t instanceof BQ||t instanceof $_e.default||(0,Vi.isReadable)(t)||(0,Vi.isWritable)(t)),"isStream");Vi.isStream=v_t;var N_t=o(t=>!!t&&typeof t=="object"&&t instanceof $W.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==$_e.default.Writable.prototype.pipe,"isReadable");Vi.isReadable=N_t;var R_t=o(t=>!!t&&typeof t=="object"&&t instanceof $W.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function","isWritable");Vi.isWritable=R_t;var Mu=Symbol("EOF"),Uu=Symbol("maybeEmitEnd"),ff=Symbol("emittedEnd"),EQ=Symbol("emittingEnd"),_I=Symbol("emittedError"),CQ=Symbol("closed"),H_e=Symbol("read"),bQ=Symbol("flush"),z_e=Symbol("flushChunk"),Ja=Symbol("encoding"),qy=Symbol("decoder"),On=Symbol("flowing"),TI=Symbol("paused"),Gy=Symbol("resume"),Ln=Symbol("buffer"),zi=Symbol("pipes"),Fn=Symbol("bufferLength"),UW=Symbol("bufferPush"),wQ=Symbol("bufferShift"),Ai=Symbol("objectMode"),Yr=Symbol("destroyed"),qW=Symbol("error"),GW=Symbol("emitData"),V_e=Symbol("emitEnd"),HW=Symbol("emitEnd2"),El=Symbol("async"),zW=Symbol("abort"),IQ=Symbol("aborted"),DI=Symbol("signal"),Gp=Symbol("dataListeners"),io=Symbol("discarded"),QI=o(t=>Promise.resolve().then(t),"defer"),__t=o(t=>t(),"nodefer"),T_t=o(t=>t==="end"||t==="finish"||t==="prefinish","isEndish"),D_t=o(t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,"isArrayBufferLike"),Q_t=o(t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),"isArrayBufferView"),SQ=class{static{o(this,"Pipe")}src;dest;opts;ondrain;constructor(e,r,n){this.src=e,this.dest=r,this.opts=n,this.ondrain=()=>e[Gy](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},VW=class extends SQ{static{o(this,"PipeProxyErrors")}unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,n){super(e,r,n),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}},k_t=o(t=>!!t.objectMode,"isObjectModeOptions"),P_t=o(t=>!t.objectMode&&!!t.encoding&&t.encoding!=="buffer","isEncodingOptions"),BQ=class extends $W.EventEmitter{static{o(this,"Minipass")}[On]=!1;[TI]=!1;[zi]=[];[Ln]=[];[Ai];[Ja];[El];[qy];[Mu]=!1;[ff]=!1;[EQ]=!1;[CQ]=!1;[_I]=null;[Fn]=0;[Yr]=!1;[DI];[IQ]=!1;[Gp]=0;[io]=!1;writable=!0;readable=!0;constructor(...e){let r=e[0]||{};if(super(),r.objectMode&&typeof r.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");k_t(r)?(this[Ai]=!0,this[Ja]=null):P_t(r)?(this[Ja]=r.encoding,this[Ai]=!1):(this[Ai]=!1,this[Ja]=null),this[El]=!!r.async,this[qy]=this[Ja]?new x_t.StringDecoder(this[Ja]):null,r&&r.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:o(()=>this[Ln],"get")}),r&&r.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:o(()=>this[zi],"get")});let{signal:n}=r;n&&(this[DI]=n,n.aborted?this[zW]():n.addEventListener("abort",()=>this[zW]()))}get bufferLength(){return this[Fn]}get encoding(){return this[Ja]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[Ai]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[El]}set async(e){this[El]=this[El]||!!e}[zW](){this[IQ]=!0,this.emit("abort",this[DI]?.reason),this.destroy(this[DI]?.reason)}get aborted(){return this[IQ]}set aborted(e){}write(e,r,n){if(this[IQ])return!1;if(this[Mu])throw new Error("write after end");if(this[Yr])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[El]?QI:__t;if(!this[Ai]&&!Buffer.isBuffer(e)){if(Q_t(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(D_t(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[Ai]?(this[On]&&this[Fn]!==0&&this[bQ](!0),this[On]?this.emit("data",e):this[UW](e),this[Fn]!==0&&this.emit("readable"),n&&i(n),this[On]):e.length?(typeof e=="string"&&!(r===this[Ja]&&!this[qy]?.lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ja]&&(e=this[qy].write(e)),this[On]&&this[Fn]!==0&&this[bQ](!0),this[On]?this.emit("data",e):this[UW](e),this[Fn]!==0&&this.emit("readable"),n&&i(n),this[On]):(this[Fn]!==0&&this.emit("readable"),n&&i(n),this[On])}read(e){if(this[Yr])return null;if(this[io]=!1,this[Fn]===0||e===0||e&&e>this[Fn])return this[Uu](),null;this[Ai]&&(e=null),this[Ln].length>1&&!this[Ai]&&(this[Ln]=[this[Ja]?this[Ln].join(""):Buffer.concat(this[Ln],this[Fn])]);let r=this[H_e](e||null,this[Ln][0]);return this[Uu](),r}[H_e](e,r){if(this[Ai])this[wQ]();else{let n=r;e===n.length||e===null?this[wQ]():typeof n=="string"?(this[Ln][0]=n.slice(e),r=n.slice(0,e),this[Fn]-=e):(this[Ln][0]=n.subarray(e),r=n.subarray(0,e),this[Fn]-=e)}return this.emit("data",r),!this[Ln].length&&!this[Mu]&&this.emit("drain"),r}end(e,r,n){return typeof e=="function"&&(n=e,e=void 0),typeof r=="function"&&(n=r,r="utf8"),e!==void 0&&this.write(e,r),n&&this.once("end",n),this[Mu]=!0,this.writable=!1,(this[On]||!this[TI])&&this[Uu](),this}[Gy](){this[Yr]||(!this[Gp]&&!this[zi].length&&(this[io]=!0),this[TI]=!1,this[On]=!0,this.emit("resume"),this[Ln].length?this[bQ]():this[Mu]?this[Uu]():this.emit("drain"))}resume(){return this[Gy]()}pause(){this[On]=!1,this[TI]=!0,this[io]=!1}get destroyed(){return this[Yr]}get flowing(){return this[On]}get paused(){return this[TI]}[UW](e){this[Ai]?this[Fn]+=1:this[Fn]+=e.length,this[Ln].push(e)}[wQ](){return this[Ai]?this[Fn]-=1:this[Fn]-=this[Ln][0].length,this[Ln].shift()}[bQ](e=!1){do;while(this[z_e](this[wQ]())&&this[Ln].length);!e&&!this[Ln].length&&!this[Mu]&&this.emit("drain")}[z_e](e){return this.emit("data",e),this[On]}pipe(e,r){if(this[Yr])return e;this[io]=!1;let n=this[ff];return r=r||{},e===G_e.stdout||e===G_e.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&e.end():(this[zi].push(r.proxyErrors?new VW(this,e,r):new SQ(this,e,r)),this[El]?QI(()=>this[Gy]()):this[Gy]()),e}unpipe(e){let r=this[zi].find(n=>n.dest===e);r&&(this[zi].length===1?(this[On]&&this[Gp]===0&&(this[On]=!1),this[zi]=[]):this[zi].splice(this[zi].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let n=super.on(e,r);if(e==="data")this[io]=!1,this[Gp]++,!this[zi].length&&!this[On]&&this[Gy]();else if(e==="readable"&&this[Fn]!==0)super.emit("readable");else if(T_t(e)&&this[ff])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[_I]){let i=r;this[El]?QI(()=>i.call(this,this[_I])):i.call(this,this[_I])}return n}removeListener(e,r){return this.off(e,r)}off(e,r){let n=super.off(e,r);return e==="data"&&(this[Gp]=this.listeners("data").length,this[Gp]===0&&!this[io]&&!this[zi].length&&(this[On]=!1)),n}removeAllListeners(e){let r=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[Gp]=0,!this[io]&&!this[zi].length&&(this[On]=!1)),r}get emittedEnd(){return this[ff]}[Uu](){!this[EQ]&&!this[ff]&&!this[Yr]&&this[Ln].length===0&&this[Mu]&&(this[EQ]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[CQ]&&this.emit("close"),this[EQ]=!1)}emit(e,...r){let n=r[0];if(e!=="error"&&e!=="close"&&e!==Yr&&this[Yr])return!1;if(e==="data")return!this[Ai]&&!n?!1:this[El]?(QI(()=>this[GW](n)),!0):this[GW](n);if(e==="end")return this[V_e]();if(e==="close"){if(this[CQ]=!0,!this[ff]&&!this[Yr])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[_I]=n,super.emit(qW,n);let s=!this[DI]||this.listeners("error").length?super.emit("error",n):!1;return this[Uu](),s}else if(e==="resume"){let s=super.emit("resume");return this[Uu](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,...r);return this[Uu](),i}[GW](e){for(let n of this[zi])n.dest.write(e)===!1&&this.pause();let r=this[io]?!1:super.emit("data",e);return this[Uu](),r}[V_e](){return this[ff]?!1:(this[ff]=!0,this.readable=!1,this[El]?(QI(()=>this[HW]()),!0):this[HW]())}[HW](){if(this[qy]){let r=this[qy].end();if(r){for(let n of this[zi])n.dest.write(r);this[io]||super.emit("data",r)}}for(let r of this[zi])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[Ai]||(e.dataLength=0);let r=this.promise();return this.on("data",n=>{e.push(n),this[Ai]||(e.dataLength+=n.length)}),await r,e}async concat(){if(this[Ai])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[Ja]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,r)=>{this.on(Yr,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[io]=!1;let e=!1,r=o(async()=>(this.pause(),e=!0,{value:void 0,done:!0}),"stop");return{next:o(()=>{if(e)return r();let i=this.read();if(i!==null)return Promise.resolve({done:!1,value:i});if(this[Mu])return r();let s,a,c=o(f=>{this.off("data",l),this.off("end",u),this.off(Yr,d),r(),a(f)},"onerr"),l=o(f=>{this.off("error",c),this.off("end",u),this.off(Yr,d),this.pause(),s({value:f,done:!!this[Mu]})},"ondata"),u=o(()=>{this.off("error",c),this.off("data",l),this.off(Yr,d),r(),s({done:!0,value:void 0})},"onend"),d=o(()=>c(new Error("stream destroyed")),"ondestroy");return new Promise((f,h)=>{a=h,s=f,this.once(Yr,d),this.once("error",c),this.once("end",u),this.once("data",l)})},"next"),throw:r,return:r,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[io]=!1;let e=!1,r=o(()=>(this.pause(),this.off(qW,r),this.off(Yr,r),this.off("end",r),e=!0,{done:!0,value:void 0}),"stop"),n=o(()=>{if(e)return r();let i=this.read();return i===null?r():{done:!1,value:i}},"next");return this.once("end",r),this.once(qW,r),this.once(Yr,r),{next:n,throw:r,return:r,[Symbol.iterator](){return this}}}destroy(e){if(this[Yr])return e?this.emit("error",e):this.emit(Yr),this;this[Yr]=!0,this[io]=!0,this[Ln].length=0,this[Fn]=0;let r=this;return typeof r.close=="function"&&!this[CQ]&&r.close(),e?this.emit("error",e):this.emit(Yr),this}static get isStream(){return Vi.isStream}};Vi.Minipass=BQ});var WW=g(xQ=>{"use strict";Object.defineProperty(xQ,"__esModule",{value:!0});xQ.Ignore=void 0;var W_e=lf(),O_t=MW(),L_t=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",jW=class{static{o(this,"Ignore")}relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:r,nocase:n,noext:i,noglobstar:s,platform:a=L_t}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=a,this.mmopts={dot:!0,nobrace:r,nocase:n,noext:i,noglobstar:s,optimizationLevel:2,platform:a,nocomment:!0,nonegate:!0};for(let c of e)this.add(c)}add(e){let r=new W_e.Minimatch(e,this.mmopts);for(let n=0;n{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.Processor=Cl.SubWalks=Cl.MatchRecord=Cl.HasWalkedCache=void 0;var J_e=lf(),vQ=class t{static{o(this,"HasWalkedCache")}store;constructor(e=new Map){this.store=e}copy(){return new t(new Map(this.store))}hasWalked(e,r){return this.store.get(e.fullpath())?.has(r.globString())}storeWalked(e,r){let n=e.fullpath(),i=this.store.get(n);i?i.add(r.globString()):this.store.set(n,new Set([r.globString()]))}};Cl.HasWalkedCache=vQ;var NQ=class{static{o(this,"MatchRecord")}store=new Map;add(e,r,n){let i=(r?2:0)|(n?1:0),s=this.store.get(e);this.store.set(e,s===void 0?i:i&s)}entries(){return[...this.store.entries()].map(([e,r])=>[e,!!(r&2),!!(r&1)])}};Cl.MatchRecord=NQ;var RQ=class{static{o(this,"SubWalks")}store=new Map;add(e,r){if(!e.canReaddir())return;let n=this.store.get(e);n?n.find(i=>i.globString()===r.globString())||n.push(r):this.store.set(e,[r])}get(e){let r=this.store.get(e);if(!r)throw new Error("attempting to walk unknown path");return r}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return[...this.store.keys()].filter(e=>e.canReaddir())}};Cl.SubWalks=RQ;var JW=class t{static{o(this,"Processor")}hasWalkedCache;matches=new NQ;subwalks=new RQ;patterns;follow;dot;opts;constructor(e,r){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=r?r.copy():new vQ}processPatterns(e,r){this.patterns=r;let n=r.map(i=>[e,i]);for(let[i,s]of n){this.hasWalkedCache.storeWalked(i,s);let a=s.root(),c=s.isAbsolute()&&this.opts.absolute!==!1;if(a){i=i.resolve(a==="/"&&this.opts.root!==void 0?this.opts.root:a);let f=s.rest();if(f)s=f;else{this.matches.add(i,!0,!1);continue}}if(i.isENOENT())continue;let l,u,d=!1;for(;typeof(l=s.pattern())=="string"&&(u=s.rest());)i=i.resolve(l),s=u,d=!0;if(l=s.pattern(),u=s.rest(),d){if(this.hasWalkedCache.hasWalked(i,s))continue;this.hasWalkedCache.storeWalked(i,s)}if(typeof l=="string"){let f=l===".."||l===""||l===".";this.matches.add(i.resolve(l),c,f);continue}else if(l===J_e.GLOBSTAR){(!i.isSymbolicLink()||this.follow||s.checkFollowGlobstar())&&this.subwalks.add(i,s);let f=u?.pattern(),h=u?.rest();if(!u||(f===""||f===".")&&!h)this.matches.add(i,c,f===""||f===".");else if(f===".."){let p=i.parent||i;h?this.hasWalkedCache.hasWalked(p,h)||this.subwalks.add(p,h):this.matches.add(p,c,!0)}}else l instanceof RegExp&&this.subwalks.add(i,s)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new t(this.opts,this.hasWalkedCache)}filterEntries(e,r){let n=this.subwalks.get(e),i=this.child();for(let s of r)for(let a of n){let c=a.isAbsolute(),l=a.pattern(),u=a.rest();l===J_e.GLOBSTAR?i.testGlobstar(s,a,u,c):l instanceof RegExp?i.testRegExp(s,l,u,c):i.testString(s,l,u,c)}return i}testGlobstar(e,r,n,i){if((this.dot||!e.name.startsWith("."))&&(r.hasMore()||this.matches.add(e,i,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,r):e.isSymbolicLink()&&(n&&r.checkFollowGlobstar()?this.subwalks.add(e,n):r.markFollowGlobstar()&&this.subwalks.add(e,r)))),n){let s=n.pattern();if(typeof s=="string"&&s!==".."&&s!==""&&s!==".")this.testString(e,s,n.rest(),i);else if(s===".."){let a=e.parent||e;this.subwalks.add(a,n)}else s instanceof RegExp&&this.testRegExp(e,s,n.rest(),i)}}testRegExp(e,r,n,i){r.test(e.name)&&(n?this.subwalks.add(e,n):this.matches.add(e,i,!1))}testString(e,r,n,i){e.isNamed(r)&&(n?this.subwalks.add(e,n):this.matches.add(e,i,!1))}};Cl.Processor=JW});var Z_e=g(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});hf.GlobStream=hf.GlobWalker=hf.GlobUtil=void 0;var F_t=j_e(),K_e=WW(),X_e=Y_e(),M_t=o((t,e)=>typeof t=="string"?new K_e.Ignore([t],e):Array.isArray(t)?new K_e.Ignore(t,e):t,"makeIgnore"),kI=class{static{o(this,"GlobUtil")}path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#r;#n;signal;maxDepth;includeChildMatches;constructor(e,r,n){if(this.patterns=e,this.path=r,this.opts=n,this.#n=!n.posix&&n.platform==="win32"?"\\":"/",this.includeChildMatches=n.includeChildMatches!==!1,(n.ignore||!this.includeChildMatches)&&(this.#r=M_t(n.ignore??[],n),!this.includeChildMatches&&typeof this.#r.add!="function")){let i="cannot ignore child matches, ignore lacks add() method.";throw new Error(i)}this.maxDepth=n.maxDepth||1/0,n.signal&&(this.signal=n.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#t(e){return this.seen.has(e)||!!this.#r?.ignored?.(e)}#i(e){return!!this.#r?.childrenIgnored?.(e)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let e;for(;!this.paused&&(e=this.#e.shift());)e()}onResume(e){this.signal?.aborted||(this.paused?this.#e.push(e):e())}async matchCheck(e,r){if(r&&this.opts.nodir)return;let n;if(this.opts.realpath){if(n=e.realpathCached()||await e.realpath(),!n)return;e=n}let s=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let a=await s.realpath();a&&(a.isUnknown()||this.opts.stat)&&await a.lstat()}return this.matchCheckTest(s,r)}matchCheckTest(e,r){return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!r||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!e.realpathCached()?.isDirectory())&&!this.#t(e)?e:void 0}matchCheckSync(e,r){if(r&&this.opts.nodir)return;let n;if(this.opts.realpath){if(n=e.realpathCached()||e.realpathSync(),!n)return;e=n}let s=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let a=s.realpathSync();a&&(a?.isUnknown()||this.opts.stat)&&a.lstatSync()}return this.matchCheckTest(s,r)}matchFinish(e,r){if(this.#t(e))return;if(!this.includeChildMatches&&this.#r?.add){let s=`${e.relativePosix()}/**`;this.#r.add(s)}let n=this.opts.absolute===void 0?r:this.opts.absolute;this.seen.add(e);let i=this.opts.mark&&e.isDirectory()?this.#n:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(n){let s=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(s+i)}else{let s=this.opts.posix?e.relativePosix():e.relative(),a=this.opts.dotRelative&&!s.startsWith(".."+this.#n)?"."+this.#n:"";this.matchEmit(s?a+s+i:"."+i)}}async match(e,r,n){let i=await this.matchCheck(e,n);i&&this.matchFinish(i,r)}matchSync(e,r,n){let i=this.matchCheckSync(e,n);i&&this.matchFinish(i,r)}walkCB(e,r,n){this.signal?.aborted&&n(),this.walkCB2(e,r,new X_e.Processor(this.opts),n)}walkCB2(e,r,n,i){if(this.#i(e))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2(e,r,n,i));return}n.processPatterns(e,r);let s=1,a=o(()=>{--s===0&&i()},"next");for(let[c,l,u]of n.matches.entries())this.#t(c)||(s++,this.match(c,l,u).then(()=>a()));for(let c of n.subwalkTargets()){if(this.maxDepth!==1/0&&c.depth()>=this.maxDepth)continue;s++;let l=c.readdirCached();c.calledReaddir()?this.walkCB3(c,l,n,a):c.readdirCB((u,d)=>this.walkCB3(c,d,n,a),!0)}a()}walkCB3(e,r,n,i){n=n.filterEntries(e,r);let s=1,a=o(()=>{--s===0&&i()},"next");for(let[c,l,u]of n.matches.entries())this.#t(c)||(s++,this.match(c,l,u).then(()=>a()));for(let[c,l]of n.subwalks.entries())s++,this.walkCB2(c,l,n.child(),a);a()}walkCBSync(e,r,n){this.signal?.aborted&&n(),this.walkCB2Sync(e,r,new X_e.Processor(this.opts),n)}walkCB2Sync(e,r,n,i){if(this.#i(e))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2Sync(e,r,n,i));return}n.processPatterns(e,r);let s=1,a=o(()=>{--s===0&&i()},"next");for(let[c,l,u]of n.matches.entries())this.#t(c)||this.matchSync(c,l,u);for(let c of n.subwalkTargets()){if(this.maxDepth!==1/0&&c.depth()>=this.maxDepth)continue;s++;let l=c.readdirSync();this.walkCB3Sync(c,l,n,a)}a()}walkCB3Sync(e,r,n,i){n=n.filterEntries(e,r);let s=1,a=o(()=>{--s===0&&i()},"next");for(let[c,l,u]of n.matches.entries())this.#t(c)||this.matchSync(c,l,u);for(let[c,l]of n.subwalks.entries())s++,this.walkCB2Sync(c,l,n.child(),a);a()}};hf.GlobUtil=kI;var YW=class extends kI{static{o(this,"GlobWalker")}matches=new Set;constructor(e,r,n){super(e,r,n)}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((e,r)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?r(this.signal.reason):e(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}};hf.GlobWalker=YW;var KW=class extends kI{static{o(this,"GlobStream")}results;constructor(e,r,n){super(e,r,n),this.results=new F_t.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){let e=this.path;return e.isUnknown()?e.lstat().then(()=>{this.walkCB(e,this.patterns,()=>this.results.end())}):this.walkCB(e,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};hf.GlobStream=KW});var ZW=g(DQ=>{"use strict";Object.defineProperty(DQ,"__esModule",{value:!0});DQ.Glob=void 0;var U_t=lf(),q_t=require("node:url"),_Q=q_e(),G_t=MW(),TQ=Z_e(),H_t=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",XW=class{static{o(this,"Glob")}absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(e,r){if(!r)throw new TypeError("glob options required");if(this.withFileTypes=!!r.withFileTypes,this.signal=r.signal,this.follow=!!r.follow,this.dot=!!r.dot,this.dotRelative=!!r.dotRelative,this.nodir=!!r.nodir,this.mark=!!r.mark,r.cwd?(r.cwd instanceof URL||r.cwd.startsWith("file://"))&&(r.cwd=(0,q_t.fileURLToPath)(r.cwd)):this.cwd="",this.cwd=r.cwd||"",this.root=r.root,this.magicalBraces=!!r.magicalBraces,this.nobrace=!!r.nobrace,this.noext=!!r.noext,this.realpath=!!r.realpath,this.absolute=r.absolute,this.includeChildMatches=r.includeChildMatches!==!1,this.noglobstar=!!r.noglobstar,this.matchBase=!!r.matchBase,this.maxDepth=typeof r.maxDepth=="number"?r.maxDepth:1/0,this.stat=!!r.stat,this.ignore=r.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof e=="string"&&(e=[e]),this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(e=e.map(l=>l.replace(/\\/g,"/"))),this.matchBase){if(r.noglobstar)throw new TypeError("base matching requires globstar");e=e.map(l=>l.includes("/")?l:`./**/${l}`)}if(this.pattern=e,this.platform=r.platform||H_t,this.opts={...r,platform:this.platform},r.scurry){if(this.scurry=r.scurry,r.nocase!==void 0&&r.nocase!==r.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let l=r.platform==="win32"?_Q.PathScurryWin32:r.platform==="darwin"?_Q.PathScurryDarwin:r.platform?_Q.PathScurryPosix:_Q.PathScurry;this.scurry=new l(this.cwd,{nocase:r.nocase,fs:r.fs})}this.nocase=this.scurry.nocase;let n=this.platform==="darwin"||this.platform==="win32",i={...r,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:n,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},s=this.pattern.map(l=>new U_t.Minimatch(l,i)),[a,c]=s.reduce((l,u)=>(l[0].push(...u.set),l[1].push(...u.globParts),l),[[],[]]);this.patterns=a.map((l,u)=>{let d=c[u];if(!d)throw new Error("invalid pattern object");return new G_t.Pattern(l,d,0,this.platform)})}async walk(){return[...await new TQ.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new TQ.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new TQ.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new TQ.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};DQ.Glob=XW});var e9=g(QQ=>{"use strict";Object.defineProperty(QQ,"__esModule",{value:!0});QQ.hasMagic=void 0;var z_t=lf(),V_t=o((t,e={})=>{Array.isArray(t)||(t=[t]);for(let r of t)if(new z_t.Minimatch(r,e).hasMagic())return!0;return!1},"hasMagic");QQ.hasMagic=V_t});var nTe=g(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.glob=mt.sync=mt.iterate=mt.iterateSync=mt.stream=mt.streamSync=mt.Ignore=mt.hasMagic=mt.Glob=mt.unescape=mt.escape=void 0;mt.globStreamSync=PI;mt.globStream=t9;mt.globSync=r9;mt.globIterateSync=OI;mt.globIterate=n9;var eTe=lf(),Hp=ZW(),$_t=e9(),rTe=lf();Object.defineProperty(mt,"escape",{enumerable:!0,get:o(function(){return rTe.escape},"get")});Object.defineProperty(mt,"unescape",{enumerable:!0,get:o(function(){return rTe.unescape},"get")});var j_t=ZW();Object.defineProperty(mt,"Glob",{enumerable:!0,get:o(function(){return j_t.Glob},"get")});var W_t=e9();Object.defineProperty(mt,"hasMagic",{enumerable:!0,get:o(function(){return W_t.hasMagic},"get")});var J_t=WW();Object.defineProperty(mt,"Ignore",{enumerable:!0,get:o(function(){return J_t.Ignore},"get")});function PI(t,e={}){return new Hp.Glob(t,e).streamSync()}o(PI,"globStreamSync");function t9(t,e={}){return new Hp.Glob(t,e).stream()}o(t9,"globStream");function r9(t,e={}){return new Hp.Glob(t,e).walkSync()}o(r9,"globSync");async function tTe(t,e={}){return new Hp.Glob(t,e).walk()}o(tTe,"glob_");function OI(t,e={}){return new Hp.Glob(t,e).iterateSync()}o(OI,"globIterateSync");function n9(t,e={}){return new Hp.Glob(t,e).iterate()}o(n9,"globIterate");mt.streamSync=PI;mt.stream=Object.assign(t9,{sync:PI});mt.iterateSync=OI;mt.iterate=Object.assign(n9,{sync:OI});mt.sync=Object.assign(r9,{stream:PI,iterate:OI});mt.glob=Object.assign(tTe,{glob:tTe,globSync:r9,sync:mt.sync,globStream:t9,stream:mt.stream,globStreamSync:PI,streamSync:mt.streamSync,globIterate:n9,iterate:mt.iterate,globIterateSync:OI,iterateSync:mt.iterateSync,Glob:Hp.Glob,hasMagic:$_t.hasMagic,escape:eTe.escape,unescape:eTe.unescape});mt.glob.glob=mt.glob});var aTe=g((Xxr,oTe)=>{var sTe=I8(),Hy=require("path"),i9=INe(),Y_t=FRe(),K_t=JRe(),X_t=r_e(),Z_t=nTe(),zp=oTe.exports={},iTe=/[\/\\]/g,eTt=o(function(t,e){var r=[];return i9(t).forEach(function(n){var i=n.indexOf("!")===0;i&&(n=n.slice(1));var s=e(n);i?r=Y_t(r,s):r=K_t(r,s)}),r},"processPatterns");zp.exists=function(){var t=Hy.join.apply(Hy,arguments);return sTe.existsSync(t)};zp.expand=function(...t){var e=X_t(t[0])?t.shift():{},r=Array.isArray(t[0])?t[0]:t;if(r.length===0)return[];var n=eTt(r,function(i){return Z_t.sync(i,e)});return e.filter&&(n=n.filter(function(i){i=Hy.join(e.cwd||"",i);try{return typeof e.filter=="function"?e.filter(i):sTe.statSync(i)[e.filter]()}catch{return!1}})),n};zp.expandMapping=function(t,e,r){r=Object.assign({rename:o(function(s,a){return Hy.join(s||"",a)},"rename")},r);var n=[],i={};return zp.expand(r,t).forEach(function(s){var a=s;r.flatten&&(a=Hy.basename(a)),r.ext&&(a=a.replace(/(\.[^\/]*)?$/,r.ext));var c=r.rename(e,a,r);r.cwd&&(s=Hy.join(r.cwd,s)),c=c.replace(iTe,"/"),s=s.replace(iTe,"/"),i[c]?i[c].src.push(s):(n.push({src:[s],dest:c}),i[c]=n[n.length-1])}),n};zp.normalizeFilesArray=function(t){var e=[];return t.forEach(function(r){var n;("src"in r||"dest"in r)&&e.push(r)}),e.length===0?[]:(e=_(e).chain().forEach(function(r){!("src"in r)||!r.src||(Array.isArray(r.src)?r.src=i9(r.src):r.src=[r.src])}).map(function(r){var n=Object.assign({},r);if(delete n.src,delete n.dest,r.expand)return zp.expandMapping(r.src,r.dest,n).map(function(s){var a=Object.assign({},r);return a.orig=Object.assign({},r),a.src=s.src,a.dest=s.dest,["expand","cwd","flatten","rename","ext"].forEach(function(c){delete a[c]}),a});var i=Object.assign({},r);return i.orig=Object.assign({},r),"src"in i&&Object.defineProperty(i,"src",{enumerable:!0,get:o(function s(){var a;return"result"in s||(a=r.src,a=Array.isArray(a)?i9(a):[a],s.result=zp.expand(n,a)),s.result},"fn")}),"dest"in i&&(i.dest=r.dest),i}).flatten().value(),e)}});var zy=g((tvr,uTe)=>{var s9=I8(),cTe=require("path"),tTt=j2(),rTt=QIe(),lTe=j8(),nTt=hBe(),evr=require("stream").Stream,iTt=Fp().PassThrough,so=uTe.exports={};so.file=aTe();so.collectStream=function(t,e){var r=[],n=0;t.on("error",e),t.on("data",function(i){r.push(i),n+=i.length}),t.on("end",function(){var i=Buffer.alloc(n),s=0;r.forEach(function(a){a.copy(i,s),s+=a.length}),e(null,i)})};so.dateify=function(t){return t=t||new Date,t instanceof Date?t=t:typeof t=="string"?t=new Date(t):t=new Date,t};so.defaults=function(t,e,r){var n=arguments;return n[0]=n[0]||{},nTt(...n)};so.isStream=function(t){return tTt(t)};so.lazyReadStream=function(t){return new rTt.Readable(function(){return s9.createReadStream(t)})};so.normalizeInputSource=function(t){return t===null?Buffer.alloc(0):typeof t=="string"?Buffer.from(t):so.isStream(t)?t.pipe(new iTt):t};so.sanitizePath=function(t){return lTe(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};so.trailingSlashIt=function(t){return t.slice(-1)!=="/"?t+"/":t};so.unixifyPath=function(t){return lTe(t,!1).replace(/^\w+:/,"")};so.walkdir=function(t,e,r){var n=[];typeof e=="function"&&(r=e,e=t),s9.readdir(t,function(i,s){var a=0,c,l;if(i)return r(i);o((function u(){if(c=s[a++],!c)return r(null,n);l=cTe.join(t,c),s9.stat(l,function(d,f){n.push({path:l,relative:cTe.relative(e,l).replace(/\\/g,"/"),stats:f}),f&&f.isDirectory()?so.walkdir(l,e,function(h,p){if(h)return r(h);p.forEach(function(m){n.push(m)}),u()}):u()})}),"next")()})}});var pTe=g((fTe,hTe)=>{var sTt=require("util"),oTt={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function dTe(t,e){Error.captureStackTrace(this,this.constructor),this.message=oTt[t]||t,this.code=t,this.data=e}o(dTe,"ArchiverError");sTt.inherits(dTe,Error);fTe=hTe.exports=dTe});var ETe=g((ivr,yTe)=>{var c9=require("fs"),mTe=Iwe(),ATe=Bwe(),o9=require("path"),bl=zy(),aTt=require("util").inherits,kr=pTe(),gTe=Fp().Transform,a9=process.platform==="win32",Rt=o(function(t,e){if(!(this instanceof Rt))return new Rt(t,e);typeof t!="string"&&(e=t,t="zip"),e=this.options=bl.defaults(e,{highWaterMark:1024*1024,statConcurrency:4}),gTe.call(this,e),this._format=!1,this._module=!1,this._pending=0,this._pointer=0,this._entriesCount=0,this._entriesProcessedCount=0,this._fsEntriesTotalBytes=0,this._fsEntriesProcessedBytes=0,this._queue=ATe.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=ATe.queue(this._onStatQueueTask.bind(this),e.statConcurrency),this._statQueue.drain(this._onQueueDrain.bind(this)),this._state={aborted:!1,finalize:!1,finalizing:!1,finalized:!1,modulePiped:!1},this._streams=[]},"Archiver");aTt(Rt,gTe);Rt.prototype._abort=function(){this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle()&&this._shutdown()};Rt.prototype._append=function(t,e){e=e||{};var r={source:null,filepath:t};e.name||(e.name=t),e.sourcePath=t,r.data=e,this._entriesCount++,e.stats&&e.stats instanceof c9.Stats?(r=this._updateQueueTaskWithStats(r,e.stats),r&&(e.stats.size&&(this._fsEntriesTotalBytes+=e.stats.size),this._queue.push(r))):this._statQueue.push(r)};Rt.prototype._finalize=function(){this._state.finalizing||this._state.finalized||this._state.aborted||(this._state.finalizing=!0,this._moduleFinalize(),this._state.finalizing=!1,this._state.finalized=!0)};Rt.prototype._maybeFinalize=function(){return this._state.finalizing||this._state.finalized||this._state.aborted?!1:this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()?(this._finalize(),!0):!1};Rt.prototype._moduleAppend=function(t,e,r){if(this._state.aborted){r();return}this._module.append(t,e,function(n){if(this._task=null,this._state.aborted){this._shutdown();return}if(n){this.emit("error",n),setImmediate(r);return}this.emit("entry",e),this._entriesProcessedCount++,e.stats&&e.stats.size&&(this._fsEntriesProcessedBytes+=e.stats.size),this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}}),setImmediate(r)}.bind(this))};Rt.prototype._moduleFinalize=function(){typeof this._module.finalize=="function"?this._module.finalize():typeof this._module.end=="function"?this._module.end():this.emit("error",new kr("NOENDMETHOD"))};Rt.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0};Rt.prototype._moduleSupports=function(t){return!this._module.supports||!this._module.supports[t]?!1:this._module.supports[t]};Rt.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1};Rt.prototype._normalizeEntryData=function(t,e){t=bl.defaults(t,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:!1}),e&&t.stats===!1&&(t.stats=e);var r=t.type==="directory";return t.name&&(typeof t.prefix=="string"&&t.prefix!==""&&(t.name=t.prefix+"/"+t.name,t.prefix=null),t.name=bl.sanitizePath(t.name),t.type!=="symlink"&&t.name.slice(-1)==="/"?(r=!0,t.type="directory"):r&&(t.name+="/")),typeof t.mode=="number"?a9?t.mode&=511:t.mode&=4095:t.stats&&t.mode===null?(a9?t.mode=t.stats.mode&511:t.mode=t.stats.mode&4095,a9&&r&&(t.mode=493)):t.mode===null&&(t.mode=r?493:420),t.stats&&t.date===null?t.date=t.stats.mtime:t.date=bl.dateify(t.date),t};Rt.prototype._onModuleError=function(t){this.emit("error",t)};Rt.prototype._onQueueDrain=function(){this._state.finalizing||this._state.finalized||this._state.aborted||this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize()};Rt.prototype._onQueueTask=function(t,e){var r=o(()=>{t.data.callback&&t.data.callback(),e()},"fullCallback");if(this._state.finalizing||this._state.finalized||this._state.aborted){r();return}this._task=t,this._moduleAppend(t.source,t.data,r)};Rt.prototype._onStatQueueTask=function(t,e){if(this._state.finalizing||this._state.finalized||this._state.aborted){e();return}c9.lstat(t.filepath,function(r,n){if(this._state.aborted){setImmediate(e);return}if(r){this._entriesCount--,this.emit("warning",r),setImmediate(e);return}t=this._updateQueueTaskWithStats(t,n),t&&(n.size&&(this._fsEntriesTotalBytes+=n.size),this._queue.push(t)),setImmediate(e)}.bind(this))};Rt.prototype._shutdown=function(){this._moduleUnpipe(),this.end()};Rt.prototype._transform=function(t,e,r){t&&(this._pointer+=t.length),r(null,t)};Rt.prototype._updateQueueTaskWithStats=function(t,e){if(e.isFile())t.data.type="file",t.data.sourceType="stream",t.source=bl.lazyReadStream(t.filepath);else if(e.isDirectory()&&this._moduleSupports("directory"))t.data.name=bl.trailingSlashIt(t.data.name),t.data.type="directory",t.data.sourcePath=bl.trailingSlashIt(t.filepath),t.data.sourceType="buffer",t.source=Buffer.concat([]);else if(e.isSymbolicLink()&&this._moduleSupports("symlink")){var r=c9.readlinkSync(t.filepath),n=o9.dirname(t.filepath);t.data.type="symlink",t.data.linkname=o9.relative(n,o9.resolve(n,r)),t.data.sourceType="buffer",t.source=Buffer.concat([])}else return e.isDirectory()?this.emit("warning",new kr("DIRECTORYNOTSUPPORTED",t.data)):e.isSymbolicLink()?this.emit("warning",new kr("SYMLINKNOTSUPPORTED",t.data)):this.emit("warning",new kr("ENTRYNOTSUPPORTED",t.data)),null;return t.data=this._normalizeEntryData(t.data,e),t};Rt.prototype.abort=function(){return this._state.aborted||this._state.finalized?this:(this._abort(),this)};Rt.prototype.append=function(t,e){if(this._state.finalize||this._state.aborted)return this.emit("error",new kr("QUEUECLOSED")),this;if(e=this._normalizeEntryData(e),typeof e.name!="string"||e.name.length===0)return this.emit("error",new kr("ENTRYNAMEREQUIRED")),this;if(e.type==="directory"&&!this._moduleSupports("directory"))return this.emit("error",new kr("DIRECTORYNOTSUPPORTED",{name:e.name})),this;if(t=bl.normalizeInputSource(t),Buffer.isBuffer(t))e.sourceType="buffer";else if(bl.isStream(t))e.sourceType="stream";else return this.emit("error",new kr("INPUTSTEAMBUFFERREQUIRED",{name:e.name})),this;return this._entriesCount++,this._queue.push({data:e,source:t}),this};Rt.prototype.directory=function(t,e,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new kr("QUEUECLOSED")),this;if(typeof t!="string"||t.length===0)return this.emit("error",new kr("DIRECTORYDIRPATHREQUIRED")),this;this._pending++,e===!1?e="":typeof e!="string"&&(e=t);var n=!1;typeof r=="function"?(n=r,r={}):typeof r!="object"&&(r={});var i={stat:!0,dot:!0};function s(){this._pending--,this._maybeFinalize()}o(s,"onGlobEnd");function a(u){this.emit("error",u)}o(a,"onGlobError");function c(u){l.pause();var d=!1,f=Object.assign({},r);f.name=u.relative,f.prefix=e,f.stats=u.stat,f.callback=l.resume.bind(l);try{if(n){if(f=n(f),f===!1)d=!0;else if(typeof f!="object")throw new kr("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:t})}}catch(h){this.emit("error",h);return}if(d){l.resume();return}this._append(u.absolute,f)}o(c,"onGlobMatch");var l=mTe(t,i);return l.on("error",a.bind(this)),l.on("match",c.bind(this)),l.on("end",s.bind(this)),this};Rt.prototype.file=function(t,e){return this._state.finalize||this._state.aborted?(this.emit("error",new kr("QUEUECLOSED")),this):typeof t!="string"||t.length===0?(this.emit("error",new kr("FILEFILEPATHREQUIRED")),this):(this._append(t,e),this)};Rt.prototype.glob=function(t,e,r){this._pending++,e=bl.defaults(e,{stat:!0,pattern:t});function n(){this._pending--,this._maybeFinalize()}o(n,"onGlobEnd");function i(c){this.emit("error",c)}o(i,"onGlobError");function s(c){a.pause();var l=Object.assign({},r);l.callback=a.resume.bind(a),l.stats=c.stat,l.name=c.relative,this._append(c.absolute,l)}o(s,"onGlobMatch");var a=mTe(e.cwd||".",e);return a.on("error",i.bind(this)),a.on("match",s.bind(this)),a.on("end",n.bind(this)),this};Rt.prototype.finalize=function(){if(this._state.aborted){var t=new kr("ABORTED");return this.emit("error",t),Promise.reject(t)}if(this._state.finalize){var e=new kr("FINALIZING");return this.emit("error",e),Promise.reject(e)}this._state.finalize=!0,this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize();var r=this;return new Promise(function(n,i){var s;r._module.on("end",function(){s||n()}),r._module.on("error",function(a){s=!0,i(a)})})};Rt.prototype.setFormat=function(t){return this._format?(this.emit("error",new kr("FORMATSET")),this):(this._format=t,this)};Rt.prototype.setModule=function(t){return this._state.aborted?(this.emit("error",new kr("ABORTED")),this):this._state.module?(this.emit("error",new kr("MODULESET")),this):(this._module=t,this._modulePipe(),this)};Rt.prototype.symlink=function(t,e,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new kr("QUEUECLOSED")),this;if(typeof t!="string"||t.length===0)return this.emit("error",new kr("SYMLINKFILEPATHREQUIRED")),this;if(typeof e!="string"||e.length===0)return this.emit("error",new kr("SYMLINKTARGETREQUIRED",{filepath:t})),this;if(!this._moduleSupports("symlink"))return this.emit("error",new kr("SYMLINKNOTSUPPORTED",{filepath:t})),this;var n={};return n.type="symlink",n.name=t.replace(/\\/g,"/"),n.linkname=e.replace(/\\/g,"/"),n.sourceType="buffer",typeof r=="number"&&(n.mode=r),this._entriesCount++,this._queue.push({data:n,source:Buffer.concat([])}),this};Rt.prototype.pointer=function(){return this._pointer};Rt.prototype.use=function(t){return this._streams.push(t),this};yTe.exports=Rt});var PQ=g((ovr,CTe)=>{var kQ=CTe.exports=function(){};kQ.prototype.getName=function(){};kQ.prototype.getSize=function(){};kQ.prototype.getLastModifiedDate=function(){};kQ.prototype.isDirectory=function(){}});var OQ=g((avr,bTe)=>{var ia=bTe.exports={};ia.dateToDos=function(t,e){e=e||!1;var r=e?t.getFullYear():t.getUTCFullYear();if(r<1980)return 2162688;if(r>=2044)return 2141175677;var n={year:r,month:e?t.getMonth():t.getUTCMonth(),date:e?t.getDate():t.getUTCDate(),hours:e?t.getHours():t.getUTCHours(),minutes:e?t.getMinutes():t.getUTCMinutes(),seconds:e?t.getSeconds():t.getUTCSeconds()};return n.year-1980<<25|n.month+1<<21|n.date<<16|n.hours<<11|n.minutes<<5|n.seconds/2};ia.dosToDate=function(t){return new Date((t>>25&127)+1980,(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(t&31)<<1)};ia.fromDosTime=function(t){return ia.dosToDate(t.readUInt32LE(0))};ia.getEightBytes=function(t){var e=Buffer.alloc(8);return e.writeUInt32LE(t%4294967296,0),e.writeUInt32LE(t/4294967296|0,4),e};ia.getShortBytes=function(t){var e=Buffer.alloc(2);return e.writeUInt16LE((t&65535)>>>0,0),e};ia.getShortBytesValue=function(t,e){return t.readUInt16LE(e)};ia.getLongBytes=function(t){var e=Buffer.alloc(4);return e.writeUInt32LE((t&4294967295)>>>0,0),e};ia.getLongBytesValue=function(t,e){return t.readUInt32LE(e)};ia.toDosTime=function(t){return ia.getLongBytes(ia.dateToDos(t))}});var l9=g((cvr,vTe)=>{var wTe=OQ(),ITe=8,STe=1,cTt=4,lTt=2,BTe=64,xTe=2048,Zn=vTe.exports=function(){return this instanceof Zn?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new Zn};Zn.prototype.encode=function(){return wTe.getShortBytes((this.descriptor?ITe:0)|(this.utf8?xTe:0)|(this.encryption?STe:0)|(this.strongEncryption?BTe:0))};Zn.prototype.parse=function(t,e){var r=wTe.getShortBytesValue(t,e),n=new Zn;return n.useDataDescriptor((r&ITe)!==0),n.useUTF8ForNames((r&xTe)!==0),n.useStrongEncryption((r&BTe)!==0),n.useEncryption((r&STe)!==0),n.setSlidingDictionarySize((r&lTt)!==0?8192:4096),n.setNumberOfShannonFanoTrees((r&cTt)!==0?3:2),n};Zn.prototype.setNumberOfShannonFanoTrees=function(t){this.numberOfShannonFanoTrees=t};Zn.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};Zn.prototype.setSlidingDictionarySize=function(t){this.slidingDictionarySize=t};Zn.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};Zn.prototype.useDataDescriptor=function(t){this.descriptor=t};Zn.prototype.usesDataDescriptor=function(){return this.descriptor};Zn.prototype.useEncryption=function(t){this.encryption=t};Zn.prototype.usesEncryption=function(){return this.encryption};Zn.prototype.useStrongEncryption=function(t){this.strongEncryption=t};Zn.prototype.usesStrongEncryption=function(){return this.strongEncryption};Zn.prototype.useUTF8ForNames=function(t){this.utf8=t};Zn.prototype.usesUTF8ForNames=function(){return this.utf8}});var RTe=g((lvr,NTe)=>{NTe.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}});var u9=g((uvr,_Te)=>{_Te.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from(Array(2)),LONG:4,LONG_ZERO:Buffer.from(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}});var d9=g((dvr,PTe)=>{var uTt=require("util").inherits,dTt=j8(),DTe=PQ(),QTe=l9(),TTe=RTe(),$i=u9(),kTe=OQ(),ot=PTe.exports=function(t){if(!(this instanceof ot))return new ot(t);DTe.call(this),this.platform=$i.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new QTe,this.crc=0,this.time=-1,this.minver=$i.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,t&&this.setName(t)};uTt(ot,DTe);ot.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};ot.prototype.getComment=function(){return this.comment!==null?this.comment:""};ot.prototype.getCompressedSize=function(){return this.csize};ot.prototype.getCrc=function(){return this.crc};ot.prototype.getExternalAttributes=function(){return this.exattr};ot.prototype.getExtra=function(){return this.extra!==null?this.extra:$i.EMPTY};ot.prototype.getGeneralPurposeBit=function(){return this.gpb};ot.prototype.getInternalAttributes=function(){return this.inattr};ot.prototype.getLastModifiedDate=function(){return this.getTime()};ot.prototype.getLocalFileDataExtra=function(){return this.getExtra()};ot.prototype.getMethod=function(){return this.method};ot.prototype.getName=function(){return this.name};ot.prototype.getPlatform=function(){return this.platform};ot.prototype.getSize=function(){return this.size};ot.prototype.getTime=function(){return this.time!==-1?kTe.dosToDate(this.time):-1};ot.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};ot.prototype.getUnixMode=function(){return this.platform!==$i.PLATFORM_UNIX?0:this.getExternalAttributes()>>$i.SHORT_SHIFT&$i.SHORT_MASK};ot.prototype.getVersionNeededToExtract=function(){return this.minver};ot.prototype.setComment=function(t){Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=t};ot.prototype.setCompressedSize=function(t){if(t<0)throw new Error("invalid entry compressed size");this.csize=t};ot.prototype.setCrc=function(t){if(t<0)throw new Error("invalid entry crc32");this.crc=t};ot.prototype.setExternalAttributes=function(t){this.exattr=t>>>0};ot.prototype.setExtra=function(t){this.extra=t};ot.prototype.setGeneralPurposeBit=function(t){if(!(t instanceof QTe))throw new Error("invalid entry GeneralPurposeBit");this.gpb=t};ot.prototype.setInternalAttributes=function(t){this.inattr=t};ot.prototype.setMethod=function(t){if(t<0)throw new Error("invalid entry compression method");this.method=t};ot.prototype.setName=function(t,e=!1){t=dTt(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),e&&(t=`/${t}`),Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=t};ot.prototype.setPlatform=function(t){this.platform=t};ot.prototype.setSize=function(t){if(t<0)throw new Error("invalid entry size");this.size=t};ot.prototype.setTime=function(t,e){if(!(t instanceof Date))throw new Error("invalid entry time");this.time=kTe.dateToDos(t,e)};ot.prototype.setUnixMode=function(t){t|=this.isDirectory()?$i.S_IFDIR:$i.S_IFREG;var e=0;e|=t<<$i.SHORT_SHIFT|(this.isDirectory()?$i.S_DOS_D:$i.S_DOS_A),this.setExternalAttributes(e),this.mode=t&$i.MODE_MASK,this.platform=$i.PLATFORM_UNIX};ot.prototype.setVersionNeededToExtract=function(t){this.minver=t};ot.prototype.isDirectory=function(){return this.getName().slice(-1)==="/"};ot.prototype.isUnixSymlink=function(){return(this.getUnixMode()&TTe.FILE_TYPE_FLAG)===TTe.LINK_FLAG};ot.prototype.isZip64=function(){return this.csize>$i.ZIP64_MAGIC||this.size>$i.ZIP64_MAGIC}});var f9=g((hvr,OTe)=>{var fvr=require("stream").Stream,fTt=Fp().PassThrough,hTt=j2(),pTt=OTe.exports={};pTt.normalizeInputSource=function(t){if(t===null)return Buffer.alloc(0);if(typeof t=="string")return Buffer.from(t);if(hTt(t)&&!t._readableState){var e=new fTt;return t.pipe(e),e}return t}});var p9=g((pvr,LTe)=>{var ATt=require("util").inherits,mTt=j2(),h9=Fp().Transform,gTt=PQ(),yTt=f9(),oo=LTe.exports=function(t){if(!(this instanceof oo))return new oo(t);h9.call(this,t),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};ATt(oo,h9);oo.prototype._appendBuffer=function(t,e,r){};oo.prototype._appendStream=function(t,e,r){};oo.prototype._emitErrorCallback=function(t){t&&this.emit("error",t)};oo.prototype._finish=function(t){};oo.prototype._normalizeEntry=function(t){};oo.prototype._transform=function(t,e,r){r(null,t)};oo.prototype.entry=function(t,e,r){if(e=e||null,typeof r!="function"&&(r=this._emitErrorCallback.bind(this)),!(t instanceof gTt)){r(new Error("not a valid instance of ArchiveEntry"));return}if(this._archive.finish||this._archive.finished){r(new Error("unacceptable entry after finish"));return}if(this._archive.processing){r(new Error("already processing an entry"));return}if(this._archive.processing=!0,this._normalizeEntry(t),this._entry=t,e=yTt.normalizeInputSource(e),Buffer.isBuffer(e))this._appendBuffer(t,e,r);else if(mTt(e))this._appendStream(t,e,r);else{this._archive.processing=!1,r(new Error("input source must be valid Stream or Buffer instance"));return}return this};oo.prototype.finish=function(){if(this._archive.processing){this._archive.finish=!0;return}this._finish()};oo.prototype.getBytesWritten=function(){return this.offset};oo.prototype.write=function(t,e){return t&&(this.offset+=t.length),h9.prototype.write.call(this,t,e)}});var LQ=g(A9=>{var FTe;(function(t){typeof DO_NOT_EXPORT_CRC>"u"?typeof A9=="object"?t(A9):typeof define=="function"&&define.amd?define(function(){var e={};return t(e),e}):t(FTe={}):t(FTe={})})(function(t){t.version="1.2.2";function e(){for(var N=0,$=new Array(256),Q=0;Q!=256;++Q)N=Q,N=N&1?-306674912^N>>>1:N>>>1,N=N&1?-306674912^N>>>1:N>>>1,N=N&1?-306674912^N>>>1:N>>>1,N=N&1?-306674912^N>>>1:N>>>1,N=N&1?-306674912^N>>>1:N>>>1,N=N&1?-306674912^N>>>1:N>>>1,N=N&1?-306674912^N>>>1:N>>>1,N=N&1?-306674912^N>>>1:N>>>1,$[Q]=N;return typeof Int32Array<"u"?new Int32Array($):$}o(e,"signed_crc_table");var r=e();function n(N){var $=0,Q=0,H=0,V=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(H=0;H!=256;++H)V[H]=N[H];for(H=0;H!=256;++H)for(Q=N[H],$=256+H;$<4096;$+=256)Q=V[$]=Q>>>8^N[Q&255];var W=[];for(H=1;H!=16;++H)W[H-1]=typeof Int32Array<"u"?V.subarray(H*256,H*256+256):V.slice(H*256,H*256+256);return W}o(n,"slice_by_16_tables");var i=n(r),s=i[0],a=i[1],c=i[2],l=i[3],u=i[4],d=i[5],f=i[6],h=i[7],p=i[8],m=i[9],A=i[10],E=i[11],y=i[12],C=i[13],w=i[14];function B(N,$){for(var Q=$^-1,H=0,V=N.length;H>>8^r[(Q^N.charCodeAt(H++))&255];return~Q}o(B,"crc32_bstr");function P(N,$){for(var Q=$^-1,H=N.length-15,V=0;V>8&255]^y[N[V++]^Q>>16&255]^E[N[V++]^Q>>>24]^A[N[V++]]^m[N[V++]]^p[N[V++]]^h[N[V++]]^f[N[V++]]^d[N[V++]]^u[N[V++]]^l[N[V++]]^c[N[V++]]^a[N[V++]]^s[N[V++]]^r[N[V++]];for(H+=15;V>>8^r[(Q^N[V++])&255];return~Q}o(P,"crc32_buf");function U(N,$){for(var Q=$^-1,H=0,V=N.length,W=0,ue=0;H>>8^r[(Q^W)&255]:W<2048?(Q=Q>>>8^r[(Q^(192|W>>6&31))&255],Q=Q>>>8^r[(Q^(128|W&63))&255]):W>=55296&&W<57344?(W=(W&1023)+64,ue=N.charCodeAt(H++)&1023,Q=Q>>>8^r[(Q^(240|W>>8&7))&255],Q=Q>>>8^r[(Q^(128|W>>2&63))&255],Q=Q>>>8^r[(Q^(128|ue>>6&15|(W&3)<<4))&255],Q=Q>>>8^r[(Q^(128|ue&63))&255]):(Q=Q>>>8^r[(Q^(224|W>>12&15))&255],Q=Q>>>8^r[(Q^(128|W>>6&63))&255],Q=Q>>>8^r[(Q^(128|W&63))&255]);return~Q}o(U,"crc32_str"),t.table=r,t.bstr=B,t.buf=P,t.str=U})});var UTe=g((gvr,MTe)=>{"use strict";var{Transform:ETt}=Fp(),CTt=LQ(),m9=class extends ETt{static{o(this,"CRC32Stream")}constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform(e,r,n){e&&(this.checksum=CTt.buf(e,this.checksum)>>>0,this.rawSize+=e.length),n(null,e)}digest(e){let r=Buffer.allocUnsafe(4);return r.writeUInt32BE(this.checksum>>>0,0),e?r.toString(e):r}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}};MTe.exports=m9});var GTe=g((Evr,qTe)=>{"use strict";var{DeflateRaw:bTt}=require("zlib"),wTt=LQ(),g9=class extends bTt{static{o(this,"DeflateCRC32Stream")}constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0,this.compressedSize=0}push(e,r){return e&&(this.compressedSize+=e.length),super.push(e,r)}_transform(e,r,n){e&&(this.checksum=wTt.buf(e,this.checksum)>>>0,this.rawSize+=e.length),super._transform(e,r,n)}digest(e){let r=Buffer.allocUnsafe(4);return r.writeUInt32BE(this.checksum>>>0,0),e?r.toString(e):r}hex(){return this.digest("hex").toUpperCase()}size(e=!1){return e?this.compressedSize:this.rawSize}};qTe.exports=g9});var y9=g((bvr,HTe)=>{"use strict";HTe.exports={CRC32Stream:UTe(),DeflateCRC32Stream:GTe()}});var $Te=g((Bvr,VTe)=>{var ITt=require("util").inherits,STt=LQ(),{CRC32Stream:BTt}=y9(),{DeflateCRC32Stream:xTt}=y9(),zTe=p9(),wvr=d9(),Ivr=l9(),tt=u9(),Svr=f9(),Qe=OQ(),Mn=VTe.exports=function(t){if(!(this instanceof Mn))return new Mn(t);t=this.options=this._defaults(t),zTe.call(this,t),this._entry=null,this._entries=[],this._archive={centralLength:0,centralOffset:0,comment:"",finish:!1,finished:!1,processing:!1,forceZip64:t.forceZip64,forceLocalTime:t.forceLocalTime}};ITt(Mn,zTe);Mn.prototype._afterAppend=function(t){this._entries.push(t),t.getGeneralPurposeBit().usesDataDescriptor()&&this._writeDataDescriptor(t),this._archive.processing=!1,this._entry=null,this._archive.finish&&!this._archive.finished&&this._finish()};Mn.prototype._appendBuffer=function(t,e,r){e.length===0&&t.setMethod(tt.METHOD_STORED);var n=t.getMethod();if(n===tt.METHOD_STORED&&(t.setSize(e.length),t.setCompressedSize(e.length),t.setCrc(STt.buf(e)>>>0)),this._writeLocalFileHeader(t),n===tt.METHOD_STORED){this.write(e),this._afterAppend(t),r(null,t);return}else if(n===tt.METHOD_DEFLATED){this._smartStream(t,r).end(e);return}else{r(new Error("compression method "+n+" not implemented"));return}};Mn.prototype._appendStream=function(t,e,r){t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(tt.MIN_VERSION_DATA_DESCRIPTOR),this._writeLocalFileHeader(t);var n=this._smartStream(t,r);e.once("error",function(i){n.emit("error",i),n.end()}),e.pipe(n)};Mn.prototype._defaults=function(t){return typeof t!="object"&&(t={}),typeof t.zlib!="object"&&(t.zlib={}),typeof t.zlib.level!="number"&&(t.zlib.level=tt.ZLIB_BEST_SPEED),t.forceZip64=!!t.forceZip64,t.forceLocalTime=!!t.forceLocalTime,t};Mn.prototype._finish=function(){this._archive.centralOffset=this.offset,this._entries.forEach(function(t){this._writeCentralFileHeader(t)}.bind(this)),this._archive.centralLength=this.offset-this._archive.centralOffset,this.isZip64()&&this._writeCentralDirectoryZip64(),this._writeCentralDirectoryEnd(),this._archive.processing=!1,this._archive.finish=!0,this._archive.finished=!0,this.end()};Mn.prototype._normalizeEntry=function(t){t.getMethod()===-1&&t.setMethod(tt.METHOD_DEFLATED),t.getMethod()===tt.METHOD_DEFLATED&&(t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(tt.MIN_VERSION_DATA_DESCRIPTOR)),t.getTime()===-1&&t.setTime(new Date,this._archive.forceLocalTime),t._offsets={file:0,data:0,contents:0}};Mn.prototype._smartStream=function(t,e){var r=t.getMethod()===tt.METHOD_DEFLATED,n=r?new xTt(this.options.zlib):new BTt,i=null;function s(){var a=n.digest().readUInt32BE(0);t.setCrc(a),t.setSize(n.size()),t.setCompressedSize(n.size(!0)),this._afterAppend(t),e(i,t)}return o(s,"handleStuff"),n.once("end",s.bind(this)),n.once("error",function(a){i=a}),n.pipe(this,{end:!1}),n};Mn.prototype._writeCentralDirectoryEnd=function(){var t=this._entries.length,e=this._archive.centralLength,r=this._archive.centralOffset;this.isZip64()&&(t=tt.ZIP64_MAGIC_SHORT,e=tt.ZIP64_MAGIC,r=tt.ZIP64_MAGIC),this.write(Qe.getLongBytes(tt.SIG_EOCD)),this.write(tt.SHORT_ZERO),this.write(tt.SHORT_ZERO),this.write(Qe.getShortBytes(t)),this.write(Qe.getShortBytes(t)),this.write(Qe.getLongBytes(e)),this.write(Qe.getLongBytes(r));var n=this.getComment(),i=Buffer.byteLength(n);this.write(Qe.getShortBytes(i)),this.write(n)};Mn.prototype._writeCentralDirectoryZip64=function(){this.write(Qe.getLongBytes(tt.SIG_ZIP64_EOCD)),this.write(Qe.getEightBytes(44)),this.write(Qe.getShortBytes(tt.MIN_VERSION_ZIP64)),this.write(Qe.getShortBytes(tt.MIN_VERSION_ZIP64)),this.write(tt.LONG_ZERO),this.write(tt.LONG_ZERO),this.write(Qe.getEightBytes(this._entries.length)),this.write(Qe.getEightBytes(this._entries.length)),this.write(Qe.getEightBytes(this._archive.centralLength)),this.write(Qe.getEightBytes(this._archive.centralOffset)),this.write(Qe.getLongBytes(tt.SIG_ZIP64_EOCD_LOC)),this.write(tt.LONG_ZERO),this.write(Qe.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write(Qe.getLongBytes(1))};Mn.prototype._writeCentralFileHeader=function(t){var e=t.getGeneralPurposeBit(),r=t.getMethod(),n=t._offsets.file,i=t.getSize(),s=t.getCompressedSize();if(t.isZip64()||n>tt.ZIP64_MAGIC){i=tt.ZIP64_MAGIC,s=tt.ZIP64_MAGIC,n=tt.ZIP64_MAGIC,t.setVersionNeededToExtract(tt.MIN_VERSION_ZIP64);var a=Buffer.concat([Qe.getShortBytes(tt.ZIP64_EXTRA_ID),Qe.getShortBytes(24),Qe.getEightBytes(t.getSize()),Qe.getEightBytes(t.getCompressedSize()),Qe.getEightBytes(t._offsets.file)],28);t.setExtra(a)}this.write(Qe.getLongBytes(tt.SIG_CFH)),this.write(Qe.getShortBytes(t.getPlatform()<<8|tt.VERSION_MADEBY)),this.write(Qe.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(Qe.getShortBytes(r)),this.write(Qe.getLongBytes(t.getTimeDos())),this.write(Qe.getLongBytes(t.getCrc())),this.write(Qe.getLongBytes(s)),this.write(Qe.getLongBytes(i));var c=t.getName(),l=t.getComment(),u=t.getCentralDirectoryExtra();e.usesUTF8ForNames()&&(c=Buffer.from(c),l=Buffer.from(l)),this.write(Qe.getShortBytes(c.length)),this.write(Qe.getShortBytes(u.length)),this.write(Qe.getShortBytes(l.length)),this.write(tt.SHORT_ZERO),this.write(Qe.getShortBytes(t.getInternalAttributes())),this.write(Qe.getLongBytes(t.getExternalAttributes())),this.write(Qe.getLongBytes(n)),this.write(c),this.write(u),this.write(l)};Mn.prototype._writeDataDescriptor=function(t){this.write(Qe.getLongBytes(tt.SIG_DD)),this.write(Qe.getLongBytes(t.getCrc())),t.isZip64()?(this.write(Qe.getEightBytes(t.getCompressedSize())),this.write(Qe.getEightBytes(t.getSize()))):(this.write(Qe.getLongBytes(t.getCompressedSize())),this.write(Qe.getLongBytes(t.getSize())))};Mn.prototype._writeLocalFileHeader=function(t){var e=t.getGeneralPurposeBit(),r=t.getMethod(),n=t.getName(),i=t.getLocalFileDataExtra();t.isZip64()&&(e.useDataDescriptor(!0),t.setVersionNeededToExtract(tt.MIN_VERSION_ZIP64)),e.usesUTF8ForNames()&&(n=Buffer.from(n)),t._offsets.file=this.offset,this.write(Qe.getLongBytes(tt.SIG_LFH)),this.write(Qe.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(Qe.getShortBytes(r)),this.write(Qe.getLongBytes(t.getTimeDos())),t._offsets.data=this.offset,e.usesDataDescriptor()?(this.write(tt.LONG_ZERO),this.write(tt.LONG_ZERO),this.write(tt.LONG_ZERO)):(this.write(Qe.getLongBytes(t.getCrc())),this.write(Qe.getLongBytes(t.getCompressedSize())),this.write(Qe.getLongBytes(t.getSize()))),this.write(Qe.getShortBytes(n.length)),this.write(Qe.getShortBytes(i.length)),this.write(n),this.write(i),t._offsets.contents=this.offset};Mn.prototype.getComment=function(t){return this._archive.comment!==null?this._archive.comment:""};Mn.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>tt.ZIP64_MAGIC_SHORT||this._archive.centralLength>tt.ZIP64_MAGIC||this._archive.centralOffset>tt.ZIP64_MAGIC};Mn.prototype.setComment=function(t){this._archive.comment=t}});var E9=g((vvr,jTe)=>{jTe.exports={ArchiveEntry:PQ(),ZipArchiveEntry:d9(),ArchiveOutputStream:p9(),ZipArchiveOutputStream:$Te()}});var JTe=g((Nvr,WTe)=>{var vTt=require("util").inherits,b9=E9().ZipArchiveOutputStream,NTt=E9().ZipArchiveEntry,C9=zy(),Vy=WTe.exports=function(t){if(!(this instanceof Vy))return new Vy(t);t=this.options=t||{},t.zlib=t.zlib||{},b9.call(this,t),typeof t.level=="number"&&t.level>=0&&(t.zlib.level=t.level,delete t.level),!t.forceZip64&&typeof t.zlib.level=="number"&&t.zlib.level===0&&(t.store=!0),t.namePrependSlash=t.namePrependSlash||!1,t.comment&&t.comment.length>0&&this.setComment(t.comment)};vTt(Vy,b9);Vy.prototype._normalizeFileData=function(t){t=C9.defaults(t,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var e=t.type==="directory",r=t.type==="symlink";return t.name&&(t.name=C9.sanitizePath(t.name),!r&&t.name.slice(-1)==="/"?(e=!0,t.type="directory"):e&&(t.name+="/")),(e||r)&&(t.store=!0),t.date=C9.dateify(t.date),t};Vy.prototype.entry=function(t,e,r){if(typeof r!="function"&&(r=this._emitErrorCallback.bind(this)),e=this._normalizeFileData(e),e.type!=="file"&&e.type!=="directory"&&e.type!=="symlink"){r(new Error(e.type+" entries not currently supported"));return}if(typeof e.name!="string"||e.name.length===0){r(new Error("entry name must be a non-empty string value"));return}if(e.type==="symlink"&&typeof e.linkname!="string"){r(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var n=new NTt(e.name);return n.setTime(e.date,this.options.forceLocalTime),e.namePrependSlash&&n.setName(e.name,!0),e.store&&n.setMethod(0),e.comment.length>0&&n.setComment(e.comment),e.type==="symlink"&&typeof e.mode!="number"&&(e.mode=40960),typeof e.mode=="number"&&(e.type==="symlink"&&(e.mode|=40960),n.setUnixMode(e.mode)),e.type==="symlink"&&typeof e.linkname=="string"&&(t=Buffer.from(e.linkname)),b9.prototype.entry.call(this,n,t,r)};Vy.prototype.finalize=function(){this.finish()}});var KTe=g((Rvr,YTe)=>{var RTt=JTe(),_Tt=zy(),pf=o(function(t){if(!(this instanceof pf))return new pf(t);t=this.options=_Tt.defaults(t,{comment:"",forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new RTt(t)},"Zip");pf.prototype.append=function(t,e,r){this.engine.entry(t,e,r)};pf.prototype.finalize=function(){this.engine.finalize()};pf.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};pf.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};pf.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};YTe.exports=pf});var ZTe=g((Tvr,XTe)=>{XTe.exports=typeof queueMicrotask=="function"?queueMicrotask:t=>Promise.resolve().then(t)});var t2e=g((Dvr,e2e)=>{e2e.exports=typeof process<"u"&&typeof process.nextTick=="function"?process.nextTick.bind(process):ZTe()});var n2e=g((kvr,r2e)=>{r2e.exports=class{static{o(this,"FixedFIFO")}constructor(e){if(!(e>0)||(e-1&e)!==0)throw new Error("Max size for a FixedFIFO should be a power of two");this.buffer=new Array(e),this.mask=e-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(e){return this.buffer[this.top]!==void 0?!1:(this.buffer[this.top]=e,this.top=this.top+1&this.mask,!0)}shift(){let e=this.buffer[this.btm];if(e!==void 0)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,e}peek(){return this.buffer[this.btm]}isEmpty(){return this.buffer[this.btm]===void 0}}});var w9=g((Lvr,s2e)=>{var i2e=n2e();s2e.exports=class{static{o(this,"FastFIFO")}constructor(e){this.hwm=e||16,this.head=new i2e(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(e){if(this.length++,!this.head.push(e)){let r=this.head;this.head=r.next=new i2e(2*this.head.buffer.length),this.head.push(e)}}shift(){this.length!==0&&this.length--;let e=this.tail.shift();if(e===void 0&&this.tail.next){let r=this.tail.next;return this.tail.next=null,this.tail=r,this.tail.shift()}return e}peek(){let e=this.tail.peek();return e===void 0&&this.tail.next?this.tail.next.peek():e}isEmpty(){return this.length===0}}});var F9=g((Mvr,N2e)=>{var{EventEmitter:TTt}=require("events"),HQ=new Error("Stream was destroyed"),I9=new Error("Premature close"),u2e=t2e(),d2e=w9(),Pr=(1<<28)-1,Jp=1,_9=2,Vp=4,LI=8,f2e=Pr^Jp,DTt=Pr^_9,HI=16,FI=32,Yy=64,Af=128,zI=256,T9=512,$p=1024,S9=2048,D9=4096,Q9=8192,Ya=16384,$y=32768,zQ=65536,jp=131072,h2e=zI|T9,QTt=HI|zQ,kTt=Yy|HI,PTt=D9|Af,k9=zI|jp,OTt=Pr^HI,LTt=Pr^Yy,FTt=Pr^(Yy|zQ),MTt=Pr^zQ,UTt=Pr^zI,qTt=Pr^(Af|Q9),GTt=Pr^$p,o2e=Pr^h2e,p2e=Pr^$y,HTt=Pr^FI,A2e=Pr^jp,zTt=Pr^k9,mf=1<<18,Wy=2<<18,VI=4<<18,Wp=8<<18,$I=16<<18,Yp=32<<18,B9=64<<18,jy=128<<18,P9=256<<18,Jy=512<<18,m2e=Pr^(mf|P9),g2e=Pr^VI,VTt=Pr^Jy,$Tt=Pr^$I,jTt=Pr^Wp,y2e=Pr^jy,WTt=Pr^Wy,MI=HI|mf,E2e=Pr^MI,O9=Ya|Yp,qu=Vp|LI|_9,ao=qu|Jp,C2e=qu|O9,JTt=g2e<t,L9=jy|$y,YTt=L9&E2e,b2e=ao|YTt,KTt=ao|$p|Ya,a2e=ao|Ya|Af,XTt=ao|$p|Af,ZTt=ao|D9|Af|Q9,e2t=ao|HI|$p|Ya|zQ|jp,t2t=qu|$p|Ya,r2t=FI|ao|$y|Yy,n2t=ao|Jy|Yp,i2t=Wp|$I,w2e=Wp|mf,s2t=Wp|$I|ao|mf,c2e=ao|mf|Wp,o2t=VI|mf,a2t=mf|P9,c2t=ao|Jy|w2e|Yp,l2t=$I|qu|Jy|Yp,u2t=Wy|ao|jy|VI,FQ=Symbol.asyncIterator||Symbol("asyncIterator"),MQ=class{static{o(this,"WritableState")}constructor(e,{highWaterMark:r=16384,map:n=null,mapWritable:i,byteLength:s,byteLengthWritable:a}={}){this.stream=e,this.queue=new d2e,this.highWaterMark=r,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=a||s||v2e,this.map=i||n,this.afterWrite=h2t.bind(this),this.afterUpdateNextTick=m2t.bind(this)}get ended(){return(this.stream._duplexState&Yp)!==0}push(e){return this.map!==null&&(e=this.map(e)),this.buffered+=this.byteLength(e),this.queue.push(e),this.buffered0,this.error=null,this.pipeline=null,this.byteLength=a||s||v2e,this.map=i||n,this.pipeTo=null,this.afterRead=p2t.bind(this),this.afterUpdateNextTick=A2t.bind(this)}get ended(){return(this.stream._duplexState&Ya)!==0}pipe(e,r){if(this.pipeTo!==null)throw new Error("Can only pipe to one destination");if(typeof r!="function"&&(r=null),this.stream._duplexState|=T9,this.pipeTo=e,this.pipeline=new N9(this.stream,e,r),r&&this.stream.on("error",l2e),GI(e))e._writableState.pipeline=this.pipeline,r&&e.on("error",l2e),e.on("finish",this.pipeline.finished.bind(this.pipeline));else{let n=this.pipeline.done.bind(this.pipeline,e),i=this.pipeline.done.bind(this.pipeline,e,null);e.on("error",n),e.on("close",i),e.on("finish",this.pipeline.finished.bind(this.pipeline))}e.on("drain",d2t.bind(this)),this.stream.emit("piping",e),e.emit("pipe",this.stream)}push(e){let r=this.stream;return e===null?(this.highWaterMark=0,r._duplexState=(r._duplexState|$p)&FTt,!1):(this.map!==null&&(e=this.map(e)),this.buffered+=this.byteLength(e),this.queue.push(e),r._duplexState=(r._duplexState|Af)&MTt,this.buffered0;)r.push(this.shift());for(let n=0;n0;)n.drains.shift().resolve(!1);n.pipeline!==null&&n.pipeline.done(e,t)}}o(I2e,"afterDestroy");function h2t(t){let e=this.stream;t&&e.destroy(t),e._duplexState&=m2e,this.drains!==null&&g2t(this.drains),(e._duplexState&s2t)===$I&&(e._duplexState&=$Tt,(e._duplexState&B9)===B9&&e.emit("drain")),this.updateCallback()}o(h2t,"afterWrite");function p2t(t){t&&this.stream.destroy(t),this.stream._duplexState&=OTt,this.readAhead===!1&&(this.stream._duplexState&zI)===0&&(this.stream._duplexState&=A2e),this.updateCallback()}o(p2t,"afterRead");function A2t(){(this.stream._duplexState&FI)===0&&(this.stream._duplexState&=p2e,this.update())}o(A2t,"updateReadNT");function m2t(){(this.stream._duplexState&Wy)===0&&(this.stream._duplexState&=y2e,this.update())}o(m2t,"updateWriteNT");function g2t(t){for(let e=0;e=e._readableState.highWaterMark}static isPaused(e){return(e._duplexState&zI)===0}[FQ](){let e=this,r=null,n=null,i=null;return this.on("error",u=>{r=u}),this.on("readable",s),this.on("close",a),{[FQ](){return this},next(){return new Promise(function(u,d){n=u,i=d;let f=e.read();f!==null?c(f):(e._duplexState&LI)!==0&&c(null)})},return(){return l(null)},throw(u){return l(u)}};function s(){n!==null&&c(e.read())}o(s,"onreadable");function a(){n!==null&&c(null)}o(a,"onclose");function c(u){i!==null&&(r?i(r):u===null&&(e._duplexState&Ya)===0?i(HQ):n({value:u,done:u===null}),i=n=null)}o(c,"ondata");function l(u){return e.destroy(u),new Promise((d,f)=>{if(e._duplexState&LI)return d({value:void 0,done:!0});e.once("close",function(){u?f(u):d({value:void 0,done:!0})})})}o(l,"destroy")}},qQ=class extends UI{static{o(this,"Writable")}constructor(e){super(e),this._duplexState|=Jp|Ya,this._writableState=new MQ(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final),e.eagerOpen&&this._writableState.updateNextTick())}_writev(e,r){r(null)}_write(e,r){this._writableState.autoBatch(e,r)}_final(e){e(null)}static isBackpressured(e){return(e._duplexState&l2t)!==0}static drained(e){if(e.destroyed)return Promise.resolve(!1);let r=e._writableState,i=(x2t(e)?Math.min(1,r.queue.length):r.queue.length)+(e._duplexState&P9?1:0);return i===0?Promise.resolve(!0):(r.drains===null&&(r.drains=[]),new Promise(s=>{r.drains.push({writes:i,resolve:s})}))}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},qI=class extends UQ{static{o(this,"Duplex")}constructor(e){super(e),this._duplexState=Jp|this._duplexState&jp,this._writableState=new MQ(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final))}_writev(e,r){r(null)}_write(e,r){this._writableState.autoBatch(e,r)}_final(e){e(null)}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},GQ=class extends qI{static{o(this,"Transform")}constructor(e){super(e),this._transformState=new v9(this),e&&(e.transform&&(this._transform=e.transform),e.flush&&(this._flush=e.flush))}_write(e,r){this._readableState.buffered>=this._readableState.highWaterMark?this._transformState.data=e:this._transform(e,this._transformState.afterTransform)}_read(e){if(this._transformState.data!==null){let r=this._transformState.data;this._transformState.data=null,e(null),this._transform(r,this._transformState.afterTransform)}else e(null)}destroy(e){super.destroy(e),this._transformState.data!==null&&(this._transformState.data=null,this._transformState.afterTransform())}_transform(e,r){r(null,e)}_flush(e){e(null)}_final(e){this._transformState.afterFinal=e,this._flush(C2t.bind(this))}},R9=class extends GQ{static{o(this,"PassThrough")}};function C2t(t,e){let r=this._transformState.afterFinal;if(t)return r(t);e!=null&&this.push(e),this.push(null),r(null)}o(C2t,"transformAfterFlush");function b2t(...t){return new Promise((e,r)=>B2e(...t,n=>{if(n)return r(n);e()}))}o(b2t,"pipelinePromise");function B2e(t,...e){let r=Array.isArray(t)?[...t,...e]:[t,...e],n=r.length&&typeof r[r.length-1]=="function"?r.pop():null;if(r.length<2)throw new Error("Pipeline requires at least 2 streams");let i=r[0],s=null,a=null;for(let u=1;u1,l),i.pipe(s)),i=s;if(n){let u=!1,d=GI(s)||!!(s._writableState&&s._writableState.autoDestroy);s.on("error",f=>{a===null&&(a=f)}),s.on("finish",()=>{u=!0,d||n(a)}),d&&s.on("close",()=>n(a||(u?null:I9)))}return s;function c(u,d,f,h){u.on("error",h),u.on("close",p);function p(){if(d&&u._readableState&&!u._readableState.ended||f&&u._writableState&&!u._writableState.ended)return h(I9)}o(p,"onclose")}function l(u){if(!(!u||a)){a=u;for(let d of r)d.destroy(u)}}}o(B2e,"pipeline");function x2e(t){return!!t._readableState||!!t._writableState}o(x2e,"isStream");function GI(t){return typeof t._duplexState=="number"&&x2e(t)}o(GI,"isStreamx");function w2t(t){let e=t._readableState&&t._readableState.error||t._writableState&&t._writableState.error;return e===HQ?null:e}o(w2t,"getStreamError");function I2t(t){return GI(t)&&t.readable}o(I2t,"isReadStreamx");function S2t(t){return typeof t=="object"&&t!==null&&typeof t.byteLength=="number"}o(S2t,"isTypedArray");function v2e(t){return S2t(t)?t.byteLength:1024}o(v2e,"defaultByteLength");function l2e(){}o(l2e,"noop");function B2t(){this.destroy(new Error("Stream aborted."))}o(B2t,"abort");function x2t(t){return t._writev!==qQ.prototype._writev&&t._writev!==qI.prototype._writev}o(x2t,"isWritev");N2e.exports={pipeline:B2e,pipelinePromise:b2t,isStream:x2e,isStreamx:GI,getStreamError:w2t,Stream:UI,Writable:qQ,Readable:UQ,Duplex:qI,Transform:GQ,PassThrough:R9}});var VQ=g((qvr,R2e)=>{function v2t(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}o(v2t,"isBuffer");function N2t(t){return Buffer.isEncoding(t)}o(N2t,"isEncoding");function R2t(t,e,r){return Buffer.alloc(t,e,r)}o(R2t,"alloc");function _2t(t){return Buffer.allocUnsafe(t)}o(_2t,"allocUnsafe");function T2t(t){return Buffer.allocUnsafeSlow(t)}o(T2t,"allocUnsafeSlow");function D2t(t,e){return Buffer.byteLength(t,e)}o(D2t,"byteLength");function Q2t(t,e){return Buffer.compare(t,e)}o(Q2t,"compare");function k2t(t,e){return Buffer.concat(t,e)}o(k2t,"concat");function P2t(t,e,r,n,i){return on(t).copy(e,r,n,i)}o(P2t,"copy");function O2t(t,e){return on(t).equals(e)}o(O2t,"equals");function L2t(t,e,r,n,i){return on(t).fill(e,r,n,i)}o(L2t,"fill");function F2t(t,e,r){return Buffer.from(t,e,r)}o(F2t,"from");function M2t(t,e,r,n){return on(t).includes(e,r,n)}o(M2t,"includes");function U2t(t,e,r,n){return on(t).indexOf(e,r,n)}o(U2t,"indexOf");function q2t(t,e,r,n){return on(t).lastIndexOf(e,r,n)}o(q2t,"lastIndexOf");function G2t(t){return on(t).swap16()}o(G2t,"swap16");function H2t(t){return on(t).swap32()}o(H2t,"swap32");function z2t(t){return on(t).swap64()}o(z2t,"swap64");function on(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}o(on,"toBuffer");function V2t(t,e,r,n){return on(t).toString(e,r,n)}o(V2t,"toString");function $2t(t,e,r,n,i){return on(t).write(e,r,n,i)}o($2t,"write");function j2t(t,e,r){return on(t).writeDoubleLE(e,r)}o(j2t,"writeDoubleLE");function W2t(t,e,r){return on(t).writeFloatLE(e,r)}o(W2t,"writeFloatLE");function J2t(t,e,r){return on(t).writeUInt32LE(e,r)}o(J2t,"writeUInt32LE");function Y2t(t,e,r){return on(t).writeInt32LE(e,r)}o(Y2t,"writeInt32LE");function K2t(t,e){return on(t).readDoubleLE(e)}o(K2t,"readDoubleLE");function X2t(t,e){return on(t).readFloatLE(e)}o(X2t,"readFloatLE");function Z2t(t,e){return on(t).readUInt32LE(e)}o(Z2t,"readUInt32LE");function eDt(t,e){return on(t).readInt32LE(e)}o(eDt,"readInt32LE");R2e.exports={isBuffer:v2t,isEncoding:N2t,alloc:R2t,allocUnsafe:_2t,allocUnsafeSlow:T2t,byteLength:D2t,compare:Q2t,concat:k2t,copy:P2t,equals:O2t,fill:L2t,from:F2t,includes:M2t,indexOf:U2t,lastIndexOf:q2t,swap16:G2t,swap32:H2t,swap64:z2t,toBuffer:on,toString:V2t,write:$2t,writeDoubleLE:j2t,writeFloatLE:W2t,writeUInt32LE:J2t,writeInt32LE:Y2t,readDoubleLE:K2t,readFloatLE:X2t,readUInt32LE:Z2t,readInt32LE:eDt}});var q9=g(Xy=>{var Bt=VQ(),tDt="0000000000000000000",rDt="7777777777777777777",$Q=48,_2e=Bt.from([117,115,116,97,114,0]),nDt=Bt.from([$Q,$Q]),iDt=Bt.from([117,115,116,97,114,32]),sDt=Bt.from([32,0]),oDt=4095,jI=257,U9=263;Xy.decodeLongPath=o(function(e,r){return Ky(e,0,e.length,r)},"decodeLongPath");Xy.encodePax=o(function(e){let r="";e.name&&(r+=M9(" path="+e.name+` -`)),e.linkname&&(r+=M9(" linkpath="+e.linkname+` -`));let n=e.pax;if(n)for(let i in n)r+=M9(" "+i+"="+n[i]+` -`);return Bt.from(r)},"encodePax");Xy.decodePax=o(function(e){let r={};for(;e.length;){let n=0;for(;n100;){let s=n.indexOf("/");if(s===-1)return null;i+=i?"/"+n.slice(0,s):n.slice(0,s),n=n.slice(s+1)}return Bt.byteLength(n)>100||Bt.byteLength(i)>155||e.linkname&&Bt.byteLength(e.linkname)>100?null:(Bt.write(r,n),Bt.write(r,yf(e.mode&oDt,6),100),Bt.write(r,yf(e.uid,6),108),Bt.write(r,yf(e.gid,6),116),hDt(e.size,r,124),Bt.write(r,yf(e.mtime.getTime()/1e3|0,11),136),r[156]=$Q+dDt(e.type),e.linkname&&Bt.write(r,e.linkname,157),Bt.copy(_2e,r,jI),Bt.copy(nDt,r,U9),e.uname&&Bt.write(r,e.uname,265),e.gname&&Bt.write(r,e.gname,297),Bt.write(r,yf(e.devmajor||0,6),329),Bt.write(r,yf(e.devminor||0,6),337),i&&Bt.write(r,i,345),Bt.write(r,yf(D2e(r),6),148),r)},"encode");Xy.decode=o(function(e,r,n){let i=e[156]===0?0:e[156]-$Q,s=Ky(e,0,100,r),a=gf(e,100,8),c=gf(e,108,8),l=gf(e,116,8),u=gf(e,124,12),d=gf(e,136,12),f=uDt(i),h=e[157]===0?null:Ky(e,157,100,r),p=Ky(e,265,32),m=Ky(e,297,32),A=gf(e,329,8),E=gf(e,337,8),y=D2e(e);if(y===256)return null;if(y!==gf(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(aDt(e))e[345]&&(s=Ky(e,345,155,r)+"/"+s);else if(!cDt(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return i===0&&s&&s[s.length-1]==="/"&&(i=5),{name:s,mode:a,uid:c,gid:l,size:u,mtime:new Date(1e3*d),type:f,linkname:h,uname:p,gname:m,devmajor:A,devminor:E,pax:null}},"decode");function aDt(t){return Bt.equals(_2e,t.subarray(jI,jI+6))}o(aDt,"isUSTAR");function cDt(t){return Bt.equals(iDt,t.subarray(jI,jI+6))&&Bt.equals(sDt,t.subarray(U9,U9+2))}o(cDt,"isGNU");function lDt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}o(lDt,"clamp");function uDt(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}o(uDt,"toType");function dDt(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}o(dDt,"toTypeflag");function T2e(t,e,r,n){for(;re?rDt.slice(0,e)+" ":tDt.slice(0,e-t.length)+t+" "}o(yf,"encodeOct");function fDt(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}o(fDt,"encodeSizeBin");function hDt(t,e,r){t.toString(8).length>11?fDt(t,e,r):Bt.write(e,yf(t,11),r)}o(hDt,"encodeSize");function pDt(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let a=t[n];e?r.push(a):r.push(255-a)}let i=0,s=r.length;for(n=0;n=Math.pow(10,r)&&r++,e+r+t}o(M9,"addLength")});var L2e=g((Vvr,O2e)=>{var{Writable:ADt,Readable:mDt,getStreamError:Q2e}=F9(),gDt=w9(),k2e=VQ(),Zy=q9(),yDt=k2e.alloc(0),H9=class{static{o(this,"BufferList")}constructor(){this.buffered=0,this.shifted=0,this.queue=new gDt,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return yDt;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return k2e.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let i=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,i}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},z9=class extends mDt{static{o(this,"Source")}constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(Q2e(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=P2e(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},V9=class extends ADt{static{o(this,"Extract")}constructor(e){super(e),e||(e={}),this._buffer=new H9,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=G9,this._locked=!1,this._finished=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null,this._filenameEncoding=e.filenameEncoding||"utf-8",this._allowUnknownFormat=!!e.allowUnknownFormat,this._unlockBound=this._unlock.bind(this)}_unlock(e){if(this._locked=!1,e){this.destroy(e),this._continueWrite(e);return}this._update()}_consumeHeader(){if(this._locked)return!1;this._offset=this._buffer.shifted;try{this._header=Zy.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(e){return this._continueWrite(e),!1}if(!this._header)return!0;switch(this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":return this._longHeader=!0,this._missing=this._header.size,!0}return this._locked=!0,this._applyLongHeaders(),this._header.size===0||this._header.type==="directory"?(this.emit("entry",this._header,this._createStream(),this._unlockBound),!0):(this._stream=this._createStream(),this._missing=this._header.size,this.emit("entry",this._header,this._stream,this._unlockBound),!0)}_applyLongHeaders(){this._gnuLongPath&&(this._header.name=this._gnuLongPath,this._gnuLongPath=null),this._gnuLongLinkPath&&(this._header.linkname=this._gnuLongLinkPath,this._gnuLongLinkPath=null),this._pax&&(this._pax.path&&(this._header.name=this._pax.path),this._pax.linkpath&&(this._header.linkname=this._pax.linkpath),this._pax.size&&(this._header.size=parseInt(this._pax.size,10)),this._header.pax=this._pax,this._pax=null)}_decodeLongHeader(e){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=Zy.decodeLongPath(e,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=Zy.decodeLongPath(e,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=Zy.decodePax(e);break;case"pax-header":this._pax=this._paxGlobal===null?Zy.decodePax(e):Object.assign({},this._paxGlobal,Zy.decodePax(e));break}}_consumeLongHeader(){this._longHeader=!1,this._missing=P2e(this._header.size);let e=this._buffer.shift(this._header.size);try{this._decodeLongHeader(e)}catch(r){return this._continueWrite(r),!1}return!0}_consumeStream(){let e=this._buffer.shiftFirst(this._missing);if(e===null)return!1;this._missing-=e.byteLength;let r=this._stream.push(e);return this._missing===0?(this._stream.push(null),r&&this._stream._detach(),r&&this._locked===!1):r}_createStream(){return new z9(this,this._header,this._offset)}_update(){for(;this._buffer.buffered>0&&!this.destroying;){if(this._missing>0){if(this._stream!==null){if(this._consumeStream()===!1)return;continue}if(this._longHeader===!0){if(this._missing>this._buffer.buffered)break;if(this._consumeLongHeader()===!1)return!1;continue}let e=this._buffer.shiftFirst(this._missing);e!==null&&(this._missing-=e.byteLength);continue}if(this._buffer.buffered<512)break;if(this._stream!==null||this._consumeHeader()===!1)return}this._continueWrite(null)}_continueWrite(e){let r=this._callback;this._callback=G9,r(e)}_write(e,r){this._callback=r,this._buffer.push(e),this._update()}_final(e){this._finished=this._missing===0&&this._buffer.buffered===0,e(this._finished?null:new Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(e){this._stream&&this._stream.destroy(Q2e(this)),e(null)}[Symbol.asyncIterator](){let e=null,r=null,n=null,i=null,s=null,a=this;return this.on("entry",u),this.on("error",h=>{e=h}),this.on("close",d),{[Symbol.asyncIterator](){return this},next(){return new Promise(l)},return(){return f(null)},throw(h){return f(h)}};function c(h){if(!s)return;let p=s;s=null,p(h)}o(c,"consumeCallback");function l(h,p){if(e)return p(e);if(i){h({value:i,done:!1}),i=null;return}r=h,n=p,c(null),a._finished&&r&&(r({value:void 0,done:!0}),r=n=null)}o(l,"onnext");function u(h,p,m){s=m,p.on("error",G9),r?(r({value:p,done:!1}),r=n=null):i=p}o(u,"onentry");function d(){c(e),r&&(e?n(e):r({value:void 0,done:!0}),r=n=null)}o(d,"onclose");function f(h){return a.destroy(h),c(h),new Promise((p,m)=>{if(a.destroyed)return p({value:void 0,done:!0});a.once("close",function(){h?m(h):p({value:void 0,done:!0})})})}o(f,"destroy")}};O2e.exports=o(function(e){return new V9(e)},"extract");function G9(){}o(G9,"noop");function P2e(t){return t&=511,t&&512-t}o(P2e,"overflow")});var M2e=g((jvr,$9)=>{var F2e={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{$9.exports=require("fs").constants||F2e}catch{$9.exports=F2e}});var z2e=g((Wvr,H2e)=>{var{Readable:EDt,Writable:CDt,getStreamError:U2e}=F9(),Kp=VQ(),eE=M2e(),jQ=q9(),bDt=493,wDt=420,q2e=Kp.alloc(1024),W9=class extends CDt{static{o(this,"Sink")}constructor(e,r,n){super({mapWritable:SDt,eagerOpen:!0}),this.written=0,this.header=r,this._callback=n,this._linkname=null,this._isLinkname=r.type==="symlink"&&!r.linkname,this._isVoid=r.type!=="file"&&r.type!=="contiguous-file",this._finished=!1,this._pack=e,this._openCallback=null,this._pack._stream===null?this._pack._stream=this:this._pack._pending.push(this)}_open(e){this._openCallback=e,this._pack._stream===this&&this._continueOpen()}_continuePack(e){if(this._callback===null)return;let r=this._callback;this._callback=null,r(e)}_continueOpen(){this._pack._stream===null&&(this._pack._stream=this);let e=this._openCallback;if(this._openCallback=null,e!==null){if(this._pack.destroying)return e(new Error("pack stream destroyed"));if(this._pack._finalized)return e(new Error("pack stream is already finalized"));this._pack._stream=this,this._isLinkname||this._pack._encode(this.header),this._isVoid&&(this._finish(),this._continuePack(null)),e(null)}}_write(e,r){if(this._isLinkname)return this._linkname=this._linkname?Kp.concat([this._linkname,e]):e,r(null);if(this._isVoid)return e.byteLength>0?r(new Error("No body allowed for this entry")):r();if(this.written+=e.byteLength,this._pack.push(e))return r();this._pack._drain=r}_finish(){this._finished||(this._finished=!0,this._isLinkname&&(this.header.linkname=this._linkname?Kp.toString(this._linkname,"utf-8"):"",this._pack._encode(this.header)),G2e(this._pack,this.header.size),this._pack._done(this))}_final(e){if(this.written!==this.header.size)return e(new Error("Size mismatch"));this._finish(),e(null)}_getError(){return U2e(this)||new Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(e){this._pack._done(this),this._continuePack(this._finished?null:this._getError()),e()}},J9=class extends EDt{static{o(this,"Pack")}constructor(e){super(e),this._drain=j9,this._finalized=!1,this._finalizing=!1,this._pending=[],this._stream=null}entry(e,r,n){if(this._finalized||this.destroying)throw new Error("already finalized or destroyed");typeof r=="function"&&(n=r,r=null),n||(n=j9),(!e.size||e.type==="symlink")&&(e.size=0),e.type||(e.type=IDt(e.mode)),e.mode||(e.mode=e.type==="directory"?bDt:wDt),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),typeof r=="string"&&(r=Kp.from(r));let i=new W9(this,e,n);return Kp.isBuffer(r)?(e.size=r.byteLength,i.write(r),i.end(),i):(i._isVoid,i)}finalize(){if(this._stream||this._pending.length>0){this._finalizing=!0;return}this._finalized||(this._finalized=!0,this.push(q2e),this.push(null))}_done(e){e===this._stream&&(this._stream=null,this._finalizing&&this.finalize(),this._pending.length&&this._pending.shift()._continueOpen())}_encode(e){if(!e.pax){let r=jQ.encode(e);if(r){this.push(r);return}}this._encodePax(e)}_encodePax(e){let r=jQ.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),n={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:r.byteLength,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(jQ.encode(n)),this.push(r),G2e(this,r.byteLength),n.size=e.size,n.type=e.type,this.push(jQ.encode(n))}_doDrain(){let e=this._drain;this._drain=j9,e()}_predestroy(){let e=U2e(this);for(this._stream&&this._stream.destroy(e);this._pending.length;){let r=this._pending.shift();r.destroy(e),r._continueOpen()}this._doDrain()}_read(e){this._doDrain(),e()}};H2e.exports=o(function(e){return new J9(e)},"pack");function IDt(t){switch(t&eE.S_IFMT){case eE.S_IFBLK:return"block-device";case eE.S_IFCHR:return"character-device";case eE.S_IFDIR:return"directory";case eE.S_IFIFO:return"fifo";case eE.S_IFLNK:return"symlink"}return"file"}o(IDt,"modeToType");function j9(){}o(j9,"noop");function G2e(t,e){e&=511,e&&t.push(q2e.subarray(0,512-e))}o(G2e,"overflow");function SDt(t){return Kp.isBuffer(t)?t:Kp.from(t)}o(SDt,"mapWritable")});var V2e=g(Y9=>{Y9.extract=L2e();Y9.pack=z2e()});var W2e=g((Kvr,j2e)=>{var BDt=require("zlib"),xDt=V2e(),$2e=zy(),Gu=o(function(t){if(!(this instanceof Gu))return new Gu(t);t=this.options=$2e.defaults(t,{gzip:!1}),typeof t.gzipOptions!="object"&&(t.gzipOptions={}),this.supports={directory:!0,symlink:!0},this.engine=xDt.pack(t),this.compressor=!1,t.gzip&&(this.compressor=BDt.createGzip(t.gzipOptions),this.compressor.on("error",this._onCompressorError.bind(this)))},"Tar");Gu.prototype._onCompressorError=function(t){this.engine.emit("error",t)};Gu.prototype.append=function(t,e,r){var n=this;e.mtime=e.date;function i(a,c){if(a){r(a);return}n.engine.entry(e,c,function(l){r(l,e)})}if(o(i,"append"),e.sourceType==="buffer")i(null,t);else if(e.sourceType==="stream"&&e.stats){e.size=e.stats.size;var s=n.engine.entry(e,function(a){r(a,e)});t.pipe(s)}else e.sourceType==="stream"&&$2e.collectStream(t,i)};Gu.prototype.finalize=function(){this.engine.finalize()};Gu.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Gu.prototype.pipe=function(t,e){return this.compressor?this.engine.pipe.apply(this.engine,[this.compressor]).pipe(t,e):this.engine.pipe.apply(this.engine,arguments)};Gu.prototype.unpipe=function(){return this.compressor?this.compressor.unpipe.apply(this.compressor,arguments):this.engine.unpipe.apply(this.engine,arguments)};j2e.exports=Gu});var K2e=g((Zvr,Y2e)=>{"use strict";function vDt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}o(vDt,"getDefaultExportFromCjs");var NDt=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function J2e(t){if(Buffer.isBuffer(t))return t;if(typeof t=="number")return Buffer.alloc(t);if(typeof t=="string")return Buffer.from(t);throw new Error("input must be buffer, number, or string, received "+typeof t)}o(J2e,"ensureBuffer");function RDt(t){let e=J2e(4);return e.writeInt32BE(t,0),e}o(RDt,"bufferizeInt");function K9(t,e){t=J2e(t),Buffer.isBuffer(e)&&(e=e.readUInt32BE(0));let r=~~e^-1;for(var n=0;n>>8;return r^-1}o(K9,"_crc32");function X9(){return RDt(K9.apply(null,arguments))}o(X9,"crc32");X9.signed=function(){return K9.apply(null,arguments)};X9.unsigned=function(){return K9.apply(null,arguments)>>>0};var _Dt=X9,TDt=vDt(_Dt);Y2e.exports=TDt});var tDe=g((tNr,eDe)=>{var DDt=require("util").inherits,X2e=Fp().Transform,QDt=K2e(),Z2e=zy(),Ef=o(function(t){if(!(this instanceof Ef))return new Ef(t);t=this.options=Z2e.defaults(t,{}),X2e.call(this,t),this.supports={directory:!0,symlink:!0},this.files=[]},"Json");DDt(Ef,X2e);Ef.prototype._transform=function(t,e,r){r(null,t)};Ef.prototype._writeStringified=function(){var t=JSON.stringify(this.files);this.write(t)};Ef.prototype.append=function(t,e,r){var n=this;e.crc32=0;function i(s,a){if(s){r(s);return}e.size=a.length||0,e.crc32=QDt.unsigned(a),n.files.push(e),r(null,e)}o(i,"onend"),e.sourceType==="buffer"?i(null,t):e.sourceType==="stream"&&Z2e.collectStream(t,i)};Ef.prototype.finalize=function(){this._writeStringified(),this.end()};eDe.exports=Ef});var nDe=g((nNr,rDe)=>{var kDt=ETe(),WI={},Cf=o(function(t,e){return Cf.create(t,e)},"vending");Cf.create=function(t,e){if(WI[t]){var r=new kDt(t,e);return r.setFormat(t),r.setModule(new WI[t](e)),r}else throw new Error("create("+t+"): format not registered")};Cf.registerFormat=function(t,e){if(WI[t])throw new Error("register("+t+"): format already registered");if(typeof e!="function")throw new Error("register("+t+"): format module invalid");if(typeof e.prototype.append!="function"||typeof e.prototype.finalize!="function")throw new Error("register("+t+"): format module missing methods");WI[t]=e};Cf.isRegisteredFormat=function(t){return!!WI[t]};Cf.registerFormat("zip",KTe());Cf.registerFormat("tar",W2e());Cf.registerFormat("json",tDe());rDe.exports=Cf});var yDe=g((vNr,gDe)=>{gDe.exports=mi;function mi(t){if(!(this instanceof mi))return new mi(t);this.value=t}o(mi,"Traverse");mi.prototype.get=function(t){for(var e=this.value,r=0;r{var zDt=yDe(),VDt=require("events").EventEmitter;EDe.exports=tE;function tE(t){var e=tE.saw(t,{}),r=t.call(e.handlers,e);return r!==void 0&&(e.handlers=r),e.record(),e.chain()}o(tE,"Chainsaw");tE.light=o(function(e){var r=tE.saw(e,{}),n=e.call(r.handlers,r);return n!==void 0&&(r.handlers=n),r.chain()},"ChainsawLight");tE.saw=function(t,e){var r=new VDt;return r.handlers=e,r.actions=[],r.chain=function(){var n=zDt(r.handlers).map(function(i){if(this.isRoot)return i;var s=this.path;typeof i=="function"&&this.update(function(){return r.actions.push({path:s,args:[].slice.call(arguments)}),n})});return process.nextTick(function(){r.emit("begin"),r.next()}),n},r.pop=function(){return r.actions.shift()},r.next=function(){var n=r.pop();if(!n)r.emit("end");else if(!n.trap){var i=r.handlers;n.path.forEach(function(s){i=i[s]}),i.apply(r.handlers,n.args)}},r.nest=function(n){var i=[].slice.call(arguments,1),s=!0;if(typeof n=="boolean"){var s=n;n=i.shift()}var a=tE.saw(t,{}),c=t.call(a.handlers,a);c!==void 0&&(a.handlers=c),typeof r.step<"u"&&a.record(),n.apply(a.chain(),i),s!==!1&&a.on("end",r.next)},r.record=function(){$Dt(r)},["trap","down","jump"].forEach(function(n){r[n]=function(){throw new Error("To use the trap, down and jump features, please call record() first to start recording actions.")}}),r};function $Dt(t){t.step=0,t.pop=function(){return t.actions[t.step++]},t.trap=function(e,r){var n=Array.isArray(e)?e:[e];t.actions.push({path:n,step:t.step,cb:r,trap:!0})},t.down=function(e){var r=(Array.isArray(e)?e:[e]).join("/"),n=t.actions.slice(t.step).map(function(s){return s.trap&&s.step<=t.step?!1:s.path.join("/")==r}).indexOf(!0);n>=0?t.step+=n:t.step=t.actions.length;var i=t.actions[t.step-1];i&&i.trap?(t.step=i.step,i.cb()):t.next()},t.jump=function(e){t.step=e,t.next()}}o($Dt,"upgradeChainsaw")});var wDe=g((TNr,bDe)=>{bDe.exports=ji;function ji(t){if(!(this instanceof ji))return new ji(t);this.buffers=t||[],this.length=this.buffers.reduce(function(e,r){return e+r.length},0)}o(ji,"Buffers");ji.prototype.push=function(){for(var t=0;t=0?t:this.length-t,i=[].slice.call(arguments,2);e===void 0?e=this.length-n:e>this.length-n&&(e=this.length-n);for(var t=0;t0){var u=n-c;if(u+e0){var p=i.slice();p.unshift(f),p.push(h),r.splice.apply(r,[l,1].concat(p)),l+=p.length,i=[]}else r.splice(l,1,f,h),l+=2}else s.push(r[l].slice(u)),r[l]=r[l].slice(0,u),l++}for(i.length>0&&(r.splice.apply(r,[l,0].concat(i)),l+=i.length);s.lengththis.length&&(e=this.length);for(var n=0,i=0;i=e-t?Math.min(u+(e-t)-a,l):l;r[c].copy(s,a,u,d),a+=d-u}return s};ji.prototype.pos=function(t){if(t<0||t>=this.length)throw new Error("oob");for(var e=t,r=0,n=null;;){if(n=this.buffers[r],e=this.buffers[r].length;)if(n=0,r++,r>=this.buffers.length)return-1;var l=this.buffers[r][n];if(l==t[i]){if(i==0&&(s={i:r,j:n,pos:a}),i++,i==t.length)return s.pos}else i!=0&&(r=s.i,n=s.j,a=s.pos,i=0);n++,a++}};ji.prototype.toBuffer=function(){return this.slice()};ji.prototype.toString=function(t,e,r){return this.slice(e,r).toString(t)}});var SDe=g((QNr,IDe)=>{IDe.exports=function(t){function e(n,i){var s=r.store,a=n.split(".");a.slice(0,-1).forEach(function(l){s[l]===void 0&&(s[l]={}),s=s[l]});var c=a[a.length-1];return arguments.length==1?s[c]:s[c]=i}o(e,"getset");var r={get:o(function(n){return e(n)},"get"),set:o(function(n,i){return e(n,i)},"set"),store:t||{}};return r}});var _De=g((Xp,RDe)=>{var jDt=CDe(),BDe=require("events").EventEmitter,WDt=wDe(),JQ=SDe(),JDt=require("stream").Stream;Xp=RDe.exports=function(t,e){if(Buffer.isBuffer(t))return Xp.parse(t);var r=Xp.stream();return t&&t.pipe?t.pipe(r):t&&(t.on(e||"data",function(n){r.write(n)}),t.on("end",function(){r.end()})),r};Xp.stream=function(t){if(t)return Xp.apply(null,arguments);var e=null;function r(f,h,p){e={bytes:f,skip:p,cb:o(function(m){e=null,h(m)},"cb")},i()}o(r,"getBytes");var n=null;function i(){if(!e){d&&(u=!0);return}if(typeof e=="function")e();else{var f=n+e.bytes;if(c.length>=f){var h;n==null?(h=c.splice(0,f),e.skip||(h=h.slice())):(e.skip||(h=c.slice(n,f)),n=f),e.skip?e.cb():e.cb(h)}}}o(i,"dispatch");function s(f){function h(){u||f.next()}o(h,"next");var p=NDe(function(m,A){return function(E){r(m,function(y){l.set(E,A(y)),h()})}});return p.tap=function(m){f.nest(m,l.store)},p.into=function(m,A){l.get(m)||l.set(m,{});var E=l;l=JQ(E.get(m)),f.nest(function(){A.apply(this,arguments),this.tap(function(){l=E})},l.store)},p.flush=function(){l.store={},h()},p.loop=function(m){var A=!1;f.nest(!1,o(function E(){this.vars=l.store,m.call(this,function(){A=!0,h()},l.store),this.tap(function(){A?f.next():E.call(this)}.bind(this))},"loop"),l.store)},p.buffer=function(m,A){typeof A=="string"&&(A=l.get(A)),r(A,function(E){l.set(m,E),h()})},p.skip=function(m){typeof m=="string"&&(m=l.get(m)),r(m,function(){h()})},p.scan=o(function(A,E){if(typeof E=="string")E=new Buffer(E);else if(!Buffer.isBuffer(E))throw new Error("search must be a Buffer or a string");var y=0;e=o(function(){var C=c.indexOf(E,n+y),w=C-n-y;C!==-1?(e=null,n!=null?(l.set(A,c.slice(n,n+y+w)),n+=y+w+E.length):(l.set(A,c.slice(0,y+w)),c.splice(0,y+w+E.length)),h(),i()):w=Math.max(c.length-E.length-n-y,0),y+=w},"pending"),i()},"find"),p.peek=function(m){n=0,f.nest(function(){m.call(this,l.store),this.tap(function(){n=null})})},p}o(s,"builder");var a=jDt.light(s);a.writable=!0;var c=WDt();a.write=function(f){c.push(f),i()};var l=JQ(),u=!1,d=!1;return a.end=function(){d=!0},a.pipe=JDt.prototype.pipe,Object.getOwnPropertyNames(BDe.prototype).forEach(function(f){a[f]=BDe.prototype[f]}),a};Xp.parse=o(function(e){var r=NDe(function(s,a){return function(c){if(n+s<=e.length){var l=e.slice(n,n+s);n+=s,i.set(c,a(l))}else i.set(c,null);return r}}),n=0,i=JQ();return r.vars=i.store,r.tap=function(s){return s.call(r,i.store),r},r.into=function(s,a){i.get(s)||i.set(s,{});var c=i;return i=JQ(c.get(s)),a.call(r,i.store),i=c,r},r.loop=function(s){for(var a=!1,c=o(function(){a=!0},"ender");a===!1;)s.call(r,c,i.store);return r},r.buffer=function(s,a){typeof a=="string"&&(a=i.get(a));var c=e.slice(n,Math.min(e.length,n+a));return n+=a,i.set(s,c),r},r.skip=function(s){return typeof s=="string"&&(s=i.get(s)),n+=s,r},r.scan=function(s,a){if(typeof a=="string")a=new Buffer(a);else if(!Buffer.isBuffer(a))throw new Error("search must be a Buffer or a string");i.set(s,null);for(var c=0;c+n<=e.length-a.length+1;c++){for(var l=0;l=e.length},r},"parse");function xDe(t){for(var e=0,r=0;r{var TDe=require("stream").Transform,XDt=require("util");function Zp(t,e){if(!(this instanceof Zp))return new Zp;TDe.call(this);var r=typeof t=="object"?t.pattern:t;this.pattern=Buffer.isBuffer(r)?r:Buffer.from(r),this.requiredLength=this.pattern.length,t.requiredExtraSize&&(this.requiredLength+=t.requiredExtraSize),this.data=new Buffer(""),this.bytesSoFar=0,this.matchFn=e}o(Zp,"MatcherStream");XDt.inherits(Zp,TDe);Zp.prototype.checkDataChunk=function(t){var e=this.data.length>=this.requiredLength;if(e){var r=this.data.indexOf(this.pattern,t?1:0);if(r>=0&&r+this.requiredLength>this.data.length){if(r>0){var n=this.data.slice(0,r);this.push(n),this.bytesSoFar+=r,this.data=this.data.slice(r)}return}if(r===-1){var i=this.data.length-this.requiredLength+1,n=this.data.slice(0,i);this.push(n),this.bytesSoFar+=i,this.data=this.data.slice(i);return}if(r>0){var n=this.data.slice(0,r);this.data=this.data.slice(r),this.push(n),this.bytesSoFar+=r}var s=this.matchFn?this.matchFn(this.data,this.bytesSoFar):!0;if(s){this.data=new Buffer("");return}return!0}};Zp.prototype._transform=function(t,e,r){this.data=Buffer.concat([this.data,t]);for(var n=!0;this.checkDataChunk(!n);)n=!1;r()};Zp.prototype._flush=function(t){if(this.data.length>0)for(var e=!0;this.checkDataChunk(!e);)e=!1;this.data.length>0&&(this.push(this.data),this.data=null),t()};DDe.exports=Zp});var PDe=g((FNr,kDe)=>{"use strict";var Z9=require("stream"),ZDt=require("util").inherits;function YI(){if(!(this instanceof YI))return new YI;Z9.PassThrough.call(this),this.path=null,this.type=null,this.isDirectory=!1}o(YI,"Entry");ZDt(YI,Z9.PassThrough);YI.prototype.autodrain=function(){return this.pipe(new Z9.Transform({transform:o(function(t,e,r){r()},"transform")}))};kDe.exports=YI});var tJ=g((UNr,LDe)=>{"use strict";var bf=_De(),eJ=require("stream"),eQt=require("util"),tQt=require("zlib"),rQt=QDe(),ODe=PDe(),ke={STREAM_START:0,START:1,LOCAL_FILE_HEADER:2,LOCAL_FILE_HEADER_SUFFIX:3,FILE_DATA:4,FILE_DATA_END:5,DATA_DESCRIPTOR:6,CENTRAL_DIRECTORY_FILE_HEADER:7,CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:8,CDIR64_END:9,CDIR64_END_DATA_SECTOR:10,CDIR64_LOCATOR:11,CENTRAL_DIRECTORY_END:12,CENTRAL_DIRECTORY_END_COMMENT:13,TRAILING_JUNK:14,ERROR:99},KI=4294967296,nQt=67324752,iQt=134695760,sQt=33639248,oQt=101075792,aQt=117853008,cQt=101010256;function ei(t){if(!(this instanceof ei))return new ei(t);eJ.Transform.call(this),this.options=t||{},this.data=new Buffer(""),this.state=ke.STREAM_START,this.skippedBytes=0,this.parsedEntity=null,this.outStreamInfo={}}o(ei,"UnzipStream");eQt.inherits(ei,eJ.Transform);ei.prototype.processDataChunk=function(t){var e;switch(this.state){case ke.STREAM_START:case ke.START:e=4;break;case ke.LOCAL_FILE_HEADER:e=26;break;case ke.LOCAL_FILE_HEADER_SUFFIX:e=this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength;break;case ke.DATA_DESCRIPTOR:e=12;break;case ke.CENTRAL_DIRECTORY_FILE_HEADER:e=42;break;case ke.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:e=this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength+this.parsedEntity.fileCommentLength;break;case ke.CDIR64_END:e=52;break;case ke.CDIR64_END_DATA_SECTOR:e=this.parsedEntity.centralDirectoryRecordSize-44;break;case ke.CDIR64_LOCATOR:e=16;break;case ke.CENTRAL_DIRECTORY_END:e=18;break;case ke.CENTRAL_DIRECTORY_END_COMMENT:e=this.parsedEntity.commentLength;break;case ke.FILE_DATA:return 0;case ke.FILE_DATA_END:return 0;case ke.TRAILING_JUNK:return this.options.debug&&console.log("found",t.length,"bytes of TRAILING_JUNK"),t.length;default:return t.length}var r=t.length;if(r>>8,(s&255)===80){a=c;break}return this.skippedBytes+=a,this.options.debug&&console.log("Skipped",this.skippedBytes,"bytes"),a}this.state=ke.ERROR;var l=i?"Not a valid zip file":"Invalid signature in zip file";if(this.options.debug){var u=t.readUInt32LE(0),d;try{d=t.slice(0,4).toString()}catch{}console.log("Unexpected signature in zip file: 0x"+u.toString(16),'"'+d+'", skipped',this.skippedBytes,"bytes")}return this.emit("error",new Error(l)),t.length}return this.skippedBytes=0,e;case ke.LOCAL_FILE_HEADER:return this.parsedEntity=this._readFile(t),this.state=ke.LOCAL_FILE_HEADER_SUFFIX,e;case ke.LOCAL_FILE_HEADER_SUFFIX:var f=new ODe,h=(this.parsedEntity.flags&2048)!==0;f.path=this._decodeString(t.slice(0,this.parsedEntity.fileNameLength),h);var m=t.slice(this.parsedEntity.fileNameLength,this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength),A=this._readExtraFields(m);if(A&&A.parsed&&(A.parsed.path&&!h&&(f.path=A.parsed.path),Number.isFinite(A.parsed.uncompressedSize)&&this.parsedEntity.uncompressedSize===KI-1&&(this.parsedEntity.uncompressedSize=A.parsed.uncompressedSize),Number.isFinite(A.parsed.compressedSize)&&this.parsedEntity.compressedSize===KI-1&&(this.parsedEntity.compressedSize=A.parsed.compressedSize)),this.parsedEntity.extra=A.parsed||{},this.options.debug){let B=Object.assign({},this.parsedEntity,{path:f.path,flags:"0x"+this.parsedEntity.flags.toString(16),extraFields:A&&A.debug});console.log("decoded LOCAL_FILE_HEADER:",JSON.stringify(B,null,2))}return this._prepareOutStream(this.parsedEntity,f),this.emit("entry",f),this.state=ke.FILE_DATA,e;case ke.CENTRAL_DIRECTORY_FILE_HEADER:return this.parsedEntity=this._readCentralDirectoryEntry(t),this.state=ke.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX,e;case ke.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:var h=(this.parsedEntity.flags&2048)!==0,p=this._decodeString(t.slice(0,this.parsedEntity.fileNameLength),h),m=t.slice(this.parsedEntity.fileNameLength,this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength),A=this._readExtraFields(m);A&&A.parsed&&A.parsed.path&&!h&&(p=A.parsed.path),this.parsedEntity.extra=A.parsed;var E=(this.parsedEntity.versionMadeBy&65280)>>8===3,y,C;if(E){y=this.parsedEntity.externalFileAttributes>>>16;var w=y>>>12;C=(w&10)===10}if(this.options.debug){let B=Object.assign({},this.parsedEntity,{path:p,flags:"0x"+this.parsedEntity.flags.toString(16),unixAttrs:y&&"0"+y.toString(8),isSymlink:C,extraFields:A.debug});console.log("decoded CENTRAL_DIRECTORY_FILE_HEADER:",JSON.stringify(B,null,2))}return this.state=ke.START,e;case ke.CDIR64_END:return this.parsedEntity=this._readEndOfCentralDirectory64(t),this.options.debug&&console.log("decoded CDIR64_END_RECORD:",this.parsedEntity),this.state=ke.CDIR64_END_DATA_SECTOR,e;case ke.CDIR64_END_DATA_SECTOR:return this.state=ke.START,e;case ke.CDIR64_LOCATOR:return this.state=ke.START,e;case ke.CENTRAL_DIRECTORY_END:return this.parsedEntity=this._readEndOfCentralDirectory(t),this.options.debug&&console.log("decoded CENTRAL_DIRECTORY_END:",this.parsedEntity),this.state=ke.CENTRAL_DIRECTORY_END_COMMENT,e;case ke.CENTRAL_DIRECTORY_END_COMMENT:return this.options.debug&&console.log("decoded CENTRAL_DIRECTORY_END_COMMENT:",t.slice(0,e).toString()),this.state=ke.TRAILING_JUNK,e;case ke.ERROR:return t.length;default:return console.log("didn't handle state #",this.state,"discarding"),t.length}};ei.prototype._prepareOutStream=function(t,e){var r=this,n=t.uncompressedSize===0&&/[\/\\]$/.test(e.path);e.path=e.path.replace(/(?<=^|[/\\]+)[.][.]+(?=[/\\]+|$)/g,"."),e.type=n?"Directory":"File",e.isDirectory=n;var i=!(t.flags&8);i&&(e.size=t.uncompressedSize);var s=t.versionsNeededToExtract<=45;if(this.outStreamInfo={stream:null,limit:i?t.compressedSize:-1,written:0},i)this.outStreamInfo.stream=new eJ.PassThrough;else{var a=new Buffer(4);a.writeUInt32LE(iQt,0);var c=t.extra.zip64Mode,l=c?20:12,u={pattern:a,requiredExtraSize:l},d=new rQt(u,function(A,E){var y=r._readDataDescriptor(A,c),C=y.compressedSize===E;if(!c&&!C&&E>=KI)for(var w=E-KI;w>=0&&(C=y.compressedSize===w,!C);)w-=KI;if(C){r.state=ke.FILE_DATA_END;var B=c?24:16;return r.data.length>0?r.data=Buffer.concat([A.slice(B),r.data]):r.data=A.slice(B),!0}});this.outStreamInfo.stream=d}var f=t.flags&1||t.flags&64;if(f||!s){var h=f?"Encrypted files are not supported!":"Zip version "+Math.floor(t.versionsNeededToExtract/10)+"."+t.versionsNeededToExtract%10+" is not supported";e.skip=!0,setImmediate(()=>{r.emit("error",new Error(h))}),this.outStreamInfo.stream.pipe(new ODe().autodrain());return}var p=t.compressionMethod>0;if(p){var m=tQt.createInflateRaw();m.on("error",function(A){r.state=ke.ERROR,r.emit("error",A)}),this.outStreamInfo.stream.pipe(m).pipe(e)}else this.outStreamInfo.stream.pipe(e);this._drainAllEntries&&e.autodrain()};ei.prototype._readFile=function(t){var e=bf.parse(t).word16lu("versionsNeededToExtract").word16lu("flags").word16lu("compressionMethod").word16lu("lastModifiedTime").word16lu("lastModifiedDate").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").word16lu("fileNameLength").word16lu("extraFieldLength").vars;return e};ei.prototype._readExtraFields=function(t){var e={},r={parsed:e};this.options.debug&&(r.debug=[]);for(var n=0;n=C+4&&c&1&&(e.mtime=new Date(t.readUInt32LE(n+C)*1e3),C+=4),i.extraSize>=C+4&&c&2&&(e.atime=new Date(t.readUInt32LE(n+C)*1e3),C+=4),i.extraSize>=C+4&&c&4&&(e.ctime=new Date(t.readUInt32LE(n+C)*1e3));break;case 28789:s="Info-ZIP Unicode Path Extra Field";var l=t.readUInt8(n);if(l===1){var C=1,u=t.readUInt32LE(n+C);C+=4;var d=t.slice(n+C);e.path=d.toString()}break;case 13:case 22613:s=i.extraId===13?"PKWARE Unix":"Info-ZIP UNIX (type 1)";var C=0;if(i.extraSize>=8){var f=new Date(t.readUInt32LE(n+C)*1e3);C+=4;var h=new Date(t.readUInt32LE(n+C)*1e3);if(C+=4,e.atime=f,e.mtime=h,i.extraSize>=12){var p=t.readUInt16LE(n+C);C+=2;var m=t.readUInt16LE(n+C);C+=2,e.uid=p,e.gid=m}}break;case 30805:s="Info-ZIP UNIX (type 2)";var C=0;if(i.extraSize>=4){var p=t.readUInt16LE(n+C);C+=2;var m=t.readUInt16LE(n+C);C+=2,e.uid=p,e.gid=m}break;case 30837:s="Info-ZIP New Unix";var C=0,A=t.readUInt8(n);if(C+=1,A===1){var E=t.readUInt8(n+C);C+=1,E<=6&&(e.uid=t.readUIntLE(n+C,E)),C+=E;var y=t.readUInt8(n+C);C+=1,y<=6&&(e.gid=t.readUIntLE(n+C,y))}break;case 30062:s="ASi Unix";var C=0;if(i.extraSize>=14){var w=t.readUInt32LE(n+C);C+=4;var B=t.readUInt16LE(n+C);C+=2;var P=t.readUInt32LE(n+C);C+=4;var p=t.readUInt16LE(n+C);C+=2;var m=t.readUInt16LE(n+C);if(C+=2,e.mode=B,e.uid=p,e.gid=m,i.extraSize>14){var U=n+C,N=n+i.extraSize-14,$=this._decodeString(t.slice(U,N));e.symlink=$}}break}this.options.debug&&r.debug.push({extraId:"0x"+i.extraId.toString(16),description:s,data:t.slice(n,n+i.extraSize).inspect()}),n+=i.extraSize}return r};ei.prototype._readDataDescriptor=function(t,e){if(e){var r=bf.parse(t).word32lu("dataDescriptorSignature").word32lu("crc32").word64lu("compressedSize").word64lu("uncompressedSize").vars;return r}var r=bf.parse(t).word32lu("dataDescriptorSignature").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").vars;return r};ei.prototype._readCentralDirectoryEntry=function(t){var e=bf.parse(t).word16lu("versionMadeBy").word16lu("versionsNeededToExtract").word16lu("flags").word16lu("compressionMethod").word16lu("lastModifiedTime").word16lu("lastModifiedDate").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").word16lu("fileNameLength").word16lu("extraFieldLength").word16lu("fileCommentLength").word16lu("diskNumber").word16lu("internalFileAttributes").word32lu("externalFileAttributes").word32lu("offsetToLocalFileHeader").vars;return e};ei.prototype._readEndOfCentralDirectory64=function(t){var e=bf.parse(t).word64lu("centralDirectoryRecordSize").word16lu("versionMadeBy").word16lu("versionsNeededToExtract").word32lu("diskNumber").word32lu("diskNumberWithCentralDirectoryStart").word64lu("centralDirectoryEntries").word64lu("totalCentralDirectoryEntries").word64lu("sizeOfCentralDirectory").word64lu("offsetToStartOfCentralDirectory").vars;return e};ei.prototype._readEndOfCentralDirectory=function(t){var e=bf.parse(t).word16lu("diskNumber").word16lu("diskStart").word16lu("centralDirectoryEntries").word16lu("totalCentralDirectoryEntries").word32lu("sizeOfCentralDirectory").word32lu("offsetToStartOfCentralDirectory").word16lu("commentLength").vars;return e};var lQt="\0\u263A\u263B\u2665\u2666\u2663\u2660\u2022\u25D8\u25CB\u25D9\u2642\u2640\u266A\u266B\u263C\u25BA\u25C4\u2195\u203C\xB6\xA7\u25AC\u21A8\u2191\u2193\u2192\u2190\u221F\u2194\u25B2\u25BC !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u2302\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xA2\xA3\xA5\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0 ";ei.prototype._decodeString=function(t,e){if(e)return t.toString("utf8");if(this.options.decodeString)return this.options.decodeString(t);let r="";for(var n=0;n0&&(this.data=this.data.slice(r),this.data.length!==0););if(this.state===ke.FILE_DATA){if(this.outStreamInfo.limit>=0){var n=this.outStreamInfo.limit-this.outStreamInfo.written,i;n{if(this.state===ke.FILE_DATA_END)return this.state=ke.START,s.end(e);e()})}return}e()};ei.prototype.drainAll=function(){this._drainAllEntries=!0};ei.prototype._transform=function(t,e,r){var n=this;n.data.length>0?n.data=Buffer.concat([n.data,t]):n.data=t;var i=n.data.length,s=o(function(){if(n.data.length>0&&n.data.length0){e._parseOrOutput("buffer",function(){if(e.data.length>0)return setImmediate(function(){e._flush(t)});t()});return}if(e.state===ke.FILE_DATA)return t(new Error("Stream finished in an invalid state, uncompression failed"));setImmediate(t)};LDe.exports=ei});var MDe=g((GNr,FDe)=>{var XI=require("stream").Transform,uQt=require("util"),dQt=tJ();function wf(t){if(!(this instanceof wf))return new wf(t);var e=t||{};XI.call(this,{readableObjectMode:!0}),this.opts=t||{},this.unzipStream=new dQt(this.opts);var r=this;this.unzipStream.on("entry",function(n){r.push(n)}),this.unzipStream.on("error",function(n){r.emit("error",n)})}o(wf,"ParserStream");uQt.inherits(wf,XI);wf.prototype._transform=function(t,e,r){this.unzipStream.write(t,e,r)};wf.prototype._flush=function(t){var e=this;this.unzipStream.end(function(){process.nextTick(function(){e.emit("close")}),t()})};wf.prototype.on=function(t,e){return t==="entry"?XI.prototype.on.call(this,"data",e):XI.prototype.on.call(this,t,e)};wf.prototype.drainAll=function(){return this.unzipStream.drainAll(),this.pipe(new XI({objectMode:!0,transform:o(function(t,e,r){r()},"transform")}))};FDe.exports=wf});var HDe=g((zNr,GDe)=>{var ZI=require("path"),UDe=require("fs"),qDe=parseInt("0777",8);GDe.exports=rE.mkdirp=rE.mkdirP=rE;function rE(t,e,r,n){typeof e=="function"?(r=e,e={}):(!e||typeof e!="object")&&(e={mode:e});var i=e.mode,s=e.fs||UDe;i===void 0&&(i=qDe),n||(n=null);var a=r||function(){};t=ZI.resolve(t),s.mkdir(t,i,function(c){if(!c)return n=n||t,a(null,n);switch(c.code){case"ENOENT":if(ZI.dirname(t)===t)return a(c);rE(ZI.dirname(t),e,function(l,u){l?a(l,u):rE(t,e,a,u)});break;default:s.stat(t,function(l,u){l||!u.isDirectory()?a(c,n):a(null,n)});break}})}o(rE,"mkdirP");rE.sync=o(function t(e,r,n){(!r||typeof r!="object")&&(r={mode:r});var i=r.mode,s=r.fs||UDe;i===void 0&&(i=qDe),n||(n=null),e=ZI.resolve(e);try{s.mkdirSync(e,i),n=n||e}catch(c){switch(c.code){case"ENOENT":n=t(ZI.dirname(e),r,n),t(e,r,n);break;default:var a;try{a=s.statSync(e)}catch{throw c}if(!a.isDirectory())throw c;break}}return n},"sync")});var jDe=g(($Nr,$De)=>{var fQt=require("fs"),zDe=require("path"),hQt=require("util"),pQt=HDe(),VDe=require("stream").Transform,AQt=tJ();function If(t){if(!(this instanceof If))return new If(t);VDe.call(this),this.opts=t||{},this.unzipStream=new AQt(this.opts),this.unfinishedEntries=0,this.afterFlushWait=!1,this.createdDirectories={};var e=this;this.unzipStream.on("entry",this._processEntry.bind(this)),this.unzipStream.on("error",function(r){e.emit("error",r)})}o(If,"Extract");hQt.inherits(If,VDe);If.prototype._transform=function(t,e,r){this.unzipStream.write(t,e,r)};If.prototype._flush=function(t){var e=this,r=o(function(){process.nextTick(function(){e.emit("close")}),t()},"allDone");this.unzipStream.end(function(){if(e.unfinishedEntries>0)return e.afterFlushWait=!0,e.on("await-finished",r);r()})};If.prototype._processEntry=function(t){var e=this,r=zDe.join(this.opts.path,t.path),n=t.isDirectory?r:zDe.dirname(r);this.unfinishedEntries++;var i=o(function(){var s=fQt.createWriteStream(r);s.on("close",function(){e.unfinishedEntries--,e._notifyAwaiter()}),s.on("error",function(a){e.emit("error",a)}),t.pipe(s)},"writeFileFn");if(this.createdDirectories[n]||n===".")return i();pQt(n,function(s){if(s)return e.emit("error",s);if(e.createdDirectories[n]=!0,t.isDirectory){e.unfinishedEntries--,e._notifyAwaiter();return}i()})};If.prototype._notifyAwaiter=function(){this.afterFlushWait&&this.unfinishedEntries===0&&(this.emit("await-finished"),this.afterFlushWait=!1)};$De.exports=If});var WDe=g(rJ=>{"use strict";rJ.Parse=MDe();rJ.Extract=jDe()});var sQe=g((iJ,sJ)=>{(function(t,e){typeof iJ=="object"&&typeof sJ<"u"?sJ.exports=e():typeof define=="function"&&define.amd?define(e):t.Bottleneck=e()})(iJ,(function(){"use strict";var t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function e(Ee){return Ee&&Ee.default||Ee}o(e,"getCjsExportFromNamespace");var r=o(function(Ee,O,x={}){var F,q,z;for(F in O)z=O[F],x[F]=(q=Ee[F])!=null?q:z;return x},"load"),n=o(function(Ee,O,x={}){var F,q;for(F in Ee)q=Ee[F],O[F]!==void 0&&(x[F]=q);return x},"overwrite"),i={load:r,overwrite:n},s;s=class{static{o(this,"DLList")}constructor(O,x){this.incr=O,this.decr=x,this._first=null,this._last=null,this.length=0}push(O){var x;this.length++,typeof this.incr=="function"&&this.incr(),x={value:O,prev:this._last,next:null},this._last!=null?(this._last.next=x,this._last=x):this._first=this._last=x}shift(){var O;if(this._first!=null)return this.length--,typeof this.decr=="function"&&this.decr(),O=this._first.value,(this._first=this._first.next)!=null?this._first.prev=null:this._last=null,O}first(){if(this._first!=null)return this._first.value}getArray(){var O,x,F;for(O=this._first,F=[];O!=null;)F.push((x=O,O=O.next,x.value));return F}forEachShift(O){var x;for(x=this.shift();x!=null;)O(x),x=this.shift()}debug(){var O,x,F,q,z;for(O=this._first,z=[];O!=null;)z.push((x=O,O=O.next,{value:x.value,prev:(F=x.prev)!=null?F.value:void 0,next:(q=x.next)!=null?q.value:void 0}));return z}};var a=s,c;c=class{static{o(this,"Events")}constructor(O){if(this.instance=O,this._events={},this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null)throw new Error("An Emitter already exists for this object");this.instance.on=(x,F)=>this._addListener(x,"many",F),this.instance.once=(x,F)=>this._addListener(x,"once",F),this.instance.removeAllListeners=(x=null)=>x!=null?delete this._events[x]:this._events={}}_addListener(O,x,F){var q;return(q=this._events)[O]==null&&(q[O]=[]),this._events[O].push({cb:F,status:x}),this.instance}listenerCount(O){return this._events[O]!=null?this._events[O].length:0}async trigger(O,...x){var F,q;try{return O!=="debug"&&this.trigger("debug",`Event triggered: ${O}`,x),this._events[O]==null?void 0:(this._events[O]=this._events[O].filter(function(z){return z.status!=="none"}),q=this._events[O].map(async z=>{var Y,Ae;if(z.status!=="none"){z.status==="once"&&(z.status="none");try{return Ae=typeof z.cb=="function"?z.cb(...x):void 0,typeof Ae?.then=="function"?await Ae:Ae}catch(Et){return Y=Et,this.trigger("error",Y),null}}}),(await Promise.all(q)).find(function(z){return z!=null}))}catch(z){return F=z,this.trigger("error",F),null}}};var l=c,u,d,f;u=a,d=l,f=class{static{o(this,"Queues")}constructor(O){var x;this.Events=new d(this),this._length=0,this._lists=(function(){var F,q,z;for(z=[],x=F=1,q=O;1<=q?F<=q:F>=q;x=1<=q?++F:--F)z.push(new u((()=>this.incr()),(()=>this.decr())));return z}).call(this)}incr(){if(this._length++===0)return this.Events.trigger("leftzero")}decr(){if(--this._length===0)return this.Events.trigger("zero")}push(O){return this._lists[O.options.priority].push(O)}queued(O){return O!=null?this._lists[O].length:this._length}shiftAll(O){return this._lists.forEach(function(x){return x.forEachShift(O)})}getFirst(O=this._lists){var x,F,q;for(x=0,F=O.length;x0)return q;return[]}shiftLastFrom(O){return this.getFirst(this._lists.slice(O).reverse()).shift()}};var h=f,p;p=class extends Error{static{o(this,"BottleneckError")}};var m=p,A,E,y,C,w;C=10,E=5,w=i,A=m,y=class{static{o(this,"Job")}constructor(O,x,F,q,z,Y,Ae,Et){this.task=O,this.args=x,this.rejectOnDrop=z,this.Events=Y,this._states=Ae,this.Promise=Et,this.options=w.load(F,q),this.options.priority=this._sanitizePriority(this.options.priority),this.options.id===q.id&&(this.options.id=`${this.options.id}-${this._randomIndex()}`),this.promise=new this.Promise((Kr,Vt)=>{this._resolve=Kr,this._reject=Vt}),this.retryCount=0}_sanitizePriority(O){var x;return x=~~O!==O?E:O,x<0?0:x>C-1?C-1:x}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:O,message:x="This job has been dropped by Bottleneck"}={}){return this._states.remove(this.options.id)?(this.rejectOnDrop&&this._reject(O??new A(x)),this.Events.trigger("dropped",{args:this.args,options:this.options,task:this.task,promise:this.promise}),!0):!1}_assertStatus(O){var x;if(x=this._states.jobStatus(this.options.id),!(x===O||O==="DONE"&&x===null))throw new A(`Invalid job status ${x}, expected ${O}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}doReceive(){return this._states.start(this.options.id),this.Events.trigger("received",{args:this.args,options:this.options})}doQueue(O,x){return this._assertStatus("RECEIVED"),this._states.next(this.options.id),this.Events.trigger("queued",{args:this.args,options:this.options,reachedHWM:O,blocked:x})}doRun(){return this.retryCount===0?(this._assertStatus("QUEUED"),this._states.next(this.options.id)):this._assertStatus("EXECUTING"),this.Events.trigger("scheduled",{args:this.args,options:this.options})}async doExecute(O,x,F,q){var z,Y,Ae;this.retryCount===0?(this._assertStatus("RUNNING"),this._states.next(this.options.id)):this._assertStatus("EXECUTING"),Y={args:this.args,options:this.options,retryCount:this.retryCount},this.Events.trigger("executing",Y);try{if(Ae=await(O!=null?O.schedule(this.options,this.task,...this.args):this.task(...this.args)),x())return this.doDone(Y),await q(this.options,Y),this._assertStatus("DONE"),this._resolve(Ae)}catch(Et){return z=Et,this._onFailure(z,Y,x,F,q)}}doExpire(O,x,F){var q,z;return this._states.jobStatus(this.options.id==="RUNNING")&&this._states.next(this.options.id),this._assertStatus("EXECUTING"),z={args:this.args,options:this.options,retryCount:this.retryCount},q=new A(`This job timed out after ${this.options.expiration} ms.`),this._onFailure(q,z,O,x,F)}async _onFailure(O,x,F,q,z){var Y,Ae;if(F())return Y=await this.Events.trigger("failed",O,x),Y!=null?(Ae=~~Y,this.Events.trigger("retry",`Retrying ${this.options.id} after ${Ae} ms`,x),this.retryCount++,q(Ae)):(this.doDone(x),await z(this.options,x),this._assertStatus("DONE"),this._reject(O))}doDone(O){return this._assertStatus("EXECUTING"),this._states.next(this.options.id),this.Events.trigger("done",O)}};var B=y,P,U,N;N=i,P=m,U=class{static{o(this,"LocalDatastore")}constructor(O,x,F){this.instance=O,this.storeOptions=x,this.clientId=this.instance._randomIndex(),N.load(F,F,this),this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now(),this._running=0,this._done=0,this._unblockTime=0,this.ready=this.Promise.resolve(),this.clients={},this._startHeartbeat()}_startHeartbeat(){var O;return this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)?typeof(O=this.heartbeat=setInterval(()=>{var x,F,q,z,Y;if(z=Date.now(),this.storeOptions.reservoirRefreshInterval!=null&&z>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval&&(this._lastReservoirRefresh=z,this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount,this.instance._drainAll(this.computeCapacity())),this.storeOptions.reservoirIncreaseInterval!=null&&z>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval&&({reservoirIncreaseAmount:x,reservoirIncreaseMaximum:q,reservoir:Y}=this.storeOptions,this._lastReservoirIncrease=z,F=q!=null?Math.min(x,q-Y):x,F>0))return this.storeOptions.reservoir+=F,this.instance._drainAll(this.computeCapacity())},this.heartbeatInterval)).unref=="function"?O.unref():void 0:clearInterval(this.heartbeat)}async __publish__(O){return await this.yieldLoop(),this.instance.Events.trigger("message",O.toString())}async __disconnect__(O){return await this.yieldLoop(),clearInterval(this.heartbeat),this.Promise.resolve()}yieldLoop(O=0){return new this.Promise(function(x,F){return setTimeout(x,O)})}computePenalty(){var O;return(O=this.storeOptions.penalty)!=null?O:15*this.storeOptions.minTime||5e3}async __updateSettings__(O){return await this.yieldLoop(),N.overwrite(O,O,this.storeOptions),this._startHeartbeat(),this.instance._drainAll(this.computeCapacity()),!0}async __running__(){return await this.yieldLoop(),this._running}async __queued__(){return await this.yieldLoop(),this.instance.queued()}async __done__(){return await this.yieldLoop(),this._done}async __groupCheck__(O){return await this.yieldLoop(),this._nextRequest+this.timeout=O}check(O,x){return this.conditionsCheck(O)&&this._nextRequest-x<=0}async __check__(O){var x;return await this.yieldLoop(),x=Date.now(),this.check(O,x)}async __register__(O,x,F){var q,z;return await this.yieldLoop(),q=Date.now(),this.conditionsCheck(x)?(this._running+=x,this.storeOptions.reservoir!=null&&(this.storeOptions.reservoir-=x),z=Math.max(this._nextRequest-q,0),this._nextRequest=q+z+this.storeOptions.minTime,{success:!0,wait:z,reservoir:this.storeOptions.reservoir}):{success:!1}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(O,x){var F,q,z;if(await this.yieldLoop(),this.storeOptions.maxConcurrent!=null&&x>this.storeOptions.maxConcurrent)throw new P(`Impossible to add a job having a weight of ${x} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`);return q=Date.now(),z=this.storeOptions.highWater!=null&&O===this.storeOptions.highWater&&!this.check(x,q),F=this.strategyIsBlock()&&(z||this.isBlocked(q)),F&&(this._unblockTime=q+this.computePenalty(),this._nextRequest=this._unblockTime+this.storeOptions.minTime,this.instance._dropAllQueued()),{reachedHWM:z,blocked:F,strategy:this.storeOptions.strategy}}async __free__(O,x){return await this.yieldLoop(),this._running-=x,this._done+=x,this.instance._drainAll(this.computeCapacity()),{running:this._running}}};var $=U,Q,H;Q=m,H=class{static{o(this,"States")}constructor(O){this.status=O,this._jobs={},this.counts=this.status.map(function(){return 0})}next(O){var x,F;if(x=this._jobs[O],F=x+1,x!=null&&F(O[this.status[F]]=x,O)),{})}};var V=H,W,ue;W=a,ue=class{static{o(this,"Sync")}constructor(O,x){this.schedule=this.schedule.bind(this),this.name=O,this.Promise=x,this._running=0,this._queue=new W}isEmpty(){return this._queue.length===0}async _tryToRun(){var O,x,F,q,z,Y,Ae;if(this._running<1&&this._queue.length>0)return this._running++,{task:Ae,args:O,resolve:z,reject:q}=this._queue.shift(),x=await(async function(){try{return Y=await Ae(...O),function(){return z(Y)}}catch(Et){return F=Et,function(){return q(F)}}})(),this._running--,this._tryToRun(),x()}schedule(O,...x){var F,q,z;return z=q=null,F=new this.Promise(function(Y,Ae){return z=Y,q=Ae}),this._queue.push({task:O,args:x,resolve:z,reject:q}),this._tryToRun(),F}};var de=ue,Se="2.19.5",K={version:Se},fe=Object.freeze({version:Se,default:K}),Tt=o(()=>console.log("You must import the full version of Bottleneck in order to use this feature."),"require$$2"),yt=o(()=>console.log("You must import the full version of Bottleneck in order to use this feature."),"require$$3"),sr=o(()=>console.log("You must import the full version of Bottleneck in order to use this feature."),"require$$4"),or,Ji,bi,tc,Gf,ti;ti=i,or=l,tc=Tt,bi=yt,Gf=sr,Ji=(function(){class Ee{static{o(this,"Group")}constructor(x={}){this.deleteKey=this.deleteKey.bind(this),this.limiterOptions=x,ti.load(this.limiterOptions,this.defaults,this),this.Events=new or(this),this.instances={},this.Bottleneck=ha,this._startAutoCleanup(),this.sharedConnection=this.connection!=null,this.connection==null&&(this.limiterOptions.datastore==="redis"?this.connection=new tc(Object.assign({},this.limiterOptions,{Events:this.Events})):this.limiterOptions.datastore==="ioredis"&&(this.connection=new bi(Object.assign({},this.limiterOptions,{Events:this.Events}))))}key(x=""){var F;return(F=this.instances[x])!=null?F:(()=>{var q;return q=this.instances[x]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${x}`,timeout:this.timeout,connection:this.connection})),this.Events.trigger("created",q,x),q})()}async deleteKey(x=""){var F,q;return q=this.instances[x],this.connection&&(F=await this.connection.__runCommand__(["del",...Gf.allKeys(`${this.id}-${x}`)])),q!=null&&(delete this.instances[x],await q.disconnect()),q!=null||F>0}limiters(){var x,F,q,z;F=this.instances,q=[];for(x in F)z=F[x],q.push({key:x,limiter:z});return q}keys(){return Object.keys(this.instances)}async clusterKeys(){var x,F,q,z,Y,Ae,Et,Kr,Vt;if(this.connection==null)return this.Promise.resolve(this.keys());for(Ae=[],x=null,Vt=`b_${this.id}-`.length,F=9;x!==0;)for([Kr,q]=await this.connection.__runCommand__(["scan",x??0,"match",`b_${this.id}-*_settings`,"count",1e4]),x=~~Kr,z=0,Et=q.length;z{var F,q,z,Y,Ae,Et;Ae=Date.now(),z=this.instances,Y=[];for(q in z){Et=z[q];try{await Et._store.__groupCheck__(Ae)?Y.push(this.deleteKey(q)):Y.push(void 0)}catch(Kr){F=Kr,Y.push(Et.Events.trigger("error",F))}}return Y},this.timeout/2)).unref=="function"?x.unref():void 0}updateSettings(x={}){if(ti.overwrite(x,this.defaults,this),ti.overwrite(x,x,this.limiterOptions),x.timeout!=null)return this._startAutoCleanup()}disconnect(x=!0){var F;if(!this.sharedConnection)return(F=this.connection)!=null?F.disconnect(x):void 0}}return Ee.prototype.defaults={timeout:1e3*60*5,connection:null,Promise,id:"group-key"},Ee}).call(t);var oP=Ji,wA,WE,Fl;Fl=i,WE=l,wA=(function(){class Ee{static{o(this,"Batcher")}constructor(x={}){this.options=x,Fl.load(this.options,this.defaults,this),this.Events=new WE(this),this._arr=[],this._resetPromise(),this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise((x,F)=>this._resolve=x)}_flush(){return clearTimeout(this._timeout),this._lastFlush=Date.now(),this._resolve(),this.Events.trigger("batch",this._arr),this._arr=[],this._resetPromise()}add(x){var F;return this._arr.push(x),F=this._promise,this._arr.length===this.maxSize?this._flush():this.maxTime!=null&&this._arr.length===1&&(this._timeout=setTimeout(()=>this._flush(),this.maxTime)),F}}return Ee.prototype.defaults={maxTime:null,maxSize:null,Promise},Ee}).call(t);var ed=wA,JE=o(()=>console.log("You must import the full version of Bottleneck in order to use this feature."),"require$$4$1"),aP=e(fe),QS,kS,YE,KE,PS,IA,OS,XE,SA,BA,Bs,LS=[].splice;IA=10,kS=5,Bs=i,OS=h,KE=B,PS=$,XE=JE,YE=l,SA=V,BA=de,QS=(function(){class Ee{static{o(this,"Bottleneck")}constructor(x={},...F){var q,z;this._addToQueue=this._addToQueue.bind(this),this._validateOptions(x,F),Bs.load(x,this.instanceDefaults,this),this._queues=new OS(IA),this._scheduled={},this._states=new SA(["RECEIVED","QUEUED","RUNNING","EXECUTING"].concat(this.trackDoneStatus?["DONE"]:[])),this._limiter=null,this.Events=new YE(this),this._submitLock=new BA("submit",this.Promise),this._registerLock=new BA("register",this.Promise),z=Bs.load(x,this.storeDefaults,{}),this._store=(function(){if(this.datastore==="redis"||this.datastore==="ioredis"||this.connection!=null)return q=Bs.load(x,this.redisStoreDefaults,{}),new XE(this,z,q);if(this.datastore==="local")return q=Bs.load(x,this.localStoreDefaults,{}),new PS(this,z,q);throw new Ee.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}).call(this),this._queues.on("leftzero",()=>{var Y;return(Y=this._store.heartbeat)!=null&&typeof Y.ref=="function"?Y.ref():void 0}),this._queues.on("zero",()=>{var Y;return(Y=this._store.heartbeat)!=null&&typeof Y.unref=="function"?Y.unref():void 0})}_validateOptions(x,F){if(!(x!=null&&typeof x=="object"&&F.length===0))throw new Ee.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.")}ready(){return this._store.ready}clients(){return this._store.clients}channel(){return`b_${this.id}`}channel_client(){return`b_${this.id}_${this._store.clientId}`}publish(x){return this._store.__publish__(x)}disconnect(x=!0){return this._store.__disconnect__(x)}chain(x){return this._limiter=x,this}queued(x){return this._queues.queued(x)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(x){return this._states.jobStatus(x)}jobs(x){return this._states.statusJobs(x)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(x=1){return this._store.__check__(x)}_clearGlobalState(x){return this._scheduled[x]!=null?(clearTimeout(this._scheduled[x].expiration),delete this._scheduled[x],!0):!1}async _free(x,F,q,z){var Y,Ae;try{if({running:Ae}=await this._store.__free__(x,q.weight),this.Events.trigger("debug",`Freed ${q.id}`,z),Ae===0&&this.empty())return this.Events.trigger("idle")}catch(Et){return Y=Et,this.Events.trigger("error",Y)}}_run(x,F,q){var z,Y,Ae;return F.doRun(),z=this._clearGlobalState.bind(this,x),Ae=this._run.bind(this,x,F),Y=this._free.bind(this,x,F),this._scheduled[x]={timeout:setTimeout(()=>F.doExecute(this._limiter,z,Ae,Y),q),expiration:F.options.expiration!=null?setTimeout(function(){return F.doExpire(z,Ae,Y)},q+F.options.expiration):void 0,job:F}}_drainOne(x){return this._registerLock.schedule(()=>{var F,q,z,Y,Ae;return this.queued()===0?this.Promise.resolve(null):(Ae=this._queues.getFirst(),{options:Y,args:F}=z=Ae.first(),x!=null&&Y.weight>x?this.Promise.resolve(null):(this.Events.trigger("debug",`Draining ${Y.id}`,{args:F,options:Y}),q=this._randomIndex(),this._store.__register__(q,Y.weight,Y.expiration).then(({success:Et,wait:Kr,reservoir:Vt})=>{var Hf;return this.Events.trigger("debug",`Drained ${Y.id}`,{success:Et,args:F,options:Y}),Et?(Ae.shift(),Hf=this.empty(),Hf&&this.Events.trigger("empty"),Vt===0&&this.Events.trigger("depleted",Hf),this._run(q,z,Kr),this.Promise.resolve(Y.weight)):this.Promise.resolve(null)})))})}_drainAll(x,F=0){return this._drainOne(x).then(q=>{var z;return q!=null?(z=x!=null?x-q:x,this._drainAll(z,F+q)):this.Promise.resolve(F)}).catch(q=>this.Events.trigger("error",q))}_dropAllQueued(x){return this._queues.shiftAll(function(F){return F.doDrop({message:x})})}stop(x={}){var F,q;return x=Bs.load(x,this.stopDefaults),q=o(z=>{var Y;return Y=o(()=>{var Ae;return Ae=this._states.counts,Ae[0]+Ae[1]+Ae[2]+Ae[3]===z},"finished"),new this.Promise((Ae,Et)=>Y()?Ae():this.on("done",()=>{if(Y())return this.removeAllListeners("done"),Ae()}))},"waitForExecuting"),F=x.dropWaitingJobs?(this._run=function(z,Y){return Y.doDrop({message:x.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule(()=>this._submitLock.schedule(()=>{var z,Y,Ae;Y=this._scheduled;for(z in Y)Ae=Y[z],this.jobStatus(Ae.job.options.id)==="RUNNING"&&(clearTimeout(Ae.timeout),clearTimeout(Ae.expiration),Ae.job.doDrop({message:x.dropErrorMessage}));return this._dropAllQueued(x.dropErrorMessage),q(0)}))):this.schedule({priority:IA-1,weight:0},()=>q(1)),this._receive=function(z){return z._reject(new Ee.prototype.BottleneckError(x.enqueueErrorMessage))},this.stop=()=>this.Promise.reject(new Ee.prototype.BottleneckError("stop() has already been called")),F}async _addToQueue(x){var F,q,z,Y,Ae,Et,Kr;({args:F,options:Y}=x);try{({reachedHWM:Ae,blocked:q,strategy:Kr}=await this._store.__submit__(this.queued(),Y.weight))}catch(Vt){return z=Vt,this.Events.trigger("debug",`Could not queue ${Y.id}`,{args:F,options:Y,error:z}),x.doDrop({error:z}),!1}return q?(x.doDrop(),!0):Ae&&(Et=Kr===Ee.prototype.strategy.LEAK?this._queues.shiftLastFrom(Y.priority):Kr===Ee.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(Y.priority+1):Kr===Ee.prototype.strategy.OVERFLOW?x:void 0,Et?.doDrop(),Et==null||Kr===Ee.prototype.strategy.OVERFLOW)?(Et==null&&x.doDrop(),Ae):(x.doQueue(Ae,q),this._queues.push(x),await this._drainAll(),Ae)}_receive(x){return this._states.jobStatus(x.options.id)!=null?(x._reject(new Ee.prototype.BottleneckError(`A job with the same id already exists (id=${x.options.id})`)),!1):(x.doReceive(),this._submitLock.schedule(this._addToQueue,x))}submit(...x){var F,q,z,Y,Ae,Et,Kr;return typeof x[0]=="function"?(Ae=x,[q,...x]=Ae,[F]=LS.call(x,-1),Y=Bs.load({},this.jobDefaults)):(Et=x,[Y,q,...x]=Et,[F]=LS.call(x,-1),Y=Bs.load(Y,this.jobDefaults)),Kr=o((...Vt)=>new this.Promise(function(Hf,xA){return q(...Vt,function(...FS){return(FS[0]!=null?xA:Hf)(FS)})}),"task"),z=new KE(Kr,x,Y,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),z.promise.then(function(Vt){return typeof F=="function"?F(...Vt):void 0}).catch(function(Vt){return Array.isArray(Vt)?typeof F=="function"?F(...Vt):void 0:typeof F=="function"?F(Vt):void 0}),this._receive(z)}schedule(...x){var F,q,z;return typeof x[0]=="function"?([z,...x]=x,q={}):[q,z,...x]=x,F=new KE(z,x,q,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),this._receive(F),F.promise}wrap(x){var F,q;return F=this.schedule.bind(this),q=o(function(...z){return F(x.bind(this),...z)},"wrapped"),q.withOptions=function(z,...Y){return F(z,x,...Y)},q}async updateSettings(x={}){return await this._store.__updateSettings__(Bs.overwrite(x,this.storeDefaults)),Bs.overwrite(x,this.instanceDefaults,this),this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(x=0){return this._store.__incrementReservoir__(x)}}return Ee.default=Ee,Ee.Events=YE,Ee.version=Ee.prototype.version=aP.version,Ee.strategy=Ee.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3},Ee.BottleneckError=Ee.prototype.BottleneckError=m,Ee.Group=Ee.prototype.Group=oP,Ee.RedisConnection=Ee.prototype.RedisConnection=Tt,Ee.IORedisConnection=Ee.prototype.IORedisConnection=yt,Ee.Batcher=Ee.prototype.Batcher=ed,Ee.prototype.jobDefaults={priority:kS,weight:1,expiration:null,id:""},Ee.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:Ee.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null},Ee.prototype.localStoreDefaults={Promise,timeout:null,heartbeatInterval:250},Ee.prototype.redisStoreDefaults={Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:!1,connection:null},Ee.prototype.instanceDefaults={datastore:"local",connection:null,id:"",rejectOnDrop:!0,trackDoneStatus:!1,Promise},Ee.prototype.stopDefaults={enqueueErrorMessage:"This limiter has been stopped and cannot accept new jobs.",dropWaitingJobs:!0,dropErrorMessage:"This limiter has been stopped."},Ee}).call(t);var ha=QS,ZE=ha;return ZE}))});var d1=g(Bf=>{"use strict";Object.defineProperty(Bf,"__esModule",{value:!0});Bf.Signature=Bf.Envelope=void 0;Bf.Envelope={fromJSON(t){return{payload:u1(t.payload)?Buffer.from(c1e(t.payload)):Buffer.alloc(0),payloadType:u1(t.payloadType)?globalThis.String(t.payloadType):"",signatures:globalThis.Array.isArray(t?.signatures)?t.signatures.map(e=>Bf.Signature.fromJSON(e)):[]}},toJSON(t){let e={};return t.payload.length!==0&&(e.payload=l1e(t.payload)),t.payloadType!==""&&(e.payloadType=t.payloadType),t.signatures?.length&&(e.signatures=t.signatures.map(r=>Bf.Signature.toJSON(r))),e}};Bf.Signature={fromJSON(t){return{sig:u1(t.sig)?Buffer.from(c1e(t.sig)):Buffer.alloc(0),keyid:u1(t.keyid)?globalThis.String(t.keyid):""}},toJSON(t){let e={};return t.sig.length!==0&&(e.sig=l1e(t.sig)),t.keyid!==""&&(e.keyid=t.keyid),e}};function c1e(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(c1e,"bytesFromBase64");function l1e(t){return globalThis.Buffer.from(t).toString("base64")}o(l1e,"base64FromBytes");function u1(t){return t!=null}o(u1,"isSet")});var d1e=g(f1=>{"use strict";Object.defineProperty(f1,"__esModule",{value:!0});f1.Timestamp=void 0;f1.Timestamp={fromJSON(t){return{seconds:u1e(t.seconds)?globalThis.String(t.seconds):"0",nanos:u1e(t.nanos)?globalThis.Number(t.nanos):0}},toJSON(t){let e={};return t.seconds!=="0"&&(e.seconds=t.seconds),t.nanos!==0&&(e.nanos=Math.round(t.nanos)),e}};function u1e(t){return t!=null}o(u1e,"isSet")});var Vu=g(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.TimeRange=Me.X509CertificateChain=Me.SubjectAlternativeName=Me.X509Certificate=Me.DistinguishedName=Me.ObjectIdentifierValuePair=Me.ObjectIdentifier=Me.PublicKeyIdentifier=Me.PublicKey=Me.RFC3161SignedTimestamp=Me.LogId=Me.MessageSignature=Me.HashOutput=Me.SubjectAlternativeNameType=Me.PublicKeyDetails=Me.HashAlgorithm=void 0;Me.hashAlgorithmFromJSON=h1e;Me.hashAlgorithmToJSON=p1e;Me.publicKeyDetailsFromJSON=A1e;Me.publicKeyDetailsToJSON=m1e;Me.subjectAlternativeNameTypeFromJSON=g1e;Me.subjectAlternativeNameTypeToJSON=y1e;var Wkt=d1e(),Es;(function(t){t[t.HASH_ALGORITHM_UNSPECIFIED=0]="HASH_ALGORITHM_UNSPECIFIED",t[t.SHA2_256=1]="SHA2_256",t[t.SHA2_384=2]="SHA2_384",t[t.SHA2_512=3]="SHA2_512",t[t.SHA3_256=4]="SHA3_256",t[t.SHA3_384=5]="SHA3_384"})(Es||(Me.HashAlgorithm=Es={}));function h1e(t){switch(t){case 0:case"HASH_ALGORITHM_UNSPECIFIED":return Es.HASH_ALGORITHM_UNSPECIFIED;case 1:case"SHA2_256":return Es.SHA2_256;case 2:case"SHA2_384":return Es.SHA2_384;case 3:case"SHA2_512":return Es.SHA2_512;case 4:case"SHA3_256":return Es.SHA3_256;case 5:case"SHA3_384":return Es.SHA3_384;default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum HashAlgorithm")}}o(h1e,"hashAlgorithmFromJSON");function p1e(t){switch(t){case Es.HASH_ALGORITHM_UNSPECIFIED:return"HASH_ALGORITHM_UNSPECIFIED";case Es.SHA2_256:return"SHA2_256";case Es.SHA2_384:return"SHA2_384";case Es.SHA2_512:return"SHA2_512";case Es.SHA3_256:return"SHA3_256";case Es.SHA3_384:return"SHA3_384";default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum HashAlgorithm")}}o(p1e,"hashAlgorithmToJSON");var Fe;(function(t){t[t.PUBLIC_KEY_DETAILS_UNSPECIFIED=0]="PUBLIC_KEY_DETAILS_UNSPECIFIED",t[t.PKCS1_RSA_PKCS1V5=1]="PKCS1_RSA_PKCS1V5",t[t.PKCS1_RSA_PSS=2]="PKCS1_RSA_PSS",t[t.PKIX_RSA_PKCS1V5=3]="PKIX_RSA_PKCS1V5",t[t.PKIX_RSA_PSS=4]="PKIX_RSA_PSS",t[t.PKIX_RSA_PKCS1V15_2048_SHA256=9]="PKIX_RSA_PKCS1V15_2048_SHA256",t[t.PKIX_RSA_PKCS1V15_3072_SHA256=10]="PKIX_RSA_PKCS1V15_3072_SHA256",t[t.PKIX_RSA_PKCS1V15_4096_SHA256=11]="PKIX_RSA_PKCS1V15_4096_SHA256",t[t.PKIX_RSA_PSS_2048_SHA256=16]="PKIX_RSA_PSS_2048_SHA256",t[t.PKIX_RSA_PSS_3072_SHA256=17]="PKIX_RSA_PSS_3072_SHA256",t[t.PKIX_RSA_PSS_4096_SHA256=18]="PKIX_RSA_PSS_4096_SHA256",t[t.PKIX_ECDSA_P256_HMAC_SHA_256=6]="PKIX_ECDSA_P256_HMAC_SHA_256",t[t.PKIX_ECDSA_P256_SHA_256=5]="PKIX_ECDSA_P256_SHA_256",t[t.PKIX_ECDSA_P384_SHA_384=12]="PKIX_ECDSA_P384_SHA_384",t[t.PKIX_ECDSA_P521_SHA_512=13]="PKIX_ECDSA_P521_SHA_512",t[t.PKIX_ED25519=7]="PKIX_ED25519",t[t.PKIX_ED25519_PH=8]="PKIX_ED25519_PH",t[t.PKIX_ECDSA_P384_SHA_256=19]="PKIX_ECDSA_P384_SHA_256",t[t.PKIX_ECDSA_P521_SHA_256=20]="PKIX_ECDSA_P521_SHA_256",t[t.LMS_SHA256=14]="LMS_SHA256",t[t.LMOTS_SHA256=15]="LMOTS_SHA256",t[t.ML_DSA_65=21]="ML_DSA_65",t[t.ML_DSA_87=22]="ML_DSA_87"})(Fe||(Me.PublicKeyDetails=Fe={}));function A1e(t){switch(t){case 0:case"PUBLIC_KEY_DETAILS_UNSPECIFIED":return Fe.PUBLIC_KEY_DETAILS_UNSPECIFIED;case 1:case"PKCS1_RSA_PKCS1V5":return Fe.PKCS1_RSA_PKCS1V5;case 2:case"PKCS1_RSA_PSS":return Fe.PKCS1_RSA_PSS;case 3:case"PKIX_RSA_PKCS1V5":return Fe.PKIX_RSA_PKCS1V5;case 4:case"PKIX_RSA_PSS":return Fe.PKIX_RSA_PSS;case 9:case"PKIX_RSA_PKCS1V15_2048_SHA256":return Fe.PKIX_RSA_PKCS1V15_2048_SHA256;case 10:case"PKIX_RSA_PKCS1V15_3072_SHA256":return Fe.PKIX_RSA_PKCS1V15_3072_SHA256;case 11:case"PKIX_RSA_PKCS1V15_4096_SHA256":return Fe.PKIX_RSA_PKCS1V15_4096_SHA256;case 16:case"PKIX_RSA_PSS_2048_SHA256":return Fe.PKIX_RSA_PSS_2048_SHA256;case 17:case"PKIX_RSA_PSS_3072_SHA256":return Fe.PKIX_RSA_PSS_3072_SHA256;case 18:case"PKIX_RSA_PSS_4096_SHA256":return Fe.PKIX_RSA_PSS_4096_SHA256;case 6:case"PKIX_ECDSA_P256_HMAC_SHA_256":return Fe.PKIX_ECDSA_P256_HMAC_SHA_256;case 5:case"PKIX_ECDSA_P256_SHA_256":return Fe.PKIX_ECDSA_P256_SHA_256;case 12:case"PKIX_ECDSA_P384_SHA_384":return Fe.PKIX_ECDSA_P384_SHA_384;case 13:case"PKIX_ECDSA_P521_SHA_512":return Fe.PKIX_ECDSA_P521_SHA_512;case 7:case"PKIX_ED25519":return Fe.PKIX_ED25519;case 8:case"PKIX_ED25519_PH":return Fe.PKIX_ED25519_PH;case 19:case"PKIX_ECDSA_P384_SHA_256":return Fe.PKIX_ECDSA_P384_SHA_256;case 20:case"PKIX_ECDSA_P521_SHA_256":return Fe.PKIX_ECDSA_P521_SHA_256;case 14:case"LMS_SHA256":return Fe.LMS_SHA256;case 15:case"LMOTS_SHA256":return Fe.LMOTS_SHA256;case 21:case"ML_DSA_65":return Fe.ML_DSA_65;case 22:case"ML_DSA_87":return Fe.ML_DSA_87;default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum PublicKeyDetails")}}o(A1e,"publicKeyDetailsFromJSON");function m1e(t){switch(t){case Fe.PUBLIC_KEY_DETAILS_UNSPECIFIED:return"PUBLIC_KEY_DETAILS_UNSPECIFIED";case Fe.PKCS1_RSA_PKCS1V5:return"PKCS1_RSA_PKCS1V5";case Fe.PKCS1_RSA_PSS:return"PKCS1_RSA_PSS";case Fe.PKIX_RSA_PKCS1V5:return"PKIX_RSA_PKCS1V5";case Fe.PKIX_RSA_PSS:return"PKIX_RSA_PSS";case Fe.PKIX_RSA_PKCS1V15_2048_SHA256:return"PKIX_RSA_PKCS1V15_2048_SHA256";case Fe.PKIX_RSA_PKCS1V15_3072_SHA256:return"PKIX_RSA_PKCS1V15_3072_SHA256";case Fe.PKIX_RSA_PKCS1V15_4096_SHA256:return"PKIX_RSA_PKCS1V15_4096_SHA256";case Fe.PKIX_RSA_PSS_2048_SHA256:return"PKIX_RSA_PSS_2048_SHA256";case Fe.PKIX_RSA_PSS_3072_SHA256:return"PKIX_RSA_PSS_3072_SHA256";case Fe.PKIX_RSA_PSS_4096_SHA256:return"PKIX_RSA_PSS_4096_SHA256";case Fe.PKIX_ECDSA_P256_HMAC_SHA_256:return"PKIX_ECDSA_P256_HMAC_SHA_256";case Fe.PKIX_ECDSA_P256_SHA_256:return"PKIX_ECDSA_P256_SHA_256";case Fe.PKIX_ECDSA_P384_SHA_384:return"PKIX_ECDSA_P384_SHA_384";case Fe.PKIX_ECDSA_P521_SHA_512:return"PKIX_ECDSA_P521_SHA_512";case Fe.PKIX_ED25519:return"PKIX_ED25519";case Fe.PKIX_ED25519_PH:return"PKIX_ED25519_PH";case Fe.PKIX_ECDSA_P384_SHA_256:return"PKIX_ECDSA_P384_SHA_256";case Fe.PKIX_ECDSA_P521_SHA_256:return"PKIX_ECDSA_P521_SHA_256";case Fe.LMS_SHA256:return"LMS_SHA256";case Fe.LMOTS_SHA256:return"LMOTS_SHA256";case Fe.ML_DSA_65:return"ML_DSA_65";case Fe.ML_DSA_87:return"ML_DSA_87";default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum PublicKeyDetails")}}o(m1e,"publicKeyDetailsToJSON");var Il;(function(t){t[t.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED=0]="SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED",t[t.EMAIL=1]="EMAIL",t[t.URI=2]="URI",t[t.OTHER_NAME=3]="OTHER_NAME"})(Il||(Me.SubjectAlternativeNameType=Il={}));function g1e(t){switch(t){case 0:case"SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED":return Il.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED;case 1:case"EMAIL":return Il.EMAIL;case 2:case"URI":return Il.URI;case 3:case"OTHER_NAME":return Il.OTHER_NAME;default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum SubjectAlternativeNameType")}}o(g1e,"subjectAlternativeNameTypeFromJSON");function y1e(t){switch(t){case Il.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED:return"SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED";case Il.EMAIL:return"EMAIL";case Il.URI:return"URI";case Il.OTHER_NAME:return"OTHER_NAME";default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum SubjectAlternativeNameType")}}o(y1e,"subjectAlternativeNameTypeToJSON");Me.HashOutput={fromJSON(t){return{algorithm:an(t.algorithm)?h1e(t.algorithm):0,digest:an(t.digest)?Buffer.from(iA(t.digest)):Buffer.alloc(0)}},toJSON(t){let e={};return t.algorithm!==0&&(e.algorithm=p1e(t.algorithm)),t.digest.length!==0&&(e.digest=sA(t.digest)),e}};Me.MessageSignature={fromJSON(t){return{messageDigest:an(t.messageDigest)?Me.HashOutput.fromJSON(t.messageDigest):void 0,signature:an(t.signature)?Buffer.from(iA(t.signature)):Buffer.alloc(0)}},toJSON(t){let e={};return t.messageDigest!==void 0&&(e.messageDigest=Me.HashOutput.toJSON(t.messageDigest)),t.signature.length!==0&&(e.signature=sA(t.signature)),e}};Me.LogId={fromJSON(t){return{keyId:an(t.keyId)?Buffer.from(iA(t.keyId)):Buffer.alloc(0)}},toJSON(t){let e={};return t.keyId.length!==0&&(e.keyId=sA(t.keyId)),e}};Me.RFC3161SignedTimestamp={fromJSON(t){return{signedTimestamp:an(t.signedTimestamp)?Buffer.from(iA(t.signedTimestamp)):Buffer.alloc(0)}},toJSON(t){let e={};return t.signedTimestamp.length!==0&&(e.signedTimestamp=sA(t.signedTimestamp)),e}};Me.PublicKey={fromJSON(t){return{rawBytes:an(t.rawBytes)?Buffer.from(iA(t.rawBytes)):void 0,keyDetails:an(t.keyDetails)?A1e(t.keyDetails):0,validFor:an(t.validFor)?Me.TimeRange.fromJSON(t.validFor):void 0}},toJSON(t){let e={};return t.rawBytes!==void 0&&(e.rawBytes=sA(t.rawBytes)),t.keyDetails!==0&&(e.keyDetails=m1e(t.keyDetails)),t.validFor!==void 0&&(e.validFor=Me.TimeRange.toJSON(t.validFor)),e}};Me.PublicKeyIdentifier={fromJSON(t){return{hint:an(t.hint)?globalThis.String(t.hint):""}},toJSON(t){let e={};return t.hint!==""&&(e.hint=t.hint),e}};Me.ObjectIdentifier={fromJSON(t){return{id:globalThis.Array.isArray(t?.id)?t.id.map(e=>globalThis.Number(e)):[]}},toJSON(t){let e={};return t.id?.length&&(e.id=t.id.map(r=>Math.round(r))),e}};Me.ObjectIdentifierValuePair={fromJSON(t){return{oid:an(t.oid)?Me.ObjectIdentifier.fromJSON(t.oid):void 0,value:an(t.value)?Buffer.from(iA(t.value)):Buffer.alloc(0)}},toJSON(t){let e={};return t.oid!==void 0&&(e.oid=Me.ObjectIdentifier.toJSON(t.oid)),t.value.length!==0&&(e.value=sA(t.value)),e}};Me.DistinguishedName={fromJSON(t){return{organization:an(t.organization)?globalThis.String(t.organization):"",commonName:an(t.commonName)?globalThis.String(t.commonName):""}},toJSON(t){let e={};return t.organization!==""&&(e.organization=t.organization),t.commonName!==""&&(e.commonName=t.commonName),e}};Me.X509Certificate={fromJSON(t){return{rawBytes:an(t.rawBytes)?Buffer.from(iA(t.rawBytes)):Buffer.alloc(0)}},toJSON(t){let e={};return t.rawBytes.length!==0&&(e.rawBytes=sA(t.rawBytes)),e}};Me.SubjectAlternativeName={fromJSON(t){return{type:an(t.type)?g1e(t.type):0,identity:an(t.regexp)?{$case:"regexp",regexp:globalThis.String(t.regexp)}:an(t.value)?{$case:"value",value:globalThis.String(t.value)}:void 0}},toJSON(t){let e={};return t.type!==0&&(e.type=y1e(t.type)),t.identity?.$case==="regexp"?e.regexp=t.identity.regexp:t.identity?.$case==="value"&&(e.value=t.identity.value),e}};Me.X509CertificateChain={fromJSON(t){return{certificates:globalThis.Array.isArray(t?.certificates)?t.certificates.map(e=>Me.X509Certificate.fromJSON(e)):[]}},toJSON(t){let e={};return t.certificates?.length&&(e.certificates=t.certificates.map(r=>Me.X509Certificate.toJSON(r))),e}};Me.TimeRange={fromJSON(t){return{start:an(t.start)?f1e(t.start):void 0,end:an(t.end)?f1e(t.end):void 0}},toJSON(t){let e={};return t.start!==void 0&&(e.start=t.start.toISOString()),t.end!==void 0&&(e.end=t.end.toISOString()),e}};function iA(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(iA,"bytesFromBase64");function sA(t){return globalThis.Buffer.from(t).toString("base64")}o(sA,"base64FromBytes");function Jkt(t){let e=(globalThis.Number(t.seconds)||0)*1e3;return e+=(t.nanos||0)/1e6,new globalThis.Date(e)}o(Jkt,"fromTimestamp");function f1e(t){return t instanceof globalThis.Date?t:typeof t=="string"?new globalThis.Date(t):Jkt(Wkt.Timestamp.fromJSON(t))}o(f1e,"fromJsonTimestamp");function an(t){return t!=null}o(an,"isSet")});var NJ=g(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.TransparencyLogEntry=cn.InclusionPromise=cn.InclusionProof=cn.Checkpoint=cn.KindVersion=void 0;var E1e=Vu();cn.KindVersion={fromJSON(t){return{kind:Wi(t.kind)?globalThis.String(t.kind):"",version:Wi(t.version)?globalThis.String(t.version):""}},toJSON(t){let e={};return t.kind!==""&&(e.kind=t.kind),t.version!==""&&(e.version=t.version),e}};cn.Checkpoint={fromJSON(t){return{envelope:Wi(t.envelope)?globalThis.String(t.envelope):""}},toJSON(t){let e={};return t.envelope!==""&&(e.envelope=t.envelope),e}};cn.InclusionProof={fromJSON(t){return{logIndex:Wi(t.logIndex)?globalThis.String(t.logIndex):"0",rootHash:Wi(t.rootHash)?Buffer.from(h1(t.rootHash)):Buffer.alloc(0),treeSize:Wi(t.treeSize)?globalThis.String(t.treeSize):"0",hashes:globalThis.Array.isArray(t?.hashes)?t.hashes.map(e=>Buffer.from(h1(e))):[],checkpoint:Wi(t.checkpoint)?cn.Checkpoint.fromJSON(t.checkpoint):void 0}},toJSON(t){let e={};return t.logIndex!=="0"&&(e.logIndex=t.logIndex),t.rootHash.length!==0&&(e.rootHash=p1(t.rootHash)),t.treeSize!=="0"&&(e.treeSize=t.treeSize),t.hashes?.length&&(e.hashes=t.hashes.map(r=>p1(r))),t.checkpoint!==void 0&&(e.checkpoint=cn.Checkpoint.toJSON(t.checkpoint)),e}};cn.InclusionPromise={fromJSON(t){return{signedEntryTimestamp:Wi(t.signedEntryTimestamp)?Buffer.from(h1(t.signedEntryTimestamp)):Buffer.alloc(0)}},toJSON(t){let e={};return t.signedEntryTimestamp.length!==0&&(e.signedEntryTimestamp=p1(t.signedEntryTimestamp)),e}};cn.TransparencyLogEntry={fromJSON(t){return{logIndex:Wi(t.logIndex)?globalThis.String(t.logIndex):"0",logId:Wi(t.logId)?E1e.LogId.fromJSON(t.logId):void 0,kindVersion:Wi(t.kindVersion)?cn.KindVersion.fromJSON(t.kindVersion):void 0,integratedTime:Wi(t.integratedTime)?globalThis.String(t.integratedTime):"0",inclusionPromise:Wi(t.inclusionPromise)?cn.InclusionPromise.fromJSON(t.inclusionPromise):void 0,inclusionProof:Wi(t.inclusionProof)?cn.InclusionProof.fromJSON(t.inclusionProof):void 0,canonicalizedBody:Wi(t.canonicalizedBody)?Buffer.from(h1(t.canonicalizedBody)):Buffer.alloc(0)}},toJSON(t){let e={};return t.logIndex!=="0"&&(e.logIndex=t.logIndex),t.logId!==void 0&&(e.logId=E1e.LogId.toJSON(t.logId)),t.kindVersion!==void 0&&(e.kindVersion=cn.KindVersion.toJSON(t.kindVersion)),t.integratedTime!=="0"&&(e.integratedTime=t.integratedTime),t.inclusionPromise!==void 0&&(e.inclusionPromise=cn.InclusionPromise.toJSON(t.inclusionPromise)),t.inclusionProof!==void 0&&(e.inclusionProof=cn.InclusionProof.toJSON(t.inclusionProof)),t.canonicalizedBody.length!==0&&(e.canonicalizedBody=p1(t.canonicalizedBody)),e}};function h1(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(h1,"bytesFromBase64");function p1(t){return globalThis.Buffer.from(t).toString("base64")}o(p1,"base64FromBytes");function Wi(t){return t!=null}o(Wi,"isSet")});var RJ=g(sa=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});sa.Bundle=sa.VerificationMaterial=sa.TimestampVerificationData=void 0;var C1e=d1(),Sl=Vu(),b1e=NJ();sa.TimestampVerificationData={fromJSON(t){return{rfc3161Timestamps:globalThis.Array.isArray(t?.rfc3161Timestamps)?t.rfc3161Timestamps.map(e=>Sl.RFC3161SignedTimestamp.fromJSON(e)):[]}},toJSON(t){let e={};return t.rfc3161Timestamps?.length&&(e.rfc3161Timestamps=t.rfc3161Timestamps.map(r=>Sl.RFC3161SignedTimestamp.toJSON(r))),e}};sa.VerificationMaterial={fromJSON(t){return{content:xf(t.publicKey)?{$case:"publicKey",publicKey:Sl.PublicKeyIdentifier.fromJSON(t.publicKey)}:xf(t.x509CertificateChain)?{$case:"x509CertificateChain",x509CertificateChain:Sl.X509CertificateChain.fromJSON(t.x509CertificateChain)}:xf(t.certificate)?{$case:"certificate",certificate:Sl.X509Certificate.fromJSON(t.certificate)}:void 0,tlogEntries:globalThis.Array.isArray(t?.tlogEntries)?t.tlogEntries.map(e=>b1e.TransparencyLogEntry.fromJSON(e)):[],timestampVerificationData:xf(t.timestampVerificationData)?sa.TimestampVerificationData.fromJSON(t.timestampVerificationData):void 0}},toJSON(t){let e={};return t.content?.$case==="publicKey"?e.publicKey=Sl.PublicKeyIdentifier.toJSON(t.content.publicKey):t.content?.$case==="x509CertificateChain"?e.x509CertificateChain=Sl.X509CertificateChain.toJSON(t.content.x509CertificateChain):t.content?.$case==="certificate"&&(e.certificate=Sl.X509Certificate.toJSON(t.content.certificate)),t.tlogEntries?.length&&(e.tlogEntries=t.tlogEntries.map(r=>b1e.TransparencyLogEntry.toJSON(r))),t.timestampVerificationData!==void 0&&(e.timestampVerificationData=sa.TimestampVerificationData.toJSON(t.timestampVerificationData)),e}};sa.Bundle={fromJSON(t){return{mediaType:xf(t.mediaType)?globalThis.String(t.mediaType):"",verificationMaterial:xf(t.verificationMaterial)?sa.VerificationMaterial.fromJSON(t.verificationMaterial):void 0,content:xf(t.messageSignature)?{$case:"messageSignature",messageSignature:Sl.MessageSignature.fromJSON(t.messageSignature)}:xf(t.dsseEnvelope)?{$case:"dsseEnvelope",dsseEnvelope:C1e.Envelope.fromJSON(t.dsseEnvelope)}:void 0}},toJSON(t){let e={};return t.mediaType!==""&&(e.mediaType=t.mediaType),t.verificationMaterial!==void 0&&(e.verificationMaterial=sa.VerificationMaterial.toJSON(t.verificationMaterial)),t.content?.$case==="messageSignature"?e.messageSignature=Sl.MessageSignature.toJSON(t.content.messageSignature):t.content?.$case==="dsseEnvelope"&&(e.dsseEnvelope=C1e.Envelope.toJSON(t.content.dsseEnvelope)),e}};function xf(t){return t!=null}o(xf,"isSet")});var _J=g(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.ClientTrustConfig=ze.ServiceConfiguration=ze.Service=ze.SigningConfig=ze.TrustedRoot=ze.CertificateAuthority=ze.TransparencyLogInstance=ze.ServiceSelector=void 0;ze.serviceSelectorFromJSON=w1e;ze.serviceSelectorToJSON=I1e;var yi=Vu(),Bl;(function(t){t[t.SERVICE_SELECTOR_UNDEFINED=0]="SERVICE_SELECTOR_UNDEFINED",t[t.ALL=1]="ALL",t[t.ANY=2]="ANY",t[t.EXACT=3]="EXACT"})(Bl||(ze.ServiceSelector=Bl={}));function w1e(t){switch(t){case 0:case"SERVICE_SELECTOR_UNDEFINED":return Bl.SERVICE_SELECTOR_UNDEFINED;case 1:case"ALL":return Bl.ALL;case 2:case"ANY":return Bl.ANY;case 3:case"EXACT":return Bl.EXACT;default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum ServiceSelector")}}o(w1e,"serviceSelectorFromJSON");function I1e(t){switch(t){case Bl.SERVICE_SELECTOR_UNDEFINED:return"SERVICE_SELECTOR_UNDEFINED";case Bl.ALL:return"ALL";case Bl.ANY:return"ANY";case Bl.EXACT:return"EXACT";default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum ServiceSelector")}}o(I1e,"serviceSelectorToJSON");ze.TransparencyLogInstance={fromJSON(t){return{baseUrl:Ar(t.baseUrl)?globalThis.String(t.baseUrl):"",hashAlgorithm:Ar(t.hashAlgorithm)?(0,yi.hashAlgorithmFromJSON)(t.hashAlgorithm):0,publicKey:Ar(t.publicKey)?yi.PublicKey.fromJSON(t.publicKey):void 0,logId:Ar(t.logId)?yi.LogId.fromJSON(t.logId):void 0,checkpointKeyId:Ar(t.checkpointKeyId)?yi.LogId.fromJSON(t.checkpointKeyId):void 0,operator:Ar(t.operator)?globalThis.String(t.operator):""}},toJSON(t){let e={};return t.baseUrl!==""&&(e.baseUrl=t.baseUrl),t.hashAlgorithm!==0&&(e.hashAlgorithm=(0,yi.hashAlgorithmToJSON)(t.hashAlgorithm)),t.publicKey!==void 0&&(e.publicKey=yi.PublicKey.toJSON(t.publicKey)),t.logId!==void 0&&(e.logId=yi.LogId.toJSON(t.logId)),t.checkpointKeyId!==void 0&&(e.checkpointKeyId=yi.LogId.toJSON(t.checkpointKeyId)),t.operator!==""&&(e.operator=t.operator),e}};ze.CertificateAuthority={fromJSON(t){return{subject:Ar(t.subject)?yi.DistinguishedName.fromJSON(t.subject):void 0,uri:Ar(t.uri)?globalThis.String(t.uri):"",certChain:Ar(t.certChain)?yi.X509CertificateChain.fromJSON(t.certChain):void 0,validFor:Ar(t.validFor)?yi.TimeRange.fromJSON(t.validFor):void 0,operator:Ar(t.operator)?globalThis.String(t.operator):""}},toJSON(t){let e={};return t.subject!==void 0&&(e.subject=yi.DistinguishedName.toJSON(t.subject)),t.uri!==""&&(e.uri=t.uri),t.certChain!==void 0&&(e.certChain=yi.X509CertificateChain.toJSON(t.certChain)),t.validFor!==void 0&&(e.validFor=yi.TimeRange.toJSON(t.validFor)),t.operator!==""&&(e.operator=t.operator),e}};ze.TrustedRoot={fromJSON(t){return{mediaType:Ar(t.mediaType)?globalThis.String(t.mediaType):"",tlogs:globalThis.Array.isArray(t?.tlogs)?t.tlogs.map(e=>ze.TransparencyLogInstance.fromJSON(e)):[],certificateAuthorities:globalThis.Array.isArray(t?.certificateAuthorities)?t.certificateAuthorities.map(e=>ze.CertificateAuthority.fromJSON(e)):[],ctlogs:globalThis.Array.isArray(t?.ctlogs)?t.ctlogs.map(e=>ze.TransparencyLogInstance.fromJSON(e)):[],timestampAuthorities:globalThis.Array.isArray(t?.timestampAuthorities)?t.timestampAuthorities.map(e=>ze.CertificateAuthority.fromJSON(e)):[]}},toJSON(t){let e={};return t.mediaType!==""&&(e.mediaType=t.mediaType),t.tlogs?.length&&(e.tlogs=t.tlogs.map(r=>ze.TransparencyLogInstance.toJSON(r))),t.certificateAuthorities?.length&&(e.certificateAuthorities=t.certificateAuthorities.map(r=>ze.CertificateAuthority.toJSON(r))),t.ctlogs?.length&&(e.ctlogs=t.ctlogs.map(r=>ze.TransparencyLogInstance.toJSON(r))),t.timestampAuthorities?.length&&(e.timestampAuthorities=t.timestampAuthorities.map(r=>ze.CertificateAuthority.toJSON(r))),e}};ze.SigningConfig={fromJSON(t){return{mediaType:Ar(t.mediaType)?globalThis.String(t.mediaType):"",caUrls:globalThis.Array.isArray(t?.caUrls)?t.caUrls.map(e=>ze.Service.fromJSON(e)):[],oidcUrls:globalThis.Array.isArray(t?.oidcUrls)?t.oidcUrls.map(e=>ze.Service.fromJSON(e)):[],rekorTlogUrls:globalThis.Array.isArray(t?.rekorTlogUrls)?t.rekorTlogUrls.map(e=>ze.Service.fromJSON(e)):[],rekorTlogConfig:Ar(t.rekorTlogConfig)?ze.ServiceConfiguration.fromJSON(t.rekorTlogConfig):void 0,tsaUrls:globalThis.Array.isArray(t?.tsaUrls)?t.tsaUrls.map(e=>ze.Service.fromJSON(e)):[],tsaConfig:Ar(t.tsaConfig)?ze.ServiceConfiguration.fromJSON(t.tsaConfig):void 0}},toJSON(t){let e={};return t.mediaType!==""&&(e.mediaType=t.mediaType),t.caUrls?.length&&(e.caUrls=t.caUrls.map(r=>ze.Service.toJSON(r))),t.oidcUrls?.length&&(e.oidcUrls=t.oidcUrls.map(r=>ze.Service.toJSON(r))),t.rekorTlogUrls?.length&&(e.rekorTlogUrls=t.rekorTlogUrls.map(r=>ze.Service.toJSON(r))),t.rekorTlogConfig!==void 0&&(e.rekorTlogConfig=ze.ServiceConfiguration.toJSON(t.rekorTlogConfig)),t.tsaUrls?.length&&(e.tsaUrls=t.tsaUrls.map(r=>ze.Service.toJSON(r))),t.tsaConfig!==void 0&&(e.tsaConfig=ze.ServiceConfiguration.toJSON(t.tsaConfig)),e}};ze.Service={fromJSON(t){return{url:Ar(t.url)?globalThis.String(t.url):"",majorApiVersion:Ar(t.majorApiVersion)?globalThis.Number(t.majorApiVersion):0,validFor:Ar(t.validFor)?yi.TimeRange.fromJSON(t.validFor):void 0,operator:Ar(t.operator)?globalThis.String(t.operator):""}},toJSON(t){let e={};return t.url!==""&&(e.url=t.url),t.majorApiVersion!==0&&(e.majorApiVersion=Math.round(t.majorApiVersion)),t.validFor!==void 0&&(e.validFor=yi.TimeRange.toJSON(t.validFor)),t.operator!==""&&(e.operator=t.operator),e}};ze.ServiceConfiguration={fromJSON(t){return{selector:Ar(t.selector)?w1e(t.selector):0,count:Ar(t.count)?globalThis.Number(t.count):0}},toJSON(t){let e={};return t.selector!==0&&(e.selector=I1e(t.selector)),t.count!==0&&(e.count=Math.round(t.count)),e}};ze.ClientTrustConfig={fromJSON(t){return{mediaType:Ar(t.mediaType)?globalThis.String(t.mediaType):"",trustedRoot:Ar(t.trustedRoot)?ze.TrustedRoot.fromJSON(t.trustedRoot):void 0,signingConfig:Ar(t.signingConfig)?ze.SigningConfig.fromJSON(t.signingConfig):void 0}},toJSON(t){let e={};return t.mediaType!==""&&(e.mediaType=t.mediaType),t.trustedRoot!==void 0&&(e.trustedRoot=ze.TrustedRoot.toJSON(t.trustedRoot)),t.signingConfig!==void 0&&(e.signingConfig=ze.SigningConfig.toJSON(t.signingConfig)),e}};function Ar(t){return t!=null}o(Ar,"isSet")});var x1e=g(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.Input=Ve.Artifact=Ve.ArtifactVerificationOptions_ObserverTimestampOptions=Ve.ArtifactVerificationOptions_TlogIntegratedTimestampOptions=Ve.ArtifactVerificationOptions_TimestampAuthorityOptions=Ve.ArtifactVerificationOptions_CtlogOptions=Ve.ArtifactVerificationOptions_TlogOptions=Ve.ArtifactVerificationOptions=Ve.PublicKeyIdentities=Ve.CertificateIdentities=Ve.CertificateIdentity=void 0;var S1e=RJ(),vf=Vu(),B1e=_J();Ve.CertificateIdentity={fromJSON(t){return{issuer:zt(t.issuer)?globalThis.String(t.issuer):"",san:zt(t.san)?vf.SubjectAlternativeName.fromJSON(t.san):void 0,oids:globalThis.Array.isArray(t?.oids)?t.oids.map(e=>vf.ObjectIdentifierValuePair.fromJSON(e)):[]}},toJSON(t){let e={};return t.issuer!==""&&(e.issuer=t.issuer),t.san!==void 0&&(e.san=vf.SubjectAlternativeName.toJSON(t.san)),t.oids?.length&&(e.oids=t.oids.map(r=>vf.ObjectIdentifierValuePair.toJSON(r))),e}};Ve.CertificateIdentities={fromJSON(t){return{identities:globalThis.Array.isArray(t?.identities)?t.identities.map(e=>Ve.CertificateIdentity.fromJSON(e)):[]}},toJSON(t){let e={};return t.identities?.length&&(e.identities=t.identities.map(r=>Ve.CertificateIdentity.toJSON(r))),e}};Ve.PublicKeyIdentities={fromJSON(t){return{publicKeys:globalThis.Array.isArray(t?.publicKeys)?t.publicKeys.map(e=>vf.PublicKey.fromJSON(e)):[]}},toJSON(t){let e={};return t.publicKeys?.length&&(e.publicKeys=t.publicKeys.map(r=>vf.PublicKey.toJSON(r))),e}};Ve.ArtifactVerificationOptions={fromJSON(t){return{signers:zt(t.certificateIdentities)?{$case:"certificateIdentities",certificateIdentities:Ve.CertificateIdentities.fromJSON(t.certificateIdentities)}:zt(t.publicKeys)?{$case:"publicKeys",publicKeys:Ve.PublicKeyIdentities.fromJSON(t.publicKeys)}:void 0,tlogOptions:zt(t.tlogOptions)?Ve.ArtifactVerificationOptions_TlogOptions.fromJSON(t.tlogOptions):void 0,ctlogOptions:zt(t.ctlogOptions)?Ve.ArtifactVerificationOptions_CtlogOptions.fromJSON(t.ctlogOptions):void 0,tsaOptions:zt(t.tsaOptions)?Ve.ArtifactVerificationOptions_TimestampAuthorityOptions.fromJSON(t.tsaOptions):void 0,integratedTsOptions:zt(t.integratedTsOptions)?Ve.ArtifactVerificationOptions_TlogIntegratedTimestampOptions.fromJSON(t.integratedTsOptions):void 0,observerOptions:zt(t.observerOptions)?Ve.ArtifactVerificationOptions_ObserverTimestampOptions.fromJSON(t.observerOptions):void 0}},toJSON(t){let e={};return t.signers?.$case==="certificateIdentities"?e.certificateIdentities=Ve.CertificateIdentities.toJSON(t.signers.certificateIdentities):t.signers?.$case==="publicKeys"&&(e.publicKeys=Ve.PublicKeyIdentities.toJSON(t.signers.publicKeys)),t.tlogOptions!==void 0&&(e.tlogOptions=Ve.ArtifactVerificationOptions_TlogOptions.toJSON(t.tlogOptions)),t.ctlogOptions!==void 0&&(e.ctlogOptions=Ve.ArtifactVerificationOptions_CtlogOptions.toJSON(t.ctlogOptions)),t.tsaOptions!==void 0&&(e.tsaOptions=Ve.ArtifactVerificationOptions_TimestampAuthorityOptions.toJSON(t.tsaOptions)),t.integratedTsOptions!==void 0&&(e.integratedTsOptions=Ve.ArtifactVerificationOptions_TlogIntegratedTimestampOptions.toJSON(t.integratedTsOptions)),t.observerOptions!==void 0&&(e.observerOptions=Ve.ArtifactVerificationOptions_ObserverTimestampOptions.toJSON(t.observerOptions)),e}};Ve.ArtifactVerificationOptions_TlogOptions={fromJSON(t){return{threshold:zt(t.threshold)?globalThis.Number(t.threshold):0,performOnlineVerification:zt(t.performOnlineVerification)?globalThis.Boolean(t.performOnlineVerification):!1,disable:zt(t.disable)?globalThis.Boolean(t.disable):!1}},toJSON(t){let e={};return t.threshold!==0&&(e.threshold=Math.round(t.threshold)),t.performOnlineVerification!==!1&&(e.performOnlineVerification=t.performOnlineVerification),t.disable!==!1&&(e.disable=t.disable),e}};Ve.ArtifactVerificationOptions_CtlogOptions={fromJSON(t){return{threshold:zt(t.threshold)?globalThis.Number(t.threshold):0,disable:zt(t.disable)?globalThis.Boolean(t.disable):!1}},toJSON(t){let e={};return t.threshold!==0&&(e.threshold=Math.round(t.threshold)),t.disable!==!1&&(e.disable=t.disable),e}};Ve.ArtifactVerificationOptions_TimestampAuthorityOptions={fromJSON(t){return{threshold:zt(t.threshold)?globalThis.Number(t.threshold):0,disable:zt(t.disable)?globalThis.Boolean(t.disable):!1}},toJSON(t){let e={};return t.threshold!==0&&(e.threshold=Math.round(t.threshold)),t.disable!==!1&&(e.disable=t.disable),e}};Ve.ArtifactVerificationOptions_TlogIntegratedTimestampOptions={fromJSON(t){return{threshold:zt(t.threshold)?globalThis.Number(t.threshold):0,disable:zt(t.disable)?globalThis.Boolean(t.disable):!1}},toJSON(t){let e={};return t.threshold!==0&&(e.threshold=Math.round(t.threshold)),t.disable!==!1&&(e.disable=t.disable),e}};Ve.ArtifactVerificationOptions_ObserverTimestampOptions={fromJSON(t){return{threshold:zt(t.threshold)?globalThis.Number(t.threshold):0,disable:zt(t.disable)?globalThis.Boolean(t.disable):!1}},toJSON(t){let e={};return t.threshold!==0&&(e.threshold=Math.round(t.threshold)),t.disable!==!1&&(e.disable=t.disable),e}};Ve.Artifact={fromJSON(t){return{data:zt(t.artifactUri)?{$case:"artifactUri",artifactUri:globalThis.String(t.artifactUri)}:zt(t.artifact)?{$case:"artifact",artifact:Buffer.from(Ykt(t.artifact))}:zt(t.artifactDigest)?{$case:"artifactDigest",artifactDigest:vf.HashOutput.fromJSON(t.artifactDigest)}:void 0}},toJSON(t){let e={};return t.data?.$case==="artifactUri"?e.artifactUri=t.data.artifactUri:t.data?.$case==="artifact"?e.artifact=Kkt(t.data.artifact):t.data?.$case==="artifactDigest"&&(e.artifactDigest=vf.HashOutput.toJSON(t.data.artifactDigest)),e}};Ve.Input={fromJSON(t){return{artifactTrustRoot:zt(t.artifactTrustRoot)?B1e.TrustedRoot.fromJSON(t.artifactTrustRoot):void 0,artifactVerificationOptions:zt(t.artifactVerificationOptions)?Ve.ArtifactVerificationOptions.fromJSON(t.artifactVerificationOptions):void 0,bundle:zt(t.bundle)?S1e.Bundle.fromJSON(t.bundle):void 0,artifact:zt(t.artifact)?Ve.Artifact.fromJSON(t.artifact):void 0}},toJSON(t){let e={};return t.artifactTrustRoot!==void 0&&(e.artifactTrustRoot=B1e.TrustedRoot.toJSON(t.artifactTrustRoot)),t.artifactVerificationOptions!==void 0&&(e.artifactVerificationOptions=Ve.ArtifactVerificationOptions.toJSON(t.artifactVerificationOptions)),t.bundle!==void 0&&(e.bundle=S1e.Bundle.toJSON(t.bundle)),t.artifact!==void 0&&(e.artifact=Ve.Artifact.toJSON(t.artifact)),e}};function Ykt(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(Ykt,"bytesFromBase64");function Kkt(t){return globalThis.Buffer.from(t).toString("base64")}o(Kkt,"base64FromBytes");function zt(t){return t!=null}o(zt,"isSet")});var dE=g(oa=>{"use strict";var Xkt=oa&&oa.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),uE=oa&&oa.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Xkt(e,t,r)};Object.defineProperty(oa,"__esModule",{value:!0});uE(d1(),oa);uE(RJ(),oa);uE(Vu(),oa);uE(NJ(),oa);uE(_J(),oa);uE(x1e(),oa)});var A1=g(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.BUNDLE_V03_MEDIA_TYPE=Cs.BUNDLE_V03_LEGACY_MEDIA_TYPE=Cs.BUNDLE_V02_MEDIA_TYPE=Cs.BUNDLE_V01_MEDIA_TYPE=void 0;Cs.isBundleWithCertificateChain=Zkt;Cs.isBundleWithPublicKey=ePt;Cs.isBundleWithMessageSignature=tPt;Cs.isBundleWithDsseEnvelope=rPt;Cs.BUNDLE_V01_MEDIA_TYPE="application/vnd.dev.sigstore.bundle+json;version=0.1";Cs.BUNDLE_V02_MEDIA_TYPE="application/vnd.dev.sigstore.bundle+json;version=0.2";Cs.BUNDLE_V03_LEGACY_MEDIA_TYPE="application/vnd.dev.sigstore.bundle+json;version=0.3";Cs.BUNDLE_V03_MEDIA_TYPE="application/vnd.dev.sigstore.bundle.v0.3+json";function Zkt(t){return t.verificationMaterial.content.$case==="x509CertificateChain"}o(Zkt,"isBundleWithCertificateChain");function ePt(t){return t.verificationMaterial.content.$case==="publicKey"}o(ePt,"isBundleWithPublicKey");function tPt(t){return t.content.$case==="messageSignature"}o(tPt,"isBundleWithMessageSignature");function rPt(t){return t.content.$case==="dsseEnvelope"}o(rPt,"isBundleWithDsseEnvelope")});var N1e=g(g1=>{"use strict";Object.defineProperty(g1,"__esModule",{value:!0});g1.toMessageSignatureBundle=iPt;g1.toDSSEBundle=sPt;var nPt=dE(),m1=A1();function iPt(t){return{mediaType:t.certificateChain?m1.BUNDLE_V02_MEDIA_TYPE:m1.BUNDLE_V03_MEDIA_TYPE,content:{$case:"messageSignature",messageSignature:{messageDigest:{algorithm:nPt.HashAlgorithm.SHA2_256,digest:t.digest},signature:t.signature}},verificationMaterial:v1e(t)}}o(iPt,"toMessageSignatureBundle");function sPt(t){return{mediaType:t.certificateChain?m1.BUNDLE_V02_MEDIA_TYPE:m1.BUNDLE_V03_MEDIA_TYPE,content:{$case:"dsseEnvelope",dsseEnvelope:oPt(t)},verificationMaterial:v1e(t)}}o(sPt,"toDSSEBundle");function oPt(t){return{payloadType:t.artifactType,payload:t.artifact,signatures:[aPt(t)]}}o(oPt,"toEnvelope");function aPt(t){return{keyid:t.keyHint||"",sig:t.signature}}o(aPt,"toSignature");function v1e(t){return{content:cPt(t),tlogEntries:[],timestampVerificationData:{rfc3161Timestamps:[]}}}o(v1e,"toVerificationMaterial");function cPt(t){return t.certificate?t.certificateChain?{$case:"x509CertificateChain",x509CertificateChain:{certificates:[{rawBytes:t.certificate}]}}:{$case:"certificate",certificate:{rawBytes:t.certificate}}:{$case:"publicKey",publicKey:{hint:t.keyHint||""}}}o(cPt,"toKeyContent")});var DJ=g(y1=>{"use strict";Object.defineProperty(y1,"__esModule",{value:!0});y1.ValidationError=void 0;var TJ=class extends Error{static{o(this,"ValidationError")}fields;constructor(e,r){super(e),this.fields=r}};y1.ValidationError=TJ});var QJ=g(oA=>{"use strict";Object.defineProperty(oA,"__esModule",{value:!0});oA.assertBundle=lPt;oA.assertBundleV01=R1e;oA.isBundleV01=uPt;oA.assertBundleV02=dPt;oA.assertBundleLatest=fPt;var E1=DJ();function lPt(t){let e=C1(t);if(e.length>0)throw new E1.ValidationError("invalid bundle",e)}o(lPt,"assertBundle");function R1e(t){let e=[];if(e.push(...C1(t)),e.push(...hPt(t)),e.length>0)throw new E1.ValidationError("invalid v0.1 bundle",e)}o(R1e,"assertBundleV01");function uPt(t){try{return R1e(t),!0}catch{return!1}}o(uPt,"isBundleV01");function dPt(t){let e=[];if(e.push(...C1(t)),e.push(..._1e(t)),e.length>0)throw new E1.ValidationError("invalid v0.2 bundle",e)}o(dPt,"assertBundleV02");function fPt(t){let e=[];if(e.push(...C1(t)),e.push(..._1e(t)),e.push(...pPt(t)),e.length>0)throw new E1.ValidationError("invalid bundle",e)}o(fPt,"assertBundleLatest");function C1(t){let e=[];if((t.mediaType===void 0||!t.mediaType.match(/^application\/vnd\.dev\.sigstore\.bundle\+json;version=\d\.\d/)&&!t.mediaType.match(/^application\/vnd\.dev\.sigstore\.bundle\.v\d\.\d\+json/))&&e.push("mediaType"),t.content===void 0)e.push("content");else switch(t.content.$case){case"messageSignature":t.content.messageSignature.messageDigest===void 0?e.push("content.messageSignature.messageDigest"):t.content.messageSignature.messageDigest.digest.length===0&&e.push("content.messageSignature.messageDigest.digest"),t.content.messageSignature.signature.length===0&&e.push("content.messageSignature.signature");break;case"dsseEnvelope":t.content.dsseEnvelope.payload.length===0&&e.push("content.dsseEnvelope.payload"),t.content.dsseEnvelope.signatures.length!==1?e.push("content.dsseEnvelope.signatures"):t.content.dsseEnvelope.signatures[0].sig.length===0&&e.push("content.dsseEnvelope.signatures[0].sig");break}if(t.verificationMaterial===void 0)e.push("verificationMaterial");else{if(t.verificationMaterial.content===void 0)e.push("verificationMaterial.content");else switch(t.verificationMaterial.content.$case){case"x509CertificateChain":t.verificationMaterial.content.x509CertificateChain.certificates.length===0&&e.push("verificationMaterial.content.x509CertificateChain.certificates"),t.verificationMaterial.content.x509CertificateChain.certificates.forEach((r,n)=>{r.rawBytes.length===0&&e.push(`verificationMaterial.content.x509CertificateChain.certificates[${n}].rawBytes`)});break;case"certificate":t.verificationMaterial.content.certificate.rawBytes.length===0&&e.push("verificationMaterial.content.certificate.rawBytes");break}t.verificationMaterial.tlogEntries===void 0?e.push("verificationMaterial.tlogEntries"):t.verificationMaterial.tlogEntries.length>0&&t.verificationMaterial.tlogEntries.forEach((r,n)=>{r.logId===void 0&&e.push(`verificationMaterial.tlogEntries[${n}].logId`),r.kindVersion===void 0&&e.push(`verificationMaterial.tlogEntries[${n}].kindVersion`)})}return e}o(C1,"validateBundleBase");function hPt(t){let e=[];return t.verificationMaterial&&t.verificationMaterial.tlogEntries?.length>0&&t.verificationMaterial.tlogEntries.forEach((r,n)=>{r.inclusionPromise===void 0&&e.push(`verificationMaterial.tlogEntries[${n}].inclusionPromise`)}),e}o(hPt,"validateInclusionPromise");function _1e(t){let e=[];return t.verificationMaterial&&t.verificationMaterial.tlogEntries?.length>0&&t.verificationMaterial.tlogEntries.forEach((r,n)=>{r.inclusionProof===void 0?e.push(`verificationMaterial.tlogEntries[${n}].inclusionProof`):r.inclusionProof.checkpoint===void 0&&e.push(`verificationMaterial.tlogEntries[${n}].inclusionProof.checkpoint`)}),e}o(_1e,"validateInclusionProof");function pPt(t){let e=[];return t.verificationMaterial?.content?.$case==="x509CertificateChain"&&e.push("verificationMaterial.content.$case"),e}o(pPt,"validateNoCertificateChain")});var D1e=g(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});xl.envelopeToJSON=xl.envelopeFromJSON=xl.bundleToJSON=xl.bundleFromJSON=void 0;var b1=dE(),T1e=A1(),kJ=QJ(),APt=o(t=>{let e=b1.Bundle.fromJSON(t);switch(e.mediaType){case T1e.BUNDLE_V01_MEDIA_TYPE:(0,kJ.assertBundleV01)(e);break;case T1e.BUNDLE_V02_MEDIA_TYPE:(0,kJ.assertBundleV02)(e);break;default:(0,kJ.assertBundleLatest)(e);break}return e},"bundleFromJSON");xl.bundleFromJSON=APt;var mPt=o(t=>b1.Bundle.toJSON(t),"bundleToJSON");xl.bundleToJSON=mPt;var gPt=o(t=>b1.Envelope.fromJSON(t),"envelopeFromJSON");xl.envelopeFromJSON=gPt;var yPt=o(t=>b1.Envelope.toJSON(t),"envelopeToJSON");xl.envelopeToJSON=yPt});var PJ=g(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.isBundleV01=Xe.assertBundleV02=Xe.assertBundleV01=Xe.assertBundleLatest=Xe.assertBundle=Xe.envelopeToJSON=Xe.envelopeFromJSON=Xe.bundleToJSON=Xe.bundleFromJSON=Xe.ValidationError=Xe.isBundleWithPublicKey=Xe.isBundleWithMessageSignature=Xe.isBundleWithDsseEnvelope=Xe.isBundleWithCertificateChain=Xe.BUNDLE_V03_MEDIA_TYPE=Xe.BUNDLE_V03_LEGACY_MEDIA_TYPE=Xe.BUNDLE_V02_MEDIA_TYPE=Xe.BUNDLE_V01_MEDIA_TYPE=Xe.toMessageSignatureBundle=Xe.toDSSEBundle=void 0;var Q1e=N1e();Object.defineProperty(Xe,"toDSSEBundle",{enumerable:!0,get:o(function(){return Q1e.toDSSEBundle},"get")});Object.defineProperty(Xe,"toMessageSignatureBundle",{enumerable:!0,get:o(function(){return Q1e.toMessageSignatureBundle},"get")});var Nf=A1();Object.defineProperty(Xe,"BUNDLE_V01_MEDIA_TYPE",{enumerable:!0,get:o(function(){return Nf.BUNDLE_V01_MEDIA_TYPE},"get")});Object.defineProperty(Xe,"BUNDLE_V02_MEDIA_TYPE",{enumerable:!0,get:o(function(){return Nf.BUNDLE_V02_MEDIA_TYPE},"get")});Object.defineProperty(Xe,"BUNDLE_V03_LEGACY_MEDIA_TYPE",{enumerable:!0,get:o(function(){return Nf.BUNDLE_V03_LEGACY_MEDIA_TYPE},"get")});Object.defineProperty(Xe,"BUNDLE_V03_MEDIA_TYPE",{enumerable:!0,get:o(function(){return Nf.BUNDLE_V03_MEDIA_TYPE},"get")});Object.defineProperty(Xe,"isBundleWithCertificateChain",{enumerable:!0,get:o(function(){return Nf.isBundleWithCertificateChain},"get")});Object.defineProperty(Xe,"isBundleWithDsseEnvelope",{enumerable:!0,get:o(function(){return Nf.isBundleWithDsseEnvelope},"get")});Object.defineProperty(Xe,"isBundleWithMessageSignature",{enumerable:!0,get:o(function(){return Nf.isBundleWithMessageSignature},"get")});Object.defineProperty(Xe,"isBundleWithPublicKey",{enumerable:!0,get:o(function(){return Nf.isBundleWithPublicKey},"get")});var EPt=DJ();Object.defineProperty(Xe,"ValidationError",{enumerable:!0,get:o(function(){return EPt.ValidationError},"get")});var w1=D1e();Object.defineProperty(Xe,"bundleFromJSON",{enumerable:!0,get:o(function(){return w1.bundleFromJSON},"get")});Object.defineProperty(Xe,"bundleToJSON",{enumerable:!0,get:o(function(){return w1.bundleToJSON},"get")});Object.defineProperty(Xe,"envelopeFromJSON",{enumerable:!0,get:o(function(){return w1.envelopeFromJSON},"get")});Object.defineProperty(Xe,"envelopeToJSON",{enumerable:!0,get:o(function(){return w1.envelopeToJSON},"get")});var iS=QJ();Object.defineProperty(Xe,"assertBundle",{enumerable:!0,get:o(function(){return iS.assertBundle},"get")});Object.defineProperty(Xe,"assertBundleLatest",{enumerable:!0,get:o(function(){return iS.assertBundleLatest},"get")});Object.defineProperty(Xe,"assertBundleV01",{enumerable:!0,get:o(function(){return iS.assertBundleV01},"get")});Object.defineProperty(Xe,"assertBundleV02",{enumerable:!0,get:o(function(){return iS.assertBundleV02},"get")});Object.defineProperty(Xe,"isBundleV01",{enumerable:!0,get:o(function(){return iS.isBundleV01},"get")})});var P1e=g(sS=>{"use strict";var k1e=sS&&sS.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(sS,"__esModule",{value:!0});sS.appDataPath=bPt;var CPt=k1e(require("os")),fE=k1e(require("path"));function bPt(t){let e=CPt.default.homedir();switch(process.platform){case"darwin":{let r=fE.default.join(e,"Library","Application Support");return fE.default.join(r,t)}case"win32":{let r=process.env.LOCALAPPDATA||fE.default.join(e,"AppData","Local");return fE.default.join(r,t,"Data")}default:{let r=process.env.XDG_DATA_HOME||fE.default.join(e,".local","share");return fE.default.join(r,t)}}}o(bPt,"appDataPath")});var vl=g(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.UnsupportedAlgorithmError=bs.CryptoError=bs.LengthOrHashMismatchError=bs.UnsignedMetadataError=bs.RepositoryError=bs.ValueError=void 0;var OJ=class extends Error{static{o(this,"ValueError")}};bs.ValueError=OJ;var oS=class extends Error{static{o(this,"RepositoryError")}};bs.RepositoryError=oS;var LJ=class extends oS{static{o(this,"UnsignedMetadataError")}};bs.UnsignedMetadataError=LJ;var FJ=class extends oS{static{o(this,"LengthOrHashMismatchError")}};bs.LengthOrHashMismatchError=FJ;var I1=class extends Error{static{o(this,"CryptoError")}};bs.CryptoError=I1;var MJ=class extends I1{static{o(this,"UnsupportedAlgorithmError")}};bs.UnsupportedAlgorithmError=MJ});var L1e=g(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});Rf.isDefined=wPt;Rf.isObject=O1e;Rf.isStringArray=IPt;Rf.isObjectArray=SPt;Rf.isStringRecord=BPt;Rf.isObjectRecord=xPt;function wPt(t){return t!==void 0}o(wPt,"isDefined");function O1e(t){return typeof t=="object"&&t!==null}o(O1e,"isObject");function IPt(t){return Array.isArray(t)&&t.every(e=>typeof e=="string")}o(IPt,"isStringArray");function SPt(t){return Array.isArray(t)&&t.every(O1e)}o(SPt,"isObjectArray");function BPt(t){return typeof t=="object"&&t!==null&&Object.keys(t).every(e=>typeof e=="string")&&Object.values(t).every(e=>typeof e=="string")}o(BPt,"isStringRecord");function xPt(t){return typeof t=="object"&&t!==null&&Object.keys(t).every(e=>typeof e=="string")&&Object.values(t).every(e=>typeof e=="object"&&e!==null)}o(xPt,"isObjectRecord")});var qJ=g((o2r,M1e)=>{function UJ(t){let e=[];if(typeof t=="string")e.push(F1e(t));else if(typeof t=="boolean")e.push(JSON.stringify(t));else if(Number.isInteger(t))e.push(JSON.stringify(t));else if(t===null)e.push(JSON.stringify(t));else if(Array.isArray(t)){e.push("[");let r=!0;t.forEach(n=>{r||e.push(","),r=!1,e.push(UJ(n))}),e.push("]")}else if(typeof t=="object"){e.push("{");let r=!0;Object.keys(t).sort().forEach(n=>{r||e.push(","),r=!1,e.push(F1e(n)),e.push(":"),e.push(UJ(t[n]))}),e.push("}")}else throw new TypeError("cannot encode "+t.toString());return e.join("")}o(UJ,"canonicalize");function F1e(t){return'"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'}o(F1e,"canonicalizeString");M1e.exports={canonicalize:UJ}});var U1e=g(hE=>{"use strict";var vPt=hE&&hE.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(hE,"__esModule",{value:!0});hE.verifySignature=void 0;var NPt=qJ(),RPt=vPt(require("crypto")),_Pt=o((t,e,r)=>{let n=Buffer.from((0,NPt.canonicalize)(t));return RPt.default.verify(void 0,n,e,Buffer.from(r,"hex"))},"verifySignature");hE.verifySignature=_Pt});var Ka=g(aa=>{"use strict";var TPt=aa&&aa.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),DPt=aa&&aa.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),q1e=aa&&aa.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i{"use strict";var QPt=$u&&$u.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($u,"__esModule",{value:!0});$u.Signed=$u.MetadataKind=void 0;$u.isMetadataKind=PPt;var kPt=QPt(require("util")),aS=vl(),GJ=Ka(),G1e=["1","0","31"],HJ;(function(t){t.Root="root",t.Timestamp="timestamp",t.Snapshot="snapshot",t.Targets="targets"})(HJ||($u.MetadataKind=HJ={}));function PPt(t){return typeof t=="string"&&Object.values(HJ).includes(t)}o(PPt,"isMetadataKind");var zJ=class t{static{o(this,"Signed")}specVersion;expires;version;unrecognizedFields;constructor(e){this.specVersion=e.specVersion||G1e.join(".");let r=this.specVersion.split(".");if(!(r.length===2||r.length===3)||!r.every(n=>OPt(n)))throw new aS.ValueError("Failed to parse specVersion");if(r[0]!=G1e[0])throw new aS.ValueError("Unsupported specVersion");this.expires=e.expires,this.version=e.version,this.unrecognizedFields=e.unrecognizedFields||{}}equals(e){return e instanceof t?this.specVersion===e.specVersion&&this.expires===e.expires&&this.version===e.version&&kPt.default.isDeepStrictEqual(this.unrecognizedFields,e.unrecognizedFields):!1}isExpired(e){return e||(e=new Date),e>=new Date(this.expires)}static commonFieldsFromJSON(e){let{spec_version:r,expires:n,version:i,...s}=e;if(GJ.guard.isDefined(r)){if(typeof r!="string")throw new TypeError("spec_version must be a string")}else throw new aS.ValueError("spec_version is not defined");if(GJ.guard.isDefined(n)){if(typeof n!="string")throw new TypeError("expires must be a string")}else throw new aS.ValueError("expires is not defined");if(GJ.guard.isDefined(i)){if(typeof i!="number")throw new TypeError("version must be a number")}else throw new aS.ValueError("version is not defined");return{specVersion:r,expires:n,version:i,unrecognizedFields:s}}};$u.Signed=zJ;function OPt(t){return!isNaN(Number(t))}o(OPt,"isNumeric")});var cS=g(Tf=>{"use strict";var H1e=Tf&&Tf.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Tf,"__esModule",{value:!0});Tf.TargetFile=Tf.MetaFile=void 0;var z1e=H1e(require("crypto")),B1=H1e(require("util")),_f=vl(),S1=Ka(),VJ=class t{static{o(this,"MetaFile")}version;length;hashes;unrecognizedFields;constructor(e){if(e.version<=0)throw new _f.ValueError("Metafile version must be at least 1");e.length!==void 0&&V1e(e.length),this.version=e.version,this.length=e.length,this.hashes=e.hashes,this.unrecognizedFields=e.unrecognizedFields||{}}equals(e){return e instanceof t?this.version===e.version&&this.length===e.length&&B1.default.isDeepStrictEqual(this.hashes,e.hashes)&&B1.default.isDeepStrictEqual(this.unrecognizedFields,e.unrecognizedFields):!1}verify(e){if(this.length!==void 0&&e.length!==this.length)throw new _f.LengthOrHashMismatchError(`Expected length ${this.length} but got ${e.length}`);this.hashes&&Object.entries(this.hashes).forEach(([r,n])=>{let i;try{i=z1e.default.createHash(r)}catch{throw new _f.LengthOrHashMismatchError(`Hash algorithm ${r} not supported`)}let s=i.update(e).digest("hex");if(s!==n)throw new _f.LengthOrHashMismatchError(`Expected hash ${n} but got ${s}`)})}toJSON(){let e={version:this.version,...this.unrecognizedFields};return this.length!==void 0&&(e.length=this.length),this.hashes&&(e.hashes=this.hashes),e}static fromJSON(e){let{version:r,length:n,hashes:i,...s}=e;if(typeof r!="number")throw new TypeError("version must be a number");if(S1.guard.isDefined(n)&&typeof n!="number")throw new TypeError("length must be a number");if(S1.guard.isDefined(i)&&!S1.guard.isStringRecord(i))throw new TypeError("hashes must be string keys and values");return new t({version:r,length:n,hashes:i,unrecognizedFields:s})}};Tf.MetaFile=VJ;var $J=class t{static{o(this,"TargetFile")}length;path;hashes;unrecognizedFields;constructor(e){V1e(e.length),this.length=e.length,this.path=e.path,this.hashes=e.hashes,this.unrecognizedFields=e.unrecognizedFields||{}}get custom(){let e=this.unrecognizedFields.custom;return!e||Array.isArray(e)||typeof e!="object"?{}:e}equals(e){return e instanceof t?this.length===e.length&&this.path===e.path&&B1.default.isDeepStrictEqual(this.hashes,e.hashes)&&B1.default.isDeepStrictEqual(this.unrecognizedFields,e.unrecognizedFields):!1}async verify(e){let r=0,n=Object.keys(this.hashes).reduce((i,s)=>{try{i[s]=z1e.default.createHash(s)}catch{throw new _f.LengthOrHashMismatchError(`Hash algorithm ${s} not supported`)}return i},{});for await(let i of e)r+=i.length,Object.values(n).forEach(s=>{s.update(i)});if(r!==this.length)throw new _f.LengthOrHashMismatchError(`Expected length ${this.length} but got ${r}`);Object.entries(n).forEach(([i,s])=>{let a=this.hashes[i],c=s.digest("hex");if(c!==a)throw new _f.LengthOrHashMismatchError(`Expected hash ${a} but got ${c}`)})}toJSON(){return{length:this.length,hashes:this.hashes,...this.unrecognizedFields}}static fromJSON(e,r){let{length:n,hashes:i,...s}=r;if(typeof n!="number")throw new TypeError("length must be a number");if(!S1.guard.isStringRecord(i))throw new TypeError("hashes must have string keys and values");return new t({length:n,path:e,hashes:i,unrecognizedFields:s})}};Tf.TargetFile=$J;function V1e(t){if(t<0)throw new _f.ValueError("Length must be at least 0")}o(V1e,"validateLength")});var $1e=g(jJ=>{"use strict";Object.defineProperty(jJ,"__esModule",{value:!0});jJ.encodeOIDString=FPt;var LPt=6;function FPt(t){let e=t.split("."),r=parseInt(e[0],10)*40+parseInt(e[1],10),n=[];e.slice(2).forEach(s=>{let a=MPt(parseInt(s,10));n.push(...a)});let i=Buffer.from([r,...n]);return Buffer.from([LPt,i.length,...i])}o(FPt,"encodeOIDString");function MPt(t){let e=[],r=0;for(;t>0;)e.unshift(t&127|r),t>>=7,r=128;return e}o(MPt,"encodeVariableLengthInteger")});var Y1e=g(uS=>{"use strict";var UPt=uS&&uS.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(uS,"__esModule",{value:!0});uS.getPublicKey=zPt;var pE=UPt(require("crypto")),lS=vl(),WJ=$1e(),x1=48,j1e=3,W1e=0,qPt="1.3.101.112",GPt="1.2.840.10045.2.1",HPt="1.2.840.10045.3.1.7",JJ="-----BEGIN PUBLIC KEY-----";function zPt(t){switch(t.keyType){case"rsa":return VPt(t);case"ed25519":return $Pt(t);case"ecdsa":case"ecdsa-sha2-nistp256":case"ecdsa-sha2-nistp384":return jPt(t);default:throw new lS.UnsupportedAlgorithmError(`Unsupported key type: ${t.keyType}`)}}o(zPt,"getPublicKey");function VPt(t){if(!t.keyVal.startsWith(JJ))throw new lS.CryptoError("Invalid key format");let e=pE.default.createPublicKey(t.keyVal);if(t.scheme==="rsassa-pss-sha256")return{key:e,padding:pE.default.constants.RSA_PKCS1_PSS_PADDING};throw new lS.UnsupportedAlgorithmError(`Unsupported RSA scheme: ${t.scheme}`)}o(VPt,"getRSAPublicKey");function $Pt(t){let e;if(t.keyVal.startsWith(JJ))e=pE.default.createPublicKey(t.keyVal);else{if(!J1e(t.keyVal))throw new lS.CryptoError("Invalid key format");e=pE.default.createPublicKey({key:WPt.hexToDER(t.keyVal),format:"der",type:"spki"})}return{key:e}}o($Pt,"getED25519PublicKey");function jPt(t){let e;if(t.keyVal.startsWith(JJ))e=pE.default.createPublicKey(t.keyVal);else{if(!J1e(t.keyVal))throw new lS.CryptoError("Invalid key format");e=pE.default.createPublicKey({key:JPt.hexToDER(t.keyVal),format:"der",type:"spki"})}return{key:e}}o(jPt,"getECDCSAPublicKey");var WPt={hexToDER:o(t=>{let e=Buffer.from(t,"hex"),r=(0,WJ.encodeOIDString)(qPt),n=Buffer.concat([Buffer.concat([Buffer.from([x1]),Buffer.from([r.length]),r]),Buffer.concat([Buffer.from([j1e]),Buffer.from([e.length+1]),Buffer.from([W1e]),e])]);return Buffer.concat([Buffer.from([x1]),Buffer.from([n.length]),n])},"hexToDER")},JPt={hexToDER:o(t=>{let e=Buffer.from(t,"hex"),r=Buffer.concat([Buffer.from([j1e]),Buffer.from([e.length+1]),Buffer.from([W1e]),e]),n=Buffer.concat([(0,WJ.encodeOIDString)(GPt),(0,WJ.encodeOIDString)(HPt)]),i=Buffer.concat([Buffer.from([x1]),Buffer.from([n.length]),n]);return Buffer.concat([Buffer.from([x1]),Buffer.from([i.length+r.length]),i,r])},"hexToDER")},J1e=o(t=>/^[0-9a-fA-F]+$/.test(t),"isHex")});var v1=g(AE=>{"use strict";var YPt=AE&&AE.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(AE,"__esModule",{value:!0});AE.Key=void 0;var K1e=YPt(require("util")),dS=vl(),X1e=Ka(),KPt=Y1e(),YJ=class t{static{o(this,"Key")}keyID;keyType;scheme;keyVal;unrecognizedFields;constructor(e){let{keyID:r,keyType:n,scheme:i,keyVal:s,unrecognizedFields:a}=e;this.keyID=r,this.keyType=n,this.scheme=i,this.keyVal=s,this.unrecognizedFields=a||{}}verifySignature(e){let r=e.signatures[this.keyID];if(!r)throw new dS.UnsignedMetadataError("no signature for key found in metadata");if(!this.keyVal.public)throw new dS.UnsignedMetadataError("no public key found");let n=(0,KPt.getPublicKey)({keyType:this.keyType,scheme:this.scheme,keyVal:this.keyVal.public}),i=e.signed.toJSON();try{if(!X1e.crypto.verifySignature(i,n,r.sig))throw new dS.UnsignedMetadataError(`failed to verify ${this.keyID} signature`)}catch(s){throw s instanceof dS.UnsignedMetadataError?s:new dS.UnsignedMetadataError(`failed to verify ${this.keyID} signature`)}}equals(e){return e instanceof t?this.keyID===e.keyID&&this.keyType===e.keyType&&this.scheme===e.scheme&&K1e.default.isDeepStrictEqual(this.keyVal,e.keyVal)&&K1e.default.isDeepStrictEqual(this.unrecognizedFields,e.unrecognizedFields):!1}toJSON(){return{keytype:this.keyType,scheme:this.scheme,keyval:this.keyVal,...this.unrecognizedFields}}static fromJSON(e,r){let{keytype:n,scheme:i,keyval:s,...a}=r;if(typeof n!="string")throw new TypeError("keytype must be a string");if(typeof i!="string")throw new TypeError("scheme must be a string");if(!X1e.guard.isStringRecord(s))throw new TypeError("keyval must be a string record");return new t({keyID:e,keyType:n,scheme:i,keyVal:s,unrecognizedFields:a})}};AE.Key=YJ});var eke=g(cA=>{"use strict";Object.defineProperty(cA,"__esModule",{value:!0});cA.range=cA.balanced=void 0;var XPt=o((t,e,r)=>{let n=t instanceof RegExp?Z1e(t,r):t,i=e instanceof RegExp?Z1e(e,r):e,s=n!==null&&i!=null&&(0,cA.range)(n,i,r);return s&&{start:s[0],end:s[1],pre:r.slice(0,s[0]),body:r.slice(s[0]+n.length,s[1]),post:r.slice(s[1]+i.length)}},"balanced");cA.balanced=XPt;var Z1e=o((t,e)=>{let r=e.match(t);return r?r[0]:null},"maybeMatch"),ZPt=o((t,e,r)=>{let n,i,s,a,c,l=r.indexOf(t),u=r.indexOf(e,l+1),d=l;if(l>=0&&u>0){if(t===e)return[l,u];for(n=[],s=r.length;d>=0&&!c;){if(d===l)n.push(d),l=r.indexOf(t,d+1);else if(n.length===1){let f=n.pop();f!==void 0&&(c=[f,u])}else i=n.pop(),i!==void 0&&i=0?l:u}n.length&&a!==void 0&&(c=[s,a])}return c},"range");cA.range=ZPt});var ake=g(mE=>{"use strict";Object.defineProperty(mE,"__esModule",{value:!0});mE.EXPANSION_MAX=void 0;mE.expand=fOt;var tke=eke(),rke="\0SLASH"+Math.random()+"\0",nke="\0OPEN"+Math.random()+"\0",XJ="\0CLOSE"+Math.random()+"\0",ike="\0COMMA"+Math.random()+"\0",ske="\0PERIOD"+Math.random()+"\0",eOt=new RegExp(rke,"g"),tOt=new RegExp(nke,"g"),rOt=new RegExp(XJ,"g"),nOt=new RegExp(ike,"g"),iOt=new RegExp(ske,"g"),sOt=/\\\\/g,oOt=/\\{/g,aOt=/\\}/g,cOt=/\\,/g,lOt=/\\\./g;mE.EXPANSION_MAX=1e5;function KJ(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}o(KJ,"numeric");function uOt(t){return t.replace(sOt,rke).replace(oOt,nke).replace(aOt,XJ).replace(cOt,ike).replace(lOt,ske)}o(uOt,"escapeBraces");function dOt(t){return t.replace(eOt,"\\").replace(tOt,"{").replace(rOt,"}").replace(nOt,",").replace(iOt,".")}o(dOt,"unescapeBraces");function oke(t){if(!t)return[""];let e=[],r=(0,tke.balanced)("{","}",t);if(!r)return t.split(",");let{pre:n,body:i,post:s}=r,a=n.split(",");a[a.length-1]+="{"+i+"}";let c=oke(s);return s.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),e.push.apply(e,a),e}o(oke,"parseCommaParts");function fOt(t,e={}){if(!t)return[];let{max:r=mE.EXPANSION_MAX}=e;return t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),fS(uOt(t),r,!0).map(dOt)}o(fOt,"expand");function hOt(t){return"{"+t+"}"}o(hOt,"embrace");function pOt(t){return/^-?0\d/.test(t)}o(pOt,"isPadded");function AOt(t,e){return t<=e}o(AOt,"lte");function mOt(t,e){return t>=e}o(mOt,"gte");function fS(t,e,r){let n=[],i=(0,tke.balanced)("{","}",t);if(!i)return[t];let s=i.pre,a=i.post.length?fS(i.post,e,!1):[""];if(/\$$/.test(i.pre))for(let c=0;c=0;if(!u&&!d)return i.post.match(/,(?!,).*\}/)?(t=i.pre+"{"+i.body+XJ+i.post,fS(t,e,!0)):[t];let f;if(u)f=i.body.split(/\.\./);else if(f=oke(i.body),f.length===1&&f[0]!==void 0&&(f=fS(f[0],e,!1).map(hOt),f.length===1))return a.map(p=>i.pre+f[0]+p);let h;if(u&&f[0]!==void 0&&f[1]!==void 0){let p=KJ(f[0]),m=KJ(f[1]),A=Math.max(f[0].length,f[1].length),E=f.length===3&&f[2]!==void 0?Math.max(Math.abs(KJ(f[2])),1):1,y=AOt;m0){let N=new Array(U+1).join("0");B<0?P="-"+N+P.slice(1):P=N+P}}h.push(P)}}else{h=[];for(let p=0;p{"use strict";Object.defineProperty(N1,"__esModule",{value:!0});N1.assertValidPattern=void 0;var gOt=1024*64,yOt=o(t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>gOt)throw new TypeError("pattern is too long")},"assertValidPattern");N1.assertValidPattern=yOt});var uke=g(R1=>{"use strict";Object.defineProperty(R1,"__esModule",{value:!0});R1.parseClass=void 0;var EOt={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},hS=o(t=>t.replace(/[[\]\\-]/g,"\\$&"),"braceEscape"),COt=o(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regexpEscape"),lke=o(t=>t.join(""),"rangesToString"),bOt=o((t,e)=>{let r=e;if(t.charAt(r)!=="[")throw new Error("not in a brace expression");let n=[],i=[],s=r+1,a=!1,c=!1,l=!1,u=!1,d=r,f="";e:for(;sf?n.push(hS(f)+"-"+hS(A)):A===f&&n.push(hS(A)),f="",s++;continue}if(t.startsWith("-]",s+1)){n.push(hS(A+"-")),s+=2;continue}if(t.startsWith("-",s+1)){f=A,s+=2;continue}n.push(hS(A)),s++}if(d{"use strict";Object.defineProperty(_1,"__esModule",{value:!0});_1.unescape=void 0;var wOt=o((t,{windowsPathsNoEscape:e=!1,magicalBraces:r=!0}={})=>r?e?t.replace(/\[([^/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):e?t.replace(/\[([^/\\{}])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1"),"unescape");_1.unescape=wOt});var t6=g(P1=>{"use strict";var ws;Object.defineProperty(P1,"__esModule",{value:!0});P1.AST=void 0;var IOt=uke(),D1=T1(),SOt=new Set(["!","?","+","*","@"]),ZJ=o(t=>SOt.has(t),"isExtglobType"),dke=o(t=>ZJ(t.type),"isExtglobAST"),BOt=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),xOt=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),vOt=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),fke=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),NOt="(?!(?:^|/)\\.\\.?(?:$|/))",Q1="(?!\\.)",ROt=new Set(["[","."]),_Ot=new Set(["..","."]),TOt=new Set("().*{}+?[]^$\\!"),DOt=o(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),e6="[^/]",hke=e6+"*?",pke=e6+"+?",QOt=0,k1=class{static{o(this,"AST")}type;#e;#r;#n=!1;#t=[];#i;#s;#l;#a=!1;#c;#o;#f=!1;id=++QOt;get depth(){return(this.#i?.depth??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){return{"@@type":"AST",id:this.id,type:this.type,root:this.#e.id,parent:this.#i?.id,depth:this.depth,partsLength:this.#t.length,parts:this.#t}}constructor(e,r,n={}){this.type=e,e&&(this.#r=!0),this.#i=r,this.#e=this.#i?this.#i.#e:this,this.#c=this.#e===this?n:this.#e.#c,this.#l=this.#e===this?[]:this.#e.#l,e==="!"&&!this.#e.#a&&this.#l.push(this),this.#s=this.#i?this.#i.#t.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(let e of this.#t)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#o!==void 0?this.#o:this.type?this.#o=this.type+"("+this.#t.map(e=>String(e)).join("|")+")":this.#o=this.#t.map(e=>String(e)).join("")}#C(){if(this!==this.#e)throw new Error("should only call on root");if(this.#a)return this;this.toString(),this.#a=!0;let e;for(;e=this.#l.pop();){if(e.type!=="!")continue;let r=e,n=r.#i;for(;n;){for(let i=r.#s+1;!n.type&&itypeof r=="string"?r:r.toJSON()):[this.type,...this.#t.map(r=>r.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#a&&this.#i?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#i?.isStart())return!1;if(this.#s===0)return!0;let e=this.#i;for(let r=0;rtypeof p!="string"),u=this.#t.map(p=>{let[m,A,E,y]=typeof p=="string"?ws.#S(p,this.#r,l):p.toRegExpSource(e);return this.#r=this.#r||E,this.#n=this.#n||y,m}).join(""),d="";if(this.isStart()&&typeof this.#t[0]=="string"&&!(this.#t.length===1&&_Ot.has(this.#t[0]))){let m=ROt,A=r&&m.has(u.charAt(0))||u.startsWith("\\.")&&m.has(u.charAt(2))||u.startsWith("\\.\\.")&&m.has(u.charAt(4)),E=!r&&!e&&m.has(u.charAt(0));d=A?NOt:E?Q1:""}let f="";return this.isEnd()&&this.#e.#a&&this.#i?.type==="!"&&(f="(?:$|\\/)"),[d+u+f,(0,D1.unescape)(u),this.#r=!!this.#r,this.#n]}let n=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#w(r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let l=this.toString(),u=this;return u.#t=[l],u.type=null,u.#r=void 0,[l,(0,D1.unescape)(this.toString()),!1,!1]}let a=!n||e||r||!Q1?"":this.#w(!0);a===s&&(a=""),a&&(s=`(?:${s})(?:${a})*?`);let c="";if(this.type==="!"&&this.#f)c=(this.isStart()&&!r?Q1:"")+pke;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!e?Q1:"")+hke+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`;c=i+s+l}return[c,(0,D1.unescape)(s),this.#r=!!this.#r,this.#n]}#d(){if(dke(this)){let e=0,r=!1;do{r=!0;for(let n=0;n{if(typeof r=="string")throw new Error("string type in extglob ast??");let[n,i,s,a]=r.toRegExpSource(e);return this.#n=this.#n||a,n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#S(e,r,n=!1){let i=!1,s="",a=!1,c=!1;for(let l=0;l{"use strict";Object.defineProperty(O1,"__esModule",{value:!0});O1.escape=void 0;var kOt=o((t,{windowsPathsNoEscape:e=!1,magicalBraces:r=!1}={})=>r?e?t.replace(/[?*()[\]{}]/g,"[$&]"):t.replace(/[?*()[\]\\{}]/g,"\\$&"):e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),"escape");O1.escape=kOt});var bke=g(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.unescape=pe.escape=pe.AST=pe.Minimatch=pe.match=pe.makeRe=pe.braceExpand=pe.defaults=pe.filter=pe.GLOBSTAR=pe.sep=pe.minimatch=void 0;var POt=ake(),L1=cke(),gke=t6(),OOt=r6(),LOt=T1(),FOt=o((t,e,r={})=>((0,L1.assertValidPattern)(e),!r.nocomment&&e.charAt(0)==="#"?!1:new lA(e,r).match(t)),"minimatch");pe.minimatch=FOt;var MOt=/^\*+([^+@!?*[(]*)$/,UOt=o(t=>e=>!e.startsWith(".")&&e.endsWith(t),"starDotExtTest"),qOt=o(t=>e=>e.endsWith(t),"starDotExtTestDot"),GOt=o(t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),"starDotExtTestNocase"),HOt=o(t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),"starDotExtTestNocaseDot"),zOt=/^\*+\.\*+$/,VOt=o(t=>!t.startsWith(".")&&t.includes("."),"starDotStarTest"),$Ot=o(t=>t!=="."&&t!==".."&&t.includes("."),"starDotStarTestDot"),jOt=/^\.\*+$/,WOt=o(t=>t!=="."&&t!==".."&&t.startsWith("."),"dotStarTest"),JOt=/^\*+$/,YOt=o(t=>t.length!==0&&!t.startsWith("."),"starTest"),KOt=o(t=>t.length!==0&&t!=="."&&t!=="..","starTestDot"),XOt=/^\?+([^+@!?*[(]*)?$/,ZOt=o(([t,e=""])=>{let r=yke([t]);return e?(e=e.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(e)):r},"qmarksTestNocase"),eLt=o(([t,e=""])=>{let r=Eke([t]);return e?(e=e.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(e)):r},"qmarksTestNocaseDot"),tLt=o(([t,e=""])=>{let r=Eke([t]);return e?n=>r(n)&&n.endsWith(e):r},"qmarksTestDot"),rLt=o(([t,e=""])=>{let r=yke([t]);return e?n=>r(n)&&n.endsWith(e):r},"qmarksTest"),yke=o(([t])=>{let e=t.length;return r=>r.length===e&&!r.startsWith(".")},"qmarksTestNoExt"),Eke=o(([t])=>{let e=t.length;return r=>r.length===e&&r!=="."&&r!==".."},"qmarksTestNoExtDot"),Cke=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Ake={win32:{sep:"\\"},posix:{sep:"/"}};pe.sep=Cke==="win32"?Ake.win32.sep:Ake.posix.sep;pe.minimatch.sep=pe.sep;pe.GLOBSTAR=Symbol("globstar **");pe.minimatch.GLOBSTAR=pe.GLOBSTAR;var nLt="[^/]",iLt=nLt+"*?",sLt="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",oLt="(?:(?!(?:\\/|^)\\.).)*?",aLt=o((t,e={})=>r=>(0,pe.minimatch)(r,t,e),"filter");pe.filter=aLt;pe.minimatch.filter=pe.filter;var ca=o((t,e={})=>Object.assign({},t,e),"ext"),cLt=o(t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return pe.minimatch;let e=pe.minimatch;return Object.assign(o((n,i,s={})=>e(n,i,ca(t,s)),"m"),{Minimatch:class extends e.Minimatch{static{o(this,"Minimatch")}constructor(i,s={}){super(i,ca(t,s))}static defaults(i){return e.defaults(ca(t,i)).Minimatch}},AST:class extends e.AST{static{o(this,"AST")}constructor(i,s,a={}){super(i,s,ca(t,a))}static fromGlob(i,s={}){return e.AST.fromGlob(i,ca(t,s))}},unescape:o((n,i={})=>e.unescape(n,ca(t,i)),"unescape"),escape:o((n,i={})=>e.escape(n,ca(t,i)),"escape"),filter:o((n,i={})=>e.filter(n,ca(t,i)),"filter"),defaults:o(n=>e.defaults(ca(t,n)),"defaults"),makeRe:o((n,i={})=>e.makeRe(n,ca(t,i)),"makeRe"),braceExpand:o((n,i={})=>e.braceExpand(n,ca(t,i)),"braceExpand"),match:o((n,i,s={})=>e.match(n,i,ca(t,s)),"match"),sep:e.sep,GLOBSTAR:pe.GLOBSTAR})},"defaults");pe.defaults=cLt;pe.minimatch.defaults=pe.defaults;var lLt=o((t,e={})=>((0,L1.assertValidPattern)(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,POt.expand)(t,{max:e.braceExpandMax})),"braceExpand");pe.braceExpand=lLt;pe.minimatch.braceExpand=pe.braceExpand;var uLt=o((t,e={})=>new lA(t,e).makeRe(),"makeRe");pe.makeRe=uLt;pe.minimatch.makeRe=pe.makeRe;var dLt=o((t,e,r={})=>{let n=new lA(e,r);return t=t.filter(i=>n.match(i)),n.options.nonull&&!t.length&&t.push(e),t},"match");pe.match=dLt;pe.minimatch.match=pe.match;var mke=/[?*]|[+@!]\(.*?\)|\[|\]/,fLt=o(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),lA=class{static{o(this,"Minimatch")}options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,r={}){(0,L1.assertValidPattern)(e),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=e,this.platform=r.platform||Cke,this.isWindows=this.platform==="win32";let n="allowWindowsEscape";this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r[n]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let r of e)if(typeof r!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let i=this.globParts.map((s,a,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=s[0]===""&&s[1]===""&&(s[2]==="?"||!mke.test(s[2]))&&!mke.test(s[3]),u=/^[a-z]:/i.test(s[0]);if(l)return[...s.slice(0,4),...s.slice(4).map(d=>this.parse(d))];if(u)return[s[0],...s.slice(1).map(d=>this.parse(d))]}return s.map(l=>this.parse(l))});if(this.debug(this.pattern,i),this.set=i.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):r>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let i=n;for(;r[i+1]==="**";)i++;i!==n&&r.splice(n,i-n)}return r})}levelOneOptimize(e){return e.map(r=>(r=r.reduce((n,i)=>{let s=n[n.length-1];return i==="**"&&s==="**"?n:i===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(n.pop(),n):(n.push(i),n)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let i=1;ii&&n.splice(i+1,a-i);let c=n[i+1],l=n[i+2],u=n[i+3];if(c!==".."||!l||l==="."||l===".."||!u||u==="."||u==="..")continue;r=!0,n.splice(i,1);let d=n.slice(0);d[i]="**",e.push(d),i--}if(!this.preserveMultipleSlashes){for(let a=1;ar.length)}partsMatch(e,r,n=!1){let i=0,s=0,a=[],c="";for(;i=2&&(e=this.levelTwoFileOptimize(e)),r.includes(pe.GLOBSTAR)?this.#e(e,r,n,i,s):this.#n(e,r,n,i,s)}#e(e,r,n,i,s){let a=r.indexOf(pe.GLOBSTAR,s),c=r.lastIndexOf(pe.GLOBSTAR),[l,u,d]=n?[r.slice(s,a),r.slice(a+1),[]]:[r.slice(s,a),r.slice(a+1,c),r.slice(c+1)];if(l.length){let C=e.slice(i,i+l.length);if(!this.#n(C,l,n,0,0))return!1;i+=l.length,s+=l.length}let f=0;if(d.length){if(d.length+i>e.length)return!1;let C=e.length-d.length;if(this.#n(e,d,n,C,0))f=d.length;else{if(e[e.length-1]!==""||i+d.length===e.length||(C--,!this.#n(e,d,n,C,0)))return!1;f=d.length+1}}if(!u.length){let C=!!f;for(let w=i;w{let u=l.map(f=>{if(f instanceof RegExp)for(let h of f.flags.split(""))i.add(h);return typeof f=="string"?fLt(f):f===pe.GLOBSTAR?pe.GLOBSTAR:f._src});u.forEach((f,h)=>{let p=u[h+1],m=u[h-1];f!==pe.GLOBSTAR||m===pe.GLOBSTAR||(m===void 0?p!==void 0&&p!==pe.GLOBSTAR?u[h+1]="(?:\\/|"+n+"\\/)?"+p:u[h]=n:p===void 0?u[h-1]=m+"(?:\\/|\\/"+n+")?":p!==pe.GLOBSTAR&&(u[h-1]=m+"(?:\\/|\\/"+n+"\\/)"+p,u[h+1]=pe.GLOBSTAR))});let d=u.filter(f=>f!==pe.GLOBSTAR);if(this.partial&&d.length>=1){let f=[];for(let h=1;h<=d.length;h++)f.push(d.slice(0,h).join("/"));return"(?:"+f.join("|")+")"}return d.join("/")}).join("|"),[a,c]=e.length>1?["(?:",")"]:["",""];s="^"+a+s+c+"$",this.partial&&(s="^(?:\\/|"+a+s.slice(1,-1)+c+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;this.isWindows&&(e=e.split("\\").join("/"));let i=this.slashSplit(e);this.debug(this.pattern,"split",i);let s=this.set;this.debug(this.pattern,"set",s);let a=i[i.length-1];if(!a)for(let c=i.length-2;!a&&c>=0;c--)a=i[c];for(let c of s){let l=i;if(n.matchBase&&c.length===1&&(l=[a]),this.matchOne(l,c,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return pe.minimatch.defaults(e).Minimatch}};pe.Minimatch=lA;var hLt=t6();Object.defineProperty(pe,"AST",{enumerable:!0,get:o(function(){return hLt.AST},"get")});var pLt=r6();Object.defineProperty(pe,"escape",{enumerable:!0,get:o(function(){return pLt.escape},"get")});var ALt=T1();Object.defineProperty(pe,"unescape",{enumerable:!0,get:o(function(){return ALt.unescape},"get")});pe.minimatch.AST=gke.AST;pe.minimatch.Minimatch=lA;pe.minimatch.escape=OOt.escape;pe.minimatch.unescape=LOt.unescape});var s6=g(la=>{"use strict";var wke=la&&la.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(la,"__esModule",{value:!0});la.SuccinctRoles=la.DelegatedRole=la.Role=la.TOP_LEVEL_ROLE_NAMES=void 0;var Ike=wke(require("crypto")),mLt=bke(),F1=wke(require("util")),M1=vl(),uA=Ka();la.TOP_LEVEL_ROLE_NAMES=["root","targets","snapshot","timestamp"];var pS=class t{static{o(this,"Role")}keyIDs;threshold;unrecognizedFields;constructor(e){let{keyIDs:r,threshold:n,unrecognizedFields:i}=e;if(gLt(r))throw new M1.ValueError("duplicate key IDs found");if(n<1)throw new M1.ValueError("threshold must be at least 1");this.keyIDs=r,this.threshold=n,this.unrecognizedFields=i||{}}equals(e){return e instanceof t?this.threshold===e.threshold&&F1.default.isDeepStrictEqual(this.keyIDs,e.keyIDs)&&F1.default.isDeepStrictEqual(this.unrecognizedFields,e.unrecognizedFields):!1}toJSON(){return{keyids:this.keyIDs,threshold:this.threshold,...this.unrecognizedFields}}static fromJSON(e){let{keyids:r,threshold:n,...i}=e;if(!uA.guard.isStringArray(r))throw new TypeError("keyids must be an array");if(typeof n!="number")throw new TypeError("threshold must be a number");return new t({keyIDs:r,threshold:n,unrecognizedFields:i})}};la.Role=pS;function gLt(t){return new Set(t).size!==t.length}o(gLt,"hasDuplicates");var n6=class t extends pS{static{o(this,"DelegatedRole")}name;terminating;paths;pathHashPrefixes;constructor(e){super(e);let{name:r,terminating:n,paths:i,pathHashPrefixes:s}=e;if(this.name=r,this.terminating=n,e.paths&&e.pathHashPrefixes)throw new M1.ValueError("paths and pathHashPrefixes are mutually exclusive");this.paths=i,this.pathHashPrefixes=s}equals(e){return e instanceof t?super.equals(e)&&this.name===e.name&&this.terminating===e.terminating&&F1.default.isDeepStrictEqual(this.paths,e.paths)&&F1.default.isDeepStrictEqual(this.pathHashPrefixes,e.pathHashPrefixes):!1}isDelegatedPath(e){if(this.paths)return this.paths.some(r=>ELt(e,r));if(this.pathHashPrefixes){let n=Ike.default.createHash("sha256").update(e).digest("hex");return this.pathHashPrefixes.some(i=>n.startsWith(i))}return!1}toJSON(){let e={...super.toJSON(),name:this.name,terminating:this.terminating};return this.paths&&(e.paths=this.paths),this.pathHashPrefixes&&(e.path_hash_prefixes=this.pathHashPrefixes),e}static fromJSON(e){let{keyids:r,threshold:n,name:i,terminating:s,paths:a,path_hash_prefixes:c,...l}=e;if(!uA.guard.isStringArray(r))throw new TypeError("keyids must be an array of strings");if(typeof n!="number")throw new TypeError("threshold must be a number");if(typeof i!="string")throw new TypeError("name must be a string");if(typeof s!="boolean")throw new TypeError("terminating must be a boolean");if(uA.guard.isDefined(a)&&!uA.guard.isStringArray(a))throw new TypeError("paths must be an array of strings");if(uA.guard.isDefined(c)&&!uA.guard.isStringArray(c))throw new TypeError("path_hash_prefixes must be an array of strings");return new t({keyIDs:r,threshold:n,name:i,terminating:s,paths:a,pathHashPrefixes:c,unrecognizedFields:l})}};la.DelegatedRole=n6;var yLt=o((t,e)=>t.map((r,n)=>[r,e[n]]),"zip");function ELt(t,e){let r=t.split("/"),n=e.split("/");return n.length!=r.length?!1:yLt(r,n).every(([i,s])=>(0,mLt.minimatch)(i,s))}o(ELt,"isTargetInPathPattern");var i6=class t extends pS{static{o(this,"SuccinctRoles")}bitLength;namePrefix;numberOfBins;suffixLen;constructor(e){super(e);let{bitLength:r,namePrefix:n}=e;if(r<=0||r>32)throw new M1.ValueError("bitLength must be between 1 and 32");this.bitLength=r,this.namePrefix=n,this.numberOfBins=Math.pow(2,r),this.suffixLen=(this.numberOfBins-1).toString(16).length}equals(e){return e instanceof t?super.equals(e)&&this.bitLength===e.bitLength&&this.namePrefix===e.namePrefix:!1}getRoleForTarget(e){let i=Ike.default.createHash("sha256").update(e).digest().subarray(0,4),s=32-this.bitLength,c=(i.readUInt32BE()>>>s).toString(16).padStart(this.suffixLen,"0");return`${this.namePrefix}-${c}`}*getRoles(){for(let e=0;e{"use strict";var CLt=gE&&gE.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(gE,"__esModule",{value:!0});gE.Root=void 0;var Ske=CLt(require("util")),o6=aA(),Bke=vl(),bLt=v1(),U1=s6(),q1=Ka(),a6=class t extends o6.Signed{static{o(this,"Root")}type=o6.MetadataKind.Root;keys;roles;consistentSnapshot;constructor(e){if(super(e),this.keys=e.keys||{},this.consistentSnapshot=e.consistentSnapshot??!0,!e.roles)this.roles=U1.TOP_LEVEL_ROLE_NAMES.reduce((r,n)=>({...r,[n]:new U1.Role({keyIDs:[],threshold:1})}),{});else{let r=new Set(Object.keys(e.roles));if(!U1.TOP_LEVEL_ROLE_NAMES.every(n=>r.has(n)))throw new Bke.ValueError("missing top-level role");this.roles=e.roles}}addKey(e,r){if(!this.roles[r])throw new Bke.ValueError(`role ${r} does not exist`);this.roles[r].keyIDs.includes(e.keyID)||this.roles[r].keyIDs.push(e.keyID),this.keys[e.keyID]=e}equals(e){return e instanceof t?super.equals(e)&&this.consistentSnapshot===e.consistentSnapshot&&Ske.default.isDeepStrictEqual(this.keys,e.keys)&&Ske.default.isDeepStrictEqual(this.roles,e.roles):!1}toJSON(){return{_type:this.type,spec_version:this.specVersion,version:this.version,expires:this.expires,keys:wLt(this.keys),roles:ILt(this.roles),consistent_snapshot:this.consistentSnapshot,...this.unrecognizedFields}}static fromJSON(e){let{unrecognizedFields:r,...n}=o6.Signed.commonFieldsFromJSON(e),{keys:i,roles:s,consistent_snapshot:a,...c}=r;if(typeof a!="boolean")throw new TypeError("consistent_snapshot must be a boolean");return new t({...n,keys:SLt(i),roles:BLt(s),consistentSnapshot:a,unrecognizedFields:c})}};gE.Root=a6;function wLt(t){return Object.entries(t).reduce((e,[r,n])=>({...e,[r]:n.toJSON()}),{})}o(wLt,"keysToJSON");function ILt(t){return Object.entries(t).reduce((e,[r,n])=>({...e,[r]:n.toJSON()}),{})}o(ILt,"rolesToJSON");function SLt(t){let e;if(q1.guard.isDefined(t)){if(!q1.guard.isObjectRecord(t))throw new TypeError("keys must be an object");e=Object.entries(t).reduce((r,[n,i])=>({...r,[n]:bLt.Key.fromJSON(n,i)}),{})}return e}o(SLt,"keysFromJSON");function BLt(t){let e;if(q1.guard.isDefined(t)){if(!q1.guard.isObjectRecord(t))throw new TypeError("roles must be an object");e=Object.entries(t).reduce((r,[n,i])=>({...r,[n]:U1.Role.fromJSON(i)}),{})}return e}o(BLt,"rolesFromJSON")});var u6=g(G1=>{"use strict";Object.defineProperty(G1,"__esModule",{value:!0});G1.Signature=void 0;var l6=class t{static{o(this,"Signature")}keyID;sig;constructor(e){let{keyID:r,sig:n}=e;this.keyID=r,this.sig=n}toJSON(){return{keyid:this.keyID,sig:this.sig}}static fromJSON(e){let{keyid:r,sig:n}=e;if(typeof r!="string")throw new TypeError("keyid must be a string");if(typeof n!="string")throw new TypeError("sig must be a string");return new t({keyID:r,sig:n})}};G1.Signature=l6});var h6=g(yE=>{"use strict";var xLt=yE&&yE.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(yE,"__esModule",{value:!0});yE.Snapshot=void 0;var vLt=xLt(require("util")),d6=aA(),vke=cS(),xke=Ka(),f6=class t extends d6.Signed{static{o(this,"Snapshot")}type=d6.MetadataKind.Snapshot;meta;constructor(e){super(e),this.meta=e.meta||{"targets.json":new vke.MetaFile({version:1})}}equals(e){return e instanceof t?super.equals(e)&&vLt.default.isDeepStrictEqual(this.meta,e.meta):!1}toJSON(){return{_type:this.type,meta:NLt(this.meta),spec_version:this.specVersion,version:this.version,expires:this.expires,...this.unrecognizedFields}}static fromJSON(e){let{unrecognizedFields:r,...n}=d6.Signed.commonFieldsFromJSON(e),{meta:i,...s}=r;return new t({...n,meta:RLt(i),unrecognizedFields:s})}};yE.Snapshot=f6;function NLt(t){return Object.entries(t).reduce((e,[r,n])=>({...e,[r]:n.toJSON()}),{})}o(NLt,"metaToJSON");function RLt(t){let e;if(xke.guard.isDefined(t))if(xke.guard.isObjectRecord(t))e=Object.entries(t).reduce((r,[n,i])=>({...r,[n]:vke.MetaFile.fromJSON(i)}),{});else throw new TypeError("meta field is malformed");return e}o(RLt,"metaFromJSON")});var Nke=g(EE=>{"use strict";var _Lt=EE&&EE.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(EE,"__esModule",{value:!0});EE.Delegations=void 0;var H1=_Lt(require("util")),TLt=vl(),DLt=v1(),p6=s6(),z1=Ka(),A6=class t{static{o(this,"Delegations")}keys;roles;unrecognizedFields;succinctRoles;constructor(e){if(this.keys=e.keys,this.unrecognizedFields=e.unrecognizedFields||{},e.roles&&Object.keys(e.roles).some(r=>p6.TOP_LEVEL_ROLE_NAMES.includes(r)))throw new TLt.ValueError("Delegated role name conflicts with top-level role name");this.succinctRoles=e.succinctRoles,this.roles=e.roles}equals(e){return e instanceof t?H1.default.isDeepStrictEqual(this.keys,e.keys)&&H1.default.isDeepStrictEqual(this.roles,e.roles)&&H1.default.isDeepStrictEqual(this.unrecognizedFields,e.unrecognizedFields)&&H1.default.isDeepStrictEqual(this.succinctRoles,e.succinctRoles):!1}*rolesForTarget(e){if(this.roles)for(let r of Object.values(this.roles))r.isDelegatedPath(e)&&(yield{role:r.name,terminating:r.terminating});else this.succinctRoles&&(yield{role:this.succinctRoles.getRoleForTarget(e),terminating:!0})}toJSON(){let e={keys:QLt(this.keys),...this.unrecognizedFields};return this.roles?e.roles=kLt(this.roles):this.succinctRoles&&(e.succinct_roles=this.succinctRoles.toJSON()),e}static fromJSON(e){let{keys:r,roles:n,succinct_roles:i,...s}=e,a;return z1.guard.isObject(i)&&(a=p6.SuccinctRoles.fromJSON(i)),new t({keys:PLt(r),roles:OLt(n),unrecognizedFields:s,succinctRoles:a})}};EE.Delegations=A6;function QLt(t){return Object.entries(t).reduce((e,[r,n])=>({...e,[r]:n.toJSON()}),{})}o(QLt,"keysToJSON");function kLt(t){return Object.values(t).map(e=>e.toJSON())}o(kLt,"rolesToJSON");function PLt(t){if(!z1.guard.isObjectRecord(t))throw new TypeError("keys is malformed");return Object.entries(t).reduce((e,[r,n])=>({...e,[r]:DLt.Key.fromJSON(r,n)}),{})}o(PLt,"keysFromJSON");function OLt(t){let e;if(z1.guard.isDefined(t)){if(!z1.guard.isObjectArray(t))throw new TypeError("roles is malformed");e=t.reduce((r,n)=>{let i=p6.DelegatedRole.fromJSON(n);return{...r,[i.name]:i}},{})}return e}o(OLt,"rolesFromJSON")});var y6=g(CE=>{"use strict";var LLt=CE&&CE.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(CE,"__esModule",{value:!0});CE.Targets=void 0;var Rke=LLt(require("util")),m6=aA(),FLt=Nke(),MLt=cS(),V1=Ka(),g6=class t extends m6.Signed{static{o(this,"Targets")}type=m6.MetadataKind.Targets;targets;delegations;constructor(e){super(e),this.targets=e.targets||{},this.delegations=e.delegations}addTarget(e){this.targets[e.path]=e}equals(e){return e instanceof t?super.equals(e)&&Rke.default.isDeepStrictEqual(this.targets,e.targets)&&Rke.default.isDeepStrictEqual(this.delegations,e.delegations):!1}toJSON(){let e={_type:this.type,spec_version:this.specVersion,version:this.version,expires:this.expires,targets:ULt(this.targets),...this.unrecognizedFields};return this.delegations&&(e.delegations=this.delegations.toJSON()),e}static fromJSON(e){let{unrecognizedFields:r,...n}=m6.Signed.commonFieldsFromJSON(e),{targets:i,delegations:s,...a}=r;return new t({...n,targets:qLt(i),delegations:GLt(s),unrecognizedFields:a})}};CE.Targets=g6;function ULt(t){return Object.entries(t).reduce((e,[r,n])=>({...e,[r]:n.toJSON()}),{})}o(ULt,"targetsToJSON");function qLt(t){let e;if(V1.guard.isDefined(t))if(V1.guard.isObjectRecord(t))e=Object.entries(t).reduce((r,[n,i])=>({...r,[n]:MLt.TargetFile.fromJSON(n,i)}),{});else throw new TypeError("targets must be an object");return e}o(qLt,"targetsFromJSON");function GLt(t){let e;if(V1.guard.isDefined(t))if(V1.guard.isObject(t))e=FLt.Delegations.fromJSON(t);else throw new TypeError("delegations must be an object");return e}o(GLt,"delegationsFromJSON")});var w6=g($1=>{"use strict";Object.defineProperty($1,"__esModule",{value:!0});$1.Timestamp=void 0;var E6=aA(),_ke=cS(),C6=Ka(),b6=class t extends E6.Signed{static{o(this,"Timestamp")}type=E6.MetadataKind.Timestamp;snapshotMeta;constructor(e){super(e),this.snapshotMeta=e.snapshotMeta||new _ke.MetaFile({version:1})}equals(e){return e instanceof t?super.equals(e)&&this.snapshotMeta.equals(e.snapshotMeta):!1}toJSON(){return{_type:this.type,spec_version:this.specVersion,version:this.version,expires:this.expires,meta:{"snapshot.json":this.snapshotMeta.toJSON()},...this.unrecognizedFields}}static fromJSON(e){let{unrecognizedFields:r,...n}=E6.Signed.commonFieldsFromJSON(e),{meta:i,...s}=r;return new t({...n,snapshotMeta:HLt(i),unrecognizedFields:s})}};$1.Timestamp=b6;function HLt(t){let e;if(C6.guard.isDefined(t)){let r=t["snapshot.json"];if(!C6.guard.isDefined(r)||!C6.guard.isObject(r))throw new TypeError("missing snapshot.json in meta");e=_ke.MetaFile.fromJSON(r)}return e}o(HLt,"snapshotMetaFromJSON")});var Dke=g(wE=>{"use strict";var zLt=wE&&wE.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(wE,"__esModule",{value:!0});wE.Metadata=void 0;var VLt=qJ(),Tke=zLt(require("util")),bE=aA(),AS=vl(),$Lt=c6(),jLt=u6(),WLt=h6(),JLt=y6(),YLt=w6(),I6=Ka(),S6=class t{static{o(this,"Metadata")}signed;signatures;unrecognizedFields;constructor(e,r,n){this.signed=e,this.signatures=r||{},this.unrecognizedFields=n||{}}sign(e,r=!0){let n=Buffer.from((0,VLt.canonicalize)(this.signed.toJSON())),i=e(n);r||(this.signatures={}),this.signatures[i.keyID]=i}verifyDelegate(e,r){let n,i={};switch(this.signed.type){case bE.MetadataKind.Root:i=this.signed.keys,n=this.signed.roles[e];break;case bE.MetadataKind.Targets:if(!this.signed.delegations)throw new AS.ValueError(`No delegations found for ${e}`);i=this.signed.delegations.keys,this.signed.delegations.roles?n=this.signed.delegations.roles[e]:this.signed.delegations.succinctRoles&&this.signed.delegations.succinctRoles.isDelegatedRole(e)&&(n=this.signed.delegations.succinctRoles);break;default:throw new TypeError("invalid metadata type")}if(!n)throw new AS.ValueError(`no delegation found for ${e}`);let s=new Set;if(n.keyIDs.forEach(a=>{let c=i[a];if(c)try{c.verifySignature(r),s.add(c.keyID)}catch{}}),s.sizer.toJSON()),signed:this.signed.toJSON(),...this.unrecognizedFields}}static fromJSON(e,r){let{signed:n,signatures:i,...s}=r;if(!I6.guard.isDefined(n)||!I6.guard.isObject(n))throw new TypeError("signed is not defined");if(e!==n._type)throw new AS.ValueError(`expected '${e}', got ${n._type}`);if(!I6.guard.isObjectArray(i))throw new TypeError("signatures is not an array");let a;switch(e){case bE.MetadataKind.Root:a=$Lt.Root.fromJSON(n);break;case bE.MetadataKind.Timestamp:a=YLt.Timestamp.fromJSON(n);break;case bE.MetadataKind.Snapshot:a=WLt.Snapshot.fromJSON(n);break;case bE.MetadataKind.Targets:a=JLt.Targets.fromJSON(n);break;default:throw new TypeError("invalid metadata type")}let c={};return i.forEach(l=>{let u=jLt.Signature.fromJSON(l);if(c[u.keyID])throw new AS.ValueError(`multiple signatures found for keyid: ${u.keyID}`);c[u.keyID]=u}),new t(a,c,s)}};wE.Metadata=S6});var j1=g(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.Timestamp=mr.Targets=mr.Snapshot=mr.Signature=mr.Root=mr.Metadata=mr.Key=mr.TargetFile=mr.MetaFile=mr.ValueError=mr.MetadataKind=void 0;var KLt=aA();Object.defineProperty(mr,"MetadataKind",{enumerable:!0,get:o(function(){return KLt.MetadataKind},"get")});var XLt=vl();Object.defineProperty(mr,"ValueError",{enumerable:!0,get:o(function(){return XLt.ValueError},"get")});var Qke=cS();Object.defineProperty(mr,"MetaFile",{enumerable:!0,get:o(function(){return Qke.MetaFile},"get")});Object.defineProperty(mr,"TargetFile",{enumerable:!0,get:o(function(){return Qke.TargetFile},"get")});var ZLt=v1();Object.defineProperty(mr,"Key",{enumerable:!0,get:o(function(){return ZLt.Key},"get")});var eFt=Dke();Object.defineProperty(mr,"Metadata",{enumerable:!0,get:o(function(){return eFt.Metadata},"get")});var tFt=c6();Object.defineProperty(mr,"Root",{enumerable:!0,get:o(function(){return tFt.Root},"get")});var rFt=u6();Object.defineProperty(mr,"Signature",{enumerable:!0,get:o(function(){return rFt.Signature},"get")});var nFt=h6();Object.defineProperty(mr,"Snapshot",{enumerable:!0,get:o(function(){return nFt.Snapshot},"get")});var iFt=y6();Object.defineProperty(mr,"Targets",{enumerable:!0,get:o(function(){return iFt.Targets},"get")});var sFt=w6();Object.defineProperty(mr,"Timestamp",{enumerable:!0,get:o(function(){return sFt.Timestamp},"get")})});var Pke=g((iDr,kke)=>{var IE=1e3,SE=IE*60,BE=SE*60,dA=BE*24,oFt=dA*7,aFt=dA*365.25;kke.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return cFt(t);if(r==="number"&&isFinite(t))return e.long?uFt(t):lFt(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function cFt(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*aFt;case"weeks":case"week":case"w":return r*oFt;case"days":case"day":case"d":return r*dA;case"hours":case"hour":case"hrs":case"hr":case"h":return r*BE;case"minutes":case"minute":case"mins":case"min":case"m":return r*SE;case"seconds":case"second":case"secs":case"sec":case"s":return r*IE;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}o(cFt,"parse");function lFt(t){var e=Math.abs(t);return e>=dA?Math.round(t/dA)+"d":e>=BE?Math.round(t/BE)+"h":e>=SE?Math.round(t/SE)+"m":e>=IE?Math.round(t/IE)+"s":t+"ms"}o(lFt,"fmtShort");function uFt(t){var e=Math.abs(t);return e>=dA?W1(t,e,dA,"day"):e>=BE?W1(t,e,BE,"hour"):e>=SE?W1(t,e,SE,"minute"):e>=IE?W1(t,e,IE,"second"):t+" ms"}o(uFt,"fmtLong");function W1(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}o(W1,"plural")});var B6=g((oDr,Oke)=>{function dFt(t){r.debug=r,r.default=r,r.coerce=l,r.disable=a,r.enable=i,r.enabled=c,r.humanize=Pke(),r.destroy=u,Object.keys(t).forEach(d=>{r[d]=t[d]}),r.names=[],r.skips=[],r.formatters={};function e(d){let f=0;for(let h=0;h{if(U==="%%")return"%";B++;let $=r.formatters[N];if(typeof $=="function"){let Q=E[B];U=$.call(y,Q),E.splice(B,1),B--}return U}),r.formatArgs.call(y,E),(y.log||r.log).apply(y,E)}return o(A,"debug"),A.namespace=d,A.useColors=r.useColors(),A.color=r.selectColor(d),A.extend=n,A.destroy=r.destroy,Object.defineProperty(A,"enabled",{enumerable:!0,configurable:!1,get:o(()=>h!==null?h:(p!==r.namespaces&&(p=r.namespaces,m=r.enabled(d)),m),"get"),set:o(E=>{h=E},"set")}),typeof r.init=="function"&&r.init(A),A}o(r,"createDebug");function n(d,f){let h=r(this.namespace+(typeof f>"u"?":":f)+d);return h.log=this.log,h}o(n,"extend");function i(d){r.save(d),r.namespaces=d,r.names=[],r.skips=[];let f=(typeof d=="string"?d:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let h of f)h[0]==="-"?r.skips.push(h.slice(1)):r.names.push(h)}o(i,"enable");function s(d,f){let h=0,p=0,m=-1,A=0;for(;h"-"+f)].join(",");return r.enable(""),d}o(a,"disable");function c(d){for(let f of r.skips)if(s(d,f))return!1;for(let f of r.names)if(s(d,f))return!0;return!1}o(c,"enabled");function l(d){return d instanceof Error?d.stack||d.message:d}o(l,"coerce");function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return o(u,"destroy"),r.enable(r.load()),r}o(dFt,"setup");Oke.exports=dFt});var Lke=g((Is,J1)=>{Is.formatArgs=hFt;Is.save=pFt;Is.load=AFt;Is.useColors=fFt;Is.storage=mFt();Is.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Is.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function fFt(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}o(fFt,"useColors");function hFt(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+J1.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),t.splice(n,0,e)}o(hFt,"formatArgs");Is.log=console.debug||console.log||(()=>{});function pFt(t){try{t?Is.storage.setItem("debug",t):Is.storage.removeItem("debug")}catch{}}o(pFt,"save");function AFt(){let t;try{t=Is.storage.getItem("debug")||Is.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}o(AFt,"load");function mFt(){try{return localStorage}catch{}}o(mFt,"localstorage");J1.exports=B6()(Is);var{formatters:gFt}=J1.exports;gFt.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Mke=g((Un,K1)=>{var yFt=require("tty"),Y1=require("util");Un.init=BFt;Un.log=wFt;Un.formatArgs=CFt;Un.save=IFt;Un.load=SFt;Un.useColors=EFt;Un.destroy=Y1.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Un.colors=[6,2,3,4,5,1];try{let t=jU();t&&(t.stderr||t).level>=2&&(Un.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}Un.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(i,s)=>s.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function EFt(){return"colors"in Un.inspectOpts?!!Un.inspectOpts.colors:yFt.isatty(process.stderr.fd)}o(EFt,"useColors");function CFt(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${i};1m${e} \x1B[0m`;t[0]=s+t[0].split(` +`+b);let[,R]=S;return R.replace(/\s/g,"").split(PS).map(k=>k.replace(KE,"").trim())}o(OS,"parseParams");function SA(I,b){var S={};return Object.keys(I).forEach(R=>{var k=I[R],L,M=p(k),G=!M&&k.length===1||M&&k.length===0;if(Array.isArray(k))L=[...k],k=L.pop(),S[R]=L.concat(L.length>0?j:k);else if(G)S[R]=k;else{if(L=OS(k),k.length===0&&!M&&L.length===0)throw new Error("autoInject task functions require explicit parameters.");M||L.pop(),S[R]=L.concat(j)}function j(be,gt){var vt=L.map(Ct=>be[Ct]);vt.push(gt),E(k)(...vt)}o(j,"newTask")}),YE(S,b)}o(SA,"autoInject");class LS{static{o(this,"DLL")}constructor(){this.head=this.tail=null,this.length=0}removeLink(b){return b.prev?b.prev.next=b.next:this.head=b.next,b.next?b.next.prev=b.prev:this.tail=b.prev,b.prev=b.next=null,this.length-=1,b}empty(){for(;this.head;)this.shift();return this}insertAfter(b,S){S.prev=b,S.next=b.next,b.next?b.next.prev=S:this.tail=S,b.next=S,this.length+=1}insertBefore(b,S){S.prev=b.prev,S.next=b,b.prev?b.prev.next=S:this.head=S,b.prev=S,this.length+=1}unshift(b){this.head?this.insertBefore(this.head,b):ZE(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):ZE(this,b)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var b=this.head;b;)yield b.data,b=b.next}remove(b){for(var S=this.head;S;){var{next:R}=S;b(S)&&this.removeLink(S),S=R}return this}}function ZE(I,b){I.length=1,I.head=I.tail=b}o(ZE,"setInitial");function BA(I,b,S){if(b==null)b=1;else if(b===0)throw new RangeError("Concurrency must not be zero");var R=E(I),k=0,L=[];let M={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function G(Te,Ce){M[Te].push(Ce)}o(G,"on");function j(Te,Ce){let De=o((...bt)=>{be(Te,De),Ce(...bt)},"handleAndRemove");M[Te].push(De)}o(j,"once");function be(Te,Ce){if(!Te)return Object.keys(M).forEach(De=>M[De]=[]);if(!Ce)return M[Te]=[];M[Te]=M[Te].filter(De=>De!==Ce)}o(be,"off");function gt(Te,...Ce){M[Te].forEach(De=>De(...Ce))}o(gt,"trigger");var vt=!1;function Ct(Te,Ce,De,bt){if(bt!=null&&typeof bt!="function")throw new Error("task callback must be a function");Nt.started=!0;var ar,In;function uo($f,...oC){if($f)return De?In($f):ar();if(oC.length<=1)return ar(oC[0]);ar(oC)}o(uo,"promiseCallback");var _A=Nt._createTaskItem(Te,De?uo:bt||uo);if(Ce?Nt._tasks.unshift(_A):Nt._tasks.push(_A),vt||(vt=!0,u(()=>{vt=!1,Nt.process()})),De||!bt)return new Promise(($f,oC)=>{ar=$f,In=oC})}o(Ct,"_insert");function lo(Te){return function(Ce,...De){k-=1;for(var bt=0,ar=Te.length;bt0&&L.splice(uo,1),In.callback(Ce,...De),Ce!=null&>("error",Ce,In.data)}k<=Nt.concurrency-Nt.buffer&>("unsaturated"),Nt.idle()&>("drain"),Nt.process()}}o(lo,"_createCB");function NA(Te){return Te.length===0&&Nt.idle()?(u(()=>gt("drain")),!0):!1}o(NA,"_maybeDrain");let Vf=o(Te=>Ce=>{if(!Ce)return new Promise((De,bt)=>{j(Te,(ar,In)=>{if(ar)return bt(ar);De(In)})});be(Te),G(Te,Ce)},"eventMethod");var sC=!1,Nt={_tasks:new LS,_createTaskItem(Te,Ce){return{data:Te,callback:Ce}},*[Symbol.iterator](){yield*Nt._tasks[Symbol.iterator]()},concurrency:b,payload:S,buffer:b/4,started:!1,paused:!1,push(Te,Ce){return Array.isArray(Te)?NA(Te)?void 0:Te.map(De=>Ct(De,!1,!1,Ce)):Ct(Te,!1,!1,Ce)},pushAsync(Te,Ce){return Array.isArray(Te)?NA(Te)?void 0:Te.map(De=>Ct(De,!1,!0,Ce)):Ct(Te,!1,!0,Ce)},kill(){be(),Nt._tasks.empty()},unshift(Te,Ce){return Array.isArray(Te)?NA(Te)?void 0:Te.map(De=>Ct(De,!0,!1,Ce)):Ct(Te,!0,!1,Ce)},unshiftAsync(Te,Ce){return Array.isArray(Te)?NA(Te)?void 0:Te.map(De=>Ct(De,!0,!0,Ce)):Ct(Te,!0,!0,Ce)},remove(Te){Nt._tasks.remove(Te)},process(){if(!sC){for(sC=!0;!Nt.paused&&k{k(b,L,(j,be)=>{b=be,G(j)})},L=>R(L,b))}o(FS,"reduce");var ha=y(FS,4);function eC(...I){var b=I.map(E);return function(...S){var R=this,k=S[S.length-1];return typeof k=="function"?S.pop():k=td(),ha(b,S,(L,M,G)=>{M.apply(R,L.concat((j,...be)=>{G(j,be)}))},(L,M)=>k(L,...M)),k[Ml]}}o(eC,"seq");function Ee(...I){return eC(...I.reverse())}o(Ee,"compose");function O(I,b,S,R){return w(Se(b),I,S,R)}o(O,"mapLimit");var x=y(O,4);function F(I,b,S,R){var k=E(S);return x(I,b,(L,M)=>{k(L,(G,...j)=>G?M(G):M(G,j))},(L,M)=>{for(var G=[],j=0;j{var M=!1,G;let j=E(k);S(R,(be,gt,vt)=>{j(be,(Ct,lo)=>{if(Ct||Ct===!1)return vt(Ct);if(I(lo)&&!G)return M=!0,G=b(!0,be),vt(null,U);vt()})},be=>{if(be)return L(be);L(null,M?G:b(!1))})}}o(Vt,"_createTester");function zf(I,b,S){return Vt(R=>R,(R,k)=>k)(or,I,b,S)}o(zf,"detect");var vA=y(zf,3);function MS(I,b,S,R){return Vt(k=>k,(k,L)=>L)(Se(b),I,S,R)}o(MS,"detectLimit");var US=y(MS,4);function KOe(I,b,S){return Vt(R=>R,(R,k)=>k)(Se(1),I,b,S)}o(KOe,"detectSeries");var qS=y(KOe,3);function aK(I){return(b,...S)=>E(b)(...S,(R,...k)=>{typeof console=="object"&&(R?console.error&&console.error(R):console[I]&&k.forEach(L=>console[I](L)))})}o(aK,"consoleFunc");var cK=aK("dir");function XOe(I,b,S){S=ue(S);var R=E(I),k=E(b),L;function M(j,...be){if(j)return S(j);j!==!1&&(L=be,k(...be,G))}o(M,"next");function G(j,be){if(j)return S(j);if(j!==!1){if(!be)return S(null,...L);R(M)}}return o(G,"check"),G(null,!0)}o(XOe,"doWhilst");var tC=y(XOe,3);function lK(I,b,S){let R=E(b);return tC(I,(...k)=>{let L=k.pop();R(...k,(M,G)=>L(M,!G))},S)}o(lK,"doUntil");function uK(I){return(b,S,R)=>I(b,R)}o(uK,"_withoutIndex");function ZOe(I,b,S){return or(I,uK(E(b)),S)}o(ZOe,"eachLimit$2");var GS=y(ZOe,3);function eLe(I,b,S,R){return Se(b)(I,uK(E(S)),R)}o(eLe,"eachLimit");var rC=y(eLe,4);function tLe(I,b,S){return rC(I,1,b,S)}o(tLe,"eachSeries");var nC=y(tLe,3);function lP(I){return p(I)?I:function(...b){var S=b.pop(),R=!0;b.push((...k)=>{R?u(()=>S(...k)):S(...k)}),I.apply(this,b),R=!1}}o(lP,"ensureAsync");function rLe(I,b,S){return Vt(R=>!R,R=>!R)(or,I,b,S)}o(rLe,"every");var HS=y(rLe,3);function nLe(I,b,S,R){return Vt(k=>!k,k=>!k)(Se(b),I,S,R)}o(nLe,"everyLimit");var zS=y(nLe,4);function iLe(I,b,S){return Vt(R=>!R,R=>!R)(ti,I,b,S)}o(iLe,"everySeries");var VS=y(iLe,3);function sLe(I,b,S,R){var k=new Array(b.length);I(b,(L,M,G)=>{S(L,(j,be)=>{k[M]=!!be,G(j)})},L=>{if(L)return R(L);for(var M=[],G=0;G{S(L,(j,be)=>{if(j)return G(j);be&&k.push({index:M,value:L}),G(j)})},L=>{if(L)return R(L);R(null,k.sort((M,G)=>M.index-G.index).map(M=>M.value))})}o(oLe,"filterGeneric");function $S(I,b,S,R){var k=B(b)?sLe:oLe;return k(I,b,E(S),R)}o($S,"_filter");function aLe(I,b,S){return $S(or,I,b,S)}o(aLe,"filter");var jS=y(aLe,3);function cLe(I,b,S,R){return $S(Se(b),I,S,R)}o(cLe,"filterLimit");var WS=y(cLe,4);function lLe(I,b,S){return $S(ti,I,b,S)}o(lLe,"filterSeries");var JS=y(lLe,3);function uLe(I,b){var S=ue(b),R=E(lP(I));function k(L){if(L)return S(L);L!==!1&&R(k)}return o(k,"next"),k()}o(uLe,"forever");var dK=y(uLe,2);function dLe(I,b,S,R){var k=E(S);return x(I,b,(L,M)=>{k(L,(G,j)=>G?M(G):M(G,{key:j,val:L}))},(L,M)=>{for(var G={},{hasOwnProperty:j}=Object.prototype,be=0;be{L(M,G,(be,gt)=>{if(be)return j(be);k[G]=gt,j(be)})},M=>R(M,k))}o(fLe,"mapValuesLimit");var KS=y(fLe,4);function AK(I,b,S){return KS(I,1/0,b,S)}o(AK,"mapValues");function mK(I,b,S){return KS(I,1,b,S)}o(mK,"mapValuesSeries");function gK(I,b=S=>S){var S=Object.create(null),R=Object.create(null),k=E(I),L=r((M,G)=>{var j=b(...M);j in S?u(()=>G(null,...S[j])):j in R?R[j].push(G):(R[j]=[G],k(...M,(be,...gt)=>{be||(S[j]=gt);var vt=R[j];delete R[j];for(var Ct=0,lo=vt.length;Ct{var R=B(b)?[]:{};I(b,(k,L,M)=>{E(k)((G,...j)=>{j.length<2&&([j]=j),R[L]=j,M(G)})},k=>S(k,R))},3);function EK(I,b){return uP(or,I,b)}o(EK,"parallel");function CK(I,b,S){return uP(Se(b),I,S)}o(CK,"parallelLimit");function dP(I,b){var S=E(I);return BA((R,k)=>{S(R[0],k)},b,1)}o(dP,"queue");class hLe{static{o(this,"Heap")}constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(b){let S;for(;b>0&&fP(this.heap[b],this.heap[S=bK(b)]);){let R=this.heap[b];this.heap[b]=this.heap[S],this.heap[S]=R,b=S}}percDown(b){let S;for(;(S=pLe(b))=0;R--)this.percDown(R);return this}}function pLe(I){return(I<<1)+1}o(pLe,"leftChi");function bK(I){return(I+1>>1)-1}o(bK,"parent");function fP(I,b){return I.priority!==b.priority?I.priority({data:M,priority:G,callback:j});function L(M,G){return Array.isArray(M)?M.map(j=>({data:j,priority:G})):{data:M,priority:G}}return o(L,"createDataItems"),S.push=function(M,G=0,j){return R(L(M,G),j)},S.pushAsync=function(M,G=0,j){return k(L(M,G),j)},delete S.unshift,delete S.unshiftAsync,S}o(wK,"priorityQueue");function ALe(I,b){if(b=N(b),!Array.isArray(I))return b(new TypeError("First argument to race must be an array of functions"));if(!I.length)return b();for(var S=0,R=I.length;S{let G={};if(L&&(G.error=L),M.length>0){var j=M;M.length<=1&&([j]=M),G.value=j}k(null,G)}),b.apply(this,R)},"reflectOn"))}o(eB,"reflect");function SK(I){var b;return Array.isArray(I)?b=I.map(eB):(b={},Object.keys(I).forEach(S=>{b[S]=eB.call(this,I[S])})),b}o(SK,"reflectAll");function hP(I,b,S,R){let k=E(S);return $S(I,b,(L,M)=>{k(L,(G,j)=>{M(G,!j)})},R)}o(hP,"reject$2");function mLe(I,b,S){return hP(or,I,b,S)}o(mLe,"reject");var BK=y(mLe,3);function gLe(I,b,S,R){return hP(Se(b),I,S,R)}o(gLe,"rejectLimit");var xK=y(gLe,4);function yLe(I,b,S){return hP(ti,I,b,S)}o(yLe,"rejectSeries");var vK=y(yLe,3);function NK(I){return function(){return I}}o(NK,"constant");let pP=5,_K=0;function tB(I,b,S){var R={times:pP,intervalFunc:NK(_K)};if(arguments.length<3&&typeof I=="function"?(S=b||td(),b=I):(ELe(R,I),S=S||td()),typeof b!="function")throw new Error("Invalid arguments for async.retry");var k=E(b),L=1;function M(){k((G,...j)=>{G!==!1&&(G&&L++{(k.lengthR)(or,I,b,S)}o(CLe,"some");var rB=y(CLe,3);function bLe(I,b,S,R){return Vt(Boolean,k=>k)(Se(b),I,S,R)}o(bLe,"someLimit");var nB=y(bLe,4);function wLe(I,b,S){return Vt(Boolean,R=>R)(ti,I,b,S)}o(wLe,"someSeries");var iB=y(wLe,3);function ILe(I,b,S){var R=E(b);return bi(I,(L,M)=>{R(L,(G,j)=>{if(G)return M(G);M(G,{value:L,criteria:j})})},(L,M)=>{if(L)return S(L);S(null,M.sort(k).map(G=>G.value))});function k(L,M){var G=L.criteria,j=M.criteria;return Gj?1:0}}o(ILe,"sortBy");var DK=y(ILe,3);function QK(I,b,S){var R=E(I);return r((k,L)=>{var M=!1,G;function j(){var be=I.name||"anonymous",gt=new Error('Callback function "'+be+'" timed out.');gt.code="ETIMEDOUT",S&&(gt.info=S),M=!0,L(gt)}o(j,"timeoutCallback"),k.push((...be)=>{M||(L(...be),clearTimeout(G))}),G=setTimeout(j,b),R(...k)})}o(QK,"timeout");function SLe(I){for(var b=Array(I);I--;)b[I]=I;return b}o(SLe,"range");function sB(I,b,S,R){var k=E(S);return x(SLe(I),b,k,R)}o(sB,"timesLimit");function kK(I,b,S){return sB(I,1/0,b,S)}o(kK,"times");function PK(I,b,S){return sB(I,1,b,S)}o(PK,"timesSeries");function OK(I,b,S,R){arguments.length<=3&&typeof b=="function"&&(R=S,S=b,b=Array.isArray(I)?[]:{}),R=N(R||td());var k=E(S);return or(I,(L,M,G)=>{k(b,L,M,G)},L=>R(L,b)),R[Ml]}o(OK,"transform");function BLe(I,b){var S=null,R;return nC(I,(k,L)=>{E(k)((M,...G)=>{if(M===!1)return L(M);G.length<2?[R]=G:R=G,S=M,L(M?null:{})})},()=>b(S,R))}o(BLe,"tryEach");var LK=y(BLe);function FK(I){return(...b)=>(I.unmemoized||I)(...b)}o(FK,"unmemoize");function xLe(I,b,S){S=ue(S);var R=E(b),k=E(I),L=[];function M(j,...be){if(j)return S(j);L=be,j!==!1&&k(G)}o(M,"next");function G(j,be){if(j)return S(j);if(j!==!1){if(!be)return S(null,...L);R(M)}}return o(G,"check"),k(G)}o(xLe,"whilst");var iC=y(xLe,3);function MK(I,b,S){let R=E(I);return iC(k=>R((L,M)=>k(L,!M)),b,S)}o(MK,"until");function vLe(I,b){if(b=N(b),!Array.isArray(I))return b(new Error("First argument to waterfall must be an array of functions"));if(!I.length)return b();var S=0;function R(L){var M=E(I[S++]);M(...L,ue(k))}o(R,"nextTask");function k(L,...M){if(L!==!1){if(L||S===I.length)return b(L,...M);R(M)}}o(k,"next"),R([])}o(vLe,"waterfall");var UK=y(vLe),NLe={apply:e,applyEach:tc,applyEachSeries:JE,asyncify:d,auto:YE,autoInject:SA,cargo:xA,cargoQueue:Bs,compose:Ee,concat:Y,concatLimit:q,concatSeries:Et,constant:Kr,detect:vA,detectLimit:US,detectSeries:qS,dir:cK,doUntil:lK,doWhilst:tC,each:GS,eachLimit:rC,eachOf:or,eachOfLimit:fe,eachOfSeries:ti,eachSeries:nC,ensureAsync:lP,every:HS,everyLimit:zS,everySeries:VS,filter:jS,filterLimit:WS,filterSeries:JS,forever:dK,groupBy:fK,groupByLimit:YS,groupBySeries:hK,log:pK,map:bi,mapLimit:x,mapSeries:IA,mapValues:AK,mapValuesLimit:KS,mapValuesSeries:mK,memoize:gK,nextTick:yK,parallel:EK,parallelLimit:CK,priorityQueue:wK,queue:dP,race:IK,reduce:ha,reduceRight:ZS,reflect:eB,reflectAll:SK,reject:BK,rejectLimit:xK,rejectSeries:vK,retry:tB,retryable:RK,seq:eC,series:TK,setImmediate:u,some:rB,someLimit:nB,someSeries:iB,sortBy:DK,timeout:QK,times:kK,timesLimit:sB,timesSeries:PK,transform:OK,tryEach:LK,unmemoize:FK,until:MK,waterfall:UK,whilst:iC,all:HS,allLimit:zS,allSeries:VS,any:rB,anyLimit:nB,anySeries:iB,find:vA,findLimit:US,findSeries:qS,flatMap:Y,flatMapLimit:q,flatMapSeries:Et,forEach:GS,forEachSeries:nC,forEachLimit:rC,forEachOf:or,forEachOfSeries:ti,forEachOfLimit:fe,inject:ha,foldl:ha,foldr:ZS,select:jS,selectLimit:WS,selectSeries:JS,wrapSync:d,during:iC,doDuring:tC};t.all=HS,t.allLimit=zS,t.allSeries=VS,t.any=rB,t.anyLimit=nB,t.anySeries=iB,t.apply=e,t.applyEach=tc,t.applyEachSeries=JE,t.asyncify=d,t.auto=YE,t.autoInject=SA,t.cargo=xA,t.cargoQueue=Bs,t.compose=Ee,t.concat=Y,t.concatLimit=q,t.concatSeries=Et,t.constant=Kr,t.default=NLe,t.detect=vA,t.detectLimit=US,t.detectSeries=qS,t.dir=cK,t.doDuring=tC,t.doUntil=lK,t.doWhilst=tC,t.during=iC,t.each=GS,t.eachLimit=rC,t.eachOf=or,t.eachOfLimit=fe,t.eachOfSeries=ti,t.eachSeries=nC,t.ensureAsync=lP,t.every=HS,t.everyLimit=zS,t.everySeries=VS,t.filter=jS,t.filterLimit=WS,t.filterSeries=JS,t.find=vA,t.findLimit=US,t.findSeries=qS,t.flatMap=Y,t.flatMapLimit=q,t.flatMapSeries=Et,t.foldl=ha,t.foldr=ZS,t.forEach=GS,t.forEachLimit=rC,t.forEachOf=or,t.forEachOfLimit=fe,t.forEachOfSeries=ti,t.forEachSeries=nC,t.forever=dK,t.groupBy=fK,t.groupByLimit=YS,t.groupBySeries=hK,t.inject=ha,t.log=pK,t.map=bi,t.mapLimit=x,t.mapSeries=IA,t.mapValues=AK,t.mapValuesLimit=KS,t.mapValuesSeries=mK,t.memoize=gK,t.nextTick=yK,t.parallel=EK,t.parallelLimit=CK,t.priorityQueue=wK,t.queue=dP,t.race=IK,t.reduce=ha,t.reduceRight=ZS,t.reflect=eB,t.reflectAll=SK,t.reject=BK,t.rejectLimit=xK,t.rejectSeries=vK,t.retry=tB,t.retryable=RK,t.select=jS,t.selectLimit=WS,t.selectSeries=JS,t.seq=eC,t.series=TK,t.setImmediate=u,t.some=rB,t.someLimit=nB,t.someSeries=iB,t.sortBy=DK,t.timeout=QK,t.times=kK,t.timesLimit=sB,t.timesSeries=PK,t.transform=OK,t.tryEach=LK,t.unmemoize=FK,t.until=MK,t.waterfall=UK,t.whilst=iC,t.wrapSync=d,Object.defineProperty(t,"__esModule",{value:!0})}))});var Nwe=g((N0r,vwe)=>{var rf=require("constants"),Vgt=process.cwd,z2=null,$gt=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return z2||(z2=Vgt.call(process)),z2};try{process.cwd()}catch{}typeof process.chdir=="function"&&(C8=process.chdir,process.chdir=function(t){z2=null,C8.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,C8));var C8;vwe.exports=jgt;function jgt(t){rf.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=a(t.chownSync),t.fchownSync=a(t.fchownSync),t.lchownSync=a(t.lchownSync),t.chmodSync=i(t.chmodSync),t.fchmodSync=i(t.fchmodSync),t.lchmodSync=i(t.lchmodSync),t.stat=c(t.stat),t.fstat=c(t.fstat),t.lstat=c(t.lstat),t.statSync=l(t.statSync),t.fstatSync=l(t.fstatSync),t.lstatSync=l(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(d,f,h){h&&process.nextTick(h)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(d,f,h,p){p&&process.nextTick(p)},t.lchownSync=function(){}),$gt==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:(function(d){function f(h,p,m){var A=Date.now(),E=0;d(h,p,o(function y(C){if(C&&(C.code==="EACCES"||C.code==="EPERM"||C.code==="EBUSY")&&Date.now()-A<6e4){setTimeout(function(){t.stat(p,function(w,B){w&&w.code==="ENOENT"?d(h,p,y):m(C)})},E),E<100&&(E+=10);return}m&&m(C)},"CB"))}return o(f,"rename"),Object.setPrototypeOf&&Object.setPrototypeOf(f,d),f})(t.rename)),t.read=typeof t.read!="function"?t.read:(function(d){function f(h,p,m,A,E,y){var C;if(y&&typeof y=="function"){var w=0;C=o(function(B,P,U){if(B&&B.code==="EAGAIN"&&w<10)return w++,d.call(t,h,p,m,A,E,C);y.apply(this,arguments)},"callback")}return d.call(t,h,p,m,A,E,C)}return o(f,"read"),Object.setPrototypeOf&&Object.setPrototypeOf(f,d),f})(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:(function(d){return function(f,h,p,m,A){for(var E=0;;)try{return d.call(t,f,h,p,m,A)}catch(y){if(y.code==="EAGAIN"&&E<10){E++;continue}throw y}}})(t.readSync);function e(d){d.lchmod=function(f,h,p){d.open(f,rf.O_WRONLY|rf.O_SYMLINK,h,function(m,A){if(m){p&&p(m);return}d.fchmod(A,h,function(E){d.close(A,function(y){p&&p(E||y)})})})},d.lchmodSync=function(f,h){var p=d.openSync(f,rf.O_WRONLY|rf.O_SYMLINK,h),m=!0,A;try{A=d.fchmodSync(p,h),m=!1}finally{if(m)try{d.closeSync(p)}catch{}else d.closeSync(p)}return A}}o(e,"patchLchmod");function r(d){rf.hasOwnProperty("O_SYMLINK")&&d.futimes?(d.lutimes=function(f,h,p,m){d.open(f,rf.O_SYMLINK,function(A,E){if(A){m&&m(A);return}d.futimes(E,h,p,function(y){d.close(E,function(C){m&&m(y||C)})})})},d.lutimesSync=function(f,h,p){var m=d.openSync(f,rf.O_SYMLINK),A,E=!0;try{A=d.futimesSync(m,h,p),E=!1}finally{if(E)try{d.closeSync(m)}catch{}else d.closeSync(m)}return A}):d.futimes&&(d.lutimes=function(f,h,p,m){m&&process.nextTick(m)},d.lutimesSync=function(){})}o(r,"patchLutimes");function n(d){return d&&function(f,h,p){return d.call(t,f,h,function(m){u(m)&&(m=null),p&&p.apply(this,arguments)})}}o(n,"chmodFix");function i(d){return d&&function(f,h){try{return d.call(t,f,h)}catch(p){if(!u(p))throw p}}}o(i,"chmodFixSync");function s(d){return d&&function(f,h,p,m){return d.call(t,f,h,p,function(A){u(A)&&(A=null),m&&m.apply(this,arguments)})}}o(s,"chownFix");function a(d){return d&&function(f,h,p){try{return d.call(t,f,h,p)}catch(m){if(!u(m))throw m}}}o(a,"chownFixSync");function c(d){return d&&function(f,h,p){typeof h=="function"&&(p=h,h=null);function m(A,E){E&&(E.uid<0&&(E.uid+=4294967296),E.gid<0&&(E.gid+=4294967296)),p&&p.apply(this,arguments)}return o(m,"callback"),h?d.call(t,f,h,m):d.call(t,f,m)}}o(c,"statFix");function l(d){return d&&function(f,h){var p=h?d.call(t,f,h):d.call(t,f);return p&&(p.uid<0&&(p.uid+=4294967296),p.gid<0&&(p.gid+=4294967296)),p}}o(l,"statFixSync");function u(d){if(!d||d.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;return!!(f&&(d.code==="EINVAL"||d.code==="EPERM"))}o(u,"chownErOk")}o(jgt,"patch")});var Twe=g((R0r,Rwe)=>{var _we=require("stream").Stream;Rwe.exports=Wgt;function Wgt(t){return{ReadStream:e,WriteStream:r};function e(n,i){if(!(this instanceof e))return new e(n,i);_we.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var a=Object.keys(i),c=0,l=a.length;cthis.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}t.open(this.path,this.flags,this.mode,function(d,f){if(d){s.emit("error",d),s.readable=!1;return}s.fd=f,s.emit("open",f),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);_we.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),a=0,c=s.length;a= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}o(Wgt,"legacy")});var Qwe=g((D0r,Dwe)=>{"use strict";Dwe.exports=Ygt;var Jgt=Object.getPrototypeOf||function(t){return t.__proto__};function Ygt(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:Jgt(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}o(Ygt,"clone")});var S8=g((k0r,I8)=>{var Er=require("fs"),Kgt=Nwe(),Xgt=Twe(),Zgt=Qwe(),V2=require("util"),Jn,j2;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Jn=Symbol.for("graceful-fs.queue"),j2=Symbol.for("graceful-fs.previous")):(Jn="___graceful-fs.queue",j2="___graceful-fs.previous");function eyt(){}o(eyt,"noop");function Owe(t,e){Object.defineProperty(t,Jn,{get:o(function(){return e},"get")})}o(Owe,"publishQueue");var xp=eyt;V2.debuglog?xp=V2.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(xp=o(function(){var t=V2.format.apply(V2,arguments);t="GFS4: "+t.split(/\n/).join(` +GFS4: `),console.error(t)},"debug"));Er[Jn]||(kwe=global[Jn]||[],Owe(Er,kwe),Er.close=(function(t){function e(r,n){return t.call(Er,r,function(i){i||Pwe(),typeof n=="function"&&n.apply(this,arguments)})}return o(e,"close"),Object.defineProperty(e,j2,{value:t}),e})(Er.close),Er.closeSync=(function(t){function e(r){t.apply(Er,arguments),Pwe()}return o(e,"closeSync"),Object.defineProperty(e,j2,{value:t}),e})(Er.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){xp(Er[Jn]),require("assert").equal(Er[Jn].length,0)}));var kwe;global[Jn]||Owe(global,Er[Jn]);I8.exports=b8(Zgt(Er));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Er.__patched&&(I8.exports=b8(Er),Er.__patched=!0);function b8(t){Kgt(t),t.gracefulify=b8,t.createReadStream=P,t.createWriteStream=U;var e=t.readFile;t.readFile=r;function r(Q,H,V){return typeof H=="function"&&(V=H,H=null),W(Q,H,V);function W(ue,de,Se,K){return e(ue,de,function(fe){fe&&(fe.code==="EMFILE"||fe.code==="ENFILE")?uy([W,[ue,de,Se],fe,K||Date.now(),Date.now()]):typeof Se=="function"&&Se.apply(this,arguments)})}o(W,"go$readFile")}o(r,"readFile");var n=t.writeFile;t.writeFile=i;function i(Q,H,V,W){return typeof V=="function"&&(W=V,V=null),ue(Q,H,V,W);function ue(de,Se,K,fe,Tt){return n(de,Se,K,function(yt){yt&&(yt.code==="EMFILE"||yt.code==="ENFILE")?uy([ue,[de,Se,K,fe],yt,Tt||Date.now(),Date.now()]):typeof fe=="function"&&fe.apply(this,arguments)})}o(ue,"go$writeFile")}o(i,"writeFile");var s=t.appendFile;s&&(t.appendFile=a);function a(Q,H,V,W){return typeof V=="function"&&(W=V,V=null),ue(Q,H,V,W);function ue(de,Se,K,fe,Tt){return s(de,Se,K,function(yt){yt&&(yt.code==="EMFILE"||yt.code==="ENFILE")?uy([ue,[de,Se,K,fe],yt,Tt||Date.now(),Date.now()]):typeof fe=="function"&&fe.apply(this,arguments)})}o(ue,"go$appendFile")}o(a,"appendFile");var c=t.copyFile;c&&(t.copyFile=l);function l(Q,H,V,W){return typeof V=="function"&&(W=V,V=0),ue(Q,H,V,W);function ue(de,Se,K,fe,Tt){return c(de,Se,K,function(yt){yt&&(yt.code==="EMFILE"||yt.code==="ENFILE")?uy([ue,[de,Se,K,fe],yt,Tt||Date.now(),Date.now()]):typeof fe=="function"&&fe.apply(this,arguments)})}o(ue,"go$copyFile")}o(l,"copyFile");var u=t.readdir;t.readdir=f;var d=/^v[0-5]\./;function f(Q,H,V){typeof H=="function"&&(V=H,H=null);var W=d.test(process.version)?o(function(Se,K,fe,Tt){return u(Se,ue(Se,K,fe,Tt))},"go$readdir"):o(function(Se,K,fe,Tt){return u(Se,K,ue(Se,K,fe,Tt))},"go$readdir");return W(Q,H,V);function ue(de,Se,K,fe){return function(Tt,yt){Tt&&(Tt.code==="EMFILE"||Tt.code==="ENFILE")?uy([W,[de,Se,K],Tt,fe||Date.now(),Date.now()]):(yt&&yt.sort&&yt.sort(),typeof K=="function"&&K.call(this,Tt,yt))}}}if(o(f,"readdir"),process.version.substr(0,4)==="v0.8"){var h=Xgt(t);y=h.ReadStream,w=h.WriteStream}var p=t.ReadStream;p&&(y.prototype=Object.create(p.prototype),y.prototype.open=C);var m=t.WriteStream;m&&(w.prototype=Object.create(m.prototype),w.prototype.open=B),Object.defineProperty(t,"ReadStream",{get:o(function(){return y},"get"),set:o(function(Q){y=Q},"set"),enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:o(function(){return w},"get"),set:o(function(Q){w=Q},"set"),enumerable:!0,configurable:!0});var A=y;Object.defineProperty(t,"FileReadStream",{get:o(function(){return A},"get"),set:o(function(Q){A=Q},"set"),enumerable:!0,configurable:!0});var E=w;Object.defineProperty(t,"FileWriteStream",{get:o(function(){return E},"get"),set:o(function(Q){E=Q},"set"),enumerable:!0,configurable:!0});function y(Q,H){return this instanceof y?(p.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}o(y,"ReadStream");function C(){var Q=this;$(Q.path,Q.flags,Q.mode,function(H,V){H?(Q.autoClose&&Q.destroy(),Q.emit("error",H)):(Q.fd=V,Q.emit("open",V),Q.read())})}o(C,"ReadStream$open");function w(Q,H){return this instanceof w?(m.apply(this,arguments),this):w.apply(Object.create(w.prototype),arguments)}o(w,"WriteStream");function B(){var Q=this;$(Q.path,Q.flags,Q.mode,function(H,V){H?(Q.destroy(),Q.emit("error",H)):(Q.fd=V,Q.emit("open",V))})}o(B,"WriteStream$open");function P(Q,H){return new t.ReadStream(Q,H)}o(P,"createReadStream");function U(Q,H){return new t.WriteStream(Q,H)}o(U,"createWriteStream");var N=t.open;t.open=$;function $(Q,H,V,W){return typeof V=="function"&&(W=V,V=null),ue(Q,H,V,W);function ue(de,Se,K,fe,Tt){return N(de,Se,K,function(yt,sr){yt&&(yt.code==="EMFILE"||yt.code==="ENFILE")?uy([ue,[de,Se,K,fe],yt,Tt||Date.now(),Date.now()]):typeof fe=="function"&&fe.apply(this,arguments)})}o(ue,"go$open")}return o($,"open"),t}o(b8,"patch");function uy(t){xp("ENQUEUE",t[0].name,t[1]),Er[Jn].push(t),w8()}o(uy,"enqueue");var $2;function Pwe(){for(var t=Date.now(),e=0;e2&&(Er[Jn][e][3]=t,Er[Jn][e][4]=t);w8()}o(Pwe,"resetQueue");function w8(){if(clearTimeout($2),$2=void 0,Er[Jn].length!==0){var t=Er[Jn].shift(),e=t[0],r=t[1],n=t[2],i=t[3],s=t[4];if(i===void 0)xp("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-i>=6e4){xp("TIMEOUT",e.name,r);var a=r.pop();typeof a=="function"&&a.call(null,n)}else{var c=Date.now()-s,l=Math.max(s-i,1),u=Math.min(l*1.2,100);c>=u?(xp("RETRY",e.name,r),e.apply(null,r.concat([i]))):Er[Jn].push(t)}$2===void 0&&($2=setTimeout(w8,0))}}o(w8,"retry")});var W2=g((O0r,Lwe)=>{"use strict";var ul=o(t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function","isStream");ul.writable=t=>ul(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";ul.readable=t=>ul(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";ul.duplex=t=>ul.writable(t)&&ul.readable(t);ul.transform=t=>ul.duplex(t)&&typeof t._transform=="function";Lwe.exports=ul});var kw=g((F0r,B8)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?B8.exports={nextTick:tyt}:B8.exports=process;function tyt(t,e,r,n){if(typeof t!="function")throw new TypeError('"callback" argument must be a function');var i=arguments.length,s,a;switch(i){case 0:case 1:return process.nextTick(t);case 2:return process.nextTick(o(function(){t.call(null,e)},"afterTickOne"));case 3:return process.nextTick(o(function(){t.call(null,e,r)},"afterTickTwo"));case 4:return process.nextTick(o(function(){t.call(null,e,r,n)},"afterTickThree"));default:for(s=new Array(i-1),a=0;a{var ryt={}.toString;Fwe.exports=Array.isArray||function(t){return ryt.call(t)=="[object Array]"}});var x8=g((q0r,Uwe)=>{Uwe.exports=require("stream")});var Pw=g((v8,Gwe)=>{var J2=require("buffer"),Tu=J2.Buffer;function qwe(t,e){for(var r in t)e[r]=t[r]}o(qwe,"copyProps");Tu.from&&Tu.alloc&&Tu.allocUnsafe&&Tu.allocUnsafeSlow?Gwe.exports=J2:(qwe(J2,v8),v8.Buffer=dy);function dy(t,e,r){return Tu(t,e,r)}o(dy,"SafeBuffer");qwe(Tu,dy);dy.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Tu(t,e,r)};dy.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=Tu(t);return e!==void 0?typeof r=="string"?n.fill(e,r):n.fill(e):n.fill(0),n};dy.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Tu(t)};dy.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return J2.SlowBuffer(t)}});var fy=g(di=>{function nyt(t){return Array.isArray?Array.isArray(t):Y2(t)==="[object Array]"}o(nyt,"isArray");di.isArray=nyt;function iyt(t){return typeof t=="boolean"}o(iyt,"isBoolean");di.isBoolean=iyt;function syt(t){return t===null}o(syt,"isNull");di.isNull=syt;function oyt(t){return t==null}o(oyt,"isNullOrUndefined");di.isNullOrUndefined=oyt;function ayt(t){return typeof t=="number"}o(ayt,"isNumber");di.isNumber=ayt;function cyt(t){return typeof t=="string"}o(cyt,"isString");di.isString=cyt;function lyt(t){return typeof t=="symbol"}o(lyt,"isSymbol");di.isSymbol=lyt;function uyt(t){return t===void 0}o(uyt,"isUndefined");di.isUndefined=uyt;function dyt(t){return Y2(t)==="[object RegExp]"}o(dyt,"isRegExp");di.isRegExp=dyt;function fyt(t){return typeof t=="object"&&t!==null}o(fyt,"isObject");di.isObject=fyt;function hyt(t){return Y2(t)==="[object Date]"}o(hyt,"isDate");di.isDate=hyt;function pyt(t){return Y2(t)==="[object Error]"||t instanceof Error}o(pyt,"isError");di.isError=pyt;function Ayt(t){return typeof t=="function"}o(Ayt,"isFunction");di.isFunction=Ayt;function myt(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}o(myt,"isPrimitive");di.isPrimitive=myt;di.isBuffer=require("buffer").Buffer.isBuffer;function Y2(t){return Object.prototype.toString.call(t)}o(Y2,"objectToString")});var Hwe=g((V0r,N8)=>{typeof Object.create=="function"?N8.exports=o(function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))},"inherits"):N8.exports=o(function(e,r){if(r){e.super_=r;var n=o(function(){},"TempCtor");n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}},"inherits")});var hy=g((j0r,R8)=>{try{if(_8=require("util"),typeof _8.inherits!="function")throw"";R8.exports=_8.inherits}catch{R8.exports=Hwe()}var _8});var Vwe=g((W0r,T8)=>{"use strict";function gyt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}o(gyt,"_classCallCheck");var zwe=Pw().Buffer,Ow=require("util");function yyt(t,e,r){t.copy(e,r)}o(yyt,"copyBuffer");T8.exports=(function(){function t(){gyt(this,t),this.head=null,this.tail=null,this.length=0}return o(t,"BufferList"),t.prototype.push=o(function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length},"push"),t.prototype.unshift=o(function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length},"unshift"),t.prototype.shift=o(function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},"shift"),t.prototype.clear=o(function(){this.head=this.tail=null,this.length=0},"clear"),t.prototype.join=o(function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i},"join"),t.prototype.concat=o(function(r){if(this.length===0)return zwe.alloc(0);for(var n=zwe.allocUnsafe(r>>>0),i=this.head,s=0;i;)yyt(i.data,n,s),s+=i.data.length,i=i.next;return n},"concat"),t})();Ow&&Ow.inspect&&Ow.inspect.custom&&(T8.exports.prototype[Ow.inspect.custom]=function(){var t=Ow.inspect({length:this.length});return this.constructor.name+" "+t})});var D8=g((Y0r,$we)=>{"use strict";var K2=kw();function Eyt(t,e){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,K2.nextTick(X2,this,t)):K2.nextTick(X2,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,K2.nextTick(X2,r,s)):K2.nextTick(X2,r,s):e&&e(s)}),this)}o(Eyt,"destroy");function Cyt(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}o(Cyt,"undestroy");function X2(t,e){t.emit("error",e)}o(X2,"emitErrorNT");$we.exports={destroy:Eyt,undestroy:Cyt}});var Wwe=g((X0r,jwe)=>{jwe.exports=require("util").deprecate});var k8=g((Z0r,rIe)=>{"use strict";var vp=kw();rIe.exports=sn;function Ywe(t){var e=this;this.next=null,this.entry=null,this.finish=function(){Fyt(e,t)}}o(Ywe,"CorkedRequest");var byt=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:vp.nextTick,py;sn.WritableState=Fw;var Kwe=Object.create(fy());Kwe.inherits=hy();var wyt={deprecate:Wwe()},Xwe=x8(),eD=Pw().Buffer,Iyt=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Syt(t){return eD.from(t)}o(Syt,"_uint8ArrayToBuffer");function Byt(t){return eD.isBuffer(t)||t instanceof Iyt}o(Byt,"_isUint8Array");var Zwe=D8();Kwe.inherits(sn,Xwe);function xyt(){}o(xyt,"nop");function Fw(t,e){py=py||Np(),t=t||{};var r=e instanceof py;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var n=t.highWaterMark,i=t.writableHighWaterMark,s=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:r&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=t.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(c){Qyt(e,c)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Ywe(this)}o(Fw,"WritableState");Fw.prototype.getBuffer=o(function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r},"getBuffer");(function(){try{Object.defineProperty(Fw.prototype,"buffer",{get:wyt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Z2;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Z2=Function.prototype[Symbol.hasInstance],Object.defineProperty(sn,Symbol.hasInstance,{value:o(function(t){return Z2.call(this,t)?!0:this!==sn?!1:t&&t._writableState instanceof Fw},"value")})):Z2=o(function(t){return t instanceof this},"realHasInstance");function sn(t){if(py=py||Np(),!Z2.call(sn,this)&&!(this instanceof py))return new sn(t);this._writableState=new Fw(t,this),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),Xwe.call(this)}o(sn,"Writable");sn.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function vyt(t,e){var r=new Error("write after end");t.emit("error",r),vp.nextTick(e,r)}o(vyt,"writeAfterEnd");function Nyt(t,e,r,n){var i=!0,s=!1;return r===null?s=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!e.objectMode&&(s=new TypeError("Invalid non-string/buffer chunk")),s&&(t.emit("error",s),vp.nextTick(n,s),i=!1),i}o(Nyt,"validChunk");sn.prototype.write=function(t,e,r){var n=this._writableState,i=!1,s=!n.objectMode&&Byt(t);return s&&!eD.isBuffer(t)&&(t=Syt(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=n.defaultEncoding),typeof r!="function"&&(r=xyt),n.ended?vyt(this,r):(s||Nyt(this,n,t,r))&&(n.pendingcb++,i=Ryt(this,n,s,t,e,r)),i};sn.prototype.cork=function(){var t=this._writableState;t.corked++};sn.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&eIe(this,t))};sn.prototype.setDefaultEncoding=o(function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},"setDefaultEncoding");function _yt(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=eD.from(e,r)),e}o(_yt,"decodeChunk");Object.defineProperty(sn.prototype,"writableHighWaterMark",{enumerable:!1,get:o(function(){return this._writableState.highWaterMark},"get")});function Ryt(t,e,r,n,i,s){if(!r){var a=_yt(e,n,i);n!==a&&(r=!0,i="buffer",n=a)}var c=e.objectMode?1:n.length;e.length+=c;var l=e.length{"use strict";var nIe=kw(),Myt=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};oIe.exports=Du;var iIe=Object.create(fy());iIe.inherits=hy();var sIe=L8(),O8=k8();iIe.inherits(Du,sIe);for(P8=Myt(O8.prototype),tD=0;tD{"use strict";var M8=Pw().Buffer,aIe=M8.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Gyt(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}o(Gyt,"_normalizeEncoding");function Hyt(t){var e=Gyt(t);if(typeof e!="string"&&(M8.isEncoding===aIe||!aIe(t)))throw new Error("Unknown encoding: "+t);return e||t}o(Hyt,"normalizeEncoding");cIe.StringDecoder=Mw;function Mw(t){this.encoding=Hyt(t);var e;switch(this.encoding){case"utf16le":this.text=Jyt,this.end=Yyt,e=4;break;case"utf8":this.fillLast=$yt,e=4;break;case"base64":this.text=Kyt,this.end=Xyt,e=3;break;default:this.write=Zyt,this.end=eEt;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=M8.allocUnsafe(e)}o(Mw,"StringDecoder");Mw.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}o(F8,"utf8CheckByte");function zyt(t,e,r){var n=e.length-1;if(n=0?(i>0&&(t.lastNeed=i-1),i):--n=0?(i>0&&(t.lastNeed=i-2),i):--n=0?(i>0&&(i===2?i=0:t.lastNeed=i-3),i):0))}o(zyt,"utf8CheckIncomplete");function Vyt(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}o(Vyt,"utf8CheckExtraBytes");function $yt(t){var e=this.lastTotal-this.lastNeed,r=Vyt(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}o($yt,"utf8FillLast");function jyt(t,e){var r=zyt(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}o(jyt,"utf8Text");function Wyt(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}o(Wyt,"utf8End");function Jyt(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}o(Jyt,"utf16Text");function Yyt(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}o(Yyt,"utf16End");function Kyt(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}o(Kyt,"base64Text");function Xyt(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}o(Xyt,"base64End");function Zyt(t){return t.toString(this.encoding)}o(Zyt,"simpleWrite");function eEt(t){return t&&t.length?this.write(t):""}o(eEt,"simpleEnd")});var L8=g((owr,CIe)=>{"use strict";var my=kw();CIe.exports=tr;var tEt=Mwe(),Uw;tr.ReadableState=AIe;var swr=require("events").EventEmitter,fIe=o(function(t,e){return t.listeners(e).length},"EElistenerCount"),V8=x8(),qw=Pw().Buffer,rEt=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function nEt(t){return qw.from(t)}o(nEt,"_uint8ArrayToBuffer");function iEt(t){return qw.isBuffer(t)||t instanceof rEt}o(iEt,"_isUint8Array");var hIe=Object.create(fy());hIe.inherits=hy();var q8=require("util"),Pt=void 0;q8&&q8.debuglog?Pt=q8.debuglog("stream"):Pt=o(function(){},"debug");var sEt=Vwe(),pIe=D8(),Ay;hIe.inherits(tr,V8);var G8=["error","close","destroy","pause","resume"];function oEt(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):tEt(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}o(oEt,"prependListener");function AIe(t,e){Uw=Uw||Np(),t=t||{};var r=e instanceof Uw;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var n=t.highWaterMark,i=t.readableHighWaterMark,s=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:r&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new sEt,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(Ay||(Ay=U8().StringDecoder),this.decoder=new Ay(t.encoding),this.encoding=t.encoding)}o(AIe,"ReadableState");function tr(t){if(Uw=Uw||Np(),!(this instanceof tr))return new tr(t);this._readableState=new AIe(t,this),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),V8.call(this)}o(tr,"Readable");Object.defineProperty(tr.prototype,"destroyed",{get:o(function(){return this._readableState===void 0?!1:this._readableState.destroyed},"get"),set:o(function(t){this._readableState&&(this._readableState.destroyed=t)},"set")});tr.prototype.destroy=pIe.destroy;tr.prototype._undestroy=pIe.undestroy;tr.prototype._destroy=function(t,e){this.push(null),e(t)};tr.prototype.push=function(t,e){var r=this._readableState,n;return r.objectMode?n=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=qw.from(t,e),e=""),n=!0),mIe(this,t,e,!1,n)};tr.prototype.unshift=function(t){return mIe(this,t,null,!0,!1)};function mIe(t,e,r,n,i){var s=t._readableState;if(e===null)s.reading=!1,uEt(t,s);else{var a;i||(a=aEt(s,e)),a?t.emit("error",a):s.objectMode||e&&e.length>0?(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==qw.prototype&&(e=nEt(e)),n?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):H8(t,s,e,!0):s.ended?t.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||e.length!==0?H8(t,s,e,!1):gIe(t,s)):H8(t,s,e,!1))):n||(s.reading=!1)}return cEt(s)}o(mIe,"readableAddChunk");function H8(t,e,r,n){e.flowing&&e.length===0&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&nD(t)),gIe(t,e)}o(H8,"addChunk");function aEt(t,e){var r;return!iEt(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}o(aEt,"chunkInvalid");function cEt(t){return!t.ended&&(t.needReadable||t.length=lIe?t=lIe:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}o(lEt,"computeNewHighWaterMark");function uIe(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=lEt(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}o(uIe,"howMuchToRead");tr.prototype.read=function(t){Pt("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return Pt("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?z8(this):nD(this),null;if(t=uIe(t,e),t===0&&e.ended)return e.length===0&&z8(this),null;var n=e.needReadable;Pt("need readable",n),(e.length===0||e.length-t0?i=yIe(t,e):i=null,i===null?(e.needReadable=!0,t=0):e.length-=t,e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&z8(this)),i!==null&&this.emit("data",i),i};function uEt(t,e){if(!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,nD(t)}}o(uEt,"onEofChunk");function nD(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(Pt("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?my.nextTick(dIe,t):dIe(t))}o(nD,"emitReadable");function dIe(t){Pt("emit readable"),t.emit("readable"),$8(t)}o(dIe,"emitReadable_");function gIe(t,e){e.readingMore||(e.readingMore=!0,my.nextTick(dEt,t,e))}o(gIe,"maybeReadMore");function dEt(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length1&&EIe(n.pipes,t)!==-1)&&!u&&(Pt("false write response, pause",n.awaitDrain),n.awaitDrain++,f=!0),r.pause())}o(h,"ondata");function p(y){Pt("onerror",y),E(),t.removeListener("error",p),fIe(t,"error")===0&&t.emit("error",y)}o(p,"onerror"),oEt(t,"error",p);function m(){t.removeListener("finish",A),E()}o(m,"onclose"),t.once("close",m);function A(){Pt("onfinish"),t.removeListener("close",m),E()}o(A,"onfinish"),t.once("finish",A);function E(){Pt("unpipe"),r.unpipe(t)}return o(E,"unpipe"),t.emit("pipe",r),n.flowing||(Pt("pipe resume"),r.resume()),t};function fEt(t){return function(){var e=t._readableState;Pt("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,e.awaitDrain===0&&fIe(t,"data")&&(e.flowing=!0,$8(t))}}o(fEt,"pipeOnDrain");tr.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.head.data:r=e.buffer.concat(e.length),e.buffer.clear()):r=mEt(t,e.buffer,e.decoder),r}o(yIe,"fromList");function mEt(t,e,r){var n;return ts.length?s.length:t;if(a===s.length?i+=s:i+=s.slice(0,t),t-=a,t===0){a===s.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=s.slice(a));break}++n}return e.length-=n,i}o(gEt,"copyFromBufferString");function yEt(t,e){var r=qw.allocUnsafe(t),n=e.head,i=1;for(n.data.copy(r),t-=n.data.length;n=n.next;){var s=n.data,a=t>s.length?s.length:t;if(s.copy(r,r.length-t,0,a),t-=a,t===0){a===s.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=s.slice(a));break}++i}return e.length-=i,r}o(yEt,"copyFromBuffer");function z8(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,my.nextTick(EEt,e,t))}o(z8,"endReadable");function EEt(t,e){!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"))}o(EEt,"endReadableNT");function EIe(t,e){for(var r=0,n=t.length;r{"use strict";IIe.exports=Qu;var iD=Np(),wIe=Object.create(fy());wIe.inherits=hy();wIe.inherits(Qu,iD);function CEt(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,e!=null&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";xIe.exports=Gw;var SIe=j8(),BIe=Object.create(fy());BIe.inherits=hy();BIe.inherits(Gw,SIe);function Gw(t){if(!(this instanceof Gw))return new Gw(t);SIe.call(this,t)}o(Gw,"PassThrough");Gw.prototype._transform=function(t,e,r){r(null,t)}});var NIe=g((Yn,sD)=>{var dl=require("stream");process.env.READABLE_STREAM==="disable"&&dl?(sD.exports=dl,Yn=sD.exports=dl.Readable,Yn.Readable=dl.Readable,Yn.Writable=dl.Writable,Yn.Duplex=dl.Duplex,Yn.Transform=dl.Transform,Yn.PassThrough=dl.PassThrough,Yn.Stream=dl):(Yn=sD.exports=L8(),Yn.Stream=dl||Yn,Yn.Readable=Yn,Yn.Writable=k8(),Yn.Duplex=Np(),Yn.Transform=j8(),Yn.PassThrough=vIe())});var RIe=g((fwr,_Ie)=>{_Ie.exports=NIe().PassThrough});var kIe=g((hwr,QIe)=>{var TIe=require("util"),cD=RIe();QIe.exports={Readable:oD,Writable:aD};TIe.inherits(oD,cD);TIe.inherits(aD,cD);function DIe(t,e,r){t[e]=function(){return delete t[e],r.apply(this,arguments),this[e].apply(this,arguments)}}o(DIe,"beforeFirstCall");function oD(t,e){if(!(this instanceof oD))return new oD(t,e);cD.call(this,e),DIe(this,"_read",function(){var r=t.call(this,e),n=this.emit.bind(this,"error");r.on("error",n),r.pipe(this)}),this.emit("readable")}o(oD,"Readable");function aD(t,e){if(!(this instanceof aD))return new aD(t,e);cD.call(this,e),DIe(this,"_write",function(){var r=t.call(this,e),n=this.emit.bind(this,"error");r.on("error",n),this.pipe(r)}),this.emit("writable")}o(aD,"Writable")});var W8=g((Awr,PIe)=>{PIe.exports=function(t,e){if(typeof t!="string")throw new TypeError("expected path to be a string");if(t==="\\"||t==="/")return"/";var r=t.length;if(r<=1)return t;var n="";if(r>4&&t[3]==="\\"){var i=t[2];(i==="?"||i===".")&&t.slice(0,2)==="\\\\"&&(t=t.slice(2),n="//")}var s=t.split(/[/\\]+/);return e!==!1&&s[s.length-1]===""&&s.pop(),n+s.join("/")}});var J8=g((mwr,OIe)=>{function wEt(t){return t}o(wEt,"identity");OIe.exports=wEt});var FIe=g((ywr,LIe)=>{function IEt(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}o(IEt,"apply");LIe.exports=IEt});var qIe=g((Cwr,UIe)=>{var SEt=FIe(),MIe=Math.max;function BEt(t,e,r){return e=MIe(e===void 0?t.length-1:e,0),function(){for(var n=arguments,i=-1,s=MIe(n.length-e,0),a=Array(s);++i{function xEt(t){return function(){return t}}o(xEt,"constant");GIe.exports=xEt});var Y8=g((Swr,zIe)=>{var vEt=typeof global=="object"&&global&&global.Object===Object&&global;zIe.exports=vEt});var gy=g((Bwr,VIe)=>{var NEt=Y8(),_Et=typeof self=="object"&&self&&self.Object===Object&&self,REt=NEt||_Et||Function("return this")();VIe.exports=REt});var lD=g((xwr,$Ie)=>{var TEt=gy(),DEt=TEt.Symbol;$Ie.exports=DEt});var YIe=g((vwr,JIe)=>{var jIe=lD(),WIe=Object.prototype,QEt=WIe.hasOwnProperty,kEt=WIe.toString,Hw=jIe?jIe.toStringTag:void 0;function PEt(t){var e=QEt.call(t,Hw),r=t[Hw];try{t[Hw]=void 0;var n=!0}catch{}var i=kEt.call(t);return n&&(e?t[Hw]=r:delete t[Hw]),i}o(PEt,"getRawTag");JIe.exports=PEt});var XIe=g((_wr,KIe)=>{var OEt=Object.prototype,LEt=OEt.toString;function FEt(t){return LEt.call(t)}o(FEt,"objectToString");KIe.exports=FEt});var zw=g((Twr,tSe)=>{var ZIe=lD(),MEt=YIe(),UEt=XIe(),qEt="[object Null]",GEt="[object Undefined]",eSe=ZIe?ZIe.toStringTag:void 0;function HEt(t){return t==null?t===void 0?GEt:qEt:eSe&&eSe in Object(t)?MEt(t):UEt(t)}o(HEt,"baseGetTag");tSe.exports=HEt});var Vw=g((Qwr,rSe)=>{function zEt(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}o(zEt,"isObject");rSe.exports=zEt});var K8=g((Pwr,nSe)=>{var VEt=zw(),$Et=Vw(),jEt="[object AsyncFunction]",WEt="[object Function]",JEt="[object GeneratorFunction]",YEt="[object Proxy]";function KEt(t){if(!$Et(t))return!1;var e=VEt(t);return e==WEt||e==JEt||e==jEt||e==YEt}o(KEt,"isFunction");nSe.exports=KEt});var sSe=g((Lwr,iSe)=>{var XEt=gy(),ZEt=XEt["__core-js_shared__"];iSe.exports=ZEt});var cSe=g((Fwr,aSe)=>{var X8=sSe(),oSe=(function(){var t=/[^.]+$/.exec(X8&&X8.keys&&X8.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function eCt(t){return!!oSe&&oSe in t}o(eCt,"isMasked");aSe.exports=eCt});var uSe=g((Uwr,lSe)=>{var tCt=Function.prototype,rCt=tCt.toString;function nCt(t){if(t!=null){try{return rCt.call(t)}catch{}try{return t+""}catch{}}return""}o(nCt,"toSource");lSe.exports=nCt});var fSe=g((Gwr,dSe)=>{var iCt=K8(),sCt=cSe(),oCt=Vw(),aCt=uSe(),cCt=/[\\^$.*+?()[\]{}|]/g,lCt=/^\[object .+?Constructor\]$/,uCt=Function.prototype,dCt=Object.prototype,fCt=uCt.toString,hCt=dCt.hasOwnProperty,pCt=RegExp("^"+fCt.call(hCt).replace(cCt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ACt(t){if(!oCt(t)||sCt(t))return!1;var e=iCt(t)?pCt:lCt;return e.test(aCt(t))}o(ACt,"baseIsNative");dSe.exports=ACt});var pSe=g((zwr,hSe)=>{function mCt(t,e){return t?.[e]}o(mCt,"getValue");hSe.exports=mCt});var $w=g(($wr,ASe)=>{var gCt=fSe(),yCt=pSe();function ECt(t,e){var r=yCt(t,e);return gCt(r)?r:void 0}o(ECt,"getNative");ASe.exports=ECt});var gSe=g((Wwr,mSe)=>{var CCt=$w(),bCt=(function(){try{var t=CCt(Object,"defineProperty");return t({},"",{}),t}catch{}})();mSe.exports=bCt});var CSe=g((Jwr,ESe)=>{var wCt=HIe(),ySe=gSe(),ICt=J8(),SCt=ySe?function(t,e){return ySe(t,"toString",{configurable:!0,enumerable:!1,value:wCt(e),writable:!0})}:ICt;ESe.exports=SCt});var wSe=g((Ywr,bSe)=>{var BCt=800,xCt=16,vCt=Date.now;function NCt(t){var e=0,r=0;return function(){var n=vCt(),i=xCt-(n-r);if(r=n,i>0){if(++e>=BCt)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}o(NCt,"shortOut");bSe.exports=NCt});var SSe=g((Xwr,ISe)=>{var _Ct=CSe(),RCt=wSe(),TCt=RCt(_Ct);ISe.exports=TCt});var uD=g((Zwr,BSe)=>{var DCt=J8(),QCt=qIe(),kCt=SSe();function PCt(t,e){return kCt(QCt(t,e,DCt),t+"")}o(PCt,"baseRest");BSe.exports=PCt});var dD=g((tIr,xSe)=>{function OCt(t,e){return t===e||t!==t&&e!==e}o(OCt,"eq");xSe.exports=OCt});var Z8=g((nIr,vSe)=>{var LCt=9007199254740991;function FCt(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=LCt}o(FCt,"isLength");vSe.exports=FCt});var fD=g((sIr,NSe)=>{var MCt=K8(),UCt=Z8();function qCt(t){return t!=null&&UCt(t.length)&&!MCt(t)}o(qCt,"isArrayLike");NSe.exports=qCt});var ej=g((aIr,_Se)=>{var GCt=9007199254740991,HCt=/^(?:0|[1-9]\d*)$/;function zCt(t,e){var r=typeof t;return e=e??GCt,!!e&&(r=="number"||r!="symbol"&&HCt.test(t))&&t>-1&&t%1==0&&t{var VCt=dD(),$Ct=fD(),jCt=ej(),WCt=Vw();function JCt(t,e,r){if(!WCt(r))return!1;var n=typeof e;return(n=="number"?$Ct(r)&&jCt(e,r.length):n=="string"&&e in r)?VCt(r[e],t):!1}o(JCt,"isIterateeCall");RSe.exports=JCt});var QSe=g((dIr,DSe)=>{function YCt(t,e){for(var r=-1,n=Array(t);++r{function KCt(t){return t!=null&&typeof t=="object"}o(KCt,"isObjectLike");kSe.exports=KCt});var OSe=g((AIr,PSe)=>{var XCt=zw(),ZCt=yy(),ebt="[object Arguments]";function tbt(t){return ZCt(t)&&XCt(t)==ebt}o(tbt,"baseIsArguments");PSe.exports=tbt});var tj=g((gIr,MSe)=>{var LSe=OSe(),rbt=yy(),FSe=Object.prototype,nbt=FSe.hasOwnProperty,ibt=FSe.propertyIsEnumerable,sbt=LSe((function(){return arguments})())?LSe:function(t){return rbt(t)&&nbt.call(t,"callee")&&!ibt.call(t,"callee")};MSe.exports=sbt});var rj=g((yIr,USe)=>{var obt=Array.isArray;USe.exports=obt});var GSe=g((EIr,qSe)=>{function abt(){return!1}o(abt,"stubFalse");qSe.exports=abt});var $Se=g((jw,Ey)=>{var cbt=gy(),lbt=GSe(),VSe=typeof jw=="object"&&jw&&!jw.nodeType&&jw,HSe=VSe&&typeof Ey=="object"&&Ey&&!Ey.nodeType&&Ey,ubt=HSe&&HSe.exports===VSe,zSe=ubt?cbt.Buffer:void 0,dbt=zSe?zSe.isBuffer:void 0,fbt=dbt||lbt;Ey.exports=fbt});var WSe=g((bIr,jSe)=>{var hbt=zw(),pbt=Z8(),Abt=yy(),mbt="[object Arguments]",gbt="[object Array]",ybt="[object Boolean]",Ebt="[object Date]",Cbt="[object Error]",bbt="[object Function]",wbt="[object Map]",Ibt="[object Number]",Sbt="[object Object]",Bbt="[object RegExp]",xbt="[object Set]",vbt="[object String]",Nbt="[object WeakMap]",_bt="[object ArrayBuffer]",Rbt="[object DataView]",Tbt="[object Float32Array]",Dbt="[object Float64Array]",Qbt="[object Int8Array]",kbt="[object Int16Array]",Pbt="[object Int32Array]",Obt="[object Uint8Array]",Lbt="[object Uint8ClampedArray]",Fbt="[object Uint16Array]",Mbt="[object Uint32Array]",rr={};rr[Tbt]=rr[Dbt]=rr[Qbt]=rr[kbt]=rr[Pbt]=rr[Obt]=rr[Lbt]=rr[Fbt]=rr[Mbt]=!0;rr[mbt]=rr[gbt]=rr[_bt]=rr[ybt]=rr[Rbt]=rr[Ebt]=rr[Cbt]=rr[bbt]=rr[wbt]=rr[Ibt]=rr[Sbt]=rr[Bbt]=rr[xbt]=rr[vbt]=rr[Nbt]=!1;function Ubt(t){return Abt(t)&&pbt(t.length)&&!!rr[hbt(t)]}o(Ubt,"baseIsTypedArray");jSe.exports=Ubt});var nj=g((IIr,JSe)=>{function qbt(t){return function(e){return t(e)}}o(qbt,"baseUnary");JSe.exports=qbt});var KSe=g((Ww,Cy)=>{var Gbt=Y8(),YSe=typeof Ww=="object"&&Ww&&!Ww.nodeType&&Ww,Jw=YSe&&typeof Cy=="object"&&Cy&&!Cy.nodeType&&Cy,Hbt=Jw&&Jw.exports===YSe,ij=Hbt&&Gbt.process,zbt=(function(){try{var t=Jw&&Jw.require&&Jw.require("util").types;return t||ij&&ij.binding&&ij.binding("util")}catch{}})();Cy.exports=zbt});var tBe=g((BIr,eBe)=>{var Vbt=WSe(),$bt=nj(),XSe=KSe(),ZSe=XSe&&XSe.isTypedArray,jbt=ZSe?$bt(ZSe):Vbt;eBe.exports=jbt});var nBe=g((xIr,rBe)=>{var Wbt=QSe(),Jbt=tj(),Ybt=rj(),Kbt=$Se(),Xbt=ej(),Zbt=tBe(),e0t=Object.prototype,t0t=e0t.hasOwnProperty;function r0t(t,e){var r=Ybt(t),n=!r&&Jbt(t),i=!r&&!n&&Kbt(t),s=!r&&!n&&!i&&Zbt(t),a=r||n||i||s,c=a?Wbt(t.length,String):[],l=c.length;for(var u in t)(e||t0t.call(t,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Xbt(u,l)))&&c.push(u);return c}o(r0t,"arrayLikeKeys");rBe.exports=r0t});var sBe=g((NIr,iBe)=>{var n0t=Object.prototype;function i0t(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||n0t;return t===r}o(i0t,"isPrototype");iBe.exports=i0t});var aBe=g((RIr,oBe)=>{function s0t(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}o(s0t,"nativeKeysIn");oBe.exports=s0t});var lBe=g((DIr,cBe)=>{var o0t=Vw(),a0t=sBe(),c0t=aBe(),l0t=Object.prototype,u0t=l0t.hasOwnProperty;function d0t(t){if(!o0t(t))return c0t(t);var e=a0t(t),r=[];for(var n in t)n=="constructor"&&(e||!u0t.call(t,n))||r.push(n);return r}o(d0t,"baseKeysIn");cBe.exports=d0t});var dBe=g((kIr,uBe)=>{var f0t=nBe(),h0t=lBe(),p0t=fD();function A0t(t){return p0t(t)?f0t(t,!0):h0t(t)}o(A0t,"keysIn");uBe.exports=A0t});var pBe=g((OIr,hBe)=>{var m0t=uD(),g0t=dD(),y0t=TSe(),E0t=dBe(),fBe=Object.prototype,C0t=fBe.hasOwnProperty,b0t=m0t(function(t,e){t=Object(t);var r=-1,n=e.length,i=n>2?e[2]:void 0;for(i&&y0t(e[0],e[1],i)&&(n=1);++r{"use strict";ABe.exports={ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var BBe=g((Xw,Kw)=>{"use strict";Object.defineProperty(Xw,"__esModule",{value:!0});var bBe=new WeakMap,sj=new WeakMap;function nr(t){let e=bBe.get(t);return console.assert(e!=null,"'this' is expected an Event object, but got",t),e}o(nr,"pd");function mBe(t){if(t.passiveListener!=null){typeof console<"u"&&typeof console.error=="function"&&console.error("Unable to preventDefault inside passive event listener invocation.",t.passiveListener);return}t.event.cancelable&&(t.canceled=!0,typeof t.event.preventDefault=="function"&&t.event.preventDefault())}o(mBe,"setCancelFlag");function by(t,e){bBe.set(this,{eventTarget:t,event:e,eventPhase:2,currentTarget:t,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:e.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let r=Object.keys(e);for(let n=0;n0){let t=new Array(arguments.length);for(let e=0;e{"use strict";Object.defineProperty(eI,"__esModule",{value:!0});var aj=BBe(),nf=class extends aj.EventTarget{static{o(this,"AbortSignal")}constructor(){throw super(),new TypeError("AbortSignal cannot be constructed directly")}get aborted(){let e=AD.get(this);if(typeof e!="boolean")throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return e}};aj.defineEventAttribute(nf.prototype,"abort");function _0t(){let t=Object.create(nf.prototype);return aj.EventTarget.call(t),AD.set(t,!1),t}o(_0t,"createAbortSignal");function R0t(t){AD.get(t)===!1&&(AD.set(t,!0),t.dispatchEvent({type:"abort"}))}o(R0t,"abortSignal");var AD=new WeakMap;Object.defineProperties(nf.prototype,{aborted:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(nf.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});var sf=class{static{o(this,"AbortController")}constructor(){vBe.set(this,_0t())}get signal(){return xBe(this)}abort(){R0t(xBe(this))}},vBe=new WeakMap;function xBe(t){let e=vBe.get(t);if(e==null)throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${t===null?"null":typeof t}`);return e}o(xBe,"getSignal");Object.defineProperties(sf.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(sf.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});eI.AbortController=sf;eI.AbortSignal=nf;eI.default=sf;Zw.exports=sf;Zw.exports.AbortController=Zw.exports.default=sf;Zw.exports.AbortSignal=nf});var fi=g((UIr,lj)=>{"use strict";var T0t=require("buffer"),{kResistStopPropagation:D0t,SymbolDispose:Q0t}=Cr(),k0t=globalThis.AbortSignal||wy().AbortSignal,P0t=globalThis.AbortController||wy().AbortController,O0t=Object.getPrototypeOf(async function(){}).constructor,NBe=globalThis.Blob||T0t.Blob,L0t=o(typeof NBe<"u"?function(e){return e instanceof NBe}:function(e){return!1},"isBlob"),_Be=o((t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new ERR_INVALID_ARG_TYPE(e,"AbortSignal",t)},"validateAbortSignal"),F0t=o((t,e)=>{if(typeof t!="function")throw new ERR_INVALID_ARG_TYPE(e,"Function",t)},"validateFunction"),cj=class extends Error{static{o(this,"AggregateError")}constructor(e){if(!Array.isArray(e))throw new TypeError(`Expected input to be an Array, got ${typeof e}`);let r="";for(let n=0;n{t=n,e=i}),resolve:t,reject:e}},"createDeferredPromise"),promisify(t){return new Promise((e,r)=>{t((n,...i)=>n?r(n):e(...i))})},debuglog(){return function(){}},format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let i=e.shift();return n==="f"?i.toFixed(6):n==="j"?JSON.stringify(i):n==="s"&&typeof i=="object"?`${i.constructor!==Object?i.constructor.name:""} {}`.trim():i.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}},types:{isAsyncFunction(t){return t instanceof O0t},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:L0t,deprecate(t,e){return t},addAbortListener:require("events").addAbortListener||o(function(e,r){if(e===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",e);_Be(e,"signal"),F0t(r,"listener");let n;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[D0t]:!0}),n=o(()=>{e.removeEventListener("abort",r)},"removeEventListener")),{__proto__:null,[Q0t](){var i;(i=n)===null||i===void 0||i()}}},"addAbortListener"),AbortSignalAny:k0t.any||o(function(e){if(e.length===1)return e[0];let r=new P0t,n=o(()=>r.abort(),"abort");return e.forEach(i=>{_Be(i,"signals"),i.addEventListener("abort",n,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(i=>i.removeEventListener("abort",n))},{once:!0}),r.signal},"AbortSignalAny")};lj.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var qi=g((GIr,DBe)=>{"use strict";var{format:M0t,inspect:mD,AggregateError:U0t}=fi(),q0t=globalThis.AggregateError||U0t,G0t=Symbol("kIsNodeError"),H0t=["string","function","number","object","Function","Object","boolean","bigint","symbol"],z0t=/^([A-Z][a-z0-9]*)+$/,V0t="__node_internal_",gD={};function _p(t,e){if(!t)throw new gD.ERR_INTERNAL_ASSERTION(e)}o(_p,"assert");function RBe(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}o(RBe,"addNumericalSeparator");function $0t(t,e,r){if(typeof e=="function")return _p(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return _p(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:M0t(e,...r)}o($0t,"getMessage");function Kn(t,e,r){r||(r=Error);class n extends r{static{o(this,"NodeError")}constructor(...s){super($0t(t,e,s))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[G0t]=!0,gD[t]=n}o(Kn,"E");function TBe(t){let e=V0t+t.name;return Object.defineProperty(t,"name",{value:e}),t}o(TBe,"hideStackFrames");function j0t(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new q0t([e,t],e.message);return r.code=e.code,r}return t||e}o(j0t,"aggregateTwoErrors");var uj=class extends Error{static{o(this,"AbortError")}constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new gD.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};Kn("ERR_ASSERTION","%s",Error);Kn("ERR_INVALID_ARG_TYPE",(t,e,r)=>{_p(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let i=[],s=[],a=[];for(let l of e)_p(typeof l=="string","All expected entries have to be of type string"),H0t.includes(l)?i.push(l.toLowerCase()):z0t.test(l)?s.push(l):(_p(l!=="object",'The value "object" should be written as "Object"'),a.push(l));if(s.length>0){let l=i.indexOf("object");l!==-1&&(i.splice(i,l,1),s.push("Object"))}if(i.length>0){switch(i.length){case 1:n+=`of type ${i[0]}`;break;case 2:n+=`one of type ${i[0]} or ${i[1]}`;break;default:{let l=i.pop();n+=`one of type ${i.join(", ")}, or ${l}`}}(s.length>0||a.length>0)&&(n+=" or ")}if(s.length>0){switch(s.length){case 1:n+=`an instance of ${s[0]}`;break;case 2:n+=`an instance of ${s[0]} or ${s[1]}`;break;default:{let l=s.pop();n+=`an instance of ${s.join(", ")}, or ${l}`}}a.length>0&&(n+=" or ")}switch(a.length){case 0:break;case 1:a[0].toLowerCase()!==a[0]&&(n+="an "),n+=`${a[0]}`;break;case 2:n+=`one of ${a[0]} or ${a[1]}`;break;default:{let l=a.pop();n+=`one of ${a.join(", ")}, or ${l}`}}if(r==null)n+=`. Received ${r}`;else if(typeof r=="function"&&r.name)n+=`. Received function ${r.name}`;else if(typeof r=="object"){var c;if((c=r.constructor)!==null&&c!==void 0&&c.name)n+=`. Received an instance of ${r.constructor.name}`;else{let l=mD(r,{depth:-1});n+=`. Received ${l}`}}else{let l=mD(r,{colors:!1});l.length>25&&(l=`${l.slice(0,25)}...`),n+=`. Received type ${typeof r} (${l})`}return n},TypeError);Kn("ERR_INVALID_ARG_VALUE",(t,e,r="is invalid")=>{let n=mD(e);return n.length>128&&(n=n.slice(0,128)+"..."),`The ${t.includes(".")?"property":"argument"} '${t}' ${r}. Received ${n}`},TypeError);Kn("ERR_INVALID_RETURN_VALUE",(t,e,r)=>{var n;let i=r!=null&&(n=r.constructor)!==null&&n!==void 0&&n.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${t} to be returned from the "${e}" function but got ${i}.`},TypeError);Kn("ERR_MISSING_ARGS",(...t)=>{_p(t.length>0,"At least one arg needs to be specified");let e,r=t.length;switch(t=(Array.isArray(t)?t:[t]).map(n=>`"${n}"`).join(" or "),r){case 1:e+=`The ${t[0]} argument`;break;case 2:e+=`The ${t[0]} and ${t[1]} arguments`;break;default:{let n=t.pop();e+=`The ${t.join(", ")}, and ${n} arguments`}break}return`${e} must be specified`},TypeError);Kn("ERR_OUT_OF_RANGE",(t,e,r)=>{_p(e,'Missing "range" argument');let n;return Number.isInteger(r)&&Math.abs(r)>2**32?n=RBe(String(r)):typeof r=="bigint"?(n=String(r),(r>2n**32n||r<-(2n**32n))&&(n=RBe(n)),n+="n"):n=mD(r),`The value of "${t}" is out of range. It must be ${e}. Received ${n}`},RangeError);Kn("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);Kn("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);Kn("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);Kn("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);Kn("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);Kn("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Kn("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);Kn("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);Kn("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);Kn("ERR_STREAM_WRITE_AFTER_END","write after end",Error);Kn("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);DBe.exports={AbortError:uj,aggregateTwoErrors:TBe(j0t),hideStackFrames:TBe,codes:gD}});var Sy=g((zIr,GBe)=>{"use strict";var{ArrayIsArray:fj,ArrayPrototypeIncludes:OBe,ArrayPrototypeJoin:LBe,ArrayPrototypeMap:W0t,NumberIsInteger:hj,NumberIsNaN:J0t,NumberMAX_SAFE_INTEGER:Y0t,NumberMIN_SAFE_INTEGER:K0t,NumberParseInt:X0t,ObjectPrototypeHasOwnProperty:Z0t,RegExpPrototypeExec:FBe,String:ewt,StringPrototypeToUpperCase:twt,StringPrototypeTrim:rwt}=Cr(),{hideStackFrames:Zo,codes:{ERR_SOCKET_BAD_PORT:nwt,ERR_INVALID_ARG_TYPE:hi,ERR_INVALID_ARG_VALUE:Iy,ERR_OUT_OF_RANGE:Rp,ERR_UNKNOWN_SIGNAL:QBe}}=qi(),{normalizeEncoding:iwt}=fi(),{isAsyncFunction:swt,isArrayBufferView:owt}=fi().types,kBe={};function awt(t){return t===(t|0)}o(awt,"isInt32");function cwt(t){return t===t>>>0}o(cwt,"isUint32");var lwt=/^[0-7]+$/,uwt="must be a 32-bit unsigned integer or an octal string";function dwt(t,e,r){if(typeof t>"u"&&(t=r),typeof t=="string"){if(FBe(lwt,t)===null)throw new Iy(e,t,uwt);t=X0t(t,8)}return MBe(t,e),t}o(dwt,"parseFileMode");var fwt=Zo((t,e,r=K0t,n=Y0t)=>{if(typeof t!="number")throw new hi(e,"number",t);if(!hj(t))throw new Rp(e,"an integer",t);if(tn)throw new Rp(e,`>= ${r} && <= ${n}`,t)}),hwt=Zo((t,e,r=-2147483648,n=2147483647)=>{if(typeof t!="number")throw new hi(e,"number",t);if(!hj(t))throw new Rp(e,"an integer",t);if(tn)throw new Rp(e,`>= ${r} && <= ${n}`,t)}),MBe=Zo((t,e,r=!1)=>{if(typeof t!="number")throw new hi(e,"number",t);if(!hj(t))throw new Rp(e,"an integer",t);let n=r?1:0,i=4294967295;if(ti)throw new Rp(e,`>= ${n} && <= ${i}`,t)});function pj(t,e){if(typeof t!="string")throw new hi(e,"string",t)}o(pj,"validateString");function pwt(t,e,r=void 0,n){if(typeof t!="number")throw new hi(e,"number",t);if(r!=null&&tn||(r!=null||n!=null)&&J0t(t))throw new Rp(e,`${r!=null?`>= ${r}`:""}${r!=null&&n!=null?" && ":""}${n!=null?`<= ${n}`:""}`,t)}o(pwt,"validateNumber");var Awt=Zo((t,e,r)=>{if(!OBe(r,t)){let i="must be one of: "+LBe(W0t(r,s=>typeof s=="string"?`'${s}'`:ewt(s)),", ");throw new Iy(e,t,i)}});function UBe(t,e){if(typeof t!="boolean")throw new hi(e,"boolean",t)}o(UBe,"validateBoolean");function dj(t,e,r){return t==null||!Z0t(t,e)?r:t[e]}o(dj,"getOwnPropertyValueOrDefault");var mwt=Zo((t,e,r=null)=>{let n=dj(r,"allowArray",!1),i=dj(r,"allowFunction",!1);if(!dj(r,"nullable",!1)&&t===null||!n&&fj(t)||typeof t!="object"&&(!i||typeof t!="function"))throw new hi(e,"Object",t)}),gwt=Zo((t,e)=>{if(t!=null&&typeof t!="object"&&typeof t!="function")throw new hi(e,"a dictionary",t)}),yD=Zo((t,e,r=0)=>{if(!fj(t))throw new hi(e,"Array",t);if(t.length{if(!owt(t))throw new hi(e,["Buffer","TypedArray","DataView"],t)});function Iwt(t,e){let r=iwt(e),n=t.length;if(r==="hex"&&n%2!==0)throw new Iy("encoding",e,`is invalid for data of length ${n}`)}o(Iwt,"validateEncoding");function Swt(t,e="Port",r=!0){if(typeof t!="number"&&typeof t!="string"||typeof t=="string"&&rwt(t).length===0||+t!==+t>>>0||t>65535||t===0&&!r)throw new nwt(e,t,r);return t|0}o(Swt,"validatePort");var qBe=Zo((t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new hi(e,"AbortSignal",t)}),Bwt=Zo((t,e)=>{if(typeof t!="function")throw new hi(e,"Function",t)}),xwt=Zo((t,e)=>{if(typeof t!="function"||swt(t))throw new hi(e,"Function",t)}),vwt=Zo((t,e)=>{if(t!==void 0)throw new hi(e,"undefined",t)});function Nwt(t,e,r){if(!OBe(r,t))throw new hi(e,`('${LBe(r,"|")}')`,t)}o(Nwt,"validateUnion");var _wt=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function PBe(t,e){if(typeof t>"u"||!FBe(_wt,t))throw new Iy(e,t,'must be an array or string of format "; rel=preload; as=style"')}o(PBe,"validateLinkHeaderFormat");function Rwt(t){if(typeof t=="string")return PBe(t,"hints"),t;if(fj(t)){let e=t.length,r="";if(e===0)return r;for(let n=0;n; rel=preload; as=style"')}o(Rwt,"validateLinkHeaderValue");GBe.exports={isInt32:awt,isUint32:cwt,parseFileMode:dwt,validateArray:yD,validateStringArray:ywt,validateBooleanArray:Ewt,validateAbortSignalArray:Cwt,validateBoolean:UBe,validateBuffer:wwt,validateDictionary:gwt,validateEncoding:Iwt,validateFunction:Bwt,validateInt32:hwt,validateInteger:fwt,validateNumber:pwt,validateObject:mwt,validateOneOf:Awt,validatePlainFunction:xwt,validatePort:Swt,validateSignalName:bwt,validateString:pj,validateUint32:MBe,validateUndefined:vwt,validateUnion:Nwt,validateAbortSignal:qBe,validateLinkHeaderValue:Rwt}});var of=g(($Ir,HBe)=>{HBe.exports=global.process});var hl=g((jIr,ixe)=>{"use strict";var{SymbolAsyncIterator:zBe,SymbolIterator:VBe,SymbolFor:Tp}=Cr(),$Be=Tp("nodejs.stream.destroyed"),jBe=Tp("nodejs.stream.errored"),Aj=Tp("nodejs.stream.readable"),mj=Tp("nodejs.stream.writable"),WBe=Tp("nodejs.stream.disturbed"),Twt=Tp("nodejs.webstream.isClosedPromise"),Dwt=Tp("nodejs.webstream.controllerErrorFunction");function ED(t,e=!1){var r;return!!(t&&typeof t.pipe=="function"&&typeof t.on=="function"&&(!e||typeof t.pause=="function"&&typeof t.resume=="function")&&(!t._writableState||((r=t._readableState)===null||r===void 0?void 0:r.readable)!==!1)&&(!t._writableState||t._readableState))}o(ED,"isReadableNodeStream");function CD(t){var e;return!!(t&&typeof t.write=="function"&&typeof t.on=="function"&&(!t._readableState||((e=t._writableState)===null||e===void 0?void 0:e.writable)!==!1))}o(CD,"isWritableNodeStream");function Qwt(t){return!!(t&&typeof t.pipe=="function"&&t._readableState&&typeof t.on=="function"&&typeof t.write=="function")}o(Qwt,"isDuplexNodeStream");function fl(t){return t&&(t._readableState||t._writableState||typeof t.write=="function"&&typeof t.on=="function"||typeof t.pipe=="function"&&typeof t.on=="function")}o(fl,"isNodeStream");function JBe(t){return!!(t&&!fl(t)&&typeof t.pipeThrough=="function"&&typeof t.getReader=="function"&&typeof t.cancel=="function")}o(JBe,"isReadableStream");function YBe(t){return!!(t&&!fl(t)&&typeof t.getWriter=="function"&&typeof t.abort=="function")}o(YBe,"isWritableStream");function KBe(t){return!!(t&&!fl(t)&&typeof t.readable=="object"&&typeof t.writable=="object")}o(KBe,"isTransformStream");function kwt(t){return JBe(t)||YBe(t)||KBe(t)}o(kwt,"isWebStream");function Pwt(t,e){return t==null?!1:e===!0?typeof t[zBe]=="function":e===!1?typeof t[VBe]=="function":typeof t[zBe]=="function"||typeof t[VBe]=="function"}o(Pwt,"isIterable");function bD(t){if(!fl(t))return null;let e=t._writableState,r=t._readableState,n=e||r;return!!(t.destroyed||t[$Be]||n!=null&&n.destroyed)}o(bD,"isDestroyed");function XBe(t){if(!CD(t))return null;if(t.writableEnded===!0)return!0;let e=t._writableState;return e!=null&&e.errored?!1:typeof e?.ended!="boolean"?null:e.ended}o(XBe,"isWritableEnded");function Owt(t,e){if(!CD(t))return null;if(t.writableFinished===!0)return!0;let r=t._writableState;return r!=null&&r.errored?!1:typeof r?.finished!="boolean"?null:!!(r.finished||e===!1&&r.ended===!0&&r.length===0)}o(Owt,"isWritableFinished");function Lwt(t){if(!ED(t))return null;if(t.readableEnded===!0)return!0;let e=t._readableState;return!e||e.errored?!1:typeof e?.ended!="boolean"?null:e.ended}o(Lwt,"isReadableEnded");function ZBe(t,e){if(!ED(t))return null;let r=t._readableState;return r!=null&&r.errored?!1:typeof r?.endEmitted!="boolean"?null:!!(r.endEmitted||e===!1&&r.ended===!0&&r.length===0)}o(ZBe,"isReadableFinished");function exe(t){return t&&t[Aj]!=null?t[Aj]:typeof t?.readable!="boolean"?null:bD(t)?!1:ED(t)&&t.readable&&!ZBe(t)}o(exe,"isReadable");function txe(t){return t&&t[mj]!=null?t[mj]:typeof t?.writable!="boolean"?null:bD(t)?!1:CD(t)&&t.writable&&!XBe(t)}o(txe,"isWritable");function Fwt(t,e){return fl(t)?bD(t)?!0:!(e?.readable!==!1&&exe(t)||e?.writable!==!1&&txe(t)):null}o(Fwt,"isFinished");function Mwt(t){var e,r;return fl(t)?t.writableErrored?t.writableErrored:(e=(r=t._writableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}o(Mwt,"isWritableErrored");function Uwt(t){var e,r;return fl(t)?t.readableErrored?t.readableErrored:(e=(r=t._readableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}o(Uwt,"isReadableErrored");function qwt(t){if(!fl(t))return null;if(typeof t.closed=="boolean")return t.closed;let e=t._writableState,r=t._readableState;return typeof e?.closed=="boolean"||typeof r?.closed=="boolean"?e?.closed||r?.closed:typeof t._closed=="boolean"&&rxe(t)?t._closed:null}o(qwt,"isClosed");function rxe(t){return typeof t._closed=="boolean"&&typeof t._defaultKeepAlive=="boolean"&&typeof t._removedConnection=="boolean"&&typeof t._removedContLen=="boolean"}o(rxe,"isOutgoingMessage");function nxe(t){return typeof t._sent100=="boolean"&&rxe(t)}o(nxe,"isServerResponse");function Gwt(t){var e;return typeof t._consuming=="boolean"&&typeof t._dumped=="boolean"&&((e=t.req)===null||e===void 0?void 0:e.upgradeOrConnect)===void 0}o(Gwt,"isServerRequest");function Hwt(t){if(!fl(t))return null;let e=t._writableState,r=t._readableState,n=e||r;return!n&&nxe(t)||!!(n&&n.autoDestroy&&n.emitClose&&n.closed===!1)}o(Hwt,"willEmitClose");function zwt(t){var e;return!!(t&&((e=t[WBe])!==null&&e!==void 0?e:t.readableDidRead||t.readableAborted))}o(zwt,"isDisturbed");function Vwt(t){var e,r,n,i,s,a,c,l,u,d;return!!(t&&((e=(r=(n=(i=(s=(a=t[jBe])!==null&&a!==void 0?a:t.readableErrored)!==null&&s!==void 0?s:t.writableErrored)!==null&&i!==void 0?i:(c=t._readableState)===null||c===void 0?void 0:c.errorEmitted)!==null&&n!==void 0?n:(l=t._writableState)===null||l===void 0?void 0:l.errorEmitted)!==null&&r!==void 0?r:(u=t._readableState)===null||u===void 0?void 0:u.errored)!==null&&e!==void 0?e:!((d=t._writableState)===null||d===void 0)&&d.errored))}o(Vwt,"isErrored");ixe.exports={isDestroyed:bD,kIsDestroyed:$Be,isDisturbed:zwt,kIsDisturbed:WBe,isErrored:Vwt,kIsErrored:jBe,isReadable:exe,kIsReadable:Aj,kIsClosedPromise:Twt,kControllerErrorFunction:Dwt,kIsWritable:mj,isClosed:qwt,isDuplexNodeStream:Qwt,isFinished:Fwt,isIterable:Pwt,isReadableNodeStream:ED,isReadableStream:JBe,isReadableEnded:Lwt,isReadableFinished:ZBe,isReadableErrored:Uwt,isNodeStream:fl,isWebStream:kwt,isWritable:txe,isWritableNodeStream:CD,isWritableStream:YBe,isWritableEnded:XBe,isWritableFinished:Owt,isWritableErrored:Mwt,isServerRequest:Gwt,isServerResponse:nxe,willEmitClose:Hwt,isTransformStream:KBe}});var ku=g((JIr,bj)=>{var af=of(),{AbortError:hxe,codes:$wt}=qi(),{ERR_INVALID_ARG_TYPE:jwt,ERR_STREAM_PREMATURE_CLOSE:sxe}=$wt,{kEmptyObject:yj,once:Ej}=fi(),{validateAbortSignal:Wwt,validateFunction:Jwt,validateObject:Ywt,validateBoolean:Kwt}=Sy(),{Promise:Xwt,PromisePrototypeThen:Zwt,SymbolDispose:pxe}=Cr(),{isClosed:eIt,isReadable:oxe,isReadableNodeStream:gj,isReadableStream:tIt,isReadableFinished:axe,isReadableErrored:cxe,isWritable:lxe,isWritableNodeStream:uxe,isWritableStream:rIt,isWritableFinished:dxe,isWritableErrored:fxe,isNodeStream:nIt,willEmitClose:iIt,kIsClosedPromise:sIt}=hl(),By;function oIt(t){return t.setHeader&&typeof t.abort=="function"}o(oIt,"isRequest");var Cj=o(()=>{},"nop");function Axe(t,e,r){var n,i;if(arguments.length===2?(r=e,e=yj):e==null?e=yj:Ywt(e,"options"),Jwt(r,"callback"),Wwt(e.signal,"options.signal"),r=Ej(r),tIt(t)||rIt(t))return aIt(t,e,r);if(!nIt(t))throw new jwt("stream",["ReadableStream","WritableStream","Stream"],t);let s=(n=e.readable)!==null&&n!==void 0?n:gj(t),a=(i=e.writable)!==null&&i!==void 0?i:uxe(t),c=t._writableState,l=t._readableState,u=o(()=>{t.writable||h()},"onlegacyfinish"),d=iIt(t)&&gj(t)===s&&uxe(t)===a,f=dxe(t,!1),h=o(()=>{f=!0,t.destroyed&&(d=!1),!(d&&(!t.readable||s))&&(!s||p)&&r.call(t)},"onfinish"),p=axe(t,!1),m=o(()=>{p=!0,t.destroyed&&(d=!1),!(d&&(!t.writable||a))&&(!a||f)&&r.call(t)},"onend"),A=o(P=>{r.call(t,P)},"onerror"),E=eIt(t),y=o(()=>{E=!0;let P=fxe(t)||cxe(t);if(P&&typeof P!="boolean")return r.call(t,P);if(s&&!p&&gj(t,!0)&&!axe(t,!1))return r.call(t,new sxe);if(a&&!f&&!dxe(t,!1))return r.call(t,new sxe);r.call(t)},"onclose"),C=o(()=>{E=!0;let P=fxe(t)||cxe(t);if(P&&typeof P!="boolean")return r.call(t,P);r.call(t)},"onclosed"),w=o(()=>{t.req.on("finish",h)},"onrequest");oIt(t)?(t.on("complete",h),d||t.on("abort",y),t.req?w():t.on("request",w)):a&&!c&&(t.on("end",u),t.on("close",u)),!d&&typeof t.aborted=="boolean"&&t.on("aborted",y),t.on("end",m),t.on("finish",h),e.error!==!1&&t.on("error",A),t.on("close",y),E?af.nextTick(y):c!=null&&c.errorEmitted||l!=null&&l.errorEmitted?d||af.nextTick(C):(!s&&(!d||oxe(t))&&(f||lxe(t)===!1)||!a&&(!d||lxe(t))&&(p||oxe(t)===!1)||l&&t.req&&t.aborted)&&af.nextTick(C);let B=o(()=>{r=Cj,t.removeListener("aborted",y),t.removeListener("complete",h),t.removeListener("abort",y),t.removeListener("request",w),t.req&&t.req.removeListener("finish",h),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",h),t.removeListener("end",m),t.removeListener("error",A),t.removeListener("close",y)},"cleanup");if(e.signal&&!E){let P=o(()=>{let U=r;B(),U.call(t,new hxe(void 0,{cause:e.signal.reason}))},"abort");if(e.signal.aborted)af.nextTick(P);else{By=By||fi().addAbortListener;let U=By(e.signal,P),N=r;r=Ej((...$)=>{U[pxe](),N.apply(t,$)})}}return B}o(Axe,"eos");function aIt(t,e,r){let n=!1,i=Cj;if(e.signal)if(i=o(()=>{n=!0,r.call(t,new hxe(void 0,{cause:e.signal.reason}))},"abort"),e.signal.aborted)af.nextTick(i);else{By=By||fi().addAbortListener;let a=By(e.signal,i),c=r;r=Ej((...l)=>{a[pxe](),c.apply(t,l)})}let s=o((...a)=>{n||af.nextTick(()=>r.apply(t,a))},"resolverFn");return Zwt(t[sIt].promise,s,s),Cj}o(aIt,"eosWeb");function cIt(t,e){var r;let n=!1;return e===null&&(e=yj),(r=e)!==null&&r!==void 0&&r.cleanup&&(Kwt(e.cleanup,"cleanup"),n=e.cleanup),new Xwt((i,s)=>{let a=Axe(t,e,c=>{n&&a(),c?s(c):i()})})}o(cIt,"finished");bj.exports=Axe;bj.exports.finished=cIt});var Dp=g((KIr,Ixe)=>{"use strict";var pl=of(),{aggregateTwoErrors:lIt,codes:{ERR_MULTIPLE_CALLBACK:uIt},AbortError:dIt}=qi(),{Symbol:yxe}=Cr(),{kIsDestroyed:fIt,isDestroyed:hIt,isFinished:pIt,isServerRequest:AIt}=hl(),Exe=yxe("kDestroy"),wj=yxe("kConstruct");function Cxe(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}o(Cxe,"checkError");function mIt(t,e){let r=this._readableState,n=this._writableState,i=n||r;return n!=null&&n.destroyed||r!=null&&r.destroyed?(typeof e=="function"&&e(),this):(Cxe(t,n,r),n&&(n.destroyed=!0),r&&(r.destroyed=!0),i.constructed?mxe(this,t,e):this.once(Exe,function(s){mxe(this,lIt(s,t),e)}),this)}o(mIt,"destroy");function mxe(t,e,r){let n=!1;function i(s){if(n)return;n=!0;let a=t._readableState,c=t._writableState;Cxe(s,c,a),c&&(c.closed=!0),a&&(a.closed=!0),typeof r=="function"&&r(s),s?pl.nextTick(gIt,t,s):pl.nextTick(bxe,t)}o(i,"onDestroy");try{t._destroy(e||null,i)}catch(s){i(s)}}o(mxe,"_destroy");function gIt(t,e){Ij(t,e),bxe(t)}o(gIt,"emitErrorCloseNT");function bxe(t){let e=t._readableState,r=t._writableState;r&&(r.closeEmitted=!0),e&&(e.closeEmitted=!0),(r!=null&&r.emitClose||e!=null&&e.emitClose)&&t.emit("close")}o(bxe,"emitCloseNT");function Ij(t,e){let r=t._readableState,n=t._writableState;n!=null&&n.errorEmitted||r!=null&&r.errorEmitted||(n&&(n.errorEmitted=!0),r&&(r.errorEmitted=!0),t.emit("error",e))}o(Ij,"emitErrorNT");function yIt(){let t=this._readableState,e=this._writableState;t&&(t.constructed=!0,t.closed=!1,t.closeEmitted=!1,t.destroyed=!1,t.errored=null,t.errorEmitted=!1,t.reading=!1,t.ended=t.readable===!1,t.endEmitted=t.readable===!1),e&&(e.constructed=!0,e.destroyed=!1,e.closed=!1,e.closeEmitted=!1,e.errored=null,e.errorEmitted=!1,e.finalCalled=!1,e.prefinished=!1,e.ended=e.writable===!1,e.ending=e.writable===!1,e.finished=e.writable===!1)}o(yIt,"undestroy");function Sj(t,e,r){let n=t._readableState,i=t._writableState;if(i!=null&&i.destroyed||n!=null&&n.destroyed)return this;n!=null&&n.autoDestroy||i!=null&&i.autoDestroy?t.destroy(e):e&&(e.stack,i&&!i.errored&&(i.errored=e),n&&!n.errored&&(n.errored=e),r?pl.nextTick(Ij,t,e):Ij(t,e))}o(Sj,"errorOrDestroy");function EIt(t,e){if(typeof t._construct!="function")return;let r=t._readableState,n=t._writableState;r&&(r.constructed=!1),n&&(n.constructed=!1),t.once(wj,e),!(t.listenerCount(wj)>1)&&pl.nextTick(CIt,t)}o(EIt,"construct");function CIt(t){let e=!1;function r(n){if(e){Sj(t,n??new uIt);return}e=!0;let i=t._readableState,s=t._writableState,a=s||i;i&&(i.constructed=!0),s&&(s.constructed=!0),a.destroyed?t.emit(Exe,n):n?Sj(t,n,!0):pl.nextTick(bIt,t)}o(r,"onConstruct");try{t._construct(n=>{pl.nextTick(r,n)})}catch(n){pl.nextTick(r,n)}}o(CIt,"constructNT");function bIt(t){t.emit(wj)}o(bIt,"emitConstructNT");function gxe(t){return t?.setHeader&&typeof t.abort=="function"}o(gxe,"isRequest");function wxe(t){t.emit("close")}o(wxe,"emitCloseLegacy");function wIt(t,e){t.emit("error",e),pl.nextTick(wxe,t)}o(wIt,"emitErrorCloseLegacy");function IIt(t,e){!t||hIt(t)||(!e&&!pIt(t)&&(e=new dIt),AIt(t)?(t.socket=null,t.destroy(e)):gxe(t)?t.abort():gxe(t.req)?t.req.abort():typeof t.destroy=="function"?t.destroy(e):typeof t.close=="function"?t.close():e?pl.nextTick(wIt,t,e):pl.nextTick(wxe,t),t.destroyed||(t[fIt]=!0))}o(IIt,"destroyer");Ixe.exports={construct:EIt,destroyer:IIt,destroy:mIt,undestroy:yIt,errorOrDestroy:Sj}});var SD=g((ZIr,Bxe)=>{"use strict";var{ArrayIsArray:SIt,ObjectSetPrototypeOf:Sxe}=Cr(),{EventEmitter:wD}=require("events");function ID(t){wD.call(this,t)}o(ID,"Stream");Sxe(ID.prototype,wD.prototype);Sxe(ID,wD);ID.prototype.pipe=function(t,e){let r=this;function n(d){t.writable&&t.write(d)===!1&&r.pause&&r.pause()}o(n,"ondata"),r.on("data",n);function i(){r.readable&&r.resume&&r.resume()}o(i,"ondrain"),t.on("drain",i),!t._isStdio&&(!e||e.end!==!1)&&(r.on("end",a),r.on("close",c));let s=!1;function a(){s||(s=!0,t.end())}o(a,"onend");function c(){s||(s=!0,typeof t.destroy=="function"&&t.destroy())}o(c,"onclose");function l(d){u(),wD.listenerCount(this,"error")===0&&this.emit("error",d)}o(l,"onerror"),Bj(r,"error",l),Bj(t,"error",l);function u(){r.removeListener("data",n),t.removeListener("drain",i),r.removeListener("end",a),r.removeListener("close",c),r.removeListener("error",l),t.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),t.removeListener("close",u)}return o(u,"cleanup"),r.on("end",u),r.on("close",u),t.on("close",u),t.emit("pipe",r),t};function Bj(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):SIt(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}o(Bj,"prependListener");Bxe.exports={Stream:ID,prependListener:Bj}});var tI=g((tSr,BD)=>{"use strict";var{SymbolDispose:BIt}=Cr(),{AbortError:xxe,codes:xIt}=qi(),{isNodeStream:vxe,isWebStream:vIt,kControllerErrorFunction:NIt}=hl(),_It=ku(),{ERR_INVALID_ARG_TYPE:Nxe}=xIt,xj,RIt=o((t,e)=>{if(typeof t!="object"||!("aborted"in t))throw new Nxe(e,"AbortSignal",t)},"validateAbortSignal");BD.exports.addAbortSignal=o(function(e,r){if(RIt(e,"signal"),!vxe(r)&&!vIt(r))throw new Nxe("stream",["ReadableStream","WritableStream","Stream"],r);return BD.exports.addAbortSignalNoValidate(e,r)},"addAbortSignal");BD.exports.addAbortSignalNoValidate=function(t,e){if(typeof t!="object"||!("aborted"in t))return e;let r=vxe(e)?()=>{e.destroy(new xxe(void 0,{cause:t.reason}))}:()=>{e[NIt](new xxe(void 0,{cause:t.reason}))};if(t.aborted)r();else{xj=xj||fi().addAbortListener;let n=xj(t,r);_It(e,n[BIt])}return e}});var Txe=g((iSr,Rxe)=>{"use strict";var{StringPrototypeSlice:_xe,SymbolIterator:TIt,TypedArrayPrototypeSet:xD,Uint8Array:DIt}=Cr(),{Buffer:vj}=require("buffer"),{inspect:QIt}=fi();Rxe.exports=class{static{o(this,"BufferList")}constructor(){this.head=null,this.tail=null,this.length=0}push(e){let r={data:e,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}unshift(e){let r={data:e,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}shift(){if(this.length===0)return;let e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(this.length===0)return"";let r=this.head,n=""+r.data;for(;(r=r.next)!==null;)n+=e+r.data;return n}concat(e){if(this.length===0)return vj.alloc(0);let r=vj.allocUnsafe(e>>>0),n=this.head,i=0;for(;n;)xD(r,n.data,i),i+=n.data.length,n=n.next;return r}consume(e,r){let n=this.head.data;if(es.length)r+=s,e-=s.length;else{e===s.length?(r+=s,++i,n.next?this.head=n.next:this.head=this.tail=null):(r+=_xe(s,0,e),this.head=n,n.data=_xe(s,e));break}++i}while((n=n.next)!==null);return this.length-=i,r}_getBuffer(e){let r=vj.allocUnsafe(e),n=e,i=this.head,s=0;do{let a=i.data;if(e>a.length)xD(r,a,n-e),e-=a.length;else{e===a.length?(xD(r,a,n-e),++s,i.next?this.head=i.next:this.head=this.tail=null):(xD(r,new DIt(a.buffer,a.byteOffset,e),n-e),this.head=i,i.data=a.slice(e));break}++s}while((i=i.next)!==null);return this.length-=s,r}[Symbol.for("nodejs.util.inspect.custom")](e,r){return QIt(this,{...r,depth:0,customInspect:!1})}}});var rI=g((oSr,Pxe)=>{"use strict";var{MathFloor:kIt,NumberIsInteger:PIt}=Cr(),{validateInteger:OIt}=Sy(),{ERR_INVALID_ARG_VALUE:LIt}=qi().codes,Dxe=16*1024,Qxe=16;function FIt(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}o(FIt,"highWaterMarkFrom");function kxe(t){return t?Qxe:Dxe}o(kxe,"getDefaultHighWaterMark");function MIt(t,e){OIt(e,"value",0),t?Qxe=e:Dxe=e}o(MIt,"setDefaultHighWaterMark");function UIt(t,e,r,n){let i=FIt(e,n,r);if(i!=null){if(!PIt(i)||i<0){let s=n?`options.${r}`:"options.highWaterMark";throw new LIt(s,i)}return kIt(i)}return kxe(t.objectMode)}o(UIt,"getHighWaterMark");Pxe.exports={getHighWaterMark:UIt,getDefaultHighWaterMark:kxe,setDefaultHighWaterMark:MIt}});var Nj=g((cSr,Mxe)=>{"use strict";var Oxe=of(),{PromisePrototypeThen:qIt,SymbolAsyncIterator:Lxe,SymbolIterator:Fxe}=Cr(),{Buffer:GIt}=require("buffer"),{ERR_INVALID_ARG_TYPE:HIt,ERR_STREAM_NULL_VALUES:zIt}=qi().codes;function VIt(t,e,r){let n;if(typeof e=="string"||e instanceof GIt)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});let i;if(e&&e[Lxe])i=!0,n=e[Lxe]();else if(e&&e[Fxe])i=!1,n=e[Fxe]();else throw new HIt("iterable",["Iterable"],e);let s=new t({objectMode:!0,highWaterMark:1,...r}),a=!1;s._read=function(){a||(a=!0,l())},s._destroy=function(u,d){qIt(c(u),()=>Oxe.nextTick(d,u),f=>Oxe.nextTick(d,f||u))};async function c(u){let d=u!=null,f=typeof n.throw=="function";if(d&&f){let{value:h,done:p}=await n.throw(u);if(await h,p)return}if(typeof n.return=="function"){let{value:h}=await n.return();await h}}o(c,"close");async function l(){for(;;){try{let{value:u,done:d}=i?await n.next():n.next();if(d)s.push(null);else{let f=u&&typeof u.then=="function"?await u:u;if(f===null)throw a=!1,new zIt;if(s.push(f))continue;a=!1}}catch(u){s.destroy(u)}break}}return o(l,"next"),s}o(VIt,"from");Mxe.exports=VIt});var iI=g((uSr,nve)=>{var Va=of(),{ArrayPrototypeIndexOf:$It,NumberIsInteger:jIt,NumberIsNaN:WIt,NumberParseInt:JIt,ObjectDefineProperties:Oj,ObjectKeys:YIt,ObjectSetPrototypeOf:Gxe,Promise:Hxe,SafeSet:KIt,SymbolAsyncDispose:XIt,SymbolAsyncIterator:ZIt,Symbol:eSt}=Cr();nve.exports=it;it.ReadableState=RD;var{EventEmitter:tSt}=require("events"),{Stream:cf,prependListener:rSt}=SD(),{Buffer:_j}=require("buffer"),{addAbortSignal:nSt}=tI(),zxe=ku(),At=fi().debuglog("stream",t=>{At=t}),iSt=Txe(),Ny=Dp(),{getHighWaterMark:sSt,getDefaultHighWaterMark:oSt}=rI(),{aggregateTwoErrors:Uxe,codes:{ERR_INVALID_ARG_TYPE:aSt,ERR_METHOD_NOT_IMPLEMENTED:cSt,ERR_OUT_OF_RANGE:lSt,ERR_STREAM_PUSH_AFTER_EOF:uSt,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:dSt},AbortError:fSt}=qi(),{validateObject:hSt}=Sy(),Qp=eSt("kPaused"),{StringDecoder:Vxe}=require("string_decoder"),pSt=Nj();Gxe(it.prototype,cf.prototype);Gxe(it,cf);var Rj=o(()=>{},"nop"),{errorOrDestroy:xy}=Ny,vy=1,ASt=2,$xe=4,nI=8,jxe=16,vD=32,ND=64,Wxe=128,mSt=256,gSt=512,ySt=1024,kj=2048,Pj=4096,ESt=8192,CSt=16384,bSt=32768,Jxe=65536,wSt=1<<17,ISt=1<<18;function bn(t){return{enumerable:!1,get(){return(this.state&t)!==0},set(e){e?this.state|=t:this.state&=~t}}}o(bn,"makeBitMapDescriptor");Oj(RD.prototype,{objectMode:bn(vy),ended:bn(ASt),endEmitted:bn($xe),reading:bn(nI),constructed:bn(jxe),sync:bn(vD),needReadable:bn(ND),emittedReadable:bn(Wxe),readableListening:bn(mSt),resumeScheduled:bn(gSt),errorEmitted:bn(ySt),emitClose:bn(kj),autoDestroy:bn(Pj),destroyed:bn(ESt),closed:bn(CSt),closeEmitted:bn(bSt),multiAwaitDrain:bn(Jxe),readingMore:bn(wSt),dataEmitted:bn(ISt)});function RD(t,e,r){typeof r!="boolean"&&(r=e instanceof Al()),this.state=kj|Pj|jxe|vD,t&&t.objectMode&&(this.state|=vy),r&&t&&t.readableObjectMode&&(this.state|=vy),this.highWaterMark=t?sSt(this,t,"readableHighWaterMark",r):oSt(!1),this.buffer=new iSt,this.length=0,this.pipes=[],this.flowing=null,this[Qp]=null,t&&t.emitClose===!1&&(this.state&=~kj),t&&t.autoDestroy===!1&&(this.state&=~Pj),this.errored=null,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,t&&t.encoding&&(this.decoder=new Vxe(t.encoding),this.encoding=t.encoding)}o(RD,"ReadableState");function it(t){if(!(this instanceof it))return new it(t);let e=this instanceof Al();this._readableState=new RD(t,this,e),t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.construct=="function"&&(this._construct=t.construct),t.signal&&!e&&nSt(t.signal,this)),cf.call(this,t),Ny.construct(this,()=>{this._readableState.needReadable&&_D(this,this._readableState)})}o(it,"Readable");it.prototype.destroy=Ny.destroy;it.prototype._undestroy=Ny.undestroy;it.prototype._destroy=function(t,e){e(t)};it.prototype[tSt.captureRejectionSymbol]=function(t){this.destroy(t)};it.prototype[XIt]=function(){let t;return this.destroyed||(t=this.readableEnded?null:new fSt,this.destroy(t)),new Hxe((e,r)=>zxe(this,n=>n&&n!==t?r(n):e(null)))};it.prototype.push=function(t,e){return Yxe(this,t,e,!1)};it.prototype.unshift=function(t,e){return Yxe(this,t,e,!0)};function Yxe(t,e,r,n){At("readableAddChunk",e);let i=t._readableState,s;if((i.state&vy)===0&&(typeof e=="string"?(r=r||i.defaultEncoding,i.encoding!==r&&(n&&i.encoding?e=_j.from(e,r).toString(i.encoding):(e=_j.from(e,r),r=""))):e instanceof _j?r="":cf._isUint8Array(e)?(e=cf._uint8ArrayToBuffer(e),r=""):e!=null&&(s=new aSt("chunk",["string","Buffer","Uint8Array"],e))),s)xy(t,s);else if(e===null)i.state&=~nI,xSt(t,i);else if((i.state&vy)!==0||e&&e.length>0)if(n)if((i.state&$xe)!==0)xy(t,new dSt);else{if(i.destroyed||i.errored)return!1;Tj(t,i,e,!0)}else if(i.ended)xy(t,new uSt);else{if(i.destroyed||i.errored)return!1;i.state&=~nI,i.decoder&&!r?(e=i.decoder.write(e),i.objectMode||e.length!==0?Tj(t,i,e,!1):_D(t,i)):Tj(t,i,e,!1)}else n||(i.state&=~nI,_D(t,i));return!i.ended&&(i.length0?((e.state&Jxe)!==0?e.awaitDrainWriters.clear():e.awaitDrainWriters=null,e.dataEmitted=!0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),(e.state&ND)!==0&&TD(t)),_D(t,e)}o(Tj,"addChunk");it.prototype.isPaused=function(){let t=this._readableState;return t[Qp]===!0||t.flowing===!1};it.prototype.setEncoding=function(t){let e=new Vxe(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;let r=this._readableState.buffer,n="";for(let i of r)n+=e.write(i);return r.clear(),n!==""&&r.push(n),this._readableState.length=n.length,this};var SSt=1073741824;function BSt(t){if(t>SSt)throw new lSt("size","<= 1GiB",t);return t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++,t}o(BSt,"computeNewHighWaterMark");function qxe(t,e){return t<=0||e.length===0&&e.ended?0:(e.state&vy)!==0?1:WIt(t)?e.flowing&&e.length?e.buffer.first().length:e.length:t<=e.length?t:e.ended?e.length:0}o(qxe,"howMuchToRead");it.prototype.read=function(t){At("read",t),t===void 0?t=NaN:jIt(t)||(t=JIt(t,10));let e=this._readableState,r=t;if(t>e.highWaterMark&&(e.highWaterMark=BSt(t)),t!==0&&(e.state&=~Wxe),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return At("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Dj(this):TD(this),null;if(t=qxe(t,e),t===0&&e.ended)return e.length===0&&Dj(this),null;let n=(e.state&ND)!==0;if(At("need readable",n),(e.length===0||e.length-t0?i=tve(t,e):i=null,i===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.multiAwaitDrain?e.awaitDrainWriters.clear():e.awaitDrainWriters=null),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&Dj(this)),i!==null&&!e.errorEmitted&&!e.closeEmitted&&(e.dataEmitted=!0,this.emit("data",i)),i};function xSt(t,e){if(At("onEofChunk"),!e.ended){if(e.decoder){let r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?TD(t):(e.needReadable=!1,e.emittedReadable=!0,Kxe(t))}}o(xSt,"onEofChunk");function TD(t){let e=t._readableState;At("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(At("emitReadable",e.flowing),e.emittedReadable=!0,Va.nextTick(Kxe,t))}o(TD,"emitReadable");function Kxe(t){let e=t._readableState;At("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&!e.errored&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Zxe(t)}o(Kxe,"emitReadable_");function _D(t,e){!e.readingMore&&e.constructed&&(e.readingMore=!0,Va.nextTick(vSt,t,e))}o(_D,"maybeReadMore");function vSt(t,e){for(;!e.reading&&!e.ended&&(e.length1&&n.pipes.includes(t)&&(At("false write response, pause",n.awaitDrainWriters.size),n.awaitDrainWriters.add(t)),r.pause()),l||(l=NSt(r,t),t.on("drain",l))}o(f,"pause"),r.on("data",h);function h(y){At("ondata");let C=t.write(y);At("dest.write",C),C===!1&&f()}o(h,"ondata");function p(y){if(At("onerror",y),E(),t.removeListener("error",p),t.listenerCount("error")===0){let C=t._writableState||t._readableState;C&&!C.errorEmitted?xy(t,y):t.emit("error",y)}}o(p,"onerror"),rSt(t,"error",p);function m(){t.removeListener("finish",A),E()}o(m,"onclose"),t.once("close",m);function A(){At("onfinish"),t.removeListener("close",m),E()}o(A,"onfinish"),t.once("finish",A);function E(){At("unpipe"),r.unpipe(t)}return o(E,"unpipe"),t.emit("pipe",r),t.writableNeedDrain===!0?f():n.flowing||(At("pipe resume"),r.resume()),t};function NSt(t,e){return o(function(){let n=t._readableState;n.awaitDrainWriters===e?(At("pipeOnDrain",1),n.awaitDrainWriters=null):n.multiAwaitDrain&&(At("pipeOnDrain",n.awaitDrainWriters.size),n.awaitDrainWriters.delete(e)),(!n.awaitDrainWriters||n.awaitDrainWriters.size===0)&&t.listenerCount("data")&&t.resume()},"pipeOnDrainFunctionResult")}o(NSt,"pipeOnDrain");it.prototype.unpipe=function(t){let e=this._readableState,r={hasUnpiped:!1};if(e.pipes.length===0)return this;if(!t){let i=e.pipes;e.pipes=[],this.pause();for(let s=0;s0,n.flowing!==!1&&this.resume()):t==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,At("on readable",n.length,n.reading),n.length?TD(this):n.reading||Va.nextTick(_St,this)),r};it.prototype.addListener=it.prototype.on;it.prototype.removeListener=function(t,e){let r=cf.prototype.removeListener.call(this,t,e);return t==="readable"&&Va.nextTick(Xxe,this),r};it.prototype.off=it.prototype.removeListener;it.prototype.removeAllListeners=function(t){let e=cf.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&Va.nextTick(Xxe,this),e};function Xxe(t){let e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&e[Qp]===!1?e.flowing=!0:t.listenerCount("data")>0?t.resume():e.readableListening||(e.flowing=null)}o(Xxe,"updateReadableListening");function _St(t){At("readable nexttick read 0"),t.read(0)}o(_St,"nReadingNextTick");it.prototype.resume=function(){let t=this._readableState;return t.flowing||(At("resume"),t.flowing=!t.readableListening,RSt(this,t)),t[Qp]=!1,this};function RSt(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Va.nextTick(TSt,t,e))}o(RSt,"resume");function TSt(t,e){At("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),Zxe(t),e.flowing&&!e.reading&&t.read(0)}o(TSt,"resume_");it.prototype.pause=function(){return At("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(At("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[Qp]=!0,this};function Zxe(t){let e=t._readableState;for(At("flow",e.flowing);e.flowing&&t.read()!==null;);}o(Zxe,"flow");it.prototype.wrap=function(t){let e=!1;t.on("data",n=>{!this.push(n)&&t.pause&&(e=!0,t.pause())}),t.on("end",()=>{this.push(null)}),t.on("error",n=>{xy(this,n)}),t.on("close",()=>{this.destroy()}),t.on("destroy",()=>{this.destroy()}),this._read=()=>{e&&t.resume&&(e=!1,t.resume())};let r=YIt(t);for(let n=1;n{i=a?Uxe(i,a):null,r(),r=Rj});try{for(;;){let a=t.destroyed?null:t.read();if(a!==null)yield a;else{if(i)throw i;if(i===null)return;await new Hxe(n)}}}catch(a){throw i=Uxe(i,a),i}finally{(i||e?.destroyOnReturn!==!1)&&(i===void 0||t._readableState.autoDestroy)?Ny.destroyer(t,null):(t.off("readable",n),s())}}o(DSt,"createAsyncIterator");Oj(it.prototype,{readable:{__proto__:null,get(){let t=this._readableState;return!!t&&t.readable!==!1&&!t.destroyed&&!t.errorEmitted&&!t.endEmitted},set(t){this._readableState&&(this._readableState.readable=!!t)}},readableDidRead:{__proto__:null,enumerable:!1,get:o(function(){return this._readableState.dataEmitted},"get")},readableAborted:{__proto__:null,enumerable:!1,get:o(function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)},"get")},readableHighWaterMark:{__proto__:null,enumerable:!1,get:o(function(){return this._readableState.highWaterMark},"get")},readableBuffer:{__proto__:null,enumerable:!1,get:o(function(){return this._readableState&&this._readableState.buffer},"get")},readableFlowing:{__proto__:null,enumerable:!1,get:o(function(){return this._readableState.flowing},"get"),set:o(function(t){this._readableState&&(this._readableState.flowing=t)},"set")},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(t){this._readableState&&(this._readableState.destroyed=t)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}});Oj(RD.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[Qp]!==!1},set(t){this[Qp]=!!t}}});it._fromList=tve;function tve(t,e){if(e.length===0)return null;let r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}o(tve,"fromList");function Dj(t){let e=t._readableState;At("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,Va.nextTick(QSt,e,t))}o(Dj,"endReadable");function QSt(t,e){if(At("endReadableNT",t.endEmitted,t.length),!t.errored&&!t.closeEmitted&&!t.endEmitted&&t.length===0){if(t.endEmitted=!0,e.emit("end"),e.writable&&e.allowHalfOpen===!1)Va.nextTick(kSt,e);else if(t.autoDestroy){let r=e._writableState;(!r||r.autoDestroy&&(r.finished||r.writable===!1))&&e.destroy()}}}o(QSt,"endReadableNT");function kSt(t){t.writable&&!t.writableEnded&&!t.destroyed&&t.end()}o(kSt,"endWritableNT");it.from=function(t,e){return pSt(it,t,e)};var Qj;function rve(){return Qj===void 0&&(Qj={}),Qj}o(rve,"lazyWebStreams");it.fromWeb=function(t,e){return rve().newStreamReadableFromReadableStream(t,e)};it.toWeb=function(t,e){return rve().newReadableStreamFromStreamReadable(t,e)};it.wrap=function(t,e){var r,n;return new it({objectMode:(r=(n=t.readableObjectMode)!==null&&n!==void 0?n:t.objectMode)!==null&&r!==void 0?r:!0,...e,destroy(i,s){Ny.destroyer(t,i),s(i)}}).wrap(t)}});var OD=g((fSr,Ave)=>{var kp=of(),{ArrayPrototypeSlice:ove,Error:PSt,FunctionPrototypeSymbolHasInstance:ave,ObjectDefineProperty:cve,ObjectDefineProperties:OSt,ObjectSetPrototypeOf:lve,StringPrototypeToLowerCase:LSt,Symbol:FSt,SymbolHasInstance:MSt}=Cr();Ave.exports=br;br.WritableState=aI;var{EventEmitter:USt}=require("events"),sI=SD().Stream,{Buffer:DD}=require("buffer"),PD=Dp(),{addAbortSignal:qSt}=tI(),{getHighWaterMark:GSt,getDefaultHighWaterMark:HSt}=rI(),{ERR_INVALID_ARG_TYPE:zSt,ERR_METHOD_NOT_IMPLEMENTED:VSt,ERR_MULTIPLE_CALLBACK:uve,ERR_STREAM_CANNOT_PIPE:$St,ERR_STREAM_DESTROYED:oI,ERR_STREAM_ALREADY_FINISHED:jSt,ERR_STREAM_NULL_VALUES:WSt,ERR_STREAM_WRITE_AFTER_END:JSt,ERR_UNKNOWN_ENCODING:dve}=qi().codes,{errorOrDestroy:_y}=PD;lve(br.prototype,sI.prototype);lve(br,sI);function Mj(){}o(Mj,"nop");var Ry=FSt("kOnFinished");function aI(t,e,r){typeof r!="boolean"&&(r=e instanceof Al()),this.objectMode=!!(t&&t.objectMode),r&&(this.objectMode=this.objectMode||!!(t&&t.writableObjectMode)),this.highWaterMark=t?GSt(this,t,"writableHighWaterMark",r):HSt(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let n=!!(t&&t.decodeStrings===!1);this.decodeStrings=!n,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=KSt.bind(void 0,e),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,kD(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!t||t.emitClose!==!1,this.autoDestroy=!t||t.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[Ry]=[]}o(aI,"WritableState");function kD(t){t.buffered=[],t.bufferedIndex=0,t.allBuffers=!0,t.allNoop=!0}o(kD,"resetBuffer");aI.prototype.getBuffer=o(function(){return ove(this.buffered,this.bufferedIndex)},"getBuffer");cve(aI.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function br(t){let e=this instanceof Al();if(!e&&!ave(br,this))return new br(t);this._writableState=new aI(t,this,e),t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final),typeof t.construct=="function"&&(this._construct=t.construct),t.signal&&qSt(t.signal,this)),sI.call(this,t),PD.construct(this,()=>{let r=this._writableState;r.writing||qj(this,r),Gj(this,r)})}o(br,"Writable");cve(br,MSt,{__proto__:null,value:o(function(t){return ave(this,t)?!0:this!==br?!1:t&&t._writableState instanceof aI},"value")});br.prototype.pipe=function(){_y(this,new $St)};function fve(t,e,r,n){let i=t._writableState;if(typeof r=="function")n=r,r=i.defaultEncoding;else{if(!r)r=i.defaultEncoding;else if(r!=="buffer"&&!DD.isEncoding(r))throw new dve(r);typeof n!="function"&&(n=Mj)}if(e===null)throw new WSt;if(!i.objectMode)if(typeof e=="string")i.decodeStrings!==!1&&(e=DD.from(e,r),r="buffer");else if(e instanceof DD)r="buffer";else if(sI._isUint8Array(e))e=sI._uint8ArrayToBuffer(e),r="buffer";else throw new zSt("chunk",["string","Buffer","Uint8Array"],e);let s;return i.ending?s=new JSt:i.destroyed&&(s=new oI("write")),s?(kp.nextTick(n,s),_y(t,s,!0),s):(i.pendingcb++,YSt(t,i,e,r,n))}o(fve,"_write");br.prototype.write=function(t,e,r){return fve(this,t,e,r)===!0};br.prototype.cork=function(){this._writableState.corked++};br.prototype.uncork=function(){let t=this._writableState;t.corked&&(t.corked--,t.writing||qj(this,t))};br.prototype.setDefaultEncoding=o(function(e){if(typeof e=="string"&&(e=LSt(e)),!DD.isEncoding(e))throw new dve(e);return this._writableState.defaultEncoding=e,this},"setDefaultEncoding");function YSt(t,e,r,n,i){let s=e.objectMode?1:r.length;e.length+=s;let a=e.lengthr.bufferedIndex&&qj(t,r),n?r.afterWriteTickInfo!==null&&r.afterWriteTickInfo.cb===i?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:i,stream:t,state:r},kp.nextTick(XSt,r.afterWriteTickInfo)):hve(t,r,1,i))}o(KSt,"onwrite");function XSt({stream:t,state:e,count:r,cb:n}){return e.afterWriteTickInfo=null,hve(t,e,r,n)}o(XSt,"afterWriteTick");function hve(t,e,r,n){for(!e.ending&&!t.destroyed&&e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"));r-- >0;)e.pendingcb--,n();e.destroyed&&Uj(e),Gj(t,e)}o(hve,"afterWrite");function Uj(t){if(t.writing)return;for(let i=t.bufferedIndex;i1&&t._writev){e.pendingcb-=s-1;let c=e.allNoop?Mj:u=>{for(let d=a;d256?(r.splice(0,a),e.bufferedIndex=0):e.bufferedIndex=a}e.bufferProcessing=!1}o(qj,"clearBuffer");br.prototype._write=function(t,e,r){if(this._writev)this._writev([{chunk:t,encoding:e}],r);else throw new VSt("_write()")};br.prototype._writev=null;br.prototype.end=function(t,e,r){let n=this._writableState;typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null);let i;if(t!=null){let s=fve(this,t,e);s instanceof PSt&&(i=s)}return n.corked&&(n.corked=1,this.uncork()),i||(!n.errored&&!n.ending?(n.ending=!0,Gj(this,n,!0),n.ended=!0):n.finished?i=new jSt("end"):n.destroyed&&(i=new oI("end"))),typeof r=="function"&&(i||n.finished?kp.nextTick(r,i):n[Ry].push(r)),this};function QD(t){return t.ending&&!t.destroyed&&t.constructed&&t.length===0&&!t.errored&&t.buffered.length===0&&!t.finished&&!t.writing&&!t.errorEmitted&&!t.closeEmitted}o(QD,"needFinish");function ZSt(t,e){let r=!1;function n(i){if(r){_y(t,i??uve());return}if(r=!0,e.pendingcb--,i){let s=e[Ry].splice(0);for(let a=0;a{QD(i)?Fj(n,i):i.pendingcb--},t,e)):QD(e)&&(e.pendingcb++,Fj(t,e))))}o(Gj,"finishMaybe");function Fj(t,e){e.pendingcb--,e.finished=!0;let r=e[Ry].splice(0);for(let n=0;n{var Hj=of(),rBt=require("buffer"),{isReadable:nBt,isWritable:iBt,isIterable:mve,isNodeStream:sBt,isReadableNodeStream:gve,isWritableNodeStream:yve,isDuplexNodeStream:oBt,isReadableStream:Eve,isWritableStream:Cve}=hl(),bve=ku(),{AbortError:vve,codes:{ERR_INVALID_ARG_TYPE:aBt,ERR_INVALID_RETURN_VALUE:wve}}=qi(),{destroyer:Dy}=Dp(),cBt=Al(),Nve=iI(),lBt=OD(),{createDeferredPromise:Ive}=fi(),Sve=Nj(),Bve=globalThis.Blob||rBt.Blob,uBt=o(typeof Bve<"u"?function(e){return e instanceof Bve}:function(e){return!1},"isBlob"),dBt=globalThis.AbortController||wy().AbortController,{FunctionPrototypeCall:xve}=Cr(),lf=class extends cBt{static{o(this,"Duplexify")}constructor(e){super(e),e?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),e?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};_ve.exports=o(function t(e,r){if(oBt(e))return e;if(gve(e))return Ty({readable:e});if(yve(e))return Ty({writable:e});if(sBt(e))return Ty({writable:!1,readable:!1});if(Eve(e))return Ty({readable:Nve.fromWeb(e)});if(Cve(e))return Ty({writable:lBt.fromWeb(e)});if(typeof e=="function"){let{value:i,write:s,final:a,destroy:c}=fBt(e);if(mve(i))return Sve(lf,i,{objectMode:!0,write:s,final:a,destroy:c});let l=i?.then;if(typeof l=="function"){let u,d=xve(l,i,f=>{if(f!=null)throw new wve("nully","body",f)},f=>{Dy(u,f)});return u=new lf({objectMode:!0,readable:!1,write:s,final(f){a(async()=>{try{await d,Hj.nextTick(f,null)}catch(h){Hj.nextTick(f,h)}})},destroy:c})}throw new wve("Iterable, AsyncIterable or AsyncFunction",r,i)}if(uBt(e))return t(e.arrayBuffer());if(mve(e))return Sve(lf,e,{objectMode:!0,writable:!1});if(Eve(e?.readable)&&Cve(e?.writable))return lf.fromWeb(e);if(typeof e?.writable=="object"||typeof e?.readable=="object"){let i=e!=null&&e.readable?gve(e?.readable)?e?.readable:t(e.readable):void 0,s=e!=null&&e.writable?yve(e?.writable)?e?.writable:t(e.writable):void 0;return Ty({readable:i,writable:s})}let n=e?.then;if(typeof n=="function"){let i;return xve(n,e,s=>{s!=null&&i.push(s),i.push(null)},s=>{Dy(i,s)}),i=new lf({objectMode:!0,writable:!1,read(){}})}throw new aBt(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)},"duplexify");function fBt(t){let{promise:e,resolve:r}=Ive(),n=new dBt,i=n.signal;return{value:t((async function*(){for(;;){let a=e;e=null;let{chunk:c,done:l,cb:u}=await a;if(Hj.nextTick(u),l)return;if(i.aborted)throw new vve(void 0,{cause:i.reason});({promise:e,resolve:r}=Ive()),yield c}})(),{signal:i}),write(a,c,l){let u=r;r=null,u({chunk:a,done:!1,cb:l})},final(a){let c=r;r=null,c({done:!0,cb:a})},destroy(a,c){n.abort(),c(a)}}}o(fBt,"fromAsyncGen");function Ty(t){let e=t.readable&&typeof t.readable.read!="function"?Nve.wrap(t.readable):t.readable,r=t.writable,n=!!nBt(e),i=!!iBt(r),s,a,c,l,u;function d(f){let h=l;l=null,h?h(f):f&&u.destroy(f)}return o(d,"onfinished"),u=new lf({readableObjectMode:!!(e!=null&&e.readableObjectMode),writableObjectMode:!!(r!=null&&r.writableObjectMode),readable:n,writable:i}),i&&(bve(r,f=>{i=!1,f&&Dy(e,f),d(f)}),u._write=function(f,h,p){r.write(f,h)?p():s=p},u._final=function(f){r.end(),a=f},r.on("drain",function(){if(s){let f=s;s=null,f()}}),r.on("finish",function(){if(a){let f=a;a=null,f()}})),n&&(bve(e,f=>{n=!1,f&&Dy(e,f),d(f)}),e.on("readable",function(){if(c){let f=c;c=null,f()}}),e.on("end",function(){u.push(null)}),u._read=function(){for(;;){let f=e.read();if(f===null){c=u._read;return}if(!u.push(f))return}}),u._destroy=function(f,h){!f&&l!==null&&(f=new vve),c=null,s=null,a=null,l===null?h(f):(l=h,Dy(r,f),Dy(e,f))},u}o(Ty,"_duplexify")});var Al=g((mSr,Qve)=>{"use strict";var{ObjectDefineProperties:hBt,ObjectGetOwnPropertyDescriptor:Pu,ObjectKeys:pBt,ObjectSetPrototypeOf:Tve}=Cr();Qve.exports=$a;var $j=iI(),ea=OD();Tve($a.prototype,$j.prototype);Tve($a,$j);{let t=pBt(ea.prototype);for(let e=0;e{"use strict";var{ObjectSetPrototypeOf:kve,Symbol:ABt}=Cr();Pve.exports=Ou;var{ERR_METHOD_NOT_IMPLEMENTED:mBt}=qi().codes,Wj=Al(),{getHighWaterMark:gBt}=rI();kve(Ou.prototype,Wj.prototype);kve(Ou,Wj);var cI=ABt("kCallback");function Ou(t){if(!(this instanceof Ou))return new Ou(t);let e=t?gBt(this,t,"readableHighWaterMark",!0):null;e===0&&(t={...t,highWaterMark:null,readableHighWaterMark:e,writableHighWaterMark:t.writableHighWaterMark||0}),Wj.call(this,t),this._readableState.sync=!1,this[cI]=null,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",yBt)}o(Ou,"Transform");function jj(t){typeof this._flush=="function"&&!this.destroyed?this._flush((e,r)=>{if(e){t?t(e):this.destroy(e);return}r!=null&&this.push(r),this.push(null),t&&t()}):(this.push(null),t&&t())}o(jj,"final");function yBt(){this._final!==jj&&jj.call(this)}o(yBt,"prefinish");Ou.prototype._final=jj;Ou.prototype._transform=function(t,e,r){throw new mBt("_transform()")};Ou.prototype._write=function(t,e,r){let n=this._readableState,i=this._writableState,s=n.length;this._transform(t,e,(a,c)=>{if(a){r(a);return}c!=null&&this.push(c),i.ended||s===n.length||n.length{"use strict";var{ObjectSetPrototypeOf:Ove}=Cr();Lve.exports=Qy;var Yj=Jj();Ove(Qy.prototype,Yj.prototype);Ove(Qy,Yj);function Qy(t){if(!(this instanceof Qy))return new Qy(t);Yj.call(this,t)}o(Qy,"PassThrough");Qy.prototype._transform=function(t,e,r){r(null,t)}});var UD=g((wSr,Gve)=>{var lI=of(),{ArrayIsArray:EBt,Promise:CBt,SymbolAsyncIterator:bBt,SymbolDispose:wBt}=Cr(),MD=ku(),{once:IBt}=fi(),SBt=Dp(),Fve=Al(),{aggregateTwoErrors:BBt,codes:{ERR_INVALID_ARG_TYPE:oW,ERR_INVALID_RETURN_VALUE:Xj,ERR_MISSING_ARGS:xBt,ERR_STREAM_DESTROYED:vBt,ERR_STREAM_PREMATURE_CLOSE:NBt},AbortError:_Bt}=qi(),{validateFunction:RBt,validateAbortSignal:TBt}=Sy(),{isIterable:Pp,isReadable:Zj,isReadableNodeStream:FD,isNodeStream:Mve,isTransformStream:ky,isWebStream:DBt,isReadableStream:eW,isReadableFinished:QBt}=hl(),kBt=globalThis.AbortController||wy().AbortController,tW,rW,nW;function Uve(t,e,r){let n=!1;t.on("close",()=>{n=!0});let i=MD(t,{readable:e,writable:r},s=>{n=!s});return{destroy:o(s=>{n||(n=!0,SBt.destroyer(t,s||new vBt("pipe")))},"destroy"),cleanup:i}}o(Uve,"destroyer");function PBt(t){return RBt(t[t.length-1],"streams[stream.length - 1]"),t.pop()}o(PBt,"popCallback");function iW(t){if(Pp(t))return t;if(FD(t))return OBt(t);throw new oW("val",["Readable","Iterable","AsyncIterable"],t)}o(iW,"makeAsyncIterable");async function*OBt(t){rW||(rW=iI()),yield*rW.prototype[bBt].call(t)}o(OBt,"fromReadable");async function LD(t,e,r,{end:n}){let i,s=null,a=o(u=>{if(u&&(i=u),s){let d=s;s=null,d()}},"resume"),c=o(()=>new CBt((u,d)=>{i?d(i):s=o(()=>{i?d(i):u()},"onresolve")}),"wait");e.on("drain",a);let l=MD(e,{readable:!1},a);try{e.writableNeedDrain&&await c();for await(let u of t)e.write(u)||await c();n&&(e.end(),await c()),r()}catch(u){r(i!==u?BBt(i,u):u)}finally{l(),e.off("drain",a)}}o(LD,"pumpToNode");async function sW(t,e,r,{end:n}){ky(e)&&(e=e.writable);let i=e.getWriter();try{for await(let s of t)await i.ready,i.write(s).catch(()=>{});await i.ready,n&&await i.close(),r()}catch(s){try{await i.abort(s),r(s)}catch(a){r(a)}}}o(sW,"pumpToWeb");function LBt(...t){return qve(t,IBt(PBt(t)))}o(LBt,"pipeline");function qve(t,e,r){if(t.length===1&&EBt(t[0])&&(t=t[0]),t.length<2)throw new xBt("streams");let n=new kBt,i=n.signal,s=r?.signal,a=[];TBt(s,"options.signal");function c(){m(new _Bt)}o(c,"abort"),nW=nW||fi().addAbortListener;let l;s&&(l=nW(s,c));let u,d,f=[],h=0;function p(w){m(w,--h===0)}o(p,"finish");function m(w,B){var P;if(w&&(!u||u.code==="ERR_STREAM_PREMATURE_CLOSE")&&(u=w),!(!u&&!B)){for(;f.length;)f.shift()(u);(P=l)===null||P===void 0||P[wBt](),n.abort(),B&&(u||a.forEach(U=>U()),lI.nextTick(e,u,d))}}o(m,"finishImpl");let A;for(let w=0;w0,N=P||r?.end!==!1,$=w===t.length-1;if(Mve(B)){let Q=function(H){H&&H.name!=="AbortError"&&H.code!=="ERR_STREAM_PREMATURE_CLOSE"&&p(H)};var C=Q;if(o(Q,"onError"),N){let{destroy:H,cleanup:V}=Uve(B,P,U);f.push(H),Zj(B)&&$&&a.push(V)}B.on("error",Q),Zj(B)&&$&&a.push(()=>{B.removeListener("error",Q)})}if(w===0)if(typeof B=="function"){if(A=B({signal:i}),!Pp(A))throw new Xj("Iterable, AsyncIterable or Stream","source",A)}else Pp(B)||FD(B)||ky(B)?A=B:A=Fve.from(B);else if(typeof B=="function"){if(ky(A)){var E;A=iW((E=A)===null||E===void 0?void 0:E.readable)}else A=iW(A);if(A=B(A,{signal:i}),P){if(!Pp(A,!0))throw new Xj("AsyncIterable",`transform[${w-1}]`,A)}else{var y;tW||(tW=Kj());let Q=new tW({objectMode:!0}),H=(y=A)===null||y===void 0?void 0:y.then;if(typeof H=="function")h++,H.call(A,ue=>{d=ue,ue!=null&&Q.write(ue),N&&Q.end(),lI.nextTick(p)},ue=>{Q.destroy(ue),lI.nextTick(p,ue)});else if(Pp(A,!0))h++,LD(A,Q,p,{end:N});else if(eW(A)||ky(A)){let ue=A.readable||A;h++,LD(ue,Q,p,{end:N})}else throw new Xj("AsyncIterable or Promise","destination",A);A=Q;let{destroy:V,cleanup:W}=Uve(A,!1,!0);f.push(V),$&&a.push(W)}}else if(Mve(B)){if(FD(A)){h+=2;let Q=FBt(A,B,p,{end:N});Zj(B)&&$&&a.push(Q)}else if(ky(A)||eW(A)){let Q=A.readable||A;h++,LD(Q,B,p,{end:N})}else if(Pp(A))h++,LD(A,B,p,{end:N});else throw new oW("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],A);A=B}else if(DBt(B)){if(FD(A))h++,sW(iW(A),B,p,{end:N});else if(eW(A)||Pp(A))h++,sW(A,B,p,{end:N});else if(ky(A))h++,sW(A.readable,B,p,{end:N});else throw new oW("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],A);A=B}else A=Fve.from(B)}return(i!=null&&i.aborted||s!=null&&s.aborted)&&lI.nextTick(c),A}o(qve,"pipelineImpl");function FBt(t,e,r,{end:n}){let i=!1;if(e.on("close",()=>{i||r(new NBt)}),t.pipe(e,{end:!1}),n){let a=function(){i=!0,e.end()};var s=a;o(a,"endFn"),QBt(t)?lI.nextTick(a):t.once("end",a)}else r();return MD(t,{readable:!0,writable:!1},a=>{let c=t._readableState;a&&a.code==="ERR_STREAM_PREMATURE_CLOSE"&&c&&c.ended&&!c.errored&&!c.errorEmitted?t.once("end",r).once("error",r):r(a)}),MD(e,{readable:!1,writable:!0},r)}o(FBt,"pipe");Gve.exports={pipelineImpl:qve,pipeline:LBt}});var cW=g((SSr,Wve)=>{"use strict";var{pipeline:MBt}=UD(),qD=Al(),{destroyer:UBt}=Dp(),{isNodeStream:GD,isReadable:Hve,isWritable:zve,isWebStream:aW,isTransformStream:Op,isWritableStream:Vve,isReadableStream:$ve}=hl(),{AbortError:qBt,codes:{ERR_INVALID_ARG_VALUE:jve,ERR_MISSING_ARGS:GBt}}=qi(),HBt=ku();Wve.exports=o(function(...e){if(e.length===0)throw new GBt("streams");if(e.length===1)return qD.from(e[0]);let r=[...e];if(typeof e[0]=="function"&&(e[0]=qD.from(e[0])),typeof e[e.length-1]=="function"){let p=e.length-1;e[p]=qD.from(e[p])}for(let p=0;p0&&!(zve(e[p])||Vve(e[p])||Op(e[p])))throw new jve(`streams[${p}]`,r[p],"must be writable")}let n,i,s,a,c;function l(p){let m=a;a=null,m?m(p):p?c.destroy(p):!h&&!f&&c.destroy()}o(l,"onfinished");let u=e[0],d=MBt(e,l),f=!!(zve(u)||Vve(u)||Op(u)),h=!!(Hve(d)||$ve(d)||Op(d));if(c=new qD({writableObjectMode:!!(u!=null&&u.writableObjectMode),readableObjectMode:!!(d!=null&&d.readableObjectMode),writable:f,readable:h}),f){if(GD(u))c._write=function(m,A,E){u.write(m,A)?E():n=E},c._final=function(m){u.end(),i=m},u.on("drain",function(){if(n){let m=n;n=null,m()}});else if(aW(u)){let A=(Op(u)?u.writable:u).getWriter();c._write=async function(E,y,C){try{await A.ready,A.write(E).catch(()=>{}),C()}catch(w){C(w)}},c._final=async function(E){try{await A.ready,A.close().catch(()=>{}),i=E}catch(y){E(y)}}}let p=Op(d)?d.readable:d;HBt(p,()=>{if(i){let m=i;i=null,m()}})}if(h){if(GD(d))d.on("readable",function(){if(s){let p=s;s=null,p()}}),d.on("end",function(){c.push(null)}),c._read=function(){for(;;){let p=d.read();if(p===null){s=c._read;return}if(!c.push(p))return}};else if(aW(d)){let m=(Op(d)?d.readable:d).getReader();c._read=async function(){for(;;)try{let{value:A,done:E}=await m.read();if(!c.push(A))return;if(E){c.push(null);return}}catch{return}}}}return c._destroy=function(p,m){!p&&a!==null&&(p=new qBt),s=null,n=null,i=null,a===null?m(p):(a=m,GD(d)&&UBt(d,p))},c},"compose")});var iNe=g((xSr,dW)=>{"use strict";var zBt=globalThis.AbortController||wy().AbortController,{codes:{ERR_INVALID_ARG_VALUE:VBt,ERR_INVALID_ARG_TYPE:uI,ERR_MISSING_ARGS:$Bt,ERR_OUT_OF_RANGE:jBt},AbortError:ml}=qi(),{validateAbortSignal:Lp,validateInteger:Jve,validateObject:Fp}=Sy(),WBt=Cr().Symbol("kWeak"),JBt=Cr().Symbol("kResistStopPropagation"),{finished:YBt}=ku(),KBt=cW(),{addAbortSignalNoValidate:XBt}=tI(),{isWritable:ZBt,isNodeStream:ext}=hl(),{deprecate:txt}=fi(),{ArrayPrototypePush:rxt,Boolean:nxt,MathFloor:Yve,Number:ixt,NumberIsNaN:sxt,Promise:Kve,PromiseReject:Xve,PromiseResolve:oxt,PromisePrototypeThen:Zve,Symbol:tNe}=Cr(),HD=tNe("kEmpty"),eNe=tNe("kEof");function axt(t,e){if(e!=null&&Fp(e,"options"),e?.signal!=null&&Lp(e.signal,"options.signal"),ext(t)&&!ZBt(t))throw new VBt("stream",t,"must be writable");let r=KBt(this,t);return e!=null&&e.signal&&XBt(e.signal,r),r}o(axt,"compose");function zD(t,e){if(typeof t!="function")throw new uI("fn",["Function","AsyncFunction"],t);e!=null&&Fp(e,"options"),e?.signal!=null&&Lp(e.signal,"options.signal");let r=1;e?.concurrency!=null&&(r=Yve(e.concurrency));let n=r-1;return e?.highWaterMark!=null&&(n=Yve(e.highWaterMark)),Jve(r,"options.concurrency",1),Jve(n,"options.highWaterMark",0),n+=r,o(async function*(){let s=fi().AbortSignalAny([e?.signal].filter(nxt)),a=this,c=[],l={signal:s},u,d,f=!1,h=0;function p(){f=!0,m()}o(p,"onCatch");function m(){h-=1,A()}o(m,"afterItemProcessed");function A(){d&&!f&&h=n||h>=r)&&await new Kve(C=>{d=C})}c.push(eNe)}catch(y){let C=Xve(y);Zve(C,m,p),c.push(C)}finally{f=!0,u&&(u(),u=null)}}o(E,"pump"),E();try{for(;;){for(;c.length>0;){let y=await c[0];if(y===eNe)return;if(s.aborted)throw new ml;y!==HD&&(yield y),c.shift(),A()}await new Kve(y=>{u=y})}}finally{f=!0,d&&(d(),d=null)}},"map").call(this)}o(zD,"map");function cxt(t=void 0){return t!=null&&Fp(t,"options"),t?.signal!=null&&Lp(t.signal,"options.signal"),o(async function*(){let r=0;for await(let i of this){var n;if(t!=null&&(n=t.signal)!==null&&n!==void 0&&n.aborted)throw new ml({cause:t.signal.reason});yield[r++,i]}},"asIndexedPairs").call(this)}o(cxt,"asIndexedPairs");async function rNe(t,e=void 0){for await(let r of uW.call(this,t,e))return!0;return!1}o(rNe,"some");async function lxt(t,e=void 0){if(typeof t!="function")throw new uI("fn",["Function","AsyncFunction"],t);return!await rNe.call(this,async(...r)=>!await t(...r),e)}o(lxt,"every");async function uxt(t,e){for await(let r of uW.call(this,t,e))return r}o(uxt,"find");async function dxt(t,e){if(typeof t!="function")throw new uI("fn",["Function","AsyncFunction"],t);async function r(n,i){return await t(n,i),HD}o(r,"forEachFn");for await(let n of zD.call(this,r,e));}o(dxt,"forEach");function uW(t,e){if(typeof t!="function")throw new uI("fn",["Function","AsyncFunction"],t);async function r(n,i){return await t(n,i)?n:HD}return o(r,"filterFn"),zD.call(this,r,e)}o(uW,"filter");var lW=class extends $Bt{static{o(this,"ReduceAwareErrMissingArgs")}constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function fxt(t,e,r){var n;if(typeof t!="function")throw new uI("reducer",["Function","AsyncFunction"],t);r!=null&&Fp(r,"options"),r?.signal!=null&&Lp(r.signal,"options.signal");let i=arguments.length>1;if(r!=null&&(n=r.signal)!==null&&n!==void 0&&n.aborted){let u=new ml(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await YBt(this.destroy(u)),u}let s=new zBt,a=s.signal;if(r!=null&&r.signal){let u={once:!0,[WBt]:this,[JBt]:!0};r.signal.addEventListener("abort",()=>s.abort(),u)}let c=!1;try{for await(let u of this){var l;if(c=!0,r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new ml;i?e=await t(e,u,{signal:a}):(e=u,i=!0)}if(!c&&!i)throw new lW}finally{s.abort()}return e}o(fxt,"reduce");async function hxt(t){t!=null&&Fp(t,"options"),t?.signal!=null&&Lp(t.signal,"options.signal");let e=[];for await(let n of this){var r;if(t!=null&&(r=t.signal)!==null&&r!==void 0&&r.aborted)throw new ml(void 0,{cause:t.signal.reason});rxt(e,n)}return e}o(hxt,"toArray");function pxt(t,e){let r=zD.call(this,t,e);return o(async function*(){for await(let i of r)yield*i},"flatMap").call(this)}o(pxt,"flatMap");function nNe(t){if(t=ixt(t),sxt(t))return 0;if(t<0)throw new jBt("number",">= 0",t);return t}o(nNe,"toIntegerOrInfinity");function Axt(t,e=void 0){return e!=null&&Fp(e,"options"),e?.signal!=null&&Lp(e.signal,"options.signal"),t=nNe(t),o(async function*(){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new ml;for await(let s of this){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new ml;t--<=0&&(yield s)}},"drop").call(this)}o(Axt,"drop");function mxt(t,e=void 0){return e!=null&&Fp(e,"options"),e?.signal!=null&&Lp(e.signal,"options.signal"),t=nNe(t),o(async function*(){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new ml;for await(let s of this){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new ml;if(t-- >0&&(yield s),t<=0)return}},"take").call(this)}o(mxt,"take");dW.exports.streamReturningOperators={asIndexedPairs:txt(cxt,"readable.asIndexedPairs will be removed in a future version."),drop:Axt,filter:uW,flatMap:pxt,map:zD,take:mxt,compose:axt};dW.exports.promiseReturningOperators={every:lxt,forEach:dxt,reduce:fxt,toArray:hxt,some:rNe,find:uxt}});var fW=g((NSr,sNe)=>{"use strict";var{ArrayPrototypePop:gxt,Promise:yxt}=Cr(),{isIterable:Ext,isNodeStream:Cxt,isWebStream:bxt}=hl(),{pipelineImpl:wxt}=UD(),{finished:Ixt}=ku();hW();function Sxt(...t){return new yxt((e,r)=>{let n,i,s=t[t.length-1];if(s&&typeof s=="object"&&!Cxt(s)&&!Ext(s)&&!bxt(s)){let a=gxt(t);n=a.signal,i=a.end}wxt(t,(a,c)=>{a?r(a):e(c)},{signal:n,end:i})})}o(Sxt,"pipeline");sNe.exports={finished:Ixt,pipeline:Sxt}});var hW=g((RSr,pNe)=>{var{Buffer:Bxt}=require("buffer"),{ObjectDefineProperty:Lu,ObjectKeys:cNe,ReflectApply:lNe}=Cr(),{promisify:{custom:uNe}}=fi(),{streamReturningOperators:oNe,promiseReturningOperators:aNe}=iNe(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:dNe}}=qi(),xxt=cW(),{setDefaultHighWaterMark:vxt,getDefaultHighWaterMark:Nxt}=rI(),{pipeline:fNe}=UD(),{destroyer:_xt}=Dp(),hNe=ku(),pW=fW(),dI=hl(),ir=pNe.exports=SD().Stream;ir.isDestroyed=dI.isDestroyed;ir.isDisturbed=dI.isDisturbed;ir.isErrored=dI.isErrored;ir.isReadable=dI.isReadable;ir.isWritable=dI.isWritable;ir.Readable=iI();for(let t of cNe(oNe)){let r=function(...n){if(new.target)throw dNe();return ir.Readable.from(lNe(e,this,n))};AW=r,o(r,"fn");let e=oNe[t];Lu(r,"name",{__proto__:null,value:e.name}),Lu(r,"length",{__proto__:null,value:e.length}),Lu(ir.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}var AW;for(let t of cNe(aNe)){let r=function(...i){if(new.target)throw dNe();return lNe(e,this,i)};AW=r,o(r,"fn");let e=aNe[t];Lu(r,"name",{__proto__:null,value:e.name}),Lu(r,"length",{__proto__:null,value:e.length}),Lu(ir.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}var AW;ir.Writable=OD();ir.Duplex=Al();ir.Transform=Jj();ir.PassThrough=Kj();ir.pipeline=fNe;var{addAbortSignal:Rxt}=tI();ir.addAbortSignal=Rxt;ir.finished=hNe;ir.destroy=_xt;ir.compose=xxt;ir.setDefaultHighWaterMark=vxt;ir.getDefaultHighWaterMark=Nxt;Lu(ir,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return pW}});Lu(fNe,uNe,{__proto__:null,enumerable:!0,get(){return pW.pipeline}});Lu(hNe,uNe,{__proto__:null,enumerable:!0,get(){return pW.finished}});ir.Stream=ir;ir._isUint8Array=o(function(e){return e instanceof Uint8Array},"isUint8Array");ir._uint8ArrayToBuffer=o(function(e){return Bxt.from(e.buffer,e.byteOffset,e.byteLength)},"_uint8ArrayToBuffer")});var Mp=g((DSr,ut)=>{"use strict";var wn=require("stream");if(wn&&process.env.READABLE_STREAM==="disable"){let t=wn.promises;ut.exports._uint8ArrayToBuffer=wn._uint8ArrayToBuffer,ut.exports._isUint8Array=wn._isUint8Array,ut.exports.isDisturbed=wn.isDisturbed,ut.exports.isErrored=wn.isErrored,ut.exports.isReadable=wn.isReadable,ut.exports.Readable=wn.Readable,ut.exports.Writable=wn.Writable,ut.exports.Duplex=wn.Duplex,ut.exports.Transform=wn.Transform,ut.exports.PassThrough=wn.PassThrough,ut.exports.addAbortSignal=wn.addAbortSignal,ut.exports.finished=wn.finished,ut.exports.destroy=wn.destroy,ut.exports.pipeline=wn.pipeline,ut.exports.compose=wn.compose,Object.defineProperty(wn,"promises",{configurable:!0,enumerable:!0,get(){return t}}),ut.exports.Stream=wn.Stream}else{let t=hW(),e=fW(),r=t.Readable.destroy;ut.exports=t.Readable,ut.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,ut.exports._isUint8Array=t._isUint8Array,ut.exports.isDisturbed=t.isDisturbed,ut.exports.isErrored=t.isErrored,ut.exports.isReadable=t.isReadable,ut.exports.Readable=t.Readable,ut.exports.Writable=t.Writable,ut.exports.Duplex=t.Duplex,ut.exports.Transform=t.Transform,ut.exports.PassThrough=t.PassThrough,ut.exports.addAbortSignal=t.addAbortSignal,ut.exports.finished=t.finished,ut.exports.destroy=t.destroy,ut.exports.destroy=r,ut.exports.pipeline=t.pipeline,ut.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get(){return e}}),ut.exports.Stream=t.Stream}ut.exports.default=ut.exports});var mNe=g((QSr,ANe)=>{function Txt(t,e){for(var r=-1,n=e.length,i=t.length;++r{var gNe=lD(),Dxt=tj(),Qxt=rj(),yNe=gNe?gNe.isConcatSpreadable:void 0;function kxt(t){return Qxt(t)||Dxt(t)||!!(yNe&&t&&t[yNe])}o(kxt,"isFlattenable");ENe.exports=kxt});var VD=g((LSr,wNe)=>{var Pxt=mNe(),Oxt=CNe();function bNe(t,e,r,n,i){var s=-1,a=t.length;for(r||(r=Oxt),i||(i=[]);++s0&&r(c)?e>1?bNe(c,e-1,r,n,i):Pxt(i,c):n||(i[i.length]=c)}return i}o(bNe,"baseFlatten");wNe.exports=bNe});var SNe=g((MSr,INe)=>{var Lxt=VD();function Fxt(t){var e=t==null?0:t.length;return e?Lxt(t,1):[]}o(Fxt,"flatten");INe.exports=Fxt});var fI=g((qSr,BNe)=>{var Mxt=$w(),Uxt=Mxt(Object,"create");BNe.exports=Uxt});var NNe=g((GSr,vNe)=>{var xNe=fI();function qxt(){this.__data__=xNe?xNe(null):{},this.size=0}o(qxt,"hashClear");vNe.exports=qxt});var RNe=g((zSr,_Ne)=>{function Gxt(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}o(Gxt,"hashDelete");_Ne.exports=Gxt});var DNe=g(($Sr,TNe)=>{var Hxt=fI(),zxt="__lodash_hash_undefined__",Vxt=Object.prototype,$xt=Vxt.hasOwnProperty;function jxt(t){var e=this.__data__;if(Hxt){var r=e[t];return r===zxt?void 0:r}return $xt.call(e,t)?e[t]:void 0}o(jxt,"hashGet");TNe.exports=jxt});var kNe=g((WSr,QNe)=>{var Wxt=fI(),Jxt=Object.prototype,Yxt=Jxt.hasOwnProperty;function Kxt(t){var e=this.__data__;return Wxt?e[t]!==void 0:Yxt.call(e,t)}o(Kxt,"hashHas");QNe.exports=Kxt});var ONe=g((YSr,PNe)=>{var Xxt=fI(),Zxt="__lodash_hash_undefined__";function evt(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Xxt&&e===void 0?Zxt:e,this}o(evt,"hashSet");PNe.exports=evt});var FNe=g((XSr,LNe)=>{var tvt=NNe(),rvt=RNe(),nvt=DNe(),ivt=kNe(),svt=ONe();function Py(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e{function ovt(){this.__data__=[],this.size=0}o(ovt,"listCacheClear");MNe.exports=ovt});var hI=g((rBr,qNe)=>{var avt=dD();function cvt(t,e){for(var r=t.length;r--;)if(avt(t[r][0],e))return r;return-1}o(cvt,"assocIndexOf");qNe.exports=cvt});var HNe=g((iBr,GNe)=>{var lvt=hI(),uvt=Array.prototype,dvt=uvt.splice;function fvt(t){var e=this.__data__,r=lvt(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():dvt.call(e,r,1),--this.size,!0}o(fvt,"listCacheDelete");GNe.exports=fvt});var VNe=g((oBr,zNe)=>{var hvt=hI();function pvt(t){var e=this.__data__,r=hvt(e,t);return r<0?void 0:e[r][1]}o(pvt,"listCacheGet");zNe.exports=pvt});var jNe=g((cBr,$Ne)=>{var Avt=hI();function mvt(t){return Avt(this.__data__,t)>-1}o(mvt,"listCacheHas");$Ne.exports=mvt});var JNe=g((uBr,WNe)=>{var gvt=hI();function yvt(t,e){var r=this.__data__,n=gvt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}o(yvt,"listCacheSet");WNe.exports=yvt});var KNe=g((fBr,YNe)=>{var Evt=UNe(),Cvt=HNe(),bvt=VNe(),wvt=jNe(),Ivt=JNe();function Oy(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e{var Svt=$w(),Bvt=gy(),xvt=Svt(Bvt,"Map");XNe.exports=xvt});var r_e=g((ABr,t_e)=>{var e_e=FNe(),vvt=KNe(),Nvt=ZNe();function _vt(){this.size=0,this.__data__={hash:new e_e,map:new(Nvt||vvt),string:new e_e}}o(_vt,"mapCacheClear");t_e.exports=_vt});var i_e=g((gBr,n_e)=>{function Rvt(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}o(Rvt,"isKeyable");n_e.exports=Rvt});var pI=g((EBr,s_e)=>{var Tvt=i_e();function Dvt(t,e){var r=t.__data__;return Tvt(e)?r[typeof e=="string"?"string":"hash"]:r.map}o(Dvt,"getMapData");s_e.exports=Dvt});var a_e=g((bBr,o_e)=>{var Qvt=pI();function kvt(t){var e=Qvt(this,t).delete(t);return this.size-=e?1:0,e}o(kvt,"mapCacheDelete");o_e.exports=kvt});var l_e=g((IBr,c_e)=>{var Pvt=pI();function Ovt(t){return Pvt(this,t).get(t)}o(Ovt,"mapCacheGet");c_e.exports=Ovt});var d_e=g((BBr,u_e)=>{var Lvt=pI();function Fvt(t){return Lvt(this,t).has(t)}o(Fvt,"mapCacheHas");u_e.exports=Fvt});var h_e=g((vBr,f_e)=>{var Mvt=pI();function Uvt(t,e){var r=Mvt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}o(Uvt,"mapCacheSet");f_e.exports=Uvt});var A_e=g((_Br,p_e)=>{var qvt=r_e(),Gvt=a_e(),Hvt=l_e(),zvt=d_e(),Vvt=h_e();function Ly(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e{var $vt="__lodash_hash_undefined__";function jvt(t){return this.__data__.set(t,$vt),this}o(jvt,"setCacheAdd");m_e.exports=jvt});var E_e=g((QBr,y_e)=>{function Wvt(t){return this.__data__.has(t)}o(Wvt,"setCacheHas");y_e.exports=Wvt});var mW=g((PBr,C_e)=>{var Jvt=A_e(),Yvt=g_e(),Kvt=E_e();function $D(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new Jvt;++e{function Xvt(t,e,r,n){for(var i=t.length,s=r+(n?1:-1);n?s--:++s{function Zvt(t){return t!==t}o(Zvt,"baseIsNaN");I_e.exports=Zvt});var x_e=g((qBr,B_e)=>{function eNt(t,e,r){for(var n=r-1,i=t.length;++n{var tNt=w_e(),rNt=S_e(),nNt=x_e();function iNt(t,e,r){return e===e?nNt(t,e,r):tNt(t,rNt,r)}o(iNt,"baseIndexOf");v_e.exports=iNt});var gW=g((VBr,__e)=>{var sNt=N_e();function oNt(t,e){var r=t==null?0:t.length;return!!r&&sNt(t,e,0)>-1}o(oNt,"arrayIncludes");__e.exports=oNt});var yW=g((jBr,R_e)=>{function aNt(t,e,r){for(var n=-1,i=t==null?0:t.length;++n{function cNt(t,e){for(var r=-1,n=t==null?0:t.length,i=Array(n);++r{function lNt(t,e){return t.has(e)}o(lNt,"cacheHas");Q_e.exports=lNt});var P_e=g((ZBr,k_e)=>{var uNt=mW(),dNt=gW(),fNt=yW(),hNt=D_e(),pNt=nj(),ANt=EW(),mNt=200;function gNt(t,e,r,n){var i=-1,s=dNt,a=!0,c=t.length,l=[],u=e.length;if(!c)return l;r&&(e=hNt(e,pNt(r))),n?(s=fNt,a=!1):e.length>=mNt&&(s=ANt,a=!1,e=new uNt(e));e:for(;++i{var yNt=fD(),ENt=yy();function CNt(t){return ENt(t)&&yNt(t)}o(CNt,"isArrayLikeObject");O_e.exports=CNt});var M_e=g((nxr,F_e)=>{var bNt=P_e(),wNt=VD(),INt=uD(),L_e=CW(),SNt=INt(function(t,e){return L_e(t)?bNt(t,wNt(e,1,L_e,!0)):[]});F_e.exports=SNt});var q_e=g((ixr,U_e)=>{var BNt=$w(),xNt=gy(),vNt=BNt(xNt,"Set");U_e.exports=vNt});var H_e=g((sxr,G_e)=>{function NNt(){}o(NNt,"noop");G_e.exports=NNt});var bW=g((axr,z_e)=>{function _Nt(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}o(_Nt,"setToArray");z_e.exports=_Nt});var $_e=g((lxr,V_e)=>{var wW=q_e(),RNt=H_e(),TNt=bW(),DNt=1/0,QNt=wW&&1/TNt(new wW([,-0]))[1]==DNt?function(t){return new wW(t)}:RNt;V_e.exports=QNt});var W_e=g((uxr,j_e)=>{var kNt=mW(),PNt=gW(),ONt=yW(),LNt=EW(),FNt=$_e(),MNt=bW(),UNt=200;function qNt(t,e,r){var n=-1,i=PNt,s=t.length,a=!0,c=[],l=c;if(r)a=!1,i=ONt;else if(s>=UNt){var u=e?null:FNt(t);if(u)return MNt(u);a=!1,i=LNt,l=new kNt}else l=e?[]:c;e:for(;++n{var GNt=VD(),HNt=uD(),zNt=W_e(),VNt=CW(),$Nt=HNt(function(t){return zNt(GNt(t,1,VNt,!0))});J_e.exports=$Nt});var X_e=g((hxr,K_e)=>{function jNt(t,e){return function(r){return t(e(r))}}o(jNt,"overArg");K_e.exports=jNt});var eRe=g((Axr,Z_e)=>{var WNt=X_e(),JNt=WNt(Object.getPrototypeOf,Object);Z_e.exports=JNt});var nRe=g((mxr,rRe)=>{var YNt=zw(),KNt=eRe(),XNt=yy(),ZNt="[object Object]",e_t=Function.prototype,t_t=Object.prototype,tRe=e_t.toString,r_t=t_t.hasOwnProperty,n_t=tRe.call(Object);function i_t(t){if(!XNt(t)||YNt(t)!=ZNt)return!1;var e=KNt(t);if(e===null)return!0;var r=r_t.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&tRe.call(r)==n_t}o(i_t,"isPlainObject");rRe.exports=i_t});var iRe=g(jD=>{"use strict";Object.defineProperty(jD,"__esModule",{value:!0});jD.assertValidPattern=void 0;var s_t=1024*64,o_t=o(t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>s_t)throw new TypeError("pattern is too long")},"assertValidPattern");jD.assertValidPattern=o_t});var oRe=g(WD=>{"use strict";Object.defineProperty(WD,"__esModule",{value:!0});WD.parseClass=void 0;var a_t={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},AI=o(t=>t.replace(/[[\]\\-]/g,"\\$&"),"braceEscape"),c_t=o(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regexpEscape"),sRe=o(t=>t.join(""),"rangesToString"),l_t=o((t,e)=>{let r=e;if(t.charAt(r)!=="[")throw new Error("not in a brace expression");let n=[],i=[],s=r+1,a=!1,c=!1,l=!1,u=!1,d=r,f="";e:for(;sf?n.push(AI(f)+"-"+AI(A)):A===f&&n.push(AI(A)),f="",s++;continue}if(t.startsWith("-]",s+1)){n.push(AI(A+"-")),s+=2;continue}if(t.startsWith("-",s+1)){f=A,s+=2;continue}n.push(AI(A)),s++}if(d{"use strict";Object.defineProperty(JD,"__esModule",{value:!0});JD.unescape=void 0;var u_t=o((t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),"unescape");JD.unescape=u_t});var BW=g(eQ=>{"use strict";var ys;Object.defineProperty(eQ,"__esModule",{value:!0});eQ.AST=void 0;var d_t=oRe(),KD=YD(),f_t=new Set(["!","?","+","*","@"]),IW=o(t=>f_t.has(t),"isExtglobType"),aRe=o(t=>IW(t.type),"isExtglobAST"),h_t=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),p_t=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),A_t=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),cRe=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),m_t="(?!(?:^|/)\\.\\.?(?:$|/))",XD="(?!\\.)",g_t=new Set(["[","."]),y_t=new Set(["..","."]),E_t=new Set("().*{}+?[]^$\\!"),C_t=o(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),SW="[^/]",lRe=SW+"*?",uRe=SW+"+?",ZD=class{static{o(this,"AST")}type;#e;#r;#n=!1;#t=[];#i;#s;#l;#a=!1;#c;#o;#f=!1;constructor(e,r,n={}){this.type=e,e&&(this.#r=!0),this.#i=r,this.#e=this.#i?this.#i.#e:this,this.#c=this.#e===this?n:this.#e.#c,this.#l=this.#e===this?[]:this.#e.#l,e==="!"&&!this.#e.#a&&this.#l.push(this),this.#s=this.#i?this.#i.#t.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(let e of this.#t)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#o!==void 0?this.#o:this.type?this.#o=this.type+"("+this.#t.map(e=>String(e)).join("|")+")":this.#o=this.#t.map(e=>String(e)).join("")}#C(){if(this!==this.#e)throw new Error("should only call on root");if(this.#a)return this;this.toString(),this.#a=!0;let e;for(;e=this.#l.pop();){if(e.type!=="!")continue;let r=e,n=r.#i;for(;n;){for(let i=r.#s+1;!n.type&&itypeof r=="string"?r:r.toJSON()):[this.type,...this.#t.map(r=>r.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#a&&this.#i?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#i?.isStart())return!1;if(this.#s===0)return!0;let e=this.#i;for(let r=0;r{let[m,A,E,y]=typeof p=="string"?ys.#S(p,this.#r,l):p.toRegExpSource(e);return this.#r=this.#r||E,this.#n=this.#n||y,m}).join(""),d="";if(this.isStart()&&typeof this.#t[0]=="string"&&!(this.#t.length===1&&y_t.has(this.#t[0]))){let m=g_t,A=r&&m.has(u.charAt(0))||u.startsWith("\\.")&&m.has(u.charAt(2))||u.startsWith("\\.\\.")&&m.has(u.charAt(4)),E=!r&&!e&&m.has(u.charAt(0));d=A?m_t:E?XD:""}let f="";return this.isEnd()&&this.#e.#a&&this.#i?.type==="!"&&(f="(?:$|\\/)"),[d+u+f,(0,KD.unescape)(u),this.#r=!!this.#r,this.#n]}let n=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#w(r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let l=this.toString(),u=this;return u.#t=[l],u.type=null,u.#r=void 0,[l,(0,KD.unescape)(this.toString()),!1,!1]}let a=!n||e||r||!XD?"":this.#w(!0);a===s&&(a=""),a&&(s=`(?:${s})(?:${a})*?`);let c="";if(this.type==="!"&&this.#f)c=(this.isStart()&&!r?XD:"")+uRe;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!e?XD:"")+lRe+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`;c=i+s+l}return[c,(0,KD.unescape)(s),this.#r=!!this.#r,this.#n]}#w(e){return this.#t.map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");let[n,i,s,a]=r.toRegExpSource(e);return this.#n=this.#n||a,n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#S(e,r,n=!1){let i=!1,s="",a=!1,c=!1;for(let l=0;l{"use strict";Object.defineProperty(tQ,"__esModule",{value:!0});tQ.escape=void 0;var b_t=o((t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),"escape");tQ.escape=b_t});var uf=g(he=>{"use strict";var w_t=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(he,"__esModule",{value:!0});he.unescape=he.escape=he.AST=he.Minimatch=he.match=he.makeRe=he.braceExpand=he.defaults=he.filter=he.GLOBSTAR=he.sep=he.minimatch=void 0;var I_t=w_t(f8()),rQ=iRe(),hRe=BW(),S_t=xW(),B_t=YD(),x_t=o((t,e,r={})=>((0,rQ.assertValidPattern)(e),!r.nocomment&&e.charAt(0)==="#"?!1:new Up(e,r).match(t)),"minimatch");he.minimatch=x_t;var v_t=/^\*+([^+@!?\*\[\(]*)$/,N_t=o(t=>e=>!e.startsWith(".")&&e.endsWith(t),"starDotExtTest"),__t=o(t=>e=>e.endsWith(t),"starDotExtTestDot"),R_t=o(t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),"starDotExtTestNocase"),T_t=o(t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),"starDotExtTestNocaseDot"),D_t=/^\*+\.\*+$/,Q_t=o(t=>!t.startsWith(".")&&t.includes("."),"starDotStarTest"),k_t=o(t=>t!=="."&&t!==".."&&t.includes("."),"starDotStarTestDot"),P_t=/^\.\*+$/,O_t=o(t=>t!=="."&&t!==".."&&t.startsWith("."),"dotStarTest"),L_t=/^\*+$/,F_t=o(t=>t.length!==0&&!t.startsWith("."),"starTest"),M_t=o(t=>t.length!==0&&t!=="."&&t!=="..","starTestDot"),U_t=/^\?+([^+@!?\*\[\(]*)?$/,q_t=o(([t,e=""])=>{let r=pRe([t]);return e?(e=e.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(e)):r},"qmarksTestNocase"),G_t=o(([t,e=""])=>{let r=ARe([t]);return e?(e=e.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(e)):r},"qmarksTestNocaseDot"),H_t=o(([t,e=""])=>{let r=ARe([t]);return e?n=>r(n)&&n.endsWith(e):r},"qmarksTestDot"),z_t=o(([t,e=""])=>{let r=pRe([t]);return e?n=>r(n)&&n.endsWith(e):r},"qmarksTest"),pRe=o(([t])=>{let e=t.length;return r=>r.length===e&&!r.startsWith(".")},"qmarksTestNoExt"),ARe=o(([t])=>{let e=t.length;return r=>r.length===e&&r!=="."&&r!==".."},"qmarksTestNoExtDot"),mRe=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",dRe={win32:{sep:"\\"},posix:{sep:"/"}};he.sep=mRe==="win32"?dRe.win32.sep:dRe.posix.sep;he.minimatch.sep=he.sep;he.GLOBSTAR=Symbol("globstar **");he.minimatch.GLOBSTAR=he.GLOBSTAR;var V_t="[^/]",$_t=V_t+"*?",j_t="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",W_t="(?:(?!(?:\\/|^)\\.).)*?",J_t=o((t,e={})=>r=>(0,he.minimatch)(r,t,e),"filter");he.filter=J_t;he.minimatch.filter=he.filter;var ta=o((t,e={})=>Object.assign({},t,e),"ext"),Y_t=o(t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return he.minimatch;let e=he.minimatch;return Object.assign(o((n,i,s={})=>e(n,i,ta(t,s)),"m"),{Minimatch:class extends e.Minimatch{static{o(this,"Minimatch")}constructor(i,s={}){super(i,ta(t,s))}static defaults(i){return e.defaults(ta(t,i)).Minimatch}},AST:class extends e.AST{static{o(this,"AST")}constructor(i,s,a={}){super(i,s,ta(t,a))}static fromGlob(i,s={}){return e.AST.fromGlob(i,ta(t,s))}},unescape:o((n,i={})=>e.unescape(n,ta(t,i)),"unescape"),escape:o((n,i={})=>e.escape(n,ta(t,i)),"escape"),filter:o((n,i={})=>e.filter(n,ta(t,i)),"filter"),defaults:o(n=>e.defaults(ta(t,n)),"defaults"),makeRe:o((n,i={})=>e.makeRe(n,ta(t,i)),"makeRe"),braceExpand:o((n,i={})=>e.braceExpand(n,ta(t,i)),"braceExpand"),match:o((n,i,s={})=>e.match(n,i,ta(t,s)),"match"),sep:e.sep,GLOBSTAR:he.GLOBSTAR})},"defaults");he.defaults=Y_t;he.minimatch.defaults=he.defaults;var K_t=o((t,e={})=>((0,rQ.assertValidPattern)(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,I_t.default)(t)),"braceExpand");he.braceExpand=K_t;he.minimatch.braceExpand=he.braceExpand;var X_t=o((t,e={})=>new Up(t,e).makeRe(),"makeRe");he.makeRe=X_t;he.minimatch.makeRe=he.makeRe;var Z_t=o((t,e,r={})=>{let n=new Up(e,r);return t=t.filter(i=>n.match(i)),n.options.nonull&&!t.length&&t.push(e),t},"match");he.match=Z_t;he.minimatch.match=he.match;var fRe=/[?*]|[+@!]\(.*?\)|\[|\]/,eRt=o(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),Up=class{static{o(this,"Minimatch")}options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,r={}){(0,rQ.assertValidPattern)(e),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=e,this.platform=r.platform||mRe,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let r of e)if(typeof r!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let i=this.globParts.map((s,a,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=s[0]===""&&s[1]===""&&(s[2]==="?"||!fRe.test(s[2]))&&!fRe.test(s[3]),u=/^[a-z]:/i.test(s[0]);if(l)return[...s.slice(0,4),...s.slice(4).map(d=>this.parse(d))];if(u)return[s[0],...s.slice(1).map(d=>this.parse(d))]}return s.map(l=>this.parse(l))});if(this.debug(this.pattern,i),this.set=i.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):r>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let i=n;for(;r[i+1]==="**";)i++;i!==n&&r.splice(n,i-n)}return r})}levelOneOptimize(e){return e.map(r=>(r=r.reduce((n,i)=>{let s=n[n.length-1];return i==="**"&&s==="**"?n:i===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(n.pop(),n):(n.push(i),n)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let i=1;ii&&n.splice(i+1,a-i);let c=n[i+1],l=n[i+2],u=n[i+3];if(c!==".."||!l||l==="."||l===".."||!u||u==="."||u==="..")continue;r=!0,n.splice(i,1);let d=n.slice(0);d[i]="**",e.push(d),i--}if(!this.preserveMultipleSlashes){for(let a=1;ar.length)}partsMatch(e,r,n=!1){let i=0,s=0,a=[],c="";for(;i=2&&(e=this.levelTwoFileOptimize(e)),r.includes(he.GLOBSTAR)?this.#e(e,r,n,i,s):this.#n(e,r,n,i,s)}#e(e,r,n,i,s){let a=r.indexOf(he.GLOBSTAR,s),c=r.lastIndexOf(he.GLOBSTAR),[l,u,d]=n?[r.slice(s,a),r.slice(a+1),[]]:[r.slice(s,a),r.slice(a+1,c),r.slice(c+1)];if(l.length){let C=e.slice(i,i+l.length);if(!this.#n(C,l,n,0,0))return!1;i+=l.length}let f=0;if(d.length){if(d.length+i>e.length)return!1;let C=e.length-d.length;if(this.#n(e,d,n,C,0))f=d.length;else{if(e[e.length-1]!==""||i+d.length===e.length||(C--,!this.#n(e,d,n,C,0)))return!1;f=d.length+1}}if(!u.length){let C=!!f;for(let w=i;w{let u=l.map(d=>{if(d instanceof RegExp)for(let f of d.flags.split(""))i.add(f);return typeof d=="string"?eRt(d):d===he.GLOBSTAR?he.GLOBSTAR:d._src});return u.forEach((d,f)=>{let h=u[f+1],p=u[f-1];d!==he.GLOBSTAR||p===he.GLOBSTAR||(p===void 0?h!==void 0&&h!==he.GLOBSTAR?u[f+1]="(?:\\/|"+n+"\\/)?"+h:u[f]=n:h===void 0?u[f-1]=p+"(?:\\/|"+n+")?":h!==he.GLOBSTAR&&(u[f-1]=p+"(?:\\/|\\/"+n+"\\/)"+h,u[f+1]=he.GLOBSTAR))}),u.filter(d=>d!==he.GLOBSTAR).join("/")}).join("|"),[a,c]=e.length>1?["(?:",")"]:["",""];s="^"+a+s+c+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;this.isWindows&&(e=e.split("\\").join("/"));let i=this.slashSplit(e);this.debug(this.pattern,"split",i);let s=this.set;this.debug(this.pattern,"set",s);let a=i[i.length-1];if(!a)for(let c=i.length-2;!a&&c>=0;c--)a=i[c];for(let c=0;c{"use strict";Object.defineProperty(iQ,"__esModule",{value:!0});iQ.LRUCache=void 0;var Fy=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,yRe=new Set,vW=typeof process=="object"&&process?process:{},ERe=o((t,e,r,n)=>{typeof vW.emitWarning=="function"?vW.emitWarning(t,e,r,n):console.error(`[${r}] ${e}: ${t}`)},"emitWarning"),nQ=globalThis.AbortController,gRe=globalThis.AbortSignal;if(typeof nQ>"u"){gRe=class{static{o(this,"AbortSignal")}onabort;_onabort=[];reason;aborted=!1;addEventListener(n,i){this._onabort.push(i)}},nQ=class{static{o(this,"AbortController")}constructor(){e()}signal=new gRe;abort(n){if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let i of this.signal._onabort)i(n);this.signal.onabort?.(n)}}};let t=vW.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=o(()=>{t&&(t=!1,ERe("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))},"warnACPolyfill")}var iRt=o(t=>!yRe.has(t),"shouldWarn"),df=o(t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),"isPosInt"),CRe=o(t=>df(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?My:null:null,"getUintArray"),My=class extends Array{static{o(this,"ZeroArray")}constructor(e){super(e),this.fill(0)}},NW=class t{static{o(this,"Stack")}heap;length;static#e=!1;static create(e){let r=CRe(e);if(!r)return[];t.#e=!0;let n=new t(e,r);return t.#e=!1,n}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},_W=class t{static{o(this,"LRUCache")}#e;#r;#n;#t;#i;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#s;#l;#a;#c;#o;#f;#C;#p;#m;#g;#h;#I;#y;#b;#E;#B;#d;static unsafeExposeInternals(e){return{starts:e.#y,ttls:e.#b,sizes:e.#I,keyMap:e.#a,keyList:e.#c,valList:e.#o,next:e.#f,prev:e.#C,get head(){return e.#p},get tail(){return e.#m},free:e.#g,isBackgroundFetch:o(r=>e.#A(r),"isBackgroundFetch"),backgroundFetch:o((r,n,i,s)=>e.#k(r,n,i,s),"backgroundFetch"),moveToTail:o(r=>e.#Q(r),"moveToTail"),indexes:o(r=>e.#_(r),"indexes"),rindexes:o(r=>e.#R(r),"rindexes"),isStale:o(r=>e.#x(r),"isStale")}}get max(){return this.#e}get maxSize(){return this.#r}get calculatedSize(){return this.#l}get size(){return this.#s}get fetchMethod(){return this.#i}get dispose(){return this.#n}get disposeAfter(){return this.#t}constructor(e){let{max:r=0,ttl:n,ttlResolution:i=1,ttlAutopurge:s,updateAgeOnGet:a,updateAgeOnHas:c,allowStale:l,dispose:u,disposeAfter:d,noDisposeOnSet:f,noUpdateTTL:h,maxSize:p=0,maxEntrySize:m=0,sizeCalculation:A,fetchMethod:E,noDeleteOnFetchRejection:y,noDeleteOnStaleGet:C,allowStaleOnFetchRejection:w,allowStaleOnFetchAbort:B,ignoreFetchAbort:P}=e;if(r!==0&&!df(r))throw new TypeError("max option must be a nonnegative integer");let U=r?CRe(r):Array;if(!U)throw new Error("invalid max value: "+r);if(this.#e=r,this.#r=p,this.maxEntrySize=m||this.#r,this.sizeCalculation=A,this.sizeCalculation){if(!this.#r&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(E!==void 0&&typeof E!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#i=E,this.#B=!!E,this.#a=new Map,this.#c=new Array(r).fill(void 0),this.#o=new Array(r).fill(void 0),this.#f=new U(r),this.#C=new U(r),this.#p=0,this.#m=0,this.#g=NW.create(r),this.#s=0,this.#l=0,typeof u=="function"&&(this.#n=u),typeof d=="function"?(this.#t=d,this.#h=[]):(this.#t=void 0,this.#h=void 0),this.#E=!!this.#n,this.#d=!!this.#t,this.noDisposeOnSet=!!f,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!y,this.allowStaleOnFetchRejection=!!w,this.allowStaleOnFetchAbort=!!B,this.ignoreFetchAbort=!!P,this.maxEntrySize!==0){if(this.#r!==0&&!df(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!df(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#T()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!C,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!c,this.ttlResolution=df(i)||i===0?i:1,this.ttlAutopurge=!!s,this.ttl=n||0,this.ttl){if(!df(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#w()}if(this.#e===0&&this.ttl===0&&this.#r===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#r){let N="LRU_CACHE_UNBOUNDED";iRt(N)&&(yRe.add(N),ERe("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",N,t))}}getRemainingTTL(e){return this.#a.has(e)?1/0:0}#w(){let e=new My(this.#e),r=new My(this.#e);this.#b=e,this.#y=r,this.#u=(s,a,c=Fy.now())=>{if(r[s]=a!==0?c:0,e[s]=a,a!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#x(s)&&this.delete(this.#c[s])},a+1);l.unref&&l.unref()}},this.#S=s=>{r[s]=e[s]!==0?Fy.now():0},this.#v=(s,a)=>{if(e[a]){let c=e[a],l=r[a];if(!c||!l)return;s.ttl=c,s.start=l,s.now=n||i();let u=s.now-l;s.remainingTTL=c-u}};let n=0,i=o(()=>{let s=Fy.now();if(this.ttlResolution>0){n=s;let a=setTimeout(()=>n=0,this.ttlResolution);a.unref&&a.unref()}return s},"getNow");this.getRemainingTTL=s=>{let a=this.#a.get(s);if(a===void 0)return 0;let c=e[a],l=r[a];if(!c||!l)return 1/0;let u=(n||i())-l;return c-u},this.#x=s=>{let a=r[s],c=e[s];return!!c&&!!a&&(n||i())-a>c}}#S=o(()=>{},"#updateItemAge");#v=o(()=>{},"#statusTTL");#u=o(()=>{},"#setItemTTL");#x=o(()=>!1,"#isStale");#T(){let e=new My(this.#e);this.#l=0,this.#I=e,this.#N=r=>{this.#l-=e[r],e[r]=0},this.#O=(r,n,i,s)=>{if(this.#A(n))return 0;if(!df(i))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(i=s(n,r),!df(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i},this.#P=(r,n,i)=>{if(e[r]=n,this.#r){let s=this.#r-e[r];for(;this.#l>s;)this.#D(!0)}this.#l+=e[r],i&&(i.entrySize=n,i.totalCalculatedSize=this.#l)}}#N=o(e=>{},"#removeItemSize");#P=o((e,r,n)=>{},"#addItemSize");#O=o((e,r,n,i)=>{if(n||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0},"#requireSize");*#_({allowStale:e=this.allowStale}={}){if(this.#s)for(let r=this.#m;!(!this.#L(r)||((e||!this.#x(r))&&(yield r),r===this.#p));)r=this.#C[r]}*#R({allowStale:e=this.allowStale}={}){if(this.#s)for(let r=this.#p;!(!this.#L(r)||((e||!this.#x(r))&&(yield r),r===this.#m));)r=this.#f[r]}#L(e){return e!==void 0&&this.#a.get(this.#c[e])===e}*entries(){for(let e of this.#_())this.#o[e]!==void 0&&this.#c[e]!==void 0&&!this.#A(this.#o[e])&&(yield[this.#c[e],this.#o[e]])}*rentries(){for(let e of this.#R())this.#o[e]!==void 0&&this.#c[e]!==void 0&&!this.#A(this.#o[e])&&(yield[this.#c[e],this.#o[e]])}*keys(){for(let e of this.#_()){let r=this.#c[e];r!==void 0&&!this.#A(this.#o[e])&&(yield r)}}*rkeys(){for(let e of this.#R()){let r=this.#c[e];r!==void 0&&!this.#A(this.#o[e])&&(yield r)}}*values(){for(let e of this.#_())this.#o[e]!==void 0&&!this.#A(this.#o[e])&&(yield this.#o[e])}*rvalues(){for(let e of this.#R())this.#o[e]!==void 0&&!this.#A(this.#o[e])&&(yield this.#o[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,r={}){for(let n of this.#_()){let i=this.#o[n],s=this.#A(i)?i.__staleWhileFetching:i;if(s!==void 0&&e(s,this.#c[n],this))return this.get(this.#c[n],r)}}forEach(e,r=this){for(let n of this.#_()){let i=this.#o[n],s=this.#A(i)?i.__staleWhileFetching:i;s!==void 0&&e.call(r,s,this.#c[n],this)}}rforEach(e,r=this){for(let n of this.#R()){let i=this.#o[n],s=this.#A(i)?i.__staleWhileFetching:i;s!==void 0&&e.call(r,s,this.#c[n],this)}}purgeStale(){let e=!1;for(let r of this.#R({allowStale:!0}))this.#x(r)&&(this.delete(this.#c[r]),e=!0);return e}info(e){let r=this.#a.get(e);if(r===void 0)return;let n=this.#o[r],i=this.#A(n)?n.__staleWhileFetching:n;if(i===void 0)return;let s={value:i};if(this.#b&&this.#y){let a=this.#b[r],c=this.#y[r];if(a&&c){let l=a-(Fy.now()-c);s.ttl=l,s.start=Date.now()}}return this.#I&&(s.size=this.#I[r]),s}dump(){let e=[];for(let r of this.#_({allowStale:!0})){let n=this.#c[r],i=this.#o[r],s=this.#A(i)?i.__staleWhileFetching:i;if(s===void 0||n===void 0)continue;let a={value:s};if(this.#b&&this.#y){a.ttl=this.#b[r];let c=Fy.now()-this.#y[r];a.start=Math.floor(Date.now()-c)}this.#I&&(a.size=this.#I[r]),e.unshift([n,a])}return e}load(e){this.clear();for(let[r,n]of e){if(n.start){let i=Date.now()-n.start;n.start=Fy.now()-i}this.set(r,n.value,n)}}set(e,r,n={}){if(r===void 0)return this.delete(e),this;let{ttl:i=this.ttl,start:s,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:c=this.sizeCalculation,status:l}=n,{noUpdateTTL:u=this.noUpdateTTL}=n,d=this.#O(e,r,n.size||0,c);if(this.maxEntrySize&&d>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.delete(e),this;let f=this.#s===0?void 0:this.#a.get(e);if(f===void 0)f=this.#s===0?this.#m:this.#g.length!==0?this.#g.pop():this.#s===this.#e?this.#D(!1):this.#s,this.#c[f]=e,this.#o[f]=r,this.#a.set(e,f),this.#f[this.#m]=f,this.#C[f]=this.#m,this.#m=f,this.#s++,this.#P(f,d,l),l&&(l.set="add"),u=!1;else{this.#Q(f);let h=this.#o[f];if(r!==h){if(this.#B&&this.#A(h)){h.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:p}=h;p!==void 0&&!a&&(this.#E&&this.#n?.(p,e,"set"),this.#d&&this.#h?.push([p,e,"set"]))}else a||(this.#E&&this.#n?.(h,e,"set"),this.#d&&this.#h?.push([h,e,"set"]));if(this.#N(f),this.#P(f,d,l),this.#o[f]=r,l){l.set="replace";let p=h&&this.#A(h)?h.__staleWhileFetching:h;p!==void 0&&(l.oldValue=p)}}else l&&(l.set="update")}if(i!==0&&!this.#b&&this.#w(),this.#b&&(u||this.#u(f,i,s),l&&this.#v(l,f)),!a&&this.#d&&this.#h){let h=this.#h,p;for(;p=h?.shift();)this.#t?.(...p)}return this}pop(){try{for(;this.#s;){let e=this.#o[this.#p];if(this.#D(!0),this.#A(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#d&&this.#h){let e=this.#h,r;for(;r=e?.shift();)this.#t?.(...r)}}}#D(e){let r=this.#p,n=this.#c[r],i=this.#o[r];return this.#B&&this.#A(i)?i.__abortController.abort(new Error("evicted")):(this.#E||this.#d)&&(this.#E&&this.#n?.(i,n,"evict"),this.#d&&this.#h?.push([i,n,"evict"])),this.#N(r),e&&(this.#c[r]=void 0,this.#o[r]=void 0,this.#g.push(r)),this.#s===1?(this.#p=this.#m=0,this.#g.length=0):this.#p=this.#f[r],this.#a.delete(n),this.#s--,r}has(e,r={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:i}=r,s=this.#a.get(e);if(s!==void 0){let a=this.#o[s];if(this.#A(a)&&a.__staleWhileFetching===void 0)return!1;if(this.#x(s))i&&(i.has="stale",this.#v(i,s));else return n&&this.#S(s),i&&(i.has="hit",this.#v(i,s)),!0}else i&&(i.has="miss");return!1}peek(e,r={}){let{allowStale:n=this.allowStale}=r,i=this.#a.get(e);if(i===void 0||!n&&this.#x(i))return;let s=this.#o[i];return this.#A(s)?s.__staleWhileFetching:s}#k(e,r,n,i){let s=r===void 0?void 0:this.#o[r];if(this.#A(s))return s;let a=new nQ,{signal:c}=n;c?.addEventListener("abort",()=>a.abort(c.reason),{signal:a.signal});let l={signal:a.signal,options:n,context:i},u=o((A,E=!1)=>{let{aborted:y}=a.signal,C=n.ignoreFetchAbort&&A!==void 0;if(n.status&&(y&&!E?(n.status.fetchAborted=!0,n.status.fetchError=a.signal.reason,C&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),y&&!C&&!E)return f(a.signal.reason);let w=p;return this.#o[r]===p&&(A===void 0?w.__staleWhileFetching?this.#o[r]=w.__staleWhileFetching:this.delete(e):(n.status&&(n.status.fetchUpdated=!0),this.set(e,A,l.options))),A},"cb"),d=o(A=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=A),f(A)),"eb"),f=o(A=>{let{aborted:E}=a.signal,y=E&&n.allowStaleOnFetchAbort,C=y||n.allowStaleOnFetchRejection,w=C||n.noDeleteOnFetchRejection,B=p;if(this.#o[r]===p&&(!w||B.__staleWhileFetching===void 0?this.delete(e):y||(this.#o[r]=B.__staleWhileFetching)),C)return n.status&&B.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),B.__staleWhileFetching;if(B.__returned===B)throw A},"fetchFail"),h=o((A,E)=>{let y=this.#i?.(e,s,l);y&&y instanceof Promise&&y.then(C=>A(C===void 0?void 0:C),E),a.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(A(void 0),n.allowStaleOnFetchAbort&&(A=o(C=>u(C,!0),"res")))})},"pcall");n.status&&(n.status.fetchDispatched=!0);let p=new Promise(h).then(u,d),m=Object.assign(p,{__abortController:a,__staleWhileFetching:s,__returned:void 0});return r===void 0?(this.set(e,m,{...l.options,status:void 0}),r=this.#a.get(e)):this.#o[r]=m,m}#A(e){if(!this.#B)return!1;let r=e;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof nQ}async fetch(e,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:c=this.noDisposeOnSet,size:l=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:d=this.noUpdateTTL,noDeleteOnFetchRejection:f=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:m=this.allowStaleOnFetchAbort,context:A,forceRefresh:E=!1,status:y,signal:C}=r;if(!this.#B)return y&&(y.fetch="get"),this.get(e,{allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:s,status:y});let w={allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:s,ttl:a,noDisposeOnSet:c,size:l,sizeCalculation:u,noUpdateTTL:d,noDeleteOnFetchRejection:f,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:m,ignoreFetchAbort:p,status:y,signal:C},B=this.#a.get(e);if(B===void 0){y&&(y.fetch="miss");let P=this.#k(e,B,w,A);return P.__returned=P}else{let P=this.#o[B];if(this.#A(P)){let H=n&&P.__staleWhileFetching!==void 0;return y&&(y.fetch="inflight",H&&(y.returnedStale=!0)),H?P.__staleWhileFetching:P.__returned=P}let U=this.#x(B);if(!E&&!U)return y&&(y.fetch="hit"),this.#Q(B),i&&this.#S(B),y&&this.#v(y,B),P;let N=this.#k(e,B,w,A),Q=N.__staleWhileFetching!==void 0&&n;return y&&(y.fetch=U?"stale":"refresh",Q&&U&&(y.returnedStale=!0)),Q?N.__staleWhileFetching:N.__returned=N}}get(e,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:a}=r,c=this.#a.get(e);if(c!==void 0){let l=this.#o[c],u=this.#A(l);return a&&this.#v(a,c),this.#x(c)?(a&&(a.get="stale"),u?(a&&n&&l.__staleWhileFetching!==void 0&&(a.returnedStale=!0),n?l.__staleWhileFetching:void 0):(s||this.delete(e),a&&n&&(a.returnedStale=!0),n?l:void 0)):(a&&(a.get="hit"),u?l.__staleWhileFetching:(this.#Q(c),i&&this.#S(c),l))}else a&&(a.get="miss")}#F(e,r){this.#C[r]=e,this.#f[e]=r}#Q(e){e!==this.#m&&(e===this.#p?this.#p=this.#f[e]:this.#F(this.#C[e],this.#f[e]),this.#F(this.#m,e),this.#m=e)}delete(e){let r=!1;if(this.#s!==0){let n=this.#a.get(e);if(n!==void 0)if(r=!0,this.#s===1)this.clear();else{this.#N(n);let i=this.#o[n];if(this.#A(i)?i.__abortController.abort(new Error("deleted")):(this.#E||this.#d)&&(this.#E&&this.#n?.(i,e,"delete"),this.#d&&this.#h?.push([i,e,"delete"])),this.#a.delete(e),this.#c[n]=void 0,this.#o[n]=void 0,n===this.#m)this.#m=this.#C[n];else if(n===this.#p)this.#p=this.#f[n];else{let s=this.#C[n];this.#f[s]=this.#f[n];let a=this.#f[n];this.#C[a]=this.#C[n]}this.#s--,this.#g.push(n)}}if(this.#d&&this.#h?.length){let n=this.#h,i;for(;i=n?.shift();)this.#t?.(...i)}return r}clear(){for(let e of this.#R({allowStale:!0})){let r=this.#o[e];if(this.#A(r))r.__abortController.abort(new Error("deleted"));else{let n=this.#c[e];this.#E&&this.#n?.(r,n,"delete"),this.#d&&this.#h?.push([r,n,"delete"])}}if(this.#a.clear(),this.#o.fill(void 0),this.#c.fill(void 0),this.#b&&this.#y&&(this.#b.fill(0),this.#y.fill(0)),this.#I&&this.#I.fill(0),this.#p=0,this.#m=0,this.#g.length=0,this.#l=0,this.#s=0,this.#d&&this.#h){let e=this.#h,r;for(;r=e?.shift();)this.#t?.(...r)}}};iQ.LRUCache=_W});var vRe=g(Hi=>{"use strict";var sRt=Hi&&Hi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Hi,"__esModule",{value:!0});Hi.Minipass=Hi.isWritable=Hi.isReadable=Hi.isStream=void 0;var wRe=typeof process=="object"&&process?process:{stdout:null,stderr:null},OW=require("events"),xRe=sRt(require("stream")),oRt=require("string_decoder"),aRt=o(t=>!!t&&typeof t=="object"&&(t instanceof dQ||t instanceof xRe.default||(0,Hi.isReadable)(t)||(0,Hi.isWritable)(t)),"isStream");Hi.isStream=aRt;var cRt=o(t=>!!t&&typeof t=="object"&&t instanceof OW.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==xRe.default.Writable.prototype.pipe,"isReadable");Hi.isReadable=cRt;var lRt=o(t=>!!t&&typeof t=="object"&&t instanceof OW.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function","isWritable");Hi.isWritable=lRt;var Fu=Symbol("EOF"),Mu=Symbol("maybeEmitEnd"),ff=Symbol("emittedEnd"),sQ=Symbol("emittingEnd"),mI=Symbol("emittedError"),oQ=Symbol("closed"),IRe=Symbol("read"),aQ=Symbol("flush"),SRe=Symbol("flushChunk"),ja=Symbol("encoding"),Uy=Symbol("decoder"),Qn=Symbol("flowing"),gI=Symbol("paused"),qy=Symbol("resume"),kn=Symbol("buffer"),Gi=Symbol("pipes"),Pn=Symbol("bufferLength"),RW=Symbol("bufferPush"),cQ=Symbol("bufferShift"),pi=Symbol("objectMode"),Jr=Symbol("destroyed"),TW=Symbol("error"),DW=Symbol("emitData"),BRe=Symbol("emitEnd"),QW=Symbol("emitEnd2"),gl=Symbol("async"),kW=Symbol("abort"),lQ=Symbol("aborted"),yI=Symbol("signal"),qp=Symbol("dataListeners"),no=Symbol("discarded"),EI=o(t=>Promise.resolve().then(t),"defer"),uRt=o(t=>t(),"nodefer"),dRt=o(t=>t==="end"||t==="finish"||t==="prefinish","isEndish"),fRt=o(t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,"isArrayBufferLike"),hRt=o(t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),"isArrayBufferView"),uQ=class{static{o(this,"Pipe")}src;dest;opts;ondrain;constructor(e,r,n){this.src=e,this.dest=r,this.opts=n,this.ondrain=()=>e[qy](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},PW=class extends uQ{static{o(this,"PipeProxyErrors")}unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,n){super(e,r,n),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}},pRt=o(t=>!!t.objectMode,"isObjectModeOptions"),ARt=o(t=>!t.objectMode&&!!t.encoding&&t.encoding!=="buffer","isEncodingOptions"),dQ=class extends OW.EventEmitter{static{o(this,"Minipass")}[Qn]=!1;[gI]=!1;[Gi]=[];[kn]=[];[pi];[ja];[gl];[Uy];[Fu]=!1;[ff]=!1;[sQ]=!1;[oQ]=!1;[mI]=null;[Pn]=0;[Jr]=!1;[yI];[lQ]=!1;[qp]=0;[no]=!1;writable=!0;readable=!0;constructor(...e){let r=e[0]||{};if(super(),r.objectMode&&typeof r.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");pRt(r)?(this[pi]=!0,this[ja]=null):ARt(r)?(this[ja]=r.encoding,this[pi]=!1):(this[pi]=!1,this[ja]=null),this[gl]=!!r.async,this[Uy]=this[ja]?new oRt.StringDecoder(this[ja]):null,r&&r.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:o(()=>this[kn],"get")}),r&&r.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:o(()=>this[Gi],"get")});let{signal:n}=r;n&&(this[yI]=n,n.aborted?this[kW]():n.addEventListener("abort",()=>this[kW]()))}get bufferLength(){return this[Pn]}get encoding(){return this[ja]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[pi]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[gl]}set async(e){this[gl]=this[gl]||!!e}[kW](){this[lQ]=!0,this.emit("abort",this[yI]?.reason),this.destroy(this[yI]?.reason)}get aborted(){return this[lQ]}set aborted(e){}write(e,r,n){if(this[lQ])return!1;if(this[Fu])throw new Error("write after end");if(this[Jr])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[gl]?EI:uRt;if(!this[pi]&&!Buffer.isBuffer(e)){if(hRt(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(fRt(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[pi]?(this[Qn]&&this[Pn]!==0&&this[aQ](!0),this[Qn]?this.emit("data",e):this[RW](e),this[Pn]!==0&&this.emit("readable"),n&&i(n),this[Qn]):e.length?(typeof e=="string"&&!(r===this[ja]&&!this[Uy]?.lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[ja]&&(e=this[Uy].write(e)),this[Qn]&&this[Pn]!==0&&this[aQ](!0),this[Qn]?this.emit("data",e):this[RW](e),this[Pn]!==0&&this.emit("readable"),n&&i(n),this[Qn]):(this[Pn]!==0&&this.emit("readable"),n&&i(n),this[Qn])}read(e){if(this[Jr])return null;if(this[no]=!1,this[Pn]===0||e===0||e&&e>this[Pn])return this[Mu](),null;this[pi]&&(e=null),this[kn].length>1&&!this[pi]&&(this[kn]=[this[ja]?this[kn].join(""):Buffer.concat(this[kn],this[Pn])]);let r=this[IRe](e||null,this[kn][0]);return this[Mu](),r}[IRe](e,r){if(this[pi])this[cQ]();else{let n=r;e===n.length||e===null?this[cQ]():typeof n=="string"?(this[kn][0]=n.slice(e),r=n.slice(0,e),this[Pn]-=e):(this[kn][0]=n.subarray(e),r=n.subarray(0,e),this[Pn]-=e)}return this.emit("data",r),!this[kn].length&&!this[Fu]&&this.emit("drain"),r}end(e,r,n){return typeof e=="function"&&(n=e,e=void 0),typeof r=="function"&&(n=r,r="utf8"),e!==void 0&&this.write(e,r),n&&this.once("end",n),this[Fu]=!0,this.writable=!1,(this[Qn]||!this[gI])&&this[Mu](),this}[qy](){this[Jr]||(!this[qp]&&!this[Gi].length&&(this[no]=!0),this[gI]=!1,this[Qn]=!0,this.emit("resume"),this[kn].length?this[aQ]():this[Fu]?this[Mu]():this.emit("drain"))}resume(){return this[qy]()}pause(){this[Qn]=!1,this[gI]=!0,this[no]=!1}get destroyed(){return this[Jr]}get flowing(){return this[Qn]}get paused(){return this[gI]}[RW](e){this[pi]?this[Pn]+=1:this[Pn]+=e.length,this[kn].push(e)}[cQ](){return this[pi]?this[Pn]-=1:this[Pn]-=this[kn][0].length,this[kn].shift()}[aQ](e=!1){do;while(this[SRe](this[cQ]())&&this[kn].length);!e&&!this[kn].length&&!this[Fu]&&this.emit("drain")}[SRe](e){return this.emit("data",e),this[Qn]}pipe(e,r){if(this[Jr])return e;this[no]=!1;let n=this[ff];return r=r||{},e===wRe.stdout||e===wRe.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&e.end():(this[Gi].push(r.proxyErrors?new PW(this,e,r):new uQ(this,e,r)),this[gl]?EI(()=>this[qy]()):this[qy]()),e}unpipe(e){let r=this[Gi].find(n=>n.dest===e);r&&(this[Gi].length===1?(this[Qn]&&this[qp]===0&&(this[Qn]=!1),this[Gi]=[]):this[Gi].splice(this[Gi].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let n=super.on(e,r);if(e==="data")this[no]=!1,this[qp]++,!this[Gi].length&&!this[Qn]&&this[qy]();else if(e==="readable"&&this[Pn]!==0)super.emit("readable");else if(dRt(e)&&this[ff])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[mI]){let i=r;this[gl]?EI(()=>i.call(this,this[mI])):i.call(this,this[mI])}return n}removeListener(e,r){return this.off(e,r)}off(e,r){let n=super.off(e,r);return e==="data"&&(this[qp]=this.listeners("data").length,this[qp]===0&&!this[no]&&!this[Gi].length&&(this[Qn]=!1)),n}removeAllListeners(e){let r=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[qp]=0,!this[no]&&!this[Gi].length&&(this[Qn]=!1)),r}get emittedEnd(){return this[ff]}[Mu](){!this[sQ]&&!this[ff]&&!this[Jr]&&this[kn].length===0&&this[Fu]&&(this[sQ]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[oQ]&&this.emit("close"),this[sQ]=!1)}emit(e,...r){let n=r[0];if(e!=="error"&&e!=="close"&&e!==Jr&&this[Jr])return!1;if(e==="data")return!this[pi]&&!n?!1:this[gl]?(EI(()=>this[DW](n)),!0):this[DW](n);if(e==="end")return this[BRe]();if(e==="close"){if(this[oQ]=!0,!this[ff]&&!this[Jr])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[mI]=n,super.emit(TW,n);let s=!this[yI]||this.listeners("error").length?super.emit("error",n):!1;return this[Mu](),s}else if(e==="resume"){let s=super.emit("resume");return this[Mu](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,...r);return this[Mu](),i}[DW](e){for(let n of this[Gi])n.dest.write(e)===!1&&this.pause();let r=this[no]?!1:super.emit("data",e);return this[Mu](),r}[BRe](){return this[ff]?!1:(this[ff]=!0,this.readable=!1,this[gl]?(EI(()=>this[QW]()),!0):this[QW]())}[QW](){if(this[Uy]){let r=this[Uy].end();if(r){for(let n of this[Gi])n.dest.write(r);this[no]||super.emit("data",r)}}for(let r of this[Gi])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[pi]||(e.dataLength=0);let r=this.promise();return this.on("data",n=>{e.push(n),this[pi]||(e.dataLength+=n.length)}),await r,e}async concat(){if(this[pi])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[ja]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,r)=>{this.on(Jr,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[no]=!1;let e=!1,r=o(async()=>(this.pause(),e=!0,{value:void 0,done:!0}),"stop");return{next:o(()=>{if(e)return r();let i=this.read();if(i!==null)return Promise.resolve({done:!1,value:i});if(this[Fu])return r();let s,a,c=o(f=>{this.off("data",l),this.off("end",u),this.off(Jr,d),r(),a(f)},"onerr"),l=o(f=>{this.off("error",c),this.off("end",u),this.off(Jr,d),this.pause(),s({value:f,done:!!this[Fu]})},"ondata"),u=o(()=>{this.off("error",c),this.off("data",l),this.off(Jr,d),r(),s({done:!0,value:void 0})},"onend"),d=o(()=>c(new Error("stream destroyed")),"ondestroy");return new Promise((f,h)=>{a=h,s=f,this.once(Jr,d),this.once("error",c),this.once("end",u),this.once("data",l)})},"next"),throw:r,return:r,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[no]=!1;let e=!1,r=o(()=>(this.pause(),this.off(TW,r),this.off(Jr,r),this.off("end",r),e=!0,{done:!0,value:void 0}),"stop"),n=o(()=>{if(e)return r();let i=this.read();return i===null?r():{done:!1,value:i}},"next");return this.once("end",r),this.once(TW,r),this.once(Jr,r),{next:n,throw:r,return:r,[Symbol.iterator](){return this}}}destroy(e){if(this[Jr])return e?this.emit("error",e):this.emit(Jr),this;this[Jr]=!0,this[no]=!0,this[kn].length=0,this[Pn]=0;let r=this;return typeof r.close=="function"&&!this[oQ]&&r.close(),e?this.emit("error",e):this.emit(Jr),this}static get isStream(){return Hi.isStream}};Hi.Minipass=dQ});var GRe=g(Lt=>{"use strict";var mRt=Lt&&Lt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),gRt=Lt&&Lt.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),yRt=Lt&&Lt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&mRt(e,t,r);return gRt(e,t),e};Object.defineProperty(Lt,"__esModule",{value:!0});Lt.PathScurry=Lt.Path=Lt.PathScurryDarwin=Lt.PathScurryPosix=Lt.PathScurryWin32=Lt.PathScurryBase=Lt.PathPosix=Lt.PathWin32=Lt.PathBase=Lt.ChildrenCache=Lt.ResolveCache=void 0;var QRe=bRe(),mQ=require("node:path"),ERt=require("node:url"),bI=require("fs"),CRt=yRt(require("node:fs")),bRt=bI.realpathSync.native,fQ=require("node:fs/promises"),NRe=vRe(),wI={lstatSync:bI.lstatSync,readdir:bI.readdir,readdirSync:bI.readdirSync,readlinkSync:bI.readlinkSync,realpathSync:bRt,promises:{lstat:fQ.lstat,readdir:fQ.readdir,readlink:fQ.readlink,realpath:fQ.realpath}},kRe=o(t=>!t||t===wI||t===CRt?wI:{...wI,...t,promises:{...wI.promises,...t.promises||{}}},"fsFromOption"),PRe=/^\\\\\?\\([a-z]:)\\?$/i,wRt=o(t=>t.replace(/\//g,"\\").replace(PRe,"$1\\"),"uncToDrive"),IRt=/[\\\/]/,na=0,ORe=1,LRe=2,yl=4,FRe=6,MRe=8,Gp=10,URe=12,ra=15,CI=~ra,LW=16,_Re=32,II=64,Wa=128,hQ=256,AQ=512,RRe=II|Wa|AQ,SRt=1023,FW=o(t=>t.isFile()?MRe:t.isDirectory()?yl:t.isSymbolicLink()?Gp:t.isCharacterDevice()?LRe:t.isBlockDevice()?FRe:t.isSocket()?URe:t.isFIFO()?ORe:na,"entToType"),TRe=new Map,SI=o(t=>{let e=TRe.get(t);if(e)return e;let r=t.normalize("NFKD");return TRe.set(t,r),r},"normalize"),DRe=new Map,pQ=o(t=>{let e=DRe.get(t);if(e)return e;let r=SI(t.toLowerCase());return DRe.set(t,r),r},"normalizeNocase"),BI=class extends QRe.LRUCache{static{o(this,"ResolveCache")}constructor(){super({max:256})}};Lt.ResolveCache=BI;var gQ=class extends QRe.LRUCache{static{o(this,"ChildrenCache")}constructor(e=16*1024){super({maxSize:e,sizeCalculation:o(r=>r.length+1,"sizeCalculation")})}};Lt.ChildrenCache=gQ;var qRe=Symbol("PathScurry setAsCwd"),Xn=class{static{o(this,"PathBase")}name;root;roots;parent;nocase;isCWD=!1;#e;#r;get dev(){return this.#r}#n;get mode(){return this.#n}#t;get nlink(){return this.#t}#i;get uid(){return this.#i}#s;get gid(){return this.#s}#l;get rdev(){return this.#l}#a;get blksize(){return this.#a}#c;get ino(){return this.#c}#o;get size(){return this.#o}#f;get blocks(){return this.#f}#C;get atimeMs(){return this.#C}#p;get mtimeMs(){return this.#p}#m;get ctimeMs(){return this.#m}#g;get birthtimeMs(){return this.#g}#h;get atime(){return this.#h}#I;get mtime(){return this.#I}#y;get ctime(){return this.#y}#b;get birthtime(){return this.#b}#E;#B;#d;#w;#S;#v;#u;#x;#T;#N;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,r=na,n,i,s,a,c){this.name=e,this.#E=s?pQ(e):SI(e),this.#u=r&SRt,this.nocase=s,this.roots=i,this.root=n||this,this.#x=a,this.#d=c.fullpath,this.#S=c.relative,this.#v=c.relativePosix,this.parent=c.parent,this.parent?this.#e=this.parent.#e:this.#e=kRe(c.fs)}depth(){return this.#B!==void 0?this.#B:this.parent?this.#B=this.parent.depth()+1:this.#B=0}childrenCache(){return this.#x}resolve(e){if(!e)return this;let r=this.getRootString(e),i=e.substring(r.length).split(this.splitSep);return r?this.getRoot(r).#P(i):this.#P(i)}#P(e){let r=this;for(let n of e)r=r.child(n);return r}children(){let e=this.#x.get(this);if(e)return e;let r=Object.assign([],{provisional:0});return this.#x.set(this,r),this.#u&=~LW,r}child(e,r){if(e===""||e===".")return this;if(e==="..")return this.parent||this;let n=this.children(),i=this.nocase?pQ(e):SI(e);for(let l of n)if(l.#E===i)return l;let s=this.parent?this.sep:"",a=this.#d?this.#d+s+e:void 0,c=this.newChild(e,na,{...r,parent:this,fullpath:a});return this.canReaddir()||(c.#u|=Wa),n.push(c),c}relative(){if(this.isCWD)return"";if(this.#S!==void 0)return this.#S;let e=this.name,r=this.parent;if(!r)return this.#S=this.name;let n=r.relative();return n+(!n||!r.parent?"":this.sep)+e}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#v!==void 0)return this.#v;let e=this.name,r=this.parent;if(!r)return this.#v=this.fullpathPosix();let n=r.relativePosix();return n+(!n||!r.parent?"":"/")+e}fullpath(){if(this.#d!==void 0)return this.#d;let e=this.name,r=this.parent;if(!r)return this.#d=this.name;let i=r.fullpath()+(r.parent?this.sep:"")+e;return this.#d=i}fullpathPosix(){if(this.#w!==void 0)return this.#w;if(this.sep==="/")return this.#w=this.fullpath();if(!this.parent){let i=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(i)?this.#w=`//?/${i}`:this.#w=i}let e=this.parent,r=e.fullpathPosix(),n=r+(!r||!e.parent?"":"/")+this.name;return this.#w=n}isUnknown(){return(this.#u&ra)===na}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#u&ra)===MRe}isDirectory(){return(this.#u&ra)===yl}isCharacterDevice(){return(this.#u&ra)===LRe}isBlockDevice(){return(this.#u&ra)===FRe}isFIFO(){return(this.#u&ra)===ORe}isSocket(){return(this.#u&ra)===URe}isSymbolicLink(){return(this.#u&Gp)===Gp}lstatCached(){return this.#u&_Re?this:void 0}readlinkCached(){return this.#T}realpathCached(){return this.#N}readdirCached(){let e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#T)return!0;if(!this.parent)return!1;let e=this.#u&ra;return!(e!==na&&e!==Gp||this.#u&hQ||this.#u&Wa)}calledReaddir(){return!!(this.#u&LW)}isENOENT(){return!!(this.#u&Wa)}isNamed(e){return this.nocase?this.#E===pQ(e):this.#E===SI(e)}async readlink(){let e=this.#T;if(e)return e;if(this.canReadlink()&&this.parent)try{let r=await this.#e.promises.readlink(this.fullpath()),n=(await this.parent.realpath())?.resolve(r);if(n)return this.#T=n}catch(r){this.#F(r.code);return}}readlinkSync(){let e=this.#T;if(e)return e;if(this.canReadlink()&&this.parent)try{let r=this.#e.readlinkSync(this.fullpath()),n=this.parent.realpathSync()?.resolve(r);if(n)return this.#T=n}catch(r){this.#F(r.code);return}}#O(e){this.#u|=LW;for(let r=e.provisional;rn(null,e))}readdirCB(e,r=!1){if(!this.canReaddir()){r?e(null,[]):queueMicrotask(()=>e(null,[]));return}let n=this.children();if(this.calledReaddir()){let s=n.slice(0,n.provisional);r?e(null,s):queueMicrotask(()=>e(null,s));return}if(this.#U.push(e),this.#q)return;this.#q=!0;let i=this.fullpath();this.#e.readdir(i,{withFileTypes:!0},(s,a)=>{if(s)this.#k(s.code),n.provisional=0;else{for(let c of a)this.#Q(c,n);this.#O(n)}this.#$(n.slice(0,n.provisional))})}#M;async readdir(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let r=this.fullpath();if(this.#M)await this.#M;else{let n=o(()=>{},"resolve");this.#M=new Promise(i=>n=i);try{for(let i of await this.#e.promises.readdir(r,{withFileTypes:!0}))this.#Q(i,e);this.#O(e)}catch(i){this.#k(i.code),e.provisional=0}this.#M=void 0,n()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let r=this.fullpath();try{for(let n of this.#e.readdirSync(r,{withFileTypes:!0}))this.#Q(n,e);this.#O(e)}catch(n){this.#k(n.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#u&RRe)return!1;let e=ra&this.#u;return e===na||e===yl||e===Gp}shouldWalk(e,r){return(this.#u&yl)===yl&&!(this.#u&RRe)&&!e.has(this)&&(!r||r(this))}async realpath(){if(this.#N)return this.#N;if(!((AQ|hQ|Wa)&this.#u))try{let e=await this.#e.promises.realpath(this.fullpath());return this.#N=this.resolve(e)}catch{this.#L()}}realpathSync(){if(this.#N)return this.#N;if(!((AQ|hQ|Wa)&this.#u))try{let e=this.#e.realpathSync(this.fullpath());return this.#N=this.resolve(e)}catch{this.#L()}}[qRe](e){if(e===this)return;e.isCWD=!1,this.isCWD=!0;let r=new Set([]),n=[],i=this;for(;i&&i.parent;)r.add(i),i.#S=n.join(this.sep),i.#v=n.join("/"),i=i.parent,n.push("..");for(i=e;i&&i.parent&&!r.has(i);)i.#S=void 0,i.#v=void 0,i=i.parent}};Lt.PathBase=Xn;var xI=class t extends Xn{static{o(this,"PathWin32")}sep="\\";splitSep=IRt;constructor(e,r=na,n,i,s,a,c){super(e,r,n,i,s,a,c)}newChild(e,r=na,n={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),n)}getRootString(e){return mQ.win32.parse(e).root}getRoot(e){if(e=wRt(e.toUpperCase()),e===this.root.name)return this.root;for(let[r,n]of Object.entries(this.roots))if(this.sameRoot(e,r))return this.roots[e]=n;return this.roots[e]=new _I(e,this).root}sameRoot(e,r=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(PRe,"$1\\"),e===r}};Lt.PathWin32=xI;var vI=class t extends Xn{static{o(this,"PathPosix")}splitSep="/";sep="/";constructor(e,r=na,n,i,s,a,c){super(e,r,n,i,s,a,c)}getRootString(e){return e.startsWith("/")?"/":""}getRoot(e){return this.root}newChild(e,r=na,n={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),n)}};Lt.PathPosix=vI;var NI=class{static{o(this,"PathScurryBase")}root;rootPath;roots;cwd;#e;#r;#n;nocase;#t;constructor(e=process.cwd(),r,n,{nocase:i,childrenCacheSize:s=16*1024,fs:a=wI}={}){this.#t=kRe(a),(e instanceof URL||e.startsWith("file://"))&&(e=(0,ERt.fileURLToPath)(e));let c=r.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(c),this.#e=new BI,this.#r=new BI,this.#n=new gQ(s);let l=c.substring(this.rootPath.length).split(n);if(l.length===1&&!l[0]&&l.pop(),i===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=i,this.root=this.newRoot(this.#t),this.roots[this.rootPath]=this.root;let u=this.root,d=l.length-1,f=r.sep,h=this.rootPath,p=!1;for(let m of l){let A=d--;u=u.child(m,{relative:new Array(A).fill("..").join(f),relativePosix:new Array(A).fill("..").join("/"),fullpath:h+=(p?"":f)+m}),p=!0}this.cwd=u}depth(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.depth()}childrenCache(){return this.#n}resolve(...e){let r="";for(let s=e.length-1;s>=0;s--){let a=e[s];if(!(!a||a===".")&&(r=r?`${a}/${r}`:a,this.isAbsolute(a)))break}let n=this.#e.get(r);if(n!==void 0)return n;let i=this.cwd.resolve(r).fullpath();return this.#e.set(r,i),i}resolvePosix(...e){let r="";for(let s=e.length-1;s>=0;s--){let a=e[s];if(!(!a||a===".")&&(r=r?`${a}/${r}`:a,this.isAbsolute(a)))break}let n=this.#r.get(r);if(n!==void 0)return n;let i=this.cwd.resolve(r).fullpathPosix();return this.#r.set(r,i),i}relative(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relative()}relativePosix(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relativePosix()}basename(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.name}dirname(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),(e.parent||e).fullpath()}async readdir(e=this.cwd,r={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Xn||(r=e,e=this.cwd);let{withFileTypes:n}=r;if(e.canReaddir()){let i=await e.readdir();return n?i:i.map(s=>s.name)}else return[]}readdirSync(e=this.cwd,r={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Xn||(r=e,e=this.cwd);let{withFileTypes:n=!0}=r;return e.canReaddir()?n?e.readdirSync():e.readdirSync().map(i=>i.name):[]}async lstat(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstat()}lstatSync(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Xn||(r=e.withFileTypes,e=this.cwd);let n=await e.readlink();return r?n:n?.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Xn||(r=e.withFileTypes,e=this.cwd);let n=e.readlinkSync();return r?n:n?.fullpath()}async realpath(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Xn||(r=e.withFileTypes,e=this.cwd);let n=await e.realpath();return r?n:n?.fullpath()}realpathSync(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Xn||(r=e.withFileTypes,e=this.cwd);let n=e.realpathSync();return r?n:n?.fullpath()}async walk(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Xn||(r=e,e=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:a}=r,c=[];(!s||s(e))&&c.push(n?e:e.fullpath());let l=new Set,u=o((f,h)=>{l.add(f),f.readdirCB((p,m)=>{if(p)return h(p);let A=m.length;if(!A)return h();let E=o(()=>{--A===0&&h()},"next");for(let y of m)(!s||s(y))&&c.push(n?y:y.fullpath()),i&&y.isSymbolicLink()?y.realpath().then(C=>C?.isUnknown()?C.lstat():C).then(C=>C?.shouldWalk(l,a)?u(C,E):E()):y.shouldWalk(l,a)?u(y,E):E()},!0)},"walk"),d=e;return new Promise((f,h)=>{u(d,p=>{if(p)return h(p);f(c)})})}walkSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Xn||(r=e,e=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:a}=r,c=[];(!s||s(e))&&c.push(n?e:e.fullpath());let l=new Set([e]);for(let u of l){let d=u.readdirSync();for(let f of d){(!s||s(f))&&c.push(n?f:f.fullpath());let h=f;if(f.isSymbolicLink()){if(!(i&&(h=f.realpathSync())))continue;h.isUnknown()&&h.lstatSync()}h.shouldWalk(l,a)&&l.add(h)}}return c}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,r={}){return typeof e=="string"?e=this.cwd.resolve(e):e instanceof Xn||(r=e,e=this.cwd),this.stream(e,r)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Xn||(r=e,e=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:a}=r;(!s||s(e))&&(yield n?e:e.fullpath());let c=new Set([e]);for(let l of c){let u=l.readdirSync();for(let d of u){(!s||s(d))&&(yield n?d:d.fullpath());let f=d;if(d.isSymbolicLink()){if(!(i&&(f=d.realpathSync())))continue;f.isUnknown()&&f.lstatSync()}f.shouldWalk(c,a)&&c.add(f)}}}stream(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Xn||(r=e,e=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:a}=r,c=new NRe.Minipass({objectMode:!0});(!s||s(e))&&c.write(n?e:e.fullpath());let l=new Set,u=[e],d=0,f=o(()=>{let h=!1;for(;!h;){let p=u.shift();if(!p){d===0&&c.end();return}d++,l.add(p);let m=o((E,y,C=!1)=>{if(E)return c.emit("error",E);if(i&&!C){let w=[];for(let B of y)B.isSymbolicLink()&&w.push(B.realpath().then(P=>P?.isUnknown()?P.lstat():P));if(w.length){Promise.all(w).then(()=>m(null,y,!0));return}}for(let w of y)w&&(!s||s(w))&&(c.write(n?w:w.fullpath())||(h=!0));d--;for(let w of y){let B=w.realpathCached()||w;B.shouldWalk(l,a)&&u.push(B)}h&&!c.flowing?c.once("drain",f):A||f()},"onReaddir"),A=!0;p.readdirCB(m,!0),A=!1}},"process");return f(),c}streamSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Xn||(r=e,e=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:a}=r,c=new NRe.Minipass({objectMode:!0}),l=new Set;(!s||s(e))&&c.write(n?e:e.fullpath());let u=[e],d=0,f=o(()=>{let h=!1;for(;!h;){let p=u.shift();if(!p){d===0&&c.end();return}d++,l.add(p);let m=p.readdirSync();for(let A of m)(!s||s(A))&&(c.write(n?A:A.fullpath())||(h=!0));d--;for(let A of m){let E=A;if(A.isSymbolicLink()){if(!(i&&(E=A.realpathSync())))continue;E.isUnknown()&&E.lstatSync()}E.shouldWalk(l,a)&&u.push(E)}}h&&!c.flowing&&c.once("drain",f)},"process");return f(),c}chdir(e=this.cwd){let r=this.cwd;this.cwd=typeof e=="string"?this.cwd.resolve(e):e,this.cwd[qRe](r)}};Lt.PathScurryBase=NI;var _I=class extends NI{static{o(this,"PathScurryWin32")}sep="\\";constructor(e=process.cwd(),r={}){let{nocase:n=!0}=r;super(e,mQ.win32,"\\",{...r,nocase:n}),this.nocase=n;for(let i=this.cwd;i;i=i.parent)i.nocase=this.nocase}parseRootPath(e){return mQ.win32.parse(e).root.toUpperCase()}newRoot(e){return new xI(this.rootPath,yl,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}};Lt.PathScurryWin32=_I;var RI=class extends NI{static{o(this,"PathScurryPosix")}sep="/";constructor(e=process.cwd(),r={}){let{nocase:n=!1}=r;super(e,mQ.posix,"/",{...r,nocase:n}),this.nocase=n}parseRootPath(e){return"/"}newRoot(e){return new vI(this.rootPath,yl,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}};Lt.PathScurryPosix=RI;var yQ=class extends RI{static{o(this,"PathScurryDarwin")}constructor(e=process.cwd(),r={}){let{nocase:n=!0}=r;super(e,{...r,nocase:n})}};Lt.PathScurryDarwin=yQ;Lt.Path=process.platform==="win32"?xI:vI;Lt.PathScurry=process.platform==="win32"?_I:process.platform==="darwin"?yQ:RI});var UW=g(EQ=>{"use strict";Object.defineProperty(EQ,"__esModule",{value:!0});EQ.Pattern=void 0;var BRt=uf(),xRt=o(t=>t.length>=1,"isPatternList"),vRt=o(t=>t.length>=1,"isGlobList"),MW=class t{static{o(this,"Pattern")}#e;#r;#n;length;#t;#i;#s;#l;#a;#c;#o=!0;constructor(e,r,n,i){if(!xRt(e))throw new TypeError("empty pattern list");if(!vRt(r))throw new TypeError("empty glob list");if(r.length!==e.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=e.length,n<0||n>=this.length)throw new TypeError("index out of range");if(this.#e=e,this.#r=r,this.#n=n,this.#t=i,this.#n===0){if(this.isUNC()){let[s,a,c,l,...u]=this.#e,[d,f,h,p,...m]=this.#r;u[0]===""&&(u.shift(),m.shift());let A=[s,a,c,l,""].join("/"),E=[d,f,h,p,""].join("/");this.#e=[A,...u],this.#r=[E,...m],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[s,...a]=this.#e,[c,...l]=this.#r;a[0]===""&&(a.shift(),l.shift());let u=s+"/",d=c+"/";this.#e=[u,...a],this.#r=[d,...l],this.length=this.#e.length}}}pattern(){return this.#e[this.#n]}isString(){return typeof this.#e[this.#n]=="string"}isGlobstar(){return this.#e[this.#n]===BRt.GLOBSTAR}isRegExp(){return this.#e[this.#n]instanceof RegExp}globString(){return this.#s=this.#s||(this.#n===0?this.isAbsolute()?this.#r[0]+this.#r.slice(1).join("/"):this.#r.join("/"):this.#r.slice(this.#n).join("/"))}hasMore(){return this.length>this.#n+1}rest(){return this.#i!==void 0?this.#i:this.hasMore()?(this.#i=new t(this.#e,this.#r,this.#n+1,this.#t),this.#i.#c=this.#c,this.#i.#a=this.#a,this.#i.#l=this.#l,this.#i):this.#i=null}isUNC(){let e=this.#e;return this.#a!==void 0?this.#a:this.#a=this.#t==="win32"&&this.#n===0&&e[0]===""&&e[1]===""&&typeof e[2]=="string"&&!!e[2]&&typeof e[3]=="string"&&!!e[3]}isDrive(){let e=this.#e;return this.#l!==void 0?this.#l:this.#l=this.#t==="win32"&&this.#n===0&&this.length>1&&typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0])}isAbsolute(){let e=this.#e;return this.#c!==void 0?this.#c:this.#c=e[0]===""&&e.length>1||this.isDrive()||this.isUNC()}root(){let e=this.#e[0];return typeof e=="string"&&this.isAbsolute()&&this.#n===0?e:""}checkFollowGlobstar(){return!(this.#n===0||!this.isGlobstar()||!this.#o)}markFollowGlobstar(){return this.#n===0||!this.isGlobstar()||!this.#o?!1:(this.#o=!1,!0)}};EQ.Pattern=MW});var WRe=g(Vi=>{"use strict";var NRt=Vi&&Vi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Vi,"__esModule",{value:!0});Vi.Minipass=Vi.isWritable=Vi.isReadable=Vi.isStream=void 0;var HRe=typeof process=="object"&&process?process:{stdout:null,stderr:null},jW=require("node:events"),jRe=NRt(require("node:stream")),_Rt=require("node:string_decoder"),RRt=o(t=>!!t&&typeof t=="object"&&(t instanceof xQ||t instanceof jRe.default||(0,Vi.isReadable)(t)||(0,Vi.isWritable)(t)),"isStream");Vi.isStream=RRt;var TRt=o(t=>!!t&&typeof t=="object"&&t instanceof jW.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==jRe.default.Writable.prototype.pipe,"isReadable");Vi.isReadable=TRt;var DRt=o(t=>!!t&&typeof t=="object"&&t instanceof jW.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function","isWritable");Vi.isWritable=DRt;var Uu=Symbol("EOF"),qu=Symbol("maybeEmitEnd"),hf=Symbol("emittedEnd"),CQ=Symbol("emittingEnd"),TI=Symbol("emittedError"),bQ=Symbol("closed"),zRe=Symbol("read"),wQ=Symbol("flush"),VRe=Symbol("flushChunk"),Ja=Symbol("encoding"),Gy=Symbol("decoder"),On=Symbol("flowing"),DI=Symbol("paused"),Hy=Symbol("resume"),Ln=Symbol("buffer"),zi=Symbol("pipes"),Fn=Symbol("bufferLength"),qW=Symbol("bufferPush"),IQ=Symbol("bufferShift"),Ai=Symbol("objectMode"),Yr=Symbol("destroyed"),GW=Symbol("error"),HW=Symbol("emitData"),$Re=Symbol("emitEnd"),zW=Symbol("emitEnd2"),El=Symbol("async"),VW=Symbol("abort"),SQ=Symbol("aborted"),QI=Symbol("signal"),Hp=Symbol("dataListeners"),io=Symbol("discarded"),kI=o(t=>Promise.resolve().then(t),"defer"),QRt=o(t=>t(),"nodefer"),kRt=o(t=>t==="end"||t==="finish"||t==="prefinish","isEndish"),PRt=o(t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,"isArrayBufferLike"),ORt=o(t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),"isArrayBufferView"),BQ=class{static{o(this,"Pipe")}src;dest;opts;ondrain;constructor(e,r,n){this.src=e,this.dest=r,this.opts=n,this.ondrain=()=>e[Hy](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},$W=class extends BQ{static{o(this,"PipeProxyErrors")}unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,n){super(e,r,n),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}},LRt=o(t=>!!t.objectMode,"isObjectModeOptions"),FRt=o(t=>!t.objectMode&&!!t.encoding&&t.encoding!=="buffer","isEncodingOptions"),xQ=class extends jW.EventEmitter{static{o(this,"Minipass")}[On]=!1;[DI]=!1;[zi]=[];[Ln]=[];[Ai];[Ja];[El];[Gy];[Uu]=!1;[hf]=!1;[CQ]=!1;[bQ]=!1;[TI]=null;[Fn]=0;[Yr]=!1;[QI];[SQ]=!1;[Hp]=0;[io]=!1;writable=!0;readable=!0;constructor(...e){let r=e[0]||{};if(super(),r.objectMode&&typeof r.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");LRt(r)?(this[Ai]=!0,this[Ja]=null):FRt(r)?(this[Ja]=r.encoding,this[Ai]=!1):(this[Ai]=!1,this[Ja]=null),this[El]=!!r.async,this[Gy]=this[Ja]?new _Rt.StringDecoder(this[Ja]):null,r&&r.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:o(()=>this[Ln],"get")}),r&&r.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:o(()=>this[zi],"get")});let{signal:n}=r;n&&(this[QI]=n,n.aborted?this[VW]():n.addEventListener("abort",()=>this[VW]()))}get bufferLength(){return this[Fn]}get encoding(){return this[Ja]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[Ai]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[El]}set async(e){this[El]=this[El]||!!e}[VW](){this[SQ]=!0,this.emit("abort",this[QI]?.reason),this.destroy(this[QI]?.reason)}get aborted(){return this[SQ]}set aborted(e){}write(e,r,n){if(this[SQ])return!1;if(this[Uu])throw new Error("write after end");if(this[Yr])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[El]?kI:QRt;if(!this[Ai]&&!Buffer.isBuffer(e)){if(ORt(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(PRt(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[Ai]?(this[On]&&this[Fn]!==0&&this[wQ](!0),this[On]?this.emit("data",e):this[qW](e),this[Fn]!==0&&this.emit("readable"),n&&i(n),this[On]):e.length?(typeof e=="string"&&!(r===this[Ja]&&!this[Gy]?.lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ja]&&(e=this[Gy].write(e)),this[On]&&this[Fn]!==0&&this[wQ](!0),this[On]?this.emit("data",e):this[qW](e),this[Fn]!==0&&this.emit("readable"),n&&i(n),this[On]):(this[Fn]!==0&&this.emit("readable"),n&&i(n),this[On])}read(e){if(this[Yr])return null;if(this[io]=!1,this[Fn]===0||e===0||e&&e>this[Fn])return this[qu](),null;this[Ai]&&(e=null),this[Ln].length>1&&!this[Ai]&&(this[Ln]=[this[Ja]?this[Ln].join(""):Buffer.concat(this[Ln],this[Fn])]);let r=this[zRe](e||null,this[Ln][0]);return this[qu](),r}[zRe](e,r){if(this[Ai])this[IQ]();else{let n=r;e===n.length||e===null?this[IQ]():typeof n=="string"?(this[Ln][0]=n.slice(e),r=n.slice(0,e),this[Fn]-=e):(this[Ln][0]=n.subarray(e),r=n.subarray(0,e),this[Fn]-=e)}return this.emit("data",r),!this[Ln].length&&!this[Uu]&&this.emit("drain"),r}end(e,r,n){return typeof e=="function"&&(n=e,e=void 0),typeof r=="function"&&(n=r,r="utf8"),e!==void 0&&this.write(e,r),n&&this.once("end",n),this[Uu]=!0,this.writable=!1,(this[On]||!this[DI])&&this[qu](),this}[Hy](){this[Yr]||(!this[Hp]&&!this[zi].length&&(this[io]=!0),this[DI]=!1,this[On]=!0,this.emit("resume"),this[Ln].length?this[wQ]():this[Uu]?this[qu]():this.emit("drain"))}resume(){return this[Hy]()}pause(){this[On]=!1,this[DI]=!0,this[io]=!1}get destroyed(){return this[Yr]}get flowing(){return this[On]}get paused(){return this[DI]}[qW](e){this[Ai]?this[Fn]+=1:this[Fn]+=e.length,this[Ln].push(e)}[IQ](){return this[Ai]?this[Fn]-=1:this[Fn]-=this[Ln][0].length,this[Ln].shift()}[wQ](e=!1){do;while(this[VRe](this[IQ]())&&this[Ln].length);!e&&!this[Ln].length&&!this[Uu]&&this.emit("drain")}[VRe](e){return this.emit("data",e),this[On]}pipe(e,r){if(this[Yr])return e;this[io]=!1;let n=this[hf];return r=r||{},e===HRe.stdout||e===HRe.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&e.end():(this[zi].push(r.proxyErrors?new $W(this,e,r):new BQ(this,e,r)),this[El]?kI(()=>this[Hy]()):this[Hy]()),e}unpipe(e){let r=this[zi].find(n=>n.dest===e);r&&(this[zi].length===1?(this[On]&&this[Hp]===0&&(this[On]=!1),this[zi]=[]):this[zi].splice(this[zi].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let n=super.on(e,r);if(e==="data")this[io]=!1,this[Hp]++,!this[zi].length&&!this[On]&&this[Hy]();else if(e==="readable"&&this[Fn]!==0)super.emit("readable");else if(kRt(e)&&this[hf])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[TI]){let i=r;this[El]?kI(()=>i.call(this,this[TI])):i.call(this,this[TI])}return n}removeListener(e,r){return this.off(e,r)}off(e,r){let n=super.off(e,r);return e==="data"&&(this[Hp]=this.listeners("data").length,this[Hp]===0&&!this[io]&&!this[zi].length&&(this[On]=!1)),n}removeAllListeners(e){let r=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[Hp]=0,!this[io]&&!this[zi].length&&(this[On]=!1)),r}get emittedEnd(){return this[hf]}[qu](){!this[CQ]&&!this[hf]&&!this[Yr]&&this[Ln].length===0&&this[Uu]&&(this[CQ]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[bQ]&&this.emit("close"),this[CQ]=!1)}emit(e,...r){let n=r[0];if(e!=="error"&&e!=="close"&&e!==Yr&&this[Yr])return!1;if(e==="data")return!this[Ai]&&!n?!1:this[El]?(kI(()=>this[HW](n)),!0):this[HW](n);if(e==="end")return this[$Re]();if(e==="close"){if(this[bQ]=!0,!this[hf]&&!this[Yr])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[TI]=n,super.emit(GW,n);let s=!this[QI]||this.listeners("error").length?super.emit("error",n):!1;return this[qu](),s}else if(e==="resume"){let s=super.emit("resume");return this[qu](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,...r);return this[qu](),i}[HW](e){for(let n of this[zi])n.dest.write(e)===!1&&this.pause();let r=this[io]?!1:super.emit("data",e);return this[qu](),r}[$Re](){return this[hf]?!1:(this[hf]=!0,this.readable=!1,this[El]?(kI(()=>this[zW]()),!0):this[zW]())}[zW](){if(this[Gy]){let r=this[Gy].end();if(r){for(let n of this[zi])n.dest.write(r);this[io]||super.emit("data",r)}}for(let r of this[zi])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[Ai]||(e.dataLength=0);let r=this.promise();return this.on("data",n=>{e.push(n),this[Ai]||(e.dataLength+=n.length)}),await r,e}async concat(){if(this[Ai])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[Ja]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,r)=>{this.on(Yr,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[io]=!1;let e=!1,r=o(async()=>(this.pause(),e=!0,{value:void 0,done:!0}),"stop");return{next:o(()=>{if(e)return r();let i=this.read();if(i!==null)return Promise.resolve({done:!1,value:i});if(this[Uu])return r();let s,a,c=o(f=>{this.off("data",l),this.off("end",u),this.off(Yr,d),r(),a(f)},"onerr"),l=o(f=>{this.off("error",c),this.off("end",u),this.off(Yr,d),this.pause(),s({value:f,done:!!this[Uu]})},"ondata"),u=o(()=>{this.off("error",c),this.off("data",l),this.off(Yr,d),r(),s({done:!0,value:void 0})},"onend"),d=o(()=>c(new Error("stream destroyed")),"ondestroy");return new Promise((f,h)=>{a=h,s=f,this.once(Yr,d),this.once("error",c),this.once("end",u),this.once("data",l)})},"next"),throw:r,return:r,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[io]=!1;let e=!1,r=o(()=>(this.pause(),this.off(GW,r),this.off(Yr,r),this.off("end",r),e=!0,{done:!0,value:void 0}),"stop"),n=o(()=>{if(e)return r();let i=this.read();return i===null?r():{done:!1,value:i}},"next");return this.once("end",r),this.once(GW,r),this.once(Yr,r),{next:n,throw:r,return:r,[Symbol.iterator](){return this}}}destroy(e){if(this[Yr])return e?this.emit("error",e):this.emit(Yr),this;this[Yr]=!0,this[io]=!0,this[Ln].length=0,this[Fn]=0;let r=this;return typeof r.close=="function"&&!this[bQ]&&r.close(),e?this.emit("error",e):this.emit(Yr),this}static get isStream(){return Vi.isStream}};Vi.Minipass=xQ});var JW=g(vQ=>{"use strict";Object.defineProperty(vQ,"__esModule",{value:!0});vQ.Ignore=void 0;var JRe=uf(),MRt=UW(),URt=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",WW=class{static{o(this,"Ignore")}relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:r,nocase:n,noext:i,noglobstar:s,platform:a=URt}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=a,this.mmopts={dot:!0,nobrace:r,nocase:n,noext:i,noglobstar:s,optimizationLevel:2,platform:a,nocomment:!0,nonegate:!0};for(let c of e)this.add(c)}add(e){let r=new JRe.Minimatch(e,this.mmopts);for(let n=0;n{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.Processor=Cl.SubWalks=Cl.MatchRecord=Cl.HasWalkedCache=void 0;var YRe=uf(),NQ=class t{static{o(this,"HasWalkedCache")}store;constructor(e=new Map){this.store=e}copy(){return new t(new Map(this.store))}hasWalked(e,r){return this.store.get(e.fullpath())?.has(r.globString())}storeWalked(e,r){let n=e.fullpath(),i=this.store.get(n);i?i.add(r.globString()):this.store.set(n,new Set([r.globString()]))}};Cl.HasWalkedCache=NQ;var _Q=class{static{o(this,"MatchRecord")}store=new Map;add(e,r,n){let i=(r?2:0)|(n?1:0),s=this.store.get(e);this.store.set(e,s===void 0?i:i&s)}entries(){return[...this.store.entries()].map(([e,r])=>[e,!!(r&2),!!(r&1)])}};Cl.MatchRecord=_Q;var RQ=class{static{o(this,"SubWalks")}store=new Map;add(e,r){if(!e.canReaddir())return;let n=this.store.get(e);n?n.find(i=>i.globString()===r.globString())||n.push(r):this.store.set(e,[r])}get(e){let r=this.store.get(e);if(!r)throw new Error("attempting to walk unknown path");return r}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return[...this.store.keys()].filter(e=>e.canReaddir())}};Cl.SubWalks=RQ;var YW=class t{static{o(this,"Processor")}hasWalkedCache;matches=new _Q;subwalks=new RQ;patterns;follow;dot;opts;constructor(e,r){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=r?r.copy():new NQ}processPatterns(e,r){this.patterns=r;let n=r.map(i=>[e,i]);for(let[i,s]of n){this.hasWalkedCache.storeWalked(i,s);let a=s.root(),c=s.isAbsolute()&&this.opts.absolute!==!1;if(a){i=i.resolve(a==="/"&&this.opts.root!==void 0?this.opts.root:a);let f=s.rest();if(f)s=f;else{this.matches.add(i,!0,!1);continue}}if(i.isENOENT())continue;let l,u,d=!1;for(;typeof(l=s.pattern())=="string"&&(u=s.rest());)i=i.resolve(l),s=u,d=!0;if(l=s.pattern(),u=s.rest(),d){if(this.hasWalkedCache.hasWalked(i,s))continue;this.hasWalkedCache.storeWalked(i,s)}if(typeof l=="string"){let f=l===".."||l===""||l===".";this.matches.add(i.resolve(l),c,f);continue}else if(l===YRe.GLOBSTAR){(!i.isSymbolicLink()||this.follow||s.checkFollowGlobstar())&&this.subwalks.add(i,s);let f=u?.pattern(),h=u?.rest();if(!u||(f===""||f===".")&&!h)this.matches.add(i,c,f===""||f===".");else if(f===".."){let p=i.parent||i;h?this.hasWalkedCache.hasWalked(p,h)||this.subwalks.add(p,h):this.matches.add(p,c,!0)}}else l instanceof RegExp&&this.subwalks.add(i,s)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new t(this.opts,this.hasWalkedCache)}filterEntries(e,r){let n=this.subwalks.get(e),i=this.child();for(let s of r)for(let a of n){let c=a.isAbsolute(),l=a.pattern(),u=a.rest();l===YRe.GLOBSTAR?i.testGlobstar(s,a,u,c):l instanceof RegExp?i.testRegExp(s,l,u,c):i.testString(s,l,u,c)}return i}testGlobstar(e,r,n,i){if((this.dot||!e.name.startsWith("."))&&(r.hasMore()||this.matches.add(e,i,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,r):e.isSymbolicLink()&&(n&&r.checkFollowGlobstar()?this.subwalks.add(e,n):r.markFollowGlobstar()&&this.subwalks.add(e,r)))),n){let s=n.pattern();if(typeof s=="string"&&s!==".."&&s!==""&&s!==".")this.testString(e,s,n.rest(),i);else if(s===".."){let a=e.parent||e;this.subwalks.add(a,n)}else s instanceof RegExp&&this.testRegExp(e,s,n.rest(),i)}}testRegExp(e,r,n,i){r.test(e.name)&&(n?this.subwalks.add(e,n):this.matches.add(e,i,!1))}testString(e,r,n,i){e.isNamed(r)&&(n?this.subwalks.add(e,n):this.matches.add(e,i,!1))}};Cl.Processor=YW});var eTe=g(pf=>{"use strict";Object.defineProperty(pf,"__esModule",{value:!0});pf.GlobStream=pf.GlobWalker=pf.GlobUtil=void 0;var qRt=WRe(),XRe=JW(),ZRe=KRe(),GRt=o((t,e)=>typeof t=="string"?new XRe.Ignore([t],e):Array.isArray(t)?new XRe.Ignore(t,e):t,"makeIgnore"),PI=class{static{o(this,"GlobUtil")}path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#r;#n;signal;maxDepth;includeChildMatches;constructor(e,r,n){if(this.patterns=e,this.path=r,this.opts=n,this.#n=!n.posix&&n.platform==="win32"?"\\":"/",this.includeChildMatches=n.includeChildMatches!==!1,(n.ignore||!this.includeChildMatches)&&(this.#r=GRt(n.ignore??[],n),!this.includeChildMatches&&typeof this.#r.add!="function")){let i="cannot ignore child matches, ignore lacks add() method.";throw new Error(i)}this.maxDepth=n.maxDepth||1/0,n.signal&&(this.signal=n.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#t(e){return this.seen.has(e)||!!this.#r?.ignored?.(e)}#i(e){return!!this.#r?.childrenIgnored?.(e)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let e;for(;!this.paused&&(e=this.#e.shift());)e()}onResume(e){this.signal?.aborted||(this.paused?this.#e.push(e):e())}async matchCheck(e,r){if(r&&this.opts.nodir)return;let n;if(this.opts.realpath){if(n=e.realpathCached()||await e.realpath(),!n)return;e=n}let s=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let a=await s.realpath();a&&(a.isUnknown()||this.opts.stat)&&await a.lstat()}return this.matchCheckTest(s,r)}matchCheckTest(e,r){return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!r||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!e.realpathCached()?.isDirectory())&&!this.#t(e)?e:void 0}matchCheckSync(e,r){if(r&&this.opts.nodir)return;let n;if(this.opts.realpath){if(n=e.realpathCached()||e.realpathSync(),!n)return;e=n}let s=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let a=s.realpathSync();a&&(a?.isUnknown()||this.opts.stat)&&a.lstatSync()}return this.matchCheckTest(s,r)}matchFinish(e,r){if(this.#t(e))return;if(!this.includeChildMatches&&this.#r?.add){let s=`${e.relativePosix()}/**`;this.#r.add(s)}let n=this.opts.absolute===void 0?r:this.opts.absolute;this.seen.add(e);let i=this.opts.mark&&e.isDirectory()?this.#n:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(n){let s=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(s+i)}else{let s=this.opts.posix?e.relativePosix():e.relative(),a=this.opts.dotRelative&&!s.startsWith(".."+this.#n)?"."+this.#n:"";this.matchEmit(s?a+s+i:"."+i)}}async match(e,r,n){let i=await this.matchCheck(e,n);i&&this.matchFinish(i,r)}matchSync(e,r,n){let i=this.matchCheckSync(e,n);i&&this.matchFinish(i,r)}walkCB(e,r,n){this.signal?.aborted&&n(),this.walkCB2(e,r,new ZRe.Processor(this.opts),n)}walkCB2(e,r,n,i){if(this.#i(e))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2(e,r,n,i));return}n.processPatterns(e,r);let s=1,a=o(()=>{--s===0&&i()},"next");for(let[c,l,u]of n.matches.entries())this.#t(c)||(s++,this.match(c,l,u).then(()=>a()));for(let c of n.subwalkTargets()){if(this.maxDepth!==1/0&&c.depth()>=this.maxDepth)continue;s++;let l=c.readdirCached();c.calledReaddir()?this.walkCB3(c,l,n,a):c.readdirCB((u,d)=>this.walkCB3(c,d,n,a),!0)}a()}walkCB3(e,r,n,i){n=n.filterEntries(e,r);let s=1,a=o(()=>{--s===0&&i()},"next");for(let[c,l,u]of n.matches.entries())this.#t(c)||(s++,this.match(c,l,u).then(()=>a()));for(let[c,l]of n.subwalks.entries())s++,this.walkCB2(c,l,n.child(),a);a()}walkCBSync(e,r,n){this.signal?.aborted&&n(),this.walkCB2Sync(e,r,new ZRe.Processor(this.opts),n)}walkCB2Sync(e,r,n,i){if(this.#i(e))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2Sync(e,r,n,i));return}n.processPatterns(e,r);let s=1,a=o(()=>{--s===0&&i()},"next");for(let[c,l,u]of n.matches.entries())this.#t(c)||this.matchSync(c,l,u);for(let c of n.subwalkTargets()){if(this.maxDepth!==1/0&&c.depth()>=this.maxDepth)continue;s++;let l=c.readdirSync();this.walkCB3Sync(c,l,n,a)}a()}walkCB3Sync(e,r,n,i){n=n.filterEntries(e,r);let s=1,a=o(()=>{--s===0&&i()},"next");for(let[c,l,u]of n.matches.entries())this.#t(c)||this.matchSync(c,l,u);for(let[c,l]of n.subwalks.entries())s++,this.walkCB2Sync(c,l,n.child(),a);a()}};pf.GlobUtil=PI;var KW=class extends PI{static{o(this,"GlobWalker")}matches=new Set;constructor(e,r,n){super(e,r,n)}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((e,r)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?r(this.signal.reason):e(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}};pf.GlobWalker=KW;var XW=class extends PI{static{o(this,"GlobStream")}results;constructor(e,r,n){super(e,r,n),this.results=new qRt.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){let e=this.path;return e.isUnknown()?e.lstat().then(()=>{this.walkCB(e,this.patterns,()=>this.results.end())}):this.walkCB(e,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};pf.GlobStream=XW});var e9=g(QQ=>{"use strict";Object.defineProperty(QQ,"__esModule",{value:!0});QQ.Glob=void 0;var HRt=uf(),zRt=require("node:url"),TQ=GRe(),VRt=UW(),DQ=eTe(),$Rt=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",ZW=class{static{o(this,"Glob")}absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(e,r){if(!r)throw new TypeError("glob options required");if(this.withFileTypes=!!r.withFileTypes,this.signal=r.signal,this.follow=!!r.follow,this.dot=!!r.dot,this.dotRelative=!!r.dotRelative,this.nodir=!!r.nodir,this.mark=!!r.mark,r.cwd?(r.cwd instanceof URL||r.cwd.startsWith("file://"))&&(r.cwd=(0,zRt.fileURLToPath)(r.cwd)):this.cwd="",this.cwd=r.cwd||"",this.root=r.root,this.magicalBraces=!!r.magicalBraces,this.nobrace=!!r.nobrace,this.noext=!!r.noext,this.realpath=!!r.realpath,this.absolute=r.absolute,this.includeChildMatches=r.includeChildMatches!==!1,this.noglobstar=!!r.noglobstar,this.matchBase=!!r.matchBase,this.maxDepth=typeof r.maxDepth=="number"?r.maxDepth:1/0,this.stat=!!r.stat,this.ignore=r.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof e=="string"&&(e=[e]),this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(e=e.map(l=>l.replace(/\\/g,"/"))),this.matchBase){if(r.noglobstar)throw new TypeError("base matching requires globstar");e=e.map(l=>l.includes("/")?l:`./**/${l}`)}if(this.pattern=e,this.platform=r.platform||$Rt,this.opts={...r,platform:this.platform},r.scurry){if(this.scurry=r.scurry,r.nocase!==void 0&&r.nocase!==r.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let l=r.platform==="win32"?TQ.PathScurryWin32:r.platform==="darwin"?TQ.PathScurryDarwin:r.platform?TQ.PathScurryPosix:TQ.PathScurry;this.scurry=new l(this.cwd,{nocase:r.nocase,fs:r.fs})}this.nocase=this.scurry.nocase;let n=this.platform==="darwin"||this.platform==="win32",i={...r,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:n,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},s=this.pattern.map(l=>new HRt.Minimatch(l,i)),[a,c]=s.reduce((l,u)=>(l[0].push(...u.set),l[1].push(...u.globParts),l),[[],[]]);this.patterns=a.map((l,u)=>{let d=c[u];if(!d)throw new Error("invalid pattern object");return new VRt.Pattern(l,d,0,this.platform)})}async walk(){return[...await new DQ.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new DQ.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new DQ.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new DQ.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};QQ.Glob=ZW});var t9=g(kQ=>{"use strict";Object.defineProperty(kQ,"__esModule",{value:!0});kQ.hasMagic=void 0;var jRt=uf(),WRt=o((t,e={})=>{Array.isArray(t)||(t=[t]);for(let r of t)if(new jRt.Minimatch(r,e).hasMagic())return!0;return!1},"hasMagic");kQ.hasMagic=WRt});var iTe=g(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.glob=mt.sync=mt.iterate=mt.iterateSync=mt.stream=mt.streamSync=mt.Ignore=mt.hasMagic=mt.Glob=mt.unescape=mt.escape=void 0;mt.globStreamSync=OI;mt.globStream=r9;mt.globSync=n9;mt.globIterateSync=LI;mt.globIterate=i9;var tTe=uf(),zp=e9(),JRt=t9(),nTe=uf();Object.defineProperty(mt,"escape",{enumerable:!0,get:o(function(){return nTe.escape},"get")});Object.defineProperty(mt,"unescape",{enumerable:!0,get:o(function(){return nTe.unescape},"get")});var YRt=e9();Object.defineProperty(mt,"Glob",{enumerable:!0,get:o(function(){return YRt.Glob},"get")});var KRt=t9();Object.defineProperty(mt,"hasMagic",{enumerable:!0,get:o(function(){return KRt.hasMagic},"get")});var XRt=JW();Object.defineProperty(mt,"Ignore",{enumerable:!0,get:o(function(){return XRt.Ignore},"get")});function OI(t,e={}){return new zp.Glob(t,e).streamSync()}o(OI,"globStreamSync");function r9(t,e={}){return new zp.Glob(t,e).stream()}o(r9,"globStream");function n9(t,e={}){return new zp.Glob(t,e).walkSync()}o(n9,"globSync");async function rTe(t,e={}){return new zp.Glob(t,e).walk()}o(rTe,"glob_");function LI(t,e={}){return new zp.Glob(t,e).iterateSync()}o(LI,"globIterateSync");function i9(t,e={}){return new zp.Glob(t,e).iterate()}o(i9,"globIterate");mt.streamSync=OI;mt.stream=Object.assign(r9,{sync:OI});mt.iterateSync=LI;mt.iterate=Object.assign(i9,{sync:LI});mt.sync=Object.assign(n9,{stream:OI,iterate:LI});mt.glob=Object.assign(rTe,{glob:rTe,globSync:n9,sync:mt.sync,globStream:r9,stream:mt.stream,globStreamSync:OI,streamSync:mt.streamSync,globIterate:i9,iterate:mt.iterate,globIterateSync:LI,iterateSync:mt.iterateSync,Glob:zp.Glob,hasMagic:JRt.hasMagic,escape:tTe.escape,unescape:tTe.unescape});mt.glob.glob=mt.glob});var cTe=g((rvr,aTe)=>{var oTe=S8(),zy=require("path"),s9=SNe(),ZRt=M_e(),eTt=Y_e(),tTt=nRe(),rTt=iTe(),Vp=aTe.exports={},sTe=/[\/\\]/g,nTt=o(function(t,e){var r=[];return s9(t).forEach(function(n){var i=n.indexOf("!")===0;i&&(n=n.slice(1));var s=e(n);i?r=ZRt(r,s):r=eTt(r,s)}),r},"processPatterns");Vp.exists=function(){var t=zy.join.apply(zy,arguments);return oTe.existsSync(t)};Vp.expand=function(...t){var e=tTt(t[0])?t.shift():{},r=Array.isArray(t[0])?t[0]:t;if(r.length===0)return[];var n=nTt(r,function(i){return rTt.sync(i,e)});return e.filter&&(n=n.filter(function(i){i=zy.join(e.cwd||"",i);try{return typeof e.filter=="function"?e.filter(i):oTe.statSync(i)[e.filter]()}catch{return!1}})),n};Vp.expandMapping=function(t,e,r){r=Object.assign({rename:o(function(s,a){return zy.join(s||"",a)},"rename")},r);var n=[],i={};return Vp.expand(r,t).forEach(function(s){var a=s;r.flatten&&(a=zy.basename(a)),r.ext&&(a=a.replace(/(\.[^\/]*)?$/,r.ext));var c=r.rename(e,a,r);r.cwd&&(s=zy.join(r.cwd,s)),c=c.replace(sTe,"/"),s=s.replace(sTe,"/"),i[c]?i[c].src.push(s):(n.push({src:[s],dest:c}),i[c]=n[n.length-1])}),n};Vp.normalizeFilesArray=function(t){var e=[];return t.forEach(function(r){var n;("src"in r||"dest"in r)&&e.push(r)}),e.length===0?[]:(e=_(e).chain().forEach(function(r){!("src"in r)||!r.src||(Array.isArray(r.src)?r.src=s9(r.src):r.src=[r.src])}).map(function(r){var n=Object.assign({},r);if(delete n.src,delete n.dest,r.expand)return Vp.expandMapping(r.src,r.dest,n).map(function(s){var a=Object.assign({},r);return a.orig=Object.assign({},r),a.src=s.src,a.dest=s.dest,["expand","cwd","flatten","rename","ext"].forEach(function(c){delete a[c]}),a});var i=Object.assign({},r);return i.orig=Object.assign({},r),"src"in i&&Object.defineProperty(i,"src",{enumerable:!0,get:o(function s(){var a;return"result"in s||(a=r.src,a=Array.isArray(a)?s9(a):[a],s.result=Vp.expand(n,a)),s.result},"fn")}),"dest"in i&&(i.dest=r.dest),i}).flatten().value(),e)}});var Vy=g((svr,dTe)=>{var o9=S8(),lTe=require("path"),iTt=W2(),sTt=kIe(),uTe=W8(),oTt=pBe(),ivr=require("stream").Stream,aTt=Mp().PassThrough,so=dTe.exports={};so.file=cTe();so.collectStream=function(t,e){var r=[],n=0;t.on("error",e),t.on("data",function(i){r.push(i),n+=i.length}),t.on("end",function(){var i=Buffer.alloc(n),s=0;r.forEach(function(a){a.copy(i,s),s+=a.length}),e(null,i)})};so.dateify=function(t){return t=t||new Date,t instanceof Date?t=t:typeof t=="string"?t=new Date(t):t=new Date,t};so.defaults=function(t,e,r){var n=arguments;return n[0]=n[0]||{},oTt(...n)};so.isStream=function(t){return iTt(t)};so.lazyReadStream=function(t){return new sTt.Readable(function(){return o9.createReadStream(t)})};so.normalizeInputSource=function(t){return t===null?Buffer.alloc(0):typeof t=="string"?Buffer.from(t):so.isStream(t)?t.pipe(new aTt):t};so.sanitizePath=function(t){return uTe(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};so.trailingSlashIt=function(t){return t.slice(-1)!=="/"?t+"/":t};so.unixifyPath=function(t){return uTe(t,!1).replace(/^\w+:/,"")};so.walkdir=function(t,e,r){var n=[];typeof e=="function"&&(r=e,e=t),o9.readdir(t,function(i,s){var a=0,c,l;if(i)return r(i);o((function u(){if(c=s[a++],!c)return r(null,n);l=lTe.join(t,c),o9.stat(l,function(d,f){n.push({path:l,relative:lTe.relative(e,l).replace(/\\/g,"/"),stats:f}),f&&f.isDirectory()?so.walkdir(l,e,function(h,p){if(h)return r(h);p.forEach(function(m){n.push(m)}),u()}):u()})}),"next")()})}});var ATe=g((hTe,pTe)=>{var cTt=require("util"),lTt={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function fTe(t,e){Error.captureStackTrace(this,this.constructor),this.message=lTt[t]||t,this.code=t,this.data=e}o(fTe,"ArchiverError");cTt.inherits(fTe,Error);hTe=pTe.exports=fTe});var CTe=g((cvr,ETe)=>{var l9=require("fs"),gTe=Swe(),mTe=xwe(),a9=require("path"),bl=Vy(),uTt=require("util").inherits,kr=ATe(),yTe=Mp().Transform,c9=process.platform==="win32",_t=o(function(t,e){if(!(this instanceof _t))return new _t(t,e);typeof t!="string"&&(e=t,t="zip"),e=this.options=bl.defaults(e,{highWaterMark:1024*1024,statConcurrency:4}),yTe.call(this,e),this._format=!1,this._module=!1,this._pending=0,this._pointer=0,this._entriesCount=0,this._entriesProcessedCount=0,this._fsEntriesTotalBytes=0,this._fsEntriesProcessedBytes=0,this._queue=mTe.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=mTe.queue(this._onStatQueueTask.bind(this),e.statConcurrency),this._statQueue.drain(this._onQueueDrain.bind(this)),this._state={aborted:!1,finalize:!1,finalizing:!1,finalized:!1,modulePiped:!1},this._streams=[]},"Archiver");uTt(_t,yTe);_t.prototype._abort=function(){this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle()&&this._shutdown()};_t.prototype._append=function(t,e){e=e||{};var r={source:null,filepath:t};e.name||(e.name=t),e.sourcePath=t,r.data=e,this._entriesCount++,e.stats&&e.stats instanceof l9.Stats?(r=this._updateQueueTaskWithStats(r,e.stats),r&&(e.stats.size&&(this._fsEntriesTotalBytes+=e.stats.size),this._queue.push(r))):this._statQueue.push(r)};_t.prototype._finalize=function(){this._state.finalizing||this._state.finalized||this._state.aborted||(this._state.finalizing=!0,this._moduleFinalize(),this._state.finalizing=!1,this._state.finalized=!0)};_t.prototype._maybeFinalize=function(){return this._state.finalizing||this._state.finalized||this._state.aborted?!1:this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()?(this._finalize(),!0):!1};_t.prototype._moduleAppend=function(t,e,r){if(this._state.aborted){r();return}this._module.append(t,e,function(n){if(this._task=null,this._state.aborted){this._shutdown();return}if(n){this.emit("error",n),setImmediate(r);return}this.emit("entry",e),this._entriesProcessedCount++,e.stats&&e.stats.size&&(this._fsEntriesProcessedBytes+=e.stats.size),this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}}),setImmediate(r)}.bind(this))};_t.prototype._moduleFinalize=function(){typeof this._module.finalize=="function"?this._module.finalize():typeof this._module.end=="function"?this._module.end():this.emit("error",new kr("NOENDMETHOD"))};_t.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0};_t.prototype._moduleSupports=function(t){return!this._module.supports||!this._module.supports[t]?!1:this._module.supports[t]};_t.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1};_t.prototype._normalizeEntryData=function(t,e){t=bl.defaults(t,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:!1}),e&&t.stats===!1&&(t.stats=e);var r=t.type==="directory";return t.name&&(typeof t.prefix=="string"&&t.prefix!==""&&(t.name=t.prefix+"/"+t.name,t.prefix=null),t.name=bl.sanitizePath(t.name),t.type!=="symlink"&&t.name.slice(-1)==="/"?(r=!0,t.type="directory"):r&&(t.name+="/")),typeof t.mode=="number"?c9?t.mode&=511:t.mode&=4095:t.stats&&t.mode===null?(c9?t.mode=t.stats.mode&511:t.mode=t.stats.mode&4095,c9&&r&&(t.mode=493)):t.mode===null&&(t.mode=r?493:420),t.stats&&t.date===null?t.date=t.stats.mtime:t.date=bl.dateify(t.date),t};_t.prototype._onModuleError=function(t){this.emit("error",t)};_t.prototype._onQueueDrain=function(){this._state.finalizing||this._state.finalized||this._state.aborted||this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize()};_t.prototype._onQueueTask=function(t,e){var r=o(()=>{t.data.callback&&t.data.callback(),e()},"fullCallback");if(this._state.finalizing||this._state.finalized||this._state.aborted){r();return}this._task=t,this._moduleAppend(t.source,t.data,r)};_t.prototype._onStatQueueTask=function(t,e){if(this._state.finalizing||this._state.finalized||this._state.aborted){e();return}l9.lstat(t.filepath,function(r,n){if(this._state.aborted){setImmediate(e);return}if(r){this._entriesCount--,this.emit("warning",r),setImmediate(e);return}t=this._updateQueueTaskWithStats(t,n),t&&(n.size&&(this._fsEntriesTotalBytes+=n.size),this._queue.push(t)),setImmediate(e)}.bind(this))};_t.prototype._shutdown=function(){this._moduleUnpipe(),this.end()};_t.prototype._transform=function(t,e,r){t&&(this._pointer+=t.length),r(null,t)};_t.prototype._updateQueueTaskWithStats=function(t,e){if(e.isFile())t.data.type="file",t.data.sourceType="stream",t.source=bl.lazyReadStream(t.filepath);else if(e.isDirectory()&&this._moduleSupports("directory"))t.data.name=bl.trailingSlashIt(t.data.name),t.data.type="directory",t.data.sourcePath=bl.trailingSlashIt(t.filepath),t.data.sourceType="buffer",t.source=Buffer.concat([]);else if(e.isSymbolicLink()&&this._moduleSupports("symlink")){var r=l9.readlinkSync(t.filepath),n=a9.dirname(t.filepath);t.data.type="symlink",t.data.linkname=a9.relative(n,a9.resolve(n,r)),t.data.sourceType="buffer",t.source=Buffer.concat([])}else return e.isDirectory()?this.emit("warning",new kr("DIRECTORYNOTSUPPORTED",t.data)):e.isSymbolicLink()?this.emit("warning",new kr("SYMLINKNOTSUPPORTED",t.data)):this.emit("warning",new kr("ENTRYNOTSUPPORTED",t.data)),null;return t.data=this._normalizeEntryData(t.data,e),t};_t.prototype.abort=function(){return this._state.aborted||this._state.finalized?this:(this._abort(),this)};_t.prototype.append=function(t,e){if(this._state.finalize||this._state.aborted)return this.emit("error",new kr("QUEUECLOSED")),this;if(e=this._normalizeEntryData(e),typeof e.name!="string"||e.name.length===0)return this.emit("error",new kr("ENTRYNAMEREQUIRED")),this;if(e.type==="directory"&&!this._moduleSupports("directory"))return this.emit("error",new kr("DIRECTORYNOTSUPPORTED",{name:e.name})),this;if(t=bl.normalizeInputSource(t),Buffer.isBuffer(t))e.sourceType="buffer";else if(bl.isStream(t))e.sourceType="stream";else return this.emit("error",new kr("INPUTSTEAMBUFFERREQUIRED",{name:e.name})),this;return this._entriesCount++,this._queue.push({data:e,source:t}),this};_t.prototype.directory=function(t,e,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new kr("QUEUECLOSED")),this;if(typeof t!="string"||t.length===0)return this.emit("error",new kr("DIRECTORYDIRPATHREQUIRED")),this;this._pending++,e===!1?e="":typeof e!="string"&&(e=t);var n=!1;typeof r=="function"?(n=r,r={}):typeof r!="object"&&(r={});var i={stat:!0,dot:!0};function s(){this._pending--,this._maybeFinalize()}o(s,"onGlobEnd");function a(u){this.emit("error",u)}o(a,"onGlobError");function c(u){l.pause();var d=!1,f=Object.assign({},r);f.name=u.relative,f.prefix=e,f.stats=u.stat,f.callback=l.resume.bind(l);try{if(n){if(f=n(f),f===!1)d=!0;else if(typeof f!="object")throw new kr("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:t})}}catch(h){this.emit("error",h);return}if(d){l.resume();return}this._append(u.absolute,f)}o(c,"onGlobMatch");var l=gTe(t,i);return l.on("error",a.bind(this)),l.on("match",c.bind(this)),l.on("end",s.bind(this)),this};_t.prototype.file=function(t,e){return this._state.finalize||this._state.aborted?(this.emit("error",new kr("QUEUECLOSED")),this):typeof t!="string"||t.length===0?(this.emit("error",new kr("FILEFILEPATHREQUIRED")),this):(this._append(t,e),this)};_t.prototype.glob=function(t,e,r){this._pending++,e=bl.defaults(e,{stat:!0,pattern:t});function n(){this._pending--,this._maybeFinalize()}o(n,"onGlobEnd");function i(c){this.emit("error",c)}o(i,"onGlobError");function s(c){a.pause();var l=Object.assign({},r);l.callback=a.resume.bind(a),l.stats=c.stat,l.name=c.relative,this._append(c.absolute,l)}o(s,"onGlobMatch");var a=gTe(e.cwd||".",e);return a.on("error",i.bind(this)),a.on("match",s.bind(this)),a.on("end",n.bind(this)),this};_t.prototype.finalize=function(){if(this._state.aborted){var t=new kr("ABORTED");return this.emit("error",t),Promise.reject(t)}if(this._state.finalize){var e=new kr("FINALIZING");return this.emit("error",e),Promise.reject(e)}this._state.finalize=!0,this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize();var r=this;return new Promise(function(n,i){var s;r._module.on("end",function(){s||n()}),r._module.on("error",function(a){s=!0,i(a)})})};_t.prototype.setFormat=function(t){return this._format?(this.emit("error",new kr("FORMATSET")),this):(this._format=t,this)};_t.prototype.setModule=function(t){return this._state.aborted?(this.emit("error",new kr("ABORTED")),this):this._state.module?(this.emit("error",new kr("MODULESET")),this):(this._module=t,this._modulePipe(),this)};_t.prototype.symlink=function(t,e,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new kr("QUEUECLOSED")),this;if(typeof t!="string"||t.length===0)return this.emit("error",new kr("SYMLINKFILEPATHREQUIRED")),this;if(typeof e!="string"||e.length===0)return this.emit("error",new kr("SYMLINKTARGETREQUIRED",{filepath:t})),this;if(!this._moduleSupports("symlink"))return this.emit("error",new kr("SYMLINKNOTSUPPORTED",{filepath:t})),this;var n={};return n.type="symlink",n.name=t.replace(/\\/g,"/"),n.linkname=e.replace(/\\/g,"/"),n.sourceType="buffer",typeof r=="number"&&(n.mode=r),this._entriesCount++,this._queue.push({data:n,source:Buffer.concat([])}),this};_t.prototype.pointer=function(){return this._pointer};_t.prototype.use=function(t){return this._streams.push(t),this};ETe.exports=_t});var OQ=g((uvr,bTe)=>{var PQ=bTe.exports=function(){};PQ.prototype.getName=function(){};PQ.prototype.getSize=function(){};PQ.prototype.getLastModifiedDate=function(){};PQ.prototype.isDirectory=function(){}});var LQ=g((dvr,wTe)=>{var ia=wTe.exports={};ia.dateToDos=function(t,e){e=e||!1;var r=e?t.getFullYear():t.getUTCFullYear();if(r<1980)return 2162688;if(r>=2044)return 2141175677;var n={year:r,month:e?t.getMonth():t.getUTCMonth(),date:e?t.getDate():t.getUTCDate(),hours:e?t.getHours():t.getUTCHours(),minutes:e?t.getMinutes():t.getUTCMinutes(),seconds:e?t.getSeconds():t.getUTCSeconds()};return n.year-1980<<25|n.month+1<<21|n.date<<16|n.hours<<11|n.minutes<<5|n.seconds/2};ia.dosToDate=function(t){return new Date((t>>25&127)+1980,(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(t&31)<<1)};ia.fromDosTime=function(t){return ia.dosToDate(t.readUInt32LE(0))};ia.getEightBytes=function(t){var e=Buffer.alloc(8);return e.writeUInt32LE(t%4294967296,0),e.writeUInt32LE(t/4294967296|0,4),e};ia.getShortBytes=function(t){var e=Buffer.alloc(2);return e.writeUInt16LE((t&65535)>>>0,0),e};ia.getShortBytesValue=function(t,e){return t.readUInt16LE(e)};ia.getLongBytes=function(t){var e=Buffer.alloc(4);return e.writeUInt32LE((t&4294967295)>>>0,0),e};ia.getLongBytesValue=function(t,e){return t.readUInt32LE(e)};ia.toDosTime=function(t){return ia.getLongBytes(ia.dateToDos(t))}});var u9=g((fvr,NTe)=>{var ITe=LQ(),STe=8,BTe=1,dTt=4,fTt=2,xTe=64,vTe=2048,Zn=NTe.exports=function(){return this instanceof Zn?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new Zn};Zn.prototype.encode=function(){return ITe.getShortBytes((this.descriptor?STe:0)|(this.utf8?vTe:0)|(this.encryption?BTe:0)|(this.strongEncryption?xTe:0))};Zn.prototype.parse=function(t,e){var r=ITe.getShortBytesValue(t,e),n=new Zn;return n.useDataDescriptor((r&STe)!==0),n.useUTF8ForNames((r&vTe)!==0),n.useStrongEncryption((r&xTe)!==0),n.useEncryption((r&BTe)!==0),n.setSlidingDictionarySize((r&fTt)!==0?8192:4096),n.setNumberOfShannonFanoTrees((r&dTt)!==0?3:2),n};Zn.prototype.setNumberOfShannonFanoTrees=function(t){this.numberOfShannonFanoTrees=t};Zn.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};Zn.prototype.setSlidingDictionarySize=function(t){this.slidingDictionarySize=t};Zn.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};Zn.prototype.useDataDescriptor=function(t){this.descriptor=t};Zn.prototype.usesDataDescriptor=function(){return this.descriptor};Zn.prototype.useEncryption=function(t){this.encryption=t};Zn.prototype.usesEncryption=function(){return this.encryption};Zn.prototype.useStrongEncryption=function(t){this.strongEncryption=t};Zn.prototype.usesStrongEncryption=function(){return this.strongEncryption};Zn.prototype.useUTF8ForNames=function(t){this.utf8=t};Zn.prototype.usesUTF8ForNames=function(){return this.utf8}});var RTe=g((hvr,_Te)=>{_Te.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}});var d9=g((pvr,TTe)=>{TTe.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from(Array(2)),LONG:4,LONG_ZERO:Buffer.from(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}});var f9=g((Avr,OTe)=>{var hTt=require("util").inherits,pTt=W8(),QTe=OQ(),kTe=u9(),DTe=RTe(),$i=d9(),PTe=LQ(),ot=OTe.exports=function(t){if(!(this instanceof ot))return new ot(t);QTe.call(this),this.platform=$i.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new kTe,this.crc=0,this.time=-1,this.minver=$i.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,t&&this.setName(t)};hTt(ot,QTe);ot.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};ot.prototype.getComment=function(){return this.comment!==null?this.comment:""};ot.prototype.getCompressedSize=function(){return this.csize};ot.prototype.getCrc=function(){return this.crc};ot.prototype.getExternalAttributes=function(){return this.exattr};ot.prototype.getExtra=function(){return this.extra!==null?this.extra:$i.EMPTY};ot.prototype.getGeneralPurposeBit=function(){return this.gpb};ot.prototype.getInternalAttributes=function(){return this.inattr};ot.prototype.getLastModifiedDate=function(){return this.getTime()};ot.prototype.getLocalFileDataExtra=function(){return this.getExtra()};ot.prototype.getMethod=function(){return this.method};ot.prototype.getName=function(){return this.name};ot.prototype.getPlatform=function(){return this.platform};ot.prototype.getSize=function(){return this.size};ot.prototype.getTime=function(){return this.time!==-1?PTe.dosToDate(this.time):-1};ot.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};ot.prototype.getUnixMode=function(){return this.platform!==$i.PLATFORM_UNIX?0:this.getExternalAttributes()>>$i.SHORT_SHIFT&$i.SHORT_MASK};ot.prototype.getVersionNeededToExtract=function(){return this.minver};ot.prototype.setComment=function(t){Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=t};ot.prototype.setCompressedSize=function(t){if(t<0)throw new Error("invalid entry compressed size");this.csize=t};ot.prototype.setCrc=function(t){if(t<0)throw new Error("invalid entry crc32");this.crc=t};ot.prototype.setExternalAttributes=function(t){this.exattr=t>>>0};ot.prototype.setExtra=function(t){this.extra=t};ot.prototype.setGeneralPurposeBit=function(t){if(!(t instanceof kTe))throw new Error("invalid entry GeneralPurposeBit");this.gpb=t};ot.prototype.setInternalAttributes=function(t){this.inattr=t};ot.prototype.setMethod=function(t){if(t<0)throw new Error("invalid entry compression method");this.method=t};ot.prototype.setName=function(t,e=!1){t=pTt(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),e&&(t=`/${t}`),Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=t};ot.prototype.setPlatform=function(t){this.platform=t};ot.prototype.setSize=function(t){if(t<0)throw new Error("invalid entry size");this.size=t};ot.prototype.setTime=function(t,e){if(!(t instanceof Date))throw new Error("invalid entry time");this.time=PTe.dateToDos(t,e)};ot.prototype.setUnixMode=function(t){t|=this.isDirectory()?$i.S_IFDIR:$i.S_IFREG;var e=0;e|=t<<$i.SHORT_SHIFT|(this.isDirectory()?$i.S_DOS_D:$i.S_DOS_A),this.setExternalAttributes(e),this.mode=t&$i.MODE_MASK,this.platform=$i.PLATFORM_UNIX};ot.prototype.setVersionNeededToExtract=function(t){this.minver=t};ot.prototype.isDirectory=function(){return this.getName().slice(-1)==="/"};ot.prototype.isUnixSymlink=function(){return(this.getUnixMode()&DTe.FILE_TYPE_FLAG)===DTe.LINK_FLAG};ot.prototype.isZip64=function(){return this.csize>$i.ZIP64_MAGIC||this.size>$i.ZIP64_MAGIC}});var h9=g((gvr,LTe)=>{var mvr=require("stream").Stream,ATt=Mp().PassThrough,mTt=W2(),gTt=LTe.exports={};gTt.normalizeInputSource=function(t){if(t===null)return Buffer.alloc(0);if(typeof t=="string")return Buffer.from(t);if(mTt(t)&&!t._readableState){var e=new ATt;return t.pipe(e),e}return t}});var A9=g((yvr,FTe)=>{var yTt=require("util").inherits,ETt=W2(),p9=Mp().Transform,CTt=OQ(),bTt=h9(),oo=FTe.exports=function(t){if(!(this instanceof oo))return new oo(t);p9.call(this,t),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};yTt(oo,p9);oo.prototype._appendBuffer=function(t,e,r){};oo.prototype._appendStream=function(t,e,r){};oo.prototype._emitErrorCallback=function(t){t&&this.emit("error",t)};oo.prototype._finish=function(t){};oo.prototype._normalizeEntry=function(t){};oo.prototype._transform=function(t,e,r){r(null,t)};oo.prototype.entry=function(t,e,r){if(e=e||null,typeof r!="function"&&(r=this._emitErrorCallback.bind(this)),!(t instanceof CTt)){r(new Error("not a valid instance of ArchiveEntry"));return}if(this._archive.finish||this._archive.finished){r(new Error("unacceptable entry after finish"));return}if(this._archive.processing){r(new Error("already processing an entry"));return}if(this._archive.processing=!0,this._normalizeEntry(t),this._entry=t,e=bTt.normalizeInputSource(e),Buffer.isBuffer(e))this._appendBuffer(t,e,r);else if(ETt(e))this._appendStream(t,e,r);else{this._archive.processing=!1,r(new Error("input source must be valid Stream or Buffer instance"));return}return this};oo.prototype.finish=function(){if(this._archive.processing){this._archive.finish=!0;return}this._finish()};oo.prototype.getBytesWritten=function(){return this.offset};oo.prototype.write=function(t,e){return t&&(this.offset+=t.length),p9.prototype.write.call(this,t,e)}});var FQ=g(m9=>{var MTe;(function(t){typeof DO_NOT_EXPORT_CRC>"u"?typeof m9=="object"?t(m9):typeof define=="function"&&define.amd?define(function(){var e={};return t(e),e}):t(MTe={}):t(MTe={})})(function(t){t.version="1.2.2";function e(){for(var N=0,$=new Array(256),Q=0;Q!=256;++Q)N=Q,N=N&1?-306674912^N>>>1:N>>>1,N=N&1?-306674912^N>>>1:N>>>1,N=N&1?-306674912^N>>>1:N>>>1,N=N&1?-306674912^N>>>1:N>>>1,N=N&1?-306674912^N>>>1:N>>>1,N=N&1?-306674912^N>>>1:N>>>1,N=N&1?-306674912^N>>>1:N>>>1,N=N&1?-306674912^N>>>1:N>>>1,$[Q]=N;return typeof Int32Array<"u"?new Int32Array($):$}o(e,"signed_crc_table");var r=e();function n(N){var $=0,Q=0,H=0,V=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(H=0;H!=256;++H)V[H]=N[H];for(H=0;H!=256;++H)for(Q=N[H],$=256+H;$<4096;$+=256)Q=V[$]=Q>>>8^N[Q&255];var W=[];for(H=1;H!=16;++H)W[H-1]=typeof Int32Array<"u"?V.subarray(H*256,H*256+256):V.slice(H*256,H*256+256);return W}o(n,"slice_by_16_tables");var i=n(r),s=i[0],a=i[1],c=i[2],l=i[3],u=i[4],d=i[5],f=i[6],h=i[7],p=i[8],m=i[9],A=i[10],E=i[11],y=i[12],C=i[13],w=i[14];function B(N,$){for(var Q=$^-1,H=0,V=N.length;H>>8^r[(Q^N.charCodeAt(H++))&255];return~Q}o(B,"crc32_bstr");function P(N,$){for(var Q=$^-1,H=N.length-15,V=0;V>8&255]^y[N[V++]^Q>>16&255]^E[N[V++]^Q>>>24]^A[N[V++]]^m[N[V++]]^p[N[V++]]^h[N[V++]]^f[N[V++]]^d[N[V++]]^u[N[V++]]^l[N[V++]]^c[N[V++]]^a[N[V++]]^s[N[V++]]^r[N[V++]];for(H+=15;V>>8^r[(Q^N[V++])&255];return~Q}o(P,"crc32_buf");function U(N,$){for(var Q=$^-1,H=0,V=N.length,W=0,ue=0;H>>8^r[(Q^W)&255]:W<2048?(Q=Q>>>8^r[(Q^(192|W>>6&31))&255],Q=Q>>>8^r[(Q^(128|W&63))&255]):W>=55296&&W<57344?(W=(W&1023)+64,ue=N.charCodeAt(H++)&1023,Q=Q>>>8^r[(Q^(240|W>>8&7))&255],Q=Q>>>8^r[(Q^(128|W>>2&63))&255],Q=Q>>>8^r[(Q^(128|ue>>6&15|(W&3)<<4))&255],Q=Q>>>8^r[(Q^(128|ue&63))&255]):(Q=Q>>>8^r[(Q^(224|W>>12&15))&255],Q=Q>>>8^r[(Q^(128|W>>6&63))&255],Q=Q>>>8^r[(Q^(128|W&63))&255]);return~Q}o(U,"crc32_str"),t.table=r,t.bstr=B,t.buf=P,t.str=U})});var qTe=g((bvr,UTe)=>{"use strict";var{Transform:wTt}=Mp(),ITt=FQ(),g9=class extends wTt{static{o(this,"CRC32Stream")}constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform(e,r,n){e&&(this.checksum=ITt.buf(e,this.checksum)>>>0,this.rawSize+=e.length),n(null,e)}digest(e){let r=Buffer.allocUnsafe(4);return r.writeUInt32BE(this.checksum>>>0,0),e?r.toString(e):r}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}};UTe.exports=g9});var HTe=g((Ivr,GTe)=>{"use strict";var{DeflateRaw:STt}=require("zlib"),BTt=FQ(),y9=class extends STt{static{o(this,"DeflateCRC32Stream")}constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0,this.compressedSize=0}push(e,r){return e&&(this.compressedSize+=e.length),super.push(e,r)}_transform(e,r,n){e&&(this.checksum=BTt.buf(e,this.checksum)>>>0,this.rawSize+=e.length),super._transform(e,r,n)}digest(e){let r=Buffer.allocUnsafe(4);return r.writeUInt32BE(this.checksum>>>0,0),e?r.toString(e):r}hex(){return this.digest("hex").toUpperCase()}size(e=!1){return e?this.compressedSize:this.rawSize}};GTe.exports=y9});var E9=g((Bvr,zTe)=>{"use strict";zTe.exports={CRC32Stream:qTe(),DeflateCRC32Stream:HTe()}});var jTe=g((_vr,$Te)=>{var xTt=require("util").inherits,vTt=FQ(),{CRC32Stream:NTt}=E9(),{DeflateCRC32Stream:_Tt}=E9(),VTe=A9(),xvr=f9(),vvr=u9(),tt=d9(),Nvr=h9(),Qe=LQ(),Mn=$Te.exports=function(t){if(!(this instanceof Mn))return new Mn(t);t=this.options=this._defaults(t),VTe.call(this,t),this._entry=null,this._entries=[],this._archive={centralLength:0,centralOffset:0,comment:"",finish:!1,finished:!1,processing:!1,forceZip64:t.forceZip64,forceLocalTime:t.forceLocalTime}};xTt(Mn,VTe);Mn.prototype._afterAppend=function(t){this._entries.push(t),t.getGeneralPurposeBit().usesDataDescriptor()&&this._writeDataDescriptor(t),this._archive.processing=!1,this._entry=null,this._archive.finish&&!this._archive.finished&&this._finish()};Mn.prototype._appendBuffer=function(t,e,r){e.length===0&&t.setMethod(tt.METHOD_STORED);var n=t.getMethod();if(n===tt.METHOD_STORED&&(t.setSize(e.length),t.setCompressedSize(e.length),t.setCrc(vTt.buf(e)>>>0)),this._writeLocalFileHeader(t),n===tt.METHOD_STORED){this.write(e),this._afterAppend(t),r(null,t);return}else if(n===tt.METHOD_DEFLATED){this._smartStream(t,r).end(e);return}else{r(new Error("compression method "+n+" not implemented"));return}};Mn.prototype._appendStream=function(t,e,r){t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(tt.MIN_VERSION_DATA_DESCRIPTOR),this._writeLocalFileHeader(t);var n=this._smartStream(t,r);e.once("error",function(i){n.emit("error",i),n.end()}),e.pipe(n)};Mn.prototype._defaults=function(t){return typeof t!="object"&&(t={}),typeof t.zlib!="object"&&(t.zlib={}),typeof t.zlib.level!="number"&&(t.zlib.level=tt.ZLIB_BEST_SPEED),t.forceZip64=!!t.forceZip64,t.forceLocalTime=!!t.forceLocalTime,t};Mn.prototype._finish=function(){this._archive.centralOffset=this.offset,this._entries.forEach(function(t){this._writeCentralFileHeader(t)}.bind(this)),this._archive.centralLength=this.offset-this._archive.centralOffset,this.isZip64()&&this._writeCentralDirectoryZip64(),this._writeCentralDirectoryEnd(),this._archive.processing=!1,this._archive.finish=!0,this._archive.finished=!0,this.end()};Mn.prototype._normalizeEntry=function(t){t.getMethod()===-1&&t.setMethod(tt.METHOD_DEFLATED),t.getMethod()===tt.METHOD_DEFLATED&&(t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(tt.MIN_VERSION_DATA_DESCRIPTOR)),t.getTime()===-1&&t.setTime(new Date,this._archive.forceLocalTime),t._offsets={file:0,data:0,contents:0}};Mn.prototype._smartStream=function(t,e){var r=t.getMethod()===tt.METHOD_DEFLATED,n=r?new _Tt(this.options.zlib):new NTt,i=null;function s(){var a=n.digest().readUInt32BE(0);t.setCrc(a),t.setSize(n.size()),t.setCompressedSize(n.size(!0)),this._afterAppend(t),e(i,t)}return o(s,"handleStuff"),n.once("end",s.bind(this)),n.once("error",function(a){i=a}),n.pipe(this,{end:!1}),n};Mn.prototype._writeCentralDirectoryEnd=function(){var t=this._entries.length,e=this._archive.centralLength,r=this._archive.centralOffset;this.isZip64()&&(t=tt.ZIP64_MAGIC_SHORT,e=tt.ZIP64_MAGIC,r=tt.ZIP64_MAGIC),this.write(Qe.getLongBytes(tt.SIG_EOCD)),this.write(tt.SHORT_ZERO),this.write(tt.SHORT_ZERO),this.write(Qe.getShortBytes(t)),this.write(Qe.getShortBytes(t)),this.write(Qe.getLongBytes(e)),this.write(Qe.getLongBytes(r));var n=this.getComment(),i=Buffer.byteLength(n);this.write(Qe.getShortBytes(i)),this.write(n)};Mn.prototype._writeCentralDirectoryZip64=function(){this.write(Qe.getLongBytes(tt.SIG_ZIP64_EOCD)),this.write(Qe.getEightBytes(44)),this.write(Qe.getShortBytes(tt.MIN_VERSION_ZIP64)),this.write(Qe.getShortBytes(tt.MIN_VERSION_ZIP64)),this.write(tt.LONG_ZERO),this.write(tt.LONG_ZERO),this.write(Qe.getEightBytes(this._entries.length)),this.write(Qe.getEightBytes(this._entries.length)),this.write(Qe.getEightBytes(this._archive.centralLength)),this.write(Qe.getEightBytes(this._archive.centralOffset)),this.write(Qe.getLongBytes(tt.SIG_ZIP64_EOCD_LOC)),this.write(tt.LONG_ZERO),this.write(Qe.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write(Qe.getLongBytes(1))};Mn.prototype._writeCentralFileHeader=function(t){var e=t.getGeneralPurposeBit(),r=t.getMethod(),n=t._offsets.file,i=t.getSize(),s=t.getCompressedSize();if(t.isZip64()||n>tt.ZIP64_MAGIC){i=tt.ZIP64_MAGIC,s=tt.ZIP64_MAGIC,n=tt.ZIP64_MAGIC,t.setVersionNeededToExtract(tt.MIN_VERSION_ZIP64);var a=Buffer.concat([Qe.getShortBytes(tt.ZIP64_EXTRA_ID),Qe.getShortBytes(24),Qe.getEightBytes(t.getSize()),Qe.getEightBytes(t.getCompressedSize()),Qe.getEightBytes(t._offsets.file)],28);t.setExtra(a)}this.write(Qe.getLongBytes(tt.SIG_CFH)),this.write(Qe.getShortBytes(t.getPlatform()<<8|tt.VERSION_MADEBY)),this.write(Qe.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(Qe.getShortBytes(r)),this.write(Qe.getLongBytes(t.getTimeDos())),this.write(Qe.getLongBytes(t.getCrc())),this.write(Qe.getLongBytes(s)),this.write(Qe.getLongBytes(i));var c=t.getName(),l=t.getComment(),u=t.getCentralDirectoryExtra();e.usesUTF8ForNames()&&(c=Buffer.from(c),l=Buffer.from(l)),this.write(Qe.getShortBytes(c.length)),this.write(Qe.getShortBytes(u.length)),this.write(Qe.getShortBytes(l.length)),this.write(tt.SHORT_ZERO),this.write(Qe.getShortBytes(t.getInternalAttributes())),this.write(Qe.getLongBytes(t.getExternalAttributes())),this.write(Qe.getLongBytes(n)),this.write(c),this.write(u),this.write(l)};Mn.prototype._writeDataDescriptor=function(t){this.write(Qe.getLongBytes(tt.SIG_DD)),this.write(Qe.getLongBytes(t.getCrc())),t.isZip64()?(this.write(Qe.getEightBytes(t.getCompressedSize())),this.write(Qe.getEightBytes(t.getSize()))):(this.write(Qe.getLongBytes(t.getCompressedSize())),this.write(Qe.getLongBytes(t.getSize())))};Mn.prototype._writeLocalFileHeader=function(t){var e=t.getGeneralPurposeBit(),r=t.getMethod(),n=t.getName(),i=t.getLocalFileDataExtra();t.isZip64()&&(e.useDataDescriptor(!0),t.setVersionNeededToExtract(tt.MIN_VERSION_ZIP64)),e.usesUTF8ForNames()&&(n=Buffer.from(n)),t._offsets.file=this.offset,this.write(Qe.getLongBytes(tt.SIG_LFH)),this.write(Qe.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(Qe.getShortBytes(r)),this.write(Qe.getLongBytes(t.getTimeDos())),t._offsets.data=this.offset,e.usesDataDescriptor()?(this.write(tt.LONG_ZERO),this.write(tt.LONG_ZERO),this.write(tt.LONG_ZERO)):(this.write(Qe.getLongBytes(t.getCrc())),this.write(Qe.getLongBytes(t.getCompressedSize())),this.write(Qe.getLongBytes(t.getSize()))),this.write(Qe.getShortBytes(n.length)),this.write(Qe.getShortBytes(i.length)),this.write(n),this.write(i),t._offsets.contents=this.offset};Mn.prototype.getComment=function(t){return this._archive.comment!==null?this._archive.comment:""};Mn.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>tt.ZIP64_MAGIC_SHORT||this._archive.centralLength>tt.ZIP64_MAGIC||this._archive.centralOffset>tt.ZIP64_MAGIC};Mn.prototype.setComment=function(t){this._archive.comment=t}});var C9=g((Tvr,WTe)=>{WTe.exports={ArchiveEntry:OQ(),ZipArchiveEntry:f9(),ArchiveOutputStream:A9(),ZipArchiveOutputStream:jTe()}});var YTe=g((Dvr,JTe)=>{var RTt=require("util").inherits,w9=C9().ZipArchiveOutputStream,TTt=C9().ZipArchiveEntry,b9=Vy(),$y=JTe.exports=function(t){if(!(this instanceof $y))return new $y(t);t=this.options=t||{},t.zlib=t.zlib||{},w9.call(this,t),typeof t.level=="number"&&t.level>=0&&(t.zlib.level=t.level,delete t.level),!t.forceZip64&&typeof t.zlib.level=="number"&&t.zlib.level===0&&(t.store=!0),t.namePrependSlash=t.namePrependSlash||!1,t.comment&&t.comment.length>0&&this.setComment(t.comment)};RTt($y,w9);$y.prototype._normalizeFileData=function(t){t=b9.defaults(t,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var e=t.type==="directory",r=t.type==="symlink";return t.name&&(t.name=b9.sanitizePath(t.name),!r&&t.name.slice(-1)==="/"?(e=!0,t.type="directory"):e&&(t.name+="/")),(e||r)&&(t.store=!0),t.date=b9.dateify(t.date),t};$y.prototype.entry=function(t,e,r){if(typeof r!="function"&&(r=this._emitErrorCallback.bind(this)),e=this._normalizeFileData(e),e.type!=="file"&&e.type!=="directory"&&e.type!=="symlink"){r(new Error(e.type+" entries not currently supported"));return}if(typeof e.name!="string"||e.name.length===0){r(new Error("entry name must be a non-empty string value"));return}if(e.type==="symlink"&&typeof e.linkname!="string"){r(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var n=new TTt(e.name);return n.setTime(e.date,this.options.forceLocalTime),e.namePrependSlash&&n.setName(e.name,!0),e.store&&n.setMethod(0),e.comment.length>0&&n.setComment(e.comment),e.type==="symlink"&&typeof e.mode!="number"&&(e.mode=40960),typeof e.mode=="number"&&(e.type==="symlink"&&(e.mode|=40960),n.setUnixMode(e.mode)),e.type==="symlink"&&typeof e.linkname=="string"&&(t=Buffer.from(e.linkname)),w9.prototype.entry.call(this,n,t,r)};$y.prototype.finalize=function(){this.finish()}});var XTe=g((Qvr,KTe)=>{var DTt=YTe(),QTt=Vy(),Af=o(function(t){if(!(this instanceof Af))return new Af(t);t=this.options=QTt.defaults(t,{comment:"",forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new DTt(t)},"Zip");Af.prototype.append=function(t,e,r){this.engine.entry(t,e,r)};Af.prototype.finalize=function(){this.engine.finalize()};Af.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Af.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};Af.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};KTe.exports=Af});var e2e=g((Pvr,ZTe)=>{ZTe.exports=typeof queueMicrotask=="function"?queueMicrotask:t=>Promise.resolve().then(t)});var r2e=g((Ovr,t2e)=>{t2e.exports=typeof process<"u"&&typeof process.nextTick=="function"?process.nextTick.bind(process):e2e()});var i2e=g((Fvr,n2e)=>{n2e.exports=class{static{o(this,"FixedFIFO")}constructor(e){if(!(e>0)||(e-1&e)!==0)throw new Error("Max size for a FixedFIFO should be a power of two");this.buffer=new Array(e),this.mask=e-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(e){return this.buffer[this.top]!==void 0?!1:(this.buffer[this.top]=e,this.top=this.top+1&this.mask,!0)}shift(){let e=this.buffer[this.btm];if(e!==void 0)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,e}peek(){return this.buffer[this.btm]}isEmpty(){return this.buffer[this.btm]===void 0}}});var I9=g((qvr,o2e)=>{var s2e=i2e();o2e.exports=class{static{o(this,"FastFIFO")}constructor(e){this.hwm=e||16,this.head=new s2e(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(e){if(this.length++,!this.head.push(e)){let r=this.head;this.head=r.next=new s2e(2*this.head.buffer.length),this.head.push(e)}}shift(){this.length!==0&&this.length--;let e=this.tail.shift();if(e===void 0&&this.tail.next){let r=this.tail.next;return this.tail.next=null,this.tail=r,this.tail.shift()}return e}peek(){let e=this.tail.peek();return e===void 0&&this.tail.next?this.tail.next.peek():e}isEmpty(){return this.length===0}}});var M9=g((Hvr,_2e)=>{var{EventEmitter:kTt}=require("events"),zQ=new Error("Stream was destroyed"),S9=new Error("Premature close"),d2e=r2e(),f2e=I9(),Pr=(1<<28)-1,Yp=1,T9=2,$p=4,FI=8,h2e=Pr^Yp,PTt=Pr^T9,zI=16,MI=32,Ky=64,mf=128,VI=256,D9=512,jp=1024,B9=2048,Q9=4096,k9=8192,Ya=16384,jy=32768,VQ=65536,Wp=131072,p2e=VI|D9,OTt=zI|VQ,LTt=Ky|zI,FTt=Q9|mf,P9=VI|Wp,MTt=Pr^zI,UTt=Pr^Ky,qTt=Pr^(Ky|VQ),GTt=Pr^VQ,HTt=Pr^VI,zTt=Pr^(mf|k9),VTt=Pr^jp,a2e=Pr^p2e,A2e=Pr^jy,$Tt=Pr^MI,m2e=Pr^Wp,jTt=Pr^P9,gf=1<<18,Jy=2<<18,$I=4<<18,Jp=8<<18,jI=16<<18,Kp=32<<18,x9=64<<18,Wy=128<<18,O9=256<<18,Yy=512<<18,g2e=Pr^(gf|O9),y2e=Pr^$I,WTt=Pr^Yy,JTt=Pr^jI,YTt=Pr^Jp,E2e=Pr^Wy,KTt=Pr^Jy,UI=zI|gf,C2e=Pr^UI,L9=Ya|Kp,Gu=$p|FI|T9,ao=Gu|Yp,b2e=Gu|L9,XTt=y2e&UTt,F9=Wy|jy,ZTt=F9&C2e,w2e=ao|ZTt,e2t=ao|jp|Ya,c2e=ao|Ya|mf,t2t=ao|jp|mf,r2t=ao|Q9|mf|k9,n2t=ao|zI|jp|Ya|VQ|Wp,i2t=Gu|jp|Ya,s2t=MI|ao|jy|Ky,o2t=ao|Yy|Kp,a2t=Jp|jI,I2e=Jp|gf,c2t=Jp|jI|ao|gf,l2e=ao|gf|Jp,l2t=$I|gf,u2t=gf|O9,d2t=ao|Yy|I2e|Kp,f2t=jI|Gu|Yy|Kp,h2t=Jy|ao|Wy|$I,MQ=Symbol.asyncIterator||Symbol("asyncIterator"),UQ=class{static{o(this,"WritableState")}constructor(e,{highWaterMark:r=16384,map:n=null,mapWritable:i,byteLength:s,byteLengthWritable:a}={}){this.stream=e,this.queue=new f2e,this.highWaterMark=r,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=a||s||N2e,this.map=i||n,this.afterWrite=m2t.bind(this),this.afterUpdateNextTick=E2t.bind(this)}get ended(){return(this.stream._duplexState&Kp)!==0}push(e){return this.map!==null&&(e=this.map(e)),this.buffered+=this.byteLength(e),this.queue.push(e),this.buffered0,this.error=null,this.pipeline=null,this.byteLength=a||s||N2e,this.map=i||n,this.pipeTo=null,this.afterRead=g2t.bind(this),this.afterUpdateNextTick=y2t.bind(this)}get ended(){return(this.stream._duplexState&Ya)!==0}pipe(e,r){if(this.pipeTo!==null)throw new Error("Can only pipe to one destination");if(typeof r!="function"&&(r=null),this.stream._duplexState|=D9,this.pipeTo=e,this.pipeline=new _9(this.stream,e,r),r&&this.stream.on("error",u2e),HI(e))e._writableState.pipeline=this.pipeline,r&&e.on("error",u2e),e.on("finish",this.pipeline.finished.bind(this.pipeline));else{let n=this.pipeline.done.bind(this.pipeline,e),i=this.pipeline.done.bind(this.pipeline,e,null);e.on("error",n),e.on("close",i),e.on("finish",this.pipeline.finished.bind(this.pipeline))}e.on("drain",p2t.bind(this)),this.stream.emit("piping",e),e.emit("pipe",this.stream)}push(e){let r=this.stream;return e===null?(this.highWaterMark=0,r._duplexState=(r._duplexState|jp)&qTt,!1):(this.map!==null&&(e=this.map(e)),this.buffered+=this.byteLength(e),this.queue.push(e),r._duplexState=(r._duplexState|mf)>t,this.buffered0;)r.push(this.shift());for(let n=0;n0;)n.drains.shift().resolve(!1);n.pipeline!==null&&n.pipeline.done(e,t)}}o(S2e,"afterDestroy");function m2t(t){let e=this.stream;t&&e.destroy(t),e._duplexState&=g2e,this.drains!==null&&C2t(this.drains),(e._duplexState&c2t)===jI&&(e._duplexState&=JTt,(e._duplexState&x9)===x9&&e.emit("drain")),this.updateCallback()}o(m2t,"afterWrite");function g2t(t){t&&this.stream.destroy(t),this.stream._duplexState&=MTt,this.readAhead===!1&&(this.stream._duplexState&VI)===0&&(this.stream._duplexState&=m2e),this.updateCallback()}o(g2t,"afterRead");function y2t(){(this.stream._duplexState&MI)===0&&(this.stream._duplexState&=A2e,this.update())}o(y2t,"updateReadNT");function E2t(){(this.stream._duplexState&Jy)===0&&(this.stream._duplexState&=E2e,this.update())}o(E2t,"updateWriteNT");function C2t(t){for(let e=0;e=e._readableState.highWaterMark}static isPaused(e){return(e._duplexState&VI)===0}[MQ](){let e=this,r=null,n=null,i=null;return this.on("error",u=>{r=u}),this.on("readable",s),this.on("close",a),{[MQ](){return this},next(){return new Promise(function(u,d){n=u,i=d;let f=e.read();f!==null?c(f):(e._duplexState&FI)!==0&&c(null)})},return(){return l(null)},throw(u){return l(u)}};function s(){n!==null&&c(e.read())}o(s,"onreadable");function a(){n!==null&&c(null)}o(a,"onclose");function c(u){i!==null&&(r?i(r):u===null&&(e._duplexState&Ya)===0?i(zQ):n({value:u,done:u===null}),i=n=null)}o(c,"ondata");function l(u){return e.destroy(u),new Promise((d,f)=>{if(e._duplexState&FI)return d({value:void 0,done:!0});e.once("close",function(){u?f(u):d({value:void 0,done:!0})})})}o(l,"destroy")}},GQ=class extends qI{static{o(this,"Writable")}constructor(e){super(e),this._duplexState|=Yp|Ya,this._writableState=new UQ(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final),e.eagerOpen&&this._writableState.updateNextTick())}_writev(e,r){r(null)}_write(e,r){this._writableState.autoBatch(e,r)}_final(e){e(null)}static isBackpressured(e){return(e._duplexState&f2t)!==0}static drained(e){if(e.destroyed)return Promise.resolve(!1);let r=e._writableState,i=(_2t(e)?Math.min(1,r.queue.length):r.queue.length)+(e._duplexState&O9?1:0);return i===0?Promise.resolve(!0):(r.drains===null&&(r.drains=[]),new Promise(s=>{r.drains.push({writes:i,resolve:s})}))}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},GI=class extends qQ{static{o(this,"Duplex")}constructor(e){super(e),this._duplexState=Yp|this._duplexState&Wp,this._writableState=new UQ(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final))}_writev(e,r){r(null)}_write(e,r){this._writableState.autoBatch(e,r)}_final(e){e(null)}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},HQ=class extends GI{static{o(this,"Transform")}constructor(e){super(e),this._transformState=new N9(this),e&&(e.transform&&(this._transform=e.transform),e.flush&&(this._flush=e.flush))}_write(e,r){this._readableState.buffered>=this._readableState.highWaterMark?this._transformState.data=e:this._transform(e,this._transformState.afterTransform)}_read(e){if(this._transformState.data!==null){let r=this._transformState.data;this._transformState.data=null,e(null),this._transform(r,this._transformState.afterTransform)}else e(null)}destroy(e){super.destroy(e),this._transformState.data!==null&&(this._transformState.data=null,this._transformState.afterTransform())}_transform(e,r){r(null,e)}_flush(e){e(null)}_final(e){this._transformState.afterFinal=e,this._flush(I2t.bind(this))}},R9=class extends HQ{static{o(this,"PassThrough")}};function I2t(t,e){let r=this._transformState.afterFinal;if(t)return r(t);e!=null&&this.push(e),this.push(null),r(null)}o(I2t,"transformAfterFlush");function S2t(...t){return new Promise((e,r)=>x2e(...t,n=>{if(n)return r(n);e()}))}o(S2t,"pipelinePromise");function x2e(t,...e){let r=Array.isArray(t)?[...t,...e]:[t,...e],n=r.length&&typeof r[r.length-1]=="function"?r.pop():null;if(r.length<2)throw new Error("Pipeline requires at least 2 streams");let i=r[0],s=null,a=null;for(let u=1;u1,l),i.pipe(s)),i=s;if(n){let u=!1,d=HI(s)||!!(s._writableState&&s._writableState.autoDestroy);s.on("error",f=>{a===null&&(a=f)}),s.on("finish",()=>{u=!0,d||n(a)}),d&&s.on("close",()=>n(a||(u?null:S9)))}return s;function c(u,d,f,h){u.on("error",h),u.on("close",p);function p(){if(d&&u._readableState&&!u._readableState.ended||f&&u._writableState&&!u._writableState.ended)return h(S9)}o(p,"onclose")}function l(u){if(!(!u||a)){a=u;for(let d of r)d.destroy(u)}}}o(x2e,"pipeline");function v2e(t){return!!t._readableState||!!t._writableState}o(v2e,"isStream");function HI(t){return typeof t._duplexState=="number"&&v2e(t)}o(HI,"isStreamx");function B2t(t){let e=t._readableState&&t._readableState.error||t._writableState&&t._writableState.error;return e===zQ?null:e}o(B2t,"getStreamError");function x2t(t){return HI(t)&&t.readable}o(x2t,"isReadStreamx");function v2t(t){return typeof t=="object"&&t!==null&&typeof t.byteLength=="number"}o(v2t,"isTypedArray");function N2e(t){return v2t(t)?t.byteLength:1024}o(N2e,"defaultByteLength");function u2e(){}o(u2e,"noop");function N2t(){this.destroy(new Error("Stream aborted."))}o(N2t,"abort");function _2t(t){return t._writev!==GQ.prototype._writev&&t._writev!==GI.prototype._writev}o(_2t,"isWritev");_2e.exports={pipeline:x2e,pipelinePromise:S2t,isStream:v2e,isStreamx:HI,getStreamError:B2t,Stream:qI,Writable:GQ,Readable:qQ,Duplex:GI,Transform:HQ,PassThrough:R9}});var $Q=g((Vvr,R2e)=>{function R2t(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}o(R2t,"isBuffer");function T2t(t){return Buffer.isEncoding(t)}o(T2t,"isEncoding");function D2t(t,e,r){return Buffer.alloc(t,e,r)}o(D2t,"alloc");function Q2t(t){return Buffer.allocUnsafe(t)}o(Q2t,"allocUnsafe");function k2t(t){return Buffer.allocUnsafeSlow(t)}o(k2t,"allocUnsafeSlow");function P2t(t,e){return Buffer.byteLength(t,e)}o(P2t,"byteLength");function O2t(t,e){return Buffer.compare(t,e)}o(O2t,"compare");function L2t(t,e){return Buffer.concat(t,e)}o(L2t,"concat");function F2t(t,e,r,n,i){return on(t).copy(e,r,n,i)}o(F2t,"copy");function M2t(t,e){return on(t).equals(e)}o(M2t,"equals");function U2t(t,e,r,n,i){return on(t).fill(e,r,n,i)}o(U2t,"fill");function q2t(t,e,r){return Buffer.from(t,e,r)}o(q2t,"from");function G2t(t,e,r,n){return on(t).includes(e,r,n)}o(G2t,"includes");function H2t(t,e,r,n){return on(t).indexOf(e,r,n)}o(H2t,"indexOf");function z2t(t,e,r,n){return on(t).lastIndexOf(e,r,n)}o(z2t,"lastIndexOf");function V2t(t){return on(t).swap16()}o(V2t,"swap16");function $2t(t){return on(t).swap32()}o($2t,"swap32");function j2t(t){return on(t).swap64()}o(j2t,"swap64");function on(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}o(on,"toBuffer");function W2t(t,e,r,n){return on(t).toString(e,r,n)}o(W2t,"toString");function J2t(t,e,r,n,i){return on(t).write(e,r,n,i)}o(J2t,"write");function Y2t(t,e,r){return on(t).writeDoubleLE(e,r)}o(Y2t,"writeDoubleLE");function K2t(t,e,r){return on(t).writeFloatLE(e,r)}o(K2t,"writeFloatLE");function X2t(t,e,r){return on(t).writeUInt32LE(e,r)}o(X2t,"writeUInt32LE");function Z2t(t,e,r){return on(t).writeInt32LE(e,r)}o(Z2t,"writeInt32LE");function eDt(t,e){return on(t).readDoubleLE(e)}o(eDt,"readDoubleLE");function tDt(t,e){return on(t).readFloatLE(e)}o(tDt,"readFloatLE");function rDt(t,e){return on(t).readUInt32LE(e)}o(rDt,"readUInt32LE");function nDt(t,e){return on(t).readInt32LE(e)}o(nDt,"readInt32LE");R2e.exports={isBuffer:R2t,isEncoding:T2t,alloc:D2t,allocUnsafe:Q2t,allocUnsafeSlow:k2t,byteLength:P2t,compare:O2t,concat:L2t,copy:F2t,equals:M2t,fill:U2t,from:q2t,includes:G2t,indexOf:H2t,lastIndexOf:z2t,swap16:V2t,swap32:$2t,swap64:j2t,toBuffer:on,toString:W2t,write:J2t,writeDoubleLE:Y2t,writeFloatLE:K2t,writeUInt32LE:X2t,writeInt32LE:Z2t,readDoubleLE:eDt,readFloatLE:tDt,readUInt32LE:rDt,readInt32LE:nDt}});var G9=g(Zy=>{var Bt=$Q(),iDt="0000000000000000000",sDt="7777777777777777777",jQ=48,T2e=Bt.from([117,115,116,97,114,0]),oDt=Bt.from([jQ,jQ]),aDt=Bt.from([117,115,116,97,114,32]),cDt=Bt.from([32,0]),lDt=4095,WI=257,q9=263;Zy.decodeLongPath=o(function(e,r){return Xy(e,0,e.length,r)},"decodeLongPath");Zy.encodePax=o(function(e){let r="";e.name&&(r+=U9(" path="+e.name+` +`)),e.linkname&&(r+=U9(" linkpath="+e.linkname+` +`));let n=e.pax;if(n)for(let i in n)r+=U9(" "+i+"="+n[i]+` +`);return Bt.from(r)},"encodePax");Zy.decodePax=o(function(e){let r={};for(;e.length;){let n=0;for(;n100;){let s=n.indexOf("/");if(s===-1)return null;i+=i?"/"+n.slice(0,s):n.slice(0,s),n=n.slice(s+1)}return Bt.byteLength(n)>100||Bt.byteLength(i)>155||e.linkname&&Bt.byteLength(e.linkname)>100?null:(Bt.write(r,n),Bt.write(r,Ef(e.mode&lDt,6),100),Bt.write(r,Ef(e.uid,6),108),Bt.write(r,Ef(e.gid,6),116),mDt(e.size,r,124),Bt.write(r,Ef(e.mtime.getTime()/1e3|0,11),136),r[156]=jQ+pDt(e.type),e.linkname&&Bt.write(r,e.linkname,157),Bt.copy(T2e,r,WI),Bt.copy(oDt,r,q9),e.uname&&Bt.write(r,e.uname,265),e.gname&&Bt.write(r,e.gname,297),Bt.write(r,Ef(e.devmajor||0,6),329),Bt.write(r,Ef(e.devminor||0,6),337),i&&Bt.write(r,i,345),Bt.write(r,Ef(Q2e(r),6),148),r)},"encode");Zy.decode=o(function(e,r,n){let i=e[156]===0?0:e[156]-jQ,s=Xy(e,0,100,r),a=yf(e,100,8),c=yf(e,108,8),l=yf(e,116,8),u=yf(e,124,12),d=yf(e,136,12),f=hDt(i),h=e[157]===0?null:Xy(e,157,100,r),p=Xy(e,265,32),m=Xy(e,297,32),A=yf(e,329,8),E=yf(e,337,8),y=Q2e(e);if(y===256)return null;if(y!==yf(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(uDt(e))e[345]&&(s=Xy(e,345,155,r)+"/"+s);else if(!dDt(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return i===0&&s&&s[s.length-1]==="/"&&(i=5),{name:s,mode:a,uid:c,gid:l,size:u,mtime:new Date(1e3*d),type:f,linkname:h,uname:p,gname:m,devmajor:A,devminor:E,pax:null}},"decode");function uDt(t){return Bt.equals(T2e,t.subarray(WI,WI+6))}o(uDt,"isUSTAR");function dDt(t){return Bt.equals(aDt,t.subarray(WI,WI+6))&&Bt.equals(cDt,t.subarray(q9,q9+2))}o(dDt,"isGNU");function fDt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}o(fDt,"clamp");function hDt(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}o(hDt,"toType");function pDt(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}o(pDt,"toTypeflag");function D2e(t,e,r,n){for(;re?sDt.slice(0,e)+" ":iDt.slice(0,e-t.length)+t+" "}o(Ef,"encodeOct");function ADt(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}o(ADt,"encodeSizeBin");function mDt(t,e,r){t.toString(8).length>11?ADt(t,e,r):Bt.write(e,Ef(t,11),r)}o(mDt,"encodeSize");function gDt(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let a=t[n];e?r.push(a):r.push(255-a)}let i=0,s=r.length;for(n=0;n=Math.pow(10,r)&&r++,e+r+t}o(U9,"addLength")});var F2e=g((Jvr,L2e)=>{var{Writable:yDt,Readable:EDt,getStreamError:k2e}=M9(),CDt=I9(),P2e=$Q(),eE=G9(),bDt=P2e.alloc(0),z9=class{static{o(this,"BufferList")}constructor(){this.buffered=0,this.shifted=0,this.queue=new CDt,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return bDt;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return P2e.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let i=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,i}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},V9=class extends EDt{static{o(this,"Source")}constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(k2e(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=O2e(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},$9=class extends yDt{static{o(this,"Extract")}constructor(e){super(e),e||(e={}),this._buffer=new z9,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=H9,this._locked=!1,this._finished=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null,this._filenameEncoding=e.filenameEncoding||"utf-8",this._allowUnknownFormat=!!e.allowUnknownFormat,this._unlockBound=this._unlock.bind(this)}_unlock(e){if(this._locked=!1,e){this.destroy(e),this._continueWrite(e);return}this._update()}_consumeHeader(){if(this._locked)return!1;this._offset=this._buffer.shifted;try{this._header=eE.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(e){return this._continueWrite(e),!1}if(!this._header)return!0;switch(this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":return this._longHeader=!0,this._missing=this._header.size,!0}return this._locked=!0,this._applyLongHeaders(),this._header.size===0||this._header.type==="directory"?(this.emit("entry",this._header,this._createStream(),this._unlockBound),!0):(this._stream=this._createStream(),this._missing=this._header.size,this.emit("entry",this._header,this._stream,this._unlockBound),!0)}_applyLongHeaders(){this._gnuLongPath&&(this._header.name=this._gnuLongPath,this._gnuLongPath=null),this._gnuLongLinkPath&&(this._header.linkname=this._gnuLongLinkPath,this._gnuLongLinkPath=null),this._pax&&(this._pax.path&&(this._header.name=this._pax.path),this._pax.linkpath&&(this._header.linkname=this._pax.linkpath),this._pax.size&&(this._header.size=parseInt(this._pax.size,10)),this._header.pax=this._pax,this._pax=null)}_decodeLongHeader(e){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=eE.decodeLongPath(e,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=eE.decodeLongPath(e,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=eE.decodePax(e);break;case"pax-header":this._pax=this._paxGlobal===null?eE.decodePax(e):Object.assign({},this._paxGlobal,eE.decodePax(e));break}}_consumeLongHeader(){this._longHeader=!1,this._missing=O2e(this._header.size);let e=this._buffer.shift(this._header.size);try{this._decodeLongHeader(e)}catch(r){return this._continueWrite(r),!1}return!0}_consumeStream(){let e=this._buffer.shiftFirst(this._missing);if(e===null)return!1;this._missing-=e.byteLength;let r=this._stream.push(e);return this._missing===0?(this._stream.push(null),r&&this._stream._detach(),r&&this._locked===!1):r}_createStream(){return new V9(this,this._header,this._offset)}_update(){for(;this._buffer.buffered>0&&!this.destroying;){if(this._missing>0){if(this._stream!==null){if(this._consumeStream()===!1)return;continue}if(this._longHeader===!0){if(this._missing>this._buffer.buffered)break;if(this._consumeLongHeader()===!1)return!1;continue}let e=this._buffer.shiftFirst(this._missing);e!==null&&(this._missing-=e.byteLength);continue}if(this._buffer.buffered<512)break;if(this._stream!==null||this._consumeHeader()===!1)return}this._continueWrite(null)}_continueWrite(e){let r=this._callback;this._callback=H9,r(e)}_write(e,r){this._callback=r,this._buffer.push(e),this._update()}_final(e){this._finished=this._missing===0&&this._buffer.buffered===0,e(this._finished?null:new Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(e){this._stream&&this._stream.destroy(k2e(this)),e(null)}[Symbol.asyncIterator](){let e=null,r=null,n=null,i=null,s=null,a=this;return this.on("entry",u),this.on("error",h=>{e=h}),this.on("close",d),{[Symbol.asyncIterator](){return this},next(){return new Promise(l)},return(){return f(null)},throw(h){return f(h)}};function c(h){if(!s)return;let p=s;s=null,p(h)}o(c,"consumeCallback");function l(h,p){if(e)return p(e);if(i){h({value:i,done:!1}),i=null;return}r=h,n=p,c(null),a._finished&&r&&(r({value:void 0,done:!0}),r=n=null)}o(l,"onnext");function u(h,p,m){s=m,p.on("error",H9),r?(r({value:p,done:!1}),r=n=null):i=p}o(u,"onentry");function d(){c(e),r&&(e?n(e):r({value:void 0,done:!0}),r=n=null)}o(d,"onclose");function f(h){return a.destroy(h),c(h),new Promise((p,m)=>{if(a.destroyed)return p({value:void 0,done:!0});a.once("close",function(){h?m(h):p({value:void 0,done:!0})})})}o(f,"destroy")}};L2e.exports=o(function(e){return new $9(e)},"extract");function H9(){}o(H9,"noop");function O2e(t){return t&=511,t&&512-t}o(O2e,"overflow")});var U2e=g((Kvr,j9)=>{var M2e={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{j9.exports=require("fs").constants||M2e}catch{j9.exports=M2e}});var V2e=g((Xvr,z2e)=>{var{Readable:wDt,Writable:IDt,getStreamError:q2e}=M9(),Xp=$Q(),tE=U2e(),WQ=G9(),SDt=493,BDt=420,G2e=Xp.alloc(1024),J9=class extends IDt{static{o(this,"Sink")}constructor(e,r,n){super({mapWritable:vDt,eagerOpen:!0}),this.written=0,this.header=r,this._callback=n,this._linkname=null,this._isLinkname=r.type==="symlink"&&!r.linkname,this._isVoid=r.type!=="file"&&r.type!=="contiguous-file",this._finished=!1,this._pack=e,this._openCallback=null,this._pack._stream===null?this._pack._stream=this:this._pack._pending.push(this)}_open(e){this._openCallback=e,this._pack._stream===this&&this._continueOpen()}_continuePack(e){if(this._callback===null)return;let r=this._callback;this._callback=null,r(e)}_continueOpen(){this._pack._stream===null&&(this._pack._stream=this);let e=this._openCallback;if(this._openCallback=null,e!==null){if(this._pack.destroying)return e(new Error("pack stream destroyed"));if(this._pack._finalized)return e(new Error("pack stream is already finalized"));this._pack._stream=this,this._isLinkname||this._pack._encode(this.header),this._isVoid&&(this._finish(),this._continuePack(null)),e(null)}}_write(e,r){if(this._isLinkname)return this._linkname=this._linkname?Xp.concat([this._linkname,e]):e,r(null);if(this._isVoid)return e.byteLength>0?r(new Error("No body allowed for this entry")):r();if(this.written+=e.byteLength,this._pack.push(e))return r();this._pack._drain=r}_finish(){this._finished||(this._finished=!0,this._isLinkname&&(this.header.linkname=this._linkname?Xp.toString(this._linkname,"utf-8"):"",this._pack._encode(this.header)),H2e(this._pack,this.header.size),this._pack._done(this))}_final(e){if(this.written!==this.header.size)return e(new Error("Size mismatch"));this._finish(),e(null)}_getError(){return q2e(this)||new Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(e){this._pack._done(this),this._continuePack(this._finished?null:this._getError()),e()}},Y9=class extends wDt{static{o(this,"Pack")}constructor(e){super(e),this._drain=W9,this._finalized=!1,this._finalizing=!1,this._pending=[],this._stream=null}entry(e,r,n){if(this._finalized||this.destroying)throw new Error("already finalized or destroyed");typeof r=="function"&&(n=r,r=null),n||(n=W9),(!e.size||e.type==="symlink")&&(e.size=0),e.type||(e.type=xDt(e.mode)),e.mode||(e.mode=e.type==="directory"?SDt:BDt),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),typeof r=="string"&&(r=Xp.from(r));let i=new J9(this,e,n);return Xp.isBuffer(r)?(e.size=r.byteLength,i.write(r),i.end(),i):(i._isVoid,i)}finalize(){if(this._stream||this._pending.length>0){this._finalizing=!0;return}this._finalized||(this._finalized=!0,this.push(G2e),this.push(null))}_done(e){e===this._stream&&(this._stream=null,this._finalizing&&this.finalize(),this._pending.length&&this._pending.shift()._continueOpen())}_encode(e){if(!e.pax){let r=WQ.encode(e);if(r){this.push(r);return}}this._encodePax(e)}_encodePax(e){let r=WQ.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),n={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:r.byteLength,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(WQ.encode(n)),this.push(r),H2e(this,r.byteLength),n.size=e.size,n.type=e.type,this.push(WQ.encode(n))}_doDrain(){let e=this._drain;this._drain=W9,e()}_predestroy(){let e=q2e(this);for(this._stream&&this._stream.destroy(e);this._pending.length;){let r=this._pending.shift();r.destroy(e),r._continueOpen()}this._doDrain()}_read(e){this._doDrain(),e()}};z2e.exports=o(function(e){return new Y9(e)},"pack");function xDt(t){switch(t&tE.S_IFMT){case tE.S_IFBLK:return"block-device";case tE.S_IFCHR:return"character-device";case tE.S_IFDIR:return"directory";case tE.S_IFIFO:return"fifo";case tE.S_IFLNK:return"symlink"}return"file"}o(xDt,"modeToType");function W9(){}o(W9,"noop");function H2e(t,e){e&=511,e&&t.push(G2e.subarray(0,512-e))}o(H2e,"overflow");function vDt(t){return Xp.isBuffer(t)?t:Xp.from(t)}o(vDt,"mapWritable")});var $2e=g(K9=>{K9.extract=F2e();K9.pack=V2e()});var J2e=g((tNr,W2e)=>{var NDt=require("zlib"),_Dt=$2e(),j2e=Vy(),Hu=o(function(t){if(!(this instanceof Hu))return new Hu(t);t=this.options=j2e.defaults(t,{gzip:!1}),typeof t.gzipOptions!="object"&&(t.gzipOptions={}),this.supports={directory:!0,symlink:!0},this.engine=_Dt.pack(t),this.compressor=!1,t.gzip&&(this.compressor=NDt.createGzip(t.gzipOptions),this.compressor.on("error",this._onCompressorError.bind(this)))},"Tar");Hu.prototype._onCompressorError=function(t){this.engine.emit("error",t)};Hu.prototype.append=function(t,e,r){var n=this;e.mtime=e.date;function i(a,c){if(a){r(a);return}n.engine.entry(e,c,function(l){r(l,e)})}if(o(i,"append"),e.sourceType==="buffer")i(null,t);else if(e.sourceType==="stream"&&e.stats){e.size=e.stats.size;var s=n.engine.entry(e,function(a){r(a,e)});t.pipe(s)}else e.sourceType==="stream"&&j2e.collectStream(t,i)};Hu.prototype.finalize=function(){this.engine.finalize()};Hu.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Hu.prototype.pipe=function(t,e){return this.compressor?this.engine.pipe.apply(this.engine,[this.compressor]).pipe(t,e):this.engine.pipe.apply(this.engine,arguments)};Hu.prototype.unpipe=function(){return this.compressor?this.compressor.unpipe.apply(this.compressor,arguments):this.engine.unpipe.apply(this.engine,arguments)};W2e.exports=Hu});var X2e=g((nNr,K2e)=>{"use strict";function RDt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}o(RDt,"getDefaultExportFromCjs");var TDt=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function Y2e(t){if(Buffer.isBuffer(t))return t;if(typeof t=="number")return Buffer.alloc(t);if(typeof t=="string")return Buffer.from(t);throw new Error("input must be buffer, number, or string, received "+typeof t)}o(Y2e,"ensureBuffer");function DDt(t){let e=Y2e(4);return e.writeInt32BE(t,0),e}o(DDt,"bufferizeInt");function X9(t,e){t=Y2e(t),Buffer.isBuffer(e)&&(e=e.readUInt32BE(0));let r=~~e^-1;for(var n=0;n>>8;return r^-1}o(X9,"_crc32");function Z9(){return DDt(X9.apply(null,arguments))}o(Z9,"crc32");Z9.signed=function(){return X9.apply(null,arguments)};Z9.unsigned=function(){return X9.apply(null,arguments)>>>0};var QDt=Z9,kDt=RDt(QDt);K2e.exports=kDt});var rDe=g((sNr,tDe)=>{var PDt=require("util").inherits,Z2e=Mp().Transform,ODt=X2e(),eDe=Vy(),Cf=o(function(t){if(!(this instanceof Cf))return new Cf(t);t=this.options=eDe.defaults(t,{}),Z2e.call(this,t),this.supports={directory:!0,symlink:!0},this.files=[]},"Json");PDt(Cf,Z2e);Cf.prototype._transform=function(t,e,r){r(null,t)};Cf.prototype._writeStringified=function(){var t=JSON.stringify(this.files);this.write(t)};Cf.prototype.append=function(t,e,r){var n=this;e.crc32=0;function i(s,a){if(s){r(s);return}e.size=a.length||0,e.crc32=ODt.unsigned(a),n.files.push(e),r(null,e)}o(i,"onend"),e.sourceType==="buffer"?i(null,t):e.sourceType==="stream"&&eDe.collectStream(t,i)};Cf.prototype.finalize=function(){this._writeStringified(),this.end()};tDe.exports=Cf});var iDe=g((aNr,nDe)=>{var LDt=CTe(),JI={},bf=o(function(t,e){return bf.create(t,e)},"vending");bf.create=function(t,e){if(JI[t]){var r=new LDt(t,e);return r.setFormat(t),r.setModule(new JI[t](e)),r}else throw new Error("create("+t+"): format not registered")};bf.registerFormat=function(t,e){if(JI[t])throw new Error("register("+t+"): format already registered");if(typeof e!="function")throw new Error("register("+t+"): format module invalid");if(typeof e.prototype.append!="function"||typeof e.prototype.finalize!="function")throw new Error("register("+t+"): format module missing methods");JI[t]=e};bf.isRegisteredFormat=function(t){return!!JI[t]};bf.registerFormat("zip",XTe());bf.registerFormat("tar",J2e());bf.registerFormat("json",rDe());nDe.exports=bf});var EDe=g((TNr,yDe)=>{yDe.exports=mi;function mi(t){if(!(this instanceof mi))return new mi(t);this.value=t}o(mi,"Traverse");mi.prototype.get=function(t){for(var e=this.value,r=0;r{var jDt=EDe(),WDt=require("events").EventEmitter;CDe.exports=rE;function rE(t){var e=rE.saw(t,{}),r=t.call(e.handlers,e);return r!==void 0&&(e.handlers=r),e.record(),e.chain()}o(rE,"Chainsaw");rE.light=o(function(e){var r=rE.saw(e,{}),n=e.call(r.handlers,r);return n!==void 0&&(r.handlers=n),r.chain()},"ChainsawLight");rE.saw=function(t,e){var r=new WDt;return r.handlers=e,r.actions=[],r.chain=function(){var n=jDt(r.handlers).map(function(i){if(this.isRoot)return i;var s=this.path;typeof i=="function"&&this.update(function(){return r.actions.push({path:s,args:[].slice.call(arguments)}),n})});return process.nextTick(function(){r.emit("begin"),r.next()}),n},r.pop=function(){return r.actions.shift()},r.next=function(){var n=r.pop();if(!n)r.emit("end");else if(!n.trap){var i=r.handlers;n.path.forEach(function(s){i=i[s]}),i.apply(r.handlers,n.args)}},r.nest=function(n){var i=[].slice.call(arguments,1),s=!0;if(typeof n=="boolean"){var s=n;n=i.shift()}var a=rE.saw(t,{}),c=t.call(a.handlers,a);c!==void 0&&(a.handlers=c),typeof r.step<"u"&&a.record(),n.apply(a.chain(),i),s!==!1&&a.on("end",r.next)},r.record=function(){JDt(r)},["trap","down","jump"].forEach(function(n){r[n]=function(){throw new Error("To use the trap, down and jump features, please call record() first to start recording actions.")}}),r};function JDt(t){t.step=0,t.pop=function(){return t.actions[t.step++]},t.trap=function(e,r){var n=Array.isArray(e)?e:[e];t.actions.push({path:n,step:t.step,cb:r,trap:!0})},t.down=function(e){var r=(Array.isArray(e)?e:[e]).join("/"),n=t.actions.slice(t.step).map(function(s){return s.trap&&s.step<=t.step?!1:s.path.join("/")==r}).indexOf(!0);n>=0?t.step+=n:t.step=t.actions.length;var i=t.actions[t.step-1];i&&i.trap?(t.step=i.step,i.cb()):t.next()},t.jump=function(e){t.step=e,t.next()}}o(JDt,"upgradeChainsaw")});var IDe=g((PNr,wDe)=>{wDe.exports=ji;function ji(t){if(!(this instanceof ji))return new ji(t);this.buffers=t||[],this.length=this.buffers.reduce(function(e,r){return e+r.length},0)}o(ji,"Buffers");ji.prototype.push=function(){for(var t=0;t=0?t:this.length-t,i=[].slice.call(arguments,2);e===void 0?e=this.length-n:e>this.length-n&&(e=this.length-n);for(var t=0;t0){var u=n-c;if(u+e0){var p=i.slice();p.unshift(f),p.push(h),r.splice.apply(r,[l,1].concat(p)),l+=p.length,i=[]}else r.splice(l,1,f,h),l+=2}else s.push(r[l].slice(u)),r[l]=r[l].slice(0,u),l++}for(i.length>0&&(r.splice.apply(r,[l,0].concat(i)),l+=i.length);s.lengththis.length&&(e=this.length);for(var n=0,i=0;i=e-t?Math.min(u+(e-t)-a,l):l;r[c].copy(s,a,u,d),a+=d-u}return s};ji.prototype.pos=function(t){if(t<0||t>=this.length)throw new Error("oob");for(var e=t,r=0,n=null;;){if(n=this.buffers[r],e=this.buffers[r].length;)if(n=0,r++,r>=this.buffers.length)return-1;var l=this.buffers[r][n];if(l==t[i]){if(i==0&&(s={i:r,j:n,pos:a}),i++,i==t.length)return s.pos}else i!=0&&(r=s.i,n=s.j,a=s.pos,i=0);n++,a++}};ji.prototype.toBuffer=function(){return this.slice()};ji.prototype.toString=function(t,e,r){return this.slice(e,r).toString(t)}});var BDe=g((LNr,SDe)=>{SDe.exports=function(t){function e(n,i){var s=r.store,a=n.split(".");a.slice(0,-1).forEach(function(l){s[l]===void 0&&(s[l]={}),s=s[l]});var c=a[a.length-1];return arguments.length==1?s[c]:s[c]=i}o(e,"getset");var r={get:o(function(n){return e(n)},"get"),set:o(function(n,i){return e(n,i)},"set"),store:t||{}};return r}});var TDe=g((Zp,RDe)=>{var YDt=bDe(),xDe=require("events").EventEmitter,KDt=IDe(),YQ=BDe(),XDt=require("stream").Stream;Zp=RDe.exports=function(t,e){if(Buffer.isBuffer(t))return Zp.parse(t);var r=Zp.stream();return t&&t.pipe?t.pipe(r):t&&(t.on(e||"data",function(n){r.write(n)}),t.on("end",function(){r.end()})),r};Zp.stream=function(t){if(t)return Zp.apply(null,arguments);var e=null;function r(f,h,p){e={bytes:f,skip:p,cb:o(function(m){e=null,h(m)},"cb")},i()}o(r,"getBytes");var n=null;function i(){if(!e){d&&(u=!0);return}if(typeof e=="function")e();else{var f=n+e.bytes;if(c.length>=f){var h;n==null?(h=c.splice(0,f),e.skip||(h=h.slice())):(e.skip||(h=c.slice(n,f)),n=f),e.skip?e.cb():e.cb(h)}}}o(i,"dispatch");function s(f){function h(){u||f.next()}o(h,"next");var p=_De(function(m,A){return function(E){r(m,function(y){l.set(E,A(y)),h()})}});return p.tap=function(m){f.nest(m,l.store)},p.into=function(m,A){l.get(m)||l.set(m,{});var E=l;l=YQ(E.get(m)),f.nest(function(){A.apply(this,arguments),this.tap(function(){l=E})},l.store)},p.flush=function(){l.store={},h()},p.loop=function(m){var A=!1;f.nest(!1,o(function E(){this.vars=l.store,m.call(this,function(){A=!0,h()},l.store),this.tap(function(){A?f.next():E.call(this)}.bind(this))},"loop"),l.store)},p.buffer=function(m,A){typeof A=="string"&&(A=l.get(A)),r(A,function(E){l.set(m,E),h()})},p.skip=function(m){typeof m=="string"&&(m=l.get(m)),r(m,function(){h()})},p.scan=o(function(A,E){if(typeof E=="string")E=new Buffer(E);else if(!Buffer.isBuffer(E))throw new Error("search must be a Buffer or a string");var y=0;e=o(function(){var C=c.indexOf(E,n+y),w=C-n-y;C!==-1?(e=null,n!=null?(l.set(A,c.slice(n,n+y+w)),n+=y+w+E.length):(l.set(A,c.slice(0,y+w)),c.splice(0,y+w+E.length)),h(),i()):w=Math.max(c.length-E.length-n-y,0),y+=w},"pending"),i()},"find"),p.peek=function(m){n=0,f.nest(function(){m.call(this,l.store),this.tap(function(){n=null})})},p}o(s,"builder");var a=YDt.light(s);a.writable=!0;var c=KDt();a.write=function(f){c.push(f),i()};var l=YQ(),u=!1,d=!1;return a.end=function(){d=!0},a.pipe=XDt.prototype.pipe,Object.getOwnPropertyNames(xDe.prototype).forEach(function(f){a[f]=xDe.prototype[f]}),a};Zp.parse=o(function(e){var r=_De(function(s,a){return function(c){if(n+s<=e.length){var l=e.slice(n,n+s);n+=s,i.set(c,a(l))}else i.set(c,null);return r}}),n=0,i=YQ();return r.vars=i.store,r.tap=function(s){return s.call(r,i.store),r},r.into=function(s,a){i.get(s)||i.set(s,{});var c=i;return i=YQ(c.get(s)),a.call(r,i.store),i=c,r},r.loop=function(s){for(var a=!1,c=o(function(){a=!0},"ender");a===!1;)s.call(r,c,i.store);return r},r.buffer=function(s,a){typeof a=="string"&&(a=i.get(a));var c=e.slice(n,Math.min(e.length,n+a));return n+=a,i.set(s,c),r},r.skip=function(s){return typeof s=="string"&&(s=i.get(s)),n+=s,r},r.scan=function(s,a){if(typeof a=="string")a=new Buffer(a);else if(!Buffer.isBuffer(a))throw new Error("search must be a Buffer or a string");i.set(s,null);for(var c=0;c+n<=e.length-a.length+1;c++){for(var l=0;l=e.length},r},"parse");function vDe(t){for(var e=0,r=0;r{var DDe=require("stream").Transform,tQt=require("util");function eA(t,e){if(!(this instanceof eA))return new eA;DDe.call(this);var r=typeof t=="object"?t.pattern:t;this.pattern=Buffer.isBuffer(r)?r:Buffer.from(r),this.requiredLength=this.pattern.length,t.requiredExtraSize&&(this.requiredLength+=t.requiredExtraSize),this.data=new Buffer(""),this.bytesSoFar=0,this.matchFn=e}o(eA,"MatcherStream");tQt.inherits(eA,DDe);eA.prototype.checkDataChunk=function(t){var e=this.data.length>=this.requiredLength;if(e){var r=this.data.indexOf(this.pattern,t?1:0);if(r>=0&&r+this.requiredLength>this.data.length){if(r>0){var n=this.data.slice(0,r);this.push(n),this.bytesSoFar+=r,this.data=this.data.slice(r)}return}if(r===-1){var i=this.data.length-this.requiredLength+1,n=this.data.slice(0,i);this.push(n),this.bytesSoFar+=i,this.data=this.data.slice(i);return}if(r>0){var n=this.data.slice(0,r);this.data=this.data.slice(r),this.push(n),this.bytesSoFar+=r}var s=this.matchFn?this.matchFn(this.data,this.bytesSoFar):!0;if(s){this.data=new Buffer("");return}return!0}};eA.prototype._transform=function(t,e,r){this.data=Buffer.concat([this.data,t]);for(var n=!0;this.checkDataChunk(!n);)n=!1;r()};eA.prototype._flush=function(t){if(this.data.length>0)for(var e=!0;this.checkDataChunk(!e);)e=!1;this.data.length>0&&(this.push(this.data),this.data=null),t()};QDe.exports=eA});var ODe=g((GNr,PDe)=>{"use strict";var e6=require("stream"),rQt=require("util").inherits;function KI(){if(!(this instanceof KI))return new KI;e6.PassThrough.call(this),this.path=null,this.type=null,this.isDirectory=!1}o(KI,"Entry");rQt(KI,e6.PassThrough);KI.prototype.autodrain=function(){return this.pipe(new e6.Transform({transform:o(function(t,e,r){r()},"transform")}))};PDe.exports=KI});var r6=g((zNr,FDe)=>{"use strict";var wf=TDe(),t6=require("stream"),nQt=require("util"),iQt=require("zlib"),sQt=kDe(),LDe=ODe(),ke={STREAM_START:0,START:1,LOCAL_FILE_HEADER:2,LOCAL_FILE_HEADER_SUFFIX:3,FILE_DATA:4,FILE_DATA_END:5,DATA_DESCRIPTOR:6,CENTRAL_DIRECTORY_FILE_HEADER:7,CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:8,CDIR64_END:9,CDIR64_END_DATA_SECTOR:10,CDIR64_LOCATOR:11,CENTRAL_DIRECTORY_END:12,CENTRAL_DIRECTORY_END_COMMENT:13,TRAILING_JUNK:14,ERROR:99},XI=4294967296,oQt=67324752,aQt=134695760,cQt=33639248,lQt=101075792,uQt=117853008,dQt=101010256;function ei(t){if(!(this instanceof ei))return new ei(t);t6.Transform.call(this),this.options=t||{},this.data=new Buffer(""),this.state=ke.STREAM_START,this.skippedBytes=0,this.parsedEntity=null,this.outStreamInfo={}}o(ei,"UnzipStream");nQt.inherits(ei,t6.Transform);ei.prototype.processDataChunk=function(t){var e;switch(this.state){case ke.STREAM_START:case ke.START:e=4;break;case ke.LOCAL_FILE_HEADER:e=26;break;case ke.LOCAL_FILE_HEADER_SUFFIX:e=this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength;break;case ke.DATA_DESCRIPTOR:e=12;break;case ke.CENTRAL_DIRECTORY_FILE_HEADER:e=42;break;case ke.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:e=this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength+this.parsedEntity.fileCommentLength;break;case ke.CDIR64_END:e=52;break;case ke.CDIR64_END_DATA_SECTOR:e=this.parsedEntity.centralDirectoryRecordSize-44;break;case ke.CDIR64_LOCATOR:e=16;break;case ke.CENTRAL_DIRECTORY_END:e=18;break;case ke.CENTRAL_DIRECTORY_END_COMMENT:e=this.parsedEntity.commentLength;break;case ke.FILE_DATA:return 0;case ke.FILE_DATA_END:return 0;case ke.TRAILING_JUNK:return this.options.debug&&console.log("found",t.length,"bytes of TRAILING_JUNK"),t.length;default:return t.length}var r=t.length;if(r>>8,(s&255)===80){a=c;break}return this.skippedBytes+=a,this.options.debug&&console.log("Skipped",this.skippedBytes,"bytes"),a}this.state=ke.ERROR;var l=i?"Not a valid zip file":"Invalid signature in zip file";if(this.options.debug){var u=t.readUInt32LE(0),d;try{d=t.slice(0,4).toString()}catch{}console.log("Unexpected signature in zip file: 0x"+u.toString(16),'"'+d+'", skipped',this.skippedBytes,"bytes")}return this.emit("error",new Error(l)),t.length}return this.skippedBytes=0,e;case ke.LOCAL_FILE_HEADER:return this.parsedEntity=this._readFile(t),this.state=ke.LOCAL_FILE_HEADER_SUFFIX,e;case ke.LOCAL_FILE_HEADER_SUFFIX:var f=new LDe,h=(this.parsedEntity.flags&2048)!==0;f.path=this._decodeString(t.slice(0,this.parsedEntity.fileNameLength),h);var m=t.slice(this.parsedEntity.fileNameLength,this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength),A=this._readExtraFields(m);if(A&&A.parsed&&(A.parsed.path&&!h&&(f.path=A.parsed.path),Number.isFinite(A.parsed.uncompressedSize)&&this.parsedEntity.uncompressedSize===XI-1&&(this.parsedEntity.uncompressedSize=A.parsed.uncompressedSize),Number.isFinite(A.parsed.compressedSize)&&this.parsedEntity.compressedSize===XI-1&&(this.parsedEntity.compressedSize=A.parsed.compressedSize)),this.parsedEntity.extra=A.parsed||{},this.options.debug){let B=Object.assign({},this.parsedEntity,{path:f.path,flags:"0x"+this.parsedEntity.flags.toString(16),extraFields:A&&A.debug});console.log("decoded LOCAL_FILE_HEADER:",JSON.stringify(B,null,2))}return this._prepareOutStream(this.parsedEntity,f),this.emit("entry",f),this.state=ke.FILE_DATA,e;case ke.CENTRAL_DIRECTORY_FILE_HEADER:return this.parsedEntity=this._readCentralDirectoryEntry(t),this.state=ke.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX,e;case ke.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:var h=(this.parsedEntity.flags&2048)!==0,p=this._decodeString(t.slice(0,this.parsedEntity.fileNameLength),h),m=t.slice(this.parsedEntity.fileNameLength,this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength),A=this._readExtraFields(m);A&&A.parsed&&A.parsed.path&&!h&&(p=A.parsed.path),this.parsedEntity.extra=A.parsed;var E=(this.parsedEntity.versionMadeBy&65280)>>8===3,y,C;if(E){y=this.parsedEntity.externalFileAttributes>>>16;var w=y>>>12;C=(w&10)===10}if(this.options.debug){let B=Object.assign({},this.parsedEntity,{path:p,flags:"0x"+this.parsedEntity.flags.toString(16),unixAttrs:y&&"0"+y.toString(8),isSymlink:C,extraFields:A.debug});console.log("decoded CENTRAL_DIRECTORY_FILE_HEADER:",JSON.stringify(B,null,2))}return this.state=ke.START,e;case ke.CDIR64_END:return this.parsedEntity=this._readEndOfCentralDirectory64(t),this.options.debug&&console.log("decoded CDIR64_END_RECORD:",this.parsedEntity),this.state=ke.CDIR64_END_DATA_SECTOR,e;case ke.CDIR64_END_DATA_SECTOR:return this.state=ke.START,e;case ke.CDIR64_LOCATOR:return this.state=ke.START,e;case ke.CENTRAL_DIRECTORY_END:return this.parsedEntity=this._readEndOfCentralDirectory(t),this.options.debug&&console.log("decoded CENTRAL_DIRECTORY_END:",this.parsedEntity),this.state=ke.CENTRAL_DIRECTORY_END_COMMENT,e;case ke.CENTRAL_DIRECTORY_END_COMMENT:return this.options.debug&&console.log("decoded CENTRAL_DIRECTORY_END_COMMENT:",t.slice(0,e).toString()),this.state=ke.TRAILING_JUNK,e;case ke.ERROR:return t.length;default:return console.log("didn't handle state #",this.state,"discarding"),t.length}};ei.prototype._prepareOutStream=function(t,e){var r=this,n=t.uncompressedSize===0&&/[\/\\]$/.test(e.path);e.path=e.path.replace(/(?<=^|[/\\]+)[.][.]+(?=[/\\]+|$)/g,"."),e.type=n?"Directory":"File",e.isDirectory=n;var i=!(t.flags&8);i&&(e.size=t.uncompressedSize);var s=t.versionsNeededToExtract<=45;if(this.outStreamInfo={stream:null,limit:i?t.compressedSize:-1,written:0},i)this.outStreamInfo.stream=new t6.PassThrough;else{var a=new Buffer(4);a.writeUInt32LE(aQt,0);var c=t.extra.zip64Mode,l=c?20:12,u={pattern:a,requiredExtraSize:l},d=new sQt(u,function(A,E){var y=r._readDataDescriptor(A,c),C=y.compressedSize===E;if(!c&&!C&&E>=XI)for(var w=E-XI;w>=0&&(C=y.compressedSize===w,!C);)w-=XI;if(C){r.state=ke.FILE_DATA_END;var B=c?24:16;return r.data.length>0?r.data=Buffer.concat([A.slice(B),r.data]):r.data=A.slice(B),!0}});this.outStreamInfo.stream=d}var f=t.flags&1||t.flags&64;if(f||!s){var h=f?"Encrypted files are not supported!":"Zip version "+Math.floor(t.versionsNeededToExtract/10)+"."+t.versionsNeededToExtract%10+" is not supported";e.skip=!0,setImmediate(()=>{r.emit("error",new Error(h))}),this.outStreamInfo.stream.pipe(new LDe().autodrain());return}var p=t.compressionMethod>0;if(p){var m=iQt.createInflateRaw();m.on("error",function(A){r.state=ke.ERROR,r.emit("error",A)}),this.outStreamInfo.stream.pipe(m).pipe(e)}else this.outStreamInfo.stream.pipe(e);this._drainAllEntries&&e.autodrain()};ei.prototype._readFile=function(t){var e=wf.parse(t).word16lu("versionsNeededToExtract").word16lu("flags").word16lu("compressionMethod").word16lu("lastModifiedTime").word16lu("lastModifiedDate").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").word16lu("fileNameLength").word16lu("extraFieldLength").vars;return e};ei.prototype._readExtraFields=function(t){var e={},r={parsed:e};this.options.debug&&(r.debug=[]);for(var n=0;n=C+4&&c&1&&(e.mtime=new Date(t.readUInt32LE(n+C)*1e3),C+=4),i.extraSize>=C+4&&c&2&&(e.atime=new Date(t.readUInt32LE(n+C)*1e3),C+=4),i.extraSize>=C+4&&c&4&&(e.ctime=new Date(t.readUInt32LE(n+C)*1e3));break;case 28789:s="Info-ZIP Unicode Path Extra Field";var l=t.readUInt8(n);if(l===1){var C=1,u=t.readUInt32LE(n+C);C+=4;var d=t.slice(n+C);e.path=d.toString()}break;case 13:case 22613:s=i.extraId===13?"PKWARE Unix":"Info-ZIP UNIX (type 1)";var C=0;if(i.extraSize>=8){var f=new Date(t.readUInt32LE(n+C)*1e3);C+=4;var h=new Date(t.readUInt32LE(n+C)*1e3);if(C+=4,e.atime=f,e.mtime=h,i.extraSize>=12){var p=t.readUInt16LE(n+C);C+=2;var m=t.readUInt16LE(n+C);C+=2,e.uid=p,e.gid=m}}break;case 30805:s="Info-ZIP UNIX (type 2)";var C=0;if(i.extraSize>=4){var p=t.readUInt16LE(n+C);C+=2;var m=t.readUInt16LE(n+C);C+=2,e.uid=p,e.gid=m}break;case 30837:s="Info-ZIP New Unix";var C=0,A=t.readUInt8(n);if(C+=1,A===1){var E=t.readUInt8(n+C);C+=1,E<=6&&(e.uid=t.readUIntLE(n+C,E)),C+=E;var y=t.readUInt8(n+C);C+=1,y<=6&&(e.gid=t.readUIntLE(n+C,y))}break;case 30062:s="ASi Unix";var C=0;if(i.extraSize>=14){var w=t.readUInt32LE(n+C);C+=4;var B=t.readUInt16LE(n+C);C+=2;var P=t.readUInt32LE(n+C);C+=4;var p=t.readUInt16LE(n+C);C+=2;var m=t.readUInt16LE(n+C);if(C+=2,e.mode=B,e.uid=p,e.gid=m,i.extraSize>14){var U=n+C,N=n+i.extraSize-14,$=this._decodeString(t.slice(U,N));e.symlink=$}}break}this.options.debug&&r.debug.push({extraId:"0x"+i.extraId.toString(16),description:s,data:t.slice(n,n+i.extraSize).inspect()}),n+=i.extraSize}return r};ei.prototype._readDataDescriptor=function(t,e){if(e){var r=wf.parse(t).word32lu("dataDescriptorSignature").word32lu("crc32").word64lu("compressedSize").word64lu("uncompressedSize").vars;return r}var r=wf.parse(t).word32lu("dataDescriptorSignature").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").vars;return r};ei.prototype._readCentralDirectoryEntry=function(t){var e=wf.parse(t).word16lu("versionMadeBy").word16lu("versionsNeededToExtract").word16lu("flags").word16lu("compressionMethod").word16lu("lastModifiedTime").word16lu("lastModifiedDate").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").word16lu("fileNameLength").word16lu("extraFieldLength").word16lu("fileCommentLength").word16lu("diskNumber").word16lu("internalFileAttributes").word32lu("externalFileAttributes").word32lu("offsetToLocalFileHeader").vars;return e};ei.prototype._readEndOfCentralDirectory64=function(t){var e=wf.parse(t).word64lu("centralDirectoryRecordSize").word16lu("versionMadeBy").word16lu("versionsNeededToExtract").word32lu("diskNumber").word32lu("diskNumberWithCentralDirectoryStart").word64lu("centralDirectoryEntries").word64lu("totalCentralDirectoryEntries").word64lu("sizeOfCentralDirectory").word64lu("offsetToStartOfCentralDirectory").vars;return e};ei.prototype._readEndOfCentralDirectory=function(t){var e=wf.parse(t).word16lu("diskNumber").word16lu("diskStart").word16lu("centralDirectoryEntries").word16lu("totalCentralDirectoryEntries").word32lu("sizeOfCentralDirectory").word32lu("offsetToStartOfCentralDirectory").word16lu("commentLength").vars;return e};var fQt="\0\u263A\u263B\u2665\u2666\u2663\u2660\u2022\u25D8\u25CB\u25D9\u2642\u2640\u266A\u266B\u263C\u25BA\u25C4\u2195\u203C\xB6\xA7\u25AC\u21A8\u2191\u2193\u2192\u2190\u221F\u2194\u25B2\u25BC !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u2302\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xA2\xA3\xA5\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0 ";ei.prototype._decodeString=function(t,e){if(e)return t.toString("utf8");if(this.options.decodeString)return this.options.decodeString(t);let r="";for(var n=0;n0&&(this.data=this.data.slice(r),this.data.length!==0););if(this.state===ke.FILE_DATA){if(this.outStreamInfo.limit>=0){var n=this.outStreamInfo.limit-this.outStreamInfo.written,i;n{if(this.state===ke.FILE_DATA_END)return this.state=ke.START,s.end(e);e()})}return}e()};ei.prototype.drainAll=function(){this._drainAllEntries=!0};ei.prototype._transform=function(t,e,r){var n=this;n.data.length>0?n.data=Buffer.concat([n.data,t]):n.data=t;var i=n.data.length,s=o(function(){if(n.data.length>0&&n.data.length0){e._parseOrOutput("buffer",function(){if(e.data.length>0)return setImmediate(function(){e._flush(t)});t()});return}if(e.state===ke.FILE_DATA)return t(new Error("Stream finished in an invalid state, uncompression failed"));setImmediate(t)};FDe.exports=ei});var UDe=g(($Nr,MDe)=>{var ZI=require("stream").Transform,hQt=require("util"),pQt=r6();function If(t){if(!(this instanceof If))return new If(t);var e=t||{};ZI.call(this,{readableObjectMode:!0}),this.opts=t||{},this.unzipStream=new pQt(this.opts);var r=this;this.unzipStream.on("entry",function(n){r.push(n)}),this.unzipStream.on("error",function(n){r.emit("error",n)})}o(If,"ParserStream");hQt.inherits(If,ZI);If.prototype._transform=function(t,e,r){this.unzipStream.write(t,e,r)};If.prototype._flush=function(t){var e=this;this.unzipStream.end(function(){process.nextTick(function(){e.emit("close")}),t()})};If.prototype.on=function(t,e){return t==="entry"?ZI.prototype.on.call(this,"data",e):ZI.prototype.on.call(this,t,e)};If.prototype.drainAll=function(){return this.unzipStream.drainAll(),this.pipe(new ZI({objectMode:!0,transform:o(function(t,e,r){r()},"transform")}))};MDe.exports=If});var zDe=g((WNr,HDe)=>{var eS=require("path"),qDe=require("fs"),GDe=parseInt("0777",8);HDe.exports=nE.mkdirp=nE.mkdirP=nE;function nE(t,e,r,n){typeof e=="function"?(r=e,e={}):(!e||typeof e!="object")&&(e={mode:e});var i=e.mode,s=e.fs||qDe;i===void 0&&(i=GDe),n||(n=null);var a=r||function(){};t=eS.resolve(t),s.mkdir(t,i,function(c){if(!c)return n=n||t,a(null,n);switch(c.code){case"ENOENT":if(eS.dirname(t)===t)return a(c);nE(eS.dirname(t),e,function(l,u){l?a(l,u):nE(t,e,a,u)});break;default:s.stat(t,function(l,u){l||!u.isDirectory()?a(c,n):a(null,n)});break}})}o(nE,"mkdirP");nE.sync=o(function t(e,r,n){(!r||typeof r!="object")&&(r={mode:r});var i=r.mode,s=r.fs||qDe;i===void 0&&(i=GDe),n||(n=null),e=eS.resolve(e);try{s.mkdirSync(e,i),n=n||e}catch(c){switch(c.code){case"ENOENT":n=t(eS.dirname(e),r,n),t(e,r,n);break;default:var a;try{a=s.statSync(e)}catch{throw c}if(!a.isDirectory())throw c;break}}return n},"sync")});var WDe=g((YNr,jDe)=>{var AQt=require("fs"),VDe=require("path"),mQt=require("util"),gQt=zDe(),$De=require("stream").Transform,yQt=r6();function Sf(t){if(!(this instanceof Sf))return new Sf(t);$De.call(this),this.opts=t||{},this.unzipStream=new yQt(this.opts),this.unfinishedEntries=0,this.afterFlushWait=!1,this.createdDirectories={};var e=this;this.unzipStream.on("entry",this._processEntry.bind(this)),this.unzipStream.on("error",function(r){e.emit("error",r)})}o(Sf,"Extract");mQt.inherits(Sf,$De);Sf.prototype._transform=function(t,e,r){this.unzipStream.write(t,e,r)};Sf.prototype._flush=function(t){var e=this,r=o(function(){process.nextTick(function(){e.emit("close")}),t()},"allDone");this.unzipStream.end(function(){if(e.unfinishedEntries>0)return e.afterFlushWait=!0,e.on("await-finished",r);r()})};Sf.prototype._processEntry=function(t){var e=this,r=VDe.join(this.opts.path,t.path),n=t.isDirectory?r:VDe.dirname(r);this.unfinishedEntries++;var i=o(function(){var s=AQt.createWriteStream(r);s.on("close",function(){e.unfinishedEntries--,e._notifyAwaiter()}),s.on("error",function(a){e.emit("error",a)}),t.pipe(s)},"writeFileFn");if(this.createdDirectories[n]||n===".")return i();gQt(n,function(s){if(s)return e.emit("error",s);if(e.createdDirectories[n]=!0,t.isDirectory){e.unfinishedEntries--,e._notifyAwaiter();return}i()})};Sf.prototype._notifyAwaiter=function(){this.afterFlushWait&&this.unfinishedEntries===0&&(this.emit("await-finished"),this.afterFlushWait=!1)};jDe.exports=Sf});var JDe=g(n6=>{"use strict";n6.Parse=UDe();n6.Extract=WDe()});var oQe=g((s6,o6)=>{(function(t,e){typeof s6=="object"&&typeof o6<"u"?o6.exports=e():typeof define=="function"&&define.amd?define(e):t.Bottleneck=e()})(s6,(function(){"use strict";var t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function e(Ee){return Ee&&Ee.default||Ee}o(e,"getCjsExportFromNamespace");var r=o(function(Ee,O,x={}){var F,q,z;for(F in O)z=O[F],x[F]=(q=Ee[F])!=null?q:z;return x},"load"),n=o(function(Ee,O,x={}){var F,q;for(F in Ee)q=Ee[F],O[F]!==void 0&&(x[F]=q);return x},"overwrite"),i={load:r,overwrite:n},s;s=class{static{o(this,"DLList")}constructor(O,x){this.incr=O,this.decr=x,this._first=null,this._last=null,this.length=0}push(O){var x;this.length++,typeof this.incr=="function"&&this.incr(),x={value:O,prev:this._last,next:null},this._last!=null?(this._last.next=x,this._last=x):this._first=this._last=x}shift(){var O;if(this._first!=null)return this.length--,typeof this.decr=="function"&&this.decr(),O=this._first.value,(this._first=this._first.next)!=null?this._first.prev=null:this._last=null,O}first(){if(this._first!=null)return this._first.value}getArray(){var O,x,F;for(O=this._first,F=[];O!=null;)F.push((x=O,O=O.next,x.value));return F}forEachShift(O){var x;for(x=this.shift();x!=null;)O(x),x=this.shift()}debug(){var O,x,F,q,z;for(O=this._first,z=[];O!=null;)z.push((x=O,O=O.next,{value:x.value,prev:(F=x.prev)!=null?F.value:void 0,next:(q=x.next)!=null?q.value:void 0}));return z}};var a=s,c;c=class{static{o(this,"Events")}constructor(O){if(this.instance=O,this._events={},this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null)throw new Error("An Emitter already exists for this object");this.instance.on=(x,F)=>this._addListener(x,"many",F),this.instance.once=(x,F)=>this._addListener(x,"once",F),this.instance.removeAllListeners=(x=null)=>x!=null?delete this._events[x]:this._events={}}_addListener(O,x,F){var q;return(q=this._events)[O]==null&&(q[O]=[]),this._events[O].push({cb:F,status:x}),this.instance}listenerCount(O){return this._events[O]!=null?this._events[O].length:0}async trigger(O,...x){var F,q;try{return O!=="debug"&&this.trigger("debug",`Event triggered: ${O}`,x),this._events[O]==null?void 0:(this._events[O]=this._events[O].filter(function(z){return z.status!=="none"}),q=this._events[O].map(async z=>{var Y,Ae;if(z.status!=="none"){z.status==="once"&&(z.status="none");try{return Ae=typeof z.cb=="function"?z.cb(...x):void 0,typeof Ae?.then=="function"?await Ae:Ae}catch(Et){return Y=Et,this.trigger("error",Y),null}}}),(await Promise.all(q)).find(function(z){return z!=null}))}catch(z){return F=z,this.trigger("error",F),null}}};var l=c,u,d,f;u=a,d=l,f=class{static{o(this,"Queues")}constructor(O){var x;this.Events=new d(this),this._length=0,this._lists=(function(){var F,q,z;for(z=[],x=F=1,q=O;1<=q?F<=q:F>=q;x=1<=q?++F:--F)z.push(new u((()=>this.incr()),(()=>this.decr())));return z}).call(this)}incr(){if(this._length++===0)return this.Events.trigger("leftzero")}decr(){if(--this._length===0)return this.Events.trigger("zero")}push(O){return this._lists[O.options.priority].push(O)}queued(O){return O!=null?this._lists[O].length:this._length}shiftAll(O){return this._lists.forEach(function(x){return x.forEachShift(O)})}getFirst(O=this._lists){var x,F,q;for(x=0,F=O.length;x0)return q;return[]}shiftLastFrom(O){return this.getFirst(this._lists.slice(O).reverse()).shift()}};var h=f,p;p=class extends Error{static{o(this,"BottleneckError")}};var m=p,A,E,y,C,w;C=10,E=5,w=i,A=m,y=class{static{o(this,"Job")}constructor(O,x,F,q,z,Y,Ae,Et){this.task=O,this.args=x,this.rejectOnDrop=z,this.Events=Y,this._states=Ae,this.Promise=Et,this.options=w.load(F,q),this.options.priority=this._sanitizePriority(this.options.priority),this.options.id===q.id&&(this.options.id=`${this.options.id}-${this._randomIndex()}`),this.promise=new this.Promise((Kr,Vt)=>{this._resolve=Kr,this._reject=Vt}),this.retryCount=0}_sanitizePriority(O){var x;return x=~~O!==O?E:O,x<0?0:x>C-1?C-1:x}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:O,message:x="This job has been dropped by Bottleneck"}={}){return this._states.remove(this.options.id)?(this.rejectOnDrop&&this._reject(O??new A(x)),this.Events.trigger("dropped",{args:this.args,options:this.options,task:this.task,promise:this.promise}),!0):!1}_assertStatus(O){var x;if(x=this._states.jobStatus(this.options.id),!(x===O||O==="DONE"&&x===null))throw new A(`Invalid job status ${x}, expected ${O}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}doReceive(){return this._states.start(this.options.id),this.Events.trigger("received",{args:this.args,options:this.options})}doQueue(O,x){return this._assertStatus("RECEIVED"),this._states.next(this.options.id),this.Events.trigger("queued",{args:this.args,options:this.options,reachedHWM:O,blocked:x})}doRun(){return this.retryCount===0?(this._assertStatus("QUEUED"),this._states.next(this.options.id)):this._assertStatus("EXECUTING"),this.Events.trigger("scheduled",{args:this.args,options:this.options})}async doExecute(O,x,F,q){var z,Y,Ae;this.retryCount===0?(this._assertStatus("RUNNING"),this._states.next(this.options.id)):this._assertStatus("EXECUTING"),Y={args:this.args,options:this.options,retryCount:this.retryCount},this.Events.trigger("executing",Y);try{if(Ae=await(O!=null?O.schedule(this.options,this.task,...this.args):this.task(...this.args)),x())return this.doDone(Y),await q(this.options,Y),this._assertStatus("DONE"),this._resolve(Ae)}catch(Et){return z=Et,this._onFailure(z,Y,x,F,q)}}doExpire(O,x,F){var q,z;return this._states.jobStatus(this.options.id==="RUNNING")&&this._states.next(this.options.id),this._assertStatus("EXECUTING"),z={args:this.args,options:this.options,retryCount:this.retryCount},q=new A(`This job timed out after ${this.options.expiration} ms.`),this._onFailure(q,z,O,x,F)}async _onFailure(O,x,F,q,z){var Y,Ae;if(F())return Y=await this.Events.trigger("failed",O,x),Y!=null?(Ae=~~Y,this.Events.trigger("retry",`Retrying ${this.options.id} after ${Ae} ms`,x),this.retryCount++,q(Ae)):(this.doDone(x),await z(this.options,x),this._assertStatus("DONE"),this._reject(O))}doDone(O){return this._assertStatus("EXECUTING"),this._states.next(this.options.id),this.Events.trigger("done",O)}};var B=y,P,U,N;N=i,P=m,U=class{static{o(this,"LocalDatastore")}constructor(O,x,F){this.instance=O,this.storeOptions=x,this.clientId=this.instance._randomIndex(),N.load(F,F,this),this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now(),this._running=0,this._done=0,this._unblockTime=0,this.ready=this.Promise.resolve(),this.clients={},this._startHeartbeat()}_startHeartbeat(){var O;return this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)?typeof(O=this.heartbeat=setInterval(()=>{var x,F,q,z,Y;if(z=Date.now(),this.storeOptions.reservoirRefreshInterval!=null&&z>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval&&(this._lastReservoirRefresh=z,this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount,this.instance._drainAll(this.computeCapacity())),this.storeOptions.reservoirIncreaseInterval!=null&&z>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval&&({reservoirIncreaseAmount:x,reservoirIncreaseMaximum:q,reservoir:Y}=this.storeOptions,this._lastReservoirIncrease=z,F=q!=null?Math.min(x,q-Y):x,F>0))return this.storeOptions.reservoir+=F,this.instance._drainAll(this.computeCapacity())},this.heartbeatInterval)).unref=="function"?O.unref():void 0:clearInterval(this.heartbeat)}async __publish__(O){return await this.yieldLoop(),this.instance.Events.trigger("message",O.toString())}async __disconnect__(O){return await this.yieldLoop(),clearInterval(this.heartbeat),this.Promise.resolve()}yieldLoop(O=0){return new this.Promise(function(x,F){return setTimeout(x,O)})}computePenalty(){var O;return(O=this.storeOptions.penalty)!=null?O:15*this.storeOptions.minTime||5e3}async __updateSettings__(O){return await this.yieldLoop(),N.overwrite(O,O,this.storeOptions),this._startHeartbeat(),this.instance._drainAll(this.computeCapacity()),!0}async __running__(){return await this.yieldLoop(),this._running}async __queued__(){return await this.yieldLoop(),this.instance.queued()}async __done__(){return await this.yieldLoop(),this._done}async __groupCheck__(O){return await this.yieldLoop(),this._nextRequest+this.timeout=O}check(O,x){return this.conditionsCheck(O)&&this._nextRequest-x<=0}async __check__(O){var x;return await this.yieldLoop(),x=Date.now(),this.check(O,x)}async __register__(O,x,F){var q,z;return await this.yieldLoop(),q=Date.now(),this.conditionsCheck(x)?(this._running+=x,this.storeOptions.reservoir!=null&&(this.storeOptions.reservoir-=x),z=Math.max(this._nextRequest-q,0),this._nextRequest=q+z+this.storeOptions.minTime,{success:!0,wait:z,reservoir:this.storeOptions.reservoir}):{success:!1}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(O,x){var F,q,z;if(await this.yieldLoop(),this.storeOptions.maxConcurrent!=null&&x>this.storeOptions.maxConcurrent)throw new P(`Impossible to add a job having a weight of ${x} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`);return q=Date.now(),z=this.storeOptions.highWater!=null&&O===this.storeOptions.highWater&&!this.check(x,q),F=this.strategyIsBlock()&&(z||this.isBlocked(q)),F&&(this._unblockTime=q+this.computePenalty(),this._nextRequest=this._unblockTime+this.storeOptions.minTime,this.instance._dropAllQueued()),{reachedHWM:z,blocked:F,strategy:this.storeOptions.strategy}}async __free__(O,x){return await this.yieldLoop(),this._running-=x,this._done+=x,this.instance._drainAll(this.computeCapacity()),{running:this._running}}};var $=U,Q,H;Q=m,H=class{static{o(this,"States")}constructor(O){this.status=O,this._jobs={},this.counts=this.status.map(function(){return 0})}next(O){var x,F;if(x=this._jobs[O],F=x+1,x!=null&&F(O[this.status[F]]=x,O)),{})}};var V=H,W,ue;W=a,ue=class{static{o(this,"Sync")}constructor(O,x){this.schedule=this.schedule.bind(this),this.name=O,this.Promise=x,this._running=0,this._queue=new W}isEmpty(){return this._queue.length===0}async _tryToRun(){var O,x,F,q,z,Y,Ae;if(this._running<1&&this._queue.length>0)return this._running++,{task:Ae,args:O,resolve:z,reject:q}=this._queue.shift(),x=await(async function(){try{return Y=await Ae(...O),function(){return z(Y)}}catch(Et){return F=Et,function(){return q(F)}}})(),this._running--,this._tryToRun(),x()}schedule(O,...x){var F,q,z;return z=q=null,F=new this.Promise(function(Y,Ae){return z=Y,q=Ae}),this._queue.push({task:O,args:x,resolve:z,reject:q}),this._tryToRun(),F}};var de=ue,Se="2.19.5",K={version:Se},fe=Object.freeze({version:Se,default:K}),Tt=o(()=>console.log("You must import the full version of Bottleneck in order to use this feature."),"require$$2"),yt=o(()=>console.log("You must import the full version of Bottleneck in order to use this feature."),"require$$3"),sr=o(()=>console.log("You must import the full version of Bottleneck in order to use this feature."),"require$$4"),or,Ji,bi,tc,Hf,ti;ti=i,or=l,tc=Tt,bi=yt,Hf=sr,Ji=(function(){class Ee{static{o(this,"Group")}constructor(x={}){this.deleteKey=this.deleteKey.bind(this),this.limiterOptions=x,ti.load(this.limiterOptions,this.defaults,this),this.Events=new or(this),this.instances={},this.Bottleneck=ha,this._startAutoCleanup(),this.sharedConnection=this.connection!=null,this.connection==null&&(this.limiterOptions.datastore==="redis"?this.connection=new tc(Object.assign({},this.limiterOptions,{Events:this.Events})):this.limiterOptions.datastore==="ioredis"&&(this.connection=new bi(Object.assign({},this.limiterOptions,{Events:this.Events}))))}key(x=""){var F;return(F=this.instances[x])!=null?F:(()=>{var q;return q=this.instances[x]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${x}`,timeout:this.timeout,connection:this.connection})),this.Events.trigger("created",q,x),q})()}async deleteKey(x=""){var F,q;return q=this.instances[x],this.connection&&(F=await this.connection.__runCommand__(["del",...Hf.allKeys(`${this.id}-${x}`)])),q!=null&&(delete this.instances[x],await q.disconnect()),q!=null||F>0}limiters(){var x,F,q,z;F=this.instances,q=[];for(x in F)z=F[x],q.push({key:x,limiter:z});return q}keys(){return Object.keys(this.instances)}async clusterKeys(){var x,F,q,z,Y,Ae,Et,Kr,Vt;if(this.connection==null)return this.Promise.resolve(this.keys());for(Ae=[],x=null,Vt=`b_${this.id}-`.length,F=9;x!==0;)for([Kr,q]=await this.connection.__runCommand__(["scan",x??0,"match",`b_${this.id}-*_settings`,"count",1e4]),x=~~Kr,z=0,Et=q.length;z{var F,q,z,Y,Ae,Et;Ae=Date.now(),z=this.instances,Y=[];for(q in z){Et=z[q];try{await Et._store.__groupCheck__(Ae)?Y.push(this.deleteKey(q)):Y.push(void 0)}catch(Kr){F=Kr,Y.push(Et.Events.trigger("error",F))}}return Y},this.timeout/2)).unref=="function"?x.unref():void 0}updateSettings(x={}){if(ti.overwrite(x,this.defaults,this),ti.overwrite(x,x,this.limiterOptions),x.timeout!=null)return this._startAutoCleanup()}disconnect(x=!0){var F;if(!this.sharedConnection)return(F=this.connection)!=null?F.disconnect(x):void 0}}return Ee.prototype.defaults={timeout:1e3*60*5,connection:null,Promise,id:"group-key"},Ee}).call(t);var aP=Ji,IA,JE,Ml;Ml=i,JE=l,IA=(function(){class Ee{static{o(this,"Batcher")}constructor(x={}){this.options=x,Ml.load(this.options,this.defaults,this),this.Events=new JE(this),this._arr=[],this._resetPromise(),this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise((x,F)=>this._resolve=x)}_flush(){return clearTimeout(this._timeout),this._lastFlush=Date.now(),this._resolve(),this.Events.trigger("batch",this._arr),this._arr=[],this._resetPromise()}add(x){var F;return this._arr.push(x),F=this._promise,this._arr.length===this.maxSize?this._flush():this.maxTime!=null&&this._arr.length===1&&(this._timeout=setTimeout(()=>this._flush(),this.maxTime)),F}}return Ee.prototype.defaults={maxTime:null,maxSize:null,Promise},Ee}).call(t);var td=IA,YE=o(()=>console.log("You must import the full version of Bottleneck in order to use this feature."),"require$$4$1"),cP=e(fe),kS,PS,KE,XE,OS,SA,LS,ZE,BA,xA,Bs,FS=[].splice;SA=10,PS=5,Bs=i,LS=h,XE=B,OS=$,ZE=YE,KE=l,BA=V,xA=de,kS=(function(){class Ee{static{o(this,"Bottleneck")}constructor(x={},...F){var q,z;this._addToQueue=this._addToQueue.bind(this),this._validateOptions(x,F),Bs.load(x,this.instanceDefaults,this),this._queues=new LS(SA),this._scheduled={},this._states=new BA(["RECEIVED","QUEUED","RUNNING","EXECUTING"].concat(this.trackDoneStatus?["DONE"]:[])),this._limiter=null,this.Events=new KE(this),this._submitLock=new xA("submit",this.Promise),this._registerLock=new xA("register",this.Promise),z=Bs.load(x,this.storeDefaults,{}),this._store=(function(){if(this.datastore==="redis"||this.datastore==="ioredis"||this.connection!=null)return q=Bs.load(x,this.redisStoreDefaults,{}),new ZE(this,z,q);if(this.datastore==="local")return q=Bs.load(x,this.localStoreDefaults,{}),new OS(this,z,q);throw new Ee.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}).call(this),this._queues.on("leftzero",()=>{var Y;return(Y=this._store.heartbeat)!=null&&typeof Y.ref=="function"?Y.ref():void 0}),this._queues.on("zero",()=>{var Y;return(Y=this._store.heartbeat)!=null&&typeof Y.unref=="function"?Y.unref():void 0})}_validateOptions(x,F){if(!(x!=null&&typeof x=="object"&&F.length===0))throw new Ee.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.")}ready(){return this._store.ready}clients(){return this._store.clients}channel(){return`b_${this.id}`}channel_client(){return`b_${this.id}_${this._store.clientId}`}publish(x){return this._store.__publish__(x)}disconnect(x=!0){return this._store.__disconnect__(x)}chain(x){return this._limiter=x,this}queued(x){return this._queues.queued(x)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(x){return this._states.jobStatus(x)}jobs(x){return this._states.statusJobs(x)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(x=1){return this._store.__check__(x)}_clearGlobalState(x){return this._scheduled[x]!=null?(clearTimeout(this._scheduled[x].expiration),delete this._scheduled[x],!0):!1}async _free(x,F,q,z){var Y,Ae;try{if({running:Ae}=await this._store.__free__(x,q.weight),this.Events.trigger("debug",`Freed ${q.id}`,z),Ae===0&&this.empty())return this.Events.trigger("idle")}catch(Et){return Y=Et,this.Events.trigger("error",Y)}}_run(x,F,q){var z,Y,Ae;return F.doRun(),z=this._clearGlobalState.bind(this,x),Ae=this._run.bind(this,x,F),Y=this._free.bind(this,x,F),this._scheduled[x]={timeout:setTimeout(()=>F.doExecute(this._limiter,z,Ae,Y),q),expiration:F.options.expiration!=null?setTimeout(function(){return F.doExpire(z,Ae,Y)},q+F.options.expiration):void 0,job:F}}_drainOne(x){return this._registerLock.schedule(()=>{var F,q,z,Y,Ae;return this.queued()===0?this.Promise.resolve(null):(Ae=this._queues.getFirst(),{options:Y,args:F}=z=Ae.first(),x!=null&&Y.weight>x?this.Promise.resolve(null):(this.Events.trigger("debug",`Draining ${Y.id}`,{args:F,options:Y}),q=this._randomIndex(),this._store.__register__(q,Y.weight,Y.expiration).then(({success:Et,wait:Kr,reservoir:Vt})=>{var zf;return this.Events.trigger("debug",`Drained ${Y.id}`,{success:Et,args:F,options:Y}),Et?(Ae.shift(),zf=this.empty(),zf&&this.Events.trigger("empty"),Vt===0&&this.Events.trigger("depleted",zf),this._run(q,z,Kr),this.Promise.resolve(Y.weight)):this.Promise.resolve(null)})))})}_drainAll(x,F=0){return this._drainOne(x).then(q=>{var z;return q!=null?(z=x!=null?x-q:x,this._drainAll(z,F+q)):this.Promise.resolve(F)}).catch(q=>this.Events.trigger("error",q))}_dropAllQueued(x){return this._queues.shiftAll(function(F){return F.doDrop({message:x})})}stop(x={}){var F,q;return x=Bs.load(x,this.stopDefaults),q=o(z=>{var Y;return Y=o(()=>{var Ae;return Ae=this._states.counts,Ae[0]+Ae[1]+Ae[2]+Ae[3]===z},"finished"),new this.Promise((Ae,Et)=>Y()?Ae():this.on("done",()=>{if(Y())return this.removeAllListeners("done"),Ae()}))},"waitForExecuting"),F=x.dropWaitingJobs?(this._run=function(z,Y){return Y.doDrop({message:x.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule(()=>this._submitLock.schedule(()=>{var z,Y,Ae;Y=this._scheduled;for(z in Y)Ae=Y[z],this.jobStatus(Ae.job.options.id)==="RUNNING"&&(clearTimeout(Ae.timeout),clearTimeout(Ae.expiration),Ae.job.doDrop({message:x.dropErrorMessage}));return this._dropAllQueued(x.dropErrorMessage),q(0)}))):this.schedule({priority:SA-1,weight:0},()=>q(1)),this._receive=function(z){return z._reject(new Ee.prototype.BottleneckError(x.enqueueErrorMessage))},this.stop=()=>this.Promise.reject(new Ee.prototype.BottleneckError("stop() has already been called")),F}async _addToQueue(x){var F,q,z,Y,Ae,Et,Kr;({args:F,options:Y}=x);try{({reachedHWM:Ae,blocked:q,strategy:Kr}=await this._store.__submit__(this.queued(),Y.weight))}catch(Vt){return z=Vt,this.Events.trigger("debug",`Could not queue ${Y.id}`,{args:F,options:Y,error:z}),x.doDrop({error:z}),!1}return q?(x.doDrop(),!0):Ae&&(Et=Kr===Ee.prototype.strategy.LEAK?this._queues.shiftLastFrom(Y.priority):Kr===Ee.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(Y.priority+1):Kr===Ee.prototype.strategy.OVERFLOW?x:void 0,Et?.doDrop(),Et==null||Kr===Ee.prototype.strategy.OVERFLOW)?(Et==null&&x.doDrop(),Ae):(x.doQueue(Ae,q),this._queues.push(x),await this._drainAll(),Ae)}_receive(x){return this._states.jobStatus(x.options.id)!=null?(x._reject(new Ee.prototype.BottleneckError(`A job with the same id already exists (id=${x.options.id})`)),!1):(x.doReceive(),this._submitLock.schedule(this._addToQueue,x))}submit(...x){var F,q,z,Y,Ae,Et,Kr;return typeof x[0]=="function"?(Ae=x,[q,...x]=Ae,[F]=FS.call(x,-1),Y=Bs.load({},this.jobDefaults)):(Et=x,[Y,q,...x]=Et,[F]=FS.call(x,-1),Y=Bs.load(Y,this.jobDefaults)),Kr=o((...Vt)=>new this.Promise(function(zf,vA){return q(...Vt,function(...MS){return(MS[0]!=null?vA:zf)(MS)})}),"task"),z=new XE(Kr,x,Y,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),z.promise.then(function(Vt){return typeof F=="function"?F(...Vt):void 0}).catch(function(Vt){return Array.isArray(Vt)?typeof F=="function"?F(...Vt):void 0:typeof F=="function"?F(Vt):void 0}),this._receive(z)}schedule(...x){var F,q,z;return typeof x[0]=="function"?([z,...x]=x,q={}):[q,z,...x]=x,F=new XE(z,x,q,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),this._receive(F),F.promise}wrap(x){var F,q;return F=this.schedule.bind(this),q=o(function(...z){return F(x.bind(this),...z)},"wrapped"),q.withOptions=function(z,...Y){return F(z,x,...Y)},q}async updateSettings(x={}){return await this._store.__updateSettings__(Bs.overwrite(x,this.storeDefaults)),Bs.overwrite(x,this.instanceDefaults,this),this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(x=0){return this._store.__incrementReservoir__(x)}}return Ee.default=Ee,Ee.Events=KE,Ee.version=Ee.prototype.version=cP.version,Ee.strategy=Ee.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3},Ee.BottleneckError=Ee.prototype.BottleneckError=m,Ee.Group=Ee.prototype.Group=aP,Ee.RedisConnection=Ee.prototype.RedisConnection=Tt,Ee.IORedisConnection=Ee.prototype.IORedisConnection=yt,Ee.Batcher=Ee.prototype.Batcher=td,Ee.prototype.jobDefaults={priority:PS,weight:1,expiration:null,id:""},Ee.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:Ee.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null},Ee.prototype.localStoreDefaults={Promise,timeout:null,heartbeatInterval:250},Ee.prototype.redisStoreDefaults={Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:!1,connection:null},Ee.prototype.instanceDefaults={datastore:"local",connection:null,id:"",rejectOnDrop:!0,trackDoneStatus:!1,Promise},Ee.prototype.stopDefaults={enqueueErrorMessage:"This limiter has been stopped and cannot accept new jobs.",dropWaitingJobs:!0,dropErrorMessage:"This limiter has been stopped."},Ee}).call(t);var ha=kS,eC=ha;return eC}))});var f1=g(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});xf.Signature=xf.Envelope=void 0;xf.Envelope={fromJSON(t){return{payload:d1(t.payload)?Buffer.from(d1e(t.payload)):Buffer.alloc(0),payloadType:d1(t.payloadType)?globalThis.String(t.payloadType):"",signatures:globalThis.Array.isArray(t?.signatures)?t.signatures.map(e=>xf.Signature.fromJSON(e)):[]}},toJSON(t){let e={};return t.payload.length!==0&&(e.payload=f1e(t.payload)),t.payloadType!==""&&(e.payloadType=t.payloadType),t.signatures?.length&&(e.signatures=t.signatures.map(r=>xf.Signature.toJSON(r))),e}};xf.Signature={fromJSON(t){return{sig:d1(t.sig)?Buffer.from(d1e(t.sig)):Buffer.alloc(0),keyid:d1(t.keyid)?globalThis.String(t.keyid):""}},toJSON(t){let e={};return t.sig.length!==0&&(e.sig=f1e(t.sig)),t.keyid!==""&&(e.keyid=t.keyid),e}};function d1e(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(d1e,"bytesFromBase64");function f1e(t){return globalThis.Buffer.from(t).toString("base64")}o(f1e,"base64FromBytes");function d1(t){return t!=null}o(d1,"isSet")});var p1e=g(h1=>{"use strict";Object.defineProperty(h1,"__esModule",{value:!0});h1.Timestamp=void 0;h1.Timestamp={fromJSON(t){return{seconds:h1e(t.seconds)?globalThis.String(t.seconds):"0",nanos:h1e(t.nanos)?globalThis.Number(t.nanos):0}},toJSON(t){let e={};return t.seconds!=="0"&&(e.seconds=t.seconds),t.nanos!==0&&(e.nanos=Math.round(t.nanos)),e}};function h1e(t){return t!=null}o(h1e,"isSet")});var $u=g(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.TimeRange=Me.X509CertificateChain=Me.SubjectAlternativeName=Me.X509Certificate=Me.DistinguishedName=Me.ObjectIdentifierValuePair=Me.ObjectIdentifier=Me.PublicKeyIdentifier=Me.PublicKey=Me.RFC3161SignedTimestamp=Me.LogId=Me.MessageSignature=Me.HashOutput=Me.SubjectAlternativeNameType=Me.PublicKeyDetails=Me.HashAlgorithm=void 0;Me.hashAlgorithmFromJSON=m1e;Me.hashAlgorithmToJSON=g1e;Me.publicKeyDetailsFromJSON=y1e;Me.publicKeyDetailsToJSON=E1e;Me.subjectAlternativeNameTypeFromJSON=C1e;Me.subjectAlternativeNameTypeToJSON=b1e;var Xkt=p1e(),Es;(function(t){t[t.HASH_ALGORITHM_UNSPECIFIED=0]="HASH_ALGORITHM_UNSPECIFIED",t[t.SHA2_256=1]="SHA2_256",t[t.SHA2_384=2]="SHA2_384",t[t.SHA2_512=3]="SHA2_512",t[t.SHA3_256=4]="SHA3_256",t[t.SHA3_384=5]="SHA3_384"})(Es||(Me.HashAlgorithm=Es={}));function m1e(t){switch(t){case 0:case"HASH_ALGORITHM_UNSPECIFIED":return Es.HASH_ALGORITHM_UNSPECIFIED;case 1:case"SHA2_256":return Es.SHA2_256;case 2:case"SHA2_384":return Es.SHA2_384;case 3:case"SHA2_512":return Es.SHA2_512;case 4:case"SHA3_256":return Es.SHA3_256;case 5:case"SHA3_384":return Es.SHA3_384;default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum HashAlgorithm")}}o(m1e,"hashAlgorithmFromJSON");function g1e(t){switch(t){case Es.HASH_ALGORITHM_UNSPECIFIED:return"HASH_ALGORITHM_UNSPECIFIED";case Es.SHA2_256:return"SHA2_256";case Es.SHA2_384:return"SHA2_384";case Es.SHA2_512:return"SHA2_512";case Es.SHA3_256:return"SHA3_256";case Es.SHA3_384:return"SHA3_384";default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum HashAlgorithm")}}o(g1e,"hashAlgorithmToJSON");var Fe;(function(t){t[t.PUBLIC_KEY_DETAILS_UNSPECIFIED=0]="PUBLIC_KEY_DETAILS_UNSPECIFIED",t[t.PKCS1_RSA_PKCS1V5=1]="PKCS1_RSA_PKCS1V5",t[t.PKCS1_RSA_PSS=2]="PKCS1_RSA_PSS",t[t.PKIX_RSA_PKCS1V5=3]="PKIX_RSA_PKCS1V5",t[t.PKIX_RSA_PSS=4]="PKIX_RSA_PSS",t[t.PKIX_RSA_PKCS1V15_2048_SHA256=9]="PKIX_RSA_PKCS1V15_2048_SHA256",t[t.PKIX_RSA_PKCS1V15_3072_SHA256=10]="PKIX_RSA_PKCS1V15_3072_SHA256",t[t.PKIX_RSA_PKCS1V15_4096_SHA256=11]="PKIX_RSA_PKCS1V15_4096_SHA256",t[t.PKIX_RSA_PSS_2048_SHA256=16]="PKIX_RSA_PSS_2048_SHA256",t[t.PKIX_RSA_PSS_3072_SHA256=17]="PKIX_RSA_PSS_3072_SHA256",t[t.PKIX_RSA_PSS_4096_SHA256=18]="PKIX_RSA_PSS_4096_SHA256",t[t.PKIX_ECDSA_P256_HMAC_SHA_256=6]="PKIX_ECDSA_P256_HMAC_SHA_256",t[t.PKIX_ECDSA_P256_SHA_256=5]="PKIX_ECDSA_P256_SHA_256",t[t.PKIX_ECDSA_P384_SHA_384=12]="PKIX_ECDSA_P384_SHA_384",t[t.PKIX_ECDSA_P521_SHA_512=13]="PKIX_ECDSA_P521_SHA_512",t[t.PKIX_ED25519=7]="PKIX_ED25519",t[t.PKIX_ED25519_PH=8]="PKIX_ED25519_PH",t[t.PKIX_ECDSA_P384_SHA_256=19]="PKIX_ECDSA_P384_SHA_256",t[t.PKIX_ECDSA_P521_SHA_256=20]="PKIX_ECDSA_P521_SHA_256",t[t.LMS_SHA256=14]="LMS_SHA256",t[t.LMOTS_SHA256=15]="LMOTS_SHA256",t[t.ML_DSA_65=21]="ML_DSA_65",t[t.ML_DSA_87=22]="ML_DSA_87"})(Fe||(Me.PublicKeyDetails=Fe={}));function y1e(t){switch(t){case 0:case"PUBLIC_KEY_DETAILS_UNSPECIFIED":return Fe.PUBLIC_KEY_DETAILS_UNSPECIFIED;case 1:case"PKCS1_RSA_PKCS1V5":return Fe.PKCS1_RSA_PKCS1V5;case 2:case"PKCS1_RSA_PSS":return Fe.PKCS1_RSA_PSS;case 3:case"PKIX_RSA_PKCS1V5":return Fe.PKIX_RSA_PKCS1V5;case 4:case"PKIX_RSA_PSS":return Fe.PKIX_RSA_PSS;case 9:case"PKIX_RSA_PKCS1V15_2048_SHA256":return Fe.PKIX_RSA_PKCS1V15_2048_SHA256;case 10:case"PKIX_RSA_PKCS1V15_3072_SHA256":return Fe.PKIX_RSA_PKCS1V15_3072_SHA256;case 11:case"PKIX_RSA_PKCS1V15_4096_SHA256":return Fe.PKIX_RSA_PKCS1V15_4096_SHA256;case 16:case"PKIX_RSA_PSS_2048_SHA256":return Fe.PKIX_RSA_PSS_2048_SHA256;case 17:case"PKIX_RSA_PSS_3072_SHA256":return Fe.PKIX_RSA_PSS_3072_SHA256;case 18:case"PKIX_RSA_PSS_4096_SHA256":return Fe.PKIX_RSA_PSS_4096_SHA256;case 6:case"PKIX_ECDSA_P256_HMAC_SHA_256":return Fe.PKIX_ECDSA_P256_HMAC_SHA_256;case 5:case"PKIX_ECDSA_P256_SHA_256":return Fe.PKIX_ECDSA_P256_SHA_256;case 12:case"PKIX_ECDSA_P384_SHA_384":return Fe.PKIX_ECDSA_P384_SHA_384;case 13:case"PKIX_ECDSA_P521_SHA_512":return Fe.PKIX_ECDSA_P521_SHA_512;case 7:case"PKIX_ED25519":return Fe.PKIX_ED25519;case 8:case"PKIX_ED25519_PH":return Fe.PKIX_ED25519_PH;case 19:case"PKIX_ECDSA_P384_SHA_256":return Fe.PKIX_ECDSA_P384_SHA_256;case 20:case"PKIX_ECDSA_P521_SHA_256":return Fe.PKIX_ECDSA_P521_SHA_256;case 14:case"LMS_SHA256":return Fe.LMS_SHA256;case 15:case"LMOTS_SHA256":return Fe.LMOTS_SHA256;case 21:case"ML_DSA_65":return Fe.ML_DSA_65;case 22:case"ML_DSA_87":return Fe.ML_DSA_87;default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum PublicKeyDetails")}}o(y1e,"publicKeyDetailsFromJSON");function E1e(t){switch(t){case Fe.PUBLIC_KEY_DETAILS_UNSPECIFIED:return"PUBLIC_KEY_DETAILS_UNSPECIFIED";case Fe.PKCS1_RSA_PKCS1V5:return"PKCS1_RSA_PKCS1V5";case Fe.PKCS1_RSA_PSS:return"PKCS1_RSA_PSS";case Fe.PKIX_RSA_PKCS1V5:return"PKIX_RSA_PKCS1V5";case Fe.PKIX_RSA_PSS:return"PKIX_RSA_PSS";case Fe.PKIX_RSA_PKCS1V15_2048_SHA256:return"PKIX_RSA_PKCS1V15_2048_SHA256";case Fe.PKIX_RSA_PKCS1V15_3072_SHA256:return"PKIX_RSA_PKCS1V15_3072_SHA256";case Fe.PKIX_RSA_PKCS1V15_4096_SHA256:return"PKIX_RSA_PKCS1V15_4096_SHA256";case Fe.PKIX_RSA_PSS_2048_SHA256:return"PKIX_RSA_PSS_2048_SHA256";case Fe.PKIX_RSA_PSS_3072_SHA256:return"PKIX_RSA_PSS_3072_SHA256";case Fe.PKIX_RSA_PSS_4096_SHA256:return"PKIX_RSA_PSS_4096_SHA256";case Fe.PKIX_ECDSA_P256_HMAC_SHA_256:return"PKIX_ECDSA_P256_HMAC_SHA_256";case Fe.PKIX_ECDSA_P256_SHA_256:return"PKIX_ECDSA_P256_SHA_256";case Fe.PKIX_ECDSA_P384_SHA_384:return"PKIX_ECDSA_P384_SHA_384";case Fe.PKIX_ECDSA_P521_SHA_512:return"PKIX_ECDSA_P521_SHA_512";case Fe.PKIX_ED25519:return"PKIX_ED25519";case Fe.PKIX_ED25519_PH:return"PKIX_ED25519_PH";case Fe.PKIX_ECDSA_P384_SHA_256:return"PKIX_ECDSA_P384_SHA_256";case Fe.PKIX_ECDSA_P521_SHA_256:return"PKIX_ECDSA_P521_SHA_256";case Fe.LMS_SHA256:return"LMS_SHA256";case Fe.LMOTS_SHA256:return"LMOTS_SHA256";case Fe.ML_DSA_65:return"ML_DSA_65";case Fe.ML_DSA_87:return"ML_DSA_87";default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum PublicKeyDetails")}}o(E1e,"publicKeyDetailsToJSON");var Sl;(function(t){t[t.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED=0]="SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED",t[t.EMAIL=1]="EMAIL",t[t.URI=2]="URI",t[t.OTHER_NAME=3]="OTHER_NAME"})(Sl||(Me.SubjectAlternativeNameType=Sl={}));function C1e(t){switch(t){case 0:case"SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED":return Sl.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED;case 1:case"EMAIL":return Sl.EMAIL;case 2:case"URI":return Sl.URI;case 3:case"OTHER_NAME":return Sl.OTHER_NAME;default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum SubjectAlternativeNameType")}}o(C1e,"subjectAlternativeNameTypeFromJSON");function b1e(t){switch(t){case Sl.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED:return"SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED";case Sl.EMAIL:return"EMAIL";case Sl.URI:return"URI";case Sl.OTHER_NAME:return"OTHER_NAME";default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum SubjectAlternativeNameType")}}o(b1e,"subjectAlternativeNameTypeToJSON");Me.HashOutput={fromJSON(t){return{algorithm:an(t.algorithm)?m1e(t.algorithm):0,digest:an(t.digest)?Buffer.from(sA(t.digest)):Buffer.alloc(0)}},toJSON(t){let e={};return t.algorithm!==0&&(e.algorithm=g1e(t.algorithm)),t.digest.length!==0&&(e.digest=oA(t.digest)),e}};Me.MessageSignature={fromJSON(t){return{messageDigest:an(t.messageDigest)?Me.HashOutput.fromJSON(t.messageDigest):void 0,signature:an(t.signature)?Buffer.from(sA(t.signature)):Buffer.alloc(0)}},toJSON(t){let e={};return t.messageDigest!==void 0&&(e.messageDigest=Me.HashOutput.toJSON(t.messageDigest)),t.signature.length!==0&&(e.signature=oA(t.signature)),e}};Me.LogId={fromJSON(t){return{keyId:an(t.keyId)?Buffer.from(sA(t.keyId)):Buffer.alloc(0)}},toJSON(t){let e={};return t.keyId.length!==0&&(e.keyId=oA(t.keyId)),e}};Me.RFC3161SignedTimestamp={fromJSON(t){return{signedTimestamp:an(t.signedTimestamp)?Buffer.from(sA(t.signedTimestamp)):Buffer.alloc(0)}},toJSON(t){let e={};return t.signedTimestamp.length!==0&&(e.signedTimestamp=oA(t.signedTimestamp)),e}};Me.PublicKey={fromJSON(t){return{rawBytes:an(t.rawBytes)?Buffer.from(sA(t.rawBytes)):void 0,keyDetails:an(t.keyDetails)?y1e(t.keyDetails):0,validFor:an(t.validFor)?Me.TimeRange.fromJSON(t.validFor):void 0}},toJSON(t){let e={};return t.rawBytes!==void 0&&(e.rawBytes=oA(t.rawBytes)),t.keyDetails!==0&&(e.keyDetails=E1e(t.keyDetails)),t.validFor!==void 0&&(e.validFor=Me.TimeRange.toJSON(t.validFor)),e}};Me.PublicKeyIdentifier={fromJSON(t){return{hint:an(t.hint)?globalThis.String(t.hint):""}},toJSON(t){let e={};return t.hint!==""&&(e.hint=t.hint),e}};Me.ObjectIdentifier={fromJSON(t){return{id:globalThis.Array.isArray(t?.id)?t.id.map(e=>globalThis.Number(e)):[]}},toJSON(t){let e={};return t.id?.length&&(e.id=t.id.map(r=>Math.round(r))),e}};Me.ObjectIdentifierValuePair={fromJSON(t){return{oid:an(t.oid)?Me.ObjectIdentifier.fromJSON(t.oid):void 0,value:an(t.value)?Buffer.from(sA(t.value)):Buffer.alloc(0)}},toJSON(t){let e={};return t.oid!==void 0&&(e.oid=Me.ObjectIdentifier.toJSON(t.oid)),t.value.length!==0&&(e.value=oA(t.value)),e}};Me.DistinguishedName={fromJSON(t){return{organization:an(t.organization)?globalThis.String(t.organization):"",commonName:an(t.commonName)?globalThis.String(t.commonName):""}},toJSON(t){let e={};return t.organization!==""&&(e.organization=t.organization),t.commonName!==""&&(e.commonName=t.commonName),e}};Me.X509Certificate={fromJSON(t){return{rawBytes:an(t.rawBytes)?Buffer.from(sA(t.rawBytes)):Buffer.alloc(0)}},toJSON(t){let e={};return t.rawBytes.length!==0&&(e.rawBytes=oA(t.rawBytes)),e}};Me.SubjectAlternativeName={fromJSON(t){return{type:an(t.type)?C1e(t.type):0,identity:an(t.regexp)?{$case:"regexp",regexp:globalThis.String(t.regexp)}:an(t.value)?{$case:"value",value:globalThis.String(t.value)}:void 0}},toJSON(t){let e={};return t.type!==0&&(e.type=b1e(t.type)),t.identity?.$case==="regexp"?e.regexp=t.identity.regexp:t.identity?.$case==="value"&&(e.value=t.identity.value),e}};Me.X509CertificateChain={fromJSON(t){return{certificates:globalThis.Array.isArray(t?.certificates)?t.certificates.map(e=>Me.X509Certificate.fromJSON(e)):[]}},toJSON(t){let e={};return t.certificates?.length&&(e.certificates=t.certificates.map(r=>Me.X509Certificate.toJSON(r))),e}};Me.TimeRange={fromJSON(t){return{start:an(t.start)?A1e(t.start):void 0,end:an(t.end)?A1e(t.end):void 0}},toJSON(t){let e={};return t.start!==void 0&&(e.start=t.start.toISOString()),t.end!==void 0&&(e.end=t.end.toISOString()),e}};function sA(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(sA,"bytesFromBase64");function oA(t){return globalThis.Buffer.from(t).toString("base64")}o(oA,"base64FromBytes");function Zkt(t){let e=(globalThis.Number(t.seconds)||0)*1e3;return e+=(t.nanos||0)/1e6,new globalThis.Date(e)}o(Zkt,"fromTimestamp");function A1e(t){return t instanceof globalThis.Date?t:typeof t=="string"?new globalThis.Date(t):Zkt(Xkt.Timestamp.fromJSON(t))}o(A1e,"fromJsonTimestamp");function an(t){return t!=null}o(an,"isSet")});var _6=g(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.TransparencyLogEntry=cn.InclusionPromise=cn.InclusionProof=cn.Checkpoint=cn.KindVersion=void 0;var w1e=$u();cn.KindVersion={fromJSON(t){return{kind:Wi(t.kind)?globalThis.String(t.kind):"",version:Wi(t.version)?globalThis.String(t.version):""}},toJSON(t){let e={};return t.kind!==""&&(e.kind=t.kind),t.version!==""&&(e.version=t.version),e}};cn.Checkpoint={fromJSON(t){return{envelope:Wi(t.envelope)?globalThis.String(t.envelope):""}},toJSON(t){let e={};return t.envelope!==""&&(e.envelope=t.envelope),e}};cn.InclusionProof={fromJSON(t){return{logIndex:Wi(t.logIndex)?globalThis.String(t.logIndex):"0",rootHash:Wi(t.rootHash)?Buffer.from(p1(t.rootHash)):Buffer.alloc(0),treeSize:Wi(t.treeSize)?globalThis.String(t.treeSize):"0",hashes:globalThis.Array.isArray(t?.hashes)?t.hashes.map(e=>Buffer.from(p1(e))):[],checkpoint:Wi(t.checkpoint)?cn.Checkpoint.fromJSON(t.checkpoint):void 0}},toJSON(t){let e={};return t.logIndex!=="0"&&(e.logIndex=t.logIndex),t.rootHash.length!==0&&(e.rootHash=A1(t.rootHash)),t.treeSize!=="0"&&(e.treeSize=t.treeSize),t.hashes?.length&&(e.hashes=t.hashes.map(r=>A1(r))),t.checkpoint!==void 0&&(e.checkpoint=cn.Checkpoint.toJSON(t.checkpoint)),e}};cn.InclusionPromise={fromJSON(t){return{signedEntryTimestamp:Wi(t.signedEntryTimestamp)?Buffer.from(p1(t.signedEntryTimestamp)):Buffer.alloc(0)}},toJSON(t){let e={};return t.signedEntryTimestamp.length!==0&&(e.signedEntryTimestamp=A1(t.signedEntryTimestamp)),e}};cn.TransparencyLogEntry={fromJSON(t){return{logIndex:Wi(t.logIndex)?globalThis.String(t.logIndex):"0",logId:Wi(t.logId)?w1e.LogId.fromJSON(t.logId):void 0,kindVersion:Wi(t.kindVersion)?cn.KindVersion.fromJSON(t.kindVersion):void 0,integratedTime:Wi(t.integratedTime)?globalThis.String(t.integratedTime):"0",inclusionPromise:Wi(t.inclusionPromise)?cn.InclusionPromise.fromJSON(t.inclusionPromise):void 0,inclusionProof:Wi(t.inclusionProof)?cn.InclusionProof.fromJSON(t.inclusionProof):void 0,canonicalizedBody:Wi(t.canonicalizedBody)?Buffer.from(p1(t.canonicalizedBody)):Buffer.alloc(0)}},toJSON(t){let e={};return t.logIndex!=="0"&&(e.logIndex=t.logIndex),t.logId!==void 0&&(e.logId=w1e.LogId.toJSON(t.logId)),t.kindVersion!==void 0&&(e.kindVersion=cn.KindVersion.toJSON(t.kindVersion)),t.integratedTime!=="0"&&(e.integratedTime=t.integratedTime),t.inclusionPromise!==void 0&&(e.inclusionPromise=cn.InclusionPromise.toJSON(t.inclusionPromise)),t.inclusionProof!==void 0&&(e.inclusionProof=cn.InclusionProof.toJSON(t.inclusionProof)),t.canonicalizedBody.length!==0&&(e.canonicalizedBody=A1(t.canonicalizedBody)),e}};function p1(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(p1,"bytesFromBase64");function A1(t){return globalThis.Buffer.from(t).toString("base64")}o(A1,"base64FromBytes");function Wi(t){return t!=null}o(Wi,"isSet")});var R6=g(sa=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});sa.Bundle=sa.VerificationMaterial=sa.TimestampVerificationData=void 0;var I1e=f1(),Bl=$u(),S1e=_6();sa.TimestampVerificationData={fromJSON(t){return{rfc3161Timestamps:globalThis.Array.isArray(t?.rfc3161Timestamps)?t.rfc3161Timestamps.map(e=>Bl.RFC3161SignedTimestamp.fromJSON(e)):[]}},toJSON(t){let e={};return t.rfc3161Timestamps?.length&&(e.rfc3161Timestamps=t.rfc3161Timestamps.map(r=>Bl.RFC3161SignedTimestamp.toJSON(r))),e}};sa.VerificationMaterial={fromJSON(t){return{content:vf(t.publicKey)?{$case:"publicKey",publicKey:Bl.PublicKeyIdentifier.fromJSON(t.publicKey)}:vf(t.x509CertificateChain)?{$case:"x509CertificateChain",x509CertificateChain:Bl.X509CertificateChain.fromJSON(t.x509CertificateChain)}:vf(t.certificate)?{$case:"certificate",certificate:Bl.X509Certificate.fromJSON(t.certificate)}:void 0,tlogEntries:globalThis.Array.isArray(t?.tlogEntries)?t.tlogEntries.map(e=>S1e.TransparencyLogEntry.fromJSON(e)):[],timestampVerificationData:vf(t.timestampVerificationData)?sa.TimestampVerificationData.fromJSON(t.timestampVerificationData):void 0}},toJSON(t){let e={};return t.content?.$case==="publicKey"?e.publicKey=Bl.PublicKeyIdentifier.toJSON(t.content.publicKey):t.content?.$case==="x509CertificateChain"?e.x509CertificateChain=Bl.X509CertificateChain.toJSON(t.content.x509CertificateChain):t.content?.$case==="certificate"&&(e.certificate=Bl.X509Certificate.toJSON(t.content.certificate)),t.tlogEntries?.length&&(e.tlogEntries=t.tlogEntries.map(r=>S1e.TransparencyLogEntry.toJSON(r))),t.timestampVerificationData!==void 0&&(e.timestampVerificationData=sa.TimestampVerificationData.toJSON(t.timestampVerificationData)),e}};sa.Bundle={fromJSON(t){return{mediaType:vf(t.mediaType)?globalThis.String(t.mediaType):"",verificationMaterial:vf(t.verificationMaterial)?sa.VerificationMaterial.fromJSON(t.verificationMaterial):void 0,content:vf(t.messageSignature)?{$case:"messageSignature",messageSignature:Bl.MessageSignature.fromJSON(t.messageSignature)}:vf(t.dsseEnvelope)?{$case:"dsseEnvelope",dsseEnvelope:I1e.Envelope.fromJSON(t.dsseEnvelope)}:void 0}},toJSON(t){let e={};return t.mediaType!==""&&(e.mediaType=t.mediaType),t.verificationMaterial!==void 0&&(e.verificationMaterial=sa.VerificationMaterial.toJSON(t.verificationMaterial)),t.content?.$case==="messageSignature"?e.messageSignature=Bl.MessageSignature.toJSON(t.content.messageSignature):t.content?.$case==="dsseEnvelope"&&(e.dsseEnvelope=I1e.Envelope.toJSON(t.content.dsseEnvelope)),e}};function vf(t){return t!=null}o(vf,"isSet")});var T6=g(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.ClientTrustConfig=ze.ServiceConfiguration=ze.Service=ze.SigningConfig=ze.TrustedRoot=ze.CertificateAuthority=ze.TransparencyLogInstance=ze.ServiceSelector=void 0;ze.serviceSelectorFromJSON=B1e;ze.serviceSelectorToJSON=x1e;var yi=$u(),xl;(function(t){t[t.SERVICE_SELECTOR_UNDEFINED=0]="SERVICE_SELECTOR_UNDEFINED",t[t.ALL=1]="ALL",t[t.ANY=2]="ANY",t[t.EXACT=3]="EXACT"})(xl||(ze.ServiceSelector=xl={}));function B1e(t){switch(t){case 0:case"SERVICE_SELECTOR_UNDEFINED":return xl.SERVICE_SELECTOR_UNDEFINED;case 1:case"ALL":return xl.ALL;case 2:case"ANY":return xl.ANY;case 3:case"EXACT":return xl.EXACT;default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum ServiceSelector")}}o(B1e,"serviceSelectorFromJSON");function x1e(t){switch(t){case xl.SERVICE_SELECTOR_UNDEFINED:return"SERVICE_SELECTOR_UNDEFINED";case xl.ALL:return"ALL";case xl.ANY:return"ANY";case xl.EXACT:return"EXACT";default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum ServiceSelector")}}o(x1e,"serviceSelectorToJSON");ze.TransparencyLogInstance={fromJSON(t){return{baseUrl:Ar(t.baseUrl)?globalThis.String(t.baseUrl):"",hashAlgorithm:Ar(t.hashAlgorithm)?(0,yi.hashAlgorithmFromJSON)(t.hashAlgorithm):0,publicKey:Ar(t.publicKey)?yi.PublicKey.fromJSON(t.publicKey):void 0,logId:Ar(t.logId)?yi.LogId.fromJSON(t.logId):void 0,checkpointKeyId:Ar(t.checkpointKeyId)?yi.LogId.fromJSON(t.checkpointKeyId):void 0,operator:Ar(t.operator)?globalThis.String(t.operator):""}},toJSON(t){let e={};return t.baseUrl!==""&&(e.baseUrl=t.baseUrl),t.hashAlgorithm!==0&&(e.hashAlgorithm=(0,yi.hashAlgorithmToJSON)(t.hashAlgorithm)),t.publicKey!==void 0&&(e.publicKey=yi.PublicKey.toJSON(t.publicKey)),t.logId!==void 0&&(e.logId=yi.LogId.toJSON(t.logId)),t.checkpointKeyId!==void 0&&(e.checkpointKeyId=yi.LogId.toJSON(t.checkpointKeyId)),t.operator!==""&&(e.operator=t.operator),e}};ze.CertificateAuthority={fromJSON(t){return{subject:Ar(t.subject)?yi.DistinguishedName.fromJSON(t.subject):void 0,uri:Ar(t.uri)?globalThis.String(t.uri):"",certChain:Ar(t.certChain)?yi.X509CertificateChain.fromJSON(t.certChain):void 0,validFor:Ar(t.validFor)?yi.TimeRange.fromJSON(t.validFor):void 0,operator:Ar(t.operator)?globalThis.String(t.operator):""}},toJSON(t){let e={};return t.subject!==void 0&&(e.subject=yi.DistinguishedName.toJSON(t.subject)),t.uri!==""&&(e.uri=t.uri),t.certChain!==void 0&&(e.certChain=yi.X509CertificateChain.toJSON(t.certChain)),t.validFor!==void 0&&(e.validFor=yi.TimeRange.toJSON(t.validFor)),t.operator!==""&&(e.operator=t.operator),e}};ze.TrustedRoot={fromJSON(t){return{mediaType:Ar(t.mediaType)?globalThis.String(t.mediaType):"",tlogs:globalThis.Array.isArray(t?.tlogs)?t.tlogs.map(e=>ze.TransparencyLogInstance.fromJSON(e)):[],certificateAuthorities:globalThis.Array.isArray(t?.certificateAuthorities)?t.certificateAuthorities.map(e=>ze.CertificateAuthority.fromJSON(e)):[],ctlogs:globalThis.Array.isArray(t?.ctlogs)?t.ctlogs.map(e=>ze.TransparencyLogInstance.fromJSON(e)):[],timestampAuthorities:globalThis.Array.isArray(t?.timestampAuthorities)?t.timestampAuthorities.map(e=>ze.CertificateAuthority.fromJSON(e)):[]}},toJSON(t){let e={};return t.mediaType!==""&&(e.mediaType=t.mediaType),t.tlogs?.length&&(e.tlogs=t.tlogs.map(r=>ze.TransparencyLogInstance.toJSON(r))),t.certificateAuthorities?.length&&(e.certificateAuthorities=t.certificateAuthorities.map(r=>ze.CertificateAuthority.toJSON(r))),t.ctlogs?.length&&(e.ctlogs=t.ctlogs.map(r=>ze.TransparencyLogInstance.toJSON(r))),t.timestampAuthorities?.length&&(e.timestampAuthorities=t.timestampAuthorities.map(r=>ze.CertificateAuthority.toJSON(r))),e}};ze.SigningConfig={fromJSON(t){return{mediaType:Ar(t.mediaType)?globalThis.String(t.mediaType):"",caUrls:globalThis.Array.isArray(t?.caUrls)?t.caUrls.map(e=>ze.Service.fromJSON(e)):[],oidcUrls:globalThis.Array.isArray(t?.oidcUrls)?t.oidcUrls.map(e=>ze.Service.fromJSON(e)):[],rekorTlogUrls:globalThis.Array.isArray(t?.rekorTlogUrls)?t.rekorTlogUrls.map(e=>ze.Service.fromJSON(e)):[],rekorTlogConfig:Ar(t.rekorTlogConfig)?ze.ServiceConfiguration.fromJSON(t.rekorTlogConfig):void 0,tsaUrls:globalThis.Array.isArray(t?.tsaUrls)?t.tsaUrls.map(e=>ze.Service.fromJSON(e)):[],tsaConfig:Ar(t.tsaConfig)?ze.ServiceConfiguration.fromJSON(t.tsaConfig):void 0}},toJSON(t){let e={};return t.mediaType!==""&&(e.mediaType=t.mediaType),t.caUrls?.length&&(e.caUrls=t.caUrls.map(r=>ze.Service.toJSON(r))),t.oidcUrls?.length&&(e.oidcUrls=t.oidcUrls.map(r=>ze.Service.toJSON(r))),t.rekorTlogUrls?.length&&(e.rekorTlogUrls=t.rekorTlogUrls.map(r=>ze.Service.toJSON(r))),t.rekorTlogConfig!==void 0&&(e.rekorTlogConfig=ze.ServiceConfiguration.toJSON(t.rekorTlogConfig)),t.tsaUrls?.length&&(e.tsaUrls=t.tsaUrls.map(r=>ze.Service.toJSON(r))),t.tsaConfig!==void 0&&(e.tsaConfig=ze.ServiceConfiguration.toJSON(t.tsaConfig)),e}};ze.Service={fromJSON(t){return{url:Ar(t.url)?globalThis.String(t.url):"",majorApiVersion:Ar(t.majorApiVersion)?globalThis.Number(t.majorApiVersion):0,validFor:Ar(t.validFor)?yi.TimeRange.fromJSON(t.validFor):void 0,operator:Ar(t.operator)?globalThis.String(t.operator):""}},toJSON(t){let e={};return t.url!==""&&(e.url=t.url),t.majorApiVersion!==0&&(e.majorApiVersion=Math.round(t.majorApiVersion)),t.validFor!==void 0&&(e.validFor=yi.TimeRange.toJSON(t.validFor)),t.operator!==""&&(e.operator=t.operator),e}};ze.ServiceConfiguration={fromJSON(t){return{selector:Ar(t.selector)?B1e(t.selector):0,count:Ar(t.count)?globalThis.Number(t.count):0}},toJSON(t){let e={};return t.selector!==0&&(e.selector=x1e(t.selector)),t.count!==0&&(e.count=Math.round(t.count)),e}};ze.ClientTrustConfig={fromJSON(t){return{mediaType:Ar(t.mediaType)?globalThis.String(t.mediaType):"",trustedRoot:Ar(t.trustedRoot)?ze.TrustedRoot.fromJSON(t.trustedRoot):void 0,signingConfig:Ar(t.signingConfig)?ze.SigningConfig.fromJSON(t.signingConfig):void 0}},toJSON(t){let e={};return t.mediaType!==""&&(e.mediaType=t.mediaType),t.trustedRoot!==void 0&&(e.trustedRoot=ze.TrustedRoot.toJSON(t.trustedRoot)),t.signingConfig!==void 0&&(e.signingConfig=ze.SigningConfig.toJSON(t.signingConfig)),e}};function Ar(t){return t!=null}o(Ar,"isSet")});var _1e=g(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.Input=Ve.Artifact=Ve.ArtifactVerificationOptions_ObserverTimestampOptions=Ve.ArtifactVerificationOptions_TlogIntegratedTimestampOptions=Ve.ArtifactVerificationOptions_TimestampAuthorityOptions=Ve.ArtifactVerificationOptions_CtlogOptions=Ve.ArtifactVerificationOptions_TlogOptions=Ve.ArtifactVerificationOptions=Ve.PublicKeyIdentities=Ve.CertificateIdentities=Ve.CertificateIdentity=void 0;var v1e=R6(),Nf=$u(),N1e=T6();Ve.CertificateIdentity={fromJSON(t){return{issuer:zt(t.issuer)?globalThis.String(t.issuer):"",san:zt(t.san)?Nf.SubjectAlternativeName.fromJSON(t.san):void 0,oids:globalThis.Array.isArray(t?.oids)?t.oids.map(e=>Nf.ObjectIdentifierValuePair.fromJSON(e)):[]}},toJSON(t){let e={};return t.issuer!==""&&(e.issuer=t.issuer),t.san!==void 0&&(e.san=Nf.SubjectAlternativeName.toJSON(t.san)),t.oids?.length&&(e.oids=t.oids.map(r=>Nf.ObjectIdentifierValuePair.toJSON(r))),e}};Ve.CertificateIdentities={fromJSON(t){return{identities:globalThis.Array.isArray(t?.identities)?t.identities.map(e=>Ve.CertificateIdentity.fromJSON(e)):[]}},toJSON(t){let e={};return t.identities?.length&&(e.identities=t.identities.map(r=>Ve.CertificateIdentity.toJSON(r))),e}};Ve.PublicKeyIdentities={fromJSON(t){return{publicKeys:globalThis.Array.isArray(t?.publicKeys)?t.publicKeys.map(e=>Nf.PublicKey.fromJSON(e)):[]}},toJSON(t){let e={};return t.publicKeys?.length&&(e.publicKeys=t.publicKeys.map(r=>Nf.PublicKey.toJSON(r))),e}};Ve.ArtifactVerificationOptions={fromJSON(t){return{signers:zt(t.certificateIdentities)?{$case:"certificateIdentities",certificateIdentities:Ve.CertificateIdentities.fromJSON(t.certificateIdentities)}:zt(t.publicKeys)?{$case:"publicKeys",publicKeys:Ve.PublicKeyIdentities.fromJSON(t.publicKeys)}:void 0,tlogOptions:zt(t.tlogOptions)?Ve.ArtifactVerificationOptions_TlogOptions.fromJSON(t.tlogOptions):void 0,ctlogOptions:zt(t.ctlogOptions)?Ve.ArtifactVerificationOptions_CtlogOptions.fromJSON(t.ctlogOptions):void 0,tsaOptions:zt(t.tsaOptions)?Ve.ArtifactVerificationOptions_TimestampAuthorityOptions.fromJSON(t.tsaOptions):void 0,integratedTsOptions:zt(t.integratedTsOptions)?Ve.ArtifactVerificationOptions_TlogIntegratedTimestampOptions.fromJSON(t.integratedTsOptions):void 0,observerOptions:zt(t.observerOptions)?Ve.ArtifactVerificationOptions_ObserverTimestampOptions.fromJSON(t.observerOptions):void 0}},toJSON(t){let e={};return t.signers?.$case==="certificateIdentities"?e.certificateIdentities=Ve.CertificateIdentities.toJSON(t.signers.certificateIdentities):t.signers?.$case==="publicKeys"&&(e.publicKeys=Ve.PublicKeyIdentities.toJSON(t.signers.publicKeys)),t.tlogOptions!==void 0&&(e.tlogOptions=Ve.ArtifactVerificationOptions_TlogOptions.toJSON(t.tlogOptions)),t.ctlogOptions!==void 0&&(e.ctlogOptions=Ve.ArtifactVerificationOptions_CtlogOptions.toJSON(t.ctlogOptions)),t.tsaOptions!==void 0&&(e.tsaOptions=Ve.ArtifactVerificationOptions_TimestampAuthorityOptions.toJSON(t.tsaOptions)),t.integratedTsOptions!==void 0&&(e.integratedTsOptions=Ve.ArtifactVerificationOptions_TlogIntegratedTimestampOptions.toJSON(t.integratedTsOptions)),t.observerOptions!==void 0&&(e.observerOptions=Ve.ArtifactVerificationOptions_ObserverTimestampOptions.toJSON(t.observerOptions)),e}};Ve.ArtifactVerificationOptions_TlogOptions={fromJSON(t){return{threshold:zt(t.threshold)?globalThis.Number(t.threshold):0,performOnlineVerification:zt(t.performOnlineVerification)?globalThis.Boolean(t.performOnlineVerification):!1,disable:zt(t.disable)?globalThis.Boolean(t.disable):!1}},toJSON(t){let e={};return t.threshold!==0&&(e.threshold=Math.round(t.threshold)),t.performOnlineVerification!==!1&&(e.performOnlineVerification=t.performOnlineVerification),t.disable!==!1&&(e.disable=t.disable),e}};Ve.ArtifactVerificationOptions_CtlogOptions={fromJSON(t){return{threshold:zt(t.threshold)?globalThis.Number(t.threshold):0,disable:zt(t.disable)?globalThis.Boolean(t.disable):!1}},toJSON(t){let e={};return t.threshold!==0&&(e.threshold=Math.round(t.threshold)),t.disable!==!1&&(e.disable=t.disable),e}};Ve.ArtifactVerificationOptions_TimestampAuthorityOptions={fromJSON(t){return{threshold:zt(t.threshold)?globalThis.Number(t.threshold):0,disable:zt(t.disable)?globalThis.Boolean(t.disable):!1}},toJSON(t){let e={};return t.threshold!==0&&(e.threshold=Math.round(t.threshold)),t.disable!==!1&&(e.disable=t.disable),e}};Ve.ArtifactVerificationOptions_TlogIntegratedTimestampOptions={fromJSON(t){return{threshold:zt(t.threshold)?globalThis.Number(t.threshold):0,disable:zt(t.disable)?globalThis.Boolean(t.disable):!1}},toJSON(t){let e={};return t.threshold!==0&&(e.threshold=Math.round(t.threshold)),t.disable!==!1&&(e.disable=t.disable),e}};Ve.ArtifactVerificationOptions_ObserverTimestampOptions={fromJSON(t){return{threshold:zt(t.threshold)?globalThis.Number(t.threshold):0,disable:zt(t.disable)?globalThis.Boolean(t.disable):!1}},toJSON(t){let e={};return t.threshold!==0&&(e.threshold=Math.round(t.threshold)),t.disable!==!1&&(e.disable=t.disable),e}};Ve.Artifact={fromJSON(t){return{data:zt(t.artifactUri)?{$case:"artifactUri",artifactUri:globalThis.String(t.artifactUri)}:zt(t.artifact)?{$case:"artifact",artifact:Buffer.from(ePt(t.artifact))}:zt(t.artifactDigest)?{$case:"artifactDigest",artifactDigest:Nf.HashOutput.fromJSON(t.artifactDigest)}:void 0}},toJSON(t){let e={};return t.data?.$case==="artifactUri"?e.artifactUri=t.data.artifactUri:t.data?.$case==="artifact"?e.artifact=tPt(t.data.artifact):t.data?.$case==="artifactDigest"&&(e.artifactDigest=Nf.HashOutput.toJSON(t.data.artifactDigest)),e}};Ve.Input={fromJSON(t){return{artifactTrustRoot:zt(t.artifactTrustRoot)?N1e.TrustedRoot.fromJSON(t.artifactTrustRoot):void 0,artifactVerificationOptions:zt(t.artifactVerificationOptions)?Ve.ArtifactVerificationOptions.fromJSON(t.artifactVerificationOptions):void 0,bundle:zt(t.bundle)?v1e.Bundle.fromJSON(t.bundle):void 0,artifact:zt(t.artifact)?Ve.Artifact.fromJSON(t.artifact):void 0}},toJSON(t){let e={};return t.artifactTrustRoot!==void 0&&(e.artifactTrustRoot=N1e.TrustedRoot.toJSON(t.artifactTrustRoot)),t.artifactVerificationOptions!==void 0&&(e.artifactVerificationOptions=Ve.ArtifactVerificationOptions.toJSON(t.artifactVerificationOptions)),t.bundle!==void 0&&(e.bundle=v1e.Bundle.toJSON(t.bundle)),t.artifact!==void 0&&(e.artifact=Ve.Artifact.toJSON(t.artifact)),e}};function ePt(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(ePt,"bytesFromBase64");function tPt(t){return globalThis.Buffer.from(t).toString("base64")}o(tPt,"base64FromBytes");function zt(t){return t!=null}o(zt,"isSet")});var fE=g(oa=>{"use strict";var rPt=oa&&oa.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),dE=oa&&oa.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&rPt(e,t,r)};Object.defineProperty(oa,"__esModule",{value:!0});dE(f1(),oa);dE(R6(),oa);dE($u(),oa);dE(_6(),oa);dE(T6(),oa);dE(_1e(),oa)});var m1=g(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.BUNDLE_V03_MEDIA_TYPE=Cs.BUNDLE_V03_LEGACY_MEDIA_TYPE=Cs.BUNDLE_V02_MEDIA_TYPE=Cs.BUNDLE_V01_MEDIA_TYPE=void 0;Cs.isBundleWithCertificateChain=nPt;Cs.isBundleWithPublicKey=iPt;Cs.isBundleWithMessageSignature=sPt;Cs.isBundleWithDsseEnvelope=oPt;Cs.BUNDLE_V01_MEDIA_TYPE="application/vnd.dev.sigstore.bundle+json;version=0.1";Cs.BUNDLE_V02_MEDIA_TYPE="application/vnd.dev.sigstore.bundle+json;version=0.2";Cs.BUNDLE_V03_LEGACY_MEDIA_TYPE="application/vnd.dev.sigstore.bundle+json;version=0.3";Cs.BUNDLE_V03_MEDIA_TYPE="application/vnd.dev.sigstore.bundle.v0.3+json";function nPt(t){return t.verificationMaterial.content.$case==="x509CertificateChain"}o(nPt,"isBundleWithCertificateChain");function iPt(t){return t.verificationMaterial.content.$case==="publicKey"}o(iPt,"isBundleWithPublicKey");function sPt(t){return t.content.$case==="messageSignature"}o(sPt,"isBundleWithMessageSignature");function oPt(t){return t.content.$case==="dsseEnvelope"}o(oPt,"isBundleWithDsseEnvelope")});var T1e=g(y1=>{"use strict";Object.defineProperty(y1,"__esModule",{value:!0});y1.toMessageSignatureBundle=cPt;y1.toDSSEBundle=lPt;var aPt=fE(),g1=m1();function cPt(t){return{mediaType:t.certificateChain?g1.BUNDLE_V02_MEDIA_TYPE:g1.BUNDLE_V03_MEDIA_TYPE,content:{$case:"messageSignature",messageSignature:{messageDigest:{algorithm:aPt.HashAlgorithm.SHA2_256,digest:t.digest},signature:t.signature}},verificationMaterial:R1e(t)}}o(cPt,"toMessageSignatureBundle");function lPt(t){return{mediaType:t.certificateChain?g1.BUNDLE_V02_MEDIA_TYPE:g1.BUNDLE_V03_MEDIA_TYPE,content:{$case:"dsseEnvelope",dsseEnvelope:uPt(t)},verificationMaterial:R1e(t)}}o(lPt,"toDSSEBundle");function uPt(t){return{payloadType:t.artifactType,payload:t.artifact,signatures:[dPt(t)]}}o(uPt,"toEnvelope");function dPt(t){return{keyid:t.keyHint||"",sig:t.signature}}o(dPt,"toSignature");function R1e(t){return{content:fPt(t),tlogEntries:[],timestampVerificationData:{rfc3161Timestamps:[]}}}o(R1e,"toVerificationMaterial");function fPt(t){return t.certificate?t.certificateChain?{$case:"x509CertificateChain",x509CertificateChain:{certificates:[{rawBytes:t.certificate}]}}:{$case:"certificate",certificate:{rawBytes:t.certificate}}:{$case:"publicKey",publicKey:{hint:t.keyHint||""}}}o(fPt,"toKeyContent")});var Q6=g(E1=>{"use strict";Object.defineProperty(E1,"__esModule",{value:!0});E1.ValidationError=void 0;var D6=class extends Error{static{o(this,"ValidationError")}fields;constructor(e,r){super(e),this.fields=r}};E1.ValidationError=D6});var k6=g(aA=>{"use strict";Object.defineProperty(aA,"__esModule",{value:!0});aA.assertBundle=hPt;aA.assertBundleV01=D1e;aA.isBundleV01=pPt;aA.assertBundleV02=APt;aA.assertBundleLatest=mPt;var C1=Q6();function hPt(t){let e=b1(t);if(e.length>0)throw new C1.ValidationError("invalid bundle",e)}o(hPt,"assertBundle");function D1e(t){let e=[];if(e.push(...b1(t)),e.push(...gPt(t)),e.length>0)throw new C1.ValidationError("invalid v0.1 bundle",e)}o(D1e,"assertBundleV01");function pPt(t){try{return D1e(t),!0}catch{return!1}}o(pPt,"isBundleV01");function APt(t){let e=[];if(e.push(...b1(t)),e.push(...Q1e(t)),e.length>0)throw new C1.ValidationError("invalid v0.2 bundle",e)}o(APt,"assertBundleV02");function mPt(t){let e=[];if(e.push(...b1(t)),e.push(...Q1e(t)),e.push(...yPt(t)),e.length>0)throw new C1.ValidationError("invalid bundle",e)}o(mPt,"assertBundleLatest");function b1(t){let e=[];if((t.mediaType===void 0||!t.mediaType.match(/^application\/vnd\.dev\.sigstore\.bundle\+json;version=\d\.\d/)&&!t.mediaType.match(/^application\/vnd\.dev\.sigstore\.bundle\.v\d\.\d\+json/))&&e.push("mediaType"),t.content===void 0)e.push("content");else switch(t.content.$case){case"messageSignature":t.content.messageSignature.messageDigest===void 0?e.push("content.messageSignature.messageDigest"):t.content.messageSignature.messageDigest.digest.length===0&&e.push("content.messageSignature.messageDigest.digest"),t.content.messageSignature.signature.length===0&&e.push("content.messageSignature.signature");break;case"dsseEnvelope":t.content.dsseEnvelope.payload.length===0&&e.push("content.dsseEnvelope.payload"),t.content.dsseEnvelope.signatures.length!==1?e.push("content.dsseEnvelope.signatures"):t.content.dsseEnvelope.signatures[0].sig.length===0&&e.push("content.dsseEnvelope.signatures[0].sig");break}if(t.verificationMaterial===void 0)e.push("verificationMaterial");else{if(t.verificationMaterial.content===void 0)e.push("verificationMaterial.content");else switch(t.verificationMaterial.content.$case){case"x509CertificateChain":t.verificationMaterial.content.x509CertificateChain.certificates.length===0&&e.push("verificationMaterial.content.x509CertificateChain.certificates"),t.verificationMaterial.content.x509CertificateChain.certificates.forEach((r,n)=>{r.rawBytes.length===0&&e.push(`verificationMaterial.content.x509CertificateChain.certificates[${n}].rawBytes`)});break;case"certificate":t.verificationMaterial.content.certificate.rawBytes.length===0&&e.push("verificationMaterial.content.certificate.rawBytes");break}t.verificationMaterial.tlogEntries===void 0?e.push("verificationMaterial.tlogEntries"):t.verificationMaterial.tlogEntries.length>0&&t.verificationMaterial.tlogEntries.forEach((r,n)=>{r.logId===void 0&&e.push(`verificationMaterial.tlogEntries[${n}].logId`),r.kindVersion===void 0&&e.push(`verificationMaterial.tlogEntries[${n}].kindVersion`)})}return e}o(b1,"validateBundleBase");function gPt(t){let e=[];return t.verificationMaterial&&t.verificationMaterial.tlogEntries?.length>0&&t.verificationMaterial.tlogEntries.forEach((r,n)=>{r.inclusionPromise===void 0&&e.push(`verificationMaterial.tlogEntries[${n}].inclusionPromise`)}),e}o(gPt,"validateInclusionPromise");function Q1e(t){let e=[];return t.verificationMaterial&&t.verificationMaterial.tlogEntries?.length>0&&t.verificationMaterial.tlogEntries.forEach((r,n)=>{r.inclusionProof===void 0?e.push(`verificationMaterial.tlogEntries[${n}].inclusionProof`):r.inclusionProof.checkpoint===void 0&&e.push(`verificationMaterial.tlogEntries[${n}].inclusionProof.checkpoint`)}),e}o(Q1e,"validateInclusionProof");function yPt(t){let e=[];return t.verificationMaterial?.content?.$case==="x509CertificateChain"&&e.push("verificationMaterial.content.$case"),e}o(yPt,"validateNoCertificateChain")});var P1e=g(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});vl.envelopeToJSON=vl.envelopeFromJSON=vl.bundleToJSON=vl.bundleFromJSON=void 0;var w1=fE(),k1e=m1(),P6=k6(),EPt=o(t=>{let e=w1.Bundle.fromJSON(t);switch(e.mediaType){case k1e.BUNDLE_V01_MEDIA_TYPE:(0,P6.assertBundleV01)(e);break;case k1e.BUNDLE_V02_MEDIA_TYPE:(0,P6.assertBundleV02)(e);break;default:(0,P6.assertBundleLatest)(e);break}return e},"bundleFromJSON");vl.bundleFromJSON=EPt;var CPt=o(t=>w1.Bundle.toJSON(t),"bundleToJSON");vl.bundleToJSON=CPt;var bPt=o(t=>w1.Envelope.fromJSON(t),"envelopeFromJSON");vl.envelopeFromJSON=bPt;var wPt=o(t=>w1.Envelope.toJSON(t),"envelopeToJSON");vl.envelopeToJSON=wPt});var O6=g(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.isBundleV01=Xe.assertBundleV02=Xe.assertBundleV01=Xe.assertBundleLatest=Xe.assertBundle=Xe.envelopeToJSON=Xe.envelopeFromJSON=Xe.bundleToJSON=Xe.bundleFromJSON=Xe.ValidationError=Xe.isBundleWithPublicKey=Xe.isBundleWithMessageSignature=Xe.isBundleWithDsseEnvelope=Xe.isBundleWithCertificateChain=Xe.BUNDLE_V03_MEDIA_TYPE=Xe.BUNDLE_V03_LEGACY_MEDIA_TYPE=Xe.BUNDLE_V02_MEDIA_TYPE=Xe.BUNDLE_V01_MEDIA_TYPE=Xe.toMessageSignatureBundle=Xe.toDSSEBundle=void 0;var O1e=T1e();Object.defineProperty(Xe,"toDSSEBundle",{enumerable:!0,get:o(function(){return O1e.toDSSEBundle},"get")});Object.defineProperty(Xe,"toMessageSignatureBundle",{enumerable:!0,get:o(function(){return O1e.toMessageSignatureBundle},"get")});var _f=m1();Object.defineProperty(Xe,"BUNDLE_V01_MEDIA_TYPE",{enumerable:!0,get:o(function(){return _f.BUNDLE_V01_MEDIA_TYPE},"get")});Object.defineProperty(Xe,"BUNDLE_V02_MEDIA_TYPE",{enumerable:!0,get:o(function(){return _f.BUNDLE_V02_MEDIA_TYPE},"get")});Object.defineProperty(Xe,"BUNDLE_V03_LEGACY_MEDIA_TYPE",{enumerable:!0,get:o(function(){return _f.BUNDLE_V03_LEGACY_MEDIA_TYPE},"get")});Object.defineProperty(Xe,"BUNDLE_V03_MEDIA_TYPE",{enumerable:!0,get:o(function(){return _f.BUNDLE_V03_MEDIA_TYPE},"get")});Object.defineProperty(Xe,"isBundleWithCertificateChain",{enumerable:!0,get:o(function(){return _f.isBundleWithCertificateChain},"get")});Object.defineProperty(Xe,"isBundleWithDsseEnvelope",{enumerable:!0,get:o(function(){return _f.isBundleWithDsseEnvelope},"get")});Object.defineProperty(Xe,"isBundleWithMessageSignature",{enumerable:!0,get:o(function(){return _f.isBundleWithMessageSignature},"get")});Object.defineProperty(Xe,"isBundleWithPublicKey",{enumerable:!0,get:o(function(){return _f.isBundleWithPublicKey},"get")});var IPt=Q6();Object.defineProperty(Xe,"ValidationError",{enumerable:!0,get:o(function(){return IPt.ValidationError},"get")});var I1=P1e();Object.defineProperty(Xe,"bundleFromJSON",{enumerable:!0,get:o(function(){return I1.bundleFromJSON},"get")});Object.defineProperty(Xe,"bundleToJSON",{enumerable:!0,get:o(function(){return I1.bundleToJSON},"get")});Object.defineProperty(Xe,"envelopeFromJSON",{enumerable:!0,get:o(function(){return I1.envelopeFromJSON},"get")});Object.defineProperty(Xe,"envelopeToJSON",{enumerable:!0,get:o(function(){return I1.envelopeToJSON},"get")});var sS=k6();Object.defineProperty(Xe,"assertBundle",{enumerable:!0,get:o(function(){return sS.assertBundle},"get")});Object.defineProperty(Xe,"assertBundleLatest",{enumerable:!0,get:o(function(){return sS.assertBundleLatest},"get")});Object.defineProperty(Xe,"assertBundleV01",{enumerable:!0,get:o(function(){return sS.assertBundleV01},"get")});Object.defineProperty(Xe,"assertBundleV02",{enumerable:!0,get:o(function(){return sS.assertBundleV02},"get")});Object.defineProperty(Xe,"isBundleV01",{enumerable:!0,get:o(function(){return sS.isBundleV01},"get")})});var F1e=g(oS=>{"use strict";var L1e=oS&&oS.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(oS,"__esModule",{value:!0});oS.appDataPath=BPt;var SPt=L1e(require("os")),hE=L1e(require("path"));function BPt(t){let e=SPt.default.homedir();switch(process.platform){case"darwin":{let r=hE.default.join(e,"Library","Application Support");return hE.default.join(r,t)}case"win32":{let r=process.env.LOCALAPPDATA||hE.default.join(e,"AppData","Local");return hE.default.join(r,t,"Data")}default:{let r=process.env.XDG_DATA_HOME||hE.default.join(e,".local","share");return hE.default.join(r,t)}}}o(BPt,"appDataPath")});var Nl=g(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.UnsupportedAlgorithmError=bs.CryptoError=bs.LengthOrHashMismatchError=bs.UnsignedMetadataError=bs.RepositoryError=bs.ValueError=void 0;var L6=class extends Error{static{o(this,"ValueError")}};bs.ValueError=L6;var aS=class extends Error{static{o(this,"RepositoryError")}};bs.RepositoryError=aS;var F6=class extends aS{static{o(this,"UnsignedMetadataError")}};bs.UnsignedMetadataError=F6;var M6=class extends aS{static{o(this,"LengthOrHashMismatchError")}};bs.LengthOrHashMismatchError=M6;var S1=class extends Error{static{o(this,"CryptoError")}};bs.CryptoError=S1;var U6=class extends S1{static{o(this,"UnsupportedAlgorithmError")}};bs.UnsupportedAlgorithmError=U6});var U1e=g(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});Rf.isDefined=xPt;Rf.isObject=M1e;Rf.isStringArray=vPt;Rf.isObjectArray=NPt;Rf.isStringRecord=_Pt;Rf.isObjectRecord=RPt;function xPt(t){return t!==void 0}o(xPt,"isDefined");function M1e(t){return typeof t=="object"&&t!==null}o(M1e,"isObject");function vPt(t){return Array.isArray(t)&&t.every(e=>typeof e=="string")}o(vPt,"isStringArray");function NPt(t){return Array.isArray(t)&&t.every(M1e)}o(NPt,"isObjectArray");function _Pt(t){return typeof t=="object"&&t!==null&&Object.keys(t).every(e=>typeof e=="string")&&Object.values(t).every(e=>typeof e=="string")}o(_Pt,"isStringRecord");function RPt(t){return typeof t=="object"&&t!==null&&Object.keys(t).every(e=>typeof e=="string")&&Object.values(t).every(e=>typeof e=="object"&&e!==null)}o(RPt,"isObjectRecord")});var G6=g((u2r,G1e)=>{function q6(t){let e=[];if(typeof t=="string")e.push(q1e(t));else if(typeof t=="boolean")e.push(JSON.stringify(t));else if(Number.isInteger(t))e.push(JSON.stringify(t));else if(t===null)e.push(JSON.stringify(t));else if(Array.isArray(t)){e.push("[");let r=!0;t.forEach(n=>{r||e.push(","),r=!1,e.push(q6(n))}),e.push("]")}else if(typeof t=="object"){e.push("{");let r=!0;Object.keys(t).sort().forEach(n=>{r||e.push(","),r=!1,e.push(q1e(n)),e.push(":"),e.push(q6(t[n]))}),e.push("}")}else throw new TypeError("cannot encode "+t.toString());return e.join("")}o(q6,"canonicalize");function q1e(t){return'"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'}o(q1e,"canonicalizeString");G1e.exports={canonicalize:q6}});var H1e=g(pE=>{"use strict";var TPt=pE&&pE.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(pE,"__esModule",{value:!0});pE.verifySignature=void 0;var DPt=G6(),QPt=TPt(require("crypto")),kPt=o((t,e,r)=>{let n=Buffer.from((0,DPt.canonicalize)(t));return QPt.default.verify(void 0,n,e,Buffer.from(r,"hex"))},"verifySignature");pE.verifySignature=kPt});var Ka=g(aa=>{"use strict";var PPt=aa&&aa.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),OPt=aa&&aa.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),z1e=aa&&aa.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i{"use strict";var LPt=ju&&ju.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ju,"__esModule",{value:!0});ju.Signed=ju.MetadataKind=void 0;ju.isMetadataKind=MPt;var FPt=LPt(require("util")),cS=Nl(),H6=Ka(),V1e=["1","0","31"],z6;(function(t){t.Root="root",t.Timestamp="timestamp",t.Snapshot="snapshot",t.Targets="targets"})(z6||(ju.MetadataKind=z6={}));function MPt(t){return typeof t=="string"&&Object.values(z6).includes(t)}o(MPt,"isMetadataKind");var V6=class t{static{o(this,"Signed")}specVersion;expires;version;unrecognizedFields;constructor(e){this.specVersion=e.specVersion||V1e.join(".");let r=this.specVersion.split(".");if(!(r.length===2||r.length===3)||!r.every(n=>UPt(n)))throw new cS.ValueError("Failed to parse specVersion");if(r[0]!=V1e[0])throw new cS.ValueError("Unsupported specVersion");this.expires=e.expires,this.version=e.version,this.unrecognizedFields=e.unrecognizedFields||{}}equals(e){return e instanceof t?this.specVersion===e.specVersion&&this.expires===e.expires&&this.version===e.version&&FPt.default.isDeepStrictEqual(this.unrecognizedFields,e.unrecognizedFields):!1}isExpired(e){return e||(e=new Date),e>=new Date(this.expires)}static commonFieldsFromJSON(e){let{spec_version:r,expires:n,version:i,...s}=e;if(H6.guard.isDefined(r)){if(typeof r!="string")throw new TypeError("spec_version must be a string")}else throw new cS.ValueError("spec_version is not defined");if(H6.guard.isDefined(n)){if(typeof n!="string")throw new TypeError("expires must be a string")}else throw new cS.ValueError("expires is not defined");if(H6.guard.isDefined(i)){if(typeof i!="number")throw new TypeError("version must be a number")}else throw new cS.ValueError("version is not defined");return{specVersion:r,expires:n,version:i,unrecognizedFields:s}}};ju.Signed=V6;function UPt(t){return!isNaN(Number(t))}o(UPt,"isNumeric")});var lS=g(Df=>{"use strict";var $1e=Df&&Df.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Df,"__esModule",{value:!0});Df.TargetFile=Df.MetaFile=void 0;var j1e=$1e(require("crypto")),x1=$1e(require("util")),Tf=Nl(),B1=Ka(),$6=class t{static{o(this,"MetaFile")}version;length;hashes;unrecognizedFields;constructor(e){if(e.version<=0)throw new Tf.ValueError("Metafile version must be at least 1");e.length!==void 0&&W1e(e.length),this.version=e.version,this.length=e.length,this.hashes=e.hashes,this.unrecognizedFields=e.unrecognizedFields||{}}equals(e){return e instanceof t?this.version===e.version&&this.length===e.length&&x1.default.isDeepStrictEqual(this.hashes,e.hashes)&&x1.default.isDeepStrictEqual(this.unrecognizedFields,e.unrecognizedFields):!1}verify(e){if(this.length!==void 0&&e.length!==this.length)throw new Tf.LengthOrHashMismatchError(`Expected length ${this.length} but got ${e.length}`);this.hashes&&Object.entries(this.hashes).forEach(([r,n])=>{let i;try{i=j1e.default.createHash(r)}catch{throw new Tf.LengthOrHashMismatchError(`Hash algorithm ${r} not supported`)}let s=i.update(e).digest("hex");if(s!==n)throw new Tf.LengthOrHashMismatchError(`Expected hash ${n} but got ${s}`)})}toJSON(){let e={version:this.version,...this.unrecognizedFields};return this.length!==void 0&&(e.length=this.length),this.hashes&&(e.hashes=this.hashes),e}static fromJSON(e){let{version:r,length:n,hashes:i,...s}=e;if(typeof r!="number")throw new TypeError("version must be a number");if(B1.guard.isDefined(n)&&typeof n!="number")throw new TypeError("length must be a number");if(B1.guard.isDefined(i)&&!B1.guard.isStringRecord(i))throw new TypeError("hashes must be string keys and values");return new t({version:r,length:n,hashes:i,unrecognizedFields:s})}};Df.MetaFile=$6;var j6=class t{static{o(this,"TargetFile")}length;path;hashes;unrecognizedFields;constructor(e){W1e(e.length),this.length=e.length,this.path=e.path,this.hashes=e.hashes,this.unrecognizedFields=e.unrecognizedFields||{}}get custom(){let e=this.unrecognizedFields.custom;return!e||Array.isArray(e)||typeof e!="object"?{}:e}equals(e){return e instanceof t?this.length===e.length&&this.path===e.path&&x1.default.isDeepStrictEqual(this.hashes,e.hashes)&&x1.default.isDeepStrictEqual(this.unrecognizedFields,e.unrecognizedFields):!1}async verify(e){let r=0,n=Object.keys(this.hashes).reduce((i,s)=>{try{i[s]=j1e.default.createHash(s)}catch{throw new Tf.LengthOrHashMismatchError(`Hash algorithm ${s} not supported`)}return i},{});for await(let i of e)r+=i.length,Object.values(n).forEach(s=>{s.update(i)});if(r!==this.length)throw new Tf.LengthOrHashMismatchError(`Expected length ${this.length} but got ${r}`);Object.entries(n).forEach(([i,s])=>{let a=this.hashes[i],c=s.digest("hex");if(c!==a)throw new Tf.LengthOrHashMismatchError(`Expected hash ${a} but got ${c}`)})}toJSON(){return{length:this.length,hashes:this.hashes,...this.unrecognizedFields}}static fromJSON(e,r){let{length:n,hashes:i,...s}=r;if(typeof n!="number")throw new TypeError("length must be a number");if(!B1.guard.isStringRecord(i))throw new TypeError("hashes must have string keys and values");return new t({length:n,path:e,hashes:i,unrecognizedFields:s})}};Df.TargetFile=j6;function W1e(t){if(t<0)throw new Tf.ValueError("Length must be at least 0")}o(W1e,"validateLength")});var J1e=g(W6=>{"use strict";Object.defineProperty(W6,"__esModule",{value:!0});W6.encodeOIDString=GPt;var qPt=6;function GPt(t){let e=t.split("."),r=parseInt(e[0],10)*40+parseInt(e[1],10),n=[];e.slice(2).forEach(s=>{let a=HPt(parseInt(s,10));n.push(...a)});let i=Buffer.from([r,...n]);return Buffer.from([qPt,i.length,...i])}o(GPt,"encodeOIDString");function HPt(t){let e=[],r=0;for(;t>0;)e.unshift(t&127|r),t>>=7,r=128;return e}o(HPt,"encodeVariableLengthInteger")});var Z1e=g(dS=>{"use strict";var zPt=dS&&dS.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(dS,"__esModule",{value:!0});dS.getPublicKey=WPt;var AE=zPt(require("crypto")),uS=Nl(),J6=J1e(),v1=48,Y1e=3,K1e=0,VPt="1.3.101.112",$Pt="1.2.840.10045.2.1",jPt="1.2.840.10045.3.1.7",Y6="-----BEGIN PUBLIC KEY-----";function WPt(t){switch(t.keyType){case"rsa":return JPt(t);case"ed25519":return YPt(t);case"ecdsa":case"ecdsa-sha2-nistp256":case"ecdsa-sha2-nistp384":return KPt(t);default:throw new uS.UnsupportedAlgorithmError(`Unsupported key type: ${t.keyType}`)}}o(WPt,"getPublicKey");function JPt(t){if(!t.keyVal.startsWith(Y6))throw new uS.CryptoError("Invalid key format");let e=AE.default.createPublicKey(t.keyVal);if(t.scheme==="rsassa-pss-sha256")return{key:e,padding:AE.default.constants.RSA_PKCS1_PSS_PADDING};throw new uS.UnsupportedAlgorithmError(`Unsupported RSA scheme: ${t.scheme}`)}o(JPt,"getRSAPublicKey");function YPt(t){let e;if(t.keyVal.startsWith(Y6))e=AE.default.createPublicKey(t.keyVal);else{if(!X1e(t.keyVal))throw new uS.CryptoError("Invalid key format");e=AE.default.createPublicKey({key:XPt.hexToDER(t.keyVal),format:"der",type:"spki"})}return{key:e}}o(YPt,"getED25519PublicKey");function KPt(t){let e;if(t.keyVal.startsWith(Y6))e=AE.default.createPublicKey(t.keyVal);else{if(!X1e(t.keyVal))throw new uS.CryptoError("Invalid key format");e=AE.default.createPublicKey({key:ZPt.hexToDER(t.keyVal),format:"der",type:"spki"})}return{key:e}}o(KPt,"getECDCSAPublicKey");var XPt={hexToDER:o(t=>{let e=Buffer.from(t,"hex"),r=(0,J6.encodeOIDString)(VPt),n=Buffer.concat([Buffer.concat([Buffer.from([v1]),Buffer.from([r.length]),r]),Buffer.concat([Buffer.from([Y1e]),Buffer.from([e.length+1]),Buffer.from([K1e]),e])]);return Buffer.concat([Buffer.from([v1]),Buffer.from([n.length]),n])},"hexToDER")},ZPt={hexToDER:o(t=>{let e=Buffer.from(t,"hex"),r=Buffer.concat([Buffer.from([Y1e]),Buffer.from([e.length+1]),Buffer.from([K1e]),e]),n=Buffer.concat([(0,J6.encodeOIDString)($Pt),(0,J6.encodeOIDString)(jPt)]),i=Buffer.concat([Buffer.from([v1]),Buffer.from([n.length]),n]);return Buffer.concat([Buffer.from([v1]),Buffer.from([i.length+r.length]),i,r])},"hexToDER")},X1e=o(t=>/^[0-9a-fA-F]+$/.test(t),"isHex")});var N1=g(mE=>{"use strict";var eOt=mE&&mE.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(mE,"__esModule",{value:!0});mE.Key=void 0;var eke=eOt(require("util")),fS=Nl(),tke=Ka(),tOt=Z1e(),K6=class t{static{o(this,"Key")}keyID;keyType;scheme;keyVal;unrecognizedFields;constructor(e){let{keyID:r,keyType:n,scheme:i,keyVal:s,unrecognizedFields:a}=e;this.keyID=r,this.keyType=n,this.scheme=i,this.keyVal=s,this.unrecognizedFields=a||{}}verifySignature(e){let r=e.signatures[this.keyID];if(!r)throw new fS.UnsignedMetadataError("no signature for key found in metadata");if(!this.keyVal.public)throw new fS.UnsignedMetadataError("no public key found");let n=(0,tOt.getPublicKey)({keyType:this.keyType,scheme:this.scheme,keyVal:this.keyVal.public}),i=e.signed.toJSON();try{if(!tke.crypto.verifySignature(i,n,r.sig))throw new fS.UnsignedMetadataError(`failed to verify ${this.keyID} signature`)}catch(s){throw s instanceof fS.UnsignedMetadataError?s:new fS.UnsignedMetadataError(`failed to verify ${this.keyID} signature`)}}equals(e){return e instanceof t?this.keyID===e.keyID&&this.keyType===e.keyType&&this.scheme===e.scheme&&eke.default.isDeepStrictEqual(this.keyVal,e.keyVal)&&eke.default.isDeepStrictEqual(this.unrecognizedFields,e.unrecognizedFields):!1}toJSON(){return{keytype:this.keyType,scheme:this.scheme,keyval:this.keyVal,...this.unrecognizedFields}}static fromJSON(e,r){let{keytype:n,scheme:i,keyval:s,...a}=r;if(typeof n!="string")throw new TypeError("keytype must be a string");if(typeof i!="string")throw new TypeError("scheme must be a string");if(!tke.guard.isStringRecord(s))throw new TypeError("keyval must be a string record");return new t({keyID:e,keyType:n,scheme:i,keyVal:s,unrecognizedFields:a})}};mE.Key=K6});var nke=g(lA=>{"use strict";Object.defineProperty(lA,"__esModule",{value:!0});lA.range=lA.balanced=void 0;var rOt=o((t,e,r)=>{let n=t instanceof RegExp?rke(t,r):t,i=e instanceof RegExp?rke(e,r):e,s=n!==null&&i!=null&&(0,lA.range)(n,i,r);return s&&{start:s[0],end:s[1],pre:r.slice(0,s[0]),body:r.slice(s[0]+n.length,s[1]),post:r.slice(s[1]+i.length)}},"balanced");lA.balanced=rOt;var rke=o((t,e)=>{let r=e.match(t);return r?r[0]:null},"maybeMatch"),nOt=o((t,e,r)=>{let n,i,s,a,c,l=r.indexOf(t),u=r.indexOf(e,l+1),d=l;if(l>=0&&u>0){if(t===e)return[l,u];for(n=[],s=r.length;d>=0&&!c;){if(d===l)n.push(d),l=r.indexOf(t,d+1);else if(n.length===1){let f=n.pop();f!==void 0&&(c=[f,u])}else i=n.pop(),i!==void 0&&i=0?l:u}n.length&&a!==void 0&&(c=[s,a])}return c},"range");lA.range=nOt});var uke=g(gE=>{"use strict";Object.defineProperty(gE,"__esModule",{value:!0});gE.EXPANSION_MAX=void 0;gE.expand=mOt;var ike=nke(),ske="\0SLASH"+Math.random()+"\0",oke="\0OPEN"+Math.random()+"\0",Z6="\0CLOSE"+Math.random()+"\0",ake="\0COMMA"+Math.random()+"\0",cke="\0PERIOD"+Math.random()+"\0",iOt=new RegExp(ske,"g"),sOt=new RegExp(oke,"g"),oOt=new RegExp(Z6,"g"),aOt=new RegExp(ake,"g"),cOt=new RegExp(cke,"g"),lOt=/\\\\/g,uOt=/\\{/g,dOt=/\\}/g,fOt=/\\,/g,hOt=/\\\./g;gE.EXPANSION_MAX=1e5;function X6(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}o(X6,"numeric");function pOt(t){return t.replace(lOt,ske).replace(uOt,oke).replace(dOt,Z6).replace(fOt,ake).replace(hOt,cke)}o(pOt,"escapeBraces");function AOt(t){return t.replace(iOt,"\\").replace(sOt,"{").replace(oOt,"}").replace(aOt,",").replace(cOt,".")}o(AOt,"unescapeBraces");function lke(t){if(!t)return[""];let e=[],r=(0,ike.balanced)("{","}",t);if(!r)return t.split(",");let{pre:n,body:i,post:s}=r,a=n.split(",");a[a.length-1]+="{"+i+"}";let c=lke(s);return s.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),e.push.apply(e,a),e}o(lke,"parseCommaParts");function mOt(t,e={}){if(!t)return[];let{max:r=gE.EXPANSION_MAX}=e;return t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),hS(pOt(t),r,!0).map(AOt)}o(mOt,"expand");function gOt(t){return"{"+t+"}"}o(gOt,"embrace");function yOt(t){return/^-?0\d/.test(t)}o(yOt,"isPadded");function EOt(t,e){return t<=e}o(EOt,"lte");function COt(t,e){return t>=e}o(COt,"gte");function hS(t,e,r){let n=[],i=(0,ike.balanced)("{","}",t);if(!i)return[t];let s=i.pre,a=i.post.length?hS(i.post,e,!1):[""];if(/\$$/.test(i.pre))for(let c=0;c=0;if(!u&&!d)return i.post.match(/,(?!,).*\}/)?(t=i.pre+"{"+i.body+Z6+i.post,hS(t,e,!0)):[t];let f;if(u)f=i.body.split(/\.\./);else if(f=lke(i.body),f.length===1&&f[0]!==void 0&&(f=hS(f[0],e,!1).map(gOt),f.length===1))return a.map(p=>i.pre+f[0]+p);let h;if(u&&f[0]!==void 0&&f[1]!==void 0){let p=X6(f[0]),m=X6(f[1]),A=Math.max(f[0].length,f[1].length),E=f.length===3&&f[2]!==void 0?Math.max(Math.abs(X6(f[2])),1):1,y=EOt;m0){let N=new Array(U+1).join("0");B<0?P="-"+N+P.slice(1):P=N+P}}h.push(P)}}else{h=[];for(let p=0;p{"use strict";Object.defineProperty(_1,"__esModule",{value:!0});_1.assertValidPattern=void 0;var bOt=1024*64,wOt=o(t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>bOt)throw new TypeError("pattern is too long")},"assertValidPattern");_1.assertValidPattern=wOt});var hke=g(R1=>{"use strict";Object.defineProperty(R1,"__esModule",{value:!0});R1.parseClass=void 0;var IOt={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},pS=o(t=>t.replace(/[[\]\\-]/g,"\\$&"),"braceEscape"),SOt=o(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regexpEscape"),fke=o(t=>t.join(""),"rangesToString"),BOt=o((t,e)=>{let r=e;if(t.charAt(r)!=="[")throw new Error("not in a brace expression");let n=[],i=[],s=r+1,a=!1,c=!1,l=!1,u=!1,d=r,f="";e:for(;sf?n.push(pS(f)+"-"+pS(A)):A===f&&n.push(pS(A)),f="",s++;continue}if(t.startsWith("-]",s+1)){n.push(pS(A+"-")),s+=2;continue}if(t.startsWith("-",s+1)){f=A,s+=2;continue}n.push(pS(A)),s++}if(d{"use strict";Object.defineProperty(T1,"__esModule",{value:!0});T1.unescape=void 0;var xOt=o((t,{windowsPathsNoEscape:e=!1,magicalBraces:r=!0}={})=>r?e?t.replace(/\[([^/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):e?t.replace(/\[([^/\\{}])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1"),"unescape");T1.unescape=xOt});var rJ=g(O1=>{"use strict";var ws;Object.defineProperty(O1,"__esModule",{value:!0});O1.AST=void 0;var vOt=hke(),Q1=D1(),NOt=new Set(["!","?","+","*","@"]),eJ=o(t=>NOt.has(t),"isExtglobType"),pke=o(t=>eJ(t.type),"isExtglobAST"),_Ot=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),ROt=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),TOt=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Ake=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),DOt="(?!(?:^|/)\\.\\.?(?:$|/))",k1="(?!\\.)",QOt=new Set(["[","."]),kOt=new Set(["..","."]),POt=new Set("().*{}+?[]^$\\!"),OOt=o(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),tJ="[^/]",mke=tJ+"*?",gke=tJ+"+?",LOt=0,P1=class{static{o(this,"AST")}type;#e;#r;#n=!1;#t=[];#i;#s;#l;#a=!1;#c;#o;#f=!1;id=++LOt;get depth(){return(this.#i?.depth??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){return{"@@type":"AST",id:this.id,type:this.type,root:this.#e.id,parent:this.#i?.id,depth:this.depth,partsLength:this.#t.length,parts:this.#t}}constructor(e,r,n={}){this.type=e,e&&(this.#r=!0),this.#i=r,this.#e=this.#i?this.#i.#e:this,this.#c=this.#e===this?n:this.#e.#c,this.#l=this.#e===this?[]:this.#e.#l,e==="!"&&!this.#e.#a&&this.#l.push(this),this.#s=this.#i?this.#i.#t.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(let e of this.#t)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#o!==void 0?this.#o:this.type?this.#o=this.type+"("+this.#t.map(e=>String(e)).join("|")+")":this.#o=this.#t.map(e=>String(e)).join("")}#C(){if(this!==this.#e)throw new Error("should only call on root");if(this.#a)return this;this.toString(),this.#a=!0;let e;for(;e=this.#l.pop();){if(e.type!=="!")continue;let r=e,n=r.#i;for(;n;){for(let i=r.#s+1;!n.type&&itypeof r=="string"?r:r.toJSON()):[this.type,...this.#t.map(r=>r.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#a&&this.#i?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#i?.isStart())return!1;if(this.#s===0)return!0;let e=this.#i;for(let r=0;rtypeof p!="string"),u=this.#t.map(p=>{let[m,A,E,y]=typeof p=="string"?ws.#S(p,this.#r,l):p.toRegExpSource(e);return this.#r=this.#r||E,this.#n=this.#n||y,m}).join(""),d="";if(this.isStart()&&typeof this.#t[0]=="string"&&!(this.#t.length===1&&kOt.has(this.#t[0]))){let m=QOt,A=r&&m.has(u.charAt(0))||u.startsWith("\\.")&&m.has(u.charAt(2))||u.startsWith("\\.\\.")&&m.has(u.charAt(4)),E=!r&&!e&&m.has(u.charAt(0));d=A?DOt:E?k1:""}let f="";return this.isEnd()&&this.#e.#a&&this.#i?.type==="!"&&(f="(?:$|\\/)"),[d+u+f,(0,Q1.unescape)(u),this.#r=!!this.#r,this.#n]}let n=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#w(r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let l=this.toString(),u=this;return u.#t=[l],u.type=null,u.#r=void 0,[l,(0,Q1.unescape)(this.toString()),!1,!1]}let a=!n||e||r||!k1?"":this.#w(!0);a===s&&(a=""),a&&(s=`(?:${s})(?:${a})*?`);let c="";if(this.type==="!"&&this.#f)c=(this.isStart()&&!r?k1:"")+gke;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!e?k1:"")+mke+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`;c=i+s+l}return[c,(0,Q1.unescape)(s),this.#r=!!this.#r,this.#n]}#d(){if(pke(this)){let e=0,r=!1;do{r=!0;for(let n=0;n{if(typeof r=="string")throw new Error("string type in extglob ast??");let[n,i,s,a]=r.toRegExpSource(e);return this.#n=this.#n||a,n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#S(e,r,n=!1){let i=!1,s="",a=!1,c=!1;for(let l=0;l{"use strict";Object.defineProperty(L1,"__esModule",{value:!0});L1.escape=void 0;var FOt=o((t,{windowsPathsNoEscape:e=!1,magicalBraces:r=!1}={})=>r?e?t.replace(/[?*()[\]{}]/g,"[$&]"):t.replace(/[?*()[\]\\{}]/g,"\\$&"):e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),"escape");L1.escape=FOt});var Ske=g(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.unescape=pe.escape=pe.AST=pe.Minimatch=pe.match=pe.makeRe=pe.braceExpand=pe.defaults=pe.filter=pe.GLOBSTAR=pe.sep=pe.minimatch=void 0;var MOt=uke(),F1=dke(),Cke=rJ(),UOt=nJ(),qOt=D1(),GOt=o((t,e,r={})=>((0,F1.assertValidPattern)(e),!r.nocomment&&e.charAt(0)==="#"?!1:new uA(e,r).match(t)),"minimatch");pe.minimatch=GOt;var HOt=/^\*+([^+@!?*[(]*)$/,zOt=o(t=>e=>!e.startsWith(".")&&e.endsWith(t),"starDotExtTest"),VOt=o(t=>e=>e.endsWith(t),"starDotExtTestDot"),$Ot=o(t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),"starDotExtTestNocase"),jOt=o(t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),"starDotExtTestNocaseDot"),WOt=/^\*+\.\*+$/,JOt=o(t=>!t.startsWith(".")&&t.includes("."),"starDotStarTest"),YOt=o(t=>t!=="."&&t!==".."&&t.includes("."),"starDotStarTestDot"),KOt=/^\.\*+$/,XOt=o(t=>t!=="."&&t!==".."&&t.startsWith("."),"dotStarTest"),ZOt=/^\*+$/,eLt=o(t=>t.length!==0&&!t.startsWith("."),"starTest"),tLt=o(t=>t.length!==0&&t!=="."&&t!=="..","starTestDot"),rLt=/^\?+([^+@!?*[(]*)?$/,nLt=o(([t,e=""])=>{let r=bke([t]);return e?(e=e.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(e)):r},"qmarksTestNocase"),iLt=o(([t,e=""])=>{let r=wke([t]);return e?(e=e.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(e)):r},"qmarksTestNocaseDot"),sLt=o(([t,e=""])=>{let r=wke([t]);return e?n=>r(n)&&n.endsWith(e):r},"qmarksTestDot"),oLt=o(([t,e=""])=>{let r=bke([t]);return e?n=>r(n)&&n.endsWith(e):r},"qmarksTest"),bke=o(([t])=>{let e=t.length;return r=>r.length===e&&!r.startsWith(".")},"qmarksTestNoExt"),wke=o(([t])=>{let e=t.length;return r=>r.length===e&&r!=="."&&r!==".."},"qmarksTestNoExtDot"),Ike=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",yke={win32:{sep:"\\"},posix:{sep:"/"}};pe.sep=Ike==="win32"?yke.win32.sep:yke.posix.sep;pe.minimatch.sep=pe.sep;pe.GLOBSTAR=Symbol("globstar **");pe.minimatch.GLOBSTAR=pe.GLOBSTAR;var aLt="[^/]",cLt=aLt+"*?",lLt="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",uLt="(?:(?!(?:\\/|^)\\.).)*?",dLt=o((t,e={})=>r=>(0,pe.minimatch)(r,t,e),"filter");pe.filter=dLt;pe.minimatch.filter=pe.filter;var ca=o((t,e={})=>Object.assign({},t,e),"ext"),fLt=o(t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return pe.minimatch;let e=pe.minimatch;return Object.assign(o((n,i,s={})=>e(n,i,ca(t,s)),"m"),{Minimatch:class extends e.Minimatch{static{o(this,"Minimatch")}constructor(i,s={}){super(i,ca(t,s))}static defaults(i){return e.defaults(ca(t,i)).Minimatch}},AST:class extends e.AST{static{o(this,"AST")}constructor(i,s,a={}){super(i,s,ca(t,a))}static fromGlob(i,s={}){return e.AST.fromGlob(i,ca(t,s))}},unescape:o((n,i={})=>e.unescape(n,ca(t,i)),"unescape"),escape:o((n,i={})=>e.escape(n,ca(t,i)),"escape"),filter:o((n,i={})=>e.filter(n,ca(t,i)),"filter"),defaults:o(n=>e.defaults(ca(t,n)),"defaults"),makeRe:o((n,i={})=>e.makeRe(n,ca(t,i)),"makeRe"),braceExpand:o((n,i={})=>e.braceExpand(n,ca(t,i)),"braceExpand"),match:o((n,i,s={})=>e.match(n,i,ca(t,s)),"match"),sep:e.sep,GLOBSTAR:pe.GLOBSTAR})},"defaults");pe.defaults=fLt;pe.minimatch.defaults=pe.defaults;var hLt=o((t,e={})=>((0,F1.assertValidPattern)(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,MOt.expand)(t,{max:e.braceExpandMax})),"braceExpand");pe.braceExpand=hLt;pe.minimatch.braceExpand=pe.braceExpand;var pLt=o((t,e={})=>new uA(t,e).makeRe(),"makeRe");pe.makeRe=pLt;pe.minimatch.makeRe=pe.makeRe;var ALt=o((t,e,r={})=>{let n=new uA(e,r);return t=t.filter(i=>n.match(i)),n.options.nonull&&!t.length&&t.push(e),t},"match");pe.match=ALt;pe.minimatch.match=pe.match;var Eke=/[?*]|[+@!]\(.*?\)|\[|\]/,mLt=o(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),uA=class{static{o(this,"Minimatch")}options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,r={}){(0,F1.assertValidPattern)(e),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=e,this.platform=r.platform||Ike,this.isWindows=this.platform==="win32";let n="allowWindowsEscape";this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r[n]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let r of e)if(typeof r!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let i=this.globParts.map((s,a,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=s[0]===""&&s[1]===""&&(s[2]==="?"||!Eke.test(s[2]))&&!Eke.test(s[3]),u=/^[a-z]:/i.test(s[0]);if(l)return[...s.slice(0,4),...s.slice(4).map(d=>this.parse(d))];if(u)return[s[0],...s.slice(1).map(d=>this.parse(d))]}return s.map(l=>this.parse(l))});if(this.debug(this.pattern,i),this.set=i.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):r>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let i=n;for(;r[i+1]==="**";)i++;i!==n&&r.splice(n,i-n)}return r})}levelOneOptimize(e){return e.map(r=>(r=r.reduce((n,i)=>{let s=n[n.length-1];return i==="**"&&s==="**"?n:i===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(n.pop(),n):(n.push(i),n)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let i=1;ii&&n.splice(i+1,a-i);let c=n[i+1],l=n[i+2],u=n[i+3];if(c!==".."||!l||l==="."||l===".."||!u||u==="."||u==="..")continue;r=!0,n.splice(i,1);let d=n.slice(0);d[i]="**",e.push(d),i--}if(!this.preserveMultipleSlashes){for(let a=1;ar.length)}partsMatch(e,r,n=!1){let i=0,s=0,a=[],c="";for(;i=2&&(e=this.levelTwoFileOptimize(e)),r.includes(pe.GLOBSTAR)?this.#e(e,r,n,i,s):this.#n(e,r,n,i,s)}#e(e,r,n,i,s){let a=r.indexOf(pe.GLOBSTAR,s),c=r.lastIndexOf(pe.GLOBSTAR),[l,u,d]=n?[r.slice(s,a),r.slice(a+1),[]]:[r.slice(s,a),r.slice(a+1,c),r.slice(c+1)];if(l.length){let C=e.slice(i,i+l.length);if(!this.#n(C,l,n,0,0))return!1;i+=l.length,s+=l.length}let f=0;if(d.length){if(d.length+i>e.length)return!1;let C=e.length-d.length;if(this.#n(e,d,n,C,0))f=d.length;else{if(e[e.length-1]!==""||i+d.length===e.length||(C--,!this.#n(e,d,n,C,0)))return!1;f=d.length+1}}if(!u.length){let C=!!f;for(let w=i;w{let u=l.map(f=>{if(f instanceof RegExp)for(let h of f.flags.split(""))i.add(h);return typeof f=="string"?mLt(f):f===pe.GLOBSTAR?pe.GLOBSTAR:f._src});u.forEach((f,h)=>{let p=u[h+1],m=u[h-1];f!==pe.GLOBSTAR||m===pe.GLOBSTAR||(m===void 0?p!==void 0&&p!==pe.GLOBSTAR?u[h+1]="(?:\\/|"+n+"\\/)?"+p:u[h]=n:p===void 0?u[h-1]=m+"(?:\\/|\\/"+n+")?":p!==pe.GLOBSTAR&&(u[h-1]=m+"(?:\\/|\\/"+n+"\\/)"+p,u[h+1]=pe.GLOBSTAR))});let d=u.filter(f=>f!==pe.GLOBSTAR);if(this.partial&&d.length>=1){let f=[];for(let h=1;h<=d.length;h++)f.push(d.slice(0,h).join("/"));return"(?:"+f.join("|")+")"}return d.join("/")}).join("|"),[a,c]=e.length>1?["(?:",")"]:["",""];s="^"+a+s+c+"$",this.partial&&(s="^(?:\\/|"+a+s.slice(1,-1)+c+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;this.isWindows&&(e=e.split("\\").join("/"));let i=this.slashSplit(e);this.debug(this.pattern,"split",i);let s=this.set;this.debug(this.pattern,"set",s);let a=i[i.length-1];if(!a)for(let c=i.length-2;!a&&c>=0;c--)a=i[c];for(let c of s){let l=i;if(n.matchBase&&c.length===1&&(l=[a]),this.matchOne(l,c,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return pe.minimatch.defaults(e).Minimatch}};pe.Minimatch=uA;var gLt=rJ();Object.defineProperty(pe,"AST",{enumerable:!0,get:o(function(){return gLt.AST},"get")});var yLt=nJ();Object.defineProperty(pe,"escape",{enumerable:!0,get:o(function(){return yLt.escape},"get")});var ELt=D1();Object.defineProperty(pe,"unescape",{enumerable:!0,get:o(function(){return ELt.unescape},"get")});pe.minimatch.AST=Cke.AST;pe.minimatch.Minimatch=uA;pe.minimatch.escape=UOt.escape;pe.minimatch.unescape=qOt.unescape});var oJ=g(la=>{"use strict";var Bke=la&&la.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(la,"__esModule",{value:!0});la.SuccinctRoles=la.DelegatedRole=la.Role=la.TOP_LEVEL_ROLE_NAMES=void 0;var xke=Bke(require("crypto")),CLt=Ske(),M1=Bke(require("util")),U1=Nl(),dA=Ka();la.TOP_LEVEL_ROLE_NAMES=["root","targets","snapshot","timestamp"];var AS=class t{static{o(this,"Role")}keyIDs;threshold;unrecognizedFields;constructor(e){let{keyIDs:r,threshold:n,unrecognizedFields:i}=e;if(bLt(r))throw new U1.ValueError("duplicate key IDs found");if(n<1)throw new U1.ValueError("threshold must be at least 1");this.keyIDs=r,this.threshold=n,this.unrecognizedFields=i||{}}equals(e){return e instanceof t?this.threshold===e.threshold&&M1.default.isDeepStrictEqual(this.keyIDs,e.keyIDs)&&M1.default.isDeepStrictEqual(this.unrecognizedFields,e.unrecognizedFields):!1}toJSON(){return{keyids:this.keyIDs,threshold:this.threshold,...this.unrecognizedFields}}static fromJSON(e){let{keyids:r,threshold:n,...i}=e;if(!dA.guard.isStringArray(r))throw new TypeError("keyids must be an array");if(typeof n!="number")throw new TypeError("threshold must be a number");return new t({keyIDs:r,threshold:n,unrecognizedFields:i})}};la.Role=AS;function bLt(t){return new Set(t).size!==t.length}o(bLt,"hasDuplicates");var iJ=class t extends AS{static{o(this,"DelegatedRole")}name;terminating;paths;pathHashPrefixes;constructor(e){super(e);let{name:r,terminating:n,paths:i,pathHashPrefixes:s}=e;if(this.name=r,this.terminating=n,e.paths&&e.pathHashPrefixes)throw new U1.ValueError("paths and pathHashPrefixes are mutually exclusive");this.paths=i,this.pathHashPrefixes=s}equals(e){return e instanceof t?super.equals(e)&&this.name===e.name&&this.terminating===e.terminating&&M1.default.isDeepStrictEqual(this.paths,e.paths)&&M1.default.isDeepStrictEqual(this.pathHashPrefixes,e.pathHashPrefixes):!1}isDelegatedPath(e){if(this.paths)return this.paths.some(r=>ILt(e,r));if(this.pathHashPrefixes){let n=xke.default.createHash("sha256").update(e).digest("hex");return this.pathHashPrefixes.some(i=>n.startsWith(i))}return!1}toJSON(){let e={...super.toJSON(),name:this.name,terminating:this.terminating};return this.paths&&(e.paths=this.paths),this.pathHashPrefixes&&(e.path_hash_prefixes=this.pathHashPrefixes),e}static fromJSON(e){let{keyids:r,threshold:n,name:i,terminating:s,paths:a,path_hash_prefixes:c,...l}=e;if(!dA.guard.isStringArray(r))throw new TypeError("keyids must be an array of strings");if(typeof n!="number")throw new TypeError("threshold must be a number");if(typeof i!="string")throw new TypeError("name must be a string");if(typeof s!="boolean")throw new TypeError("terminating must be a boolean");if(dA.guard.isDefined(a)&&!dA.guard.isStringArray(a))throw new TypeError("paths must be an array of strings");if(dA.guard.isDefined(c)&&!dA.guard.isStringArray(c))throw new TypeError("path_hash_prefixes must be an array of strings");return new t({keyIDs:r,threshold:n,name:i,terminating:s,paths:a,pathHashPrefixes:c,unrecognizedFields:l})}};la.DelegatedRole=iJ;var wLt=o((t,e)=>t.map((r,n)=>[r,e[n]]),"zip");function ILt(t,e){let r=t.split("/"),n=e.split("/");return n.length!=r.length?!1:wLt(r,n).every(([i,s])=>(0,CLt.minimatch)(i,s))}o(ILt,"isTargetInPathPattern");var sJ=class t extends AS{static{o(this,"SuccinctRoles")}bitLength;namePrefix;numberOfBins;suffixLen;constructor(e){super(e);let{bitLength:r,namePrefix:n}=e;if(r<=0||r>32)throw new U1.ValueError("bitLength must be between 1 and 32");this.bitLength=r,this.namePrefix=n,this.numberOfBins=Math.pow(2,r),this.suffixLen=(this.numberOfBins-1).toString(16).length}equals(e){return e instanceof t?super.equals(e)&&this.bitLength===e.bitLength&&this.namePrefix===e.namePrefix:!1}getRoleForTarget(e){let i=xke.default.createHash("sha256").update(e).digest().subarray(0,4),s=32-this.bitLength,c=(i.readUInt32BE()>>>s).toString(16).padStart(this.suffixLen,"0");return`${this.namePrefix}-${c}`}*getRoles(){for(let e=0;e{"use strict";var SLt=yE&&yE.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(yE,"__esModule",{value:!0});yE.Root=void 0;var vke=SLt(require("util")),aJ=cA(),Nke=Nl(),BLt=N1(),q1=oJ(),G1=Ka(),cJ=class t extends aJ.Signed{static{o(this,"Root")}type=aJ.MetadataKind.Root;keys;roles;consistentSnapshot;constructor(e){if(super(e),this.keys=e.keys||{},this.consistentSnapshot=e.consistentSnapshot??!0,!e.roles)this.roles=q1.TOP_LEVEL_ROLE_NAMES.reduce((r,n)=>({...r,[n]:new q1.Role({keyIDs:[],threshold:1})}),{});else{let r=new Set(Object.keys(e.roles));if(!q1.TOP_LEVEL_ROLE_NAMES.every(n=>r.has(n)))throw new Nke.ValueError("missing top-level role");this.roles=e.roles}}addKey(e,r){if(!this.roles[r])throw new Nke.ValueError(`role ${r} does not exist`);this.roles[r].keyIDs.includes(e.keyID)||this.roles[r].keyIDs.push(e.keyID),this.keys[e.keyID]=e}equals(e){return e instanceof t?super.equals(e)&&this.consistentSnapshot===e.consistentSnapshot&&vke.default.isDeepStrictEqual(this.keys,e.keys)&&vke.default.isDeepStrictEqual(this.roles,e.roles):!1}toJSON(){return{_type:this.type,spec_version:this.specVersion,version:this.version,expires:this.expires,keys:xLt(this.keys),roles:vLt(this.roles),consistent_snapshot:this.consistentSnapshot,...this.unrecognizedFields}}static fromJSON(e){let{unrecognizedFields:r,...n}=aJ.Signed.commonFieldsFromJSON(e),{keys:i,roles:s,consistent_snapshot:a,...c}=r;if(typeof a!="boolean")throw new TypeError("consistent_snapshot must be a boolean");return new t({...n,keys:NLt(i),roles:_Lt(s),consistentSnapshot:a,unrecognizedFields:c})}};yE.Root=cJ;function xLt(t){return Object.entries(t).reduce((e,[r,n])=>({...e,[r]:n.toJSON()}),{})}o(xLt,"keysToJSON");function vLt(t){return Object.entries(t).reduce((e,[r,n])=>({...e,[r]:n.toJSON()}),{})}o(vLt,"rolesToJSON");function NLt(t){let e;if(G1.guard.isDefined(t)){if(!G1.guard.isObjectRecord(t))throw new TypeError("keys must be an object");e=Object.entries(t).reduce((r,[n,i])=>({...r,[n]:BLt.Key.fromJSON(n,i)}),{})}return e}o(NLt,"keysFromJSON");function _Lt(t){let e;if(G1.guard.isDefined(t)){if(!G1.guard.isObjectRecord(t))throw new TypeError("roles must be an object");e=Object.entries(t).reduce((r,[n,i])=>({...r,[n]:q1.Role.fromJSON(i)}),{})}return e}o(_Lt,"rolesFromJSON")});var dJ=g(H1=>{"use strict";Object.defineProperty(H1,"__esModule",{value:!0});H1.Signature=void 0;var uJ=class t{static{o(this,"Signature")}keyID;sig;constructor(e){let{keyID:r,sig:n}=e;this.keyID=r,this.sig=n}toJSON(){return{keyid:this.keyID,sig:this.sig}}static fromJSON(e){let{keyid:r,sig:n}=e;if(typeof r!="string")throw new TypeError("keyid must be a string");if(typeof n!="string")throw new TypeError("sig must be a string");return new t({keyID:r,sig:n})}};H1.Signature=uJ});var pJ=g(EE=>{"use strict";var RLt=EE&&EE.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(EE,"__esModule",{value:!0});EE.Snapshot=void 0;var TLt=RLt(require("util")),fJ=cA(),Rke=lS(),_ke=Ka(),hJ=class t extends fJ.Signed{static{o(this,"Snapshot")}type=fJ.MetadataKind.Snapshot;meta;constructor(e){super(e),this.meta=e.meta||{"targets.json":new Rke.MetaFile({version:1})}}equals(e){return e instanceof t?super.equals(e)&&TLt.default.isDeepStrictEqual(this.meta,e.meta):!1}toJSON(){return{_type:this.type,meta:DLt(this.meta),spec_version:this.specVersion,version:this.version,expires:this.expires,...this.unrecognizedFields}}static fromJSON(e){let{unrecognizedFields:r,...n}=fJ.Signed.commonFieldsFromJSON(e),{meta:i,...s}=r;return new t({...n,meta:QLt(i),unrecognizedFields:s})}};EE.Snapshot=hJ;function DLt(t){return Object.entries(t).reduce((e,[r,n])=>({...e,[r]:n.toJSON()}),{})}o(DLt,"metaToJSON");function QLt(t){let e;if(_ke.guard.isDefined(t))if(_ke.guard.isObjectRecord(t))e=Object.entries(t).reduce((r,[n,i])=>({...r,[n]:Rke.MetaFile.fromJSON(i)}),{});else throw new TypeError("meta field is malformed");return e}o(QLt,"metaFromJSON")});var Tke=g(CE=>{"use strict";var kLt=CE&&CE.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(CE,"__esModule",{value:!0});CE.Delegations=void 0;var z1=kLt(require("util")),PLt=Nl(),OLt=N1(),AJ=oJ(),V1=Ka(),mJ=class t{static{o(this,"Delegations")}keys;roles;unrecognizedFields;succinctRoles;constructor(e){if(this.keys=e.keys,this.unrecognizedFields=e.unrecognizedFields||{},e.roles&&Object.keys(e.roles).some(r=>AJ.TOP_LEVEL_ROLE_NAMES.includes(r)))throw new PLt.ValueError("Delegated role name conflicts with top-level role name");this.succinctRoles=e.succinctRoles,this.roles=e.roles}equals(e){return e instanceof t?z1.default.isDeepStrictEqual(this.keys,e.keys)&&z1.default.isDeepStrictEqual(this.roles,e.roles)&&z1.default.isDeepStrictEqual(this.unrecognizedFields,e.unrecognizedFields)&&z1.default.isDeepStrictEqual(this.succinctRoles,e.succinctRoles):!1}*rolesForTarget(e){if(this.roles)for(let r of Object.values(this.roles))r.isDelegatedPath(e)&&(yield{role:r.name,terminating:r.terminating});else this.succinctRoles&&(yield{role:this.succinctRoles.getRoleForTarget(e),terminating:!0})}toJSON(){let e={keys:LLt(this.keys),...this.unrecognizedFields};return this.roles?e.roles=FLt(this.roles):this.succinctRoles&&(e.succinct_roles=this.succinctRoles.toJSON()),e}static fromJSON(e){let{keys:r,roles:n,succinct_roles:i,...s}=e,a;return V1.guard.isObject(i)&&(a=AJ.SuccinctRoles.fromJSON(i)),new t({keys:MLt(r),roles:ULt(n),unrecognizedFields:s,succinctRoles:a})}};CE.Delegations=mJ;function LLt(t){return Object.entries(t).reduce((e,[r,n])=>({...e,[r]:n.toJSON()}),{})}o(LLt,"keysToJSON");function FLt(t){return Object.values(t).map(e=>e.toJSON())}o(FLt,"rolesToJSON");function MLt(t){if(!V1.guard.isObjectRecord(t))throw new TypeError("keys is malformed");return Object.entries(t).reduce((e,[r,n])=>({...e,[r]:OLt.Key.fromJSON(r,n)}),{})}o(MLt,"keysFromJSON");function ULt(t){let e;if(V1.guard.isDefined(t)){if(!V1.guard.isObjectArray(t))throw new TypeError("roles is malformed");e=t.reduce((r,n)=>{let i=AJ.DelegatedRole.fromJSON(n);return{...r,[i.name]:i}},{})}return e}o(ULt,"rolesFromJSON")});var EJ=g(bE=>{"use strict";var qLt=bE&&bE.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(bE,"__esModule",{value:!0});bE.Targets=void 0;var Dke=qLt(require("util")),gJ=cA(),GLt=Tke(),HLt=lS(),$1=Ka(),yJ=class t extends gJ.Signed{static{o(this,"Targets")}type=gJ.MetadataKind.Targets;targets;delegations;constructor(e){super(e),this.targets=e.targets||{},this.delegations=e.delegations}addTarget(e){this.targets[e.path]=e}equals(e){return e instanceof t?super.equals(e)&&Dke.default.isDeepStrictEqual(this.targets,e.targets)&&Dke.default.isDeepStrictEqual(this.delegations,e.delegations):!1}toJSON(){let e={_type:this.type,spec_version:this.specVersion,version:this.version,expires:this.expires,targets:zLt(this.targets),...this.unrecognizedFields};return this.delegations&&(e.delegations=this.delegations.toJSON()),e}static fromJSON(e){let{unrecognizedFields:r,...n}=gJ.Signed.commonFieldsFromJSON(e),{targets:i,delegations:s,...a}=r;return new t({...n,targets:VLt(i),delegations:$Lt(s),unrecognizedFields:a})}};bE.Targets=yJ;function zLt(t){return Object.entries(t).reduce((e,[r,n])=>({...e,[r]:n.toJSON()}),{})}o(zLt,"targetsToJSON");function VLt(t){let e;if($1.guard.isDefined(t))if($1.guard.isObjectRecord(t))e=Object.entries(t).reduce((r,[n,i])=>({...r,[n]:HLt.TargetFile.fromJSON(n,i)}),{});else throw new TypeError("targets must be an object");return e}o(VLt,"targetsFromJSON");function $Lt(t){let e;if($1.guard.isDefined(t))if($1.guard.isObject(t))e=GLt.Delegations.fromJSON(t);else throw new TypeError("delegations must be an object");return e}o($Lt,"delegationsFromJSON")});var IJ=g(j1=>{"use strict";Object.defineProperty(j1,"__esModule",{value:!0});j1.Timestamp=void 0;var CJ=cA(),Qke=lS(),bJ=Ka(),wJ=class t extends CJ.Signed{static{o(this,"Timestamp")}type=CJ.MetadataKind.Timestamp;snapshotMeta;constructor(e){super(e),this.snapshotMeta=e.snapshotMeta||new Qke.MetaFile({version:1})}equals(e){return e instanceof t?super.equals(e)&&this.snapshotMeta.equals(e.snapshotMeta):!1}toJSON(){return{_type:this.type,spec_version:this.specVersion,version:this.version,expires:this.expires,meta:{"snapshot.json":this.snapshotMeta.toJSON()},...this.unrecognizedFields}}static fromJSON(e){let{unrecognizedFields:r,...n}=CJ.Signed.commonFieldsFromJSON(e),{meta:i,...s}=r;return new t({...n,snapshotMeta:jLt(i),unrecognizedFields:s})}};j1.Timestamp=wJ;function jLt(t){let e;if(bJ.guard.isDefined(t)){let r=t["snapshot.json"];if(!bJ.guard.isDefined(r)||!bJ.guard.isObject(r))throw new TypeError("missing snapshot.json in meta");e=Qke.MetaFile.fromJSON(r)}return e}o(jLt,"snapshotMetaFromJSON")});var Pke=g(IE=>{"use strict";var WLt=IE&&IE.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(IE,"__esModule",{value:!0});IE.Metadata=void 0;var JLt=G6(),kke=WLt(require("util")),wE=cA(),mS=Nl(),YLt=lJ(),KLt=dJ(),XLt=pJ(),ZLt=EJ(),eFt=IJ(),SJ=Ka(),BJ=class t{static{o(this,"Metadata")}signed;signatures;unrecognizedFields;constructor(e,r,n){this.signed=e,this.signatures=r||{},this.unrecognizedFields=n||{}}sign(e,r=!0){let n=Buffer.from((0,JLt.canonicalize)(this.signed.toJSON())),i=e(n);r||(this.signatures={}),this.signatures[i.keyID]=i}verifyDelegate(e,r){let n,i={};switch(this.signed.type){case wE.MetadataKind.Root:i=this.signed.keys,n=this.signed.roles[e];break;case wE.MetadataKind.Targets:if(!this.signed.delegations)throw new mS.ValueError(`No delegations found for ${e}`);i=this.signed.delegations.keys,this.signed.delegations.roles?n=this.signed.delegations.roles[e]:this.signed.delegations.succinctRoles&&this.signed.delegations.succinctRoles.isDelegatedRole(e)&&(n=this.signed.delegations.succinctRoles);break;default:throw new TypeError("invalid metadata type")}if(!n)throw new mS.ValueError(`no delegation found for ${e}`);let s=new Set;if(n.keyIDs.forEach(a=>{let c=i[a];if(c)try{c.verifySignature(r),s.add(c.keyID)}catch{}}),s.sizer.toJSON()),signed:this.signed.toJSON(),...this.unrecognizedFields}}static fromJSON(e,r){let{signed:n,signatures:i,...s}=r;if(!SJ.guard.isDefined(n)||!SJ.guard.isObject(n))throw new TypeError("signed is not defined");if(e!==n._type)throw new mS.ValueError(`expected '${e}', got ${n._type}`);if(!SJ.guard.isObjectArray(i))throw new TypeError("signatures is not an array");let a;switch(e){case wE.MetadataKind.Root:a=YLt.Root.fromJSON(n);break;case wE.MetadataKind.Timestamp:a=eFt.Timestamp.fromJSON(n);break;case wE.MetadataKind.Snapshot:a=XLt.Snapshot.fromJSON(n);break;case wE.MetadataKind.Targets:a=ZLt.Targets.fromJSON(n);break;default:throw new TypeError("invalid metadata type")}let c={};return i.forEach(l=>{let u=KLt.Signature.fromJSON(l);if(c[u.keyID])throw new mS.ValueError(`multiple signatures found for keyid: ${u.keyID}`);c[u.keyID]=u}),new t(a,c,s)}};IE.Metadata=BJ});var W1=g(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.Timestamp=mr.Targets=mr.Snapshot=mr.Signature=mr.Root=mr.Metadata=mr.Key=mr.TargetFile=mr.MetaFile=mr.ValueError=mr.MetadataKind=void 0;var tFt=cA();Object.defineProperty(mr,"MetadataKind",{enumerable:!0,get:o(function(){return tFt.MetadataKind},"get")});var rFt=Nl();Object.defineProperty(mr,"ValueError",{enumerable:!0,get:o(function(){return rFt.ValueError},"get")});var Oke=lS();Object.defineProperty(mr,"MetaFile",{enumerable:!0,get:o(function(){return Oke.MetaFile},"get")});Object.defineProperty(mr,"TargetFile",{enumerable:!0,get:o(function(){return Oke.TargetFile},"get")});var nFt=N1();Object.defineProperty(mr,"Key",{enumerable:!0,get:o(function(){return nFt.Key},"get")});var iFt=Pke();Object.defineProperty(mr,"Metadata",{enumerable:!0,get:o(function(){return iFt.Metadata},"get")});var sFt=lJ();Object.defineProperty(mr,"Root",{enumerable:!0,get:o(function(){return sFt.Root},"get")});var oFt=dJ();Object.defineProperty(mr,"Signature",{enumerable:!0,get:o(function(){return oFt.Signature},"get")});var aFt=pJ();Object.defineProperty(mr,"Snapshot",{enumerable:!0,get:o(function(){return aFt.Snapshot},"get")});var cFt=EJ();Object.defineProperty(mr,"Targets",{enumerable:!0,get:o(function(){return cFt.Targets},"get")});var lFt=IJ();Object.defineProperty(mr,"Timestamp",{enumerable:!0,get:o(function(){return lFt.Timestamp},"get")})});var Fke=g((cDr,Lke)=>{var SE=1e3,BE=SE*60,xE=BE*60,fA=xE*24,uFt=fA*7,dFt=fA*365.25;Lke.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return fFt(t);if(r==="number"&&isFinite(t))return e.long?pFt(t):hFt(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function fFt(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*dFt;case"weeks":case"week":case"w":return r*uFt;case"days":case"day":case"d":return r*fA;case"hours":case"hour":case"hrs":case"hr":case"h":return r*xE;case"minutes":case"minute":case"mins":case"min":case"m":return r*BE;case"seconds":case"second":case"secs":case"sec":case"s":return r*SE;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}o(fFt,"parse");function hFt(t){var e=Math.abs(t);return e>=fA?Math.round(t/fA)+"d":e>=xE?Math.round(t/xE)+"h":e>=BE?Math.round(t/BE)+"m":e>=SE?Math.round(t/SE)+"s":t+"ms"}o(hFt,"fmtShort");function pFt(t){var e=Math.abs(t);return e>=fA?J1(t,e,fA,"day"):e>=xE?J1(t,e,xE,"hour"):e>=BE?J1(t,e,BE,"minute"):e>=SE?J1(t,e,SE,"second"):t+" ms"}o(pFt,"fmtLong");function J1(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}o(J1,"plural")});var xJ=g((uDr,Mke)=>{function AFt(t){r.debug=r,r.default=r,r.coerce=l,r.disable=a,r.enable=i,r.enabled=c,r.humanize=Fke(),r.destroy=u,Object.keys(t).forEach(d=>{r[d]=t[d]}),r.names=[],r.skips=[],r.formatters={};function e(d){let f=0;for(let h=0;h{if(U==="%%")return"%";B++;let $=r.formatters[N];if(typeof $=="function"){let Q=E[B];U=$.call(y,Q),E.splice(B,1),B--}return U}),r.formatArgs.call(y,E),(y.log||r.log).apply(y,E)}return o(A,"debug"),A.namespace=d,A.useColors=r.useColors(),A.color=r.selectColor(d),A.extend=n,A.destroy=r.destroy,Object.defineProperty(A,"enabled",{enumerable:!0,configurable:!1,get:o(()=>h!==null?h:(p!==r.namespaces&&(p=r.namespaces,m=r.enabled(d)),m),"get"),set:o(E=>{h=E},"set")}),typeof r.init=="function"&&r.init(A),A}o(r,"createDebug");function n(d,f){let h=r(this.namespace+(typeof f>"u"?":":f)+d);return h.log=this.log,h}o(n,"extend");function i(d){r.save(d),r.namespaces=d,r.names=[],r.skips=[];let f=(typeof d=="string"?d:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let h of f)h[0]==="-"?r.skips.push(h.slice(1)):r.names.push(h)}o(i,"enable");function s(d,f){let h=0,p=0,m=-1,A=0;for(;h"-"+f)].join(",");return r.enable(""),d}o(a,"disable");function c(d){for(let f of r.skips)if(s(d,f))return!1;for(let f of r.names)if(s(d,f))return!0;return!1}o(c,"enabled");function l(d){return d instanceof Error?d.stack||d.message:d}o(l,"coerce");function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return o(u,"destroy"),r.enable(r.load()),r}o(AFt,"setup");Mke.exports=AFt});var Uke=g((Is,Y1)=>{Is.formatArgs=gFt;Is.save=yFt;Is.load=EFt;Is.useColors=mFt;Is.storage=CFt();Is.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Is.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function mFt(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}o(mFt,"useColors");function gFt(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Y1.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),t.splice(n,0,e)}o(gFt,"formatArgs");Is.log=console.debug||console.log||(()=>{});function yFt(t){try{t?Is.storage.setItem("debug",t):Is.storage.removeItem("debug")}catch{}}o(yFt,"save");function EFt(){let t;try{t=Is.storage.getItem("debug")||Is.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}o(EFt,"load");function CFt(){try{return localStorage}catch{}}o(CFt,"localstorage");Y1.exports=xJ()(Is);var{formatters:bFt}=Y1.exports;bFt.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Gke=g((Un,X1)=>{var wFt=require("tty"),K1=require("util");Un.init=_Ft;Un.log=xFt;Un.formatArgs=SFt;Un.save=vFt;Un.load=NFt;Un.useColors=IFt;Un.destroy=K1.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Un.colors=[6,2,3,4,5,1];try{let t=WU();t&&(t.stderr||t).level>=2&&(Un.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}Un.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(i,s)=>s.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function IFt(){return"colors"in Un.inspectOpts?!!Un.inspectOpts.colors:wFt.isatty(process.stderr.fd)}o(IFt,"useColors");function SFt(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${i};1m${e} \x1B[0m`;t[0]=s+t[0].split(` `).join(` -`+s),t.push(i+"m+"+K1.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=bFt()+e+" "+t[0]}o(CFt,"formatArgs");function bFt(){return Un.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(bFt,"getDate");function wFt(...t){return process.stderr.write(Y1.formatWithOptions(Un.inspectOpts,...t)+` -`)}o(wFt,"log");function IFt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(IFt,"save");function SFt(){return process.env.DEBUG}o(SFt,"load");function BFt(t){t.inspectOpts={};let e=Object.keys(Un.inspectOpts);for(let r=0;re.trim()).join(" ")};Fke.O=function(t){return this.inspectOpts.colors=this.useColors,Y1.inspect(t,this.inspectOpts)}});var v6=g((uDr,x6)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?x6.exports=Lke():x6.exports=Mke()});var Z1=g(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.DownloadHTTPError=Or.DownloadLengthMismatchError=Or.DownloadError=Or.ExpiredMetadataError=Or.EqualVersionError=Or.BadVersionError=Or.RepositoryError=Or.PersistError=Or.RuntimeError=Or.ValueError=void 0;var N6=class extends Error{static{o(this,"ValueError")}};Or.ValueError=N6;var R6=class extends Error{static{o(this,"RuntimeError")}};Or.RuntimeError=R6;var _6=class extends Error{static{o(this,"PersistError")}};Or.PersistError=_6;var mS=class extends Error{static{o(this,"RepositoryError")}};Or.RepositoryError=mS;var X1=class extends mS{static{o(this,"BadVersionError")}};Or.BadVersionError=X1;var T6=class extends X1{static{o(this,"EqualVersionError")}};Or.EqualVersionError=T6;var D6=class extends mS{static{o(this,"ExpiredMetadataError")}};Or.ExpiredMetadataError=D6;var gS=class extends Error{static{o(this,"DownloadError")}};Or.DownloadError=gS;var Q6=class extends gS{static{o(this,"DownloadLengthMismatchError")}};Or.DownloadLengthMismatchError=Q6;var k6=class extends gS{static{o(this,"DownloadHTTPError")}statusCode;constructor(e,r){super(e),this.statusCode=r}};Or.DownloadHTTPError=k6});var qke=g(xE=>{"use strict";var O6=xE&&xE.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(xE,"__esModule",{value:!0});xE.withTempFile=void 0;var P6=O6(require("fs/promises")),xFt=O6(require("os")),Uke=O6(require("path")),vFt=o(async t=>NFt(async e=>t(Uke.default.join(e,"tempfile"))),"withTempFile");xE.withTempFile=vFt;var NFt=o(async t=>{let e=await P6.default.realpath(xFt.default.tmpdir()),r=await P6.default.mkdtemp(e+Uke.default.sep);try{return await t(r)}finally{await P6.default.rm(r,{force:!0,recursive:!0,maxRetries:3})}},"withTempDir")});var Hke=g((ADr,Gke)=>{var L6=class{static{o(this,"RetryOperation")}#e=1;#r=null;#n=[];#t=null;#i;#s=null;#l;#a;#c=null;#o;constructor(e,r={}){this.#l=[...e],this.#a=[...e],this.#o=r.unref,this.#i=r.maxRetryTime||1/0,r.forever&&(this.#r=[...this.#a])}get timeouts(){return[...this.#a]}get errors(){return[...this.#n]}get attempts(){return this.#e}get mainError(){let e=null;if(this.#n.length){let r=0,n={};for(let i=0;i=r&&(e=s,r=n[a])}}return e}reset(){this.#e=1,this.#a=[...this.#l]}stop(){this.#c&&clearTimeout(this.#c),this.#a=[],this.#r=null}retry(e){if(this.#n.push(e),new Date().getTime()-this.#s>=this.#i)return this.#n.unshift(new Error("RetryOperation timeout occurred")),!1;let r=this.#a.shift();if(r===void 0)if(this.#r)this.#n.pop(),r=this.#r.at(-1);else return!1;return this.#c=setTimeout(()=>{this.#e++,this.#t(this.#e)},r),this.#o&&this.#c.unref(),!0}attempt(e){this.#t=e,this.#s=new Date().getTime(),this.#t(this.#e)}};Gke.exports={RetryOperation:L6}});var $ke=g((gDr,Vke)=>{var{RetryOperation:RFt}=Hke(),zke=o((t,e)=>Math.min(Math.round((1+(e.randomize?Math.random():0))*Math.max(e.minTimeout,1)*Math.pow(e.factor,t)),e.maxTimeout),"createTimeout"),_Ft=o(t=>t?.code==="EPROMISERETRY"&&Object.hasOwn(t,"retried"),"isRetryError"),TFt=o(async(t,e={})=>{let r=[];if(e instanceof Array)r=[...e];else{e.retries===1/0&&(e.forever=!0,delete e.retries);let i={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1,...e};if(i.minTimeout>i.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");if(i.retries){for(let s=0;ss-a)}else e.forever&&r.push(zke(0,i))}let n=new RFt(r,{forever:e.forever,unref:e.unref,maxRetryTime:e.maxRetryTime});return new Promise(function(i,s){n.attempt(async a=>{try{let c=await t(l=>{throw Object.assign(new Error("Retrying"),{code:"EPROMISERETRY",retried:l})},a,n);return i(c)}catch(c){if(!_Ft(c))return s(c);if(!n.retry(c.retried||new Error))return s(c.retried)}})})},"promiseRetry");Vke.exports={promiseRetry:TFt}});var U6=g(Df=>{"use strict";var M6=Df&&Df.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Df,"__esModule",{value:!0});Df.DefaultFetcher=Df.BaseFetcher=void 0;var DFt=M6(v6()),jke=M6(require("fs")),QFt=M6(require("util")),Wke=Z1(),kFt=qke(),PFt=$ke(),OFt=(0,DFt.default)("tuf:fetch"),LFt="User-Agent",ek=class{static{o(this,"BaseFetcher")}async downloadFile(e,r,n){return(0,kFt.withTempFile)(async i=>{let s=await this.fetch(e),a=0,c=jke.default.createWriteStream(i),l=s.getReader();try{for(;;){let{done:u,value:d}=await l.read();if(u)break;if(a+=d.length,a>r)throw new Wke.DownloadLengthMismatchError("Max length reached");await FFt(c,Buffer.from(d))}}finally{l.releaseLock(),await QFt.default.promisify(c.close).bind(c)()}return n(i)})}async downloadBytes(e,r){return this.downloadFile(e,r,async n=>{let i=jke.default.createReadStream(n),s=[];for await(let a of i)s.push(a);return Buffer.concat(s)})}};Df.BaseFetcher=ek;var F6=class extends ek{static{o(this,"DefaultFetcher")}userAgent;timeout;retry;constructor(e={}){if(super(),this.userAgent=e.userAgent,this.timeout=e.timeout,e.retry===!0)this.retry={forever:!0};else if(e.retry===!1||e.retry===void 0)this.retry=void 0;else if(typeof e.retry=="number"){if(e.retry<0)throw new Error("Retry count must be non-negative number");this.retry={retries:e.retry}}else this.retry=e.retry}async fetch(e){let r=this.retry!==void 0;return(0,PFt.promiseRetry)(async(n,i)=>{OFt("GET %s (attempt %d)",e,i);let s;try{s=await fetch(e,{headers:{[LFt]:this.userAgent||""},signal:this.timeout?AbortSignal.timeout(this.timeout):void 0})}catch(a){let c=a instanceof Error?a:new Error(String(a));if(r)return n(c);throw c}if(!s.ok||!s.body){let a=new Wke.DownloadHTTPError("Failed to download",s.status);if(r&&s.status>=500&&s.status<600)return n(a);throw a}return s.body},this.retry)}};Df.DefaultFetcher=F6;var FFt=o(async(t,e)=>new Promise((r,n)=>{t.write(e,i=>{i&&n(i),r(!0)})}),"writeBufferToStream")});var Jke=g((bDr,MFt)=>{MFt.exports={name:"tuf-js",version:"6.0.0",description:"JavaScript implementation of The Update Framework (TUF)",main:"dist/index.js",types:"dist/index.d.ts",scripts:{build:"tsc --build tsconfig.build.json",clean:"rm -rf dist && rm tsconfig.build.tsbuildinfo",test:"jest"},repository:{type:"git",url:"git+https://github.com/theupdateframework/tuf-js.git"},files:["dist"],keywords:["tuf","security","update"],author:"bdehamer@github.com",license:"MIT",bugs:{url:"https://github.com/theupdateframework/tuf-js/issues"},homepage:"https://github.com/theupdateframework/tuf-js/tree/main/packages/client#readme",devDependencies:{"@tufjs/repo-mock":"5.0.0","@types/debug":"^4.1.13","@types/retry":"^0.12.5"},dependencies:{"@gar/promise-retry":"^1.0.3","@tufjs/models":"5.0.0",debug:"^4.4.3"},engines:{node:"^22.22.2 || ^24.15.0 || >=26.0.0"}}});var Yke=g(tk=>{"use strict";Object.defineProperty(tk,"__esModule",{value:!0});tk.defaultConfig=void 0;tk.defaultConfig={maxRootRotations:256,maxDelegations:32,rootMaxLength:512e3,timestampMaxLength:16384,snapshotMaxLength:2e6,targetsMaxLength:5e6,prefixTargetsWithHash:!0,fetchTimeout:1e5,fetchRetries:void 0,fetchRetry:2,userAgent:""}});var Kke=g(rk=>{"use strict";Object.defineProperty(rk,"__esModule",{value:!0});rk.TrustedMetadataStore=void 0;var ln=j1(),wr=Z1(),q6=class{static{o(this,"TrustedMetadataStore")}trustedSet={};referenceTime;constructor(e){this.referenceTime=new Date,this.loadTrustedRoot(e)}get root(){if(!this.trustedSet.root)throw new ReferenceError("No trusted root metadata");return this.trustedSet.root}get timestamp(){return this.trustedSet.timestamp}get snapshot(){return this.trustedSet.snapshot}get targets(){return this.trustedSet.targets}getRole(e){return this.trustedSet[e]}updateRoot(e){let r=JSON.parse(e.toString("utf8")),n=ln.Metadata.fromJSON(ln.MetadataKind.Root,r);if(n.signed.type!=ln.MetadataKind.Root)throw new wr.RepositoryError(`Expected 'root', got ${n.signed.type}`);if(this.root.verifyDelegate(ln.MetadataKind.Root,n),n.signed.version!=this.root.signed.version+1)throw new wr.BadVersionError(`Expected version ${this.root.signed.version+1}, got ${n.signed.version}`);return n.verifyDelegate(ln.MetadataKind.Root,n),this.trustedSet.root=n,n}updateTimestamp(e){if(this.snapshot)throw new wr.RuntimeError("Cannot update timestamp after snapshot");if(this.root.signed.isExpired(this.referenceTime))throw new wr.ExpiredMetadataError("Final root.json is expired");let r=JSON.parse(e.toString("utf8")),n=ln.Metadata.fromJSON(ln.MetadataKind.Timestamp,r);if(n.signed.type!=ln.MetadataKind.Timestamp)throw new wr.RepositoryError(`Expected 'timestamp', got ${n.signed.type}`);if(this.root.verifyDelegate(ln.MetadataKind.Timestamp,n),this.timestamp){if(n.signed.version{let l=s.signed.meta[a];if(!l)throw new wr.RepositoryError(`Missing file ${a} in new snapshot`);if(l.version{"use strict";Object.defineProperty(G6,"__esModule",{value:!0});G6.join=qFt;var UFt=require("url");function qFt(t,e){return new UFt.URL(GFt(t)+HFt(e)).toString()}o(qFt,"join");function GFt(t){return t.endsWith("/")?t:t+"/"}o(GFt,"ensureTrailingSlash");function HFt(t){return t.startsWith("/")?t.slice(1):t}o(HFt,"removeLeadingSlash")});var ePe=g(ua=>{"use strict";var zFt=ua&&ua.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),VFt=ua&&ua.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),V6=ua&&ua.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i{await e.verify(vE.createReadStream(l)),H6("WRITE %s",i),vE.copyFileSync(l,i)}),i}async findCachedTarget(e,r){r||(r=this.generateTargetPath(e));try{if(vE.existsSync(r))return await e.verify(vE.createReadStream(r)),r}catch{return}}loadLocalMetadata(e){let r=nk.join(this.dir,`${e}.json`);return H6("READ %s",r),vE.readFileSync(r)}async loadRoot(){let r=this.trustedSet.root.signed.version+1,n=r+this.config.maxRootRotations;for(let i=r;i0;){let{roleName:i,parentRoleName:s}=r.pop();if(n.has(i))continue;let a=(await this.loadTargets(i,s))?.signed;if(!a)continue;let c=a.targets?.[e];if(c)return c;if(n.add(i),a.delegations){let l=[],u=a.delegations.rolesForTarget(e);for(let{role:d,terminating:f}of u)if(l.push({roleName:d,parentRoleName:i}),f){r.splice(0);break}l.reverse(),r.push(...l)}}}generateTargetPath(e){if(!this.targetDir)throw new fA.ValueError("Target directory not set");let r=encodeURIComponent(e.path);return nk.join(this.targetDir,r)}persistMetadata(e,r){let n=encodeURIComponent(e);try{let i=nk.join(this.dir,`${n}.json`);H6("WRITE %s",i),vE.writeFileSync(i,r.toString("utf8"))}catch(i){throw new fA.PersistError(`Failed to persist metadata ${n} error: ${i}`)}}};ua.Updater=z6});var tPe=g(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});Qf.Updater=Qf.BaseFetcher=Qf.TargetFile=void 0;var KFt=j1();Object.defineProperty(Qf,"TargetFile",{enumerable:!0,get:o(function(){return KFt.TargetFile},"get")});var XFt=U6();Object.defineProperty(Qf,"BaseFetcher",{enumerable:!0,get:o(function(){return XFt.BaseFetcher},"get")});var ZFt=ePe();Object.defineProperty(Qf,"Updater",{enumerable:!0,get:o(function(){return ZFt.Updater},"get")})});var rPe=g((TDr,eMt)=>{eMt.exports={name:"@sigstore/tuf",version:"5.0.0",description:"Client for the Sigstore TUF repository",main:"dist/index.js",types:"dist/index.d.ts",scripts:{clean:"shx rm -rf dist *.tsbuildinfo",build:"tsc --build",test:"jest"},files:["dist","seeds.json"],author:"bdehamer@github.com",license:"Apache-2.0",repository:{type:"git",url:"git+https://github.com/sigstore/sigstore-js.git"},bugs:{url:"https://github.com/sigstore/sigstore-js/issues"},homepage:"https://github.com/sigstore/sigstore-js/tree/main/packages/tuf#readme",publishConfig:{provenance:!0},devDependencies:{"@sigstore/jest":"^0.0.0","@tufjs/repo-mock":"^5.0.0","@types/make-fetch-happen":"^10.0.4"},dependencies:{"@sigstore/protobuf-specs":"^0.5.0","tuf-js":"^6.0.0"},engines:{node:"^22.22.2 || ^24.15.0 || >=26.0.0"}}});var j6=g(ik=>{"use strict";Object.defineProperty(ik,"__esModule",{value:!0});ik.TUFError=void 0;var $6=class extends Error{static{o(this,"TUFError")}code;cause;constructor({code:e,message:r,cause:n}){super(r),this.code=e,this.cause=n,this.name=this.constructor.name}};ik.TUFError=$6});var nPe=g(ES=>{"use strict";var tMt=ES&&ES.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ES,"__esModule",{value:!0});ES.readTarget=nMt;var rMt=tMt(require("fs")),sk=j6();async function nMt(t,e){let r=await iMt(t,e);return new Promise((n,i)=>{rMt.default.readFile(r,"utf-8",(s,a)=>{s?i(new sk.TUFError({code:"TUF_READ_TARGET_ERROR",message:`error reading target ${r}`,cause:s})):n(a)})})}o(nMt,"readTarget");async function iMt(t,e){let r;try{r=await t.getTargetInfo(e)}catch(i){throw new sk.TUFError({code:"TUF_REFRESH_METADATA_ERROR",message:"error refreshing TUF metadata",cause:i})}if(!r)throw new sk.TUFError({code:"TUF_FIND_TARGET_ERROR",message:`target ${e} not found`});let n=await t.findCachedTarget(r);if(!n)try{n=await t.downloadTarget(r)}catch(i){throw new sk.TUFError({code:"TUF_DOWNLOAD_TARGET_ERROR",message:`error downloading target ${n}`,cause:i})}return n}o(iMt,"getTargetPath")});var iPe=g((ODr,sMt)=>{sMt.exports={"https://tuf-repo-cdn.sigstore.dev":{"root.json":"ewogInNpZ25hdHVyZXMiOiBbCiAgewogICAia2V5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1ZER4ei9TZm5SaTFmVDhla3BmQmQyTzF1b3o3anIzWjhuS3p4QTY5RVVRK2VGQ0ZJM3pldWJQV1U3dz09IiwKICAgICAgICAia2V5RGV0YWlscyI6ICJQS0lYX0VDRFNBX1AyNTZfU0hBXzI1NiIsCiAgICAgICAgInZhbGlkRm9yIjogewogICAgICAgICAgInN0YXJ0IjogIjIwMjEtMDMtMTRUMDA6MDA6MDBaIiwKICAgICAgICAgICJlbmQiOiAiMjAyMi0xMC0zMVQyMzo1OTo1OS45OTlaIgogICAgICAgIH0KICAgICAgfSwKICAgICAgImxvZ0lkIjogewogICAgICAgICJrZXlJZCI6ICJDR0NTOENoUy8yaEYwZEZySjRTY1JXY1lyQlk5d3pqU2JlYThJZ1kyYjNJPSIKICAgICAgfQogICAgfSwKICAgIHsKICAgICAgImJhc2VVcmwiOiAiaHR0cHM6Ly9jdGZlLnNpZ3N0b3JlLmRldi8yMDIyIiwKICAgICAgImhhc2hBbGdvcml0aG0iOiAiU0hBMl8yNTYiLAogICAgICAicHVibGljS2V5IjogewogICAgICAgICJyYXdCeXRlcyI6ICJNRmt3RXdZSEtvWkl6ajBDQVFZSUtvWkl6ajBEQVFjRFFnQUVpUFNsRmkwQ21GVGZFakNVcUY5SHVDRWNZWE5LQWFZYWxJSm1CWjh5eWV6UGpUcWh4cktCcE1uYW9jVnRMSkJJMWVNM3VYblF6UUdBSmRKNGdzOUZ5dz09IiwKICAgICAgICAia2V5RGV0YWlscyI6ICJQS0lYX0VDRFNBX1AyNTZfU0hBXzI1NiIsCiAgICAgICAgInZhbGlkRm9yIjogewogICAgICAgICAgInN0YXJ0IjogIjIwMjItMTAtMjBUMDA6MDA6MDBaIgogICAgICAgIH0KICAgICAgfSwKICAgICAgImxvZ0lkIjogewogICAgICAgICJrZXlJZCI6ICIzVDB3YXNiSEVUSmpHUjRjbVdjM0FxSktYcmplUEszL2g0cHlnQzhwN280PSIKICAgICAgfQogICAgfQogIF0sCiAgInRpbWVzdGFtcEF1dG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L0RUVk1JOTQzTHNzWm1KUnREcC9pN1NmR0htR1JQNmdSYnVqOXZPSzNiNjdaMFFRQWpFQXVUMkg2NzNMUUVhSFRjeVFTWnJrcDRtWDdXd2ttRitzVmJrWVk1bVhOK1JNSDEzS1VFSEhPcUFTYWVtWVdLL0UiCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9LAogICAgICAidmFsaWRGb3IiOiB7CiAgICAgICAgInN0YXJ0IjogIjIwMjUtMDctMDRUMDA6MDA6MDBaIgogICAgICB9CiAgICB9CiAgXQp9Cg==","registry.npmjs.org%2Fkeys.json":"ewogICAgImtleXMiOiBbCiAgICAgICAgewogICAgICAgICAgICAia2V5SWQiOiAiU0hBMjU2OmpsM2J3c3d1ODBQampva0NnaDBvMnc1YzJVNExoUUFFNTdnajljejFrekEiLAogICAgICAgICAgICAia2V5VXNhZ2UiOiAibnBtOnNpZ25hdHVyZXMiLAogICAgICAgICAgICAicHVibGljS2V5IjogewogICAgICAgICAgICAgICAgInJhd0J5dGVzIjogIk1Ga3dFd1lIS29aSXpqMENBUVlJS29aSXpqMERBUWNEUWdBRTFPbGIzek1BRkZ4WEtIaUlrUU81Y0ozWWhsNWk2VVBwK0lodXRlQkpidUhjQTVVb2dLbzBFV3RsV3dXNktTYUtvVE5FWUw3SmxDUWlWbmtoQmt0VWdnPT0iLAogICAgICAgICAgICAgICAgImtleURldGFpbHMiOiAiUEtJWF9FQ0RTQV9QMjU2X1NIQV8yNTYiLAogICAgICAgICAgICAgICAgInZhbGlkRm9yIjogewogICAgICAgICAgICAgICAgICAgICJzdGFydCI6ICIxOTk5LTAxLTAxVDAwOjAwOjAwLjAwMFoiLAogICAgICAgICAgICAgICAgICAgICJlbmQiOiAiMjAyNS0wMS0yOVQwMDowMDowMC4wMDBaIgogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgfSwKICAgICAgICB7CiAgICAgICAgICAgICJrZXlJZCI6ICJTSEEyNTY6amwzYndzd3U4MFBqam9rQ2doMG8ydzVjMlU0TGhRQUU1N2dqOWN6MWt6QSIsCiAgICAgICAgICAgICJrZXlVc2FnZSI6ICJucG06YXR0ZXN0YXRpb25zIiwKICAgICAgICAgICAgInB1YmxpY0tleSI6IHsKICAgICAgICAgICAgICAgICJyYXdCeXRlcyI6ICJNRmt3RXdZSEtvWkl6ajBDQVFZSUtvWkl6ajBEQVFjRFFnQUUxT2xiM3pNQUZGeFhLSGlJa1FPNWNKM1lobDVpNlVQcCtJaHV0ZUJKYnVIY0E1VW9nS28wRVd0bFd3VzZLU2FLb1RORVlMN0psQ1FpVm5raEJrdFVnZz09IiwKICAgICAgICAgICAgICAgICJrZXlEZXRhaWxzIjogIlBLSVhfRUNEU0FfUDI1Nl9TSEFfMjU2IiwKICAgICAgICAgICAgICAgICJ2YWxpZEZvciI6IHsKICAgICAgICAgICAgICAgICAgICAic3RhcnQiOiAiMjAyMi0xMi0wMVQwMDowMDowMC4wMDBaIiwKICAgICAgICAgICAgICAgICAgICAiZW5kIjogIjIwMjUtMDEtMjlUMDA6MDA6MDAuMDAwWiIKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgIH0sCiAgICAgICAgewogICAgICAgICAgICAia2V5SWQiOiAiU0hBMjU2OkRoUTh3UjVBUEJ2RkhMRi8rVGMrQVl2UE9kVHBjSURxT2h4c0JIUndDN1UiLAogICAgICAgICAgICAia2V5VXNhZ2UiOiAibnBtOnNpZ25hdHVyZXMiLAogICAgICAgICAgICAicHVibGljS2V5IjogewogICAgICAgICAgICAgICAgInJhd0J5dGVzIjogIk1Ga3dFd1lIS29aSXpqMENBUVlJS29aSXpqMERBUWNEUWdBRVk2WWE3VysrN2FVUHp2TVRyZXpINlljeDNjK0hPS1lDY05HeWJKWlNDSnEvZmQ3UWE4dXVBS3RkSWtVUXRRaUVLRVJoQW1FNWxNTUpoUDhPa0RPYTJnPT0iLAogICAgICAgICAgICAgICAgImtleURldGFpbHMiOiAiUEtJWF9FQ0RTQV9QMjU2X1NIQV8yNTYiLAogICAgICAgICAgICAgICAgInZhbGlkRm9yIjogewogICAgICAgICAgICAgICAgICAgICJzdGFydCI6ICIyMDI1LTAxLTEzVDAwOjAwOjAwLjAwMFoiCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICB9LAogICAgICAgIHsKICAgICAgICAgICAgImtleUlkIjogIlNIQTI1NjpEaFE4d1I1QVBCdkZITEYvK1RjK0FZdlBPZFRwY0lEcU9oeHNCSFJ3QzdVIiwKICAgICAgICAgICAgImtleVVzYWdlIjogIm5wbTphdHRlc3RhdGlvbnMiLAogICAgICAgICAgICAicHVibGljS2V5IjogewogICAgICAgICAgICAgICAgInJhd0J5dGVzIjogIk1Ga3dFd1lIS29aSXpqMENBUVlJS29aSXpqMERBUWNEUWdBRVk2WWE3VysrN2FVUHp2TVRyZXpINlljeDNjK0hPS1lDY05HeWJKWlNDSnEvZmQ3UWE4dXVBS3RkSWtVUXRRaUVLRVJoQW1FNWxNTUpoUDhPa0RPYTJnPT0iLAogICAgICAgICAgICAgICAgImtleURldGFpbHMiOiAiUEtJWF9FQ0RTQV9QMjU2X1NIQV8yNTYiLAogICAgICAgICAgICAgICAgInZhbGlkRm9yIjogewogICAgICAgICAgICAgICAgICAgICJzdGFydCI6ICIyMDI1LTAxLTEzVDAwOjAwOjAwLjAwMFoiCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICBdCn0K"}}}});var aPe=g(NE=>{"use strict";var oPe=NE&&NE.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(NE,"__esModule",{value:!0});NE.TUFClient=void 0;var kf=oPe(require("fs")),CS=oPe(require("path")),oMt=tPe(),aMt=Y6(),sPe=rPe(),cMt=nPe(),J6="targets",W6=class{static{o(this,"TUFClient")}updater;constructor(e){let r=new URL(e.mirrorURL),n=encodeURIComponent(r.host+r.pathname.replace(/\/$/,"")),i=CS.default.join(e.cachePath,n);lMt(i),uMt({cachePath:i,mirrorURL:e.mirrorURL,tufRootPath:e.rootPath,forceInit:e.forceInit}),this.updater=dMt({mirrorURL:e.mirrorURL,cachePath:i,forceCache:e.forceCache,retry:e.retry,timeout:e.timeout})}async refresh(){return this.updater.refresh()}getTarget(e){return(0,cMt.readTarget)(this.updater,e)}};NE.TUFClient=W6;function lMt(t){let e=CS.default.join(t,J6);kf.default.existsSync(t)||kf.default.mkdirSync(t,{recursive:!0}),kf.default.existsSync(e)||kf.default.mkdirSync(e)}o(lMt,"initTufCache");function uMt({cachePath:t,mirrorURL:e,tufRootPath:r,forceInit:n}){let i=CS.default.join(t,"root.json");if(!kf.default.existsSync(i)||n)if(r)kf.default.copyFileSync(r,i);else{let a=iPe()[e];if(!a)throw new aMt.TUFError({code:"TUF_INIT_CACHE_ERROR",message:`No root.json found for mirror: ${e}`});kf.default.writeFileSync(i,Buffer.from(a["root.json"],"base64")),Object.entries(a.targets).forEach(([c,l])=>{kf.default.writeFileSync(CS.default.join(t,J6,c),Buffer.from(l,"base64"))})}}o(uMt,"seedCache");function dMt(t){let e={fetchTimeout:t.timeout,fetchRetry:t.retry,userAgent:`${encodeURIComponent(sPe.name)}/${sPe.version}`};return new oMt.Updater({metadataBaseUrl:t.mirrorURL,targetBaseUrl:`${t.mirrorURL}/targets`,metadataDir:t.cachePath,targetDir:CS.default.join(t.cachePath,J6),forceCache:t.forceCache,config:e})}o(dMt,"initClient")});var Y6=g(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.TUFError=ju.DEFAULT_MIRROR_URL=void 0;ju.getTrustedRoot=EMt;ju.initTUF=CMt;var fMt=dE(),hMt=P1e(),pMt=aPe();ju.DEFAULT_MIRROR_URL="https://tuf-repo-cdn.sigstore.dev";var AMt="sigstore-js",mMt={retries:2},gMt=5e3,yMt="trusted_root.json";async function EMt(t={}){let r=await cPe(t).getTarget(yMt);return fMt.TrustedRoot.fromJSON(JSON.parse(r))}o(EMt,"getTrustedRoot");async function CMt(t={}){let e=cPe(t);return e.refresh().then(()=>e)}o(CMt,"initTUF");function cPe(t){return new pMt.TUFClient({cachePath:t.cachePath||(0,hMt.appDataPath)(AMt),rootPath:t.rootPath,mirrorURL:t.mirrorURL||ju.DEFAULT_MIRROR_URL,retry:t.retry??mMt,timeout:t.timeout??gMt,forceCache:t.forceCache??!1,forceInit:t.forceInit??t.force??!1})}o(cPe,"createClient");var bMt=j6();Object.defineProperty(ju,"TUFError",{enumerable:!0,get:o(function(){return bMt.TUFError},"get")})});var bS=g(ok=>{"use strict";Object.defineProperty(ok,"__esModule",{value:!0});ok.ByteStream=void 0;var K6=class extends Error{static{o(this,"StreamError")}},X6=class t{static{o(this,"ByteStream")}static BLOCK_SIZE=1024;buf;view;start=0;constructor(e){e?(this.buf=e,this.view=Buffer.from(e)):(this.buf=Buffer.alloc(0),this.view=Buffer.from(this.buf))}get buffer(){return this.view.subarray(0,this.start)}get length(){return this.view.byteLength}get position(){return this.start}seek(e){this.start=e}slice(e,r){let n=e+r;if(n>this.length)throw new K6("request past end of buffer");return this.view.subarray(e,n)}appendChar(e){this.ensureCapacity(1),this.view[this.start]=e,this.start+=1}appendUint16(e){this.ensureCapacity(2);let r=new Uint16Array([e]),n=new Uint8Array(r.buffer);this.view[this.start]=n[1],this.view[this.start+1]=n[0],this.start+=2}appendUint24(e){this.ensureCapacity(3);let r=new Uint32Array([e]),n=new Uint8Array(r.buffer);this.view[this.start]=n[2],this.view[this.start+1]=n[1],this.view[this.start+2]=n[0],this.start+=3}appendView(e){this.ensureCapacity(e.length),this.view.set(e,this.start),this.start+=e.length}getBlock(e){if(e<=0)return Buffer.alloc(0);if(this.start+e>this.view.length)throw new Error("request past end of buffer");let r=this.view.subarray(this.start,this.start+e);return this.start+=e,r}getUint8(){return this.getBlock(1)[0]}getUint16(){let e=this.getBlock(2);return e[0]<<8|e[1]}ensureCapacity(e){if(this.start+e>this.view.byteLength){let r=t.BLOCK_SIZE+(e>t.BLOCK_SIZE?e:0);this.realloc(this.view.byteLength+r)}}realloc(e){let r=Buffer.alloc(e),n=Buffer.from(r);n.set(this.view),this.buf=r,this.view=n}};ok.ByteStream=X6});var wS=g(RE=>{"use strict";Object.defineProperty(RE,"__esModule",{value:!0});RE.ASN1TypeError=RE.ASN1ParseError=void 0;var Z6=class extends Error{static{o(this,"ASN1ParseError")}};RE.ASN1ParseError=Z6;var eY=class extends Error{static{o(this,"ASN1TypeError")}};RE.ASN1TypeError=eY});var lPe=g(ck=>{"use strict";Object.defineProperty(ck,"__esModule",{value:!0});ck.decodeLength=wMt;ck.encodeLength=IMt;var ak=wS();function wMt(t){let e=t.getUint8();if((e&128)===0)return e;let r=e&127;if(r>6)throw new ak.ASN1ParseError("length exceeds 6 byte limit");let n=0;for(let i=0;i0n;)r.unshift(Number(e&255n)),e=e>>8n;return Buffer.from([128|r.length,...r])}o(IMt,"encodeLength")});var dPe=g(Pf=>{"use strict";Object.defineProperty(Pf,"__esModule",{value:!0});Pf.parseInteger=xMt;Pf.parseStringASCII=uPe;Pf.parseTime=vMt;Pf.parseOID=NMt;Pf.parseBoolean=RMt;Pf.parseBitString=_Mt;var tY=wS(),SMt=/^(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(\.\d{3})?Z$/,BMt=/^(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(\.\d{3})?Z$/;function xMt(t){let e=0,r=t.length,n=t[e],i=n>127,s=i?255:0;for(;n==s&&++e=50?1900:2e3,n[1]=i.toString()}return new Date(`${n[1]}-${n[2]}-${n[3]}T${n[4]}:${n[5]}:${n[6]}Z`)}o(vMt,"parseTime");function NMt(t){let e=0,r=t.length,n=t[e++],i=Math.floor(n/40),s=n%40,a=`${i}.${s}`,c=0n;for(;e7)throw new tY.ASN1ParseError("invalid bit string");let r=1,n=t.length,i=[];for(let s=r;s=c;--l)i.push(a>>l&1)}return i}o(_Mt,"parseBitString")});var hPe=g(lk=>{"use strict";Object.defineProperty(lk,"__esModule",{value:!0});lk.ASN1Tag=void 0;var fPe=wS(),hA={BOOLEAN:1,INTEGER:2,BIT_STRING:3,OCTET_STRING:4,OBJECT_IDENTIFIER:6,SEQUENCE:16,SET:17,PRINTABLE_STRING:19,UTC_TIME:23,GENERALIZED_TIME:24},rY={UNIVERSAL:0,APPLICATION:1,CONTEXT_SPECIFIC:2,PRIVATE:3},nY=class{static{o(this,"ASN1Tag")}number;constructed;class;constructor(e){if(this.number=e&31,this.constructed=(e&32)===32,this.class=e>>6,this.number===31)throw new fPe.ASN1ParseError("long form tags not supported");if(this.class===rY.UNIVERSAL&&this.number===0)throw new fPe.ASN1ParseError("unsupported tag 0x00")}isUniversal(){return this.class===rY.UNIVERSAL}isContextSpecific(e){let r=this.class===rY.CONTEXT_SPECIFIC;return e!==void 0?r&&this.number===e:r}isBoolean(){return this.isUniversal()&&this.number===hA.BOOLEAN}isInteger(){return this.isUniversal()&&this.number===hA.INTEGER}isBitString(){return this.isUniversal()&&this.number===hA.BIT_STRING}isOctetString(){return this.isUniversal()&&this.number===hA.OCTET_STRING}isOID(){return this.isUniversal()&&this.number===hA.OBJECT_IDENTIFIER}isUTCTime(){return this.isUniversal()&&this.number===hA.UTC_TIME}isGeneralizedTime(){return this.isUniversal()&&this.number===hA.GENERALIZED_TIME}toDER(){return this.number|(this.constructed?32:0)|this.class<<6}};lk.ASN1Tag=nY});var gPe=g(dk=>{"use strict";Object.defineProperty(dk,"__esModule",{value:!0});dk.ASN1Obj=void 0;var iY=bS(),Wu=wS(),APe=lPe(),_E=dPe(),TMt=hPe(),uk=class{static{o(this,"ASN1Obj")}tag;subs;value;constructor(e,r,n){this.tag=e,this.value=r,this.subs=n}static parseBuffer(e){let r=new iY.ByteStream(e),n=mPe(r);if(r.position!==r.length)throw new Wu.ASN1ParseError("invalid trailing data");return n}toDER(){let e=new iY.ByteStream;if(this.subs.length>0)for(let i of this.subs)e.appendView(i.toDER());else e.appendView(this.value);let r=e.buffer,n=new iY.ByteStream;return n.appendChar(this.tag.toDER()),n.appendView((0,APe.encodeLength)(r.length)),n.appendView(r),n.buffer}toBoolean(){if(!this.tag.isBoolean())throw new Wu.ASN1TypeError("not a boolean");return(0,_E.parseBoolean)(this.value)}toInteger(){if(!this.tag.isInteger())throw new Wu.ASN1TypeError("not an integer");return(0,_E.parseInteger)(this.value)}toOID(){if(!this.tag.isOID())throw new Wu.ASN1TypeError("not an OID");return(0,_E.parseOID)(this.value)}toDate(){switch(!0){case this.tag.isUTCTime():return(0,_E.parseTime)(this.value,!0);case this.tag.isGeneralizedTime():return(0,_E.parseTime)(this.value,!1);default:throw new Wu.ASN1TypeError("not a date")}}toBitString(){if(!this.tag.isBitString())throw new Wu.ASN1TypeError("not a bit string");return(0,_E.parseBitString)(this.value)}};dk.ASN1Obj=uk;var DMt=100;function mPe(t,e=0){if(e>DMt)throw new Wu.ASN1ParseError("maximum nesting depth exceeded");let r=new TMt.ASN1Tag(t.getUint8()),n=(0,APe.decodeLength)(t),i=t.slice(t.position,n),s=t.position,a=[];if(r.constructed)a=pPe(t,n,e);else if(r.isOctetString())try{a=pPe(t,n,e)}catch{}return a.length===0&&t.seek(s+n),new uk(r,i,a)}o(mPe,"parseStream");function pPe(t,e,r){let n=t.position+e;if(n>t.length)throw new Wu.ASN1ParseError("invalid length");let i=[];for(;t.position{"use strict";Object.defineProperty(fk,"__esModule",{value:!0});fk.ASN1Obj=void 0;var QMt=gPe();Object.defineProperty(fk,"ASN1Obj",{enumerable:!0,get:o(function(){return QMt.ASN1Obj},"get")})});var DE=g(Of=>{"use strict";var kMt=Of&&Of.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Of,"__esModule",{value:!0});Of.createPublicKey=PMt;Of.digest=OMt;Of.verify=LMt;Of.bufferEqual=FMt;var TE=kMt(require("crypto"));function PMt(t,e="spki"){return typeof t=="string"?t.startsWith("-----")?TE.default.createPublicKey(t):TE.default.createPublicKey({key:Buffer.from(t,"base64"),format:"der",type:e}):TE.default.createPublicKey({key:t,format:"der",type:e})}o(PMt,"createPublicKey");function OMt(t,...e){let r=TE.default.createHash(t);for(let n of e)r.update(n);return r.digest()}o(OMt,"digest");function LMt(t,e,r,n){try{return TE.default.verify(n,t,e,r)}catch{return!1}}o(LMt,"verify");function FMt(t,e){try{return TE.default.timingSafeEqual(t,e)}catch{return!1}}o(FMt,"bufferEqual")});var yPe=g(sY=>{"use strict";Object.defineProperty(sY,"__esModule",{value:!0});sY.preAuthEncoding=UMt;var MMt="DSSEv1";function UMt(t,e){let r=Buffer.from(t,"utf-8");return Buffer.concat([Buffer.from(`${MMt} ${r.length} `,"ascii"),r,Buffer.from(` ${e.length} `,"ascii"),e])}o(UMt,"preAuthEncoding")});var bPe=g(pk=>{"use strict";Object.defineProperty(pk,"__esModule",{value:!0});pk.base64Encode=qMt;pk.base64Decode=GMt;var EPe="base64",CPe="utf-8";function qMt(t){return Buffer.from(t,CPe).toString(EPe)}o(qMt,"base64Encode");function GMt(t){return Buffer.from(t,EPe).toString(CPe)}o(GMt,"base64Decode")});var wPe=g(aY=>{"use strict";Object.defineProperty(aY,"__esModule",{value:!0});aY.canonicalize=oY;function oY(t){let e="";if(t===null||typeof t!="object"||t.toJSON!=null)e+=JSON.stringify(t);else if(Array.isArray(t)){e+="[";let r=!0;t.forEach(n=>{r||(e+=","),r=!1,e+=oY(n)}),e+="]"}else{e+="{";let r=!0;Object.keys(t).sort().forEach(n=>{r||(e+=","),r=!1,e+=JSON.stringify(n),e+=":",e+=oY(t[n])}),e+="}"}return e}o(oY,"canonicalize")});var cY=g(Ak=>{"use strict";Object.defineProperty(Ak,"__esModule",{value:!0});Ak.toDER=VMt;Ak.fromDER=$Mt;var HMt=/-----BEGIN (.*)-----/,zMt=/-----END (.*)-----/;function VMt(t){let e="";return t.split(` -`).forEach(r=>{r.match(HMt)||r.match(zMt)||(e+=r)}),Buffer.from(e,"base64")}o(VMt,"toDER");function $Mt(t,e="CERTIFICATE"){let n=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...n,`-----END ${e}-----`].join(` +`+s),t.push(i+"m+"+X1.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=BFt()+e+" "+t[0]}o(SFt,"formatArgs");function BFt(){return Un.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(BFt,"getDate");function xFt(...t){return process.stderr.write(K1.formatWithOptions(Un.inspectOpts,...t)+` +`)}o(xFt,"log");function vFt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(vFt,"save");function NFt(){return process.env.DEBUG}o(NFt,"load");function _Ft(t){t.inspectOpts={};let e=Object.keys(Un.inspectOpts);for(let r=0;re.trim()).join(" ")};qke.O=function(t){return this.inspectOpts.colors=this.useColors,K1.inspect(t,this.inspectOpts)}});var NJ=g((pDr,vJ)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?vJ.exports=Uke():vJ.exports=Gke()});var ek=g(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.DownloadHTTPError=Or.DownloadLengthMismatchError=Or.DownloadError=Or.ExpiredMetadataError=Or.EqualVersionError=Or.BadVersionError=Or.RepositoryError=Or.PersistError=Or.RuntimeError=Or.ValueError=void 0;var _J=class extends Error{static{o(this,"ValueError")}};Or.ValueError=_J;var RJ=class extends Error{static{o(this,"RuntimeError")}};Or.RuntimeError=RJ;var TJ=class extends Error{static{o(this,"PersistError")}};Or.PersistError=TJ;var gS=class extends Error{static{o(this,"RepositoryError")}};Or.RepositoryError=gS;var Z1=class extends gS{static{o(this,"BadVersionError")}};Or.BadVersionError=Z1;var DJ=class extends Z1{static{o(this,"EqualVersionError")}};Or.EqualVersionError=DJ;var QJ=class extends gS{static{o(this,"ExpiredMetadataError")}};Or.ExpiredMetadataError=QJ;var yS=class extends Error{static{o(this,"DownloadError")}};Or.DownloadError=yS;var kJ=class extends yS{static{o(this,"DownloadLengthMismatchError")}};Or.DownloadLengthMismatchError=kJ;var PJ=class extends yS{static{o(this,"DownloadHTTPError")}statusCode;constructor(e,r){super(e),this.statusCode=r}};Or.DownloadHTTPError=PJ});var zke=g(vE=>{"use strict";var LJ=vE&&vE.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vE,"__esModule",{value:!0});vE.withTempFile=void 0;var OJ=LJ(require("fs/promises")),RFt=LJ(require("os")),Hke=LJ(require("path")),TFt=o(async t=>DFt(async e=>t(Hke.default.join(e,"tempfile"))),"withTempFile");vE.withTempFile=TFt;var DFt=o(async t=>{let e=await OJ.default.realpath(RFt.default.tmpdir()),r=await OJ.default.mkdtemp(e+Hke.default.sep);try{return await t(r)}finally{await OJ.default.rm(r,{force:!0,recursive:!0,maxRetries:3})}},"withTempDir")});var $ke=g((EDr,Vke)=>{var FJ=class{static{o(this,"RetryOperation")}#e=1;#r=null;#n=[];#t=null;#i;#s=null;#l;#a;#c=null;#o;constructor(e,r={}){this.#l=[...e],this.#a=[...e],this.#o=r.unref,this.#i=r.maxRetryTime||1/0,r.forever&&(this.#r=[...this.#a])}get timeouts(){return[...this.#a]}get errors(){return[...this.#n]}get attempts(){return this.#e}get mainError(){let e=null;if(this.#n.length){let r=0,n={};for(let i=0;i=r&&(e=s,r=n[a])}}return e}reset(){this.#e=1,this.#a=[...this.#l]}stop(){this.#c&&clearTimeout(this.#c),this.#a=[],this.#r=null}retry(e){if(this.#n.push(e),new Date().getTime()-this.#s>=this.#i)return this.#n.unshift(new Error("RetryOperation timeout occurred")),!1;let r=this.#a.shift();if(r===void 0)if(this.#r)this.#n.pop(),r=this.#r.at(-1);else return!1;return this.#c=setTimeout(()=>{this.#e++,this.#t(this.#e)},r),this.#o&&this.#c.unref(),!0}attempt(e){this.#t=e,this.#s=new Date().getTime(),this.#t(this.#e)}};Vke.exports={RetryOperation:FJ}});var Jke=g((bDr,Wke)=>{var{RetryOperation:QFt}=$ke(),jke=o((t,e)=>Math.min(Math.round((1+(e.randomize?Math.random():0))*Math.max(e.minTimeout,1)*Math.pow(e.factor,t)),e.maxTimeout),"createTimeout"),kFt=o(t=>t?.code==="EPROMISERETRY"&&Object.hasOwn(t,"retried"),"isRetryError"),PFt=o(async(t,e={})=>{let r=[];if(e instanceof Array)r=[...e];else{e.retries===1/0&&(e.forever=!0,delete e.retries);let i={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1,...e};if(i.minTimeout>i.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");if(i.retries){for(let s=0;ss-a)}else e.forever&&r.push(jke(0,i))}let n=new QFt(r,{forever:e.forever,unref:e.unref,maxRetryTime:e.maxRetryTime});return new Promise(function(i,s){n.attempt(async a=>{try{let c=await t(l=>{throw Object.assign(new Error("Retrying"),{code:"EPROMISERETRY",retried:l})},a,n);return i(c)}catch(c){if(!kFt(c))return s(c);if(!n.retry(c.retried||new Error))return s(c.retried)}})})},"promiseRetry");Wke.exports={promiseRetry:PFt}});var qJ=g(Qf=>{"use strict";var UJ=Qf&&Qf.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Qf,"__esModule",{value:!0});Qf.DefaultFetcher=Qf.BaseFetcher=void 0;var OFt=UJ(NJ()),Yke=UJ(require("fs")),LFt=UJ(require("util")),Kke=ek(),FFt=zke(),MFt=Jke(),UFt=(0,OFt.default)("tuf:fetch"),qFt="User-Agent",tk=class{static{o(this,"BaseFetcher")}async downloadFile(e,r,n){return(0,FFt.withTempFile)(async i=>{let s=await this.fetch(e),a=0,c=Yke.default.createWriteStream(i),l=s.getReader();try{for(;;){let{done:u,value:d}=await l.read();if(u)break;if(a+=d.length,a>r)throw new Kke.DownloadLengthMismatchError("Max length reached");await GFt(c,Buffer.from(d))}}finally{l.releaseLock(),await LFt.default.promisify(c.close).bind(c)()}return n(i)})}async downloadBytes(e,r){return this.downloadFile(e,r,async n=>{let i=Yke.default.createReadStream(n),s=[];for await(let a of i)s.push(a);return Buffer.concat(s)})}};Qf.BaseFetcher=tk;var MJ=class extends tk{static{o(this,"DefaultFetcher")}userAgent;timeout;retry;constructor(e={}){if(super(),this.userAgent=e.userAgent,this.timeout=e.timeout,e.retry===!0)this.retry={forever:!0};else if(e.retry===!1||e.retry===void 0)this.retry=void 0;else if(typeof e.retry=="number"){if(e.retry<0)throw new Error("Retry count must be non-negative number");this.retry={retries:e.retry}}else this.retry=e.retry}async fetch(e){let r=this.retry!==void 0;return(0,MFt.promiseRetry)(async(n,i)=>{UFt("GET %s (attempt %d)",e,i);let s;try{s=await fetch(e,{headers:{[qFt]:this.userAgent||""},signal:this.timeout?AbortSignal.timeout(this.timeout):void 0})}catch(a){let c=a instanceof Error?a:new Error(String(a));if(r)return n(c);throw c}if(!s.ok||!s.body){let a=new Kke.DownloadHTTPError("Failed to download",s.status);if(r&&s.status>=500&&s.status<600)return n(a);throw a}return s.body},this.retry)}};Qf.DefaultFetcher=MJ;var GFt=o(async(t,e)=>new Promise((r,n)=>{t.write(e,i=>{i&&n(i),r(!0)})}),"writeBufferToStream")});var Xke=g((BDr,HFt)=>{HFt.exports={name:"tuf-js",version:"6.0.0",description:"JavaScript implementation of The Update Framework (TUF)",main:"dist/index.js",types:"dist/index.d.ts",scripts:{build:"tsc --build tsconfig.build.json",clean:"rm -rf dist && rm tsconfig.build.tsbuildinfo",test:"jest"},repository:{type:"git",url:"git+https://github.com/theupdateframework/tuf-js.git"},files:["dist"],keywords:["tuf","security","update"],author:"bdehamer@github.com",license:"MIT",bugs:{url:"https://github.com/theupdateframework/tuf-js/issues"},homepage:"https://github.com/theupdateframework/tuf-js/tree/main/packages/client#readme",devDependencies:{"@tufjs/repo-mock":"5.0.0","@types/debug":"^4.1.13","@types/retry":"^0.12.5"},dependencies:{"@gar/promise-retry":"^1.0.3","@tufjs/models":"5.0.0",debug:"^4.4.3"},engines:{node:"^22.22.2 || ^24.15.0 || >=26.0.0"}}});var Zke=g(rk=>{"use strict";Object.defineProperty(rk,"__esModule",{value:!0});rk.defaultConfig=void 0;rk.defaultConfig={maxRootRotations:256,maxDelegations:32,rootMaxLength:512e3,timestampMaxLength:16384,snapshotMaxLength:2e6,targetsMaxLength:5e6,prefixTargetsWithHash:!0,fetchTimeout:1e5,fetchRetries:void 0,fetchRetry:2,userAgent:""}});var ePe=g(nk=>{"use strict";Object.defineProperty(nk,"__esModule",{value:!0});nk.TrustedMetadataStore=void 0;var ln=W1(),wr=ek(),GJ=class{static{o(this,"TrustedMetadataStore")}trustedSet={};referenceTime;constructor(e){this.referenceTime=new Date,this.loadTrustedRoot(e)}get root(){if(!this.trustedSet.root)throw new ReferenceError("No trusted root metadata");return this.trustedSet.root}get timestamp(){return this.trustedSet.timestamp}get snapshot(){return this.trustedSet.snapshot}get targets(){return this.trustedSet.targets}getRole(e){return this.trustedSet[e]}updateRoot(e){let r=JSON.parse(e.toString("utf8")),n=ln.Metadata.fromJSON(ln.MetadataKind.Root,r);if(n.signed.type!=ln.MetadataKind.Root)throw new wr.RepositoryError(`Expected 'root', got ${n.signed.type}`);if(this.root.verifyDelegate(ln.MetadataKind.Root,n),n.signed.version!=this.root.signed.version+1)throw new wr.BadVersionError(`Expected version ${this.root.signed.version+1}, got ${n.signed.version}`);return n.verifyDelegate(ln.MetadataKind.Root,n),this.trustedSet.root=n,n}updateTimestamp(e){if(this.snapshot)throw new wr.RuntimeError("Cannot update timestamp after snapshot");if(this.root.signed.isExpired(this.referenceTime))throw new wr.ExpiredMetadataError("Final root.json is expired");let r=JSON.parse(e.toString("utf8")),n=ln.Metadata.fromJSON(ln.MetadataKind.Timestamp,r);if(n.signed.type!=ln.MetadataKind.Timestamp)throw new wr.RepositoryError(`Expected 'timestamp', got ${n.signed.type}`);if(this.root.verifyDelegate(ln.MetadataKind.Timestamp,n),this.timestamp){if(n.signed.version{let l=s.signed.meta[a];if(!l)throw new wr.RepositoryError(`Missing file ${a} in new snapshot`);if(l.version{"use strict";Object.defineProperty(HJ,"__esModule",{value:!0});HJ.join=VFt;var zFt=require("url");function VFt(t,e){return new zFt.URL($Ft(t)+jFt(e)).toString()}o(VFt,"join");function $Ft(t){return t.endsWith("/")?t:t+"/"}o($Ft,"ensureTrailingSlash");function jFt(t){return t.startsWith("/")?t.slice(1):t}o(jFt,"removeLeadingSlash")});var nPe=g(ua=>{"use strict";var WFt=ua&&ua.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),JFt=ua&&ua.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),$J=ua&&ua.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i{await e.verify(NE.createReadStream(l)),zJ("WRITE %s",i),NE.copyFileSync(l,i)}),i}async findCachedTarget(e,r){r||(r=this.generateTargetPath(e));try{if(NE.existsSync(r))return await e.verify(NE.createReadStream(r)),r}catch{return}}loadLocalMetadata(e){let r=ik.join(this.dir,`${e}.json`);return zJ("READ %s",r),NE.readFileSync(r)}async loadRoot(){let r=this.trustedSet.root.signed.version+1,n=r+this.config.maxRootRotations;for(let i=r;i0;){let{roleName:i,parentRoleName:s}=r.pop();if(n.has(i))continue;let a=(await this.loadTargets(i,s))?.signed;if(!a)continue;let c=a.targets?.[e];if(c)return c;if(n.add(i),a.delegations){let l=[],u=a.delegations.rolesForTarget(e);for(let{role:d,terminating:f}of u)if(l.push({roleName:d,parentRoleName:i}),f){r.splice(0);break}l.reverse(),r.push(...l)}}}generateTargetPath(e){if(!this.targetDir)throw new hA.ValueError("Target directory not set");let r=encodeURIComponent(e.path);return ik.join(this.targetDir,r)}persistMetadata(e,r){let n=encodeURIComponent(e);try{let i=ik.join(this.dir,`${n}.json`);zJ("WRITE %s",i),NE.writeFileSync(i,r.toString("utf8"))}catch(i){throw new hA.PersistError(`Failed to persist metadata ${n} error: ${i}`)}}};ua.Updater=VJ});var iPe=g(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});kf.Updater=kf.BaseFetcher=kf.TargetFile=void 0;var tMt=W1();Object.defineProperty(kf,"TargetFile",{enumerable:!0,get:o(function(){return tMt.TargetFile},"get")});var rMt=qJ();Object.defineProperty(kf,"BaseFetcher",{enumerable:!0,get:o(function(){return rMt.BaseFetcher},"get")});var nMt=nPe();Object.defineProperty(kf,"Updater",{enumerable:!0,get:o(function(){return nMt.Updater},"get")})});var sPe=g((PDr,iMt)=>{iMt.exports={name:"@sigstore/tuf",version:"5.0.0",description:"Client for the Sigstore TUF repository",main:"dist/index.js",types:"dist/index.d.ts",scripts:{clean:"shx rm -rf dist *.tsbuildinfo",build:"tsc --build",test:"jest"},files:["dist","seeds.json"],author:"bdehamer@github.com",license:"Apache-2.0",repository:{type:"git",url:"git+https://github.com/sigstore/sigstore-js.git"},bugs:{url:"https://github.com/sigstore/sigstore-js/issues"},homepage:"https://github.com/sigstore/sigstore-js/tree/main/packages/tuf#readme",publishConfig:{provenance:!0},devDependencies:{"@sigstore/jest":"^0.0.0","@tufjs/repo-mock":"^5.0.0","@types/make-fetch-happen":"^10.0.4"},dependencies:{"@sigstore/protobuf-specs":"^0.5.0","tuf-js":"^6.0.0"},engines:{node:"^22.22.2 || ^24.15.0 || >=26.0.0"}}});var WJ=g(sk=>{"use strict";Object.defineProperty(sk,"__esModule",{value:!0});sk.TUFError=void 0;var jJ=class extends Error{static{o(this,"TUFError")}code;cause;constructor({code:e,message:r,cause:n}){super(r),this.code=e,this.cause=n,this.name=this.constructor.name}};sk.TUFError=jJ});var oPe=g(CS=>{"use strict";var sMt=CS&&CS.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(CS,"__esModule",{value:!0});CS.readTarget=aMt;var oMt=sMt(require("fs")),ok=WJ();async function aMt(t,e){let r=await cMt(t,e);return new Promise((n,i)=>{oMt.default.readFile(r,"utf-8",(s,a)=>{s?i(new ok.TUFError({code:"TUF_READ_TARGET_ERROR",message:`error reading target ${r}`,cause:s})):n(a)})})}o(aMt,"readTarget");async function cMt(t,e){let r;try{r=await t.getTargetInfo(e)}catch(i){throw new ok.TUFError({code:"TUF_REFRESH_METADATA_ERROR",message:"error refreshing TUF metadata",cause:i})}if(!r)throw new ok.TUFError({code:"TUF_FIND_TARGET_ERROR",message:`target ${e} not found`});let n=await t.findCachedTarget(r);if(!n)try{n=await t.downloadTarget(r)}catch(i){throw new ok.TUFError({code:"TUF_DOWNLOAD_TARGET_ERROR",message:`error downloading target ${n}`,cause:i})}return n}o(cMt,"getTargetPath")});var aPe=g((UDr,lMt)=>{lMt.exports={"https://tuf-repo-cdn.sigstore.dev":{"root.json":"ewogInNpZ25hdHVyZXMiOiBbCiAgewogICAia2V5aWQiOiAiZTcxYTU0ZDU0MzgzNWJhODZhZGFkOTQ2MDM3OWM3NjQxZmI4NzI2ZDE2NGVhNzY2ODAxYTFjNTIyYWJhN2VhMiIsCiAgICJzaWciOiAiMzA0NTAyMjEwMGVhMmYzNzRmNDA5ODEwZTJkYjk1MDc0OWQ5Y2ZlZDA5YTE1YjZhNWUyNWYzZDVmZmQwNzk5NDU5ZDdiZWUxNjcwMjIwMjhkM2FjZGRlNmRiZDUwMzRjZmFkMjIyZDMxYjQxMDkwZWUyMTg5NGUyYzQ2Y2I4OTc0MTk4YWIwMzc3ZGI0NCIKICB9LAogIHsKICAgImtleWlkIjogIjIyZjRjYWVjNmQ4ZTZmOTU1NWFmNjZiM2Q0YzNjYjA2YTNiYjIzZmRjN2UzOWM5MTZjNjFmNDYyZTZmNTJiMDYiLAogICAic2lnIjogIjMwNDQwMjIwN2ViYjI0ZTMyMzdlNDcwNjkxZDc4NzU5MDNhNzc1NGQwZWYyYWU3ZTdiNTAyNGE3ODg4YzlhMzhhNTJkZWVjZDAyMjA2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IwMjEtMDEtMTJUMTE6NTM6MjdaIgogICAgICAgIH0KICAgICAgfSwKICAgICAgImxvZ0lkIjogewogICAgICAgICJrZXlJZCI6ICJ3Tkk5YXRRR2x6K1ZXZk82TFJ5Z0g0UVVmWS84VzRSRndpVDVpNVdSZ0IwPSIKICAgICAgfQogICAgfSwKICAgIHsKICAgICAgImJhc2VVcmwiOiAiaHR0cHM6Ly9sb2cyMDI1LTEucmVrb3Iuc2lnc3RvcmUuZGV2IiwKICAgICAgImhhc2hBbGdvcml0aG0iOiAiU0hBMl8yNTYiLAogICAgICAicHVibGljS2V5IjogewogICAgICAgICJyYXdCeXRlcyI6ICJNQ293QlFZREsyVndBeUVBdDhybHAxa25Hd2pmYmNYQVlQWUFrbjBYaUx6MXg4TzR0MFlrRWhpZTI0ND0iLAogICAgICAgICJrZXlEZXRhaWxzIjogIlBLSVhfRUQyNTUxOSIsCiAgICAgICAgInZhbGlkRm9yIjogewogICAgICAgICAgInN0YXJ0IjogIjIwMjUtMDktMjNUMDA6MDA6MDBaIgogICAgICAgIH0KICAgICAgfSwKICAgICAgImxvZ0lkIjogewogICAgICAgICJrZXlJZCI6ICJ6eEdaRlZ2ZDBGRW1qUjhXckZ3TWRjQUo5dnRhWS9RWGY0NFkxd1VlUDZBPSIKICAgICAgfQogICAgfQogIF0sCiAgImNlcnRpZmljYXRlQXV0aG9yaXRpZXMiOiBbCiAgICB7CiAgICAgICJzdWJqZWN0IjogewogICAgICAgICJvcmdhbml6YXRpb24iOiAic2lnc3RvcmUuZGV2IiwKICAgICAgICAiY29tbW9uTmFtZSI6ICJzaWdzdG9yZSIKICAgICAgfSwKICAgICAgInVyaSI6ICJodHRwczovL2Z1bGNpby5zaWdzdG9yZS5kZXYiLAogICAgICAiY2VydENoYWluIjogewogICAgICAgICJjZXJ0aWZpY2F0ZXMiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJyYXdCeXRlcyI6ICJNSUlCK0RDQ0FYNmdBd0lCQWdJVE5Wa0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XpqMENBUVlJS29aSXpqMERBUWNEUWdBRTFPbGIzek1BRkZ4WEtIaUlrUU81Y0ozWWhsNWk2VVBwK0lodXRlQkpidUhjQTVVb2dLbzBFV3RsV3dXNktTYUtvVE5FWUw3SmxDUWlWbmtoQmt0VWdnPT0iLAogICAgICAgICAgICAgICAgImtleURldGFpbHMiOiAiUEtJWF9FQ0RTQV9QMjU2X1NIQV8yNTYiLAogICAgICAgICAgICAgICAgInZhbGlkRm9yIjogewogICAgICAgICAgICAgICAgICAgICJzdGFydCI6ICIxOTk5LTAxLTAxVDAwOjAwOjAwLjAwMFoiLAogICAgICAgICAgICAgICAgICAgICJlbmQiOiAiMjAyNS0wMS0yOVQwMDowMDowMC4wMDBaIgogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgfSwKICAgICAgICB7CiAgICAgICAgICAgICJrZXlJZCI6ICJTSEEyNTY6amwzYndzd3U4MFBqam9rQ2doMG8ydzVjMlU0TGhRQUU1N2dqOWN6MWt6QSIsCiAgICAgICAgICAgICJrZXlVc2FnZSI6ICJucG06YXR0ZXN0YXRpb25zIiwKICAgICAgICAgICAgInB1YmxpY0tleSI6IHsKICAgICAgICAgICAgICAgICJyYXdCeXRlcyI6ICJNRmt3RXdZSEtvWkl6ajBDQVFZSUtvWkl6ajBEQVFjRFFnQUUxT2xiM3pNQUZGeFhLSGlJa1FPNWNKM1lobDVpNlVQcCtJaHV0ZUJKYnVIY0E1VW9nS28wRVd0bFd3VzZLU2FLb1RORVlMN0psQ1FpVm5raEJrdFVnZz09IiwKICAgICAgICAgICAgICAgICJrZXlEZXRhaWxzIjogIlBLSVhfRUNEU0FfUDI1Nl9TSEFfMjU2IiwKICAgICAgICAgICAgICAgICJ2YWxpZEZvciI6IHsKICAgICAgICAgICAgICAgICAgICAic3RhcnQiOiAiMjAyMi0xMi0wMVQwMDowMDowMC4wMDBaIiwKICAgICAgICAgICAgICAgICAgICAiZW5kIjogIjIwMjUtMDEtMjlUMDA6MDA6MDAuMDAwWiIKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgIH0sCiAgICAgICAgewogICAgICAgICAgICAia2V5SWQiOiAiU0hBMjU2OkRoUTh3UjVBUEJ2RkhMRi8rVGMrQVl2UE9kVHBjSURxT2h4c0JIUndDN1UiLAogICAgICAgICAgICAia2V5VXNhZ2UiOiAibnBtOnNpZ25hdHVyZXMiLAogICAgICAgICAgICAicHVibGljS2V5IjogewogICAgICAgICAgICAgICAgInJhd0J5dGVzIjogIk1Ga3dFd1lIS29aSXpqMENBUVlJS29aSXpqMERBUWNEUWdBRVk2WWE3VysrN2FVUHp2TVRyZXpINlljeDNjK0hPS1lDY05HeWJKWlNDSnEvZmQ3UWE4dXVBS3RkSWtVUXRRaUVLRVJoQW1FNWxNTUpoUDhPa0RPYTJnPT0iLAogICAgICAgICAgICAgICAgImtleURldGFpbHMiOiAiUEtJWF9FQ0RTQV9QMjU2X1NIQV8yNTYiLAogICAgICAgICAgICAgICAgInZhbGlkRm9yIjogewogICAgICAgICAgICAgICAgICAgICJzdGFydCI6ICIyMDI1LTAxLTEzVDAwOjAwOjAwLjAwMFoiCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICB9LAogICAgICAgIHsKICAgICAgICAgICAgImtleUlkIjogIlNIQTI1NjpEaFE4d1I1QVBCdkZITEYvK1RjK0FZdlBPZFRwY0lEcU9oeHNCSFJ3QzdVIiwKICAgICAgICAgICAgImtleVVzYWdlIjogIm5wbTphdHRlc3RhdGlvbnMiLAogICAgICAgICAgICAicHVibGljS2V5IjogewogICAgICAgICAgICAgICAgInJhd0J5dGVzIjogIk1Ga3dFd1lIS29aSXpqMENBUVlJS29aSXpqMERBUWNEUWdBRVk2WWE3VysrN2FVUHp2TVRyZXpINlljeDNjK0hPS1lDY05HeWJKWlNDSnEvZmQ3UWE4dXVBS3RkSWtVUXRRaUVLRVJoQW1FNWxNTUpoUDhPa0RPYTJnPT0iLAogICAgICAgICAgICAgICAgImtleURldGFpbHMiOiAiUEtJWF9FQ0RTQV9QMjU2X1NIQV8yNTYiLAogICAgICAgICAgICAgICAgInZhbGlkRm9yIjogewogICAgICAgICAgICAgICAgICAgICJzdGFydCI6ICIyMDI1LTAxLTEzVDAwOjAwOjAwLjAwMFoiCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICBdCn0K"}}}});var uPe=g(_E=>{"use strict";var lPe=_E&&_E.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_E,"__esModule",{value:!0});_E.TUFClient=void 0;var Pf=lPe(require("fs")),bS=lPe(require("path")),uMt=iPe(),dMt=KJ(),cPe=sPe(),fMt=oPe(),YJ="targets",JJ=class{static{o(this,"TUFClient")}updater;constructor(e){let r=new URL(e.mirrorURL),n=encodeURIComponent(r.host+r.pathname.replace(/\/$/,"")),i=bS.default.join(e.cachePath,n);hMt(i),pMt({cachePath:i,mirrorURL:e.mirrorURL,tufRootPath:e.rootPath,forceInit:e.forceInit}),this.updater=AMt({mirrorURL:e.mirrorURL,cachePath:i,forceCache:e.forceCache,retry:e.retry,timeout:e.timeout})}async refresh(){return this.updater.refresh()}getTarget(e){return(0,fMt.readTarget)(this.updater,e)}};_E.TUFClient=JJ;function hMt(t){let e=bS.default.join(t,YJ);Pf.default.existsSync(t)||Pf.default.mkdirSync(t,{recursive:!0}),Pf.default.existsSync(e)||Pf.default.mkdirSync(e)}o(hMt,"initTufCache");function pMt({cachePath:t,mirrorURL:e,tufRootPath:r,forceInit:n}){let i=bS.default.join(t,"root.json");if(!Pf.default.existsSync(i)||n)if(r)Pf.default.copyFileSync(r,i);else{let a=aPe()[e];if(!a)throw new dMt.TUFError({code:"TUF_INIT_CACHE_ERROR",message:`No root.json found for mirror: ${e}`});Pf.default.writeFileSync(i,Buffer.from(a["root.json"],"base64")),Object.entries(a.targets).forEach(([c,l])=>{Pf.default.writeFileSync(bS.default.join(t,YJ,c),Buffer.from(l,"base64"))})}}o(pMt,"seedCache");function AMt(t){let e={fetchTimeout:t.timeout,fetchRetry:t.retry,userAgent:`${encodeURIComponent(cPe.name)}/${cPe.version}`};return new uMt.Updater({metadataBaseUrl:t.mirrorURL,targetBaseUrl:`${t.mirrorURL}/targets`,metadataDir:t.cachePath,targetDir:bS.default.join(t.cachePath,YJ),forceCache:t.forceCache,config:e})}o(AMt,"initClient")});var KJ=g(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.TUFError=Wu.DEFAULT_MIRROR_URL=void 0;Wu.getTrustedRoot=IMt;Wu.initTUF=SMt;var mMt=fE(),gMt=F1e(),yMt=uPe();Wu.DEFAULT_MIRROR_URL="https://tuf-repo-cdn.sigstore.dev";var EMt="sigstore-js",CMt={retries:2},bMt=5e3,wMt="trusted_root.json";async function IMt(t={}){let r=await dPe(t).getTarget(wMt);return mMt.TrustedRoot.fromJSON(JSON.parse(r))}o(IMt,"getTrustedRoot");async function SMt(t={}){let e=dPe(t);return e.refresh().then(()=>e)}o(SMt,"initTUF");function dPe(t){return new yMt.TUFClient({cachePath:t.cachePath||(0,gMt.appDataPath)(EMt),rootPath:t.rootPath,mirrorURL:t.mirrorURL||Wu.DEFAULT_MIRROR_URL,retry:t.retry??CMt,timeout:t.timeout??bMt,forceCache:t.forceCache??!1,forceInit:t.forceInit??t.force??!1})}o(dPe,"createClient");var BMt=WJ();Object.defineProperty(Wu,"TUFError",{enumerable:!0,get:o(function(){return BMt.TUFError},"get")})});var wS=g(ak=>{"use strict";Object.defineProperty(ak,"__esModule",{value:!0});ak.ByteStream=void 0;var XJ=class extends Error{static{o(this,"StreamError")}},ZJ=class t{static{o(this,"ByteStream")}static BLOCK_SIZE=1024;buf;view;start=0;constructor(e){e?(this.buf=e,this.view=Buffer.from(e)):(this.buf=Buffer.alloc(0),this.view=Buffer.from(this.buf))}get buffer(){return this.view.subarray(0,this.start)}get length(){return this.view.byteLength}get position(){return this.start}seek(e){this.start=e}slice(e,r){let n=e+r;if(n>this.length)throw new XJ("request past end of buffer");return this.view.subarray(e,n)}appendChar(e){this.ensureCapacity(1),this.view[this.start]=e,this.start+=1}appendUint16(e){this.ensureCapacity(2);let r=new Uint16Array([e]),n=new Uint8Array(r.buffer);this.view[this.start]=n[1],this.view[this.start+1]=n[0],this.start+=2}appendUint24(e){this.ensureCapacity(3);let r=new Uint32Array([e]),n=new Uint8Array(r.buffer);this.view[this.start]=n[2],this.view[this.start+1]=n[1],this.view[this.start+2]=n[0],this.start+=3}appendView(e){this.ensureCapacity(e.length),this.view.set(e,this.start),this.start+=e.length}getBlock(e){if(e<=0)return Buffer.alloc(0);if(this.start+e>this.view.length)throw new Error("request past end of buffer");let r=this.view.subarray(this.start,this.start+e);return this.start+=e,r}getUint8(){return this.getBlock(1)[0]}getUint16(){let e=this.getBlock(2);return e[0]<<8|e[1]}ensureCapacity(e){if(this.start+e>this.view.byteLength){let r=t.BLOCK_SIZE+(e>t.BLOCK_SIZE?e:0);this.realloc(this.view.byteLength+r)}}realloc(e){let r=Buffer.alloc(e),n=Buffer.from(r);n.set(this.view),this.buf=r,this.view=n}};ak.ByteStream=ZJ});var IS=g(RE=>{"use strict";Object.defineProperty(RE,"__esModule",{value:!0});RE.ASN1TypeError=RE.ASN1ParseError=void 0;var eY=class extends Error{static{o(this,"ASN1ParseError")}};RE.ASN1ParseError=eY;var tY=class extends Error{static{o(this,"ASN1TypeError")}};RE.ASN1TypeError=tY});var fPe=g(lk=>{"use strict";Object.defineProperty(lk,"__esModule",{value:!0});lk.decodeLength=xMt;lk.encodeLength=vMt;var ck=IS();function xMt(t){let e=t.getUint8();if((e&128)===0)return e;let r=e&127;if(r>6)throw new ck.ASN1ParseError("length exceeds 6 byte limit");let n=0;for(let i=0;i0n;)r.unshift(Number(e&255n)),e=e>>8n;return Buffer.from([128|r.length,...r])}o(vMt,"encodeLength")});var pPe=g(Of=>{"use strict";Object.defineProperty(Of,"__esModule",{value:!0});Of.parseInteger=RMt;Of.parseStringASCII=hPe;Of.parseTime=TMt;Of.parseOID=DMt;Of.parseBoolean=QMt;Of.parseBitString=kMt;var rY=IS(),NMt=/^(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(\.\d{3})?Z$/,_Mt=/^(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(\.\d{3})?Z$/;function RMt(t){let e=0,r=t.length,n=t[e],i=n>127,s=i?255:0;for(;n==s&&++e=50?1900:2e3,n[1]=i.toString()}return new Date(`${n[1]}-${n[2]}-${n[3]}T${n[4]}:${n[5]}:${n[6]}Z`)}o(TMt,"parseTime");function DMt(t){let e=0,r=t.length,n=t[e++],i=Math.floor(n/40),s=n%40,a=`${i}.${s}`,c=0n;for(;e7)throw new rY.ASN1ParseError("invalid bit string");let r=1,n=t.length,i=[];for(let s=r;s=c;--l)i.push(a>>l&1)}return i}o(kMt,"parseBitString")});var mPe=g(uk=>{"use strict";Object.defineProperty(uk,"__esModule",{value:!0});uk.ASN1Tag=void 0;var APe=IS(),pA={BOOLEAN:1,INTEGER:2,BIT_STRING:3,OCTET_STRING:4,OBJECT_IDENTIFIER:6,SEQUENCE:16,SET:17,PRINTABLE_STRING:19,UTC_TIME:23,GENERALIZED_TIME:24},nY={UNIVERSAL:0,APPLICATION:1,CONTEXT_SPECIFIC:2,PRIVATE:3},iY=class{static{o(this,"ASN1Tag")}number;constructed;class;constructor(e){if(this.number=e&31,this.constructed=(e&32)===32,this.class=e>>6,this.number===31)throw new APe.ASN1ParseError("long form tags not supported");if(this.class===nY.UNIVERSAL&&this.number===0)throw new APe.ASN1ParseError("unsupported tag 0x00")}isUniversal(){return this.class===nY.UNIVERSAL}isContextSpecific(e){let r=this.class===nY.CONTEXT_SPECIFIC;return e!==void 0?r&&this.number===e:r}isBoolean(){return this.isUniversal()&&this.number===pA.BOOLEAN}isInteger(){return this.isUniversal()&&this.number===pA.INTEGER}isBitString(){return this.isUniversal()&&this.number===pA.BIT_STRING}isOctetString(){return this.isUniversal()&&this.number===pA.OCTET_STRING}isOID(){return this.isUniversal()&&this.number===pA.OBJECT_IDENTIFIER}isUTCTime(){return this.isUniversal()&&this.number===pA.UTC_TIME}isGeneralizedTime(){return this.isUniversal()&&this.number===pA.GENERALIZED_TIME}toDER(){return this.number|(this.constructed?32:0)|this.class<<6}};uk.ASN1Tag=iY});var CPe=g(fk=>{"use strict";Object.defineProperty(fk,"__esModule",{value:!0});fk.ASN1Obj=void 0;var sY=wS(),Ju=IS(),yPe=fPe(),TE=pPe(),PMt=mPe(),dk=class{static{o(this,"ASN1Obj")}tag;subs;value;constructor(e,r,n){this.tag=e,this.value=r,this.subs=n}static parseBuffer(e){let r=new sY.ByteStream(e),n=EPe(r);if(r.position!==r.length)throw new Ju.ASN1ParseError("invalid trailing data");return n}toDER(){let e=new sY.ByteStream;if(this.subs.length>0)for(let i of this.subs)e.appendView(i.toDER());else e.appendView(this.value);let r=e.buffer,n=new sY.ByteStream;return n.appendChar(this.tag.toDER()),n.appendView((0,yPe.encodeLength)(r.length)),n.appendView(r),n.buffer}toBoolean(){if(!this.tag.isBoolean())throw new Ju.ASN1TypeError("not a boolean");return(0,TE.parseBoolean)(this.value)}toInteger(){if(!this.tag.isInteger())throw new Ju.ASN1TypeError("not an integer");return(0,TE.parseInteger)(this.value)}toOID(){if(!this.tag.isOID())throw new Ju.ASN1TypeError("not an OID");return(0,TE.parseOID)(this.value)}toDate(){switch(!0){case this.tag.isUTCTime():return(0,TE.parseTime)(this.value,!0);case this.tag.isGeneralizedTime():return(0,TE.parseTime)(this.value,!1);default:throw new Ju.ASN1TypeError("not a date")}}toBitString(){if(!this.tag.isBitString())throw new Ju.ASN1TypeError("not a bit string");return(0,TE.parseBitString)(this.value)}};fk.ASN1Obj=dk;var OMt=100;function EPe(t,e=0){if(e>OMt)throw new Ju.ASN1ParseError("maximum nesting depth exceeded");let r=new PMt.ASN1Tag(t.getUint8()),n=(0,yPe.decodeLength)(t),i=t.slice(t.position,n),s=t.position,a=[];if(r.constructed)a=gPe(t,n,e);else if(r.isOctetString())try{a=gPe(t,n,e)}catch{}return a.length===0&&t.seek(s+n),new dk(r,i,a)}o(EPe,"parseStream");function gPe(t,e,r){let n=t.position+e;if(n>t.length)throw new Ju.ASN1ParseError("invalid length");let i=[];for(;t.position{"use strict";Object.defineProperty(hk,"__esModule",{value:!0});hk.ASN1Obj=void 0;var LMt=CPe();Object.defineProperty(hk,"ASN1Obj",{enumerable:!0,get:o(function(){return LMt.ASN1Obj},"get")})});var QE=g(Lf=>{"use strict";var FMt=Lf&&Lf.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Lf,"__esModule",{value:!0});Lf.createPublicKey=MMt;Lf.digest=UMt;Lf.verify=qMt;Lf.bufferEqual=GMt;var DE=FMt(require("crypto"));function MMt(t,e="spki"){return typeof t=="string"?t.startsWith("-----")?DE.default.createPublicKey(t):DE.default.createPublicKey({key:Buffer.from(t,"base64"),format:"der",type:e}):DE.default.createPublicKey({key:t,format:"der",type:e})}o(MMt,"createPublicKey");function UMt(t,...e){let r=DE.default.createHash(t);for(let n of e)r.update(n);return r.digest()}o(UMt,"digest");function qMt(t,e,r,n){try{return DE.default.verify(n,t,e,r)}catch{return!1}}o(qMt,"verify");function GMt(t,e){try{return DE.default.timingSafeEqual(t,e)}catch{return!1}}o(GMt,"bufferEqual")});var bPe=g(oY=>{"use strict";Object.defineProperty(oY,"__esModule",{value:!0});oY.preAuthEncoding=zMt;var HMt="DSSEv1";function zMt(t,e){let r=Buffer.from(t,"utf-8");return Buffer.concat([Buffer.from(`${HMt} ${r.length} `,"ascii"),r,Buffer.from(` ${e.length} `,"ascii"),e])}o(zMt,"preAuthEncoding")});var SPe=g(Ak=>{"use strict";Object.defineProperty(Ak,"__esModule",{value:!0});Ak.base64Encode=VMt;Ak.base64Decode=$Mt;var wPe="base64",IPe="utf-8";function VMt(t){return Buffer.from(t,IPe).toString(wPe)}o(VMt,"base64Encode");function $Mt(t){return Buffer.from(t,wPe).toString(IPe)}o($Mt,"base64Decode")});var BPe=g(cY=>{"use strict";Object.defineProperty(cY,"__esModule",{value:!0});cY.canonicalize=aY;function aY(t){let e="";if(t===null||typeof t!="object"||t.toJSON!=null)e+=JSON.stringify(t);else if(Array.isArray(t)){e+="[";let r=!0;t.forEach(n=>{r||(e+=","),r=!1,e+=aY(n)}),e+="]"}else{e+="{";let r=!0;Object.keys(t).sort().forEach(n=>{r||(e+=","),r=!1,e+=JSON.stringify(n),e+=":",e+=aY(t[n])}),e+="}"}return e}o(aY,"canonicalize")});var lY=g(mk=>{"use strict";Object.defineProperty(mk,"__esModule",{value:!0});mk.toDER=JMt;mk.fromDER=YMt;var jMt=/-----BEGIN (.*)-----/,WMt=/-----END (.*)-----/;function JMt(t){let e="";return t.split(` +`).forEach(r=>{r.match(jMt)||r.match(WMt)||(e+=r)}),Buffer.from(e,"base64")}o(JMt,"toDER");function YMt(t,e="CERTIFICATE"){let n=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...n,`-----END ${e}-----`].join(` `).concat(` -`)}o($Mt,"fromDER")});var mk=g(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});Lf.SHA2_HASH_ALGOS=Lf.RSA_SIGNATURE_ALGOS=Lf.ECDSA_SIGNATURE_ALGOS=void 0;Lf.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};Lf.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};Lf.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});var uY=g(gk=>{"use strict";Object.defineProperty(gk,"__esModule",{value:!0});gk.RFC3161TimestampVerificationError=void 0;var lY=class extends Error{static{o(this,"RFC3161TimestampVerificationError")}};gk.RFC3161TimestampVerificationError=lY});var SPe=g(Rl=>{"use strict";var jMt=Rl&&Rl.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),WMt=Rl&&Rl.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),JMt=Rl&&Rl.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i{"use strict";var XMt=_l&&_l.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ZMt=_l&&_l.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),eUt=_l&&_l.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;ir.tag.isContextSpecific(0)).subs[0]}get encapContentInfoObj(){return this.signedDataObj.subs[2]}get signerInfosObj(){let e=this.signedDataObj;return e.subs[e.subs.length-1]}get signerInfoObj(){return this.signerInfosObj.subs[0]}get eContentTypeObj(){return this.encapContentInfoObj.subs[0]}get eContentObj(){return this.encapContentInfoObj.subs[1]}get signedAttrsObj(){return this.signerInfoObj.subs.find(r=>r.tag.isContextSpecific(0))}get messageDigestAttributeObj(){return this.signedAttrsObj.subs.find(r=>r.subs[0].tag.isOID()&&r.subs[0].toOID()===sUt)}get signerSidObj(){return this.signerInfoObj.subs[1]}get signerDigestAlgorithmObj(){return this.signerInfoObj.subs[2]}get signatureAlgorithmObj(){return this.signerInfoObj.subs[4]}get signatureValueObj(){return this.signerInfoObj.subs[5]}};_l.RFC3161Timestamp=hY});var vPe=g(yk=>{"use strict";Object.defineProperty(yk,"__esModule",{value:!0});yk.RFC3161Timestamp=void 0;var oUt=xPe();Object.defineProperty(yk,"RFC3161Timestamp",{enumerable:!0,get:o(function(){return oUt.RFC3161Timestamp},"get")})});var RPe=g(Tl=>{"use strict";var aUt=Tl&&Tl.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),cUt=Tl&&Tl.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),lUt=Tl&&Tl.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i0&&n.appendView(this.extensions),uUt.verify(n.buffer,r,this.signature,this.algorithm)}static parse(e){let r=new NPe.ByteStream(e),n=r.getUint8(),i=r.getBlock(32),s=r.getBlock(8),a=r.getUint16(),c=r.getBlock(a),l=r.getUint8(),u=r.getUint8(),d=r.getUint16(),f=r.getBlock(d);if(r.position!==e.length)throw new Error("SCT buffer length mismatch");return new t({version:n,logID:i,timestamp:s,extensions:c,hashAlgorithm:l,signatureAlgorithm:u,signature:f})}};Tl.SignedCertificateTimestamp=pY});var bY=g(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.X509SCTExtension=Ei.X509SubjectKeyIDExtension=Ei.X509AuthorityKeyIDExtension=Ei.X509SubjectAlternativeNameExtension=Ei.X509KeyUsageExtension=Ei.X509BasicConstraintsExtension=Ei.X509Extension=void 0;var dUt=bS(),fUt=RPe(),Ju=class{static{o(this,"X509Extension")}root;constructor(e){this.root=e}get oid(){return this.root.subs[0].toOID()}get critical(){return this.root.subs.length===3?this.root.subs[1].toBoolean():!1}get value(){return this.extnValueObj.value}get valueObj(){return this.extnValueObj}get extnValueObj(){return this.root.subs[this.root.subs.length-1]}};Ei.X509Extension=Ju;var AY=class extends Ju{static{o(this,"X509BasicConstraintsExtension")}get isCA(){return this.sequence.subs[0]?.toBoolean()??!1}get pathLenConstraint(){return this.sequence.subs.length>1?this.sequence.subs[1].toInteger():void 0}get sequence(){return this.extnValueObj.subs[0]}};Ei.X509BasicConstraintsExtension=AY;var mY=class extends Ju{static{o(this,"X509KeyUsageExtension")}get digitalSignature(){return this.bitString[0]===1}get keyCertSign(){return this.bitString[5]===1}get crlSign(){return this.bitString[6]===1}get bitString(){return this.extnValueObj.subs[0].toBitString()}};Ei.X509KeyUsageExtension=mY;var gY=class extends Ju{static{o(this,"X509SubjectAlternativeNameExtension")}get rfc822Name(){return this.findGeneralName(1)?.value.toString("ascii")}get uri(){return this.findGeneralName(6)?.value.toString("ascii")}otherName(e){let r=this.findGeneralName(0);return r===void 0||r.subs[0].toOID()!==e?void 0:r.subs[1].subs[0].value.toString("ascii")}findGeneralName(e){return this.generalNames.find(r=>r.tag.isContextSpecific(e))}get generalNames(){return this.extnValueObj.subs[0].subs}};Ei.X509SubjectAlternativeNameExtension=gY;var yY=class extends Ju{static{o(this,"X509AuthorityKeyIDExtension")}get keyIdentifier(){return this.findSequenceMember(0)?.value}findSequenceMember(e){return this.sequence.subs.find(r=>r.tag.isContextSpecific(e))}get sequence(){return this.extnValueObj.subs[0]}};Ei.X509AuthorityKeyIDExtension=yY;var EY=class extends Ju{static{o(this,"X509SubjectKeyIDExtension")}get keyIdentifier(){return this.extnValueObj.subs[0].value}};Ei.X509SubjectKeyIDExtension=EY;var CY=class extends Ju{static{o(this,"X509SCTExtension")}constructor(e){super(e)}get signedCertificateTimestamps(){let e=this.extnValueObj.subs[0].value,r=new dUt.ByteStream(e),n=r.getUint16()+2,i=[];for(;r.position{"use strict";var hUt=co&&co.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),pUt=co&&co.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),TPe=co&&co.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;ir.subs[0].toOID()===e)}get tbsCertificateObj(){return this.root.subs[0]}get signatureAlgorithmObj(){return this.root.subs[1]}get signatureValueObj(){return this.root.subs[2]}get versionObj(){return this.tbsCertificateObj.subs[0]}get serialNumberObj(){return this.tbsCertificateObj.subs[1]}get issuerObj(){return this.tbsCertificateObj.subs[3]}get validityObj(){return this.tbsCertificateObj.subs[4]}get subjectObj(){return this.tbsCertificateObj.subs[5]}get subjectPublicKeyInfoObj(){return this.tbsCertificateObj.subs[6]}get extensionsObj(){return this.tbsCertificateObj.subs.find(e=>e.tag.isContextSpecific(3))}};co.X509Certificate=IY});var kPe=g(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});Ff.X509SCTExtension=Ff.X509Certificate=Ff.EXTENSION_OID_SCT=void 0;var QPe=DPe();Object.defineProperty(Ff,"EXTENSION_OID_SCT",{enumerable:!0,get:o(function(){return QPe.EXTENSION_OID_SCT},"get")});Object.defineProperty(Ff,"X509Certificate",{enumerable:!0,get:o(function(){return QPe.X509Certificate},"get")});var wUt=bY();Object.defineProperty(Ff,"X509SCTExtension",{enumerable:!0,get:o(function(){return wUt.X509SCTExtension},"get")})});var Xa=g(Ft=>{"use strict";var IUt=Ft&&Ft.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),SUt=Ft&&Ft.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),SS=Ft&&Ft.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i{"use strict";Object.defineProperty(Ek,"__esModule",{value:!0});Ek.DSSESignatureContent=void 0;var AA=Xa(),BY=class{static{o(this,"DSSESignatureContent")}env;constructor(e){this.env=e}compareDigest(e){return AA.crypto.bufferEqual(e,AA.crypto.digest("sha256",this.env.payload))}compareSignedDigest(e){return AA.crypto.bufferEqual(e,AA.crypto.digest("sha256",this.preAuthEncoding))}compareSignature(e){return AA.crypto.bufferEqual(e,this.signature)}verifySignature(e){return AA.crypto.verify(this.preAuthEncoding,e,this.signature)}get signature(){return this.env.signatures.length>0?this.env.signatures[0].sig:Buffer.from("")}get preAuthEncoding(){return AA.dsse.preAuthEncoding(this.env.payloadType,this.env.payload)}};Ek.DSSESignatureContent=BY});var OPe=g(Ck=>{"use strict";Object.defineProperty(Ck,"__esModule",{value:!0});Ck.MessageSignatureContent=void 0;var xY=Xa(),QE=dE(),NUt={[QE.HashAlgorithm.HASH_ALGORITHM_UNSPECIFIED]:"sha256",[QE.HashAlgorithm.SHA2_256]:"sha256",[QE.HashAlgorithm.SHA2_384]:"sha384",[QE.HashAlgorithm.SHA2_512]:"sha512",[QE.HashAlgorithm.SHA3_256]:"sha3-256",[QE.HashAlgorithm.SHA3_384]:"sha3-384"},vY=class{static{o(this,"MessageSignatureContent")}signature;messageDigest;artifact;hashAlgorithm;constructor(e,r){this.signature=e.signature,this.messageDigest=e.messageDigest.digest,this.artifact=r,this.hashAlgorithm=NUt[e.messageDigest.algorithm]??"sha256"}compareSignature(e){return xY.crypto.bufferEqual(e,this.signature)}compareDigest(e){return xY.crypto.bufferEqual(e,this.messageDigest)}compareSignedDigest(e){return this.compareDigest(e)}verifySignature(e){return xY.crypto.verify(this.artifact,e,this.signature,this.hashAlgorithm)}};Ck.MessageSignatureContent=vY});var FPe=g(bk=>{"use strict";Object.defineProperty(bk,"__esModule",{value:!0});bk.toSignedEntity=TUt;bk.signatureContent=LPe;var NY=Xa(),RUt=PPe(),_Ut=OPe();function TUt(t,e){let{tlogEntries:r,timestampVerificationData:n}=t.verificationMaterial,i=[];for(let s of r)s.integratedTime&&s.integratedTime!=="0"&&i.push({$case:"transparency-log",tlogEntry:s});for(let s of n?.rfc3161Timestamps??[])i.push({$case:"timestamp-authority",timestamp:NY.RFC3161Timestamp.parse(Buffer.from(s.signedTimestamp))});return{signature:LPe(t,e),key:DUt(t),tlogEntries:r,timestamps:i}}o(TUt,"toSignedEntity");function LPe(t,e){switch(t.content.$case){case"dsseEnvelope":return new RUt.DSSESignatureContent(t.content.dsseEnvelope);case"messageSignature":return new _Ut.MessageSignatureContent(t.content.messageSignature,e)}}o(LPe,"signatureContent");function DUt(t){switch(t.verificationMaterial.content.$case){case"publicKey":return{$case:"public-key",hint:t.verificationMaterial.content.publicKey.hint};case"x509CertificateChain":return{$case:"certificate",certificate:NY.X509Certificate.parse(Buffer.from(t.verificationMaterial.content.x509CertificateChain.certificates[0].rawBytes))};case"certificate":return{$case:"certificate",certificate:NY.X509Certificate.parse(Buffer.from(t.verificationMaterial.content.certificate.rawBytes))}}}o(DUt,"key")});var Ci=g(kE=>{"use strict";Object.defineProperty(kE,"__esModule",{value:!0});kE.PolicyError=kE.VerificationError=void 0;var wk=class extends Error{static{o(this,"BaseError")}code;cause;constructor({code:e,message:r,cause:n}){super(r),this.code=e,this.cause=n,this.name=this.constructor.name}},RY=class extends wk{static{o(this,"VerificationError")}};kE.VerificationError=RY;var _Y=class extends wk{static{o(this,"PolicyError")}};kE.PolicyError=_Y});var MPe=g(Ik=>{"use strict";Object.defineProperty(Ik,"__esModule",{value:!0});Ik.filterCertAuthorities=QUt;Ik.filterTLogAuthorities=kUt;function QUt(t,e){return t.filter(r=>r.validFor.start<=e&&r.validFor.end>=e)}o(QUt,"filterCertAuthorities");function kUt(t,e){return t.filter(r=>e.logID&&!r.logID.equals(e.logID)?!1:r.validFor.start<=e.targetDate&&e.targetDate<=r.validFor.end)}o(kUt,"filterTLogAuthorities")});var PE=g(mA=>{"use strict";Object.defineProperty(mA,"__esModule",{value:!0});mA.filterTLogAuthorities=mA.filterCertAuthorities=void 0;mA.toTrustMaterial=OUt;var TY=Xa(),BS=dE(),PUt=Ci(),DY=new Date(0),QY=new Date(864e13),GPe=MPe();Object.defineProperty(mA,"filterCertAuthorities",{enumerable:!0,get:o(function(){return GPe.filterCertAuthorities},"get")});Object.defineProperty(mA,"filterTLogAuthorities",{enumerable:!0,get:o(function(){return GPe.filterTLogAuthorities},"get")});function OUt(t,e){let r=typeof e=="function"?e:LUt(e);return{certificateAuthorities:t.certificateAuthorities.map(qPe),timestampAuthorities:t.timestampAuthorities.map(qPe),tlogs:t.tlogs.map(UPe),ctlogs:t.ctlogs.map(UPe),publicKey:r}}o(OUt,"toTrustMaterial");function UPe(t){let e=t.publicKey.keyDetails,r=e===BS.PublicKeyDetails.PKCS1_RSA_PKCS1V5||e===BS.PublicKeyDetails.PKIX_RSA_PKCS1V5||e===BS.PublicKeyDetails.PKIX_RSA_PKCS1V15_2048_SHA256||e===BS.PublicKeyDetails.PKIX_RSA_PKCS1V15_3072_SHA256||e===BS.PublicKeyDetails.PKIX_RSA_PKCS1V15_4096_SHA256?"pkcs1":"spki";return{baseURL:t.baseUrl,logID:t.checkpointKeyId?t.checkpointKeyId.keyId:t.logId.keyId,publicKey:TY.crypto.createPublicKey(t.publicKey.rawBytes,r),validFor:{start:t.publicKey.validFor?.start||DY,end:t.publicKey.validFor?.end||QY}}}o(UPe,"createTLogAuthority");function qPe(t){return{certChain:t.certChain.certificates.map(e=>TY.X509Certificate.parse(Buffer.from(e.rawBytes))),validFor:{start:t.validFor?.start||DY,end:t.validFor?.end||QY}}}o(qPe,"createCertAuthority");function LUt(t){return e=>{let r=(t||{})[e];if(!r)throw new PUt.VerificationError({code:"PUBLIC_KEY_ERROR",message:`key not found: ${e}`});return{publicKey:TY.crypto.createPublicKey(r.rawBytes),validFor:o(n=>(r.validFor?.start||DY)<=n&&(r.validFor?.end||QY)>=n,"validFor")}}}o(LUt,"keyLocator")});var kY=g(xS=>{"use strict";Object.defineProperty(xS,"__esModule",{value:!0});xS.CertificateChainVerifier=void 0;xS.verifyCertificateChain=MUt;var Mf=Ci(),FUt=PE();function MUt(t,e,r){let n=(0,FUt.filterCertAuthorities)(r,t),i;for(let s of n)try{return new Sk({trustedCerts:s.certChain,untrustedCert:e,timestamp:t}).verify()}catch(a){i=a}throw new Mf.VerificationError({code:"CERTIFICATE_ERROR",message:"Failed to verify certificate chain",cause:i})}o(MUt,"verifyCertificateChain");var Sk=class{static{o(this,"CertificateChainVerifier")}untrustedCert;trustedCerts;localCerts;timestamp;constructor(e){this.untrustedCert=e.untrustedCert,this.trustedCerts=e.trustedCerts,this.localCerts=UUt([...e.trustedCerts,e.untrustedCert]),this.timestamp=e.timestamp}verify(){let e=this.sort();if(this.checkPath(e),!e.every(n=>n.validForDate(this.timestamp)))throw new Mf.VerificationError({code:"CERTIFICATE_ERROR",message:"certificate is not valid or expired at the specified date"});return e}sort(){let e=this.untrustedCert,r=this.buildPaths(e);if(r=r.filter(i=>i.some(s=>this.trustedCerts.includes(s))),r.length===0)throw new Mf.VerificationError({code:"CERTIFICATE_ERROR",message:"no trusted certificate path found"});let n=r.reduce((i,s)=>i.length{if(n&&i.extSubjectKeyID){i.extSubjectKeyID.keyIdentifier.equals(n)&&r.push(i);return}i.subject.equals(e.issuer)&&r.push(i)}),r=r.filter(i=>{try{return e.verify(i)}catch{return!1}}),r)}checkPath(e){if(e.length<1)throw new Mf.VerificationError({code:"CERTIFICATE_ERROR",message:"certificate chain must contain at least one certificate"});if(!e.slice(1).every(n=>n.isCA))throw new Mf.VerificationError({code:"CERTIFICATE_ERROR",message:"intermediate certificate is not a CA"});for(let n=e.length-2;n>=0;n--)if(!e[n].issuer.equals(e[n+1].subject))throw new Mf.VerificationError({code:"CERTIFICATE_ERROR",message:"incorrect certificate name chaining"});for(let n=0;n{"use strict";Object.defineProperty(PY,"__esModule",{value:!0});PY.verifySCTs=HUt;var Bk=Xa(),qUt=Ci(),GUt=PE();function HUt(t,e,r){let n,i=t.clone();for(let l=0;l{if(!(0,GUt.filterTLogAuthorities)(r,{logID:l.logID,targetDate:l.datetime}).some(f=>l.verify(s.buffer,f.publicKey)))throw new qUt.VerificationError({code:"CERTIFICATE_ERROR",message:"SCT verification failed"});return l.logID})}o(HUt,"verifySCTs")});var zPe=g(xk=>{"use strict";Object.defineProperty(xk,"__esModule",{value:!0});xk.verifyPublicKey=YUt;xk.verifyCertificate=KUt;var zUt=Xa(),VUt=Ci(),$Ut=kY(),jUt=HPe(),WUt="1.3.6.1.4.1.57264.1.1",JUt="1.3.6.1.4.1.57264.1.8";function YUt(t,e,r){let n=r.publicKey(t);return e.forEach(i=>{if(!n.validFor(i))throw new VUt.VerificationError({code:"PUBLIC_KEY_ERROR",message:`Public key is not valid for timestamp: ${i.toISOString()}`})}),{key:n.publicKey}}o(YUt,"verifyPublicKey");function KUt(t,e,r){let n=[];return e.forEach(i=>{n=(0,$Ut.verifyCertificateChain)(i,t,r.certificateAuthorities)}),{scts:(0,jUt.verifySCTs)(n[0],n[1],r.ctlogs),signer:XUt(n[0])}}o(KUt,"verifyCertificate");function XUt(t){let e,r=t.extension(JUt);r?e=r.valueObj.subs?.[0]?.value.toString("ascii"):e=t.extension(WUt)?.value.toString("ascii");let n=t.extensions.map(s=>({oid:{id:s.subs[0].toOID().split(".").map(Number)},value:s.subs[s.subs.length-1].value})),i={extensions:{issuer:e},subjectAlternativeName:t.subjectAltName,oids:n};return{key:zUt.crypto.createPublicKey(t.publicKey),identity:i}}o(XUt,"getSigner")});var VPe=g(vS=>{"use strict";Object.defineProperty(vS,"__esModule",{value:!0});vS.verifySubjectAlternativeName=ZUt;vS.verifyExtensions=eqt;vS.verifyOIDs=tqt;var OY=Ci();function ZUt(t,e){if(e===void 0||!e.match(t))throw new OY.PolicyError({code:"UNTRUSTED_SIGNER_ERROR",message:`certificate identity error - expected ${t}, got ${e}`})}o(ZUt,"verifySubjectAlternativeName");function eqt(t,e={}){let r;for(r in t)if(e[r]!==t[r])throw new OY.PolicyError({code:"UNTRUSTED_SIGNER_ERROR",message:`invalid certificate extension - expected ${r}=${t[r]}, got ${r}=${e[r]}`})}o(eqt,"verifyExtensions");function tqt(t,e=[]){for(let r of t)if(!e.find(i=>rqt(r.oid?.id,i.oid?.id)&&r.value.equals(i.value))){let i=r.oid?.id.join(".")??"";throw new OY.PolicyError({code:"UNTRUSTED_SIGNER_ERROR",message:`invalid certificate extension - missing OID ${i}`})}}o(tqt,"verifyOIDs");function rqt(t,e){return t===void 0||e===void 0?!1:t.length===e.length&&t.every((r,n)=>r===e[n])}o(rqt,"oidEquals")});var jPe=g(FY=>{"use strict";Object.defineProperty(FY,"__esModule",{value:!0});FY.verifyRFC3161Timestamp=sqt;var LY=Xa(),$Pe=Ci(),nqt=kY(),iqt=PE();function sqt(t,e,r){let n=t.signingTime;if(r=(0,iqt.filterCertAuthorities)(r,n),r=aqt(r,{serialNumber:t.signerSerialNumber,issuer:t.signerIssuer}),!r.some(s=>{try{return oqt(t,e,s),!0}catch{return!1}}))throw new $Pe.VerificationError({code:"TIMESTAMP_ERROR",message:"timestamp could not be verified"})}o(sqt,"verifyRFC3161Timestamp");function oqt(t,e,r){let[n,...i]=r.certChain,s=LY.crypto.createPublicKey(n.publicKey),a=t.signingTime;try{new nqt.CertificateChainVerifier({untrustedCert:n,trustedCerts:i,timestamp:a}).verify()}catch{throw new $Pe.VerificationError({code:"TIMESTAMP_ERROR",message:"invalid certificate chain"})}t.verify(e,s)}o(oqt,"verifyTimestampForCA");function aqt(t,e){return t.filter(r=>r.certChain.length>0&&LY.crypto.bufferEqual(r.certChain[0].serialNumber,e.serialNumber)&&LY.crypto.bufferEqual(r.certChain[0].issuer,e.issuer))}o(aqt,"filterCAsBySerialAndIssuer")});var WPe=g(vk=>{"use strict";Object.defineProperty(vk,"__esModule",{value:!0});vk.getTSATimestamp=lqt;vk.getTLogTimestamp=uqt;var cqt=jPe();function lqt(t,e,r){return(0,cqt.verifyRFC3161Timestamp)(t,e,r),{type:"timestamp-authority",logID:t.signerSerialNumber,timestamp:t.signingTime}}o(lqt,"getTSATimestamp");function uqt(t){if(t.inclusionPromise)return{type:"transparency-log",logID:t.logId.keyId,timestamp:new Date(Number(t.integratedTime)*1e3)}}o(uqt,"getTLogTimestamp")});var Rk=g(da=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});da.Signature=da.Verifier=da.PublicKey=void 0;var Nk=Vu();da.PublicKey={fromJSON(t){return{rawBytes:OE(t.rawBytes)?Buffer.from(JPe(t.rawBytes)):Buffer.alloc(0)}},toJSON(t){let e={};return t.rawBytes.length!==0&&(e.rawBytes=YPe(t.rawBytes)),e}};da.Verifier={fromJSON(t){return{verifier:OE(t.publicKey)?{$case:"publicKey",publicKey:da.PublicKey.fromJSON(t.publicKey)}:OE(t.x509Certificate)?{$case:"x509Certificate",x509Certificate:Nk.X509Certificate.fromJSON(t.x509Certificate)}:void 0,keyDetails:OE(t.keyDetails)?(0,Nk.publicKeyDetailsFromJSON)(t.keyDetails):0}},toJSON(t){let e={};return t.verifier?.$case==="publicKey"?e.publicKey=da.PublicKey.toJSON(t.verifier.publicKey):t.verifier?.$case==="x509Certificate"&&(e.x509Certificate=Nk.X509Certificate.toJSON(t.verifier.x509Certificate)),t.keyDetails!==0&&(e.keyDetails=(0,Nk.publicKeyDetailsToJSON)(t.keyDetails)),e}};da.Signature={fromJSON(t){return{content:OE(t.content)?Buffer.from(JPe(t.content)):Buffer.alloc(0),verifier:OE(t.verifier)?da.Verifier.fromJSON(t.verifier):void 0}},toJSON(t){let e={};return t.content.length!==0&&(e.content=YPe(t.content)),t.verifier!==void 0&&(e.verifier=da.Verifier.toJSON(t.verifier)),e}};function JPe(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(JPe,"bytesFromBase64");function YPe(t){return globalThis.Buffer.from(t).toString("base64")}o(YPe,"base64FromBytes");function OE(t){return t!=null}o(OE,"isSet")});var MY=g(LE=>{"use strict";Object.defineProperty(LE,"__esModule",{value:!0});LE.DSSELogEntryV002=LE.DSSERequestV002=void 0;var KPe=d1(),XPe=Vu(),_k=Rk();LE.DSSERequestV002={fromJSON(t){return{envelope:ZPe(t.envelope)?KPe.Envelope.fromJSON(t.envelope):void 0,verifiers:globalThis.Array.isArray(t?.verifiers)?t.verifiers.map(e=>_k.Verifier.fromJSON(e)):[]}},toJSON(t){let e={};return t.envelope!==void 0&&(e.envelope=KPe.Envelope.toJSON(t.envelope)),t.verifiers?.length&&(e.verifiers=t.verifiers.map(r=>_k.Verifier.toJSON(r))),e}};LE.DSSELogEntryV002={fromJSON(t){return{payloadHash:ZPe(t.payloadHash)?XPe.HashOutput.fromJSON(t.payloadHash):void 0,signatures:globalThis.Array.isArray(t?.signatures)?t.signatures.map(e=>_k.Signature.fromJSON(e)):[]}},toJSON(t){let e={};return t.payloadHash!==void 0&&(e.payloadHash=XPe.HashOutput.toJSON(t.payloadHash)),t.signatures?.length&&(e.signatures=t.signatures.map(r=>_k.Signature.toJSON(r))),e}};function ZPe(t){return t!=null}o(ZPe,"isSet")});var UY=g(FE=>{"use strict";Object.defineProperty(FE,"__esModule",{value:!0});FE.HashedRekordLogEntryV002=FE.HashedRekordRequestV002=void 0;var eOe=Vu(),Tk=Rk();FE.HashedRekordRequestV002={fromJSON(t){return{digest:Dk(t.digest)?Buffer.from(dqt(t.digest)):Buffer.alloc(0),signature:Dk(t.signature)?Tk.Signature.fromJSON(t.signature):void 0}},toJSON(t){let e={};return t.digest.length!==0&&(e.digest=fqt(t.digest)),t.signature!==void 0&&(e.signature=Tk.Signature.toJSON(t.signature)),e}};FE.HashedRekordLogEntryV002={fromJSON(t){return{data:Dk(t.data)?eOe.HashOutput.fromJSON(t.data):void 0,signature:Dk(t.signature)?Tk.Signature.fromJSON(t.signature):void 0}},toJSON(t){let e={};return t.data!==void 0&&(e.data=eOe.HashOutput.toJSON(t.data)),t.signature!==void 0&&(e.signature=Tk.Signature.toJSON(t.signature)),e}};function dqt(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(dqt,"bytesFromBase64");function fqt(t){return globalThis.Buffer.from(t).toString("base64")}o(fqt,"base64FromBytes");function Dk(t){return t!=null}o(Dk,"isSet")});var tOe=g(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});Dl.CreateEntryRequest=Dl.Spec=Dl.Entry=void 0;var Qk=MY(),kk=UY();Dl.Entry={fromJSON(t){return{kind:gA(t.kind)?globalThis.String(t.kind):"",apiVersion:gA(t.apiVersion)?globalThis.String(t.apiVersion):"",spec:gA(t.spec)?Dl.Spec.fromJSON(t.spec):void 0}},toJSON(t){let e={};return t.kind!==""&&(e.kind=t.kind),t.apiVersion!==""&&(e.apiVersion=t.apiVersion),t.spec!==void 0&&(e.spec=Dl.Spec.toJSON(t.spec)),e}};Dl.Spec={fromJSON(t){return{spec:gA(t.hashedRekordV002)?{$case:"hashedRekordV002",hashedRekordV002:kk.HashedRekordLogEntryV002.fromJSON(t.hashedRekordV002)}:gA(t.dsseV002)?{$case:"dsseV002",dsseV002:Qk.DSSELogEntryV002.fromJSON(t.dsseV002)}:void 0}},toJSON(t){let e={};return t.spec?.$case==="hashedRekordV002"?e.hashedRekordV002=kk.HashedRekordLogEntryV002.toJSON(t.spec.hashedRekordV002):t.spec?.$case==="dsseV002"&&(e.dsseV002=Qk.DSSELogEntryV002.toJSON(t.spec.dsseV002)),e}};Dl.CreateEntryRequest={fromJSON(t){return{spec:gA(t.hashedRekordRequestV002)?{$case:"hashedRekordRequestV002",hashedRekordRequestV002:kk.HashedRekordRequestV002.fromJSON(t.hashedRekordRequestV002)}:gA(t.dsseRequestV002)?{$case:"dsseRequestV002",dsseRequestV002:Qk.DSSERequestV002.fromJSON(t.dsseRequestV002)}:void 0}},toJSON(t){let e={};return t.spec?.$case==="hashedRekordRequestV002"?e.hashedRekordRequestV002=kk.HashedRekordRequestV002.toJSON(t.spec.hashedRekordRequestV002):t.spec?.$case==="dsseRequestV002"&&(e.dsseRequestV002=Qk.DSSERequestV002.toJSON(t.spec.dsseRequestV002)),e}};function gA(t){return t!=null}o(gA,"isSet")});var rOe=g(Ql=>{"use strict";var hqt=Ql&&Ql.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Pk=Ql&&Ql.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&hqt(e,t,r)};Object.defineProperty(Ql,"__esModule",{value:!0});Pk(MY(),Ql);Pk(tOe(),Ql);Pk(UY(),Ql);Pk(Rk(),Ql)});var nOe=g(yA=>{"use strict";Object.defineProperty(yA,"__esModule",{value:!0});yA.DSSE_API_VERSION_V1=void 0;yA.verifyDSSETLogBody=pqt;yA.verifyDSSETLogBodyV2=Aqt;var Yu=Ci();yA.DSSE_API_VERSION_V1="0.0.1";function pqt(t,e){if(t.apiVersion===yA.DSSE_API_VERSION_V1)return mqt(t,e);throw new Yu.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported dsse version: ${t.apiVersion}`})}o(pqt,"verifyDSSETLogBody");function Aqt(t,e){let r=t.spec?.spec;if(!r)throw new Yu.VerificationError({code:"TLOG_BODY_ERROR",message:"missing dsse spec"});if(r.$case==="dsseV002")return gqt(r.dsseV002,e);throw new Yu.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported version: ${r.$case}`})}o(Aqt,"verifyDSSETLogBodyV2");function mqt(t,e){if(t.spec.signatures?.length!==1)throw new Yu.VerificationError({code:"TLOG_BODY_ERROR",message:"signature count mismatch"});let r=t.spec.signatures[0].signature;if(!e.compareSignature(Buffer.from(r,"base64")))throw new Yu.VerificationError({code:"TLOG_BODY_ERROR",message:"tlog entry signature mismatch"});let n=t.spec.payloadHash?.value||"";if(!e.compareDigest(Buffer.from(n,"hex")))throw new Yu.VerificationError({code:"TLOG_BODY_ERROR",message:"DSSE payload hash mismatch"})}o(mqt,"verifyDSSE001TLogBody");function gqt(t,e){if(t.signatures?.length!==1)throw new Yu.VerificationError({code:"TLOG_BODY_ERROR",message:"signature count mismatch"});let r=t.signatures[0].content;if(!e.compareSignature(r))throw new Yu.VerificationError({code:"TLOG_BODY_ERROR",message:"tlog entry signature mismatch"});let n=t.payloadHash?.digest||Buffer.from("");if(!e.compareDigest(n))throw new Yu.VerificationError({code:"TLOG_BODY_ERROR",message:"DSSE payload hash mismatch"})}o(gqt,"verifyDSSE002TLogBody")});var iOe=g(CA=>{"use strict";Object.defineProperty(CA,"__esModule",{value:!0});CA.HASHEDREKORD_API_VERSION_V1=void 0;CA.verifyHashedRekordTLogBody=yqt;CA.verifyHashedRekordTLogBodyV2=Eqt;var EA=Ci();CA.HASHEDREKORD_API_VERSION_V1="0.0.1";function yqt(t,e){if(t.apiVersion===CA.HASHEDREKORD_API_VERSION_V1)return Cqt(t,e);throw new EA.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported hashedrekord version: ${t.apiVersion}`})}o(yqt,"verifyHashedRekordTLogBody");function Eqt(t,e){let r=t.spec?.spec;if(!r)throw new EA.VerificationError({code:"TLOG_BODY_ERROR",message:"missing dsse spec"});if(r.$case==="hashedRekordV002")return bqt(r.hashedRekordV002,e);throw new EA.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported version: ${r.$case}`})}o(Eqt,"verifyHashedRekordTLogBodyV2");function Cqt(t,e){let r=t.spec.signature.content||"";if(!e.compareSignature(Buffer.from(r,"base64")))throw new EA.VerificationError({code:"TLOG_BODY_ERROR",message:"signature mismatch"});let n=t.spec.data.hash?.value||"";if(!e.compareSignedDigest(Buffer.from(n,"hex")))throw new EA.VerificationError({code:"TLOG_BODY_ERROR",message:"digest mismatch"})}o(Cqt,"verifyHashedrekord001TLogBody");function bqt(t,e){let r=t.signature?.content||Buffer.from("");if(!e.compareSignature(r))throw new EA.VerificationError({code:"TLOG_BODY_ERROR",message:"signature mismatch"});let n=t.data?.digest||Buffer.from("");if(!e.compareSignedDigest(n))throw new EA.VerificationError({code:"TLOG_BODY_ERROR",message:"digest mismatch"})}o(bqt,"verifyHashedrekord002TLogBody")});var sOe=g(qY=>{"use strict";Object.defineProperty(qY,"__esModule",{value:!0});qY.verifyIntotoTLogBody=wqt;var Ok=Ci();function wqt(t,e){if(t.apiVersion==="0.0.2")return Iqt(t,e);throw new Ok.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported intoto version: ${t.apiVersion}`})}o(wqt,"verifyIntotoTLogBody");function Iqt(t,e){if(t.spec.content.envelope.signatures?.length!==1)throw new Ok.VerificationError({code:"TLOG_BODY_ERROR",message:"signature count mismatch"});let r=Sqt(t.spec.content.envelope.signatures[0].sig);if(!e.compareSignature(Buffer.from(r,"base64")))throw new Ok.VerificationError({code:"TLOG_BODY_ERROR",message:"tlog entry signature mismatch"});let n=t.spec.content.payloadHash?.value||"";if(!e.compareDigest(Buffer.from(n,"hex")))throw new Ok.VerificationError({code:"TLOG_BODY_ERROR",message:"DSSE payload hash mismatch"})}o(Iqt,"verifyIntoto002TLogBody");function Sqt(t){return Buffer.from(t,"base64").toString("utf-8")}o(Sqt,"base64Decode")});var aOe=g(NS=>{"use strict";Object.defineProperty(NS,"__esModule",{value:!0});NS.LogCheckpoint=void 0;NS.verifyCheckpoint=xqt;var oOe=Xa(),ME=Ci(),GY=` +`)}o(YMt,"fromDER")});var gk=g(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});Ff.SHA2_HASH_ALGOS=Ff.RSA_SIGNATURE_ALGOS=Ff.ECDSA_SIGNATURE_ALGOS=void 0;Ff.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};Ff.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};Ff.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});var dY=g(yk=>{"use strict";Object.defineProperty(yk,"__esModule",{value:!0});yk.RFC3161TimestampVerificationError=void 0;var uY=class extends Error{static{o(this,"RFC3161TimestampVerificationError")}};yk.RFC3161TimestampVerificationError=uY});var vPe=g(Rl=>{"use strict";var KMt=Rl&&Rl.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),XMt=Rl&&Rl.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ZMt=Rl&&Rl.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i{"use strict";var rUt=Tl&&Tl.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),nUt=Tl&&Tl.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),iUt=Tl&&Tl.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;ir.tag.isContextSpecific(0)).subs[0]}get encapContentInfoObj(){return this.signedDataObj.subs[2]}get signerInfosObj(){let e=this.signedDataObj;return e.subs[e.subs.length-1]}get signerInfoObj(){return this.signerInfosObj.subs[0]}get eContentTypeObj(){return this.encapContentInfoObj.subs[0]}get eContentObj(){return this.encapContentInfoObj.subs[1]}get signedAttrsObj(){return this.signerInfoObj.subs.find(r=>r.tag.isContextSpecific(0))}get messageDigestAttributeObj(){return this.signedAttrsObj.subs.find(r=>r.subs[0].tag.isOID()&&r.subs[0].toOID()===lUt)}get signerSidObj(){return this.signerInfoObj.subs[1]}get signerDigestAlgorithmObj(){return this.signerInfoObj.subs[2]}get signatureAlgorithmObj(){return this.signerInfoObj.subs[4]}get signatureValueObj(){return this.signerInfoObj.subs[5]}};Tl.RFC3161Timestamp=pY});var RPe=g(Ek=>{"use strict";Object.defineProperty(Ek,"__esModule",{value:!0});Ek.RFC3161Timestamp=void 0;var uUt=_Pe();Object.defineProperty(Ek,"RFC3161Timestamp",{enumerable:!0,get:o(function(){return uUt.RFC3161Timestamp},"get")})});var DPe=g(Dl=>{"use strict";var dUt=Dl&&Dl.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),fUt=Dl&&Dl.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),hUt=Dl&&Dl.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i0&&n.appendView(this.extensions),pUt.verify(n.buffer,r,this.signature,this.algorithm)}static parse(e){let r=new TPe.ByteStream(e),n=r.getUint8(),i=r.getBlock(32),s=r.getBlock(8),a=r.getUint16(),c=r.getBlock(a),l=r.getUint8(),u=r.getUint8(),d=r.getUint16(),f=r.getBlock(d);if(r.position!==e.length)throw new Error("SCT buffer length mismatch");return new t({version:n,logID:i,timestamp:s,extensions:c,hashAlgorithm:l,signatureAlgorithm:u,signature:f})}};Dl.SignedCertificateTimestamp=AY});var wY=g(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.X509SCTExtension=Ei.X509SubjectKeyIDExtension=Ei.X509AuthorityKeyIDExtension=Ei.X509SubjectAlternativeNameExtension=Ei.X509KeyUsageExtension=Ei.X509BasicConstraintsExtension=Ei.X509Extension=void 0;var AUt=wS(),mUt=DPe(),Yu=class{static{o(this,"X509Extension")}root;constructor(e){this.root=e}get oid(){return this.root.subs[0].toOID()}get critical(){return this.root.subs.length===3?this.root.subs[1].toBoolean():!1}get value(){return this.extnValueObj.value}get valueObj(){return this.extnValueObj}get extnValueObj(){return this.root.subs[this.root.subs.length-1]}};Ei.X509Extension=Yu;var mY=class extends Yu{static{o(this,"X509BasicConstraintsExtension")}get isCA(){return this.sequence.subs[0]?.toBoolean()??!1}get pathLenConstraint(){return this.sequence.subs.length>1?this.sequence.subs[1].toInteger():void 0}get sequence(){return this.extnValueObj.subs[0]}};Ei.X509BasicConstraintsExtension=mY;var gY=class extends Yu{static{o(this,"X509KeyUsageExtension")}get digitalSignature(){return this.bitString[0]===1}get keyCertSign(){return this.bitString[5]===1}get crlSign(){return this.bitString[6]===1}get bitString(){return this.extnValueObj.subs[0].toBitString()}};Ei.X509KeyUsageExtension=gY;var yY=class extends Yu{static{o(this,"X509SubjectAlternativeNameExtension")}get rfc822Name(){return this.findGeneralName(1)?.value.toString("ascii")}get uri(){return this.findGeneralName(6)?.value.toString("ascii")}otherName(e){let r=this.findGeneralName(0);return r===void 0||r.subs[0].toOID()!==e?void 0:r.subs[1].subs[0].value.toString("ascii")}findGeneralName(e){return this.generalNames.find(r=>r.tag.isContextSpecific(e))}get generalNames(){return this.extnValueObj.subs[0].subs}};Ei.X509SubjectAlternativeNameExtension=yY;var EY=class extends Yu{static{o(this,"X509AuthorityKeyIDExtension")}get keyIdentifier(){return this.findSequenceMember(0)?.value}findSequenceMember(e){return this.sequence.subs.find(r=>r.tag.isContextSpecific(e))}get sequence(){return this.extnValueObj.subs[0]}};Ei.X509AuthorityKeyIDExtension=EY;var CY=class extends Yu{static{o(this,"X509SubjectKeyIDExtension")}get keyIdentifier(){return this.extnValueObj.subs[0].value}};Ei.X509SubjectKeyIDExtension=CY;var bY=class extends Yu{static{o(this,"X509SCTExtension")}constructor(e){super(e)}get signedCertificateTimestamps(){let e=this.extnValueObj.subs[0].value,r=new AUt.ByteStream(e),n=r.getUint16()+2,i=[];for(;r.position{"use strict";var gUt=co&&co.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),yUt=co&&co.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),kPe=co&&co.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;ir.subs[0].toOID()===e)}get tbsCertificateObj(){return this.root.subs[0]}get signatureAlgorithmObj(){return this.root.subs[1]}get signatureValueObj(){return this.root.subs[2]}get versionObj(){return this.tbsCertificateObj.subs[0]}get serialNumberObj(){return this.tbsCertificateObj.subs[1]}get issuerObj(){return this.tbsCertificateObj.subs[3]}get validityObj(){return this.tbsCertificateObj.subs[4]}get subjectObj(){return this.tbsCertificateObj.subs[5]}get subjectPublicKeyInfoObj(){return this.tbsCertificateObj.subs[6]}get extensionsObj(){return this.tbsCertificateObj.subs.find(e=>e.tag.isContextSpecific(3))}};co.X509Certificate=SY});var LPe=g(Mf=>{"use strict";Object.defineProperty(Mf,"__esModule",{value:!0});Mf.X509SCTExtension=Mf.X509Certificate=Mf.EXTENSION_OID_SCT=void 0;var OPe=PPe();Object.defineProperty(Mf,"EXTENSION_OID_SCT",{enumerable:!0,get:o(function(){return OPe.EXTENSION_OID_SCT},"get")});Object.defineProperty(Mf,"X509Certificate",{enumerable:!0,get:o(function(){return OPe.X509Certificate},"get")});var xUt=wY();Object.defineProperty(Mf,"X509SCTExtension",{enumerable:!0,get:o(function(){return xUt.X509SCTExtension},"get")})});var Xa=g(Ft=>{"use strict";var vUt=Ft&&Ft.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),NUt=Ft&&Ft.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),BS=Ft&&Ft.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i{"use strict";Object.defineProperty(Ck,"__esModule",{value:!0});Ck.DSSESignatureContent=void 0;var mA=Xa(),xY=class{static{o(this,"DSSESignatureContent")}env;constructor(e){this.env=e}compareDigest(e){return mA.crypto.bufferEqual(e,mA.crypto.digest("sha256",this.env.payload))}compareSignedDigest(e){return mA.crypto.bufferEqual(e,mA.crypto.digest("sha256",this.preAuthEncoding))}compareSignature(e){return mA.crypto.bufferEqual(e,this.signature)}verifySignature(e){return mA.crypto.verify(this.preAuthEncoding,e,this.signature)}get signature(){return this.env.signatures.length>0?this.env.signatures[0].sig:Buffer.from("")}get preAuthEncoding(){return mA.dsse.preAuthEncoding(this.env.payloadType,this.env.payload)}};Ck.DSSESignatureContent=xY});var MPe=g(bk=>{"use strict";Object.defineProperty(bk,"__esModule",{value:!0});bk.MessageSignatureContent=void 0;var vY=Xa(),kE=fE(),DUt={[kE.HashAlgorithm.HASH_ALGORITHM_UNSPECIFIED]:"sha256",[kE.HashAlgorithm.SHA2_256]:"sha256",[kE.HashAlgorithm.SHA2_384]:"sha384",[kE.HashAlgorithm.SHA2_512]:"sha512",[kE.HashAlgorithm.SHA3_256]:"sha3-256",[kE.HashAlgorithm.SHA3_384]:"sha3-384"},NY=class{static{o(this,"MessageSignatureContent")}signature;messageDigest;artifact;hashAlgorithm;constructor(e,r){this.signature=e.signature,this.messageDigest=e.messageDigest.digest,this.artifact=r,this.hashAlgorithm=DUt[e.messageDigest.algorithm]??"sha256"}compareSignature(e){return vY.crypto.bufferEqual(e,this.signature)}compareDigest(e){return vY.crypto.bufferEqual(e,this.messageDigest)}compareSignedDigest(e){return this.compareDigest(e)}verifySignature(e){return vY.crypto.verify(this.artifact,e,this.signature,this.hashAlgorithm)}};bk.MessageSignatureContent=NY});var qPe=g(wk=>{"use strict";Object.defineProperty(wk,"__esModule",{value:!0});wk.toSignedEntity=PUt;wk.signatureContent=UPe;var _Y=Xa(),QUt=FPe(),kUt=MPe();function PUt(t,e){let{tlogEntries:r,timestampVerificationData:n}=t.verificationMaterial,i=[];for(let s of r)s.integratedTime&&s.integratedTime!=="0"&&i.push({$case:"transparency-log",tlogEntry:s});for(let s of n?.rfc3161Timestamps??[])i.push({$case:"timestamp-authority",timestamp:_Y.RFC3161Timestamp.parse(Buffer.from(s.signedTimestamp))});return{signature:UPe(t,e),key:OUt(t),tlogEntries:r,timestamps:i}}o(PUt,"toSignedEntity");function UPe(t,e){switch(t.content.$case){case"dsseEnvelope":return new QUt.DSSESignatureContent(t.content.dsseEnvelope);case"messageSignature":return new kUt.MessageSignatureContent(t.content.messageSignature,e)}}o(UPe,"signatureContent");function OUt(t){switch(t.verificationMaterial.content.$case){case"publicKey":return{$case:"public-key",hint:t.verificationMaterial.content.publicKey.hint};case"x509CertificateChain":return{$case:"certificate",certificate:_Y.X509Certificate.parse(Buffer.from(t.verificationMaterial.content.x509CertificateChain.certificates[0].rawBytes))};case"certificate":return{$case:"certificate",certificate:_Y.X509Certificate.parse(Buffer.from(t.verificationMaterial.content.certificate.rawBytes))}}}o(OUt,"key")});var Ci=g(PE=>{"use strict";Object.defineProperty(PE,"__esModule",{value:!0});PE.PolicyError=PE.VerificationError=void 0;var Ik=class extends Error{static{o(this,"BaseError")}code;cause;constructor({code:e,message:r,cause:n}){super(r),this.code=e,this.cause=n,this.name=this.constructor.name}},RY=class extends Ik{static{o(this,"VerificationError")}};PE.VerificationError=RY;var TY=class extends Ik{static{o(this,"PolicyError")}};PE.PolicyError=TY});var GPe=g(Sk=>{"use strict";Object.defineProperty(Sk,"__esModule",{value:!0});Sk.filterCertAuthorities=LUt;Sk.filterTLogAuthorities=FUt;function LUt(t,e){return t.filter(r=>r.validFor.start<=e&&r.validFor.end>=e)}o(LUt,"filterCertAuthorities");function FUt(t,e){return t.filter(r=>e.logID&&!r.logID.equals(e.logID)?!1:r.validFor.start<=e.targetDate&&e.targetDate<=r.validFor.end)}o(FUt,"filterTLogAuthorities")});var OE=g(gA=>{"use strict";Object.defineProperty(gA,"__esModule",{value:!0});gA.filterTLogAuthorities=gA.filterCertAuthorities=void 0;gA.toTrustMaterial=UUt;var DY=Xa(),xS=fE(),MUt=Ci(),QY=new Date(0),kY=new Date(864e13),VPe=GPe();Object.defineProperty(gA,"filterCertAuthorities",{enumerable:!0,get:o(function(){return VPe.filterCertAuthorities},"get")});Object.defineProperty(gA,"filterTLogAuthorities",{enumerable:!0,get:o(function(){return VPe.filterTLogAuthorities},"get")});function UUt(t,e){let r=typeof e=="function"?e:qUt(e);return{certificateAuthorities:t.certificateAuthorities.map(zPe),timestampAuthorities:t.timestampAuthorities.map(zPe),tlogs:t.tlogs.map(HPe),ctlogs:t.ctlogs.map(HPe),publicKey:r}}o(UUt,"toTrustMaterial");function HPe(t){let e=t.publicKey.keyDetails,r=e===xS.PublicKeyDetails.PKCS1_RSA_PKCS1V5||e===xS.PublicKeyDetails.PKIX_RSA_PKCS1V5||e===xS.PublicKeyDetails.PKIX_RSA_PKCS1V15_2048_SHA256||e===xS.PublicKeyDetails.PKIX_RSA_PKCS1V15_3072_SHA256||e===xS.PublicKeyDetails.PKIX_RSA_PKCS1V15_4096_SHA256?"pkcs1":"spki";return{baseURL:t.baseUrl,logID:t.checkpointKeyId?t.checkpointKeyId.keyId:t.logId.keyId,publicKey:DY.crypto.createPublicKey(t.publicKey.rawBytes,r),validFor:{start:t.publicKey.validFor?.start||QY,end:t.publicKey.validFor?.end||kY}}}o(HPe,"createTLogAuthority");function zPe(t){return{certChain:t.certChain.certificates.map(e=>DY.X509Certificate.parse(Buffer.from(e.rawBytes))),validFor:{start:t.validFor?.start||QY,end:t.validFor?.end||kY}}}o(zPe,"createCertAuthority");function qUt(t){return e=>{let r=(t||{})[e];if(!r)throw new MUt.VerificationError({code:"PUBLIC_KEY_ERROR",message:`key not found: ${e}`});return{publicKey:DY.crypto.createPublicKey(r.rawBytes),validFor:o(n=>(r.validFor?.start||QY)<=n&&(r.validFor?.end||kY)>=n,"validFor")}}}o(qUt,"keyLocator")});var PY=g(vS=>{"use strict";Object.defineProperty(vS,"__esModule",{value:!0});vS.CertificateChainVerifier=void 0;vS.verifyCertificateChain=HUt;var Uf=Ci(),GUt=OE();function HUt(t,e,r){let n=(0,GUt.filterCertAuthorities)(r,t),i;for(let s of n)try{return new Bk({trustedCerts:s.certChain,untrustedCert:e,timestamp:t}).verify()}catch(a){i=a}throw new Uf.VerificationError({code:"CERTIFICATE_ERROR",message:"Failed to verify certificate chain",cause:i})}o(HUt,"verifyCertificateChain");var Bk=class{static{o(this,"CertificateChainVerifier")}untrustedCert;trustedCerts;localCerts;timestamp;constructor(e){this.untrustedCert=e.untrustedCert,this.trustedCerts=e.trustedCerts,this.localCerts=zUt([...e.trustedCerts,e.untrustedCert]),this.timestamp=e.timestamp}verify(){let e=this.sort();if(this.checkPath(e),!e.every(n=>n.validForDate(this.timestamp)))throw new Uf.VerificationError({code:"CERTIFICATE_ERROR",message:"certificate is not valid or expired at the specified date"});return e}sort(){let e=this.untrustedCert,r=this.buildPaths(e);if(r=r.filter(i=>i.some(s=>this.trustedCerts.includes(s))),r.length===0)throw new Uf.VerificationError({code:"CERTIFICATE_ERROR",message:"no trusted certificate path found"});let n=r.reduce((i,s)=>i.length{if(n&&i.extSubjectKeyID){i.extSubjectKeyID.keyIdentifier.equals(n)&&r.push(i);return}i.subject.equals(e.issuer)&&r.push(i)}),r=r.filter(i=>{try{return e.verify(i)}catch{return!1}}),r)}checkPath(e){if(e.length<1)throw new Uf.VerificationError({code:"CERTIFICATE_ERROR",message:"certificate chain must contain at least one certificate"});if(!e.slice(1).every(n=>n.isCA))throw new Uf.VerificationError({code:"CERTIFICATE_ERROR",message:"intermediate certificate is not a CA"});for(let n=e.length-2;n>=0;n--)if(!e[n].issuer.equals(e[n+1].subject))throw new Uf.VerificationError({code:"CERTIFICATE_ERROR",message:"incorrect certificate name chaining"});for(let n=0;n{"use strict";Object.defineProperty(OY,"__esModule",{value:!0});OY.verifySCTs=jUt;var xk=Xa(),VUt=Ci(),$Ut=OE();function jUt(t,e,r){let n,i=t.clone();for(let l=0;l{if(!(0,$Ut.filterTLogAuthorities)(r,{logID:l.logID,targetDate:l.datetime}).some(f=>l.verify(s.buffer,f.publicKey)))throw new VUt.VerificationError({code:"CERTIFICATE_ERROR",message:"SCT verification failed"});return l.logID})}o(jUt,"verifySCTs")});var jPe=g(vk=>{"use strict";Object.defineProperty(vk,"__esModule",{value:!0});vk.verifyPublicKey=eqt;vk.verifyCertificate=tqt;var WUt=Xa(),JUt=Ci(),YUt=PY(),KUt=$Pe(),XUt="1.3.6.1.4.1.57264.1.1",ZUt="1.3.6.1.4.1.57264.1.8";function eqt(t,e,r){let n=r.publicKey(t);return e.forEach(i=>{if(!n.validFor(i))throw new JUt.VerificationError({code:"PUBLIC_KEY_ERROR",message:`Public key is not valid for timestamp: ${i.toISOString()}`})}),{key:n.publicKey}}o(eqt,"verifyPublicKey");function tqt(t,e,r){let n=[];return e.forEach(i=>{n=(0,YUt.verifyCertificateChain)(i,t,r.certificateAuthorities)}),{scts:(0,KUt.verifySCTs)(n[0],n[1],r.ctlogs),signer:rqt(n[0])}}o(tqt,"verifyCertificate");function rqt(t){let e,r=t.extension(ZUt);r?e=r.valueObj.subs?.[0]?.value.toString("ascii"):e=t.extension(XUt)?.value.toString("ascii");let n=t.extensions.map(s=>({oid:{id:s.subs[0].toOID().split(".").map(Number)},value:s.subs[s.subs.length-1].value})),i={extensions:{issuer:e},subjectAlternativeName:t.subjectAltName,oids:n};return{key:WUt.crypto.createPublicKey(t.publicKey),identity:i}}o(rqt,"getSigner")});var WPe=g(NS=>{"use strict";Object.defineProperty(NS,"__esModule",{value:!0});NS.verifySubjectAlternativeName=nqt;NS.verifyExtensions=iqt;NS.verifyOIDs=sqt;var LY=Ci();function nqt(t,e){if(e===void 0||!e.match(t))throw new LY.PolicyError({code:"UNTRUSTED_SIGNER_ERROR",message:`certificate identity error - expected ${t}, got ${e}`})}o(nqt,"verifySubjectAlternativeName");function iqt(t,e={}){let r;for(r in t)if(e[r]!==t[r])throw new LY.PolicyError({code:"UNTRUSTED_SIGNER_ERROR",message:`invalid certificate extension - expected ${r}=${t[r]}, got ${r}=${e[r]}`})}o(iqt,"verifyExtensions");function sqt(t,e=[]){for(let r of t)if(!e.find(i=>oqt(r.oid?.id,i.oid?.id)&&r.value.equals(i.value))){let i=r.oid?.id.join(".")??"";throw new LY.PolicyError({code:"UNTRUSTED_SIGNER_ERROR",message:`invalid certificate extension - missing OID ${i}`})}}o(sqt,"verifyOIDs");function oqt(t,e){return t===void 0||e===void 0?!1:t.length===e.length&&t.every((r,n)=>r===e[n])}o(oqt,"oidEquals")});var YPe=g(MY=>{"use strict";Object.defineProperty(MY,"__esModule",{value:!0});MY.verifyRFC3161Timestamp=lqt;var FY=Xa(),JPe=Ci(),aqt=PY(),cqt=OE();function lqt(t,e,r){let n=t.signingTime;if(r=(0,cqt.filterCertAuthorities)(r,n),r=dqt(r,{serialNumber:t.signerSerialNumber,issuer:t.signerIssuer}),!r.some(s=>{try{return uqt(t,e,s),!0}catch{return!1}}))throw new JPe.VerificationError({code:"TIMESTAMP_ERROR",message:"timestamp could not be verified"})}o(lqt,"verifyRFC3161Timestamp");function uqt(t,e,r){let[n,...i]=r.certChain,s=FY.crypto.createPublicKey(n.publicKey),a=t.signingTime;try{new aqt.CertificateChainVerifier({untrustedCert:n,trustedCerts:i,timestamp:a}).verify()}catch{throw new JPe.VerificationError({code:"TIMESTAMP_ERROR",message:"invalid certificate chain"})}t.verify(e,s)}o(uqt,"verifyTimestampForCA");function dqt(t,e){return t.filter(r=>r.certChain.length>0&&FY.crypto.bufferEqual(r.certChain[0].serialNumber,e.serialNumber)&&FY.crypto.bufferEqual(r.certChain[0].issuer,e.issuer))}o(dqt,"filterCAsBySerialAndIssuer")});var KPe=g(Nk=>{"use strict";Object.defineProperty(Nk,"__esModule",{value:!0});Nk.getTSATimestamp=hqt;Nk.getTLogTimestamp=pqt;var fqt=YPe();function hqt(t,e,r){return(0,fqt.verifyRFC3161Timestamp)(t,e,r),{type:"timestamp-authority",logID:t.signerSerialNumber,timestamp:t.signingTime}}o(hqt,"getTSATimestamp");function pqt(t){if(t.inclusionPromise)return{type:"transparency-log",logID:t.logId.keyId,timestamp:new Date(Number(t.integratedTime)*1e3)}}o(pqt,"getTLogTimestamp")});var Rk=g(da=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});da.Signature=da.Verifier=da.PublicKey=void 0;var _k=$u();da.PublicKey={fromJSON(t){return{rawBytes:LE(t.rawBytes)?Buffer.from(XPe(t.rawBytes)):Buffer.alloc(0)}},toJSON(t){let e={};return t.rawBytes.length!==0&&(e.rawBytes=ZPe(t.rawBytes)),e}};da.Verifier={fromJSON(t){return{verifier:LE(t.publicKey)?{$case:"publicKey",publicKey:da.PublicKey.fromJSON(t.publicKey)}:LE(t.x509Certificate)?{$case:"x509Certificate",x509Certificate:_k.X509Certificate.fromJSON(t.x509Certificate)}:void 0,keyDetails:LE(t.keyDetails)?(0,_k.publicKeyDetailsFromJSON)(t.keyDetails):0}},toJSON(t){let e={};return t.verifier?.$case==="publicKey"?e.publicKey=da.PublicKey.toJSON(t.verifier.publicKey):t.verifier?.$case==="x509Certificate"&&(e.x509Certificate=_k.X509Certificate.toJSON(t.verifier.x509Certificate)),t.keyDetails!==0&&(e.keyDetails=(0,_k.publicKeyDetailsToJSON)(t.keyDetails)),e}};da.Signature={fromJSON(t){return{content:LE(t.content)?Buffer.from(XPe(t.content)):Buffer.alloc(0),verifier:LE(t.verifier)?da.Verifier.fromJSON(t.verifier):void 0}},toJSON(t){let e={};return t.content.length!==0&&(e.content=ZPe(t.content)),t.verifier!==void 0&&(e.verifier=da.Verifier.toJSON(t.verifier)),e}};function XPe(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(XPe,"bytesFromBase64");function ZPe(t){return globalThis.Buffer.from(t).toString("base64")}o(ZPe,"base64FromBytes");function LE(t){return t!=null}o(LE,"isSet")});var UY=g(FE=>{"use strict";Object.defineProperty(FE,"__esModule",{value:!0});FE.DSSELogEntryV002=FE.DSSERequestV002=void 0;var eOe=f1(),tOe=$u(),Tk=Rk();FE.DSSERequestV002={fromJSON(t){return{envelope:rOe(t.envelope)?eOe.Envelope.fromJSON(t.envelope):void 0,verifiers:globalThis.Array.isArray(t?.verifiers)?t.verifiers.map(e=>Tk.Verifier.fromJSON(e)):[]}},toJSON(t){let e={};return t.envelope!==void 0&&(e.envelope=eOe.Envelope.toJSON(t.envelope)),t.verifiers?.length&&(e.verifiers=t.verifiers.map(r=>Tk.Verifier.toJSON(r))),e}};FE.DSSELogEntryV002={fromJSON(t){return{payloadHash:rOe(t.payloadHash)?tOe.HashOutput.fromJSON(t.payloadHash):void 0,signatures:globalThis.Array.isArray(t?.signatures)?t.signatures.map(e=>Tk.Signature.fromJSON(e)):[]}},toJSON(t){let e={};return t.payloadHash!==void 0&&(e.payloadHash=tOe.HashOutput.toJSON(t.payloadHash)),t.signatures?.length&&(e.signatures=t.signatures.map(r=>Tk.Signature.toJSON(r))),e}};function rOe(t){return t!=null}o(rOe,"isSet")});var qY=g(ME=>{"use strict";Object.defineProperty(ME,"__esModule",{value:!0});ME.HashedRekordLogEntryV002=ME.HashedRekordRequestV002=void 0;var nOe=$u(),Dk=Rk();ME.HashedRekordRequestV002={fromJSON(t){return{digest:Qk(t.digest)?Buffer.from(Aqt(t.digest)):Buffer.alloc(0),signature:Qk(t.signature)?Dk.Signature.fromJSON(t.signature):void 0}},toJSON(t){let e={};return t.digest.length!==0&&(e.digest=mqt(t.digest)),t.signature!==void 0&&(e.signature=Dk.Signature.toJSON(t.signature)),e}};ME.HashedRekordLogEntryV002={fromJSON(t){return{data:Qk(t.data)?nOe.HashOutput.fromJSON(t.data):void 0,signature:Qk(t.signature)?Dk.Signature.fromJSON(t.signature):void 0}},toJSON(t){let e={};return t.data!==void 0&&(e.data=nOe.HashOutput.toJSON(t.data)),t.signature!==void 0&&(e.signature=Dk.Signature.toJSON(t.signature)),e}};function Aqt(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(Aqt,"bytesFromBase64");function mqt(t){return globalThis.Buffer.from(t).toString("base64")}o(mqt,"base64FromBytes");function Qk(t){return t!=null}o(Qk,"isSet")});var iOe=g(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});Ql.CreateEntryRequest=Ql.Spec=Ql.Entry=void 0;var kk=UY(),Pk=qY();Ql.Entry={fromJSON(t){return{kind:yA(t.kind)?globalThis.String(t.kind):"",apiVersion:yA(t.apiVersion)?globalThis.String(t.apiVersion):"",spec:yA(t.spec)?Ql.Spec.fromJSON(t.spec):void 0}},toJSON(t){let e={};return t.kind!==""&&(e.kind=t.kind),t.apiVersion!==""&&(e.apiVersion=t.apiVersion),t.spec!==void 0&&(e.spec=Ql.Spec.toJSON(t.spec)),e}};Ql.Spec={fromJSON(t){return{spec:yA(t.hashedRekordV002)?{$case:"hashedRekordV002",hashedRekordV002:Pk.HashedRekordLogEntryV002.fromJSON(t.hashedRekordV002)}:yA(t.dsseV002)?{$case:"dsseV002",dsseV002:kk.DSSELogEntryV002.fromJSON(t.dsseV002)}:void 0}},toJSON(t){let e={};return t.spec?.$case==="hashedRekordV002"?e.hashedRekordV002=Pk.HashedRekordLogEntryV002.toJSON(t.spec.hashedRekordV002):t.spec?.$case==="dsseV002"&&(e.dsseV002=kk.DSSELogEntryV002.toJSON(t.spec.dsseV002)),e}};Ql.CreateEntryRequest={fromJSON(t){return{spec:yA(t.hashedRekordRequestV002)?{$case:"hashedRekordRequestV002",hashedRekordRequestV002:Pk.HashedRekordRequestV002.fromJSON(t.hashedRekordRequestV002)}:yA(t.dsseRequestV002)?{$case:"dsseRequestV002",dsseRequestV002:kk.DSSERequestV002.fromJSON(t.dsseRequestV002)}:void 0}},toJSON(t){let e={};return t.spec?.$case==="hashedRekordRequestV002"?e.hashedRekordRequestV002=Pk.HashedRekordRequestV002.toJSON(t.spec.hashedRekordRequestV002):t.spec?.$case==="dsseRequestV002"&&(e.dsseRequestV002=kk.DSSERequestV002.toJSON(t.spec.dsseRequestV002)),e}};function yA(t){return t!=null}o(yA,"isSet")});var sOe=g(kl=>{"use strict";var gqt=kl&&kl.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Ok=kl&&kl.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&gqt(e,t,r)};Object.defineProperty(kl,"__esModule",{value:!0});Ok(UY(),kl);Ok(iOe(),kl);Ok(qY(),kl);Ok(Rk(),kl)});var oOe=g(EA=>{"use strict";Object.defineProperty(EA,"__esModule",{value:!0});EA.DSSE_API_VERSION_V1=void 0;EA.verifyDSSETLogBody=yqt;EA.verifyDSSETLogBodyV2=Eqt;var Ku=Ci();EA.DSSE_API_VERSION_V1="0.0.1";function yqt(t,e){if(t.apiVersion===EA.DSSE_API_VERSION_V1)return Cqt(t,e);throw new Ku.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported dsse version: ${t.apiVersion}`})}o(yqt,"verifyDSSETLogBody");function Eqt(t,e){let r=t.spec?.spec;if(!r)throw new Ku.VerificationError({code:"TLOG_BODY_ERROR",message:"missing dsse spec"});if(r.$case==="dsseV002")return bqt(r.dsseV002,e);throw new Ku.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported version: ${r.$case}`})}o(Eqt,"verifyDSSETLogBodyV2");function Cqt(t,e){if(t.spec.signatures?.length!==1)throw new Ku.VerificationError({code:"TLOG_BODY_ERROR",message:"signature count mismatch"});let r=t.spec.signatures[0].signature;if(!e.compareSignature(Buffer.from(r,"base64")))throw new Ku.VerificationError({code:"TLOG_BODY_ERROR",message:"tlog entry signature mismatch"});let n=t.spec.payloadHash?.value||"";if(!e.compareDigest(Buffer.from(n,"hex")))throw new Ku.VerificationError({code:"TLOG_BODY_ERROR",message:"DSSE payload hash mismatch"})}o(Cqt,"verifyDSSE001TLogBody");function bqt(t,e){if(t.signatures?.length!==1)throw new Ku.VerificationError({code:"TLOG_BODY_ERROR",message:"signature count mismatch"});let r=t.signatures[0].content;if(!e.compareSignature(r))throw new Ku.VerificationError({code:"TLOG_BODY_ERROR",message:"tlog entry signature mismatch"});let n=t.payloadHash?.digest||Buffer.from("");if(!e.compareDigest(n))throw new Ku.VerificationError({code:"TLOG_BODY_ERROR",message:"DSSE payload hash mismatch"})}o(bqt,"verifyDSSE002TLogBody")});var aOe=g(bA=>{"use strict";Object.defineProperty(bA,"__esModule",{value:!0});bA.HASHEDREKORD_API_VERSION_V1=void 0;bA.verifyHashedRekordTLogBody=wqt;bA.verifyHashedRekordTLogBodyV2=Iqt;var CA=Ci();bA.HASHEDREKORD_API_VERSION_V1="0.0.1";function wqt(t,e){if(t.apiVersion===bA.HASHEDREKORD_API_VERSION_V1)return Sqt(t,e);throw new CA.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported hashedrekord version: ${t.apiVersion}`})}o(wqt,"verifyHashedRekordTLogBody");function Iqt(t,e){let r=t.spec?.spec;if(!r)throw new CA.VerificationError({code:"TLOG_BODY_ERROR",message:"missing dsse spec"});if(r.$case==="hashedRekordV002")return Bqt(r.hashedRekordV002,e);throw new CA.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported version: ${r.$case}`})}o(Iqt,"verifyHashedRekordTLogBodyV2");function Sqt(t,e){let r=t.spec.signature.content||"";if(!e.compareSignature(Buffer.from(r,"base64")))throw new CA.VerificationError({code:"TLOG_BODY_ERROR",message:"signature mismatch"});let n=t.spec.data.hash?.value||"";if(!e.compareSignedDigest(Buffer.from(n,"hex")))throw new CA.VerificationError({code:"TLOG_BODY_ERROR",message:"digest mismatch"})}o(Sqt,"verifyHashedrekord001TLogBody");function Bqt(t,e){let r=t.signature?.content||Buffer.from("");if(!e.compareSignature(r))throw new CA.VerificationError({code:"TLOG_BODY_ERROR",message:"signature mismatch"});let n=t.data?.digest||Buffer.from("");if(!e.compareSignedDigest(n))throw new CA.VerificationError({code:"TLOG_BODY_ERROR",message:"digest mismatch"})}o(Bqt,"verifyHashedrekord002TLogBody")});var cOe=g(GY=>{"use strict";Object.defineProperty(GY,"__esModule",{value:!0});GY.verifyIntotoTLogBody=xqt;var Lk=Ci();function xqt(t,e){if(t.apiVersion==="0.0.2")return vqt(t,e);throw new Lk.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported intoto version: ${t.apiVersion}`})}o(xqt,"verifyIntotoTLogBody");function vqt(t,e){if(t.spec.content.envelope.signatures?.length!==1)throw new Lk.VerificationError({code:"TLOG_BODY_ERROR",message:"signature count mismatch"});let r=Nqt(t.spec.content.envelope.signatures[0].sig);if(!e.compareSignature(Buffer.from(r,"base64")))throw new Lk.VerificationError({code:"TLOG_BODY_ERROR",message:"tlog entry signature mismatch"});let n=t.spec.content.payloadHash?.value||"";if(!e.compareDigest(Buffer.from(n,"hex")))throw new Lk.VerificationError({code:"TLOG_BODY_ERROR",message:"DSSE payload hash mismatch"})}o(vqt,"verifyIntoto002TLogBody");function Nqt(t){return Buffer.from(t,"base64").toString("utf-8")}o(Nqt,"base64Decode")});var uOe=g(_S=>{"use strict";Object.defineProperty(_S,"__esModule",{value:!0});_S.LogCheckpoint=void 0;_S.verifyCheckpoint=Rqt;var lOe=Xa(),UE=Ci(),HY=` -`,Bqt=/\u2014 (\S+) (\S+)\n/g;function xqt(t,e){let r=t.inclusionProof,n=HY.fromString(r.checkpoint.envelope),i=Lk.fromString(n.note);if(!vqt(n,e))throw new ME.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return i}o(xqt,"verifyCheckpoint");function vqt(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(n=>{let i=e.find(s=>oOe.crypto.bufferEqual(s.logID.subarray(0,4),n.keyHint)&&s.baseURL.includes(n.name));return i?oOe.crypto.verify(r,i.publicKey,n.signature):!1})}o(vqt,"verifySignedNote");var HY=class t{static{o(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(GY))throw new ME.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(GY),n=e.slice(0,r+1),s=e.slice(r+GY.length).matchAll(Bqt),a=Array.from(s,c=>{let[,l,u]=c,d=Buffer.from(u,"base64");if(d.length<5)throw new ME.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:l,keyHint:d.subarray(0,4),signature:d.subarray(4)}});if(a.length===0)throw new ME.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(n,a)}},Lk=class t{static{o(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,n,i){this.origin=e,this.logSize=r,this.logHash=n,this.rest=i}static fromString(e){let r=e.trimEnd().split(` -`);if(r.length<3)throw new ME.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let n=r[0],i;try{i=BigInt(r[1])}catch{throw new ME.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint log size"})}let s=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(n,i,s,a)}};NS.LogCheckpoint=Lk});var cOe=g($Y=>{"use strict";Object.defineProperty($Y,"__esModule",{value:!0});$Y.verifyMerkleInclusion=_qt;var VY=Xa(),Fk=Ci(),Nqt=Buffer.from([0]),Rqt=Buffer.from([1]);function _qt(t,e){let r=t.inclusionProof,n;try{n=BigInt(r.logIndex)}catch{throw new Fk.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid inclusion proof log index"})}let i=BigInt(e.logSize);if(n<0n||n>=i)throw new Fk.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${n}`});let{inner:s,border:a}=Tqt(n,i);if(r.hashes.length!==s+a)throw new Fk.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,s),l=r.hashes.slice(s),u=Lqt(t.canonicalizedBody),d=Qqt(Dqt(u,c,n),l);if(!VY.crypto.bufferEqual(d,e.logHash))throw new Fk.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}o(_qt,"verifyMerkleInclusion");function Tqt(t,e){let r=kqt(t,e),n=Pqt(t>>BigInt(r));return{inner:r,border:n}}o(Tqt,"decompInclProof");function Dqt(t,e,r){return e.reduce((n,i,s)=>r>>BigInt(s)&BigInt(1)?zY(i,n):zY(n,i),t)}o(Dqt,"chainInner");function Qqt(t,e){return e.reduce((r,n)=>zY(n,r),t)}o(Qqt,"chainBorderRight");function kqt(t,e){return Oqt(t^e-BigInt(1))}o(kqt,"innerProofSize");function Pqt(t){return t.toString(2).split("1").length-1}o(Pqt,"onesCount");function Oqt(t){return t===0n?0:t.toString(2).length}o(Oqt,"bitLength");function zY(t,e){return VY.crypto.digest("sha256",Rqt,t,e)}o(zY,"hashChildren");function Lqt(t){return VY.crypto.digest("sha256",Nqt,t)}o(Lqt,"hashLeaf")});var uOe=g(jY=>{"use strict";Object.defineProperty(jY,"__esModule",{value:!0});jY.verifyTLogSET=Uqt;var lOe=Xa(),Fqt=Ci(),Mqt=PE();function Uqt(t,e){if(!(0,Mqt.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(i=>{let s=qqt(t),a=Buffer.from(lOe.json.canonicalize(s),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return lOe.crypto.verify(a,i.publicKey,c)}))throw new Fqt.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}o(Uqt,"verifyTLogSET");function qqt(t){let{integratedTime:e,logIndex:r,logId:n,canonicalizedBody:i}=t;return{body:i.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:n.keyId.toString("hex")}}o(qqt,"toVerificationPayload")});var fOe=g(Uk=>{"use strict";Object.defineProperty(Uk,"__esModule",{value:!0});Uk.verifyTLogBody=$qt;Uk.verifyTLogInclusion=jqt;var dOe=rOe(),Mk=Ci(),WY=nOe(),JY=iOe(),Gqt=sOe(),Hqt=aOe(),zqt=cOe(),Vqt=uOe();function $qt(t,e){let{kind:r,version:n}=t.kindVersion,i;try{i=JSON.parse(t.canonicalizedBody.toString("utf8"))}catch{throw new Mk.VerificationError({code:"TLOG_BODY_ERROR",message:"invalid canonicalized body"})}if(r!==i.kind||n!==i.apiVersion)throw new Mk.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${n}, received: ${i.kind}/${i.apiVersion}`});switch(r){case"dsse":if(n==WY.DSSE_API_VERSION_V1)return(0,WY.verifyDSSETLogBody)(i,e);{let s=dOe.Entry.fromJSON(i);return(0,WY.verifyDSSETLogBodyV2)(s,e)}case"intoto":return(0,Gqt.verifyIntotoTLogBody)(i,e);case"hashedrekord":if(n==JY.HASHEDREKORD_API_VERSION_V1)return(0,JY.verifyHashedRekordTLogBody)(i,e);{let s=dOe.Entry.fromJSON(i);return(0,JY.verifyHashedRekordTLogBodyV2)(s,e)}default:throw new Mk.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}o($qt,"verifyTLogBody");function jqt(t,e){let r=!1;if(Wqt(t)&&((0,Vqt.verifyTLogSET)(t,e),r=!0),Jqt(t)){let n=(0,Hqt.verifyCheckpoint)(t,e);(0,zqt.verifyMerkleInclusion)(t,n),r=!0}if(!r)throw new Mk.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}o(jqt,"verifyTLogInclusion");function Wqt(t){return t.inclusionPromise!==void 0}o(Wqt,"isTLogEntryWithInclusionPromise");function Jqt(t){return t.inclusionProof!==void 0}o(Jqt,"isTLogEntryWithInclusionProof")});var mOe=g(qk=>{"use strict";Object.defineProperty(qk,"__esModule",{value:!0});qk.Verifier=void 0;var Yqt=require("util"),bA=Ci(),hOe=zPe(),YY=VPe(),pOe=WPe(),AOe=fOe(),XY=class{static{o(this,"Verifier")}trustMaterial;options;constructor(e,r={}){this.trustMaterial=e,this.options={ctlogThreshold:r.ctlogThreshold??1,tlogThreshold:r.tlogThreshold??1,timestampThreshold:r.timestampThreshold??r.tsaThreshold??1,tsaThreshold:0}}verify(e,r){let n=this.verifyTimestamps(e),i=this.verifySigningKey(e,n);return this.verifyTLogs(e),this.verifySignature(e,i),r&&this.verifyPolicy(r,i.identity||{}),i}verifyTimestamps(e){let r=[];for(let n of e.timestamps)switch(n.$case){case"timestamp-authority":r.push((0,pOe.getTSATimestamp)(n.timestamp,e.signature.signature,this.trustMaterial.timestampAuthorities));break;case"transparency-log":{let i=(0,pOe.getTLogTimestamp)(n.tlogEntry);i&&r.push(i);break}}if(KY(r))throw new bA.VerificationError({code:"TIMESTAMP_ERROR",message:"duplicate timestamp"});if(r.lengthn.timestamp)}verifySigningKey({key:e},r){switch(e.$case){case"public-key":return(0,hOe.verifyPublicKey)(e.hint,r,this.trustMaterial);case"certificate":{let n=(0,hOe.verifyCertificate)(e.certificate,r,this.trustMaterial);if(KY(n.scts))throw new bA.VerificationError({code:"CERTIFICATE_ERROR",message:"duplicate SCT"});if(n.scts.length{(0,AOe.verifyTLogInclusion)(i,this.trustMaterial.tlogs),(0,AOe.verifyTLogBody)(i,e),n.push({logID:i.logId.keyId,logIndex:i.logIndex})}),KY(n))throw new bA.VerificationError({code:"TLOG_ERROR",message:"duplicate tlog entry"});if(n.length{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});fa.Verifier=fa.toTrustMaterial=fa.VerificationError=fa.PolicyError=fa.toSignedEntity=void 0;var Kqt=FPe();Object.defineProperty(fa,"toSignedEntity",{enumerable:!0,get:o(function(){return Kqt.toSignedEntity},"get")});var gOe=Ci();Object.defineProperty(fa,"PolicyError",{enumerable:!0,get:o(function(){return gOe.PolicyError},"get")});Object.defineProperty(fa,"VerificationError",{enumerable:!0,get:o(function(){return gOe.VerificationError},"get")});var Xqt=PE();Object.defineProperty(fa,"toTrustMaterial",{enumerable:!0,get:o(function(){return Xqt.toTrustMaterial},"get")});var Zqt=mOe();Object.defineProperty(fa,"Verifier",{enumerable:!0,get:o(function(){return Zqt.Verifier},"get")})});var $Oe=T(require("fs"),1),jOe=T(require("path"),1);var qK=T(require("os"),1);function Ml(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(Ml,"toCommandValue");function pP(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}o(pP,"toCommandProperties");function Ul(t,e,r){let n=new AP(t,e,r);process.stdout.write(n.toString()+qK.EOL)}o(Ul,"issueCommand");function mP(t,e=""){Ul(t,{},e)}o(mP,"issue");var UK="::",AP=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=UK+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let i=this.properties[n];i&&(r?r=!1:e+=",",e+=`${n}=${kLe(i)}`)}}return e+=`${UK}${QLe(this.message)}`,e}};function QLe(t){return Ml(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(QLe,"escapeData");function kLe(t){return Ml(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(kLe,"escapeProperty");var GK=T(require("crypto"),1),aB=T(require("fs"),1),oB=T(require("os"),1);function cB(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!aB.existsSync(r))throw new Error(`Missing file at path: ${r}`);aB.appendFileSync(r,`${Ml(e)}${oB.EOL}`,{encoding:"utf8"})}o(cB,"issueFileCommand");function gP(t,e){let r=`ghadelimiter_${GK.randomUUID()}`,n=Ml(e);if(t.includes(r))throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(n.includes(r))throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${t}<<${r}${oB.EOL}${n}${oB.EOL}${r}`}o(gP,"prepareKeyValueMessage");var aM=T(require("os"),1),Mse=T(require("path"),1);var cb=T(require("http"),1),jF=T(require("https"),1);function yP(t){let e=t.protocol==="https:";if(PLe(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new lB(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new lB(`http://${r}`)}else return}o(yP,"getProxyUrl");function PLe(t){if(!t.hostname)return!1;let e=t.hostname;if(OLe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let i=[t.hostname.toUpperCase()];typeof n=="number"&&i.push(`${i[0]}:${n}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||i.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}o(PLe,"checkBypass");function OLe(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(OLe,"isLoopbackAddress");var lB=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var Ed=T(_A(),1),yse=T(yh(),1);var Mr=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},yo;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(yo||(yo={}));var Bi;(function(t){t.Accept="accept",t.ContentType="content-type"})(Bi||(Bi={}));var tu;(function(t){t.ApplicationJson="application/json"})(tu||(tu={}));var sje=[yo.MovedPermanently,yo.ResourceMoved,yo.SeeOther,yo.TemporaryRedirect,yo.PermanentRedirect],oje=[yo.BadGateway,yo.ServiceUnavailable,yo.GatewayTimeout],aje=["OPTIONS","GET","DELETE","HEAD"],cje=10,lje=5,VF=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}},$F=class{static{o(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return Mr(this,void 0,void 0,function*(){return new Promise(e=>Mr(this,void 0,void 0,function*(){let r=Buffer.alloc(0);this.message.on("data",n=>{r=Buffer.concat([r,n])}),this.message.on("end",()=>{e(r.toString())})}))})}readBodyBuffer(){return Mr(this,void 0,void 0,function*(){return new Promise(e=>Mr(this,void 0,void 0,function*(){let r=[];this.message.on("data",n=>{r.push(n)}),this.message.on("end",()=>{e(Buffer.concat(r))})}))})}};var Eh=class{static{o(this,"HttpClient")}constructor(e,r,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=r||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,r){return Mr(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,r||{})})}get(e,r){return Mr(this,void 0,void 0,function*(){return this.request("GET",e,null,r||{})})}del(e,r){return Mr(this,void 0,void 0,function*(){return this.request("DELETE",e,null,r||{})})}post(e,r,n){return Mr(this,void 0,void 0,function*(){return this.request("POST",e,r,n||{})})}patch(e,r,n){return Mr(this,void 0,void 0,function*(){return this.request("PATCH",e,r,n||{})})}put(e,r,n){return Mr(this,void 0,void 0,function*(){return this.request("PUT",e,r,n||{})})}head(e,r){return Mr(this,void 0,void 0,function*(){return this.request("HEAD",e,null,r||{})})}sendStream(e,r,n,i){return Mr(this,void 0,void 0,function*(){return this.request(e,r,n,i)})}getJson(e){return Mr(this,arguments,void 0,function*(r,n={}){n[Bi.Accept]=this._getExistingOrDefaultHeader(n,Bi.Accept,tu.ApplicationJson);let i=yield this.get(r,n);return this._processResponse(i,this.requestOptions)})}postJson(e,r){return Mr(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[Bi.Accept]=this._getExistingOrDefaultHeader(s,Bi.Accept,tu.ApplicationJson),s[Bi.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,tu.ApplicationJson);let c=yield this.post(n,a,s);return this._processResponse(c,this.requestOptions)})}putJson(e,r){return Mr(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[Bi.Accept]=this._getExistingOrDefaultHeader(s,Bi.Accept,tu.ApplicationJson),s[Bi.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,tu.ApplicationJson);let c=yield this.put(n,a,s);return this._processResponse(c,this.requestOptions)})}patchJson(e,r){return Mr(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[Bi.Accept]=this._getExistingOrDefaultHeader(s,Bi.Accept,tu.ApplicationJson),s[Bi.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,tu.ApplicationJson);let c=yield this.patch(n,a,s);return this._processResponse(c,this.requestOptions)})}request(e,r,n,i){return Mr(this,void 0,void 0,function*(){if(this._disposed)throw new Error("Client has already been disposed.");let s=new URL(r),a=this._prepareRequest(e,s,i),c=this._allowRetries&&aje.includes(e)?this._maxRetries+1:1,l=0,u;do{if(u=yield this.requestRaw(a,n),u&&u.message&&u.message.statusCode===yo.Unauthorized){let f;for(let h of this.handlers)if(h.canHandleAuthentication(u)){f=h;break}return f?f.handleAuthentication(this,a,n):u}let d=this._maxRedirects;for(;u.message.statusCode&&sje.includes(u.message.statusCode)&&this._allowRedirects&&d>0;){let f=u.message.headers.location;if(!f)break;let h=new URL(f);if(s.protocol==="https:"&&s.protocol!==h.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield u.readBody(),h.hostname!==s.hostname)for(let p in i)p.toLowerCase()==="authorization"&&delete i[p];a=this._prepareRequest(e,h,i),u=yield this.requestRaw(a,n),d--}if(!u.message.statusCode||!oje.includes(u.message.statusCode))return u;l+=1,l{function s(a,c){a?i(a):c?n(c):i(new Error("Unknown error"))}o(s,"callbackForResult"),this.requestRawWithCallback(e,r,s)})})}requestRawWithCallback(e,r,n){typeof r=="string"&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8"));let i=!1;function s(l,u){i||(i=!0,n(l,u))}o(s,"handleResult");let a=e.httpModule.request(e.options,l=>{let u=new $F(l);s(void 0,u)}),c;a.on("socket",l=>{c=l}),a.setTimeout(this._socketTimeout||3*6e4,()=>{c&&c.end(),s(new Error(`Request timeout: ${e.options.path}`))}),a.on("error",function(l){s(l)}),r&&typeof r=="string"&&a.write(r,"utf8"),r&&typeof r!="string"?(r.on("close",function(){a.end()}),r.pipe(a)):a.end()}getAgent(e){let r=new URL(e);return this._getAgent(r)}getAgentDispatcher(e){let r=new URL(e),n=yP(r);if(n&&n.hostname)return this._getProxyAgentDispatcher(r,n)}_prepareRequest(e,r,n){let i={};i.parsedUrl=r;let s=i.parsedUrl.protocol==="https:";i.httpModule=s?jF:cb;let a=s?443:80;if(i.options={},i.options.host=i.parsedUrl.hostname,i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):a,i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||""),i.options.method=e,i.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(i.options.headers["user-agent"]=this.userAgent),i.options.agent=this._getAgent(i.parsedUrl),this.handlers)for(let c of this.handlers)c.prepareRequest(i.options);return i}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},ab(this.requestOptions.headers),ab(e||{})):ab(e||{})}_getExistingOrDefaultHeader(e,r,n){let i;if(this.requestOptions&&this.requestOptions.headers){let a=ab(this.requestOptions.headers)[r];a&&(i=typeof a=="number"?a.toString():a)}let s=e[r];return s!==void 0?typeof s=="number"?s.toString():s:i!==void 0?i:n}_getExistingOrDefaultContentTypeHeader(e,r){let n;if(this.requestOptions&&this.requestOptions.headers){let s=ab(this.requestOptions.headers)[Bi.ContentType];s&&(typeof s=="number"?n=String(s):Array.isArray(s)?n=s.join(", "):n=s)}let i=e[Bi.ContentType];return i!==void 0?typeof i=="number"?String(i):Array.isArray(i)?i.join(", "):i:n!==void 0?n:r}_getAgent(e){let r,n=yP(e),i=n&&n.hostname;if(this._keepAlive&&i&&(r=this._proxyAgent),i||(r=this._agent),r)return r;let s=e.protocol==="https:",a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||cb.globalAgent.maxSockets),n&&n.hostname){let c={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},l,u=n.protocol==="https:";s?l=u?Ed.httpsOverHttps:Ed.httpsOverHttp:l=u?Ed.httpOverHttps:Ed.httpOverHttp,r=l(c),this._proxyAgent=r}if(!r){let c={keepAlive:this._keepAlive,maxSockets:a};r=s?new jF.Agent(c):new cb.Agent(c),this._agent=r}return s&&this._ignoreSslError&&(r.options=Object.assign(r.options||{},{rejectUnauthorized:!1})),r}_getProxyAgentDispatcher(e,r){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;let i=e.protocol==="https:";return n=new yse.ProxyAgent(Object.assign({uri:r.href,pipelining:this._keepAlive?1:0},(r.username||r.password)&&{token:`Basic ${Buffer.from(`${r.username}:${r.password}`).toString("base64")}`})),this._proxyAgentDispatcher=n,i&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_getUserAgentWithOrchestrationId(e){let r=e||"actions/http-client",n=process.env.ACTIONS_ORCHESTRATION_ID;if(n){let i=n.replace(/[^a-z0-9_.-]/gi,"_");return`${r} actions_orchestration_id/${i}`}return r}_performExponentialBackoff(e){return Mr(this,void 0,void 0,function*(){e=Math.min(cje,e);let r=lje*Math.pow(2,e);return new Promise(n=>setTimeout(()=>n(),r))})}_processResponse(e,r){return Mr(this,void 0,void 0,function*(){return new Promise((n,i)=>Mr(this,void 0,void 0,function*(){let s=e.message.statusCode||0,a={statusCode:s,result:null,headers:{}};s===yo.NotFound&&n(a);function c(d,f){if(typeof f=="string"){let h=new Date(f);if(!isNaN(h.valueOf()))return h}return f}o(c,"dateTimeDeserializer");let l,u;try{u=yield e.readBody(),u&&u.length>0&&(r&&r.deserializeDates?l=JSON.parse(u,c):l=JSON.parse(u),a.result=l),a.headers=e.message.headers}catch{}if(s>299){let d;l&&l.message?d=l.message:u&&u.length>0?d=u:d=`Failed request: (${s})`;let f=new VF(d,s);f.result=a.result,i(f)}else n(a)}))})}},ab=o(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys");var bse=require("os"),lb=require("fs");var WF=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:dje,appendFile:fje,writeFile:hje}=lb.promises,Cse="GITHUB_STEP_SUMMARY";var JF=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return WF(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Cse];if(!e)throw new Error(`Unable to find environment variable for $${Cse}. Check if your runtime environment supports job summaries.`);try{yield dje(e,lb.constants.R_OK|lb.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let i=Object.entries(n).map(([s,a])=>` ${s}="${a}"`).join("");return r?`<${e}${i}>${r}`:`<${e}${i}>`}write(e){return WF(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?hje:fje)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return WF(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(bse.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),i=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(i).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",i=e.map(a=>this.wrap("li",a)).join(""),s=this.wrap(n,i);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(i=>{let s=i.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,f=c?"th":"td",h=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(f,l,h)}).join("");return this.wrap("tr",s)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:i,height:s}=n||{},a=Object.assign(Object.assign({},i&&{width:i}),s&&{height:s}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,i=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",s=this.wrap(i,e);return this.addRaw(s).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),i=this.wrap("blockquote",e,n);return this.addRaw(i).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},pje=new JF;var YF=pje;var sM=T(require("os"),1);var iM=require("string_decoder");var db=T(require("os"),1),nM=T(require("events"),1),kse=T(require("child_process"),1),Pse=T(require("path"),1);var Rse=require("assert"),Ls=T(require("path"),1);var ub=T(require("fs"),1),Cd=T(require("path"),1);var KF=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},{chmod:XF,copyFile:Ise,lstat:sv,mkdir:Sse,open:szt,readdir:ZF,rename:Aje,rm:Bse,rmdir:ozt,stat:Ch,symlink:xse,unlink:eM}=ub.promises,fc=process.platform==="win32";function vse(t){return KF(this,void 0,void 0,function*(){let e=yield ub.promises.readlink(t);return fc&&!e.endsWith("\\")?`${e}\\`:e})}o(vse,"readlink");var azt=ub.constants.O_RDONLY;function vm(t){return KF(this,void 0,void 0,function*(){try{yield Ch(t)}catch(e){if(e.code==="ENOENT")return!1;throw e}return!0})}o(vm,"exists");function ov(t){if(t=mje(t),!t)throw new Error('isRooted() parameter "p" cannot be empty');return fc?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}o(ov,"isRooted");function tM(t,e){return KF(this,void 0,void 0,function*(){let r;try{r=yield Ch(t)}catch(i){i.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${i}`)}if(r&&r.isFile()){if(fc){let i=Cd.extname(t).toUpperCase();if(e.some(s=>s.toUpperCase()===i))return t}else if(wse(r))return t}let n=t;for(let i of e){t=n+i,r=void 0;try{r=yield Ch(t)}catch(s){s.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${s}`)}if(r&&r.isFile()){if(fc){try{let s=Cd.dirname(t),a=Cd.basename(t).toUpperCase();for(let c of yield ZF(s))if(a===c.toUpperCase()){t=Cd.join(s,c);break}}catch(s){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${s}`)}return t}else if(wse(r))return t}}return""})}o(tM,"tryGetExecutablePath");function mje(t){return t=t||"",fc?(t=t.replace(/\//g,"\\"),t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}o(mje,"normalizeSeparators");function wse(t){return(t.mode&1)>0||(t.mode&8)>0&&process.getgid!==void 0&&t.gid===process.getgid()||(t.mode&64)>0&&process.getuid!==void 0&&t.uid===process.getuid()}o(wse,"isUnixExecutable");var bh=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function _se(t,e){return bh(this,arguments,void 0,function*(r,n,i={}){let{force:s,recursive:a,copySourceDirectory:c}=yje(i),l=(yield vm(n))?yield Ch(n):null;if(l&&l.isFile()&&!s)return;let u=l&&l.isDirectory()&&c?Ls.join(n,Ls.basename(r)):n;if(!(yield vm(r)))throw new Error(`no such file or directory: ${r}`);if((yield Ch(r)).isDirectory())if(a)yield Tse(r,u,0,s);else throw new Error(`Failed to copy. ${r} is a directory, but tried to copy without recursive flag.`);else{if(Ls.relative(r,u)==="")throw new Error(`'${u}' and '${r}' are the same file`);yield Dse(r,u,s)}})}o(_se,"cp");function Nm(t){return bh(this,void 0,void 0,function*(){if(fc&&/[*"<>|]/.test(t))throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield Bse(t,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}})}o(Nm,"rmRF");function ru(t){return bh(this,void 0,void 0,function*(){(0,Rse.ok)(t,"a path argument must be provided"),yield Sse(t,{recursive:!0})})}o(ru,"mkdirP");function Gn(t,e){return bh(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");if(e){let n=yield Gn(t,!1);if(!n)throw fc?new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`):new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);return n}let r=yield gje(t);return r&&r.length>0?r[0]:""})}o(Gn,"which");function gje(t){return bh(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");let e=[];if(fc&&process.env.PATHEXT)for(let i of process.env.PATHEXT.split(Ls.delimiter))i&&e.push(i);if(ov(t)){let i=yield tM(t,e);return i?[i]:[]}if(t.includes(Ls.sep))return[];let r=[];if(process.env.PATH)for(let i of process.env.PATH.split(Ls.delimiter))i&&r.push(i);let n=[];for(let i of r){let s=yield tM(Ls.join(i,t),e);s&&n.push(s)}return n})}o(gje,"findInPath");function yje(t){let e=t.force==null?!0:t.force,r=!!t.recursive,n=t.copySourceDirectory==null?!0:!!t.copySourceDirectory;return{force:e,recursive:r,copySourceDirectory:n}}o(yje,"readCopyOptions");function Tse(t,e,r,n){return bh(this,void 0,void 0,function*(){if(r>=255)return;r++,yield ru(e);let i=yield ZF(t);for(let s of i){let a=`${t}/${s}`,c=`${e}/${s}`;(yield sv(a)).isDirectory()?yield Tse(a,c,r,n):yield Dse(a,c,n)}yield XF(e,(yield Ch(t)).mode)})}o(Tse,"cpDirRecursive");function Dse(t,e,r){return bh(this,void 0,void 0,function*(){if((yield sv(t)).isSymbolicLink()){try{yield sv(e),yield eM(e)}catch(i){i.code==="EPERM"&&(yield XF(e,"0666"),yield eM(e))}let n=yield vse(t);yield xse(n,e,fc?"junction":null)}else(!(yield vm(e))||r)&&(yield Ise(t,e))})}o(Dse,"copyFile");var Ose=require("timers");var Qse=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},av=process.platform==="win32",cv=class extends nM.EventEmitter{static{o(this,"ToolRunner")}constructor(e,r,n){if(super(),!e)throw new Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=r||[],this.options=n||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,r){let n=this._getSpawnFileName(),i=this._getSpawnArgs(e),s=r?"":"[command]";if(av)if(this._isCmdFile()){s+=n;for(let a of i)s+=` ${a}`}else if(e.windowsVerbatimArguments){s+=`"${n}"`;for(let a of i)s+=` ${a}`}else{s+=this._windowsQuoteCmdArg(n);for(let a of i)s+=` ${this._windowsQuoteCmdArg(a)}`}else{s+=n;for(let a of i)s+=` ${a}`}return s}_processLineBuffer(e,r,n){try{let i=r+e.toString(),s=i.indexOf(db.EOL);for(;s>-1;){let a=i.substring(0,s);n(a),i=i.substring(s+db.EOL.length),s=i.indexOf(db.EOL)}return i}catch(i){return this._debug(`error processing line. Failed with error ${i}`),""}}_getSpawnFileName(){return av&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(av&&this._isCmdFile()){let r=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(let n of this.args)r+=" ",r+=e.windowsVerbatimArguments?n:this._windowsQuoteCmdArg(n);return r+='"',[r]}return this.args}_endsWith(e,r){return e.endsWith(r)}_isCmdFile(){let e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';let r=[" "," ","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'],n=!1;for(let a of e)if(r.some(c=>c===a)){n=!0;break}if(!n)return e;let i='"',s=!0;for(let a=e.length;a>0;a--)i+=e[a-1],s&&e[a-1]==="\\"?i+="\\":e[a-1]==='"'?(s=!0,i+='"'):s=!1;return i+='"',i.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes(" ")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let r='"',n=!0;for(let i=e.length;i>0;i--)r+=e[i-1],n&&e[i-1]==="\\"?r+="\\":e[i-1]==='"'?(n=!0,r+="\\"):n=!1;return r+='"',r.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};let r={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return r.outStream=e.outStream||process.stdout,r.errStream=e.errStream||process.stderr,r}_getSpawnOptions(e,r){e=e||{};let n={};return n.cwd=e.cwd,n.env=e.env,n.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(n.argv0=`"${r}"`),n}exec(){return Qse(this,void 0,void 0,function*(){return!ov(this.toolPath)&&(this.toolPath.includes("/")||av&&this.toolPath.includes("\\"))&&(this.toolPath=Pse.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield Gn(this.toolPath,!0),new Promise((e,r)=>Qse(this,void 0,void 0,function*(){this._debug(`exec tool: ${this.toolPath}`),this._debug("arguments:");for(let u of this.args)this._debug(` ${u}`);let n=this._cloneExecOptions(this.options);!n.silent&&n.outStream&&n.outStream.write(this._getCommandString(n)+db.EOL);let i=new rM(n,this.toolPath);if(i.on("debug",u=>{this._debug(u)}),this.options.cwd&&!(yield vm(this.options.cwd)))return r(new Error(`The cwd: ${this.options.cwd} does not exist!`));let s=this._getSpawnFileName(),a=kse.spawn(s,this._getSpawnArgs(n),this._getSpawnOptions(this.options,s)),c="";a.stdout&&a.stdout.on("data",u=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(u),!n.silent&&n.outStream&&n.outStream.write(u),c=this._processLineBuffer(u,c,d=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(d)})});let l="";if(a.stderr&&a.stderr.on("data",u=>{i.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(u),!n.silent&&n.errStream&&n.outStream&&(n.failOnStdErr?n.errStream:n.outStream).write(u),l=this._processLineBuffer(u,l,d=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(d)})}),a.on("error",u=>{i.processError=u.message,i.processExited=!0,i.processClosed=!0,i.CheckComplete()}),a.on("exit",u=>{i.processExitCode=u,i.processExited=!0,this._debug(`Exit code ${u} received from tool '${this.toolPath}'`),i.CheckComplete()}),a.on("close",u=>{i.processExitCode=u,i.processExited=!0,i.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),i.CheckComplete()}),i.on("done",(u,d)=>{c.length>0&&this.emit("stdline",c),l.length>0&&this.emit("errline",l),a.removeAllListeners(),u?r(u):e(d)}),this.options.input){if(!a.stdin)throw new Error("child process missing stdin");a.stdin.end(this.options.input)}}))})}};function Lse(t){let e=[],r=!1,n=!1,i="";function s(a){n&&a!=='"'&&(i+="\\"),i+=a,n=!1}o(s,"append");for(let a=0;a0&&(e.push(i),i="");continue}s(c)}return i.length>0&&e.push(i.trim()),e}o(Lse,"argStringToArray");var rM=class t extends nM.EventEmitter{static{o(this,"ExecState")}constructor(e,r){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!r)throw new Error("toolPath must not be empty");this.options=e,this.toolPath=r,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=(0,Ose.setTimeout)(t.HandleTimeout,this.delay,this)))}_debug(e){this.emit("debug",e)}_setResult(){let e;this.processExited&&(this.processError?e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):this.processExitCode!==0&&!this.options.ignoreReturnCode?e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`):this.processStderr&&this.options.failOnStdErr&&(e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`))),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(!e.done){if(!e.processClosed&&e.processExited){let r=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(r)}e._setResult()}}};var Fse=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function Fs(t,e,r){return Fse(this,void 0,void 0,function*(){let n=Lse(t);if(n.length===0)throw new Error("Parameter 'commandLine' cannot be null or empty.");let i=n[0];return e=n.slice(1).concat(e||[]),new cv(i,e,r).exec()})}o(Fs,"exec");function fb(t,e,r){return Fse(this,void 0,void 0,function*(){var n,i;let s="",a="",c=new iM.StringDecoder("utf8"),l=new iM.StringDecoder("utf8"),u=(n=r?.listeners)===null||n===void 0?void 0:n.stdout,d=(i=r?.listeners)===null||i===void 0?void 0:i.stderr,f=o(A=>{a+=l.write(A),d&&d(A)},"stdErrListener"),h=o(A=>{s+=c.write(A),u&&u(A)},"stdOutListener"),p=Object.assign(Object.assign({},r?.listeners),{stdout:h,stderr:f}),m=yield Fs(t,e,Object.assign(Object.assign({},r),{listeners:p}));return s+=c.end(),a+=l.end(),{exitCode:m,stdout:s,stderr:a}})}o(fb,"getExecOutput");var hzt=sM.default.platform(),pzt=sM.default.arch();var bje=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},oM;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(oM||(oM={}));function Os(t){Ul("add-mask",{},t)}o(Os,"setSecret");function hc(t){process.env.GITHUB_PATH||""?cB("PATH",t):Ul("add-path",{},t),process.env.PATH=`${t}${Mse.delimiter}${process.env.PATH}`}o(hc,"addPath");function Ms(t,e){let r=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(e&&e.required&&!r)throw new Error(`Input required and not supplied: ${t}`);return e&&e.trimWhitespace===!1?r:r.trim()}o(Ms,"getInput");function wh(t,e){let r=["true","True","TRUE"],n=["false","False","FALSE"],i=Ms(t,e);if(r.includes(i))return!0;if(n.includes(i))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t} -Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(wh,"getBooleanInput");function Use(t,e){if(process.env.GITHUB_OUTPUT||"")return cB("OUTPUT",gP(t,e));process.stdout.write(aM.EOL),Ul("set-output",{name:t},Ml(e))}o(Use,"setOutput");function lv(t){process.exitCode=oM.Failure,Sa(t)}o(lv,"setFailed");function Ih(){return process.env.RUNNER_DEBUG==="1"}o(Ih,"isDebug");function v(t){Ul("debug",{},t)}o(v,"debug");function Sa(t,e={}){Ul("error",pP(e),t instanceof Error?t.toString():t)}o(Sa,"error");function Ge(t,e={}){Ul("warning",pP(e),t instanceof Error?t.toString():t)}o(Ge,"warning");function D(t){process.stdout.write(t+aM.EOL)}o(D,"info");function wje(t){mP("group",t)}o(wje,"startGroup");function Ije(){mP("endgroup")}o(Ije,"endGroup");function Sr(t,e){return bje(this,void 0,void 0,function*(){wje(t);let r;try{r=yield e()}finally{Ije()}return r})}o(Sr,"group");function Eo(t,e){if(process.env.GITHUB_STATE||"")return cB("STATE",gP(t,e));Ul("save-state",{name:t},Ml(e))}o(Eo,"saveState");function qse(t){return process.env[`STATE_${t}`]||""}o(qse,"getState");var sw=T(require("fs"),1),wV=T(require("os"),1),IV=T(require("path"),1);var Hse=T(require("os"),1);function pb(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(pb,"toCommandValue");function zse(t,e,r){let n=new cM(t,e,r);process.stdout.write(n.toString()+Hse.EOL)}o(zse,"issueCommand");var Gse="::",cM=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=Gse+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let i=this.properties[n];i&&(r?r=!1:e+=",",e+=`${n}=${Bje(i)}`)}}return e+=`${Gse}${Sje(this.message)}`,e}};function Sje(t){return pb(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(Sje,"escapeData");function Bje(t){return pb(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(Bje,"escapeProperty");var Wse=T(require("os"),1);var $se=require("os"),Ab=require("fs");var lM=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:xje,appendFile:vje,writeFile:Nje}=Ab.promises,Vse="GITHUB_STEP_SUMMARY";var uM=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return lM(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Vse];if(!e)throw new Error(`Unable to find environment variable for $${Vse}. Check if your runtime environment supports job summaries.`);try{yield xje(e,Ab.constants.R_OK|Ab.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let i=Object.entries(n).map(([s,a])=>` ${s}="${a}"`).join("");return r?`<${e}${i}>${r}`:`<${e}${i}>`}write(e){return lM(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?Nje:vje)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return lM(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw($se.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),i=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(i).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",i=e.map(a=>this.wrap("li",a)).join(""),s=this.wrap(n,i);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(i=>{let s=i.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,f=c?"th":"td",h=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(f,l,h)}).join("");return this.wrap("tr",s)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:i,height:s}=n||{},a=Object.assign(Object.assign({},i&&{width:i}),s&&{height:s}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,i=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",s=this.wrap(i,e);return this.addRaw(s).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),i=this.wrap("blockquote",e,n);return this.addRaw(i).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},Hzt=new uM;var dM=T(require("os"),1);var Wzt=dM.default.platform(),Jzt=dM.default.arch();var jse;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(jse||(jse={}));function fM(){return process.env.RUNNER_DEBUG==="1"}o(fM,"isDebug");function jt(t){zse("debug",{},t)}o(jt,"debug");function hM(t){process.stdout.write(t+Wse.EOL)}o(hM,"info");var PM=T(require("crypto"),1),oi=T(require("fs"),1);var BJe=T(QM(),1);var Sv=T(require("os"),1),Ba=T(require("path"),1);var wo=T(QM(),1),Mae=T(require("stream"),1),Uae=T(require("util"),1),OM=require("assert");var Fae=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},wv=class{static{o(this,"RetryHelper")}constructor(e,r,n){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(r),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return Fae(this,void 0,void 0,function*(){let n=1;for(;nsetTimeout(r,e*1e3))})}};var Ac=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},Iv=class extends Error{static{o(this,"HTTPError")}constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},qae=process.platform==="win32",Z4t=process.platform==="darwin",vJe="actions/tool-cache";function Io(t,e,r,n){return Ac(this,void 0,void 0,function*(){e=e||Ba.join(Wae(),PM.randomUUID()),yield ru(Ba.dirname(e)),jt(`Downloading ${t}`),jt(`Destination ${e}`);let i=3,s=kM("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),a=kM("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new wv(i,s,a).execute(()=>Ac(this,void 0,void 0,function*(){return yield NJe(t,e||"",r,n)}),l=>!(l instanceof Iv&&l.httpStatusCode&&l.httpStatusCode<500&&l.httpStatusCode!==408&&l.httpStatusCode!==429))})}o(Io,"downloadTool");function NJe(t,e,r,n){return Ac(this,void 0,void 0,function*(){if(oi.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let i=new Eh(vJe,[],{allowRetries:!1});r&&(jt("set auth"),n===void 0&&(n={}),n.authorization=r);let s=yield i.get(t,n);if(s.message.statusCode!==200){let d=new Iv(s.message.statusCode);throw jt(`Failed to download from "${t}". Code(${s.message.statusCode}) Message(${s.message.statusMessage})`),d}let a=Uae.promisify(Mae.pipeline),l=kM("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>s.message)(),u=!1;try{return yield a(l,oi.createWriteStream(e)),jt("download complete"),u=!0,e}finally{if(!u){jt("download failed");try{yield Nm(e)}catch(d){jt(`Failed to delete '${e}'. ${d.message}`)}}}})}o(NJe,"downloadToolAttempt");function Gae(t,e){return Ac(this,arguments,void 0,function*(r,n,i="xz"){if(!r)throw new Error("parameter 'file' is required");n=yield $ae(n),jt("Checking tar --version");let s="";yield Fs("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(d=>s+=d.toString(),"stdout"),stderr:o(d=>s+=d.toString(),"stderr")}}),jt(s.trim());let a=s.toUpperCase().includes("GNU TAR"),c;i instanceof Array?c=i:c=[i],fM()&&!i.includes("v")&&c.push("-v");let l=n,u=r;return qae&&a&&(c.push("--force-local"),l=n.replace(/\\/g,"/"),u=r.replace(/\\/g,"/")),a&&(c.push("--warning=no-unknown-keyword"),c.push("--overwrite")),c.push("-C",l,"-f",u),yield Fs("tar",c),n})}o(Gae,"extractTar");function Hae(t,e){return Ac(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yield $ae(e),qae?yield RJe(t,e):yield _Je(t,e),e})}o(Hae,"extractZip");function RJe(t,e){return Ac(this,void 0,void 0,function*(){let r=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=yield Gn("pwsh",!1);if(i){let a=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ;","try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;",`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force } else { throw $_ } } ;`].join(" ")];jt(`Using pwsh at path: ${i}`),yield Fs(`"${i}"`,a)}else{let a=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ;","try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;",`if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) }`].join(" ")],c=yield Gn("powershell",!0);jt(`Using powershell at path: ${c}`),yield Fs(`"${c}"`,a)}})}o(RJe,"extractZipWin");function _Je(t,e){return Ac(this,void 0,void 0,function*(){let r=yield Gn("unzip",!0),n=[t];fM()||n.unshift("-q"),n.unshift("-o"),yield Fs(`"${r}"`,n,{cwd:e})})}o(_Je,"extractZipNix");function zae(t,e,r,n){return Ac(this,void 0,void 0,function*(){if(r=wo.clean(r)||r,n=n||Sv.arch(),jt(`Caching tool ${e} ${r} ${n}`),jt(`source dir: ${t}`),!oi.statSync(t).isDirectory())throw new Error("sourceDir is not a directory");let i=yield DJe(e,r,n);for(let s of oi.readdirSync(t)){let a=Ba.join(t,s);yield _se(a,i,{recursive:!0})}return QJe(e,r,n),i})}o(zae,"cacheDir");function Vae(t,e,r){if(!t)throw new Error("toolName parameter is required");if(!e)throw new Error("versionSpec parameter is required");if(r=r||Sv.arch(),!jae(e)){let i=TJe(t,r);e=kJe(i,e)}let n="";if(e){e=wo.clean(e)||"";let i=Ba.join(Bv(),t,e,r);jt(`checking cache: ${i}`),oi.existsSync(i)&&oi.existsSync(`${i}.complete`)?(jt(`Found tool in cache ${t} ${e} ${r}`),n=i):jt("not found")}return n}o(Vae,"find");function TJe(t,e){let r=[];e=e||Sv.arch();let n=Ba.join(Bv(),t);if(oi.existsSync(n)){let i=oi.readdirSync(n);for(let s of i)if(jae(s)){let a=Ba.join(n,s,e||"");oi.existsSync(a)&&oi.existsSync(`${a}.complete`)&&r.push(s)}}return r}o(TJe,"findAllVersions");function $ae(t){return Ac(this,void 0,void 0,function*(){return t||(t=Ba.join(Wae(),PM.randomUUID())),yield ru(t),t})}o($ae,"_createExtractFolder");function DJe(t,e,r){return Ac(this,void 0,void 0,function*(){let n=Ba.join(Bv(),t,wo.clean(e)||e,r||"");jt(`destination ${n}`);let i=`${n}.complete`;return yield Nm(n),yield Nm(i),yield ru(n),n})}o(DJe,"_createToolPath");function QJe(t,e,r){let i=`${Ba.join(Bv(),t,wo.clean(e)||e,r||"")}.complete`;oi.writeFileSync(i,""),jt("finished caching tool")}o(QJe,"_completeToolPath");function jae(t){let e=wo.clean(t)||"";jt(`isExplicit: ${e}`);let r=wo.valid(e)!=null;return jt(`explicit? ${r}`),r}o(jae,"isExplicitVersion");function kJe(t,e){let r="";jt(`evaluating ${t.length} versions`),t=t.sort((n,i)=>wo.gt(n,i)?1:-1);for(let n=t.length-1;n>=0;n--){let i=t[n];if(wo.satisfies(i,e)){r=i;break}}return r?jt(`matched: ${r}`):jt("match not found"),r}o(kJe,"evaluateVersions");function Bv(){let t=process.env.RUNNER_TOOL_CACHE||"";return(0,OM.ok)(t,"Expected RUNNER_TOOL_CACHE to be defined"),t}o(Bv,"_getCacheDirectory");function Wae(){let t=process.env.RUNNER_TEMP||"";return(0,OM.ok)(t,"Expected RUNNER_TEMP to be defined"),t}o(Wae,"_getTempDirectory");function kM(t,e){let r=global[t];return r!==void 0?r:e}o(kM,"_getGlobal");var iw=T(require("path"),1);var Yae=T(require("os"),1);function Ib(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(Ib,"toCommandValue");function Kae(t,e,r){let n=new LM(t,e,r);process.stdout.write(n.toString()+Yae.EOL)}o(Kae,"issueCommand");var Jae="::",LM=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=Jae+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let i=this.properties[n];i&&(r?r=!1:e+=",",e+=`${n}=${OJe(i)}`)}}return e+=`${Jae}${PJe(this.message)}`,e}};function PJe(t){return Ib(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(PJe,"escapeData");function OJe(t){return Ib(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(OJe,"escapeProperty");var Zae=require("os"),Sb=require("fs");var FM=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:LJe,appendFile:FJe,writeFile:MJe}=Sb.promises,Xae="GITHUB_STEP_SUMMARY";var MM=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return FM(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Xae];if(!e)throw new Error(`Unable to find environment variable for $${Xae}. Check if your runtime environment supports job summaries.`);try{yield LJe(e,Sb.constants.R_OK|Sb.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let i=Object.entries(n).map(([s,a])=>` ${s}="${a}"`).join("");return r?`<${e}${i}>${r}`:`<${e}${i}>`}write(e){return FM(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?MJe:FJe)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return FM(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(Zae.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),i=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(i).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",i=e.map(a=>this.wrap("li",a)).join(""),s=this.wrap(n,i);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(i=>{let s=i.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,f=c?"th":"td",h=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(f,l,h)}).join("");return this.wrap("tr",s)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:i,height:s}=n||{},a=Object.assign(Object.assign({},i&&{width:i}),s&&{height:s}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,i=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",s=this.wrap(i,e);return this.addRaw(s).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),i=this.wrap("blockquote",e,n);return this.addRaw(i).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},A$t=new MM;var UM=T(require("os"),1);var C$t=UM.default.platform(),b$t=UM.default.arch();var ece;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(ece||(ece={}));function So(t){Kae("debug",{},t)}o(So,"debug");var Pm=T(require("fs"),1);function GM(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,So(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,So(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,So(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,So(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,So(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}o(GM,"getOptions");var Rv=T(require("path"),1);var Dm=T(require("path"),1),bd=T(require("assert"),1);var wd=process.platform==="win32";function iu(t){if(t=nu(t),wd&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Dm.dirname(t);return wd&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=nu(e)),e}o(iu,"dirname");function xv(t,e){if((0,bd.default)(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),(0,bd.default)(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),Bb(e))return e;if(wd){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return(0,bd.default)(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(xa(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return(0,bd.default)(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return(0,bd.default)(Bb(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||wd&&t.endsWith("\\")||(t+=Dm.sep),t+e}o(xv,"ensureAbsoluteRoot");function Bb(t){return(0,bd.default)(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=xa(t),wd?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}o(Bb,"hasAbsoluteRoot");function xb(t){return(0,bd.default)(t,"isRooted parameter 'itemPath' must not be empty"),t=xa(t),wd?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}o(xb,"hasRoot");function xa(t){return t=t||"",wd?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}o(xa,"normalizeSeparators");function nu(t){return t?(t=xa(t),!t.endsWith(Dm.sep)||t===Dm.sep||wd&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}o(nu,"safeTrimTrailingSeparator");var va;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(va||(va={}));var tce=process.platform==="win32";function zM(t){t=t.filter(n=>!n.negate);let e={};for(let n of t){let i=tce?n.searchPath.toUpperCase():n.searchPath;e[i]="candidate"}let r=[];for(let n of t){let i=tce?n.searchPath.toUpperCase():n.searchPath;if(e[i]==="included")continue;let s=!1,a=i,c=iu(a);for(;c!==a;){if(e[c]){s=!0;break}a=c,c=iu(a)}s||(r.push(n.searchPath),e[i]="included")}return r}o(zM,"getSearchPaths");function rce(t,e){let r=va.None;for(let n of t)n.negate?r&=~n.match(e):r|=n.match(e);return r}o(rce,"match");function nce(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}o(nce,"partialMatch");var wce=T(require("os"),1),km=T(require("path"),1);var Bd=T(require("assert"),1);var VM=o((t,e,r)=>{let n=t instanceof RegExp?ice(t,r):t,i=e instanceof RegExp?ice(e,r):e,s=n!==null&&i!=null&&HJe(n,i,r);return s&&{start:s[0],end:s[1],pre:r.slice(0,s[0]),body:r.slice(s[0]+n.length,s[1]),post:r.slice(s[1]+i.length)}},"balanced"),ice=o((t,e)=>{let r=e.match(t);return r?r[0]:null},"maybeMatch"),HJe=o((t,e,r)=>{let n,i,s,a,c,l=r.indexOf(t),u=r.indexOf(e,l+1),d=l;if(l>=0&&u>0){if(t===e)return[l,u];for(n=[],s=r.length;d>=0&&!c;){if(d===l)n.push(d),l=r.indexOf(t,d+1);else if(n.length===1){let f=n.pop();f!==void 0&&(c=[f,u])}else i=n.pop(),i!==void 0&&i=0?l:u}n.length&&a!==void 0&&(c=[s,a])}return c},"range");var sce="\0SLASH"+Math.random()+"\0",oce="\0OPEN"+Math.random()+"\0",JM="\0CLOSE"+Math.random()+"\0",ace="\0COMMA"+Math.random()+"\0",cce="\0PERIOD"+Math.random()+"\0",zJe=new RegExp(sce,"g"),VJe=new RegExp(oce,"g"),$Je=new RegExp(JM,"g"),jJe=new RegExp(ace,"g"),WJe=new RegExp(cce,"g"),JJe=/\\\\/g,YJe=/\\{/g,KJe=/\\}/g,XJe=/\\,/g,ZJe=/\\\./g,e6e=1e5,t6e=4e6,r6e=1e3,n6e=1e3;function $M(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}o($M,"numeric");function i6e(t){return t.replace(JJe,sce).replace(YJe,oce).replace(KJe,JM).replace(XJe,ace).replace(ZJe,cce)}o(i6e,"escapeBraces");function s6e(t){return t.replace(zJe,"\\").replace(VJe,"{").replace($Je,"}").replace(jJe,",").replace(WJe,".")}o(s6e,"unescapeBraces");function jM(t,e){for(let r=0;r=e}o(u6e,"gte");function vb(t,e,r,n,i,s){let a=[],c=0;for(let l=0;l=n)return a;let d=t[l]+e+r[u];if(!(s&&!d)){if(c+d.length>i)return a;a.push(d),c+=d.length}}return a}o(vb,"combine");function d6e(t,e,r,n){let i=t.split(/\.\./),s=[];if(i[0]===void 0||i[1]===void 0)return s;let a=$M(i[0]),c=$M(i[1]),l=Math.max(i[0].length,i[1].length),u=i.length===3&&i[2]!==void 0?Math.max(Math.abs($M(i[2])),1):1,d=l6e;c0){let y=new Array(E+1).join("0");m<0?A="-"+y+A.slice(1):A=y+A}}if(p+A.length>n)break;s.push(A),p+=A.length}return s}o(d6e,"expandSequence");function WM(t,e,r,n,i,s,a){if(i>n)return[t];let c=[""],l=0,u=!1,d=!0;for(;;){let f=VM("{","}",t);if(!f)return vb(c,t,[""],e,r,u);let h=f.pre;if(/\$$/.test(h)){if(c=vb(c,h+"{"+f.body+"}",[""],e,r,u&&!f.post.length),d=!1,!f.post.length)break;t=f.post;continue}let p=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(f.body),m=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(f.body),A=p||m,E=f.body.indexOf(",")>=0;if(!A&&!E){if(l=e||B+$.length>r)break e;y.push($),B+=$.length}}}}if(c=vb(c,h,y,e,r,u&&!f.post.length),!f.post.length)break;t=f.post}return c}o(WM,"expand_");var Nb=o(t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},"assertValidPattern");var f6e={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Rb=o(t=>t.replace(/[[\]\\-]/g,"\\$&"),"braceEscape"),h6e=o(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regexpEscape"),uce=o(t=>t.join(""),"rangesToString"),dce=o((t,e)=>{let r=e;if(t.charAt(r)!=="[")throw new Error("not in a brace expression");let n=[],i=[],s=r+1,a=!1,c=!1,l=!1,u=!1,d=r,f="";e:for(;sf?n.push(Rb(f)+"-"+Rb(A)):A===f&&n.push(Rb(A)),f="",s++;continue}if(t.startsWith("-]",s+1)){n.push(Rb(A+"-")),s+=2;continue}if(t.startsWith("-",s+1)){f=A,s+=2;continue}n.push(Rb(A)),s++}if(dr?e?t.replace(/\[([^/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):e?t.replace(/\[([^/\\{}])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1"),"unescape");var rs,p6e=new Set(["!","?","+","*","@"]),YM=o(t=>p6e.has(t),"isExtglobType"),fce=o(t=>YM(t.type),"isExtglobAST"),A6e=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),m6e=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),g6e=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),hce=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),y6e="(?!(?:^|/)\\.\\.?(?:$|/))",vv="(?!\\.)",E6e=new Set(["[","."]),C6e=new Set(["..","."]),b6e=new Set("().*{}+?[]^$\\!"),w6e=o(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),KM="[^/]",pce=KM+"*?",Ace=KM+"+?",I6e=0,Bh=class{static{o(this,"AST")}type;#e;#r;#n=!1;#t=[];#i;#s;#l;#a=!1;#c;#o;#f=!1;id=++I6e;get depth(){return(this.#i?.depth??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){return{"@@type":"AST",id:this.id,type:this.type,root:this.#e.id,parent:this.#i?.id,depth:this.depth,partsLength:this.#t.length,parts:this.#t}}constructor(e,r,n={}){this.type=e,e&&(this.#r=!0),this.#i=r,this.#e=this.#i?this.#i.#e:this,this.#c=this.#e===this?n:this.#e.#c,this.#l=this.#e===this?[]:this.#e.#l,e==="!"&&!this.#e.#a&&this.#l.push(this),this.#s=this.#i?this.#i.#t.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(let e of this.#t)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#o!==void 0?this.#o:this.type?this.#o=this.type+"("+this.#t.map(e=>String(e)).join("|")+")":this.#o=this.#t.map(e=>String(e)).join("")}#C(){if(this!==this.#e)throw new Error("should only call on root");if(this.#a)return this;this.toString(),this.#a=!0;let e;for(;e=this.#l.pop();){if(e.type!=="!")continue;let r=e,n=r.#i;for(;n;){for(let i=r.#s+1;!n.type&&itypeof r=="string"?r:r.toJSON()):[this.type,...this.#t.map(r=>r.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#a&&this.#i?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#i?.isStart())return!1;if(this.#s===0)return!0;let e=this.#i;for(let r=0;rtypeof p!="string"),u=this.#t.map(p=>{let[m,A,E,y]=typeof p=="string"?rs.#S(p,this.#r,l):p.toRegExpSource(e);return this.#r=this.#r||E,this.#n=this.#n||y,m}).join(""),d="";if(this.isStart()&&typeof this.#t[0]=="string"&&!(this.#t.length===1&&C6e.has(this.#t[0]))){let m=E6e,A=r&&m.has(u.charAt(0))||u.startsWith("\\.")&&m.has(u.charAt(2))||u.startsWith("\\.\\.")&&m.has(u.charAt(4)),E=!r&&!e&&m.has(u.charAt(0));d=A?y6e:E?vv:""}let f="";return this.isEnd()&&this.#e.#a&&this.#i?.type==="!"&&(f="(?:$|\\/)"),[d+u+f,Id(u),this.#r=!!this.#r,this.#n]}let n=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#w(r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let l=this.toString(),u=this;return u.#t=[l],u.type=null,u.#r=void 0,[l,Id(this.toString()),!1,!1]}let a=!n||e||r||!vv?"":this.#w(!0);a===s&&(a=""),a&&(s=`(?:${s})(?:${a})*?`);let c="";if(this.type==="!"&&this.#f)c=(this.isStart()&&!r?vv:"")+Ace;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!e?vv:"")+pce+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`;c=i+s+l}return[c,Id(s),this.#r=!!this.#r,this.#n]}#d(){if(fce(this)){let e=0,r=!1;do{r=!0;for(let n=0;n{if(typeof r=="string")throw new Error("string type in extglob ast??");let[n,i,s,a]=r.toRegExpSource(e);return this.#n=this.#n||a,n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#S(e,r,n=!1){let i=!1,s="",a=!1,c=!1;for(let l=0;lr?e?t.replace(/[?*()[\]{}]/g,"[$&]"):t.replace(/[?*()[\]\\{}]/g,"\\$&"):e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),"escape");var Ni=o((t,e,r={})=>(Nb(e),!r.nocomment&&e.charAt(0)==="#"?!1:new Sd(e,r).match(t)),"minimatch"),S6e=/^\*+([^+@!?*[(]*)$/,B6e=o(t=>e=>!e.startsWith(".")&&e.endsWith(t),"starDotExtTest"),x6e=o(t=>e=>e.endsWith(t),"starDotExtTestDot"),v6e=o(t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),"starDotExtTestNocase"),N6e=o(t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),"starDotExtTestNocaseDot"),R6e=/^\*+\.\*+$/,_6e=o(t=>!t.startsWith(".")&&t.includes("."),"starDotStarTest"),T6e=o(t=>t!=="."&&t!==".."&&t.includes("."),"starDotStarTestDot"),D6e=/^\.\*+$/,Q6e=o(t=>t!=="."&&t!==".."&&t.startsWith("."),"dotStarTest"),k6e=/^\*+$/,P6e=o(t=>t.length!==0&&!t.startsWith("."),"starTest"),O6e=o(t=>t.length!==0&&t!=="."&&t!=="..","starTestDot"),L6e=/^\?+([^+@!?*[(]*)?$/,F6e=o(([t,e=""])=>{let r=yce([t]);return e?(e=e.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(e)):r},"qmarksTestNocase"),M6e=o(([t,e=""])=>{let r=Ece([t]);return e?(e=e.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(e)):r},"qmarksTestNocaseDot"),U6e=o(([t,e=""])=>{let r=Ece([t]);return e?n=>r(n)&&n.endsWith(e):r},"qmarksTestDot"),q6e=o(([t,e=""])=>{let r=yce([t]);return e?n=>r(n)&&n.endsWith(e):r},"qmarksTest"),yce=o(([t])=>{let e=t.length;return r=>r.length===e&&!r.startsWith(".")},"qmarksTestNoExt"),Ece=o(([t])=>{let e=t.length;return r=>r.length===e&&r!=="."&&r!==".."},"qmarksTestNoExtDot"),Cce=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",mce={win32:{sep:"\\"},posix:{sep:"/"}},G6e=Cce==="win32"?mce.win32.sep:mce.posix.sep;Ni.sep=G6e;var ai=Symbol("globstar **");Ni.GLOBSTAR=ai;var H6e="[^/]",z6e=H6e+"*?",V6e="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",$6e="(?:(?!(?:\\/|^)\\.).)*?",j6e=o((t,e={})=>r=>Ni(r,t,e),"filter");Ni.filter=j6e;var Bo=o((t,e={})=>Object.assign({},t,e),"ext"),W6e=o(t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return Ni;let e=Ni;return Object.assign(o((n,i,s={})=>e(n,i,Bo(t,s)),"m"),{Minimatch:class extends e.Minimatch{static{o(this,"Minimatch")}constructor(i,s={}){super(i,Bo(t,s))}static defaults(i){return e.defaults(Bo(t,i)).Minimatch}},AST:class extends e.AST{static{o(this,"AST")}constructor(i,s,a={}){super(i,s,Bo(t,a))}static fromGlob(i,s={}){return e.AST.fromGlob(i,Bo(t,s))}},unescape:o((n,i={})=>e.unescape(n,Bo(t,i)),"unescape"),escape:o((n,i={})=>e.escape(n,Bo(t,i)),"escape"),filter:o((n,i={})=>e.filter(n,Bo(t,i)),"filter"),defaults:o(n=>e.defaults(Bo(t,n)),"defaults"),makeRe:o((n,i={})=>e.makeRe(n,Bo(t,i)),"makeRe"),braceExpand:o((n,i={})=>e.braceExpand(n,Bo(t,i)),"braceExpand"),match:o((n,i,s={})=>e.match(n,i,Bo(t,s)),"match"),sep:e.sep,GLOBSTAR:ai})},"defaults");Ni.defaults=W6e;var bce=o((t,e={})=>(Nb(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:lce(t,{max:e.braceExpandMax})),"braceExpand");Ni.braceExpand=bce;var J6e=o((t,e={})=>new Sd(t,e).makeRe(),"makeRe");Ni.makeRe=J6e;var Y6e=o((t,e,r={})=>{let n=new Sd(e,r);return t=t.filter(i=>n.match(i)),n.options.nonull&&!t.length&&t.push(e),t},"match");Ni.match=Y6e;var gce=/[?*]|[+@!]\(.*?\)|\[|\]/,K6e=o(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),Sd=class{static{o(this,"Minimatch")}options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,r={}){Nb(e),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=e,this.platform=r.platform||Cce,this.isWindows=this.platform==="win32";let n="allowWindowsEscape";this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r[n]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let r of e)if(typeof r!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let i=this.globParts.map((s,a,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=s[0]===""&&s[1]===""&&(s[2]==="?"||!gce.test(s[2]))&&!gce.test(s[3]),u=/^[a-z]:/i.test(s[0]);if(l)return[...s.slice(0,4),...s.slice(4).map(d=>this.parse(d))];if(u)return[s[0],...s.slice(1).map(d=>this.parse(d))]}return s.map(l=>this.parse(l))});if(this.debug(this.pattern,i),this.set=i.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):r>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let i=n;for(;r[i+1]==="**";)i++;i!==n&&r.splice(n,i-n)}return r})}levelOneOptimize(e){return e.map(r=>(r=r.reduce((n,i)=>{let s=n[n.length-1];return i==="**"&&s==="**"?n:i===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(n.pop(),n):(n.push(i),n)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let i=1;ii&&n.splice(i+1,a-i);let c=n[i+1],l=n[i+2],u=n[i+3];if(c!==".."||!l||l==="."||l===".."||!u||u==="."||u==="..")continue;r=!0,n.splice(i,1);let d=n.slice(0);d[i]="**",e.push(d),i--}if(!this.preserveMultipleSlashes){for(let a=1;ar.length)}partsMatch(e,r,n=!1){let i=0,s=0,a=[],c="";for(;i=2&&(e=this.levelTwoFileOptimize(e)),r.includes(ai)?this.#e(e,r,n,i,s):this.#n(e,r,n,i,s)}#e(e,r,n,i,s){let a=r.indexOf(ai,s),c=r.lastIndexOf(ai),[l,u,d]=n?[r.slice(s,a),r.slice(a+1),[]]:[r.slice(s,a),r.slice(a+1,c),r.slice(c+1)];if(l.length){let C=e.slice(i,i+l.length);if(!this.#n(C,l,n,0,0))return!1;i+=l.length,s+=l.length}let f=0;if(d.length){if(d.length+i>e.length)return!1;let C=e.length-d.length;if(this.#n(e,d,n,C,0))f=d.length;else{if(e[e.length-1]!==""||i+d.length===e.length||(C--,!this.#n(e,d,n,C,0)))return!1;f=d.length+1}}if(!u.length){let C=!!f;for(let w=i;w{let u=l.map(f=>{if(f instanceof RegExp)for(let h of f.flags.split(""))i.add(h);return typeof f=="string"?K6e(f):f===ai?ai:f._src});u.forEach((f,h)=>{let p=u[h+1],m=u[h-1];f!==ai||m===ai||(m===void 0?p!==void 0&&p!==ai?u[h+1]="(?:\\/|"+n+"\\/)?"+p:u[h]=n:p===void 0?u[h-1]=m+"(?:\\/|\\/"+n+")?":p!==ai&&(u[h-1]=m+"(?:\\/|\\/"+n+"\\/)"+p,u[h+1]=ai))});let d=u.filter(f=>f!==ai);if(this.partial&&d.length>=1){let f=[];for(let h=1;h<=d.length;h++)f.push(d.slice(0,h).join("/"));return"(?:"+f.join("|")+")"}return d.join("/")}).join("|"),[a,c]=e.length>1?["(?:",")"]:["",""];s="^"+a+s+c+"$",this.partial&&(s="^(?:\\/|"+a+s.slice(1,-1)+c+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;this.isWindows&&(e=e.split("\\").join("/"));let i=this.slashSplit(e);this.debug(this.pattern,"split",i);let s=this.set;this.debug(this.pattern,"set",s);let a=i[i.length-1];if(!a)for(let c=i.length-2;!a&&c>=0;c--)a=i[c];for(let c of s){let l=i;if(n.matchBase&&c.length===1&&(l=[a]),this.matchOne(l,c,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return Ni.defaults(e).Minimatch}};Ni.AST=Bh;Ni.Minimatch=Sd;Ni.escape=XM;Ni.unescape=Id;var xh=T(require("path"),1);var Qm=T(require("assert"),1);var X6e=process.platform==="win32",vh=class{static{o(this,"Path")}constructor(e){if(this.segments=[],typeof e=="string")if((0,Qm.default)(e,"Parameter 'itemPath' must not be empty"),e=nu(e),!xb(e))this.segments=e.split(xh.sep);else{let r=e,n=iu(r);for(;n!==r;){let i=xh.basename(r);this.segments.unshift(i),r=n,n=iu(r)}this.segments.unshift(r)}else{(0,Qm.default)(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;rt.getLiteral(u)).filter(u=>!a&&!(a=u===""));this.searchPath=new vh(c).toString(),this.rootRegExp=new RegExp(t.regExpEscape(c[0]),su?"i":""),this.isImplicitPattern=r;let l={dot:!0,nobrace:!0,nocase:su,nocomment:!0,noext:!0,nonegate:!0};s=su?s.replace(/\\/g,"/"):s,this.minimatch=new Sd(s,l)}match(e){return this.segments[this.segments.length-1]==="**"?(e=xa(e),!e.endsWith(km.sep)&&this.isImplicitPattern===!1&&(e=`${e}${km.sep}`)):e=nu(e),this.minimatch.match(e)?this.trailingSeparator?va.Directory:va.All:va.None}partialMatch(e){return e=nu(e),iu(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(su?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(su?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,r){(0,Bd.default)(e,"pattern cannot be empty");let n=new vh(e).segments.map(i=>t.getLiteral(i));if((0,Bd.default)(n.every((i,s)=>(i!=="."||s===0)&&i!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),(0,Bd.default)(!xb(e)||n[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),e=xa(e),e==="."||e.startsWith(`.${km.sep}`))e=t.globEscape(process.cwd())+e.substr(1);else if(e==="~"||e.startsWith(`~${km.sep}`))r=r||wce.homedir(),(0,Bd.default)(r,"Unable to determine HOME directory"),(0,Bd.default)(Bb(r),`Expected HOME directory to be a rooted path. Actual '${r}'`),e=t.globEscape(r)+e.substr(1);else if(su&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let i=xv("C:\\dummy-root",e.substr(0,2));e.length>2&&!i.endsWith("\\")&&(i+="\\"),e=t.globEscape(i)+e.substr(2)}else if(su&&(e==="\\"||e.match(/^\\[^\\]/))){let i=xv("C:\\dummy-root","\\");i.endsWith("\\")||(i+="\\"),e=t.globEscape(i)+e.substr(1)}else e=xv(t.globEscape(process.cwd()),e);return xa(e)}static getLiteral(e){let r="";for(let n=0;n=0){if(s.length>1)return"";if(s){r+=s,n=a;continue}}}}r+=i}return r}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}};var Tb=class{static{o(this,"SearchState")}constructor(e,r){this.path=e,this.level=r}};var ZM=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},Z6e=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=t[s]&&function(a){return new Promise(function(c,l){a=t[s](a),i(c,l,a.done,a.value)})}}function i(s,a,c,l){Promise.resolve(l).then(function(u){s({value:u,done:c})},a)}},xd=function(t){return this instanceof xd?(this.v=t,this):new xd(t)},eYe=function(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),i,s=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",a),i[Symbol.asyncIterator]=function(){return this},i;function a(p){return function(m){return Promise.resolve(m).then(p,f)}}function c(p,m){n[p]&&(i[p]=function(A){return new Promise(function(E,y){s.push([p,A,E,y])>1||l(p,A)})},m&&(i[p]=m(i[p])))}function l(p,m){try{u(n[p](m))}catch(A){h(s[0][3],A)}}function u(p){p.value instanceof xd?Promise.resolve(p.value.v).then(d,f):h(s[0][2],p)}function d(p){l("next",p)}function f(p){l("throw",p)}function h(p,m){p(m),s.shift(),s.length&&l(s[0][0],s[0][1])}},tYe=process.platform==="win32",Nv=class t{static{o(this,"DefaultGlobber")}constructor(e){this.patterns=[],this.searchPaths=[],this.options=GM(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){return ZM(this,void 0,void 0,function*(){var e,r,n,i;let s=[];try{for(var a=!0,c=Z6e(this.globGenerator()),l;l=yield c.next(),e=l.done,!e;a=!0){i=l.value,a=!1;let u=i;s.push(u)}}catch(u){r={error:u}}finally{try{!a&&!e&&(n=c.return)&&(yield n.call(c))}finally{if(r)throw r.error}}return s})}globGenerator(){return eYe(this,arguments,o(function*(){let r=GM(this.options),n=[];for(let a of this.patterns)n.push(a),r.implicitDescendants&&(a.trailingSeparator||a.segments[a.segments.length-1]!=="**")&&n.push(new _b(a.negate,!0,a.segments.concat("**")));let i=[];for(let a of zM(n)){So(`Search path '${a}'`);try{yield xd(Pm.promises.lstat(a))}catch(c){if(c.code==="ENOENT")continue;throw c}i.unshift(new Tb(a,1))}let s=[];for(;i.length;){let a=i.pop(),c=rce(n,a.path),l=!!c||nce(n,a.path);if(!c&&!l)continue;let u=yield xd(t.stat(a,r,s));if(u&&!(r.excludeHiddenFiles&&Rv.basename(a.path).match(/^\./)))if(u.isDirectory()){if(c&va.Directory&&r.matchDirectories)yield yield xd(a.path);else if(!l)continue;let d=a.level+1,f=(yield xd(Pm.promises.readdir(a.path))).map(h=>new Tb(Rv.join(a.path,h),d));i.push(...f.reverse())}else c&va.File&&(yield yield xd(a.path))}},"globGenerator_1"))}static create(e,r){return ZM(this,void 0,void 0,function*(){let n=new t(r);tYe&&(e=e.replace(/\r\n/g,` +`,_qt=/\u2014 (\S+) (\S+)\n/g;function Rqt(t,e){let r=t.inclusionProof,n=zY.fromString(r.checkpoint.envelope),i=Fk.fromString(n.note);if(!Tqt(n,e))throw new UE.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return i}o(Rqt,"verifyCheckpoint");function Tqt(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(n=>{let i=e.find(s=>lOe.crypto.bufferEqual(s.logID.subarray(0,4),n.keyHint)&&s.baseURL.includes(n.name));return i?lOe.crypto.verify(r,i.publicKey,n.signature):!1})}o(Tqt,"verifySignedNote");var zY=class t{static{o(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(HY))throw new UE.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(HY),n=e.slice(0,r+1),s=e.slice(r+HY.length).matchAll(_qt),a=Array.from(s,c=>{let[,l,u]=c,d=Buffer.from(u,"base64");if(d.length<5)throw new UE.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:l,keyHint:d.subarray(0,4),signature:d.subarray(4)}});if(a.length===0)throw new UE.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(n,a)}},Fk=class t{static{o(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,n,i){this.origin=e,this.logSize=r,this.logHash=n,this.rest=i}static fromString(e){let r=e.trimEnd().split(` +`);if(r.length<3)throw new UE.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let n=r[0],i;try{i=BigInt(r[1])}catch{throw new UE.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint log size"})}let s=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(n,i,s,a)}};_S.LogCheckpoint=Fk});var dOe=g(jY=>{"use strict";Object.defineProperty(jY,"__esModule",{value:!0});jY.verifyMerkleInclusion=kqt;var $Y=Xa(),Mk=Ci(),Dqt=Buffer.from([0]),Qqt=Buffer.from([1]);function kqt(t,e){let r=t.inclusionProof,n;try{n=BigInt(r.logIndex)}catch{throw new Mk.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid inclusion proof log index"})}let i=BigInt(e.logSize);if(n<0n||n>=i)throw new Mk.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${n}`});let{inner:s,border:a}=Pqt(n,i);if(r.hashes.length!==s+a)throw new Mk.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,s),l=r.hashes.slice(s),u=qqt(t.canonicalizedBody),d=Lqt(Oqt(u,c,n),l);if(!$Y.crypto.bufferEqual(d,e.logHash))throw new Mk.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}o(kqt,"verifyMerkleInclusion");function Pqt(t,e){let r=Fqt(t,e),n=Mqt(t>>BigInt(r));return{inner:r,border:n}}o(Pqt,"decompInclProof");function Oqt(t,e,r){return e.reduce((n,i,s)=>r>>BigInt(s)&BigInt(1)?VY(i,n):VY(n,i),t)}o(Oqt,"chainInner");function Lqt(t,e){return e.reduce((r,n)=>VY(n,r),t)}o(Lqt,"chainBorderRight");function Fqt(t,e){return Uqt(t^e-BigInt(1))}o(Fqt,"innerProofSize");function Mqt(t){return t.toString(2).split("1").length-1}o(Mqt,"onesCount");function Uqt(t){return t===0n?0:t.toString(2).length}o(Uqt,"bitLength");function VY(t,e){return $Y.crypto.digest("sha256",Qqt,t,e)}o(VY,"hashChildren");function qqt(t){return $Y.crypto.digest("sha256",Dqt,t)}o(qqt,"hashLeaf")});var hOe=g(WY=>{"use strict";Object.defineProperty(WY,"__esModule",{value:!0});WY.verifyTLogSET=zqt;var fOe=Xa(),Gqt=Ci(),Hqt=OE();function zqt(t,e){if(!(0,Hqt.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(i=>{let s=Vqt(t),a=Buffer.from(fOe.json.canonicalize(s),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return fOe.crypto.verify(a,i.publicKey,c)}))throw new Gqt.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}o(zqt,"verifyTLogSET");function Vqt(t){let{integratedTime:e,logIndex:r,logId:n,canonicalizedBody:i}=t;return{body:i.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:n.keyId.toString("hex")}}o(Vqt,"toVerificationPayload")});var AOe=g(qk=>{"use strict";Object.defineProperty(qk,"__esModule",{value:!0});qk.verifyTLogBody=Yqt;qk.verifyTLogInclusion=Kqt;var pOe=sOe(),Uk=Ci(),JY=oOe(),YY=aOe(),$qt=cOe(),jqt=uOe(),Wqt=dOe(),Jqt=hOe();function Yqt(t,e){let{kind:r,version:n}=t.kindVersion,i;try{i=JSON.parse(t.canonicalizedBody.toString("utf8"))}catch{throw new Uk.VerificationError({code:"TLOG_BODY_ERROR",message:"invalid canonicalized body"})}if(r!==i.kind||n!==i.apiVersion)throw new Uk.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${n}, received: ${i.kind}/${i.apiVersion}`});switch(r){case"dsse":if(n==JY.DSSE_API_VERSION_V1)return(0,JY.verifyDSSETLogBody)(i,e);{let s=pOe.Entry.fromJSON(i);return(0,JY.verifyDSSETLogBodyV2)(s,e)}case"intoto":return(0,$qt.verifyIntotoTLogBody)(i,e);case"hashedrekord":if(n==YY.HASHEDREKORD_API_VERSION_V1)return(0,YY.verifyHashedRekordTLogBody)(i,e);{let s=pOe.Entry.fromJSON(i);return(0,YY.verifyHashedRekordTLogBodyV2)(s,e)}default:throw new Uk.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}o(Yqt,"verifyTLogBody");function Kqt(t,e){let r=!1;if(Xqt(t)&&((0,Jqt.verifyTLogSET)(t,e),r=!0),Zqt(t)){let n=(0,jqt.verifyCheckpoint)(t,e);(0,Wqt.verifyMerkleInclusion)(t,n),r=!0}if(!r)throw new Uk.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}o(Kqt,"verifyTLogInclusion");function Xqt(t){return t.inclusionPromise!==void 0}o(Xqt,"isTLogEntryWithInclusionPromise");function Zqt(t){return t.inclusionProof!==void 0}o(Zqt,"isTLogEntryWithInclusionProof")});var EOe=g(Gk=>{"use strict";Object.defineProperty(Gk,"__esModule",{value:!0});Gk.Verifier=void 0;var e3t=require("util"),wA=Ci(),mOe=jPe(),KY=WPe(),gOe=KPe(),yOe=AOe(),ZY=class{static{o(this,"Verifier")}trustMaterial;options;constructor(e,r={}){this.trustMaterial=e,this.options={ctlogThreshold:r.ctlogThreshold??1,tlogThreshold:r.tlogThreshold??1,timestampThreshold:r.timestampThreshold??r.tsaThreshold??1,tsaThreshold:0}}verify(e,r){let n=this.verifyTimestamps(e),i=this.verifySigningKey(e,n);return this.verifyTLogs(e),this.verifySignature(e,i),r&&this.verifyPolicy(r,i.identity||{}),i}verifyTimestamps(e){let r=[];for(let n of e.timestamps)switch(n.$case){case"timestamp-authority":r.push((0,gOe.getTSATimestamp)(n.timestamp,e.signature.signature,this.trustMaterial.timestampAuthorities));break;case"transparency-log":{let i=(0,gOe.getTLogTimestamp)(n.tlogEntry);i&&r.push(i);break}}if(XY(r))throw new wA.VerificationError({code:"TIMESTAMP_ERROR",message:"duplicate timestamp"});if(r.lengthn.timestamp)}verifySigningKey({key:e},r){switch(e.$case){case"public-key":return(0,mOe.verifyPublicKey)(e.hint,r,this.trustMaterial);case"certificate":{let n=(0,mOe.verifyCertificate)(e.certificate,r,this.trustMaterial);if(XY(n.scts))throw new wA.VerificationError({code:"CERTIFICATE_ERROR",message:"duplicate SCT"});if(n.scts.length{(0,yOe.verifyTLogInclusion)(i,this.trustMaterial.tlogs),(0,yOe.verifyTLogBody)(i,e),n.push({logID:i.logId.keyId,logIndex:i.logIndex})}),XY(n))throw new wA.VerificationError({code:"TLOG_ERROR",message:"duplicate tlog entry"});if(n.length{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});fa.Verifier=fa.toTrustMaterial=fa.VerificationError=fa.PolicyError=fa.toSignedEntity=void 0;var t3t=qPe();Object.defineProperty(fa,"toSignedEntity",{enumerable:!0,get:o(function(){return t3t.toSignedEntity},"get")});var COe=Ci();Object.defineProperty(fa,"PolicyError",{enumerable:!0,get:o(function(){return COe.PolicyError},"get")});Object.defineProperty(fa,"VerificationError",{enumerable:!0,get:o(function(){return COe.VerificationError},"get")});var r3t=OE();Object.defineProperty(fa,"toTrustMaterial",{enumerable:!0,get:o(function(){return r3t.toTrustMaterial},"get")});var n3t=EOe();Object.defineProperty(fa,"Verifier",{enumerable:!0,get:o(function(){return n3t.Verifier},"get")})});var JOe=T(require("fs"),1),YOe=T(require("path"),1);var GK=T(require("os"),1);function Ul(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(Ul,"toCommandValue");function AP(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}o(AP,"toCommandProperties");function ql(t,e,r){let n=new mP(t,e,r);process.stdout.write(n.toString()+GK.EOL)}o(ql,"issueCommand");function gP(t,e=""){ql(t,{},e)}o(gP,"issue");var qK="::",mP=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=qK+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let i=this.properties[n];i&&(r?r=!1:e+=",",e+=`${n}=${LLe(i)}`)}}return e+=`${qK}${OLe(this.message)}`,e}};function OLe(t){return Ul(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(OLe,"escapeData");function LLe(t){return Ul(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(LLe,"escapeProperty");var HK=T(require("crypto"),1),cB=T(require("fs"),1),aB=T(require("os"),1);function lB(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!cB.existsSync(r))throw new Error(`Missing file at path: ${r}`);cB.appendFileSync(r,`${Ul(e)}${aB.EOL}`,{encoding:"utf8"})}o(lB,"issueFileCommand");function yP(t,e){let r=`ghadelimiter_${HK.randomUUID()}`,n=Ul(e);if(t.includes(r))throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(n.includes(r))throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${t}<<${r}${aB.EOL}${n}${aB.EOL}${r}`}o(yP,"prepareKeyValueMessage");var cM=T(require("os"),1),Use=T(require("path"),1);var lb=T(require("http"),1),WF=T(require("https"),1);function EP(t){let e=t.protocol==="https:";if(FLe(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new uB(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new uB(`http://${r}`)}else return}o(EP,"getProxyUrl");function FLe(t){if(!t.hostname)return!1;let e=t.hostname;if(MLe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let i=[t.hostname.toUpperCase()];typeof n=="number"&&i.push(`${i[0]}:${n}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||i.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}o(FLe,"checkBypass");function MLe(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(MLe,"isLoopbackAddress");var uB=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var Cd=T(TA(),1),Ese=T(Eh(),1);var Mr=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},yo;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(yo||(yo={}));var Bi;(function(t){t.Accept="accept",t.ContentType="content-type"})(Bi||(Bi={}));var ru;(function(t){t.ApplicationJson="application/json"})(ru||(ru={}));var cje=[yo.MovedPermanently,yo.ResourceMoved,yo.SeeOther,yo.TemporaryRedirect,yo.PermanentRedirect],lje=[yo.BadGateway,yo.ServiceUnavailable,yo.GatewayTimeout],uje=["OPTIONS","GET","DELETE","HEAD"],dje=10,fje=5,$F=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}},jF=class{static{o(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return Mr(this,void 0,void 0,function*(){return new Promise(e=>Mr(this,void 0,void 0,function*(){let r=Buffer.alloc(0);this.message.on("data",n=>{r=Buffer.concat([r,n])}),this.message.on("end",()=>{e(r.toString())})}))})}readBodyBuffer(){return Mr(this,void 0,void 0,function*(){return new Promise(e=>Mr(this,void 0,void 0,function*(){let r=[];this.message.on("data",n=>{r.push(n)}),this.message.on("end",()=>{e(Buffer.concat(r))})}))})}};var Ch=class{static{o(this,"HttpClient")}constructor(e,r,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=r||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,r){return Mr(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,r||{})})}get(e,r){return Mr(this,void 0,void 0,function*(){return this.request("GET",e,null,r||{})})}del(e,r){return Mr(this,void 0,void 0,function*(){return this.request("DELETE",e,null,r||{})})}post(e,r,n){return Mr(this,void 0,void 0,function*(){return this.request("POST",e,r,n||{})})}patch(e,r,n){return Mr(this,void 0,void 0,function*(){return this.request("PATCH",e,r,n||{})})}put(e,r,n){return Mr(this,void 0,void 0,function*(){return this.request("PUT",e,r,n||{})})}head(e,r){return Mr(this,void 0,void 0,function*(){return this.request("HEAD",e,null,r||{})})}sendStream(e,r,n,i){return Mr(this,void 0,void 0,function*(){return this.request(e,r,n,i)})}getJson(e){return Mr(this,arguments,void 0,function*(r,n={}){n[Bi.Accept]=this._getExistingOrDefaultHeader(n,Bi.Accept,ru.ApplicationJson);let i=yield this.get(r,n);return this._processResponse(i,this.requestOptions)})}postJson(e,r){return Mr(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[Bi.Accept]=this._getExistingOrDefaultHeader(s,Bi.Accept,ru.ApplicationJson),s[Bi.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,ru.ApplicationJson);let c=yield this.post(n,a,s);return this._processResponse(c,this.requestOptions)})}putJson(e,r){return Mr(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[Bi.Accept]=this._getExistingOrDefaultHeader(s,Bi.Accept,ru.ApplicationJson),s[Bi.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,ru.ApplicationJson);let c=yield this.put(n,a,s);return this._processResponse(c,this.requestOptions)})}patchJson(e,r){return Mr(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[Bi.Accept]=this._getExistingOrDefaultHeader(s,Bi.Accept,ru.ApplicationJson),s[Bi.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,ru.ApplicationJson);let c=yield this.patch(n,a,s);return this._processResponse(c,this.requestOptions)})}request(e,r,n,i){return Mr(this,void 0,void 0,function*(){if(this._disposed)throw new Error("Client has already been disposed.");let s=new URL(r),a=this._prepareRequest(e,s,i),c=this._allowRetries&&uje.includes(e)?this._maxRetries+1:1,l=0,u;do{if(u=yield this.requestRaw(a,n),u&&u.message&&u.message.statusCode===yo.Unauthorized){let f;for(let h of this.handlers)if(h.canHandleAuthentication(u)){f=h;break}return f?f.handleAuthentication(this,a,n):u}let d=this._maxRedirects;for(;u.message.statusCode&&cje.includes(u.message.statusCode)&&this._allowRedirects&&d>0;){let f=u.message.headers.location;if(!f)break;let h=new URL(f);if(s.protocol==="https:"&&s.protocol!==h.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield u.readBody(),h.hostname!==s.hostname)for(let p in i)p.toLowerCase()==="authorization"&&delete i[p];a=this._prepareRequest(e,h,i),u=yield this.requestRaw(a,n),d--}if(!u.message.statusCode||!lje.includes(u.message.statusCode))return u;l+=1,l{function s(a,c){a?i(a):c?n(c):i(new Error("Unknown error"))}o(s,"callbackForResult"),this.requestRawWithCallback(e,r,s)})})}requestRawWithCallback(e,r,n){typeof r=="string"&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8"));let i=!1;function s(l,u){i||(i=!0,n(l,u))}o(s,"handleResult");let a=e.httpModule.request(e.options,l=>{let u=new jF(l);s(void 0,u)}),c;a.on("socket",l=>{c=l}),a.setTimeout(this._socketTimeout||3*6e4,()=>{c&&c.end(),s(new Error(`Request timeout: ${e.options.path}`))}),a.on("error",function(l){s(l)}),r&&typeof r=="string"&&a.write(r,"utf8"),r&&typeof r!="string"?(r.on("close",function(){a.end()}),r.pipe(a)):a.end()}getAgent(e){let r=new URL(e);return this._getAgent(r)}getAgentDispatcher(e){let r=new URL(e),n=EP(r);if(n&&n.hostname)return this._getProxyAgentDispatcher(r,n)}_prepareRequest(e,r,n){let i={};i.parsedUrl=r;let s=i.parsedUrl.protocol==="https:";i.httpModule=s?WF:lb;let a=s?443:80;if(i.options={},i.options.host=i.parsedUrl.hostname,i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):a,i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||""),i.options.method=e,i.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(i.options.headers["user-agent"]=this.userAgent),i.options.agent=this._getAgent(i.parsedUrl),this.handlers)for(let c of this.handlers)c.prepareRequest(i.options);return i}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},cb(this.requestOptions.headers),cb(e||{})):cb(e||{})}_getExistingOrDefaultHeader(e,r,n){let i;if(this.requestOptions&&this.requestOptions.headers){let a=cb(this.requestOptions.headers)[r];a&&(i=typeof a=="number"?a.toString():a)}let s=e[r];return s!==void 0?typeof s=="number"?s.toString():s:i!==void 0?i:n}_getExistingOrDefaultContentTypeHeader(e,r){let n;if(this.requestOptions&&this.requestOptions.headers){let s=cb(this.requestOptions.headers)[Bi.ContentType];s&&(typeof s=="number"?n=String(s):Array.isArray(s)?n=s.join(", "):n=s)}let i=e[Bi.ContentType];return i!==void 0?typeof i=="number"?String(i):Array.isArray(i)?i.join(", "):i:n!==void 0?n:r}_getAgent(e){let r,n=EP(e),i=n&&n.hostname;if(this._keepAlive&&i&&(r=this._proxyAgent),i||(r=this._agent),r)return r;let s=e.protocol==="https:",a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||lb.globalAgent.maxSockets),n&&n.hostname){let c={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},l,u=n.protocol==="https:";s?l=u?Cd.httpsOverHttps:Cd.httpsOverHttp:l=u?Cd.httpOverHttps:Cd.httpOverHttp,r=l(c),this._proxyAgent=r}if(!r){let c={keepAlive:this._keepAlive,maxSockets:a};r=s?new WF.Agent(c):new lb.Agent(c),this._agent=r}return s&&this._ignoreSslError&&(r.options=Object.assign(r.options||{},{rejectUnauthorized:!1})),r}_getProxyAgentDispatcher(e,r){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;let i=e.protocol==="https:";return n=new Ese.ProxyAgent(Object.assign({uri:r.href,pipelining:this._keepAlive?1:0},(r.username||r.password)&&{token:`Basic ${Buffer.from(`${r.username}:${r.password}`).toString("base64")}`})),this._proxyAgentDispatcher=n,i&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_getUserAgentWithOrchestrationId(e){let r=e||"actions/http-client",n=process.env.ACTIONS_ORCHESTRATION_ID;if(n){let i=n.replace(/[^a-z0-9_.-]/gi,"_");return`${r} actions_orchestration_id/${i}`}return r}_performExponentialBackoff(e){return Mr(this,void 0,void 0,function*(){e=Math.min(dje,e);let r=fje*Math.pow(2,e);return new Promise(n=>setTimeout(()=>n(),r))})}_processResponse(e,r){return Mr(this,void 0,void 0,function*(){return new Promise((n,i)=>Mr(this,void 0,void 0,function*(){let s=e.message.statusCode||0,a={statusCode:s,result:null,headers:{}};s===yo.NotFound&&n(a);function c(d,f){if(typeof f=="string"){let h=new Date(f);if(!isNaN(h.valueOf()))return h}return f}o(c,"dateTimeDeserializer");let l,u;try{u=yield e.readBody(),u&&u.length>0&&(r&&r.deserializeDates?l=JSON.parse(u,c):l=JSON.parse(u),a.result=l),a.headers=e.message.headers}catch{}if(s>299){let d;l&&l.message?d=l.message:u&&u.length>0?d=u:d=`Failed request: (${s})`;let f=new $F(d,s);f.result=a.result,i(f)}else n(a)}))})}},cb=o(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys");var wse=require("os"),ub=require("fs");var JF=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:pje,appendFile:Aje,writeFile:mje}=ub.promises,bse="GITHUB_STEP_SUMMARY";var YF=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return JF(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[bse];if(!e)throw new Error(`Unable to find environment variable for $${bse}. Check if your runtime environment supports job summaries.`);try{yield pje(e,ub.constants.R_OK|ub.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let i=Object.entries(n).map(([s,a])=>` ${s}="${a}"`).join("");return r?`<${e}${i}>${r}`:`<${e}${i}>`}write(e){return JF(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?mje:Aje)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return JF(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(wse.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),i=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(i).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",i=e.map(a=>this.wrap("li",a)).join(""),s=this.wrap(n,i);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(i=>{let s=i.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,f=c?"th":"td",h=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(f,l,h)}).join("");return this.wrap("tr",s)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:i,height:s}=n||{},a=Object.assign(Object.assign({},i&&{width:i}),s&&{height:s}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,i=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",s=this.wrap(i,e);return this.addRaw(s).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),i=this.wrap("blockquote",e,n);return this.addRaw(i).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},gje=new YF;var KF=gje;var oM=T(require("os"),1);var sM=require("string_decoder");var fb=T(require("os"),1),iM=T(require("events"),1),Pse=T(require("child_process"),1),Ose=T(require("path"),1);var Rse=require("assert"),Ls=T(require("path"),1);var db=T(require("fs"),1),bd=T(require("path"),1);var XF=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},{chmod:ZF,copyFile:Sse,lstat:ov,mkdir:Bse,open:lzt,readdir:eM,rename:yje,rm:xse,rmdir:uzt,stat:bh,symlink:vse,unlink:tM}=db.promises,fc=process.platform==="win32";function Nse(t){return XF(this,void 0,void 0,function*(){let e=yield db.promises.readlink(t);return fc&&!e.endsWith("\\")?`${e}\\`:e})}o(Nse,"readlink");var dzt=db.constants.O_RDONLY;function Nm(t){return XF(this,void 0,void 0,function*(){try{yield bh(t)}catch(e){if(e.code==="ENOENT")return!1;throw e}return!0})}o(Nm,"exists");function av(t){if(t=Eje(t),!t)throw new Error('isRooted() parameter "p" cannot be empty');return fc?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}o(av,"isRooted");function rM(t,e){return XF(this,void 0,void 0,function*(){let r;try{r=yield bh(t)}catch(i){i.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${i}`)}if(r&&r.isFile()){if(fc){let i=bd.extname(t).toUpperCase();if(e.some(s=>s.toUpperCase()===i))return t}else if(Ise(r))return t}let n=t;for(let i of e){t=n+i,r=void 0;try{r=yield bh(t)}catch(s){s.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${s}`)}if(r&&r.isFile()){if(fc){try{let s=bd.dirname(t),a=bd.basename(t).toUpperCase();for(let c of yield eM(s))if(a===c.toUpperCase()){t=bd.join(s,c);break}}catch(s){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${s}`)}return t}else if(Ise(r))return t}}return""})}o(rM,"tryGetExecutablePath");function Eje(t){return t=t||"",fc?(t=t.replace(/\//g,"\\"),t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}o(Eje,"normalizeSeparators");function Ise(t){return(t.mode&1)>0||(t.mode&8)>0&&process.getgid!==void 0&&t.gid===process.getgid()||(t.mode&64)>0&&process.getuid!==void 0&&t.uid===process.getuid()}o(Ise,"isUnixExecutable");var wh=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function Tse(t,e){return wh(this,arguments,void 0,function*(r,n,i={}){let{force:s,recursive:a,copySourceDirectory:c}=bje(i),l=(yield Nm(n))?yield bh(n):null;if(l&&l.isFile()&&!s)return;let u=l&&l.isDirectory()&&c?Ls.join(n,Ls.basename(r)):n;if(!(yield Nm(r)))throw new Error(`no such file or directory: ${r}`);if((yield bh(r)).isDirectory())if(a)yield Dse(r,u,0,s);else throw new Error(`Failed to copy. ${r} is a directory, but tried to copy without recursive flag.`);else{if(Ls.relative(r,u)==="")throw new Error(`'${u}' and '${r}' are the same file`);yield Qse(r,u,s)}})}o(Tse,"cp");function _m(t){return wh(this,void 0,void 0,function*(){if(fc&&/[*"<>|]/.test(t))throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield xse(t,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}})}o(_m,"rmRF");function nu(t){return wh(this,void 0,void 0,function*(){(0,Rse.ok)(t,"a path argument must be provided"),yield Bse(t,{recursive:!0})})}o(nu,"mkdirP");function Gn(t,e){return wh(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");if(e){let n=yield Gn(t,!1);if(!n)throw fc?new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`):new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);return n}let r=yield Cje(t);return r&&r.length>0?r[0]:""})}o(Gn,"which");function Cje(t){return wh(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");let e=[];if(fc&&process.env.PATHEXT)for(let i of process.env.PATHEXT.split(Ls.delimiter))i&&e.push(i);if(av(t)){let i=yield rM(t,e);return i?[i]:[]}if(t.includes(Ls.sep))return[];let r=[];if(process.env.PATH)for(let i of process.env.PATH.split(Ls.delimiter))i&&r.push(i);let n=[];for(let i of r){let s=yield rM(Ls.join(i,t),e);s&&n.push(s)}return n})}o(Cje,"findInPath");function bje(t){let e=t.force==null?!0:t.force,r=!!t.recursive,n=t.copySourceDirectory==null?!0:!!t.copySourceDirectory;return{force:e,recursive:r,copySourceDirectory:n}}o(bje,"readCopyOptions");function Dse(t,e,r,n){return wh(this,void 0,void 0,function*(){if(r>=255)return;r++,yield nu(e);let i=yield eM(t);for(let s of i){let a=`${t}/${s}`,c=`${e}/${s}`;(yield ov(a)).isDirectory()?yield Dse(a,c,r,n):yield Qse(a,c,n)}yield ZF(e,(yield bh(t)).mode)})}o(Dse,"cpDirRecursive");function Qse(t,e,r){return wh(this,void 0,void 0,function*(){if((yield ov(t)).isSymbolicLink()){try{yield ov(e),yield tM(e)}catch(i){i.code==="EPERM"&&(yield ZF(e,"0666"),yield tM(e))}let n=yield Nse(t);yield vse(n,e,fc?"junction":null)}else(!(yield Nm(e))||r)&&(yield Sse(t,e))})}o(Qse,"copyFile");var Lse=require("timers");var kse=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},cv=process.platform==="win32",lv=class extends iM.EventEmitter{static{o(this,"ToolRunner")}constructor(e,r,n){if(super(),!e)throw new Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=r||[],this.options=n||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,r){let n=this._getSpawnFileName(),i=this._getSpawnArgs(e),s=r?"":"[command]";if(cv)if(this._isCmdFile()){s+=n;for(let a of i)s+=` ${a}`}else if(e.windowsVerbatimArguments){s+=`"${n}"`;for(let a of i)s+=` ${a}`}else{s+=this._windowsQuoteCmdArg(n);for(let a of i)s+=` ${this._windowsQuoteCmdArg(a)}`}else{s+=n;for(let a of i)s+=` ${a}`}return s}_processLineBuffer(e,r,n){try{let i=r+e.toString(),s=i.indexOf(fb.EOL);for(;s>-1;){let a=i.substring(0,s);n(a),i=i.substring(s+fb.EOL.length),s=i.indexOf(fb.EOL)}return i}catch(i){return this._debug(`error processing line. Failed with error ${i}`),""}}_getSpawnFileName(){return cv&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(cv&&this._isCmdFile()){let r=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(let n of this.args)r+=" ",r+=e.windowsVerbatimArguments?n:this._windowsQuoteCmdArg(n);return r+='"',[r]}return this.args}_endsWith(e,r){return e.endsWith(r)}_isCmdFile(){let e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';let r=[" "," ","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'],n=!1;for(let a of e)if(r.some(c=>c===a)){n=!0;break}if(!n)return e;let i='"',s=!0;for(let a=e.length;a>0;a--)i+=e[a-1],s&&e[a-1]==="\\"?i+="\\":e[a-1]==='"'?(s=!0,i+='"'):s=!1;return i+='"',i.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes(" ")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let r='"',n=!0;for(let i=e.length;i>0;i--)r+=e[i-1],n&&e[i-1]==="\\"?r+="\\":e[i-1]==='"'?(n=!0,r+="\\"):n=!1;return r+='"',r.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};let r={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return r.outStream=e.outStream||process.stdout,r.errStream=e.errStream||process.stderr,r}_getSpawnOptions(e,r){e=e||{};let n={};return n.cwd=e.cwd,n.env=e.env,n.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(n.argv0=`"${r}"`),n}exec(){return kse(this,void 0,void 0,function*(){return!av(this.toolPath)&&(this.toolPath.includes("/")||cv&&this.toolPath.includes("\\"))&&(this.toolPath=Ose.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield Gn(this.toolPath,!0),new Promise((e,r)=>kse(this,void 0,void 0,function*(){this._debug(`exec tool: ${this.toolPath}`),this._debug("arguments:");for(let u of this.args)this._debug(` ${u}`);let n=this._cloneExecOptions(this.options);!n.silent&&n.outStream&&n.outStream.write(this._getCommandString(n)+fb.EOL);let i=new nM(n,this.toolPath);if(i.on("debug",u=>{this._debug(u)}),this.options.cwd&&!(yield Nm(this.options.cwd)))return r(new Error(`The cwd: ${this.options.cwd} does not exist!`));let s=this._getSpawnFileName(),a=Pse.spawn(s,this._getSpawnArgs(n),this._getSpawnOptions(this.options,s)),c="";a.stdout&&a.stdout.on("data",u=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(u),!n.silent&&n.outStream&&n.outStream.write(u),c=this._processLineBuffer(u,c,d=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(d)})});let l="";if(a.stderr&&a.stderr.on("data",u=>{i.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(u),!n.silent&&n.errStream&&n.outStream&&(n.failOnStdErr?n.errStream:n.outStream).write(u),l=this._processLineBuffer(u,l,d=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(d)})}),a.on("error",u=>{i.processError=u.message,i.processExited=!0,i.processClosed=!0,i.CheckComplete()}),a.on("exit",u=>{i.processExitCode=u,i.processExited=!0,this._debug(`Exit code ${u} received from tool '${this.toolPath}'`),i.CheckComplete()}),a.on("close",u=>{i.processExitCode=u,i.processExited=!0,i.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),i.CheckComplete()}),i.on("done",(u,d)=>{c.length>0&&this.emit("stdline",c),l.length>0&&this.emit("errline",l),a.removeAllListeners(),u?r(u):e(d)}),this.options.input){if(!a.stdin)throw new Error("child process missing stdin");a.stdin.end(this.options.input)}}))})}};function Fse(t){let e=[],r=!1,n=!1,i="";function s(a){n&&a!=='"'&&(i+="\\"),i+=a,n=!1}o(s,"append");for(let a=0;a0&&(e.push(i),i="");continue}s(c)}return i.length>0&&e.push(i.trim()),e}o(Fse,"argStringToArray");var nM=class t extends iM.EventEmitter{static{o(this,"ExecState")}constructor(e,r){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!r)throw new Error("toolPath must not be empty");this.options=e,this.toolPath=r,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=(0,Lse.setTimeout)(t.HandleTimeout,this.delay,this)))}_debug(e){this.emit("debug",e)}_setResult(){let e;this.processExited&&(this.processError?e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):this.processExitCode!==0&&!this.options.ignoreReturnCode?e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`):this.processStderr&&this.options.failOnStdErr&&(e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`))),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(!e.done){if(!e.processClosed&&e.processExited){let r=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(r)}e._setResult()}}};var Mse=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function Fs(t,e,r){return Mse(this,void 0,void 0,function*(){let n=Fse(t);if(n.length===0)throw new Error("Parameter 'commandLine' cannot be null or empty.");let i=n[0];return e=n.slice(1).concat(e||[]),new lv(i,e,r).exec()})}o(Fs,"exec");function hb(t,e,r){return Mse(this,void 0,void 0,function*(){var n,i;let s="",a="",c=new sM.StringDecoder("utf8"),l=new sM.StringDecoder("utf8"),u=(n=r?.listeners)===null||n===void 0?void 0:n.stdout,d=(i=r?.listeners)===null||i===void 0?void 0:i.stderr,f=o(A=>{a+=l.write(A),d&&d(A)},"stdErrListener"),h=o(A=>{s+=c.write(A),u&&u(A)},"stdOutListener"),p=Object.assign(Object.assign({},r?.listeners),{stdout:h,stderr:f}),m=yield Fs(t,e,Object.assign(Object.assign({},r),{listeners:p}));return s+=c.end(),a+=l.end(),{exitCode:m,stdout:s,stderr:a}})}o(hb,"getExecOutput");var gzt=oM.default.platform(),yzt=oM.default.arch();var Sje=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},aM;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(aM||(aM={}));function Os(t){ql("add-mask",{},t)}o(Os,"setSecret");function hc(t){process.env.GITHUB_PATH||""?lB("PATH",t):ql("add-path",{},t),process.env.PATH=`${t}${Use.delimiter}${process.env.PATH}`}o(hc,"addPath");function Ms(t,e){let r=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(e&&e.required&&!r)throw new Error(`Input required and not supplied: ${t}`);return e&&e.trimWhitespace===!1?r:r.trim()}o(Ms,"getInput");function Ih(t,e){let r=["true","True","TRUE"],n=["false","False","FALSE"],i=Ms(t,e);if(r.includes(i))return!0;if(n.includes(i))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t} +Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(Ih,"getBooleanInput");function qse(t,e){if(process.env.GITHUB_OUTPUT||"")return lB("OUTPUT",yP(t,e));process.stdout.write(cM.EOL),ql("set-output",{name:t},Ul(e))}o(qse,"setOutput");function uv(t){process.exitCode=aM.Failure,Sa(t)}o(uv,"setFailed");function Sh(){return process.env.RUNNER_DEBUG==="1"}o(Sh,"isDebug");function v(t){ql("debug",{},t)}o(v,"debug");function Sa(t,e={}){ql("error",AP(e),t instanceof Error?t.toString():t)}o(Sa,"error");function Ge(t,e={}){ql("warning",AP(e),t instanceof Error?t.toString():t)}o(Ge,"warning");function D(t){process.stdout.write(t+cM.EOL)}o(D,"info");function Bje(t){gP("group",t)}o(Bje,"startGroup");function xje(){gP("endgroup")}o(xje,"endGroup");function Sr(t,e){return Sje(this,void 0,void 0,function*(){Bje(t);let r;try{r=yield e()}finally{xje()}return r})}o(Sr,"group");function Eo(t,e){if(process.env.GITHUB_STATE||"")return lB("STATE",yP(t,e));ql("save-state",{name:t},Ul(e))}o(Eo,"saveState");function Gse(t){return process.env[`STATE_${t}`]||""}o(Gse,"getState");var ow=T(require("fs"),1),IV=T(require("os"),1),SV=T(require("path"),1);var zse=T(require("os"),1);function Ab(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(Ab,"toCommandValue");function Vse(t,e,r){let n=new lM(t,e,r);process.stdout.write(n.toString()+zse.EOL)}o(Vse,"issueCommand");var Hse="::",lM=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=Hse+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let i=this.properties[n];i&&(r?r=!1:e+=",",e+=`${n}=${Nje(i)}`)}}return e+=`${Hse}${vje(this.message)}`,e}};function vje(t){return Ab(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(vje,"escapeData");function Nje(t){return Ab(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(Nje,"escapeProperty");var Jse=T(require("os"),1);var jse=require("os"),mb=require("fs");var uM=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:_je,appendFile:Rje,writeFile:Tje}=mb.promises,$se="GITHUB_STEP_SUMMARY";var dM=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return uM(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[$se];if(!e)throw new Error(`Unable to find environment variable for $${$se}. Check if your runtime environment supports job summaries.`);try{yield _je(e,mb.constants.R_OK|mb.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let i=Object.entries(n).map(([s,a])=>` ${s}="${a}"`).join("");return r?`<${e}${i}>${r}`:`<${e}${i}>`}write(e){return uM(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?Tje:Rje)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return uM(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(jse.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),i=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(i).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",i=e.map(a=>this.wrap("li",a)).join(""),s=this.wrap(n,i);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(i=>{let s=i.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,f=c?"th":"td",h=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(f,l,h)}).join("");return this.wrap("tr",s)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:i,height:s}=n||{},a=Object.assign(Object.assign({},i&&{width:i}),s&&{height:s}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,i=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",s=this.wrap(i,e);return this.addRaw(s).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),i=this.wrap("blockquote",e,n);return this.addRaw(i).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},jzt=new dM;var fM=T(require("os"),1);var Xzt=fM.default.platform(),Zzt=fM.default.arch();var Wse;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(Wse||(Wse={}));function hM(){return process.env.RUNNER_DEBUG==="1"}o(hM,"isDebug");function jt(t){Vse("debug",{},t)}o(jt,"debug");function pM(t){process.stdout.write(t+Jse.EOL)}o(pM,"info");var OM=T(require("crypto"),1),oi=T(require("fs"),1);var N6e=T(kM(),1);var Bv=T(require("os"),1),Ba=T(require("path"),1);var wo=T(kM(),1),Uae=T(require("stream"),1),qae=T(require("util"),1),LM=require("assert");var Mae=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},Iv=class{static{o(this,"RetryHelper")}constructor(e,r,n){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(r),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return Mae(this,void 0,void 0,function*(){let n=1;for(;nsetTimeout(r,e*1e3))})}};var Ac=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},Sv=class extends Error{static{o(this,"HTTPError")}constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},Gae=process.platform==="win32",n$t=process.platform==="darwin",R6e="actions/tool-cache";function Io(t,e,r,n){return Ac(this,void 0,void 0,function*(){e=e||Ba.join(Jae(),OM.randomUUID()),yield nu(Ba.dirname(e)),jt(`Downloading ${t}`),jt(`Destination ${e}`);let i=3,s=PM("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),a=PM("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new Iv(i,s,a).execute(()=>Ac(this,void 0,void 0,function*(){return yield T6e(t,e||"",r,n)}),l=>!(l instanceof Sv&&l.httpStatusCode&&l.httpStatusCode<500&&l.httpStatusCode!==408&&l.httpStatusCode!==429))})}o(Io,"downloadTool");function T6e(t,e,r,n){return Ac(this,void 0,void 0,function*(){if(oi.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let i=new Ch(R6e,[],{allowRetries:!1});r&&(jt("set auth"),n===void 0&&(n={}),n.authorization=r);let s=yield i.get(t,n);if(s.message.statusCode!==200){let d=new Sv(s.message.statusCode);throw jt(`Failed to download from "${t}". Code(${s.message.statusCode}) Message(${s.message.statusMessage})`),d}let a=qae.promisify(Uae.pipeline),l=PM("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>s.message)(),u=!1;try{return yield a(l,oi.createWriteStream(e)),jt("download complete"),u=!0,e}finally{if(!u){jt("download failed");try{yield _m(e)}catch(d){jt(`Failed to delete '${e}'. ${d.message}`)}}}})}o(T6e,"downloadToolAttempt");function Hae(t,e){return Ac(this,arguments,void 0,function*(r,n,i="xz"){if(!r)throw new Error("parameter 'file' is required");n=yield jae(n),jt("Checking tar --version");let s="";yield Fs("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(d=>s+=d.toString(),"stdout"),stderr:o(d=>s+=d.toString(),"stderr")}}),jt(s.trim());let a=s.toUpperCase().includes("GNU TAR"),c;i instanceof Array?c=i:c=[i],hM()&&!i.includes("v")&&c.push("-v");let l=n,u=r;return Gae&&a&&(c.push("--force-local"),l=n.replace(/\\/g,"/"),u=r.replace(/\\/g,"/")),a&&(c.push("--warning=no-unknown-keyword"),c.push("--overwrite")),c.push("-C",l,"-f",u),yield Fs("tar",c),n})}o(Hae,"extractTar");function zae(t,e){return Ac(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yield jae(e),Gae?yield D6e(t,e):yield Q6e(t,e),e})}o(zae,"extractZip");function D6e(t,e){return Ac(this,void 0,void 0,function*(){let r=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=yield Gn("pwsh",!1);if(i){let a=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ;","try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;",`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force } else { throw $_ } } ;`].join(" ")];jt(`Using pwsh at path: ${i}`),yield Fs(`"${i}"`,a)}else{let a=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ;","try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;",`if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) }`].join(" ")],c=yield Gn("powershell",!0);jt(`Using powershell at path: ${c}`),yield Fs(`"${c}"`,a)}})}o(D6e,"extractZipWin");function Q6e(t,e){return Ac(this,void 0,void 0,function*(){let r=yield Gn("unzip",!0),n=[t];hM()||n.unshift("-q"),n.unshift("-o"),yield Fs(`"${r}"`,n,{cwd:e})})}o(Q6e,"extractZipNix");function Vae(t,e,r,n){return Ac(this,void 0,void 0,function*(){if(r=wo.clean(r)||r,n=n||Bv.arch(),jt(`Caching tool ${e} ${r} ${n}`),jt(`source dir: ${t}`),!oi.statSync(t).isDirectory())throw new Error("sourceDir is not a directory");let i=yield P6e(e,r,n);for(let s of oi.readdirSync(t)){let a=Ba.join(t,s);yield Tse(a,i,{recursive:!0})}return O6e(e,r,n),i})}o(Vae,"cacheDir");function $ae(t,e,r){if(!t)throw new Error("toolName parameter is required");if(!e)throw new Error("versionSpec parameter is required");if(r=r||Bv.arch(),!Wae(e)){let i=k6e(t,r);e=L6e(i,e)}let n="";if(e){e=wo.clean(e)||"";let i=Ba.join(xv(),t,e,r);jt(`checking cache: ${i}`),oi.existsSync(i)&&oi.existsSync(`${i}.complete`)?(jt(`Found tool in cache ${t} ${e} ${r}`),n=i):jt("not found")}return n}o($ae,"find");function k6e(t,e){let r=[];e=e||Bv.arch();let n=Ba.join(xv(),t);if(oi.existsSync(n)){let i=oi.readdirSync(n);for(let s of i)if(Wae(s)){let a=Ba.join(n,s,e||"");oi.existsSync(a)&&oi.existsSync(`${a}.complete`)&&r.push(s)}}return r}o(k6e,"findAllVersions");function jae(t){return Ac(this,void 0,void 0,function*(){return t||(t=Ba.join(Jae(),OM.randomUUID())),yield nu(t),t})}o(jae,"_createExtractFolder");function P6e(t,e,r){return Ac(this,void 0,void 0,function*(){let n=Ba.join(xv(),t,wo.clean(e)||e,r||"");jt(`destination ${n}`);let i=`${n}.complete`;return yield _m(n),yield _m(i),yield nu(n),n})}o(P6e,"_createToolPath");function O6e(t,e,r){let i=`${Ba.join(xv(),t,wo.clean(e)||e,r||"")}.complete`;oi.writeFileSync(i,""),jt("finished caching tool")}o(O6e,"_completeToolPath");function Wae(t){let e=wo.clean(t)||"";jt(`isExplicit: ${e}`);let r=wo.valid(e)!=null;return jt(`explicit? ${r}`),r}o(Wae,"isExplicitVersion");function L6e(t,e){let r="";jt(`evaluating ${t.length} versions`),t=t.sort((n,i)=>wo.gt(n,i)?1:-1);for(let n=t.length-1;n>=0;n--){let i=t[n];if(wo.satisfies(i,e)){r=i;break}}return r?jt(`matched: ${r}`):jt("match not found"),r}o(L6e,"evaluateVersions");function xv(){let t=process.env.RUNNER_TOOL_CACHE||"";return(0,LM.ok)(t,"Expected RUNNER_TOOL_CACHE to be defined"),t}o(xv,"_getCacheDirectory");function Jae(){let t=process.env.RUNNER_TEMP||"";return(0,LM.ok)(t,"Expected RUNNER_TEMP to be defined"),t}o(Jae,"_getTempDirectory");function PM(t,e){let r=global[t];return r!==void 0?r:e}o(PM,"_getGlobal");var sw=T(require("path"),1);var Kae=T(require("os"),1);function Sb(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(Sb,"toCommandValue");function Xae(t,e,r){let n=new FM(t,e,r);process.stdout.write(n.toString()+Kae.EOL)}o(Xae,"issueCommand");var Yae="::",FM=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=Yae+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let i=this.properties[n];i&&(r?r=!1:e+=",",e+=`${n}=${M6e(i)}`)}}return e+=`${Yae}${F6e(this.message)}`,e}};function F6e(t){return Sb(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(F6e,"escapeData");function M6e(t){return Sb(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(M6e,"escapeProperty");var ece=require("os"),Bb=require("fs");var MM=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:U6e,appendFile:q6e,writeFile:G6e}=Bb.promises,Zae="GITHUB_STEP_SUMMARY";var UM=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return MM(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Zae];if(!e)throw new Error(`Unable to find environment variable for $${Zae}. Check if your runtime environment supports job summaries.`);try{yield U6e(e,Bb.constants.R_OK|Bb.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let i=Object.entries(n).map(([s,a])=>` ${s}="${a}"`).join("");return r?`<${e}${i}>${r}`:`<${e}${i}>`}write(e){return MM(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?G6e:q6e)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return MM(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(ece.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),i=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(i).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",i=e.map(a=>this.wrap("li",a)).join(""),s=this.wrap(n,i);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(i=>{let s=i.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,f=c?"th":"td",h=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(f,l,h)}).join("");return this.wrap("tr",s)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:i,height:s}=n||{},a=Object.assign(Object.assign({},i&&{width:i}),s&&{height:s}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,i=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",s=this.wrap(i,e);return this.addRaw(s).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),i=this.wrap("blockquote",e,n);return this.addRaw(i).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},E$t=new UM;var qM=T(require("os"),1);var S$t=qM.default.platform(),B$t=qM.default.arch();var tce;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(tce||(tce={}));function So(t){Xae("debug",{},t)}o(So,"debug");var Om=T(require("fs"),1);function HM(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,So(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,So(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,So(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,So(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,So(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}o(HM,"getOptions");var Rv=T(require("path"),1);var Qm=T(require("path"),1),wd=T(require("assert"),1);var Id=process.platform==="win32";function su(t){if(t=iu(t),Id&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Qm.dirname(t);return Id&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=iu(e)),e}o(su,"dirname");function vv(t,e){if((0,wd.default)(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),(0,wd.default)(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),xb(e))return e;if(Id){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return(0,wd.default)(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(xa(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return(0,wd.default)(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return(0,wd.default)(xb(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||Id&&t.endsWith("\\")||(t+=Qm.sep),t+e}o(vv,"ensureAbsoluteRoot");function xb(t){return(0,wd.default)(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=xa(t),Id?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}o(xb,"hasAbsoluteRoot");function vb(t){return(0,wd.default)(t,"isRooted parameter 'itemPath' must not be empty"),t=xa(t),Id?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}o(vb,"hasRoot");function xa(t){return t=t||"",Id?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}o(xa,"normalizeSeparators");function iu(t){return t?(t=xa(t),!t.endsWith(Qm.sep)||t===Qm.sep||Id&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}o(iu,"safeTrimTrailingSeparator");var va;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(va||(va={}));var rce=process.platform==="win32";function VM(t){t=t.filter(n=>!n.negate);let e={};for(let n of t){let i=rce?n.searchPath.toUpperCase():n.searchPath;e[i]="candidate"}let r=[];for(let n of t){let i=rce?n.searchPath.toUpperCase():n.searchPath;if(e[i]==="included")continue;let s=!1,a=i,c=su(a);for(;c!==a;){if(e[c]){s=!0;break}a=c,c=su(a)}s||(r.push(n.searchPath),e[i]="included")}return r}o(VM,"getSearchPaths");function nce(t,e){let r=va.None;for(let n of t)n.negate?r&=~n.match(e):r|=n.match(e);return r}o(nce,"match");function ice(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}o(ice,"partialMatch");var Ice=T(require("os"),1),Pm=T(require("path"),1);var xd=T(require("assert"),1);var $M=o((t,e,r)=>{let n=t instanceof RegExp?sce(t,r):t,i=e instanceof RegExp?sce(e,r):e,s=n!==null&&i!=null&&$6e(n,i,r);return s&&{start:s[0],end:s[1],pre:r.slice(0,s[0]),body:r.slice(s[0]+n.length,s[1]),post:r.slice(s[1]+i.length)}},"balanced"),sce=o((t,e)=>{let r=e.match(t);return r?r[0]:null},"maybeMatch"),$6e=o((t,e,r)=>{let n,i,s,a,c,l=r.indexOf(t),u=r.indexOf(e,l+1),d=l;if(l>=0&&u>0){if(t===e)return[l,u];for(n=[],s=r.length;d>=0&&!c;){if(d===l)n.push(d),l=r.indexOf(t,d+1);else if(n.length===1){let f=n.pop();f!==void 0&&(c=[f,u])}else i=n.pop(),i!==void 0&&i=0?l:u}n.length&&a!==void 0&&(c=[s,a])}return c},"range");var oce="\0SLASH"+Math.random()+"\0",ace="\0OPEN"+Math.random()+"\0",YM="\0CLOSE"+Math.random()+"\0",cce="\0COMMA"+Math.random()+"\0",lce="\0PERIOD"+Math.random()+"\0",j6e=new RegExp(oce,"g"),W6e=new RegExp(ace,"g"),J6e=new RegExp(YM,"g"),Y6e=new RegExp(cce,"g"),K6e=new RegExp(lce,"g"),X6e=/\\\\/g,Z6e=/\\{/g,eJe=/\\}/g,tJe=/\\,/g,rJe=/\\\./g,nJe=1e5,iJe=4e6,sJe=1e3,oJe=1e3;function jM(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}o(jM,"numeric");function aJe(t){return t.replace(X6e,oce).replace(Z6e,ace).replace(eJe,YM).replace(tJe,cce).replace(rJe,lce)}o(aJe,"escapeBraces");function cJe(t){return t.replace(j6e,"\\").replace(W6e,"{").replace(J6e,"}").replace(Y6e,",").replace(K6e,".")}o(cJe,"unescapeBraces");function WM(t,e){for(let r=0;r=e}o(hJe,"gte");function Nb(t,e,r,n,i,s){let a=[],c=0;for(let l=0;l=n)return a;let d=t[l]+e+r[u];if(!(s&&!d)){if(c+d.length>i)return a;a.push(d),c+=d.length}}return a}o(Nb,"combine");function pJe(t,e,r,n){let i=t.split(/\.\./),s=[];if(i[0]===void 0||i[1]===void 0)return s;let a=jM(i[0]),c=jM(i[1]),l=Math.max(i[0].length,i[1].length),u=i.length===3&&i[2]!==void 0?Math.max(Math.abs(jM(i[2])),1):1,d=fJe;c0){let y=new Array(E+1).join("0");m<0?A="-"+y+A.slice(1):A=y+A}}if(p+A.length>n)break;s.push(A),p+=A.length}return s}o(pJe,"expandSequence");function JM(t,e,r,n,i,s,a){if(i>n)return[t];let c=[""],l=0,u=!1,d=!0;for(;;){let f=$M("{","}",t);if(!f)return Nb(c,t,[""],e,r,u);let h=f.pre;if(/\$$/.test(h)){if(c=Nb(c,h+"{"+f.body+"}",[""],e,r,u&&!f.post.length),d=!1,!f.post.length)break;t=f.post;continue}let p=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(f.body),m=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(f.body),A=p||m,E=f.body.indexOf(",")>=0;if(!A&&!E){if(l=e||B+$.length>r)break e;y.push($),B+=$.length}}}}if(c=Nb(c,h,y,e,r,u&&!f.post.length),!f.post.length)break;t=f.post}return c}o(JM,"expand_");var _b=o(t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},"assertValidPattern");var AJe={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Rb=o(t=>t.replace(/[[\]\\-]/g,"\\$&"),"braceEscape"),mJe=o(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regexpEscape"),dce=o(t=>t.join(""),"rangesToString"),fce=o((t,e)=>{let r=e;if(t.charAt(r)!=="[")throw new Error("not in a brace expression");let n=[],i=[],s=r+1,a=!1,c=!1,l=!1,u=!1,d=r,f="";e:for(;sf?n.push(Rb(f)+"-"+Rb(A)):A===f&&n.push(Rb(A)),f="",s++;continue}if(t.startsWith("-]",s+1)){n.push(Rb(A+"-")),s+=2;continue}if(t.startsWith("-",s+1)){f=A,s+=2;continue}n.push(Rb(A)),s++}if(dr?e?t.replace(/\[([^/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):e?t.replace(/\[([^/\\{}])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1"),"unescape");var rs,gJe=new Set(["!","?","+","*","@"]),KM=o(t=>gJe.has(t),"isExtglobType"),hce=o(t=>KM(t.type),"isExtglobAST"),yJe=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),EJe=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),CJe=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),pce=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),bJe="(?!(?:^|/)\\.\\.?(?:$|/))",Nv="(?!\\.)",wJe=new Set(["[","."]),IJe=new Set(["..","."]),SJe=new Set("().*{}+?[]^$\\!"),BJe=o(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),XM="[^/]",Ace=XM+"*?",mce=XM+"+?",xJe=0,xh=class{static{o(this,"AST")}type;#e;#r;#n=!1;#t=[];#i;#s;#l;#a=!1;#c;#o;#f=!1;id=++xJe;get depth(){return(this.#i?.depth??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){return{"@@type":"AST",id:this.id,type:this.type,root:this.#e.id,parent:this.#i?.id,depth:this.depth,partsLength:this.#t.length,parts:this.#t}}constructor(e,r,n={}){this.type=e,e&&(this.#r=!0),this.#i=r,this.#e=this.#i?this.#i.#e:this,this.#c=this.#e===this?n:this.#e.#c,this.#l=this.#e===this?[]:this.#e.#l,e==="!"&&!this.#e.#a&&this.#l.push(this),this.#s=this.#i?this.#i.#t.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(let e of this.#t)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#o!==void 0?this.#o:this.type?this.#o=this.type+"("+this.#t.map(e=>String(e)).join("|")+")":this.#o=this.#t.map(e=>String(e)).join("")}#C(){if(this!==this.#e)throw new Error("should only call on root");if(this.#a)return this;this.toString(),this.#a=!0;let e;for(;e=this.#l.pop();){if(e.type!=="!")continue;let r=e,n=r.#i;for(;n;){for(let i=r.#s+1;!n.type&&itypeof r=="string"?r:r.toJSON()):[this.type,...this.#t.map(r=>r.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#a&&this.#i?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#i?.isStart())return!1;if(this.#s===0)return!0;let e=this.#i;for(let r=0;rtypeof p!="string"),u=this.#t.map(p=>{let[m,A,E,y]=typeof p=="string"?rs.#S(p,this.#r,l):p.toRegExpSource(e);return this.#r=this.#r||E,this.#n=this.#n||y,m}).join(""),d="";if(this.isStart()&&typeof this.#t[0]=="string"&&!(this.#t.length===1&&IJe.has(this.#t[0]))){let m=wJe,A=r&&m.has(u.charAt(0))||u.startsWith("\\.")&&m.has(u.charAt(2))||u.startsWith("\\.\\.")&&m.has(u.charAt(4)),E=!r&&!e&&m.has(u.charAt(0));d=A?bJe:E?Nv:""}let f="";return this.isEnd()&&this.#e.#a&&this.#i?.type==="!"&&(f="(?:$|\\/)"),[d+u+f,Sd(u),this.#r=!!this.#r,this.#n]}let n=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#w(r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let l=this.toString(),u=this;return u.#t=[l],u.type=null,u.#r=void 0,[l,Sd(this.toString()),!1,!1]}let a=!n||e||r||!Nv?"":this.#w(!0);a===s&&(a=""),a&&(s=`(?:${s})(?:${a})*?`);let c="";if(this.type==="!"&&this.#f)c=(this.isStart()&&!r?Nv:"")+mce;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!e?Nv:"")+Ace+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`;c=i+s+l}return[c,Sd(s),this.#r=!!this.#r,this.#n]}#d(){if(hce(this)){let e=0,r=!1;do{r=!0;for(let n=0;n{if(typeof r=="string")throw new Error("string type in extglob ast??");let[n,i,s,a]=r.toRegExpSource(e);return this.#n=this.#n||a,n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#S(e,r,n=!1){let i=!1,s="",a=!1,c=!1;for(let l=0;lr?e?t.replace(/[?*()[\]{}]/g,"[$&]"):t.replace(/[?*()[\]\\{}]/g,"\\$&"):e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),"escape");var Ni=o((t,e,r={})=>(_b(e),!r.nocomment&&e.charAt(0)==="#"?!1:new Bd(e,r).match(t)),"minimatch"),vJe=/^\*+([^+@!?*[(]*)$/,NJe=o(t=>e=>!e.startsWith(".")&&e.endsWith(t),"starDotExtTest"),_Je=o(t=>e=>e.endsWith(t),"starDotExtTestDot"),RJe=o(t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),"starDotExtTestNocase"),TJe=o(t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),"starDotExtTestNocaseDot"),DJe=/^\*+\.\*+$/,QJe=o(t=>!t.startsWith(".")&&t.includes("."),"starDotStarTest"),kJe=o(t=>t!=="."&&t!==".."&&t.includes("."),"starDotStarTestDot"),PJe=/^\.\*+$/,OJe=o(t=>t!=="."&&t!==".."&&t.startsWith("."),"dotStarTest"),LJe=/^\*+$/,FJe=o(t=>t.length!==0&&!t.startsWith("."),"starTest"),MJe=o(t=>t.length!==0&&t!=="."&&t!=="..","starTestDot"),UJe=/^\?+([^+@!?*[(]*)?$/,qJe=o(([t,e=""])=>{let r=Ece([t]);return e?(e=e.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(e)):r},"qmarksTestNocase"),GJe=o(([t,e=""])=>{let r=Cce([t]);return e?(e=e.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(e)):r},"qmarksTestNocaseDot"),HJe=o(([t,e=""])=>{let r=Cce([t]);return e?n=>r(n)&&n.endsWith(e):r},"qmarksTestDot"),zJe=o(([t,e=""])=>{let r=Ece([t]);return e?n=>r(n)&&n.endsWith(e):r},"qmarksTest"),Ece=o(([t])=>{let e=t.length;return r=>r.length===e&&!r.startsWith(".")},"qmarksTestNoExt"),Cce=o(([t])=>{let e=t.length;return r=>r.length===e&&r!=="."&&r!==".."},"qmarksTestNoExtDot"),bce=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",gce={win32:{sep:"\\"},posix:{sep:"/"}},VJe=bce==="win32"?gce.win32.sep:gce.posix.sep;Ni.sep=VJe;var ai=Symbol("globstar **");Ni.GLOBSTAR=ai;var $Je="[^/]",jJe=$Je+"*?",WJe="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",JJe="(?:(?!(?:\\/|^)\\.).)*?",YJe=o((t,e={})=>r=>Ni(r,t,e),"filter");Ni.filter=YJe;var Bo=o((t,e={})=>Object.assign({},t,e),"ext"),KJe=o(t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return Ni;let e=Ni;return Object.assign(o((n,i,s={})=>e(n,i,Bo(t,s)),"m"),{Minimatch:class extends e.Minimatch{static{o(this,"Minimatch")}constructor(i,s={}){super(i,Bo(t,s))}static defaults(i){return e.defaults(Bo(t,i)).Minimatch}},AST:class extends e.AST{static{o(this,"AST")}constructor(i,s,a={}){super(i,s,Bo(t,a))}static fromGlob(i,s={}){return e.AST.fromGlob(i,Bo(t,s))}},unescape:o((n,i={})=>e.unescape(n,Bo(t,i)),"unescape"),escape:o((n,i={})=>e.escape(n,Bo(t,i)),"escape"),filter:o((n,i={})=>e.filter(n,Bo(t,i)),"filter"),defaults:o(n=>e.defaults(Bo(t,n)),"defaults"),makeRe:o((n,i={})=>e.makeRe(n,Bo(t,i)),"makeRe"),braceExpand:o((n,i={})=>e.braceExpand(n,Bo(t,i)),"braceExpand"),match:o((n,i,s={})=>e.match(n,i,Bo(t,s)),"match"),sep:e.sep,GLOBSTAR:ai})},"defaults");Ni.defaults=KJe;var wce=o((t,e={})=>(_b(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:uce(t,{max:e.braceExpandMax})),"braceExpand");Ni.braceExpand=wce;var XJe=o((t,e={})=>new Bd(t,e).makeRe(),"makeRe");Ni.makeRe=XJe;var ZJe=o((t,e,r={})=>{let n=new Bd(e,r);return t=t.filter(i=>n.match(i)),n.options.nonull&&!t.length&&t.push(e),t},"match");Ni.match=ZJe;var yce=/[?*]|[+@!]\(.*?\)|\[|\]/,eYe=o(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),Bd=class{static{o(this,"Minimatch")}options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,r={}){_b(e),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=e,this.platform=r.platform||bce,this.isWindows=this.platform==="win32";let n="allowWindowsEscape";this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r[n]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let r of e)if(typeof r!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let i=this.globParts.map((s,a,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=s[0]===""&&s[1]===""&&(s[2]==="?"||!yce.test(s[2]))&&!yce.test(s[3]),u=/^[a-z]:/i.test(s[0]);if(l)return[...s.slice(0,4),...s.slice(4).map(d=>this.parse(d))];if(u)return[s[0],...s.slice(1).map(d=>this.parse(d))]}return s.map(l=>this.parse(l))});if(this.debug(this.pattern,i),this.set=i.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):r>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let i=n;for(;r[i+1]==="**";)i++;i!==n&&r.splice(n,i-n)}return r})}levelOneOptimize(e){return e.map(r=>(r=r.reduce((n,i)=>{let s=n[n.length-1];return i==="**"&&s==="**"?n:i===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(n.pop(),n):(n.push(i),n)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let i=1;ii&&n.splice(i+1,a-i);let c=n[i+1],l=n[i+2],u=n[i+3];if(c!==".."||!l||l==="."||l===".."||!u||u==="."||u==="..")continue;r=!0,n.splice(i,1);let d=n.slice(0);d[i]="**",e.push(d),i--}if(!this.preserveMultipleSlashes){for(let a=1;ar.length)}partsMatch(e,r,n=!1){let i=0,s=0,a=[],c="";for(;i=2&&(e=this.levelTwoFileOptimize(e)),r.includes(ai)?this.#e(e,r,n,i,s):this.#n(e,r,n,i,s)}#e(e,r,n,i,s){let a=r.indexOf(ai,s),c=r.lastIndexOf(ai),[l,u,d]=n?[r.slice(s,a),r.slice(a+1),[]]:[r.slice(s,a),r.slice(a+1,c),r.slice(c+1)];if(l.length){let C=e.slice(i,i+l.length);if(!this.#n(C,l,n,0,0))return!1;i+=l.length,s+=l.length}let f=0;if(d.length){if(d.length+i>e.length)return!1;let C=e.length-d.length;if(this.#n(e,d,n,C,0))f=d.length;else{if(e[e.length-1]!==""||i+d.length===e.length||(C--,!this.#n(e,d,n,C,0)))return!1;f=d.length+1}}if(!u.length){let C=!!f;for(let w=i;w{let u=l.map(f=>{if(f instanceof RegExp)for(let h of f.flags.split(""))i.add(h);return typeof f=="string"?eYe(f):f===ai?ai:f._src});u.forEach((f,h)=>{let p=u[h+1],m=u[h-1];f!==ai||m===ai||(m===void 0?p!==void 0&&p!==ai?u[h+1]="(?:\\/|"+n+"\\/)?"+p:u[h]=n:p===void 0?u[h-1]=m+"(?:\\/|\\/"+n+")?":p!==ai&&(u[h-1]=m+"(?:\\/|\\/"+n+"\\/)"+p,u[h+1]=ai))});let d=u.filter(f=>f!==ai);if(this.partial&&d.length>=1){let f=[];for(let h=1;h<=d.length;h++)f.push(d.slice(0,h).join("/"));return"(?:"+f.join("|")+")"}return d.join("/")}).join("|"),[a,c]=e.length>1?["(?:",")"]:["",""];s="^"+a+s+c+"$",this.partial&&(s="^(?:\\/|"+a+s.slice(1,-1)+c+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;this.isWindows&&(e=e.split("\\").join("/"));let i=this.slashSplit(e);this.debug(this.pattern,"split",i);let s=this.set;this.debug(this.pattern,"set",s);let a=i[i.length-1];if(!a)for(let c=i.length-2;!a&&c>=0;c--)a=i[c];for(let c of s){let l=i;if(n.matchBase&&c.length===1&&(l=[a]),this.matchOne(l,c,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return Ni.defaults(e).Minimatch}};Ni.AST=xh;Ni.Minimatch=Bd;Ni.escape=ZM;Ni.unescape=Sd;var vh=T(require("path"),1);var km=T(require("assert"),1);var tYe=process.platform==="win32",Nh=class{static{o(this,"Path")}constructor(e){if(this.segments=[],typeof e=="string")if((0,km.default)(e,"Parameter 'itemPath' must not be empty"),e=iu(e),!vb(e))this.segments=e.split(vh.sep);else{let r=e,n=su(r);for(;n!==r;){let i=vh.basename(r);this.segments.unshift(i),r=n,n=su(r)}this.segments.unshift(r)}else{(0,km.default)(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;rt.getLiteral(u)).filter(u=>!a&&!(a=u===""));this.searchPath=new Nh(c).toString(),this.rootRegExp=new RegExp(t.regExpEscape(c[0]),ou?"i":""),this.isImplicitPattern=r;let l={dot:!0,nobrace:!0,nocase:ou,nocomment:!0,noext:!0,nonegate:!0};s=ou?s.replace(/\\/g,"/"):s,this.minimatch=new Bd(s,l)}match(e){return this.segments[this.segments.length-1]==="**"?(e=xa(e),!e.endsWith(Pm.sep)&&this.isImplicitPattern===!1&&(e=`${e}${Pm.sep}`)):e=iu(e),this.minimatch.match(e)?this.trailingSeparator?va.Directory:va.All:va.None}partialMatch(e){return e=iu(e),su(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(ou?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(ou?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,r){(0,xd.default)(e,"pattern cannot be empty");let n=new Nh(e).segments.map(i=>t.getLiteral(i));if((0,xd.default)(n.every((i,s)=>(i!=="."||s===0)&&i!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),(0,xd.default)(!vb(e)||n[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),e=xa(e),e==="."||e.startsWith(`.${Pm.sep}`))e=t.globEscape(process.cwd())+e.substr(1);else if(e==="~"||e.startsWith(`~${Pm.sep}`))r=r||Ice.homedir(),(0,xd.default)(r,"Unable to determine HOME directory"),(0,xd.default)(xb(r),`Expected HOME directory to be a rooted path. Actual '${r}'`),e=t.globEscape(r)+e.substr(1);else if(ou&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let i=vv("C:\\dummy-root",e.substr(0,2));e.length>2&&!i.endsWith("\\")&&(i+="\\"),e=t.globEscape(i)+e.substr(2)}else if(ou&&(e==="\\"||e.match(/^\\[^\\]/))){let i=vv("C:\\dummy-root","\\");i.endsWith("\\")||(i+="\\"),e=t.globEscape(i)+e.substr(1)}else e=vv(t.globEscape(process.cwd()),e);return xa(e)}static getLiteral(e){let r="";for(let n=0;n=0){if(s.length>1)return"";if(s){r+=s,n=a;continue}}}}r+=i}return r}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}};var Db=class{static{o(this,"SearchState")}constructor(e,r){this.path=e,this.level=r}};var eU=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},rYe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=t[s]&&function(a){return new Promise(function(c,l){a=t[s](a),i(c,l,a.done,a.value)})}}function i(s,a,c,l){Promise.resolve(l).then(function(u){s({value:u,done:c})},a)}},vd=function(t){return this instanceof vd?(this.v=t,this):new vd(t)},nYe=function(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),i,s=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",a),i[Symbol.asyncIterator]=function(){return this},i;function a(p){return function(m){return Promise.resolve(m).then(p,f)}}function c(p,m){n[p]&&(i[p]=function(A){return new Promise(function(E,y){s.push([p,A,E,y])>1||l(p,A)})},m&&(i[p]=m(i[p])))}function l(p,m){try{u(n[p](m))}catch(A){h(s[0][3],A)}}function u(p){p.value instanceof vd?Promise.resolve(p.value.v).then(d,f):h(s[0][2],p)}function d(p){l("next",p)}function f(p){l("throw",p)}function h(p,m){p(m),s.shift(),s.length&&l(s[0][0],s[0][1])}},iYe=process.platform==="win32",_v=class t{static{o(this,"DefaultGlobber")}constructor(e){this.patterns=[],this.searchPaths=[],this.options=HM(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){return eU(this,void 0,void 0,function*(){var e,r,n,i;let s=[];try{for(var a=!0,c=rYe(this.globGenerator()),l;l=yield c.next(),e=l.done,!e;a=!0){i=l.value,a=!1;let u=i;s.push(u)}}catch(u){r={error:u}}finally{try{!a&&!e&&(n=c.return)&&(yield n.call(c))}finally{if(r)throw r.error}}return s})}globGenerator(){return nYe(this,arguments,o(function*(){let r=HM(this.options),n=[];for(let a of this.patterns)n.push(a),r.implicitDescendants&&(a.trailingSeparator||a.segments[a.segments.length-1]!=="**")&&n.push(new Tb(a.negate,!0,a.segments.concat("**")));let i=[];for(let a of VM(n)){So(`Search path '${a}'`);try{yield vd(Om.promises.lstat(a))}catch(c){if(c.code==="ENOENT")continue;throw c}i.unshift(new Db(a,1))}let s=[];for(;i.length;){let a=i.pop(),c=nce(n,a.path),l=!!c||ice(n,a.path);if(!c&&!l)continue;let u=yield vd(t.stat(a,r,s));if(u&&!(r.excludeHiddenFiles&&Rv.basename(a.path).match(/^\./)))if(u.isDirectory()){if(c&va.Directory&&r.matchDirectories)yield yield vd(a.path);else if(!l)continue;let d=a.level+1,f=(yield vd(Om.promises.readdir(a.path))).map(h=>new Db(Rv.join(a.path,h),d));i.push(...f.reverse())}else c&va.File&&(yield yield vd(a.path))}},"globGenerator_1"))}static create(e,r){return eU(this,void 0,void 0,function*(){let n=new t(r);iYe&&(e=e.replace(/\r\n/g,` `),e=e.replace(/\r/g,` `));let i=e.split(` -`).map(s=>s.trim());for(let s of i)!s||s.startsWith("#")||n.patterns.push(new _b(s));return n.searchPaths.push(...zM(n.patterns)),n})}static stat(e,r,n){return ZM(this,void 0,void 0,function*(){let i;if(r.followSymbolicLinks)try{i=yield Pm.promises.stat(e.path)}catch(s){if(s.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){So(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw s}else i=yield Pm.promises.lstat(e.path);if(i.isDirectory()&&r.followSymbolicLinks){let s=yield Pm.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===s)){So(`Symlink cycle detected for path '${e.path}' and realpath '${s}'`);return}n.push(s)}return i})}};var rYe=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function Ice(t,e){return rYe(this,void 0,void 0,function*(){return yield Nv.create(t,e)})}o(Ice,"create");var Vv=T(require("crypto"),1),Mm=T(require("fs"),1),Nh=T(require("path"),1),mue=T(pue(),1),gue=T(require("util"),1);var Lb;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Lb||(Lb={}));var _i;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(_i||(_i={}));var Us;(function(t){t.GNU="gnu",t.BSD="bsd"})(Us||(Us={}));var Gv=2,Hv=5e3,CU=5e3,bU=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Aue=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Fb="cache.tar",wU="manifest.txt",bWt=10*Math.pow(1024,3),zv="cache read denied:";var Fm=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},dXe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=t[s]&&function(a){return new Promise(function(c,l){a=t[s](a),i(c,l,a.done,a.value)})}}function i(s,a,c,l){Promise.resolve(l).then(function(u){s({value:u,done:c})},a)}},fXe="1.0";function Rh(){return Fm(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=Nh.join(n,"actions","temp")}let r=Nh.join(e,Vv.randomUUID());return yield ru(r),r})}o(Rh,"createTempDirectory");function gc(t){return Mm.statSync(t).size}o(gc,"getArchiveFileSizeInBytes");function IU(t){return Fm(this,void 0,void 0,function*(){var e,r,n,i,s;let a=[],c=(s=process.env.GITHUB_WORKSPACE)!==null&&s!==void 0?s:process.cwd(),l=yield Ice(t.join(` -`),{implicitDescendants:!1});try{for(var u=!0,d=dXe(l.globGenerator()),f;f=yield d.next(),e=f.done,!e;u=!0){i=f.value,u=!1;let p=Nh.relative(c,i).replace(new RegExp(`\\${Nh.sep}`,"g"),"/");v(`Matched: ${p}`),p===""?a.push("."):a.push(`${p}`)}}catch(h){r={error:h}}finally{try{!u&&!e&&(n=d.return)&&(yield n.call(d))}finally{if(r)throw r.error}}return a})}o(IU,"resolvePaths");function Mb(t){return Fm(this,void 0,void 0,function*(){return gue.promisify(Mm.unlink)(t)})}o(Mb,"unlinkFile");function yue(t){return Fm(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),v(`Checking ${e} ${r.join(" ")}`);try{yield Fs(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(i=>n+=i.toString(),"stdout"),stderr:o(i=>n+=i.toString(),"stderr")}})}catch(i){v(i.message)}return n=n.trim(),v(n),n})}o(yue,"getVersion");function Ub(){return Fm(this,void 0,void 0,function*(){let t=yield yue("zstd",["--quiet"]),e=mue.clean(t);return v(`zstd version: ${e}`),t===""?_i.Gzip:_i.ZstdWithoutLong})}o(Ub,"getCompressionMethod");function Nd(t){return t===_i.Gzip?Lb.Gzip:Lb.Zstd}o(Nd,"getCacheFileName");function Eue(){return Fm(this,void 0,void 0,function*(){return Mm.existsSync(bU)?bU:(yield yue("tar")).toLowerCase().includes("gnu tar")?Gn("tar"):""})}o(Eue,"getGnuTarPathOnWindows");function SU(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(SU,"assertDefined");function Um(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(fXe),Vv.createHash("sha256").update(n.join("|")).digest("hex")}o(Um,"getCacheVersion");function Cue(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(Cue,"getRuntimeToken");var Gb=T(require("http"),1),vU=T(require("https"),1);function BU(t){let e=t.protocol==="https:";if(hXe(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new jv(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new jv(`http://${r}`)}else return}o(BU,"getProxyUrl");function hXe(t){if(!t.hostname)return!1;let e=t.hostname;if(pXe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let i=[t.hostname.toUpperCase()];typeof n=="number"&&i.push(`${i[0]}:${n}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||i.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}o(hXe,"checkBypass");function pXe(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(pXe,"isLoopbackAddress");var jv=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var Rd=T(_A(),1),bue=T(yh(),1);var Ur=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},Br;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(Br||(Br={}));var Ti;(function(t){t.Accept="accept",t.ContentType="content-type"})(Ti||(Ti={}));var ou;(function(t){t.ApplicationJson="application/json"})(ou||(ou={}));var mXe=[Br.MovedPermanently,Br.ResourceMoved,Br.SeeOther,Br.TemporaryRedirect,Br.PermanentRedirect],gXe=[Br.BadGateway,Br.ServiceUnavailable,Br.GatewayTimeout],yXe=["OPTIONS","GET","DELETE","HEAD"],EXe=10,CXe=5,yc=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}},xU=class{static{o(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return Ur(this,void 0,void 0,function*(){return new Promise(e=>Ur(this,void 0,void 0,function*(){let r=Buffer.alloc(0);this.message.on("data",n=>{r=Buffer.concat([r,n])}),this.message.on("end",()=>{e(r.toString())})}))})}readBodyBuffer(){return Ur(this,void 0,void 0,function*(){return new Promise(e=>Ur(this,void 0,void 0,function*(){let r=[];this.message.on("data",n=>{r.push(n)}),this.message.on("end",()=>{e(Buffer.concat(r))})}))})}};var au=class{static{o(this,"HttpClient")}constructor(e,r,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=r||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,r){return Ur(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,r||{})})}get(e,r){return Ur(this,void 0,void 0,function*(){return this.request("GET",e,null,r||{})})}del(e,r){return Ur(this,void 0,void 0,function*(){return this.request("DELETE",e,null,r||{})})}post(e,r,n){return Ur(this,void 0,void 0,function*(){return this.request("POST",e,r,n||{})})}patch(e,r,n){return Ur(this,void 0,void 0,function*(){return this.request("PATCH",e,r,n||{})})}put(e,r,n){return Ur(this,void 0,void 0,function*(){return this.request("PUT",e,r,n||{})})}head(e,r){return Ur(this,void 0,void 0,function*(){return this.request("HEAD",e,null,r||{})})}sendStream(e,r,n,i){return Ur(this,void 0,void 0,function*(){return this.request(e,r,n,i)})}getJson(e){return Ur(this,arguments,void 0,function*(r,n={}){n[Ti.Accept]=this._getExistingOrDefaultHeader(n,Ti.Accept,ou.ApplicationJson);let i=yield this.get(r,n);return this._processResponse(i,this.requestOptions)})}postJson(e,r){return Ur(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[Ti.Accept]=this._getExistingOrDefaultHeader(s,Ti.Accept,ou.ApplicationJson),s[Ti.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,ou.ApplicationJson);let c=yield this.post(n,a,s);return this._processResponse(c,this.requestOptions)})}putJson(e,r){return Ur(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[Ti.Accept]=this._getExistingOrDefaultHeader(s,Ti.Accept,ou.ApplicationJson),s[Ti.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,ou.ApplicationJson);let c=yield this.put(n,a,s);return this._processResponse(c,this.requestOptions)})}patchJson(e,r){return Ur(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[Ti.Accept]=this._getExistingOrDefaultHeader(s,Ti.Accept,ou.ApplicationJson),s[Ti.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,ou.ApplicationJson);let c=yield this.patch(n,a,s);return this._processResponse(c,this.requestOptions)})}request(e,r,n,i){return Ur(this,void 0,void 0,function*(){if(this._disposed)throw new Error("Client has already been disposed.");let s=new URL(r),a=this._prepareRequest(e,s,i),c=this._allowRetries&&yXe.includes(e)?this._maxRetries+1:1,l=0,u;do{if(u=yield this.requestRaw(a,n),u&&u.message&&u.message.statusCode===Br.Unauthorized){let f;for(let h of this.handlers)if(h.canHandleAuthentication(u)){f=h;break}return f?f.handleAuthentication(this,a,n):u}let d=this._maxRedirects;for(;u.message.statusCode&&mXe.includes(u.message.statusCode)&&this._allowRedirects&&d>0;){let f=u.message.headers.location;if(!f)break;let h=new URL(f);if(s.protocol==="https:"&&s.protocol!==h.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield u.readBody(),h.hostname!==s.hostname)for(let p in i)p.toLowerCase()==="authorization"&&delete i[p];a=this._prepareRequest(e,h,i),u=yield this.requestRaw(a,n),d--}if(!u.message.statusCode||!gXe.includes(u.message.statusCode))return u;l+=1,l{function s(a,c){a?i(a):c?n(c):i(new Error("Unknown error"))}o(s,"callbackForResult"),this.requestRawWithCallback(e,r,s)})})}requestRawWithCallback(e,r,n){typeof r=="string"&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8"));let i=!1;function s(l,u){i||(i=!0,n(l,u))}o(s,"handleResult");let a=e.httpModule.request(e.options,l=>{let u=new xU(l);s(void 0,u)}),c;a.on("socket",l=>{c=l}),a.setTimeout(this._socketTimeout||3*6e4,()=>{c&&c.end(),s(new Error(`Request timeout: ${e.options.path}`))}),a.on("error",function(l){s(l)}),r&&typeof r=="string"&&a.write(r,"utf8"),r&&typeof r!="string"?(r.on("close",function(){a.end()}),r.pipe(a)):a.end()}getAgent(e){let r=new URL(e);return this._getAgent(r)}getAgentDispatcher(e){let r=new URL(e),n=BU(r);if(n&&n.hostname)return this._getProxyAgentDispatcher(r,n)}_prepareRequest(e,r,n){let i={};i.parsedUrl=r;let s=i.parsedUrl.protocol==="https:";i.httpModule=s?vU:Gb;let a=s?443:80;if(i.options={},i.options.host=i.parsedUrl.hostname,i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):a,i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||""),i.options.method=e,i.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(i.options.headers["user-agent"]=this.userAgent),i.options.agent=this._getAgent(i.parsedUrl),this.handlers)for(let c of this.handlers)c.prepareRequest(i.options);return i}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},qb(this.requestOptions.headers),qb(e||{})):qb(e||{})}_getExistingOrDefaultHeader(e,r,n){let i;if(this.requestOptions&&this.requestOptions.headers){let a=qb(this.requestOptions.headers)[r];a&&(i=typeof a=="number"?a.toString():a)}let s=e[r];return s!==void 0?typeof s=="number"?s.toString():s:i!==void 0?i:n}_getExistingOrDefaultContentTypeHeader(e,r){let n;if(this.requestOptions&&this.requestOptions.headers){let s=qb(this.requestOptions.headers)[Ti.ContentType];s&&(typeof s=="number"?n=String(s):Array.isArray(s)?n=s.join(", "):n=s)}let i=e[Ti.ContentType];return i!==void 0?typeof i=="number"?String(i):Array.isArray(i)?i.join(", "):i:n!==void 0?n:r}_getAgent(e){let r,n=BU(e),i=n&&n.hostname;if(this._keepAlive&&i&&(r=this._proxyAgent),i||(r=this._agent),r)return r;let s=e.protocol==="https:",a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||Gb.globalAgent.maxSockets),n&&n.hostname){let c={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},l,u=n.protocol==="https:";s?l=u?Rd.httpsOverHttps:Rd.httpsOverHttp:l=u?Rd.httpOverHttps:Rd.httpOverHttp,r=l(c),this._proxyAgent=r}if(!r){let c={keepAlive:this._keepAlive,maxSockets:a};r=s?new vU.Agent(c):new Gb.Agent(c),this._agent=r}return s&&this._ignoreSslError&&(r.options=Object.assign(r.options||{},{rejectUnauthorized:!1})),r}_getProxyAgentDispatcher(e,r){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;let i=e.protocol==="https:";return n=new bue.ProxyAgent(Object.assign({uri:r.href,pipelining:this._keepAlive?1:0},(r.username||r.password)&&{token:`Basic ${Buffer.from(`${r.username}:${r.password}`).toString("base64")}`})),this._proxyAgentDispatcher=n,i&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_getUserAgentWithOrchestrationId(e){let r=e||"actions/http-client",n=process.env.ACTIONS_ORCHESTRATION_ID;if(n){let i=n.replace(/[^a-z0-9_.-]/gi,"_");return`${r} actions_orchestration_id/${i}`}return r}_performExponentialBackoff(e){return Ur(this,void 0,void 0,function*(){e=Math.min(EXe,e);let r=CXe*Math.pow(2,e);return new Promise(n=>setTimeout(()=>n(),r))})}_processResponse(e,r){return Ur(this,void 0,void 0,function*(){return new Promise((n,i)=>Ur(this,void 0,void 0,function*(){let s=e.message.statusCode||0,a={statusCode:s,result:null,headers:{}};s===Br.NotFound&&n(a);function c(d,f){if(typeof f=="string"){let h=new Date(f);if(!isNaN(h.valueOf()))return h}return f}o(c,"dateTimeDeserializer");let l,u;try{u=yield e.readBody(),u&&u.length>0&&(r&&r.deserializeDates?l=JSON.parse(u,c):l=JSON.parse(u),a.result=l),a.headers=e.message.headers}catch{}if(s>299){let d;l&&l.message?d=l.message:u&&u.length>0?d=u:d=`Failed request: (${s})`;let f=new yc(d,s);f.result=a.result,i(f)}else n(a)}))})}},qb=o(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys");var bXe=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};var qm=class{static{o(this,"BearerCredentialHandler")}constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization=`Bearer ${this.token}`}canHandleAuthentication(){return!1}handleAuthentication(){return bXe(this,void 0,void 0,function*(){throw new Error("not implemented")})}};var gg=T(require("fs"),1),KAe=require("url");var Ec=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};var wue=require("node:os"),Iue=T(require("node:util"),1),Sue=T(require("node:process"),1);function Bue(t,...e){Sue.default.stderr.write(`${Iue.default.format(t,...e)}${wue.EOL}`)}o(Bue,"log");var xue=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Nue,NU=[],RU=[],Wv=[];xue&&_U(xue);var Rue=Object.assign(t=>_ue(t),{enable:_U,enabled:TU,disable:wXe,log:Bue});function _U(t){Nue=t,NU=[],RU=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?RU.push(r.substring(1)):NU.push(r);for(let r of Wv)r.enabled=TU(r.namespace)}o(_U,"enable");function TU(t){if(t.endsWith("*"))return!0;for(let e of RU)if(vue(t,e))return!1;for(let e of NU)if(vue(t,e))return!0;return!1}o(TU,"enabled");function vue(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let h=[],p="";for(let m of e)m==="*"&&p==="*"||(p=m,h.push(m));r=h.join("")}let n=0,i=0,s=r.length,a=t.length,c=-1,l=-1;for(;n=0){if(i=c+1,n=l+1,n===a)return!1;for(;t[n]!==r[i];)if(n++,n===a)return!1;l=n,n++,i++;continue}else return!1;let u=n===t.length,d=i===r.length,f=i===r.length-1&&r[i]==="*";return u&&(d||f)}o(vue,"namespaceMatches");function wXe(){let t=Nue||"";return _U(""),t}o(wXe,"disable");function _ue(t){let e=Object.assign(r,{enabled:TU(t),destroy:IXe,log:Rue.log,namespace:t,extend:SXe});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return o(r,"debug"),Wv.push(e),e}o(_ue,"createDebugger");function IXe(){let t=Wv.indexOf(this);return t>=0?(Wv.splice(t,1),!0):!1}o(IXe,"destroy");function SXe(t){let e=_ue(`${this.namespace}:${t}`);return e.log=this.log,e}o(SXe,"extend");var Gm=Rue;var DU=["verbose","info","warning","error"],Tue={verbose:400,info:300,warning:200,error:100};function Due(t,e){e.log=(...r)=>{t.log(...r)}}o(Due,"patchLogMethod");function Que(t){return DU.includes(t)}o(Que,"isTypeSpecRuntimeLogLevel");function Jv(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,n,i=Gm(t.namespace);i.log=(...d)=>{Gm.log(...d)};function s(d){if(d&&!Que(d))throw new Error(`Unknown log level '${d}'. Acceptable values: ${DU.join(",")}`);n=d;let f=[];for(let h of e)a(h)&&f.push(h.namespace);Gm.enable(f.join(","))}o(s,"contextSetLogLevel"),r&&(Que(r)?s(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${DU.join(", ")}.`));function a(d){return!!(n&&Tue[d.level]<=Tue[n])}o(a,"shouldEnable");function c(d,f){let h=Object.assign(d.extend(f),{level:f});if(Due(d,h),a(h)){let p=Gm.disable();Gm.enable(p+","+h.namespace)}return e.add(h),h}o(c,"createLogger");function l(){return n}o(l,"contextGetLogLevel");function u(d){let f=i.extend(d);return Due(i,f),{error:c(f,"error"),warning:c(f,"warning"),info:c(f,"info"),verbose:c(f,"verbose")}}return o(u,"contextCreateClientLogger"),{setLogLevel:s,getLogLevel:l,createClientLogger:u,logger:i}}o(Jv,"createLoggerContext");var kue=Jv({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),BXe=kue.logger;function Hb(t){return kue.createClientLogger(t)}o(Hb,"createClientLogger");function Yv(t){return t.toLowerCase()}o(Yv,"normalizeName");function*xXe(t){for(let e of t.values())yield[e.name,e.value]}o(xXe,"headerIterator");var QU=class{static{o(this,"HttpHeadersImpl")}_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(Yv(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(Yv(e))?.value}has(e){return this._headersMap.has(Yv(e))}delete(e){this._headersMap.delete(Yv(e))}toJSON(e={}){let r={};if(e.preserveCase)for(let n of this._headersMap.values())r[n.name]=n.value;else for(let[n,i]of this._headersMap)r[n]=i.value;return r}toString(){return JSON.stringify(this.toJSON({preserveCase:!0}))}[Symbol.iterator](){return xXe(this._headersMap)}};function qs(t){return new QU(t)}o(qs,"createHttpHeaders");function _h(){return crypto.randomUUID()}o(_h,"randomUUID");var kU=class{static{o(this,"PipelineRequestImpl")}url;method;headers;timeout;withCredentials;body;multipartBody;formData;streamResponseStatusCodes;enableBrowserStreams;proxySettings;disableKeepAlive;abortSignal;requestId;allowInsecureConnection;onUploadProgress;onDownloadProgress;requestOverrides;authSchemes;constructor(e){this.url=e.url,this.body=e.body,this.headers=e.headers??qs(),this.method=e.method??"GET",this.timeout=e.timeout??0,this.multipartBody=e.multipartBody,this.formData=e.formData,this.disableKeepAlive=e.disableKeepAlive??!1,this.proxySettings=e.proxySettings,this.streamResponseStatusCodes=e.streamResponseStatusCodes,this.withCredentials=e.withCredentials??!1,this.abortSignal=e.abortSignal,this.onUploadProgress=e.onUploadProgress,this.onDownloadProgress=e.onDownloadProgress,this.requestId=e.requestId||_h(),this.allowInsecureConnection=e.allowInsecureConnection??!1,this.enableBrowserStreams=e.enableBrowserStreams??!1,this.requestOverrides=e.requestOverrides,this.authSchemes=e.authSchemes}};function Kv(t){return new kU(t)}o(Kv,"createPipelineRequest");var Pue=new Set(["Deserialize","Serialize","Retry","Sign"]),PU=class t{static{o(this,"HttpPipeline")}_policies=[];_orderedPolicies;constructor(e){this._policies=e?.slice(0)??[],this._orderedPolicies=void 0}addPolicy(e,r={}){if(r.phase&&r.afterPhase)throw new Error("Policies inside a phase cannot specify afterPhase.");if(r.phase&&!Pue.has(r.phase))throw new Error(`Invalid phase name: ${r.phase}`);if(r.afterPhase&&!Pue.has(r.afterPhase))throw new Error(`Invalid afterPhase name: ${r.afterPhase}`);this._policies.push({policy:e,options:r}),this._orderedPolicies=void 0}removePolicy(e){let r=[];return this._policies=this._policies.filter(n=>e.name&&n.policy.name===e.name||e.phase&&n.options.phase===e.phase?(r.push(n.policy),!1):!0),this._orderedPolicies=void 0,r}sendRequest(e,r){return this.getOrderedPolicies().reduceRight((s,a)=>c=>a.sendRequest(c,s),s=>e.sendRequest(s))(r)}getOrderedPolicies(){return this._orderedPolicies||(this._orderedPolicies=this.orderPolicies()),this._orderedPolicies}clone(){return new t(this._policies)}static create(){return new t}orderPolicies(){let e=[],r=new Map;function n(m){return{name:m,policies:new Set,hasRun:!1,hasAfterPolicies:!1}}o(n,"createPhase");let i=n("Serialize"),s=n("None"),a=n("Deserialize"),c=n("Retry"),l=n("Sign"),u=[i,s,a,c,l];function d(m){return m==="Retry"?c:m==="Serialize"?i:m==="Deserialize"?a:m==="Sign"?l:s}o(d,"getPhase");for(let m of this._policies){let A=m.policy,E=m.options,y=A.name;if(r.has(y))throw new Error("Duplicate policy names not allowed in pipeline");let C={policy:A,dependsOn:new Set,dependants:new Set};E.afterPhase&&(C.afterPhase=d(E.afterPhase),C.afterPhase.hasAfterPolicies=!0),r.set(y,C),d(E.phase).policies.add(C)}for(let m of this._policies){let{policy:A,options:E}=m,y=A.name,C=r.get(y);if(!C)throw new Error(`Missing node for policy ${y}`);if(E.afterPolicies)for(let w of E.afterPolicies){let B=r.get(w);B&&(C.dependsOn.add(B),B.dependants.add(C))}if(E.beforePolicies)for(let w of E.beforePolicies){let B=r.get(w);B&&(B.dependsOn.add(C),C.dependants.add(B))}}function f(m){m.hasRun=!0;for(let A of m.policies)if(!(A.afterPhase&&(!A.afterPhase.hasRun||A.afterPhase.policies.size))&&A.dependsOn.size===0){e.push(A.policy);for(let E of A.dependants)E.dependsOn.delete(A);r.delete(A.policy.name),m.policies.delete(A)}}o(f,"walkPhase");function h(){for(let m of u){if(f(m),m.policies.size>0&&m!==s){s.hasRun||f(s);return}m.hasAfterPolicies&&f(s)}}o(h,"walkPhases");let p=0;for(;r.size>0;){p++;let m=e.length;if(h(),e.length<=m&&p>1)throw new Error("Cannot satisfy policy dependencies due to requirements cycle.")}return e}};function Xv(){return PU.create()}o(Xv,"createEmptyPipeline");function Hm(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof Date)}o(Hm,"isObject");function Th(t){if(Hm(t)){let e=typeof t.name=="string",r=typeof t.message=="string";return e&&r}return!1}o(Th,"isError");var Oue=require("node:util"),Lue=Oue.inspect.custom;var OU="REDACTED",vXe=["x-ms-client-request-id","x-ms-return-client-request-id","x-ms-useragent","x-ms-correlation-request-id","x-ms-request-id","client-request-id","ms-cv","return-client-request-id","traceparent","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","Origin","Accept","Accept-Encoding","Cache-Control","Connection","Content-Length","Content-Type","Date","ETag","Expires","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","Last-Modified","Pragma","Request-Id","Retry-After","Server","Transfer-Encoding","User-Agent","WWW-Authenticate"],NXe=["api-version"],Na=class{static{o(this,"Sanitizer")}allowedHeaderNames;allowedQueryParameters;constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:r=[]}={}){e=vXe.concat(e),r=NXe.concat(r),this.allowedHeaderNames=new Set(e.map(n=>n.toLowerCase())),this.allowedQueryParameters=new Set(r.map(n=>n.toLowerCase()))}sanitize(e){let r=new Set;return JSON.stringify(e,(n,i)=>{if(i instanceof Error)return{...i,name:i.name,message:i.message};if(n==="headers")return this.sanitizeHeaders(i);if(n==="url")return this.sanitizeUrl(i);if(n==="query")return this.sanitizeQuery(i);if(n==="body")return;if(n==="response")return;if(n==="operationSpec")return;if(Array.isArray(i)||Hm(i)){if(r.has(i))return"[Circular]";r.add(i)}return i},2)}sanitizeUrl(e){if(typeof e!="string"||e===null||e==="")return e;let r=new URL(e);if(!r.search)return e;for(let[n]of r.searchParams)this.allowedQueryParameters.has(n.toLowerCase())||r.searchParams.set(n,OU);return r.toString()}sanitizeHeaders(e){let r={};for(let n of Object.keys(e))this.allowedHeaderNames.has(n.toLowerCase())?r[n]=e[n]:r[n]=OU;return r}sanitizeQuery(e){if(typeof e!="object"||e===null)return e;let r={};for(let n of Object.keys(e))this.allowedQueryParameters.has(n.toLowerCase())?r[n]=e[n]:r[n]=OU;return r}};var RXe=new Na,Di=class t extends Error{static{o(this,"RestError")}static REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";static PARSE_ERROR="PARSE_ERROR";code;statusCode;request;response;details;constructor(e,r={}){super(e),this.name="RestError",this.code=r.code,this.statusCode=r.statusCode,Object.defineProperty(this,"request",{value:r.request,enumerable:!1}),Object.defineProperty(this,"response",{value:r.response,enumerable:!1});let n=this.request?.agent?{maxFreeSockets:this.request.agent.maxFreeSockets,maxSockets:this.request.agent.maxSockets}:void 0;Object.defineProperty(this,Lue,{value:o(()=>`RestError: ${this.message} - ${RXe.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function Zv(t){return t instanceof Di?!0:Th(t)&&t.name==="RestError"}o(Zv,"isRestError");function ns(t,e){return Buffer.from(t,e)}o(ns,"stringToUint8Array");var eN=T(require("node:http"),1),tN=T(require("node:https"),1),LU=T(require("node:zlib"),1),Mue=require("node:stream");var No=Hb("ts-http-runtime");var _Xe={};function zb(t){return t&&typeof t.pipe=="function"}o(zb,"isReadableStream");function Fue(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=o(()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)},"handler");t.on("close",r),t.on("end",r),t.on("error",r)})}o(Fue,"isStreamComplete");function Uue(t){return t&&typeof t.byteLength=="number"}o(Uue,"isArrayBuffer");var rN=class extends Mue.Transform{static{o(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(i){n(i)}}constructor(e){super(),this.progressCallback=e}},FU=class{static{o(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Ec("The operation was aborted. Request has already been canceled.");n=o(u=>{u.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let i;e.timeout>0&&(i=setTimeout(()=>{let u=new Na;No.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let s=e.headers.get("Accept-Encoding"),a=s?.includes("gzip")||s?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let u=kXe(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let m=e.onUploadProgress,A=new rN(m);A.on("error",E=>{No.error("Error in upload progress",E)}),zb(c)?c.pipe(A):A.end(c),c=A}let u=await this.makeRequest(e,r,c);i!==void 0&&clearTimeout(i);let d=TXe(u),h={status:u.statusCode??0,headers:d,request:e};if(e.method==="HEAD")return u.resume(),h;l=a?DXe(u,d):u;let p=e.onDownloadProgress;if(p){let m=new rN(p);m.on("error",A=>{No.error("Error in download progress",A)}),l.pipe(m),l=m}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(h.status)?h.readableStreamBody=l:h.bodyAsText=await QXe(l),h}finally{if(e.abortSignal&&n){let u=Promise.resolve();zb(c)&&(u=Fue(c));let d=Promise.resolve();zb(l)&&(d=Fue(l)),Promise.all([u,d]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(f=>{No.warning("Error when cleaning up abortListener on httpRequest",f)})}}}makeRequest(e,r,n){let i=new URL(e.url),s=i.protocol!=="https:";if(s&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,s),hostname:i.hostname,path:`${i.pathname}${i.search}`,port:i.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((l,u)=>{let d=s?eN.default.request(c,l):tN.default.request(c,l);d.once("error",f=>{u(new Di(f.message,{code:f.code??Di.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let f=new Ec("The operation was aborted. Rejecting from abort signal callback while making request.");d.destroy(f),u(f)}),n&&zb(n)?n.pipe(d):n?typeof n=="string"||Buffer.isBuffer(n)?d.end(n):Uue(n)?d.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(No.error("Unrecognized body type",n),u(new Di("Unrecognized body type"))):d.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?eN.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new eN.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return tN.default.globalAgent;let i=e.tlsSettings??_Xe,s=this.cachedHttpsAgents.get(i);return s&&s.options.keepAlive===!n||(No.info("No cached TLS Agent exist, creating a new Agent"),s=new tN.default.Agent({keepAlive:!n,...i}),this.cachedHttpsAgents.set(i,s)),s}}};function TXe(t){let e=qs();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}o(TXe,"getResponseHeaders");function DXe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=LU.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=LU.default.createInflate();return t.pipe(n),n}return t}o(DXe,"getDecodedResponseStream");function QXe(t){return new Promise((e,r)=>{let n=[];t.on("data",i=>{Buffer.isBuffer(i)?n.push(i):n.push(Buffer.from(i))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",i=>{i&&i?.name==="AbortError"?r(i):r(new Di(`Error reading response as text: ${i.message}`,{code:Di.PARSE_ERROR}))})})}o(QXe,"streamToText");function kXe(t){return t?Buffer.isBuffer(t)?t.length:zb(t)?null:Uue(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}o(kXe,"getBodyLength");function que(){return new FU}o(que,"createNodeHttpClient");function nN(){return que()}o(nN,"createDefaultHttpClient");var MU="logPolicy";function iN(t={}){let e=t.logger??No.info,r=new Na({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:MU,async sendRequest(n,i){if(!e.enabled)return i(n);e(`Request: ${r.sanitize(n)}`);let s=await i(n);return e(`Response status code: ${s.status}`),e(`Headers: ${r.sanitize(s.headers)}`),s}}}o(iN,"logPolicy");var sN="redirectPolicy",Gue=["GET","HEAD"];function oN(t={}){let{maxRetries:e=20}=t;return{name:sN,async sendRequest(r,n){let i=await n(r);return Hue(n,i,e)}}}o(oN,"redirectPolicy");async function Hue(t,e,r,n=0){let{request:i,status:s,headers:a}=e,c=a.get("location");if(c&&(s===300||s===301&&Gue.includes(i.method)||s===302&&Gue.includes(i.method)||s===303&&i.method==="POST"||s===307)&&n{let s,a,c=o(()=>i(new Ec(r?.abortErrorMsg?r?.abortErrorMsg:PXe)),"rejectOnAbort"),l=o(()=>{r?.abortSignal&&a&&r.abortSignal.removeEventListener("abort",a)},"removeListeners");if(a=o(()=>(s&&clearTimeout(s),l(),c()),"onAborted"),r?.abortSignal&&r.abortSignal.aborted)return c();s=setTimeout(()=>{l(),n(e)},t),r?.abortSignal&&r.abortSignal.addEventListener("abort",a)})}o($ue,"delay");function jue(t,e){let r=t.headers.get(e);if(!r)return;let n=Number(r);if(!Number.isNaN(n))return n}o(jue,"parseHeaderValueAsNumber");var UU="Retry-After",OXe=["retry-after-ms","x-ms-retry-after-ms",UU];function Wue(t){if(t&&[429,503].includes(t.status))try{for(let i of OXe){let s=jue(t,i);if(s===0||s)return s*(i===UU?1e3:1)}let e=t.headers.get(UU);if(!e)return;let n=Date.parse(e)-Date.now();return Number.isFinite(n)?Math.max(0,n):void 0}catch{return}}o(Wue,"getRetryAfterInMs");function Jue(t){return Number.isFinite(Wue(t))}o(Jue,"isThrottlingRetryResponse");function qU(){return{name:"throttlingRetryStrategy",retry({response:t}){let e=Wue(t);return Number.isFinite(e)?{retryAfterInMs:e}:{skipStrategy:!0}}}}o(qU,"throttlingRetryStrategy");var LXe=1e3,FXe=1e3*64;function uN(t={}){let e=t.retryDelayInMs??LXe,r=t.maxRetryDelayInMs??FXe;return{name:"exponentialRetryStrategy",retry({retryCount:n,response:i,responseError:s}){let a=UXe(s),c=a&&t.ignoreSystemErrors,l=MXe(i),u=l&&t.ignoreHttpStatusCodes;return i&&(Jue(i)||!l)||u||c?{skipStrategy:!0}:s&&!a&&!l?{errorToThrow:s}:lN(n,{retryDelayInMs:e,maxRetryDelayInMs:r})}}}o(uN,"exponentialRetryStrategy");function MXe(t){return!!(t&&t.status!==void 0&&(t.status>=500||t.status===408)&&t.status!==501&&t.status!==505)}o(MXe,"isExponentialRetryResponse");function UXe(t){return t?t.code==="ETIMEDOUT"||t.code==="ESOCKETTIMEDOUT"||t.code==="ECONNREFUSED"||t.code==="ECONNRESET"||t.code==="ENOENT"||t.code==="ENOTFOUND":!1}o(UXe,"isSystemError");var qXe=Hb("ts-http-runtime retryPolicy"),GXe="retryPolicy";function Qh(t,e={maxRetries:3}){let r=e.logger||qXe;return{name:GXe,async sendRequest(n,i){let s,a,c=-1;e:for(;;){c+=1,s=void 0,a=void 0;try{r.info(`Retry ${c}: Attempting to send request`,n.requestId),s=await i(n),r.info(`Retry ${c}: Received a response from request`,n.requestId)}catch(l){if(r.error(`Retry ${c}: Received an error from request`,n.requestId),a=l,!l||a.name!=="RestError")throw l;s=a.response}if(n.abortSignal?.aborted)throw r.error(`Retry ${c}: Request aborted.`),new Ec;if(c>=(e.maxRetries??3)){if(r.info(`Retry ${c}: Maximum retries reached. Returning the last received response, or throwing the last received error.`),a)throw a;if(s)return s;throw new Error("Maximum retries reached with no response or error to throw")}r.info(`Retry ${c}: Processing ${t.length} retry strategies.`);t:for(let l of t){let u=l.logger||r;u.info(`Retry ${c}: Processing retry strategy ${l.name}.`);let d=l.retry({retryCount:c,response:s,responseError:a});if(d.skipStrategy){u.info(`Retry ${c}: Skipped.`);continue t}let{errorToThrow:f,retryAfterInMs:h,redirectTo:p}=d;if(f)throw u.error(`Retry ${c}: Retry strategy ${l.name} throws error:`,f),f;if(h||h===0){u.info(`Retry ${c}: Retry strategy ${l.name} retries after ${h}`),await $ue(h,void 0,{abortSignal:n.abortSignal});continue e}if(p){u.info(`Retry ${c}: Retry strategy ${l.name} redirects to ${p}`),n.url=p;continue e}}if(a)throw r.info("None of the retry strategies could work with the received error. Throwing it."),a;if(s)return r.info("None of the retry strategies could work with the received response. Returning it."),s}}}}o(Qh,"retryPolicy");var GU="defaultRetryPolicy";function dN(t={}){return{name:GU,sendRequest:Qh([qU(),uN(t)],{maxRetries:t.maxRetries??3}).sendRequest}}o(dN,"defaultRetryPolicy");var Yue=typeof window<"u"&&typeof window.document<"u",Kue=typeof self=="object"&&typeof self?.importScripts=="function"&&(self.constructor?.name==="DedicatedWorkerGlobalScope"||self.constructor?.name==="ServiceWorkerGlobalScope"||self.constructor?.name==="SharedWorkerGlobalScope"),Xue=typeof Deno<"u"&&typeof Deno.version<"u"&&typeof Deno.version.deno<"u",Zue=typeof Bun<"u"&&typeof Bun.version<"u",kh=typeof globalThis.process<"u"&&!!globalThis.process.version&&!!globalThis.process.versions?.node;var ede=typeof navigator<"u"&&navigator?.product==="ReactNative";var HU="formDataPolicy";function HXe(t){let e={};for(let[r,n]of t.entries())e[r]??=[],e[r].push(n);return e}o(HXe,"formDataToFormDataMap");function fN(){return{name:HU,async sendRequest(t,e){if(kh&&typeof FormData<"u"&&t.body instanceof FormData&&(t.formData=HXe(t.body),t.body=void 0),t.formData){let r=t.headers.get("Content-Type");r&&r.indexOf("application/x-www-form-urlencoded")!==-1?t.body=zXe(t.formData):await VXe(t.formData,t),t.formData=void 0}return e(t)}}}o(fN,"formDataPolicy");function zXe(t){let e=new URLSearchParams;for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let i of n)e.append(r,i.toString());else e.append(r,n.toString());return e.toString()}o(zXe,"wwwFormUrlEncode");async function VXe(t,e){let r=e.headers.get("Content-Type");if(r&&!r.startsWith("multipart/form-data"))return;e.headers.set("Content-Type",r??"multipart/form-data");let n=[];for(let[i,s]of Object.entries(t))for(let a of Array.isArray(s)?s:[s])if(typeof a=="string")n.push({headers:qs({"Content-Disposition":`form-data; name="${i}"`}),body:ns(a,"utf-8")});else{if(a==null||typeof a!="object")throw new Error(`Unexpected value for key ${i}: ${a}. Value should be serialized to string first.`);{let c=a.name||"blob",l=qs();l.set("Content-Disposition",`form-data; name="${i}"; filename="${c}"`),l.set("Content-Type",a.type||"application/octet-stream"),n.push({headers:l,body:a})}}e.multipartBody={parts:n}}o(VXe,"prepareFormData");var Fde=T(Sde(),1),Mde=T(kde(),1);var eet="HTTPS_PROXY",tet="HTTP_PROXY",ret="ALL_PROXY",net="NO_PROXY",KU="proxyPolicy",Pde=[],Ude=!1,iet=new Map;function wN(t){if(process.env[t])return process.env[t];if(process.env[t.toLowerCase()])return process.env[t.toLowerCase()]}o(wN,"getEnvironmentValue");function qde(){if(!process)return;let t=wN(eet),e=wN(ret),r=wN(tet);return t||e||r}o(qde,"loadEnvironmentProxyValue");function set(t,e,r){if(e.length===0)return!1;let n=new URL(t).hostname;if(r?.has(n))return r.get(n);let i=!1;for(let s of e)s[0]==="."?(n.endsWith(s)||n.length===s.length-1&&n===s.slice(1))&&(i=!0):n===s&&(i=!0);return r?.set(n,i),i}o(set,"isBypassed");function oet(){let t=wN(net);return Ude=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}o(oet,"loadNoProxy");function XU(t){if(!t&&(t=qde(),!t))return;let e=new URL(t);return{host:(e.protocol?e.protocol+"//":"")+e.hostname,port:Number.parseInt(e.port||"80"),username:e.username,password:e.password}}o(XU,"getDefaultProxySettings");function aet(){let t=qde();return t?new URL(t):void 0}o(aet,"getDefaultProxySettingsInternal");function Ode(t){let e;try{e=new URL(t.host)}catch{throw new Error(`Expecting a valid host string in proxy settings, but found "${t.host}".`)}return e.port=String(t.port),t.username&&(e.username=t.username),t.password&&(e.password=t.password),e}o(Ode,"getUrlFromProxySettings");function Lde(t,e,r){if(t.agent)return;let i=new URL(t.url).protocol!=="https:";t.tlsSettings&&No.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.");let s=t.headers.toJSON();i?(e.httpProxyAgent||(e.httpProxyAgent=new Mde.HttpProxyAgent(r,{headers:s})),t.agent=e.httpProxyAgent):(e.httpsProxyAgent||(e.httpsProxyAgent=new Fde.HttpsProxyAgent(r,{headers:s})),t.agent=e.httpsProxyAgent)}o(Lde,"setProxyAgentOnRequest");function IN(t,e){Ude||Pde.push(...oet());let r=t?Ode(t):aet(),n={};return{name:KU,async sendRequest(i,s){return!i.proxySettings&&r&&!set(i.url,e?.customNoProxyList??Pde,e?.customNoProxyList?void 0:iet)?Lde(i,n,r):i.proxySettings&&Lde(i,n,Ode(i.proxySettings)),s(i)}}}o(IN,"proxyPolicy");var ZU="agentPolicy";function SN(t){return{name:ZU,sendRequest:o(async(e,r)=>(e.agent||(e.agent=t),r(e)),"sendRequest")}}o(SN,"agentPolicy");var eq="tlsPolicy";function BN(t){return{name:eq,sendRequest:o(async(e,r)=>(e.tlsSettings||(e.tlsSettings=t),r(e)),"sendRequest")}}o(BN,"tlsPolicy");function xN(t){return typeof t.stream=="function"}o(xN,"isBlob");var vN=require("stream");async function*Gde(){let t=this.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)return;yield r}}finally{t.releaseLock()}}o(Gde,"streamAsyncIterator");function cet(t){t[Symbol.asyncIterator]||(t[Symbol.asyncIterator]=Gde.bind(t)),t.values||(t.values=Gde.bind(t))}o(cet,"makeAsyncIterable");function Hde(t){return t instanceof ReadableStream?(cet(t),vN.Readable.fromWeb(t)):t}o(Hde,"ensureNodeStream");function uet(t){return t instanceof Uint8Array?vN.Readable.from(Buffer.from(t)):xN(t)?Hde(t.stream()):Hde(t)}o(uet,"toStream");async function zde(t){return function(){let e=t.map(r=>typeof r=="function"?r():r).map(uet);return vN.Readable.from((async function*(){for(let r of e)for await(let n of r)yield n})())}}o(zde,"concat");function det(){return`----AzSDKFormBoundary${_h()}`}o(det,"generateBoundary");function fet(t){let e="";for(let[r,n]of t)e+=`${r}: ${n}\r -`;return e}o(fet,"encodeHeaders");function het(t){return t instanceof Uint8Array?t.byteLength:xN(t)?t.size===-1?void 0:t.size:void 0}o(het,"getLength");function pet(t){let e=0;for(let r of t){let n=het(r);if(n===void 0)return;e+=n}return e}o(pet,"getTotalLength");async function Aet(t,e,r){let n=[ns(`--${r}`,"utf-8"),...e.flatMap(s=>[ns(`\r -`,"utf-8"),ns(fet(s.headers),"utf-8"),ns(`\r +`).map(s=>s.trim());for(let s of i)!s||s.startsWith("#")||n.patterns.push(new Tb(s));return n.searchPaths.push(...VM(n.patterns)),n})}static stat(e,r,n){return eU(this,void 0,void 0,function*(){let i;if(r.followSymbolicLinks)try{i=yield Om.promises.stat(e.path)}catch(s){if(s.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){So(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw s}else i=yield Om.promises.lstat(e.path);if(i.isDirectory()&&r.followSymbolicLinks){let s=yield Om.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===s)){So(`Symlink cycle detected for path '${e.path}' and realpath '${s}'`);return}n.push(s)}return i})}};var sYe=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function Sce(t,e){return sYe(this,void 0,void 0,function*(){return yield _v.create(t,e)})}o(Sce,"create");var $v=T(require("crypto"),1),Um=T(require("fs"),1),_h=T(require("path"),1),gue=T(Aue(),1),yue=T(require("util"),1);var Fb;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Fb||(Fb={}));var Ri;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Ri||(Ri={}));var Us;(function(t){t.GNU="gnu",t.BSD="bsd"})(Us||(Us={}));var Hv=2,zv=5e3,bU=5e3,wU=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,mue=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Mb="cache.tar",IU="manifest.txt",BWt=10*Math.pow(1024,3),Vv="cache read denied:";var Mm=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},pXe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=t[s]&&function(a){return new Promise(function(c,l){a=t[s](a),i(c,l,a.done,a.value)})}}function i(s,a,c,l){Promise.resolve(l).then(function(u){s({value:u,done:c})},a)}},AXe="1.0";function Rh(){return Mm(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=_h.join(n,"actions","temp")}let r=_h.join(e,$v.randomUUID());return yield nu(r),r})}o(Rh,"createTempDirectory");function gc(t){return Um.statSync(t).size}o(gc,"getArchiveFileSizeInBytes");function SU(t){return Mm(this,void 0,void 0,function*(){var e,r,n,i,s;let a=[],c=(s=process.env.GITHUB_WORKSPACE)!==null&&s!==void 0?s:process.cwd(),l=yield Sce(t.join(` +`),{implicitDescendants:!1});try{for(var u=!0,d=pXe(l.globGenerator()),f;f=yield d.next(),e=f.done,!e;u=!0){i=f.value,u=!1;let p=_h.relative(c,i).replace(new RegExp(`\\${_h.sep}`,"g"),"/");v(`Matched: ${p}`),p===""?a.push("."):a.push(`${p}`)}}catch(h){r={error:h}}finally{try{!u&&!e&&(n=d.return)&&(yield n.call(d))}finally{if(r)throw r.error}}return a})}o(SU,"resolvePaths");function Ub(t){return Mm(this,void 0,void 0,function*(){return yue.promisify(Um.unlink)(t)})}o(Ub,"unlinkFile");function Eue(t){return Mm(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),v(`Checking ${e} ${r.join(" ")}`);try{yield Fs(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(i=>n+=i.toString(),"stdout"),stderr:o(i=>n+=i.toString(),"stderr")}})}catch(i){v(i.message)}return n=n.trim(),v(n),n})}o(Eue,"getVersion");function qb(){return Mm(this,void 0,void 0,function*(){let t=yield Eue("zstd",["--quiet"]),e=gue.clean(t);return v(`zstd version: ${e}`),t===""?Ri.Gzip:Ri.ZstdWithoutLong})}o(qb,"getCompressionMethod");function _d(t){return t===Ri.Gzip?Fb.Gzip:Fb.Zstd}o(_d,"getCacheFileName");function Cue(){return Mm(this,void 0,void 0,function*(){return Um.existsSync(wU)?wU:(yield Eue("tar")).toLowerCase().includes("gnu tar")?Gn("tar"):""})}o(Cue,"getGnuTarPathOnWindows");function BU(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(BU,"assertDefined");function qm(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(AXe),$v.createHash("sha256").update(n.join("|")).digest("hex")}o(qm,"getCacheVersion");function bue(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(bue,"getRuntimeToken");var Hb=T(require("http"),1),NU=T(require("https"),1);function xU(t){let e=t.protocol==="https:";if(mXe(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new Wv(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new Wv(`http://${r}`)}else return}o(xU,"getProxyUrl");function mXe(t){if(!t.hostname)return!1;let e=t.hostname;if(gXe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let i=[t.hostname.toUpperCase()];typeof n=="number"&&i.push(`${i[0]}:${n}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||i.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}o(mXe,"checkBypass");function gXe(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(gXe,"isLoopbackAddress");var Wv=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var Rd=T(TA(),1),wue=T(Eh(),1);var Ur=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},Br;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(Br||(Br={}));var Ti;(function(t){t.Accept="accept",t.ContentType="content-type"})(Ti||(Ti={}));var au;(function(t){t.ApplicationJson="application/json"})(au||(au={}));var EXe=[Br.MovedPermanently,Br.ResourceMoved,Br.SeeOther,Br.TemporaryRedirect,Br.PermanentRedirect],CXe=[Br.BadGateway,Br.ServiceUnavailable,Br.GatewayTimeout],bXe=["OPTIONS","GET","DELETE","HEAD"],wXe=10,IXe=5,yc=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}},vU=class{static{o(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return Ur(this,void 0,void 0,function*(){return new Promise(e=>Ur(this,void 0,void 0,function*(){let r=Buffer.alloc(0);this.message.on("data",n=>{r=Buffer.concat([r,n])}),this.message.on("end",()=>{e(r.toString())})}))})}readBodyBuffer(){return Ur(this,void 0,void 0,function*(){return new Promise(e=>Ur(this,void 0,void 0,function*(){let r=[];this.message.on("data",n=>{r.push(n)}),this.message.on("end",()=>{e(Buffer.concat(r))})}))})}};var cu=class{static{o(this,"HttpClient")}constructor(e,r,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=r||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,r){return Ur(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,r||{})})}get(e,r){return Ur(this,void 0,void 0,function*(){return this.request("GET",e,null,r||{})})}del(e,r){return Ur(this,void 0,void 0,function*(){return this.request("DELETE",e,null,r||{})})}post(e,r,n){return Ur(this,void 0,void 0,function*(){return this.request("POST",e,r,n||{})})}patch(e,r,n){return Ur(this,void 0,void 0,function*(){return this.request("PATCH",e,r,n||{})})}put(e,r,n){return Ur(this,void 0,void 0,function*(){return this.request("PUT",e,r,n||{})})}head(e,r){return Ur(this,void 0,void 0,function*(){return this.request("HEAD",e,null,r||{})})}sendStream(e,r,n,i){return Ur(this,void 0,void 0,function*(){return this.request(e,r,n,i)})}getJson(e){return Ur(this,arguments,void 0,function*(r,n={}){n[Ti.Accept]=this._getExistingOrDefaultHeader(n,Ti.Accept,au.ApplicationJson);let i=yield this.get(r,n);return this._processResponse(i,this.requestOptions)})}postJson(e,r){return Ur(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[Ti.Accept]=this._getExistingOrDefaultHeader(s,Ti.Accept,au.ApplicationJson),s[Ti.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,au.ApplicationJson);let c=yield this.post(n,a,s);return this._processResponse(c,this.requestOptions)})}putJson(e,r){return Ur(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[Ti.Accept]=this._getExistingOrDefaultHeader(s,Ti.Accept,au.ApplicationJson),s[Ti.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,au.ApplicationJson);let c=yield this.put(n,a,s);return this._processResponse(c,this.requestOptions)})}patchJson(e,r){return Ur(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[Ti.Accept]=this._getExistingOrDefaultHeader(s,Ti.Accept,au.ApplicationJson),s[Ti.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,au.ApplicationJson);let c=yield this.patch(n,a,s);return this._processResponse(c,this.requestOptions)})}request(e,r,n,i){return Ur(this,void 0,void 0,function*(){if(this._disposed)throw new Error("Client has already been disposed.");let s=new URL(r),a=this._prepareRequest(e,s,i),c=this._allowRetries&&bXe.includes(e)?this._maxRetries+1:1,l=0,u;do{if(u=yield this.requestRaw(a,n),u&&u.message&&u.message.statusCode===Br.Unauthorized){let f;for(let h of this.handlers)if(h.canHandleAuthentication(u)){f=h;break}return f?f.handleAuthentication(this,a,n):u}let d=this._maxRedirects;for(;u.message.statusCode&&EXe.includes(u.message.statusCode)&&this._allowRedirects&&d>0;){let f=u.message.headers.location;if(!f)break;let h=new URL(f);if(s.protocol==="https:"&&s.protocol!==h.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield u.readBody(),h.hostname!==s.hostname)for(let p in i)p.toLowerCase()==="authorization"&&delete i[p];a=this._prepareRequest(e,h,i),u=yield this.requestRaw(a,n),d--}if(!u.message.statusCode||!CXe.includes(u.message.statusCode))return u;l+=1,l{function s(a,c){a?i(a):c?n(c):i(new Error("Unknown error"))}o(s,"callbackForResult"),this.requestRawWithCallback(e,r,s)})})}requestRawWithCallback(e,r,n){typeof r=="string"&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8"));let i=!1;function s(l,u){i||(i=!0,n(l,u))}o(s,"handleResult");let a=e.httpModule.request(e.options,l=>{let u=new vU(l);s(void 0,u)}),c;a.on("socket",l=>{c=l}),a.setTimeout(this._socketTimeout||3*6e4,()=>{c&&c.end(),s(new Error(`Request timeout: ${e.options.path}`))}),a.on("error",function(l){s(l)}),r&&typeof r=="string"&&a.write(r,"utf8"),r&&typeof r!="string"?(r.on("close",function(){a.end()}),r.pipe(a)):a.end()}getAgent(e){let r=new URL(e);return this._getAgent(r)}getAgentDispatcher(e){let r=new URL(e),n=xU(r);if(n&&n.hostname)return this._getProxyAgentDispatcher(r,n)}_prepareRequest(e,r,n){let i={};i.parsedUrl=r;let s=i.parsedUrl.protocol==="https:";i.httpModule=s?NU:Hb;let a=s?443:80;if(i.options={},i.options.host=i.parsedUrl.hostname,i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):a,i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||""),i.options.method=e,i.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(i.options.headers["user-agent"]=this.userAgent),i.options.agent=this._getAgent(i.parsedUrl),this.handlers)for(let c of this.handlers)c.prepareRequest(i.options);return i}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},Gb(this.requestOptions.headers),Gb(e||{})):Gb(e||{})}_getExistingOrDefaultHeader(e,r,n){let i;if(this.requestOptions&&this.requestOptions.headers){let a=Gb(this.requestOptions.headers)[r];a&&(i=typeof a=="number"?a.toString():a)}let s=e[r];return s!==void 0?typeof s=="number"?s.toString():s:i!==void 0?i:n}_getExistingOrDefaultContentTypeHeader(e,r){let n;if(this.requestOptions&&this.requestOptions.headers){let s=Gb(this.requestOptions.headers)[Ti.ContentType];s&&(typeof s=="number"?n=String(s):Array.isArray(s)?n=s.join(", "):n=s)}let i=e[Ti.ContentType];return i!==void 0?typeof i=="number"?String(i):Array.isArray(i)?i.join(", "):i:n!==void 0?n:r}_getAgent(e){let r,n=xU(e),i=n&&n.hostname;if(this._keepAlive&&i&&(r=this._proxyAgent),i||(r=this._agent),r)return r;let s=e.protocol==="https:",a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||Hb.globalAgent.maxSockets),n&&n.hostname){let c={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},l,u=n.protocol==="https:";s?l=u?Rd.httpsOverHttps:Rd.httpsOverHttp:l=u?Rd.httpOverHttps:Rd.httpOverHttp,r=l(c),this._proxyAgent=r}if(!r){let c={keepAlive:this._keepAlive,maxSockets:a};r=s?new NU.Agent(c):new Hb.Agent(c),this._agent=r}return s&&this._ignoreSslError&&(r.options=Object.assign(r.options||{},{rejectUnauthorized:!1})),r}_getProxyAgentDispatcher(e,r){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;let i=e.protocol==="https:";return n=new wue.ProxyAgent(Object.assign({uri:r.href,pipelining:this._keepAlive?1:0},(r.username||r.password)&&{token:`Basic ${Buffer.from(`${r.username}:${r.password}`).toString("base64")}`})),this._proxyAgentDispatcher=n,i&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_getUserAgentWithOrchestrationId(e){let r=e||"actions/http-client",n=process.env.ACTIONS_ORCHESTRATION_ID;if(n){let i=n.replace(/[^a-z0-9_.-]/gi,"_");return`${r} actions_orchestration_id/${i}`}return r}_performExponentialBackoff(e){return Ur(this,void 0,void 0,function*(){e=Math.min(wXe,e);let r=IXe*Math.pow(2,e);return new Promise(n=>setTimeout(()=>n(),r))})}_processResponse(e,r){return Ur(this,void 0,void 0,function*(){return new Promise((n,i)=>Ur(this,void 0,void 0,function*(){let s=e.message.statusCode||0,a={statusCode:s,result:null,headers:{}};s===Br.NotFound&&n(a);function c(d,f){if(typeof f=="string"){let h=new Date(f);if(!isNaN(h.valueOf()))return h}return f}o(c,"dateTimeDeserializer");let l,u;try{u=yield e.readBody(),u&&u.length>0&&(r&&r.deserializeDates?l=JSON.parse(u,c):l=JSON.parse(u),a.result=l),a.headers=e.message.headers}catch{}if(s>299){let d;l&&l.message?d=l.message:u&&u.length>0?d=u:d=`Failed request: (${s})`;let f=new yc(d,s);f.result=a.result,i(f)}else n(a)}))})}},Gb=o(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys");var SXe=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};var Gm=class{static{o(this,"BearerCredentialHandler")}constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization=`Bearer ${this.token}`}canHandleAuthentication(){return!1}handleAuthentication(){return SXe(this,void 0,void 0,function*(){throw new Error("not implemented")})}};var yg=T(require("fs"),1),XAe=require("url");var Ec=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};var Iue=require("node:os"),Sue=T(require("node:util"),1),Bue=T(require("node:process"),1);function xue(t,...e){Bue.default.stderr.write(`${Sue.default.format(t,...e)}${Iue.EOL}`)}o(xue,"log");var vue=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,_ue,_U=[],RU=[],Jv=[];vue&&TU(vue);var Rue=Object.assign(t=>Tue(t),{enable:TU,enabled:DU,disable:BXe,log:xue});function TU(t){_ue=t,_U=[],RU=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?RU.push(r.substring(1)):_U.push(r);for(let r of Jv)r.enabled=DU(r.namespace)}o(TU,"enable");function DU(t){if(t.endsWith("*"))return!0;for(let e of RU)if(Nue(t,e))return!1;for(let e of _U)if(Nue(t,e))return!0;return!1}o(DU,"enabled");function Nue(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let h=[],p="";for(let m of e)m==="*"&&p==="*"||(p=m,h.push(m));r=h.join("")}let n=0,i=0,s=r.length,a=t.length,c=-1,l=-1;for(;n=0){if(i=c+1,n=l+1,n===a)return!1;for(;t[n]!==r[i];)if(n++,n===a)return!1;l=n,n++,i++;continue}else return!1;let u=n===t.length,d=i===r.length,f=i===r.length-1&&r[i]==="*";return u&&(d||f)}o(Nue,"namespaceMatches");function BXe(){let t=_ue||"";return TU(""),t}o(BXe,"disable");function Tue(t){let e=Object.assign(r,{enabled:DU(t),destroy:xXe,log:Rue.log,namespace:t,extend:vXe});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return o(r,"debug"),Jv.push(e),e}o(Tue,"createDebugger");function xXe(){let t=Jv.indexOf(this);return t>=0?(Jv.splice(t,1),!0):!1}o(xXe,"destroy");function vXe(t){let e=Tue(`${this.namespace}:${t}`);return e.log=this.log,e}o(vXe,"extend");var Hm=Rue;var QU=["verbose","info","warning","error"],Due={verbose:400,info:300,warning:200,error:100};function Que(t,e){e.log=(...r)=>{t.log(...r)}}o(Que,"patchLogMethod");function kue(t){return QU.includes(t)}o(kue,"isTypeSpecRuntimeLogLevel");function Yv(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,n,i=Hm(t.namespace);i.log=(...d)=>{Hm.log(...d)};function s(d){if(d&&!kue(d))throw new Error(`Unknown log level '${d}'. Acceptable values: ${QU.join(",")}`);n=d;let f=[];for(let h of e)a(h)&&f.push(h.namespace);Hm.enable(f.join(","))}o(s,"contextSetLogLevel"),r&&(kue(r)?s(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${QU.join(", ")}.`));function a(d){return!!(n&&Due[d.level]<=Due[n])}o(a,"shouldEnable");function c(d,f){let h=Object.assign(d.extend(f),{level:f});if(Que(d,h),a(h)){let p=Hm.disable();Hm.enable(p+","+h.namespace)}return e.add(h),h}o(c,"createLogger");function l(){return n}o(l,"contextGetLogLevel");function u(d){let f=i.extend(d);return Que(i,f),{error:c(f,"error"),warning:c(f,"warning"),info:c(f,"info"),verbose:c(f,"verbose")}}return o(u,"contextCreateClientLogger"),{setLogLevel:s,getLogLevel:l,createClientLogger:u,logger:i}}o(Yv,"createLoggerContext");var Pue=Yv({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),NXe=Pue.logger;function zb(t){return Pue.createClientLogger(t)}o(zb,"createClientLogger");function Kv(t){return t.toLowerCase()}o(Kv,"normalizeName");function*_Xe(t){for(let e of t.values())yield[e.name,e.value]}o(_Xe,"headerIterator");var kU=class{static{o(this,"HttpHeadersImpl")}_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(Kv(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(Kv(e))?.value}has(e){return this._headersMap.has(Kv(e))}delete(e){this._headersMap.delete(Kv(e))}toJSON(e={}){let r={};if(e.preserveCase)for(let n of this._headersMap.values())r[n.name]=n.value;else for(let[n,i]of this._headersMap)r[n]=i.value;return r}toString(){return JSON.stringify(this.toJSON({preserveCase:!0}))}[Symbol.iterator](){return _Xe(this._headersMap)}};function qs(t){return new kU(t)}o(qs,"createHttpHeaders");function Th(){return crypto.randomUUID()}o(Th,"randomUUID");var PU=class{static{o(this,"PipelineRequestImpl")}url;method;headers;timeout;withCredentials;body;multipartBody;formData;streamResponseStatusCodes;enableBrowserStreams;proxySettings;disableKeepAlive;abortSignal;requestId;allowInsecureConnection;onUploadProgress;onDownloadProgress;requestOverrides;authSchemes;constructor(e){this.url=e.url,this.body=e.body,this.headers=e.headers??qs(),this.method=e.method??"GET",this.timeout=e.timeout??0,this.multipartBody=e.multipartBody,this.formData=e.formData,this.disableKeepAlive=e.disableKeepAlive??!1,this.proxySettings=e.proxySettings,this.streamResponseStatusCodes=e.streamResponseStatusCodes,this.withCredentials=e.withCredentials??!1,this.abortSignal=e.abortSignal,this.onUploadProgress=e.onUploadProgress,this.onDownloadProgress=e.onDownloadProgress,this.requestId=e.requestId||Th(),this.allowInsecureConnection=e.allowInsecureConnection??!1,this.enableBrowserStreams=e.enableBrowserStreams??!1,this.requestOverrides=e.requestOverrides,this.authSchemes=e.authSchemes}};function Xv(t){return new PU(t)}o(Xv,"createPipelineRequest");var Oue=new Set(["Deserialize","Serialize","Retry","Sign"]),OU=class t{static{o(this,"HttpPipeline")}_policies=[];_orderedPolicies;constructor(e){this._policies=e?.slice(0)??[],this._orderedPolicies=void 0}addPolicy(e,r={}){if(r.phase&&r.afterPhase)throw new Error("Policies inside a phase cannot specify afterPhase.");if(r.phase&&!Oue.has(r.phase))throw new Error(`Invalid phase name: ${r.phase}`);if(r.afterPhase&&!Oue.has(r.afterPhase))throw new Error(`Invalid afterPhase name: ${r.afterPhase}`);this._policies.push({policy:e,options:r}),this._orderedPolicies=void 0}removePolicy(e){let r=[];return this._policies=this._policies.filter(n=>e.name&&n.policy.name===e.name||e.phase&&n.options.phase===e.phase?(r.push(n.policy),!1):!0),this._orderedPolicies=void 0,r}sendRequest(e,r){return this.getOrderedPolicies().reduceRight((s,a)=>c=>a.sendRequest(c,s),s=>e.sendRequest(s))(r)}getOrderedPolicies(){return this._orderedPolicies||(this._orderedPolicies=this.orderPolicies()),this._orderedPolicies}clone(){return new t(this._policies)}static create(){return new t}orderPolicies(){let e=[],r=new Map;function n(m){return{name:m,policies:new Set,hasRun:!1,hasAfterPolicies:!1}}o(n,"createPhase");let i=n("Serialize"),s=n("None"),a=n("Deserialize"),c=n("Retry"),l=n("Sign"),u=[i,s,a,c,l];function d(m){return m==="Retry"?c:m==="Serialize"?i:m==="Deserialize"?a:m==="Sign"?l:s}o(d,"getPhase");for(let m of this._policies){let A=m.policy,E=m.options,y=A.name;if(r.has(y))throw new Error("Duplicate policy names not allowed in pipeline");let C={policy:A,dependsOn:new Set,dependants:new Set};E.afterPhase&&(C.afterPhase=d(E.afterPhase),C.afterPhase.hasAfterPolicies=!0),r.set(y,C),d(E.phase).policies.add(C)}for(let m of this._policies){let{policy:A,options:E}=m,y=A.name,C=r.get(y);if(!C)throw new Error(`Missing node for policy ${y}`);if(E.afterPolicies)for(let w of E.afterPolicies){let B=r.get(w);B&&(C.dependsOn.add(B),B.dependants.add(C))}if(E.beforePolicies)for(let w of E.beforePolicies){let B=r.get(w);B&&(B.dependsOn.add(C),C.dependants.add(B))}}function f(m){m.hasRun=!0;for(let A of m.policies)if(!(A.afterPhase&&(!A.afterPhase.hasRun||A.afterPhase.policies.size))&&A.dependsOn.size===0){e.push(A.policy);for(let E of A.dependants)E.dependsOn.delete(A);r.delete(A.policy.name),m.policies.delete(A)}}o(f,"walkPhase");function h(){for(let m of u){if(f(m),m.policies.size>0&&m!==s){s.hasRun||f(s);return}m.hasAfterPolicies&&f(s)}}o(h,"walkPhases");let p=0;for(;r.size>0;){p++;let m=e.length;if(h(),e.length<=m&&p>1)throw new Error("Cannot satisfy policy dependencies due to requirements cycle.")}return e}};function Zv(){return OU.create()}o(Zv,"createEmptyPipeline");function zm(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof Date)}o(zm,"isObject");function Dh(t){if(zm(t)){let e=typeof t.name=="string",r=typeof t.message=="string";return e&&r}return!1}o(Dh,"isError");var Lue=require("node:util"),Fue=Lue.inspect.custom;var LU="REDACTED",RXe=["x-ms-client-request-id","x-ms-return-client-request-id","x-ms-useragent","x-ms-correlation-request-id","x-ms-request-id","client-request-id","ms-cv","return-client-request-id","traceparent","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","Origin","Accept","Accept-Encoding","Cache-Control","Connection","Content-Length","Content-Type","Date","ETag","Expires","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","Last-Modified","Pragma","Request-Id","Retry-After","Server","Transfer-Encoding","User-Agent","WWW-Authenticate"],TXe=["api-version"],Na=class{static{o(this,"Sanitizer")}allowedHeaderNames;allowedQueryParameters;constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:r=[]}={}){e=RXe.concat(e),r=TXe.concat(r),this.allowedHeaderNames=new Set(e.map(n=>n.toLowerCase())),this.allowedQueryParameters=new Set(r.map(n=>n.toLowerCase()))}sanitize(e){let r=new Set;return JSON.stringify(e,(n,i)=>{if(i instanceof Error)return{...i,name:i.name,message:i.message};if(n==="headers")return this.sanitizeHeaders(i);if(n==="url")return this.sanitizeUrl(i);if(n==="query")return this.sanitizeQuery(i);if(n==="body")return;if(n==="response")return;if(n==="operationSpec")return;if(Array.isArray(i)||zm(i)){if(r.has(i))return"[Circular]";r.add(i)}return i},2)}sanitizeUrl(e){if(typeof e!="string"||e===null||e==="")return e;let r=new URL(e);if(!r.search)return e;for(let[n]of r.searchParams)this.allowedQueryParameters.has(n.toLowerCase())||r.searchParams.set(n,LU);return r.toString()}sanitizeHeaders(e){let r={};for(let n of Object.keys(e))this.allowedHeaderNames.has(n.toLowerCase())?r[n]=e[n]:r[n]=LU;return r}sanitizeQuery(e){if(typeof e!="object"||e===null)return e;let r={};for(let n of Object.keys(e))this.allowedQueryParameters.has(n.toLowerCase())?r[n]=e[n]:r[n]=LU;return r}};var DXe=new Na,Di=class t extends Error{static{o(this,"RestError")}static REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";static PARSE_ERROR="PARSE_ERROR";code;statusCode;request;response;details;constructor(e,r={}){super(e),this.name="RestError",this.code=r.code,this.statusCode=r.statusCode,Object.defineProperty(this,"request",{value:r.request,enumerable:!1}),Object.defineProperty(this,"response",{value:r.response,enumerable:!1});let n=this.request?.agent?{maxFreeSockets:this.request.agent.maxFreeSockets,maxSockets:this.request.agent.maxSockets}:void 0;Object.defineProperty(this,Fue,{value:o(()=>`RestError: ${this.message} + ${DXe.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function eN(t){return t instanceof Di?!0:Dh(t)&&t.name==="RestError"}o(eN,"isRestError");function ns(t,e){return Buffer.from(t,e)}o(ns,"stringToUint8Array");var tN=T(require("node:http"),1),rN=T(require("node:https"),1),FU=T(require("node:zlib"),1),Uue=require("node:stream");var No=zb("ts-http-runtime");var QXe={};function Vb(t){return t&&typeof t.pipe=="function"}o(Vb,"isReadableStream");function Mue(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=o(()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)},"handler");t.on("close",r),t.on("end",r),t.on("error",r)})}o(Mue,"isStreamComplete");function que(t){return t&&typeof t.byteLength=="number"}o(que,"isArrayBuffer");var nN=class extends Uue.Transform{static{o(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(i){n(i)}}constructor(e){super(),this.progressCallback=e}},MU=class{static{o(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Ec("The operation was aborted. Request has already been canceled.");n=o(u=>{u.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let i;e.timeout>0&&(i=setTimeout(()=>{let u=new Na;No.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let s=e.headers.get("Accept-Encoding"),a=s?.includes("gzip")||s?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let u=LXe(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let m=e.onUploadProgress,A=new nN(m);A.on("error",E=>{No.error("Error in upload progress",E)}),Vb(c)?c.pipe(A):A.end(c),c=A}let u=await this.makeRequest(e,r,c);i!==void 0&&clearTimeout(i);let d=kXe(u),h={status:u.statusCode??0,headers:d,request:e};if(e.method==="HEAD")return u.resume(),h;l=a?PXe(u,d):u;let p=e.onDownloadProgress;if(p){let m=new nN(p);m.on("error",A=>{No.error("Error in download progress",A)}),l.pipe(m),l=m}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(h.status)?h.readableStreamBody=l:h.bodyAsText=await OXe(l),h}finally{if(e.abortSignal&&n){let u=Promise.resolve();Vb(c)&&(u=Mue(c));let d=Promise.resolve();Vb(l)&&(d=Mue(l)),Promise.all([u,d]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(f=>{No.warning("Error when cleaning up abortListener on httpRequest",f)})}}}makeRequest(e,r,n){let i=new URL(e.url),s=i.protocol!=="https:";if(s&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,s),hostname:i.hostname,path:`${i.pathname}${i.search}`,port:i.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((l,u)=>{let d=s?tN.default.request(c,l):rN.default.request(c,l);d.once("error",f=>{u(new Di(f.message,{code:f.code??Di.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let f=new Ec("The operation was aborted. Rejecting from abort signal callback while making request.");d.destroy(f),u(f)}),n&&Vb(n)?n.pipe(d):n?typeof n=="string"||Buffer.isBuffer(n)?d.end(n):que(n)?d.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(No.error("Unrecognized body type",n),u(new Di("Unrecognized body type"))):d.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?tN.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new tN.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return rN.default.globalAgent;let i=e.tlsSettings??QXe,s=this.cachedHttpsAgents.get(i);return s&&s.options.keepAlive===!n||(No.info("No cached TLS Agent exist, creating a new Agent"),s=new rN.default.Agent({keepAlive:!n,...i}),this.cachedHttpsAgents.set(i,s)),s}}};function kXe(t){let e=qs();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}o(kXe,"getResponseHeaders");function PXe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=FU.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=FU.default.createInflate();return t.pipe(n),n}return t}o(PXe,"getDecodedResponseStream");function OXe(t){return new Promise((e,r)=>{let n=[];t.on("data",i=>{Buffer.isBuffer(i)?n.push(i):n.push(Buffer.from(i))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",i=>{i&&i?.name==="AbortError"?r(i):r(new Di(`Error reading response as text: ${i.message}`,{code:Di.PARSE_ERROR}))})})}o(OXe,"streamToText");function LXe(t){return t?Buffer.isBuffer(t)?t.length:Vb(t)?null:que(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}o(LXe,"getBodyLength");function Gue(){return new MU}o(Gue,"createNodeHttpClient");function iN(){return Gue()}o(iN,"createDefaultHttpClient");var UU="logPolicy";function sN(t={}){let e=t.logger??No.info,r=new Na({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:UU,async sendRequest(n,i){if(!e.enabled)return i(n);e(`Request: ${r.sanitize(n)}`);let s=await i(n);return e(`Response status code: ${s.status}`),e(`Headers: ${r.sanitize(s.headers)}`),s}}}o(sN,"logPolicy");var oN="redirectPolicy",Hue=["GET","HEAD"];function aN(t={}){let{maxRetries:e=20}=t;return{name:oN,async sendRequest(r,n){let i=await n(r);return zue(n,i,e)}}}o(aN,"redirectPolicy");async function zue(t,e,r,n=0){let{request:i,status:s,headers:a}=e,c=a.get("location");if(c&&(s===300||s===301&&Hue.includes(i.method)||s===302&&Hue.includes(i.method)||s===303&&i.method==="POST"||s===307)&&n{let s,a,c=o(()=>i(new Ec(r?.abortErrorMsg?r?.abortErrorMsg:FXe)),"rejectOnAbort"),l=o(()=>{r?.abortSignal&&a&&r.abortSignal.removeEventListener("abort",a)},"removeListeners");if(a=o(()=>(s&&clearTimeout(s),l(),c()),"onAborted"),r?.abortSignal&&r.abortSignal.aborted)return c();s=setTimeout(()=>{l(),n(e)},t),r?.abortSignal&&r.abortSignal.addEventListener("abort",a)})}o(jue,"delay");function Wue(t,e){let r=t.headers.get(e);if(!r)return;let n=Number(r);if(!Number.isNaN(n))return n}o(Wue,"parseHeaderValueAsNumber");var qU="Retry-After",MXe=["retry-after-ms","x-ms-retry-after-ms",qU];function Jue(t){if(t&&[429,503].includes(t.status))try{for(let i of MXe){let s=Wue(t,i);if(s===0||s)return s*(i===qU?1e3:1)}let e=t.headers.get(qU);if(!e)return;let n=Date.parse(e)-Date.now();return Number.isFinite(n)?Math.max(0,n):void 0}catch{return}}o(Jue,"getRetryAfterInMs");function Yue(t){return Number.isFinite(Jue(t))}o(Yue,"isThrottlingRetryResponse");function GU(){return{name:"throttlingRetryStrategy",retry({response:t}){let e=Jue(t);return Number.isFinite(e)?{retryAfterInMs:e}:{skipStrategy:!0}}}}o(GU,"throttlingRetryStrategy");var UXe=1e3,qXe=1e3*64;function dN(t={}){let e=t.retryDelayInMs??UXe,r=t.maxRetryDelayInMs??qXe;return{name:"exponentialRetryStrategy",retry({retryCount:n,response:i,responseError:s}){let a=HXe(s),c=a&&t.ignoreSystemErrors,l=GXe(i),u=l&&t.ignoreHttpStatusCodes;return i&&(Yue(i)||!l)||u||c?{skipStrategy:!0}:s&&!a&&!l?{errorToThrow:s}:uN(n,{retryDelayInMs:e,maxRetryDelayInMs:r})}}}o(dN,"exponentialRetryStrategy");function GXe(t){return!!(t&&t.status!==void 0&&(t.status>=500||t.status===408)&&t.status!==501&&t.status!==505)}o(GXe,"isExponentialRetryResponse");function HXe(t){return t?t.code==="ETIMEDOUT"||t.code==="ESOCKETTIMEDOUT"||t.code==="ECONNREFUSED"||t.code==="ECONNRESET"||t.code==="ENOENT"||t.code==="ENOTFOUND":!1}o(HXe,"isSystemError");var zXe=zb("ts-http-runtime retryPolicy"),VXe="retryPolicy";function kh(t,e={maxRetries:3}){let r=e.logger||zXe;return{name:VXe,async sendRequest(n,i){let s,a,c=-1;e:for(;;){c+=1,s=void 0,a=void 0;try{r.info(`Retry ${c}: Attempting to send request`,n.requestId),s=await i(n),r.info(`Retry ${c}: Received a response from request`,n.requestId)}catch(l){if(r.error(`Retry ${c}: Received an error from request`,n.requestId),a=l,!l||a.name!=="RestError")throw l;s=a.response}if(n.abortSignal?.aborted)throw r.error(`Retry ${c}: Request aborted.`),new Ec;if(c>=(e.maxRetries??3)){if(r.info(`Retry ${c}: Maximum retries reached. Returning the last received response, or throwing the last received error.`),a)throw a;if(s)return s;throw new Error("Maximum retries reached with no response or error to throw")}r.info(`Retry ${c}: Processing ${t.length} retry strategies.`);t:for(let l of t){let u=l.logger||r;u.info(`Retry ${c}: Processing retry strategy ${l.name}.`);let d=l.retry({retryCount:c,response:s,responseError:a});if(d.skipStrategy){u.info(`Retry ${c}: Skipped.`);continue t}let{errorToThrow:f,retryAfterInMs:h,redirectTo:p}=d;if(f)throw u.error(`Retry ${c}: Retry strategy ${l.name} throws error:`,f),f;if(h||h===0){u.info(`Retry ${c}: Retry strategy ${l.name} retries after ${h}`),await jue(h,void 0,{abortSignal:n.abortSignal});continue e}if(p){u.info(`Retry ${c}: Retry strategy ${l.name} redirects to ${p}`),n.url=p;continue e}}if(a)throw r.info("None of the retry strategies could work with the received error. Throwing it."),a;if(s)return r.info("None of the retry strategies could work with the received response. Returning it."),s}}}}o(kh,"retryPolicy");var HU="defaultRetryPolicy";function fN(t={}){return{name:HU,sendRequest:kh([GU(),dN(t)],{maxRetries:t.maxRetries??3}).sendRequest}}o(fN,"defaultRetryPolicy");var Kue=typeof window<"u"&&typeof window.document<"u",Xue=typeof self=="object"&&typeof self?.importScripts=="function"&&(self.constructor?.name==="DedicatedWorkerGlobalScope"||self.constructor?.name==="ServiceWorkerGlobalScope"||self.constructor?.name==="SharedWorkerGlobalScope"),Zue=typeof Deno<"u"&&typeof Deno.version<"u"&&typeof Deno.version.deno<"u",ede=typeof Bun<"u"&&typeof Bun.version<"u",Ph=typeof globalThis.process<"u"&&!!globalThis.process.version&&!!globalThis.process.versions?.node;var tde=typeof navigator<"u"&&navigator?.product==="ReactNative";var zU="formDataPolicy";function $Xe(t){let e={};for(let[r,n]of t.entries())e[r]??=[],e[r].push(n);return e}o($Xe,"formDataToFormDataMap");function hN(){return{name:zU,async sendRequest(t,e){if(Ph&&typeof FormData<"u"&&t.body instanceof FormData&&(t.formData=$Xe(t.body),t.body=void 0),t.formData){let r=t.headers.get("Content-Type");r&&r.indexOf("application/x-www-form-urlencoded")!==-1?t.body=jXe(t.formData):await WXe(t.formData,t),t.formData=void 0}return e(t)}}}o(hN,"formDataPolicy");function jXe(t){let e=new URLSearchParams;for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let i of n)e.append(r,i.toString());else e.append(r,n.toString());return e.toString()}o(jXe,"wwwFormUrlEncode");async function WXe(t,e){let r=e.headers.get("Content-Type");if(r&&!r.startsWith("multipart/form-data"))return;e.headers.set("Content-Type",r??"multipart/form-data");let n=[];for(let[i,s]of Object.entries(t))for(let a of Array.isArray(s)?s:[s])if(typeof a=="string")n.push({headers:qs({"Content-Disposition":`form-data; name="${i}"`}),body:ns(a,"utf-8")});else{if(a==null||typeof a!="object")throw new Error(`Unexpected value for key ${i}: ${a}. Value should be serialized to string first.`);{let c=a.name||"blob",l=qs();l.set("Content-Disposition",`form-data; name="${i}"; filename="${c}"`),l.set("Content-Type",a.type||"application/octet-stream"),n.push({headers:l,body:a})}}e.multipartBody={parts:n}}o(WXe,"prepareFormData");var Mde=T(Bde(),1),Ude=T(Pde(),1);var net="HTTPS_PROXY",iet="HTTP_PROXY",set="ALL_PROXY",oet="NO_PROXY",XU="proxyPolicy",Ode=[],qde=!1,aet=new Map;function IN(t){if(process.env[t])return process.env[t];if(process.env[t.toLowerCase()])return process.env[t.toLowerCase()]}o(IN,"getEnvironmentValue");function Gde(){if(!process)return;let t=IN(net),e=IN(set),r=IN(iet);return t||e||r}o(Gde,"loadEnvironmentProxyValue");function cet(t,e,r){if(e.length===0)return!1;let n=new URL(t).hostname;if(r?.has(n))return r.get(n);let i=!1;for(let s of e)s[0]==="."?(n.endsWith(s)||n.length===s.length-1&&n===s.slice(1))&&(i=!0):n===s&&(i=!0);return r?.set(n,i),i}o(cet,"isBypassed");function uet(){let t=IN(oet);return qde=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}o(uet,"loadNoProxy");function ZU(t){if(!t&&(t=Gde(),!t))return;let e=new URL(t);return{host:(e.protocol?e.protocol+"//":"")+e.hostname,port:Number.parseInt(e.port||"80"),username:e.username,password:e.password}}o(ZU,"getDefaultProxySettings");function det(){let t=Gde();return t?new URL(t):void 0}o(det,"getDefaultProxySettingsInternal");function Lde(t){let e;try{e=new URL(t.host)}catch{throw new Error(`Expecting a valid host string in proxy settings, but found "${t.host}".`)}return e.port=String(t.port),t.username&&(e.username=t.username),t.password&&(e.password=t.password),e}o(Lde,"getUrlFromProxySettings");function Fde(t,e,r){if(t.agent)return;let i=new URL(t.url).protocol!=="https:";t.tlsSettings&&No.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.");let s=t.headers.toJSON();i?(e.httpProxyAgent||(e.httpProxyAgent=new Ude.HttpProxyAgent(r,{headers:s})),t.agent=e.httpProxyAgent):(e.httpsProxyAgent||(e.httpsProxyAgent=new Mde.HttpsProxyAgent(r,{headers:s})),t.agent=e.httpsProxyAgent)}o(Fde,"setProxyAgentOnRequest");function SN(t,e){qde||Ode.push(...uet());let r=t?Lde(t):det(),n={};return{name:XU,async sendRequest(i,s){return!i.proxySettings&&r&&!cet(i.url,e?.customNoProxyList??Ode,e?.customNoProxyList?void 0:aet)?Fde(i,n,r):i.proxySettings&&Fde(i,n,Lde(i.proxySettings)),s(i)}}}o(SN,"proxyPolicy");var eq="agentPolicy";function BN(t){return{name:eq,sendRequest:o(async(e,r)=>(e.agent||(e.agent=t),r(e)),"sendRequest")}}o(BN,"agentPolicy");var tq="tlsPolicy";function xN(t){return{name:tq,sendRequest:o(async(e,r)=>(e.tlsSettings||(e.tlsSettings=t),r(e)),"sendRequest")}}o(xN,"tlsPolicy");function vN(t){return typeof t.stream=="function"}o(vN,"isBlob");var NN=require("stream");async function*Hde(){let t=this.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)return;yield r}}finally{t.releaseLock()}}o(Hde,"streamAsyncIterator");function fet(t){t[Symbol.asyncIterator]||(t[Symbol.asyncIterator]=Hde.bind(t)),t.values||(t.values=Hde.bind(t))}o(fet,"makeAsyncIterable");function zde(t){return t instanceof ReadableStream?(fet(t),NN.Readable.fromWeb(t)):t}o(zde,"ensureNodeStream");function het(t){return t instanceof Uint8Array?NN.Readable.from(Buffer.from(t)):vN(t)?zde(t.stream()):zde(t)}o(het,"toStream");async function Vde(t){return function(){let e=t.map(r=>typeof r=="function"?r():r).map(het);return NN.Readable.from((async function*(){for(let r of e)for await(let n of r)yield n})())}}o(Vde,"concat");function pet(){return`----AzSDKFormBoundary${Th()}`}o(pet,"generateBoundary");function Aet(t){let e="";for(let[r,n]of t)e+=`${r}: ${n}\r +`;return e}o(Aet,"encodeHeaders");function met(t){return t instanceof Uint8Array?t.byteLength:vN(t)?t.size===-1?void 0:t.size:void 0}o(met,"getLength");function get(t){let e=0;for(let r of t){let n=met(r);if(n===void 0)return;e+=n}return e}o(get,"getTotalLength");async function yet(t,e,r){let n=[ns(`--${r}`,"utf-8"),...e.flatMap(s=>[ns(`\r +`,"utf-8"),ns(Aet(s.headers),"utf-8"),ns(`\r `,"utf-8"),s.body,ns(`\r --${r}`,"utf-8")]),ns(`--\r \r -`,"utf-8")],i=pet(n);i&&t.headers.set("Content-Length",i),t.body=await zde(n)}o(Aet,"buildRequestBody");var jb="multipartPolicy",met=70,get=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function yet(t){if(t.length>met)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!get.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(yet,"assertValidBoundary");function NN(){return{name:jb,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",i=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!i)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,s,a]=i;if(a&&r&&a!==r)throw new Error(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);return r??=a,r?yet(r):r=det(),t.headers.set("Content-Type",`${s}; boundary=${r}`),await Aet(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(NN,"multipartPolicy");function RN(){return Xv()}o(RN,"createEmptyPipeline");var Vde=Jv({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),EKt=Vde.logger;function wc(t){return Vde.createClientLogger(t)}o(wc,"createClientLogger");var Ic=wc("core-rest-pipeline");function nq(t={}){return iN({logger:Ic.info,...t})}o(nq,"logPolicy");var iq=sN;function sq(t={}){return oN(t)}o(sq,"redirectPolicy");var _N=T(require("node:os"),1),TN=T(require("node:process"),1);function $de(){return"User-Agent"}o($de,"getHeaderName");async function jde(t){if(TN.default&&TN.default.versions){let e=`${_N.default.type()} ${_N.default.release()}; ${_N.default.arch()}`,r=TN.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}o(jde,"setPlatformSpecificData");var DN="1.22.2";function vet(t){let e=[];for(let[r,n]of t){let i=n?`${r}/${n}`:r;e.push(i)}return e.join(" ")}o(vet,"getUserAgentString");function Wde(){return $de()}o(Wde,"getUserAgentHeaderName");async function QN(t){let e=new Map;e.set("core-rest-pipeline",DN),await jde(e);let r=vet(e);return t?`${t} ${r}`:r}o(QN,"getUserAgentValue");var Jde=Wde(),Yde="userAgentPolicy";function oq(t={}){let e=QN(t.userAgentPrefix);return{name:Yde,async sendRequest(r,n){return r.headers.has(Jde)||r.headers.set(Jde,await e),n(r)}}}o(oq,"userAgentPolicy");var Vs=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function aq(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:i}=e??{};return new Promise((s,a)=>{function c(){a(new Vs(i??"The operation was aborted."))}o(c,"rejectOnAbort");function l(){n?.removeEventListener("abort",u)}o(l,"removeListeners");function u(){r?.(),l(),c()}if(o(u,"onAbort"),n?.aborted)return c();try{t(d=>{l(),s(d)},d=>{l(),a(d)})}catch(d){a(d)}n?.addEventListener("abort",u)})}o(aq,"createAbortablePromise");var Det="The delay was aborted.";function Wb(t,e){let r,{abortSignal:n,abortErrorMsg:i}=e??{};return aq(s=>{r=setTimeout(s,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:i??Det})}o(Wb,"delay");function Td(t){if(Th(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}o(Td,"getErrorMessage");function Kde(t){return Th(t)}o(Kde,"isError");function Jm(){return _h()}o(Jm,"randomUUID");var Qt=kh;var Xde=Symbol("rawContent");function lq(t){return typeof t[Xde]=="function"}o(lq,"hasRawContent");function Zde(t){return lq(t)?t[Xde]():t}o(Zde,"getRawContent");var kN=jb;function uq(){let t=NN();return{name:kN,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)lq(n.body)&&(n.body=Zde(n.body));return t.sendRequest(e,r)},"sendRequest")}}o(uq,"multipartPolicy");var dq=aN;function fq(){return cN()}o(fq,"decompressResponsePolicy");function hq(t={}){return dN(t)}o(hq,"defaultRetryPolicy");function pq(){return fN()}o(pq,"formDataPolicy");function Dd(t){return XU(t)}o(Dd,"getDefaultProxySettings");function Aq(t,e){return IN(t,e)}o(Aq,"proxyPolicy");var efe="setClientRequestIdPolicy";function mq(t="x-ms-client-request-id"){return{name:efe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}o(mq,"setClientRequestIdPolicy");function gq(t){return SN(t)}o(gq,"agentPolicy");function yq(t){return BN(t)}o(yq,"tlsPolicy");var Ym={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function tfe(t={}){let e=new Eq(t.parentContext);return t.span&&(e=e.setValue(Ym.span,t.span)),t.namespace&&(e=e.setValue(Ym.namespace,t.namespace)),e}o(tfe,"createTracingContext");var Eq=class t{static{o(this,"TracingContextImpl")}_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let n=new t(this);return n._contextMap.set(e,r),n}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var nfe=T(rfe(),1),ON=nfe.state;function Qet(){return{end:o(()=>{},"end"),isRecording:o(()=>!1,"isRecording"),recordException:o(()=>{},"recordException"),setAttribute:o(()=>{},"setAttribute"),setStatus:o(()=>{},"setStatus"),addEvent:o(()=>{},"addEvent")}}o(Qet,"createDefaultTracingSpan");function ket(){return{createRequestHeaders:o(()=>({}),"createRequestHeaders"),parseTraceparentHeader:o(()=>{},"parseTraceparentHeader"),startSpan:o((t,e)=>({span:Qet(),tracingContext:tfe({parentContext:e.tracingContext})}),"startSpan"),withContext(t,e,...r){return e(...r)}}}o(ket,"createDefaultInstrumenter");function Jb(){return ON.instrumenterImplementation||(ON.instrumenterImplementation=ket()),ON.instrumenterImplementation}o(Jb,"getInstrumenter");function Yb(t){let{namespace:e,packageName:r,packageVersion:n}=t;function i(u,d,f){let h=Jb().startSpan(u,{...f,packageName:r,packageVersion:n,tracingContext:d?.tracingOptions?.tracingContext}),p=h.tracingContext,m=h.span;p.getValue(Ym.namespace)||(p=p.setValue(Ym.namespace,e)),m.setAttribute("az.namespace",p.getValue(Ym.namespace));let A=Object.assign({},d,{tracingOptions:{...d?.tracingOptions,tracingContext:p}});return{span:m,updatedOptions:A}}o(i,"startSpan");async function s(u,d,f,h){let{span:p,updatedOptions:m}=i(u,d,h);try{let A=await a(m.tracingOptions.tracingContext,()=>Promise.resolve(f(m,p)));return p.setStatus({status:"success"}),A}catch(A){throw p.setStatus({status:"error",error:A}),A}finally{p.end()}}o(s,"withSpan");function a(u,d,...f){return Jb().withContext(u,d,...f)}o(a,"withContext");function c(u){return Jb().parseTraceparentHeader(u)}o(c,"parseTraceparentHeader");function l(u){return Jb().createRequestHeaders(u)}return o(l,"createRequestHeaders"),{startSpan:i,withSpan:s,withContext:a,parseTraceparentHeader:c,createRequestHeaders:l}}o(Yb,"createTracingClient");var cu=Di;function Oh(t){return Zv(t)}o(Oh,"isRestError");var ife="tracingPolicy";function Cq(t={}){let e=QN(t.userAgentPrefix),r=new Na({additionalAllowedQueryParameters:t.additionalAllowedQueryParameters}),n=Pet();return{name:ife,async sendRequest(i,s){if(!n)return s(i);let a=await e,c={"http.url":r.sanitizeUrl(i.url),"http.method":i.method,"http.user_agent":a,requestId:i.requestId};a&&(c["http.user_agent"]=a);let{span:l,tracingContext:u}=Oet(n,i,c)??{};if(!l||!u)return s(i);try{let d=await n.withContext(u,s,i);return Fet(l,d),d}catch(d){throw Let(l,d),d}}}}o(Cq,"tracingPolicy");function Pet(){try{return Yb({namespace:"",packageName:"@azure/core-rest-pipeline",packageVersion:DN})}catch(t){Ic.warning(`Error when creating the TracingClient: ${Td(t)}`);return}}o(Pet,"tryCreateTracingClient");function Oet(t,e,r){try{let{span:n,updatedOptions:i}=t.startSpan(`HTTP ${e.method}`,{tracingOptions:e.tracingOptions},{spanKind:"client",spanAttributes:r});if(!n.isRecording()){n.end();return}let s=t.createRequestHeaders(i.tracingOptions.tracingContext);for(let[a,c]of Object.entries(s))e.headers.set(a,c);return{span:n,tracingContext:i.tracingOptions.tracingContext}}catch(n){Ic.warning(`Skipping creating a tracing span due to an error: ${Td(n)}`);return}}o(Oet,"tryCreateSpan");function Let(t,e){try{t.setStatus({status:"error",error:Kde(e)?e:void 0}),Oh(e)&&e.statusCode&&t.setAttribute("http.status_code",e.statusCode),t.end()}catch(r){Ic.warning(`Skipping tracing span processing due to an error: ${Td(r)}`)}}o(Let,"tryProcessError");function Fet(t,e){try{t.setAttribute("http.status_code",e.status);let r=e.headers.get("x-ms-request-id");r&&t.setAttribute("serviceRequestId",r),e.status>=400&&t.setStatus({status:"error"}),t.end()}catch(r){Ic.warning(`Skipping tracing span processing due to an error: ${Td(r)}`)}}o(Fet,"tryProcessResponse");function LN(t){if(t instanceof AbortSignal)return{abortSignal:t};if(t.aborted)return{abortSignal:AbortSignal.abort(t.reason)};let e=new AbortController,r=!0;function n(){r&&(t.removeEventListener("abort",i),r=!1)}o(n,"cleanup");function i(){e.abort(t.reason),n()}return o(i,"listener"),t.addEventListener("abort",i),{abortSignal:e.signal,cleanup:n}}o(LN,"wrapAbortSignalLike");var Met="wrapAbortSignalLikePolicy";function sfe(){return{name:Met,sendRequest:o(async(t,e)=>{if(!t.abortSignal)return e(t);let{abortSignal:r,cleanup:n}=LN(t.abortSignal);t.abortSignal=r;try{return await e(t)}finally{n?.()}},"sendRequest")}}o(sfe,"wrapAbortSignalLikePolicy");function bq(t){let e=RN();return Qt&&(t.agent&&e.addPolicy(gq(t.agent)),t.tlsOptions&&e.addPolicy(yq(t.tlsOptions)),e.addPolicy(Aq(t.proxyOptions)),e.addPolicy(fq())),e.addPolicy(sfe()),e.addPolicy(pq(),{beforePolicies:[kN]}),e.addPolicy(oq(t.userAgentOptions)),e.addPolicy(mq(t.telemetryOptions?.clientRequestIdHeaderName)),e.addPolicy(uq(),{afterPhase:"Deserialize"}),e.addPolicy(hq(t.retryOptions),{phase:"Retry"}),e.addPolicy(Cq({...t.userAgentOptions,...t.loggingOptions}),{afterPhase:"Retry"}),Qt&&e.addPolicy(sq(t.redirectOptions),{afterPhase:"Retry"}),e.addPolicy(nq(t.loggingOptions),{afterPhase:"Sign"}),e}o(bq,"createPipelineFromOptions");function Kb(){let t=nN();return{async sendRequest(e){let{abortSignal:r,cleanup:n}=e.abortSignal?LN(e.abortSignal):{};try{return e.abortSignal=r,await t.sendRequest(e)}finally{n?.()}}}}o(Kb,"createDefaultHttpClient");function lu(t){return qs(t)}o(lu,"createHttpHeaders");function Xb(t){return Kv(t)}o(Xb,"createPipelineRequest");var JZt=wc("core-rest-pipeline retryPolicy");var Uet={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function qet(t,e,r){async function n(){if(Date.now()t.getToken(l,u),"tryGetAccessToken"),s.retryIntervalInMs,n?.expiresOnTimestamp??Date.now()).then(f=>(r=null,n=f,i=u.tenantId,n)).catch(f=>{throw r=null,n=null,i=void 0,f})),r}return o(c,"refresh"),async(l,u)=>{let d=!!u.claims,f=i!==u.tenantId;return d&&(n=null),f||d||a.mustRefresh?c(l,u):(a.shouldRefresh&&c(l,u),n)}}o(wq,"createTokenCycler");var lfe="bearerTokenAuthenticationPolicy";async function FN(t,e){try{return[await e(t),void 0]}catch(r){if(Oh(r)&&r.response)return[r.response,r];throw r}}o(FN,"trySendRequest");async function Get(t){let{scopes:e,getAccessToken:r,request:n}=t,i={abortSignal:n.abortSignal,tracingOptions:n.tracingOptions,enableCae:!0},s=await r(e,i);s&&t.request.headers.set("Authorization",`Bearer ${s.token}`)}o(Get,"defaultAuthorizeRequest");function ofe(t){return t.status===401&&t.headers.has("WWW-Authenticate")}o(ofe,"isChallengeResponse");async function afe(t,e){let{scopes:r}=t,n=await t.getAccessToken(r,{enableCae:!0,claims:e});return n?(t.request.headers.set("Authorization",`${n.tokenType??"Bearer"} ${n.token}`),!0):!1}o(afe,"authorizeRequestOnCaeChallenge");function Km(t){let{credential:e,scopes:r,challengeCallbacks:n}=t,i=t.logger||Ic,s={authorizeRequest:n?.authorizeRequest?.bind(n)??Get,authorizeRequestOnChallenge:n?.authorizeRequestOnChallenge?.bind(n)},a=e?wq(e):()=>Promise.resolve(null);return{name:lfe,async sendRequest(c,l){if(!c.url.toLowerCase().startsWith("https://"))throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.");await s.authorizeRequest({scopes:Array.isArray(r)?r:[r],request:c,getAccessToken:a,logger:i});let u,d,f;if([u,d]=await FN(c,l),ofe(u)){let h=cfe(u.headers.get("WWW-Authenticate"));if(h){let p;try{p=atob(h)}catch{return i.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${h}`),u}f=await afe({scopes:Array.isArray(r)?r:[r],response:u,request:c,getAccessToken:a,logger:i},p),f&&([u,d]=await FN(c,l))}else if(s.authorizeRequestOnChallenge&&(f=await s.authorizeRequestOnChallenge({scopes:Array.isArray(r)?r:[r],request:c,response:u,getAccessToken:a,logger:i}),f&&([u,d]=await FN(c,l)),ofe(u)&&(h=cfe(u.headers.get("WWW-Authenticate")),h))){let p;try{p=atob(h)}catch{return i.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${h}`),u}f=await afe({scopes:Array.isArray(r)?r:[r],response:u,request:c,getAccessToken:a,logger:i},p),f&&([u,d]=await FN(c,l))}}if(d)throw d;return u}}}o(Km,"bearerTokenAuthenticationPolicy");function Het(t){let e=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g,r=/(\w+)="([^"]*)"/g,n=[],i;for(;(i=e.exec(t))!==null;){let s=i[1],a=i[2],c={},l;for(;(l=r.exec(a))!==null;)c[l[1]]=l[2];n.push({scheme:s,params:c})}return n}o(Het,"parseChallenges");function cfe(t){return t?Het(t).find(r=>r.scheme==="Bearer"&&r.params.claims&&r.params.error==="insufficient_claims")?.params.claims:void 0}o(cfe,"getCaeChallengeClaims");function $s(t){let e=t;return e&&typeof e.getToken=="function"&&(e.signRequest===void 0||e.getToken.length>0)}o($s,"isTokenCredential");var Iq="DisableKeepAlivePolicy";function ufe(){return{name:Iq,async sendRequest(t,e){return t.disableKeepAlive=!0,e(t)}}}o(ufe,"createDisableKeepAlivePolicy");function dfe(t){return t.getOrderedPolicies().some(e=>e.name===Iq)}o(dfe,"pipelineContainsDisableKeepAlivePolicy");function Sq(t){return(t instanceof Buffer?t:Buffer.from(t.buffer)).toString("base64")}o(Sq,"encodeByteArray");function Bq(t){return Buffer.from(t,"base64")}o(Bq,"decodeString");function Vet(t,e){return e!=="Composite"&&e!=="Dictionary"&&(typeof t=="string"||typeof t=="number"||typeof t=="boolean"||e?.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i)!==null||t===void 0||t===null)}o(Vet,"isPrimitiveBody");var $et=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ffe(t){return $et.test(t)}o(ffe,"isDuration");var jet=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/i;function hfe(t){return jet.test(t)}o(hfe,"isValidUuid");function Wet(t){let e={...t.headers,...t.body};return t.hasNullableType&&Object.getOwnPropertyNames(e).length===0?t.shouldWrapBody?{body:null}:null:t.shouldWrapBody?{...t.headers,body:t.body}:e}o(Wet,"handleNullableResponseAndWrappableBody");function xq(t,e){let r=t.parsedHeaders;if(t.request.method==="HEAD")return{...r,body:t.parsedBody};let n=e&&e.bodyMapper,i=!!n?.nullable,s=n?.type.name;if(s==="Stream")return{...r,blobBody:t.blobBody,readableStreamBody:t.readableStreamBody};let a=s==="Composite"&&n.type.modelProperties||{},c=Object.keys(a).some(l=>a[l].serializedName==="");if(s==="Sequence"||c){let l=t.parsedBody??[];for(let u of Object.keys(a))a[u].serializedName&&(l[u]=t.parsedBody?.[u]);if(r)for(let u of Object.keys(r))l[u]=r[u];return i&&!t.parsedBody&&!r&&Object.getOwnPropertyNames(a).length===0?null:l}return Wet({body:t.parsedBody,headers:r,hasNullableType:i,shouldWrapBody:Vet(t.parsedBody,s)})}o(xq,"flattenResponse");var vq=class{static{o(this,"SerializerImpl")}modelMappers;isXML;constructor(e={},r=!1){this.modelMappers=e,this.isXML=r}validateConstraints(e,r,n){let i=o((s,a)=>{throw new Error(`"${n}" with value "${r}" should satisfy the constraint "${s}": ${a}.`)},"failValidation");if(e.constraints&&r!==void 0&&r!==null){let{ExclusiveMaximum:s,ExclusiveMinimum:a,InclusiveMaximum:c,InclusiveMinimum:l,MaxItems:u,MaxLength:d,MinItems:f,MinLength:h,MultipleOf:p,Pattern:m,UniqueItems:A}=e.constraints;if(s!==void 0&&r>=s&&i("ExclusiveMaximum",s),a!==void 0&&r<=a&&i("ExclusiveMinimum",a),c!==void 0&&r>c&&i("InclusiveMaximum",c),l!==void 0&&ru&&i("MaxItems",u),d!==void 0&&r.length>d&&i("MaxLength",d),f!==void 0&&r.lengthC.indexOf(E)!==y)&&i("UniqueItems",A)}}serialize(e,r,n,i={xml:{}}){let s={xml:{rootName:i.xml.rootName??"",includeRoot:i.xml.includeRoot??!1,xmlCharKey:i.xml.xmlCharKey??"_"}},a={},c=e.type.name;n||(n=e.serializedName),c.match(/^Sequence$/i)!==null&&(a=[]),e.isConstant&&(r=e.defaultValue);let{required:l,nullable:u}=e;if(l&&u&&r===void 0)throw new Error(`${n} cannot be undefined.`);if(l&&!u&&r==null)throw new Error(`${n} cannot be null or undefined.`);if(!l&&u===!1&&r===null)throw new Error(`${n} cannot be null.`);return r==null||c.match(/^any$/i)!==null?a=r:c.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)!==null?a=ett(c,n,r):c.match(/^Enum$/i)!==null?a=ttt(n,e.type.allowedValues,r):c.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null?a=itt(c,r,n):c.match(/^ByteArray$/i)!==null?a=rtt(n,r):c.match(/^Base64Url$/i)!==null?a=ntt(n,r):c.match(/^Sequence$/i)!==null?a=stt(this,e,r,n,!!this.isXML,s):c.match(/^Dictionary$/i)!==null?a=ott(this,e,r,n,!!this.isXML,s):c.match(/^Composite$/i)!==null&&(a=ctt(this,e,r,n,!!this.isXML,s)),a}deserialize(e,r,n,i={xml:{}}){let s={xml:{rootName:i.xml.rootName??"",includeRoot:i.xml.includeRoot??!1,xmlCharKey:i.xml.xmlCharKey??"_"},ignoreUnknownProperties:i.ignoreUnknownProperties??!1};if(r==null)return this.isXML&&e.type.name==="Sequence"&&!e.xmlIsWrapped&&(r=[]),e.defaultValue!==void 0&&(r=e.defaultValue),r;let a,c=e.type.name;if(n||(n=e.serializedName),c.match(/^Composite$/i)!==null)a=utt(this,e,r,n,s);else{if(this.isXML){let l=s.xml.xmlCharKey;r["$"]!==void 0&&r[l]!==void 0&&(r=r[l])}c.match(/^Number$/i)!==null?(a=parseFloat(r),isNaN(a)&&(a=r)):c.match(/^Boolean$/i)!==null?r==="true"?a=!0:r==="false"?a=!1:a=r:c.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)!==null?a=r:c.match(/^(Date|DateTime|DateTimeRfc1123)$/i)!==null?a=new Date(r):c.match(/^UnixTime$/i)!==null?a=Zet(r):c.match(/^ByteArray$/i)!==null?a=Bq(r):c.match(/^Base64Url$/i)!==null?a=Ket(r):c.match(/^Sequence$/i)!==null?a=ftt(this,e,r,n,s):c.match(/^Dictionary$/i)!==null&&(a=dtt(this,e,r,n,s))}return e.isConstant&&(a=e.defaultValue),a}};function js(t={},e=!1){return new vq(t,e)}o(js,"createSerializer");function Jet(t,e){let r=t.length;for(;r-1>=0&&t[r-1]===e;)--r;return t.substr(0,r)}o(Jet,"trimEnd");function Yet(t){if(!t)return;if(!(t instanceof Uint8Array))throw new Error("Please provide an input of type Uint8Array for converting to Base64Url.");let e=Sq(t);return Jet(e,"=").replace(/\+/g,"-").replace(/\//g,"_")}o(Yet,"bufferToBase64Url");function Ket(t){if(t){if(t&&typeof t.valueOf()!="string")throw new Error("Please provide an input of type string for converting to Uint8Array");return t=t.replace(/-/g,"+").replace(/_/g,"/"),Bq(t)}}o(Ket,"base64UrlToByteArray");function Nq(t){let e=[],r="";if(t){let n=t.split(".");for(let i of n)i.charAt(i.length-1)==="\\"?r+=i.substr(0,i.length-1)+".":(r+=i,e.push(r),r="")}return e}o(Nq,"splitSerializeName");function Xet(t){if(t)return typeof t.valueOf()=="string"&&(t=new Date(t)),Math.floor(t.getTime()/1e3)}o(Xet,"dateToUnixTime");function Zet(t){if(t)return new Date(t*1e3)}o(Zet,"unixTimeToDate");function ett(t,e,r){if(r!=null){if(t.match(/^Number$/i)!==null){if(typeof r!="number")throw new Error(`${e} with value ${r} must be of type number.`)}else if(t.match(/^String$/i)!==null){if(typeof r.valueOf()!="string")throw new Error(`${e} with value "${r}" must be of type string.`)}else if(t.match(/^Uuid$/i)!==null){if(!(typeof r.valueOf()=="string"&&hfe(r)))throw new Error(`${e} with value "${r}" must be of type string and a valid uuid.`)}else if(t.match(/^Boolean$/i)!==null){if(typeof r!="boolean")throw new Error(`${e} with value ${r} must be of type boolean.`)}else if(t.match(/^Stream$/i)!==null){let n=typeof r;if(n!=="string"&&typeof r.pipe!="function"&&typeof r.tee!="function"&&!(r instanceof ArrayBuffer)&&!ArrayBuffer.isView(r)&&!((typeof Blob=="function"||typeof Blob=="object")&&r instanceof Blob)&&n!=="function")throw new Error(`${e} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`)}}return r}o(ett,"serializeBasicTypes");function ttt(t,e,r){if(!e)throw new Error(`Please provide a set of allowedValues to validate ${t} as an Enum Type.`);if(!e.some(i=>typeof i.valueOf()=="string"?i.toLowerCase()===r.toLowerCase():i===r))throw new Error(`${r} is not a valid value for ${t}. The valid values are: ${JSON.stringify(e)}.`);return r}o(ttt,"serializeEnumType");function rtt(t,e){if(e!=null){if(!(e instanceof Uint8Array))throw new Error(`${t} must be of type Uint8Array.`);e=Sq(e)}return e}o(rtt,"serializeByteArrayType");function ntt(t,e){if(e!=null){if(!(e instanceof Uint8Array))throw new Error(`${t} must be of type Uint8Array.`);e=Yet(e)}return e}o(ntt,"serializeBase64UrlType");function itt(t,e,r){if(e!=null){if(t.match(/^Date$/i)!==null){if(!(e instanceof Date||typeof e.valueOf()=="string"&&!isNaN(Date.parse(e))))throw new Error(`${r} must be an instanceof Date or a string in ISO8601 format.`);e=e instanceof Date?e.toISOString().substring(0,10):new Date(e).toISOString().substring(0,10)}else if(t.match(/^DateTime$/i)!==null){if(!(e instanceof Date||typeof e.valueOf()=="string"&&!isNaN(Date.parse(e))))throw new Error(`${r} must be an instanceof Date or a string in ISO8601 format.`);e=e instanceof Date?e.toISOString():new Date(e).toISOString()}else if(t.match(/^DateTimeRfc1123$/i)!==null){if(!(e instanceof Date||typeof e.valueOf()=="string"&&!isNaN(Date.parse(e))))throw new Error(`${r} must be an instanceof Date or a string in RFC-1123 format.`);e=e instanceof Date?e.toUTCString():new Date(e).toUTCString()}else if(t.match(/^UnixTime$/i)!==null){if(!(e instanceof Date||typeof e.valueOf()=="string"&&!isNaN(Date.parse(e))))throw new Error(`${r} must be an instanceof Date or a string in RFC-1123/ISO8601 format for it to be serialized in UnixTime/Epoch format.`);e=Xet(e)}else if(t.match(/^TimeSpan$/i)!==null&&!ffe(e))throw new Error(`${r} must be a string in ISO 8601 format. Instead was "${e}".`)}return e}o(itt,"serializeDateTypes");function stt(t,e,r,n,i,s){if(!Array.isArray(r))throw new Error(`${n} must be of type Array.`);let a=e.type.element;if(!a||typeof a!="object")throw new Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${n}.`);a.type.name==="Composite"&&a.type.className&&(a=t.modelMappers[a.type.className]??a);let c=[];for(let l=0;lh!==d)&&(a[d]=t.serialize(l,r[d],n+'["'+d+'"]',s))}return a}return r}o(ctt,"serializeCompositeType");function gfe(t,e,r,n){if(!r||!t.xmlNamespace)return e;let s={[t.xmlNamespacePrefix?`xmlns:${t.xmlNamespacePrefix}`:"xmlns"]:t.xmlNamespace};if(["Composite"].includes(t.type.name)){if(e["$"])return e;{let c={...e};return c["$"]=s,c}}let a={};return a[n.xml.xmlCharKey]=e,a["$"]=s,a}o(gfe,"getXmlObjectValue");function ltt(t,e){return["$",e.xml.xmlCharKey].includes(t)}o(ltt,"isSpecialXmlProperty");function utt(t,e,r,n,i){let s=i.xml.xmlCharKey??"_";MN(t,e)&&(e=yfe(t,e,r,"serializedName"));let a=mfe(t,e,n),c={},l=[];for(let d of Object.keys(a)){let f=a[d],h=Nq(a[d].serializedName);l.push(h[0]);let{serializedName:p,xmlName:m,xmlElementName:A}=f,E=n;p!==""&&p!==void 0&&(E=n+"."+p);let y=f.headerCollectionPrefix;if(y){let C={};for(let w of Object.keys(r))w.startsWith(y)&&(C[w.substring(y.length)]=t.deserialize(f.type.value,r[w],E,i)),l.push(w);c[d]=C}else if(t.isXML)if(f.xmlIsAttribute&&r["$"])c[d]=t.deserialize(f,r["$"][m],E,i);else if(f.xmlIsMsText)r[s]!==void 0?c[d]=r[s]:typeof r=="string"&&(c[d]=r);else{let C=A||m||p;if(f.xmlIsWrapped){let B=r[m]?.[A]??[];c[d]=t.deserialize(f,B,E,i),l.push(m)}else{let w=r[C];c[d]=t.deserialize(f,w,E,i),l.push(C)}}else{let C,w=r,B=0;for(let N of h){if(!w)break;B++,w=w[N]}w===null&&B{for(let h in a)if(Nq(a[h].serializedName)[0]===f)return!1;return!0},"isAdditionalProperty");for(let f in r)d(f)&&(c[f]=t.deserialize(u,r[f],n+'["'+f+'"]',i))}else if(r&&!i.ignoreUnknownProperties)for(let d of Object.keys(r))c[d]===void 0&&!l.includes(d)&&!ltt(d,i)&&(c[d]=r[d]);return c}o(utt,"deserializeCompositeType");function dtt(t,e,r,n,i){let s=e.type.value;if(!s||typeof s!="object")throw new Error(`"value" metadata for a Dictionary must be defined in the mapper and it must of type "object" in ${n}`);if(r){let a={};for(let c of Object.keys(r))a[c]=t.deserialize(s,r[c],n,i);return a}return r}o(dtt,"deserializeDictionaryType");function ftt(t,e,r,n,i){let s=e.type.element;if(!s||typeof s!="object")throw new Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${n}`);if(r){Array.isArray(r)||(r=[r]),s.type.name==="Composite"&&s.type.className&&(s=t.modelMappers[s.type.className]??s);let a=[];for(let c=0;c0)if(i.isConstant)s=i.defaultValue;else{let a=bfe(t,n);!a.propertyFound&&r&&(a=bfe(r,n));let c=!1;a.propertyFound||(c=i.required||n[0]==="options"&&n.length===2),s=c?i.defaultValue:a.propertyValue}}else{i.required&&(s={});for(let a in n){let c=i.type.modelProperties[a],l=n[a],u=kd(t,{parameterPath:l,mapper:c},r);u!==void 0&&(s||(s={}),s[a]=u)}}return s}o(kd,"getOperationArgumentValueFromParameter");function bfe(t,e){let r={propertyFound:!1},n=0;for(;n=200&&r.status<300);l.headersMapper&&(s.parsedHeaders=c.serializer.deserialize(l.headersMapper,s.headers.toJSON(),"operationRes.parsedHeaders",{xml:{},ignoreUnknownProperties:!0}))}return s}o(Ett,"deserializeResponseBody");function Ctt(t){let e=Object.keys(t.responses);return e.length===0||e.length===1&&e[0]==="default"}o(Ctt,"isOperationSpecEmpty");function btt(t,e,r,n){let i=200<=t.status&&t.status<300;if(Ctt(e)?i:!!r)if(r){if(!r.isError)return{error:null,shouldReturnResponse:!1}}else return{error:null,shouldReturnResponse:!1};let a=r??e.responses.default,c=t.request.streamResponseStatusCodes?.has(t.status)?`Unexpected status code: ${t.status}`:t.bodyAsText,l=new cu(c,{statusCode:t.status,request:t.request,response:t});if(!a&&!(t.parsedBody?.error?.code&&t.parsedBody?.error?.message))throw l;let u=a?.bodyMapper,d=a?.headersMapper;try{if(t.parsedBody){let f=t.parsedBody,h;if(u){let m=f;if(e.isXML&&u.type.name===Sc.Sequence){m=[];let A=u.xmlElementName;typeof f=="object"&&A&&(m=f[A])}h=e.serializer.deserialize(u,m,"error.response.parsedBody",n)}let p=f.error||h||f;l.code=p.code,p.message&&(l.message=p.message),u&&(l.response.parsedBody=h)}t.headers&&d&&(l.response.parsedHeaders=e.serializer.deserialize(d,t.headers.toJSON(),"operationRes.parsedHeaders"))}catch(f){l.message=`Error "${f.message}" occurred in deserializing the responseBody - "${t.bodyAsText}" for the default response.`}return{error:l,shouldReturnResponse:!1}}o(btt,"handleErrorResponse");async function wtt(t,e,r,n,i){if(!r.request.streamResponseStatusCodes?.has(r.status)&&r.bodyAsText){let s=r.bodyAsText,a=r.headers.get("Content-Type")||"",c=a?a.split(";").map(l=>l.toLowerCase()):[];try{if(c.length===0||c.some(l=>t.indexOf(l)!==-1))return r.parsedBody=JSON.parse(s),r;if(c.some(l=>e.indexOf(l)!==-1)){if(!i)throw new Error("Parsing XML not supported.");let l=await i(s,n.xml);return r.parsedBody=l,r}}catch(l){let u=`Error "${l}" occurred while parsing the response body - ${r.bodyAsText}.`,d=l.code||cu.PARSE_ERROR;throw new cu(u,{code:d,statusCode:r.status,request:r.request,response:r})}}return r}o(wtt,"parse");function Sfe(t){let e=new Set;for(let r in t.responses){let n=t.responses[r];n.bodyMapper&&n.bodyMapper.type.name===Sc.Stream&&e.add(Number(r))}return e}o(Sfe,"getStreamingResponseStatusCodes");function Bc(t){let{parameterPath:e,mapper:r}=t,n;return typeof e=="string"?n=e:Array.isArray(e)?n=e.join("."):n=r.serializedName,n}o(Bc,"getPathStringFromParameter");var Bfe="serializationPolicy";function qN(t={}){let e=t.stringifyXML;return{name:Bfe,async sendRequest(r,n){let i=uu(r),s=i?.operationSpec,a=i?.operationArguments;return s&&a&&(Itt(r,a,s),Stt(r,a,s,e)),n(r)}}}o(qN,"serializationPolicy");function Itt(t,e,r){if(r.headerParameters)for(let i of r.headerParameters){let s=kd(e,i);if(s!=null||i.mapper.required){s=r.serializer.serialize(i.mapper,s,Bc(i));let a=i.mapper.headerCollectionPrefix;if(a)for(let c of Object.keys(s))t.headers.set(a+c,s[c]);else t.headers.set(i.mapper.serializedName||Bc(i),s)}}let n=e.options?.requestOptions?.customHeaders;if(n)for(let i of Object.keys(n))t.headers.set(i,n[i])}o(Itt,"serializeHeaders");function Stt(t,e,r,n=function(){throw new Error("XML serialization unsupported!")}){let i=e.options?.serializerOptions,s={xml:{rootName:i?.xml.rootName??"",includeRoot:i?.xml.includeRoot??!1,xmlCharKey:i?.xml.xmlCharKey??"_"}},a=s.xml.xmlCharKey;if(r.requestBody&&r.requestBody.mapper){t.body=kd(e,r.requestBody);let c=r.requestBody.mapper,{required:l,serializedName:u,xmlName:d,xmlElementName:f,xmlNamespace:h,xmlNamespacePrefix:p,nullable:m}=c,A=c.type.name;try{if(t.body!==void 0&&t.body!==null||m&&t.body===null||l){let E=Bc(r.requestBody);t.body=r.serializer.serialize(c,t.body,E,s);let y=A===Sc.Stream;if(r.isXML){let C=p?`xmlns:${p}`:"xmlns",w=Btt(h,C,A,t.body,s);A===Sc.Sequence?t.body=n(xtt(w,f||d||u,C,h),{rootName:d||u,xmlCharKey:a}):y||(t.body=n(w,{rootName:d||u,xmlCharKey:a}))}else{if(A===Sc.String&&(r.contentType?.match("text/plain")||r.mediaType==="text"))return;y||(t.body=JSON.stringify(t.body))}}}catch(E){throw new Error(`Error "${E.message}" occurred in serializing the payload - ${JSON.stringify(u,void 0," ")}.`)}}else if(r.formDataParameters&&r.formDataParameters.length>0){t.formData={};for(let c of r.formDataParameters){let l=kd(e,c);if(l!=null){let u=c.mapper.serializedName||Bc(c);t.formData[u]=r.serializer.serialize(c.mapper,l,Bc(c),s)}}}}o(Stt,"serializeRequestBody");function Btt(t,e,r,n,i){if(t&&!["Composite","Sequence","Dictionary"].includes(r)){let s={};return s[i.xml.xmlCharKey]=n,s["$"]={[e]:t},s}return n}o(Btt,"getXmlValueWithNamespace");function xtt(t,e,r,n){if(Array.isArray(t)||(t=[t]),!r||!n)return{[e]:t};let i={[e]:t};return i["$"]={[r]:n},i}o(xtt,"prepareXMLRootList");function Zb(t={}){let e=bq(t??{});return t.credentialOptions&&e.addPolicy(Km({credential:t.credentialOptions.credential,scopes:t.credentialOptions.credentialScopes})),e.addPolicy(qN(t.serializationOptions),{phase:"Serialize"}),e.addPolicy(_q(t.deserializationOptions),{phase:"Deserialize"}),e}o(Zb,"createClientPipeline");var Tq;function xfe(){return Tq||(Tq=Kb()),Tq}o(xfe,"getCachedDefaultHttpClient");var vtt={CSV:",",SSV:" ",Multi:"Multi",TSV:" ",Pipes:"|"};function Nfe(t,e,r,n){let i=Ntt(e,r,n),s=!1,a=vfe(t,i);if(e.path){let u=vfe(e.path,i);e.path==="/{nextLink}"&&u.startsWith("/")&&(u=u.substring(1)),Rtt(u)?(a=u,s=!0):a=_tt(a,u)}let{queryParams:c,sequenceParams:l}=Ttt(e,r,n);return a=Qtt(a,c,l,s),a}o(Nfe,"getRequestUrl");function vfe(t,e){let r=t;for(let[n,i]of e)r=r.split(n).join(i);return r}o(vfe,"replaceAll");function Ntt(t,e,r){let n=new Map;if(t.urlParameters?.length)for(let i of t.urlParameters){let s=kd(e,i,r),a=Bc(i);s=t.serializer.serialize(i.mapper,s,a),i.skipEncoding||(s=encodeURIComponent(s)),n.set(`{${i.mapper.serializedName||a}}`,s)}return n}o(Ntt,"calculateUrlReplacements");function Rtt(t){return t.includes("://")}o(Rtt,"isAbsoluteUrl");function _tt(t,e){if(!e)return t;let r=new URL(t),n=r.pathname;n.endsWith("/")||(n=`${n}/`),e.startsWith("/")&&(e=e.substring(1));let i=e.indexOf("?");if(i!==-1){let s=e.substring(0,i),a=e.substring(i+1);n=n+s,a&&(r.search=r.search?`${r.search}&${a}`:a)}else n=n+e;return r.pathname=n,r.toString()}o(_tt,"appendPath");function Ttt(t,e,r){let n=new Map,i=new Set;if(t.queryParameters?.length)for(let s of t.queryParameters){s.mapper.type.name==="Sequence"&&s.mapper.serializedName&&i.add(s.mapper.serializedName);let a=kd(e,s,r);if(a!=null||s.mapper.required){a=t.serializer.serialize(s.mapper,a,Bc(s));let c=s.collectionFormat?vtt[s.collectionFormat]:"";if(Array.isArray(a)&&(a=a.map(l=>l??"")),s.collectionFormat==="Multi"&&a.length===0)continue;Array.isArray(a)&&(s.collectionFormat==="SSV"||s.collectionFormat==="TSV")&&(a=a.join(c)),s.skipEncoding||(Array.isArray(a)?a=a.map(l=>encodeURIComponent(l)):a=encodeURIComponent(a)),Array.isArray(a)&&(s.collectionFormat==="CSV"||s.collectionFormat==="Pipes")&&(a=a.join(c)),n.set(s.mapper.serializedName||Bc(s),a)}}return{queryParams:n,sequenceParams:i}}o(Ttt,"calculateQueryParameters");function Dtt(t){let e=new Map;if(!t||t[0]!=="?")return e;t=t.slice(1);let r=t.split("&");for(let n of r){let[i,s]=n.split("=",2),a=e.get(i);a?Array.isArray(a)?a.push(s):e.set(i,[a,s]):e.set(i,s)}return e}o(Dtt,"simpleParseQueryParams");function Qtt(t,e,r,n=!1){if(e.size===0)return t;let i=new URL(t),s=Dtt(i.search);for(let[c,l]of e){let u=s.get(c);if(Array.isArray(u))if(Array.isArray(l)){u.push(...l);let d=new Set(u);s.set(c,Array.from(d))}else u.push(l);else u?(Array.isArray(l)?l.unshift(u):r.has(c)&&s.set(c,[u,l]),n||s.set(c,l)):s.set(c,l)}let a=[];for(let[c,l]of s)if(typeof l=="string")a.push(`${c}=${l}`);else if(Array.isArray(l))for(let u of l)a.push(`${c}=${u}`);else a.push(`${c}=${l}`);return i.search=a.length?`?${a.join("&")}`:"",i.toString()}o(Qtt,"appendQueryParams");var Dq=wc("core-client");var e0=class{static{o(this,"ServiceClient")}_endpoint;_requestContentType;_allowInsecureConnection;_httpClient;pipeline;constructor(e={}){if(this._requestContentType=e.requestContentType,this._endpoint=e.endpoint??e.baseUri,e.baseUri&&Dq.warning("The baseUri option for SDK Clients has been deprecated, please use endpoint instead."),this._allowInsecureConnection=e.allowInsecureConnection,this._httpClient=e.httpClient||xfe(),this.pipeline=e.pipeline||ktt(e),e.additionalPolicies?.length)for(let{policy:r,position:n}of e.additionalPolicies){let i=n==="perRetry"?"Sign":void 0;this.pipeline.addPolicy(r,{afterPhase:i})}}async sendRequest(e){return this.pipeline.sendRequest(this._httpClient,e)}async sendOperationRequest(e,r){let n=r.baseUrl||this._endpoint;if(!n)throw new Error("If operationSpec.baseUrl is not specified, then the ServiceClient must have a endpoint string property that contains the base URL to use.");let i=Nfe(n,r,e,this),s=Xb({url:i});s.method=r.httpMethod;let a=uu(s);a.operationSpec=r,a.operationArguments=e;let c=r.contentType||this._requestContentType;c&&r.requestBody&&s.headers.set("Content-Type",c);let l=e.options;if(l){let u=l.requestOptions;u&&(u.timeout&&(s.timeout=u.timeout),u.onUploadProgress&&(s.onUploadProgress=u.onUploadProgress),u.onDownloadProgress&&(s.onDownloadProgress=u.onDownloadProgress),u.shouldDeserialize!==void 0&&(a.shouldDeserialize=u.shouldDeserialize),u.allowInsecureConnection&&(s.allowInsecureConnection=!0)),l.abortSignal&&(s.abortSignal=l.abortSignal),l.tracingOptions&&(s.tracingOptions=l.tracingOptions)}this._allowInsecureConnection&&(s.allowInsecureConnection=!0),s.streamResponseStatusCodes===void 0&&(s.streamResponseStatusCodes=Sfe(r));try{let u=await this.sendRequest(s),d=xq(u,r.responses[u.status]);return l?.onResponse&&l.onResponse(u,d),d}catch(u){if(typeof u=="object"&&u?.response){let d=u.response,f=xq(d,r.responses[u.statusCode]||r.responses.default);u.details=f,l?.onResponse&&l.onResponse(d,f,u)}throw u}}};function ktt(t){let e=Ptt(t),r=t.credential&&e?{credentialScopes:e,credential:t.credential}:void 0;return Zb({...t,credentialOptions:r})}o(ktt,"createDefaultPipeline");function Ptt(t){if(t.credentialScopes)return t.credentialScopes;if(t.endpoint)return`${t.endpoint}/.default`;if(t.baseUri)return`${t.baseUri}/.default`;if(t.credential&&!t.credentialScopes)throw new Error("When using credentials, the ServiceClientOptions must contain either a endpoint or a credentialScopes. Unable to create a bearerTokenAuthenticationPolicy")}o(Ptt,"getCredentialScopes");var Rfe={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};function Ott(t){return/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(t)}o(Ott,"isUuid");var GN=o(async t=>{let e=qtt(t.request),r=Mtt(t.response);if(r){let n=Utt(r),i=Ftt(t,n),s=Ltt(n);if(!s)return!1;let a=await t.getAccessToken(i,{...e,tenantId:s});return a?(t.request.headers.set(Rfe.HeaderConstants.AUTHORIZATION,`${a.tokenType??"Bearer"} ${a.token}`),!0):!1}return!1},"authorizeRequestOnTenantChallenge");function Ltt(t){let n=new URL(t.authorization_uri).pathname.split("/")[1];if(n&&Ott(n))return n}o(Ltt,"extractTenantId");function Ftt(t,e){if(!e.resource_id)return t.scopes;let r=new URL(e.resource_id);r.pathname=Rfe.DefaultScope;let n=r.toString();return n==="https://disk.azure.com/.default"&&(n="https://disk.azure.com//.default"),[n]}o(Ftt,"buildScopes");function Mtt(t){let e=t.headers.get("WWW-Authenticate");if(t.status===401&&e)return e}o(Mtt,"getChallenge");function Utt(t){return`${t.slice(7).trim()} `.split(" ").filter(i=>i).map(i=>(([s,a])=>({[s]:a}))(i.trim().split("="))).reduce((i,s)=>({...i,...s}),{})}o(Utt,"parseChallenge");function qtt(t){return{abortSignal:t.abortSignal,requestOptions:{timeout:t.timeout},tracingOptions:t.tracingOptions}}o(qtt,"requestToOptions");var _fe=Symbol("Original PipelineRequest"),Gtt=Symbol.for("@azure/core-client original request");function r0(t,e={}){let n=t[_fe],i=lu(t.headers.toJson({preserveCase:!0}));if(n)return n.headers=i,n;{let s=Xb({url:t.url,method:t.method,headers:i,withCredentials:t.withCredentials,timeout:t.timeout,requestId:t.requestId,abortSignal:t.abortSignal,body:t.body,formData:t.formData,disableKeepAlive:!!t.keepAlive,onDownloadProgress:t.onDownloadProgress,onUploadProgress:t.onUploadProgress,proxySettings:t.proxySettings,streamResponseStatusCodes:t.streamResponseStatusCodes,agent:t.agent,requestOverrides:t.requestOverrides});return e.originalRequest&&(s[Gtt]=e.originalRequest),s}}o(r0,"toPipelineRequest");function Lh(t,e){let r=e?.originalRequest??t,n={url:t.url,method:t.method,headers:n0(t.headers),withCredentials:t.withCredentials,timeout:t.timeout,requestId:t.headers.get("x-ms-client-request-id")||t.requestId,abortSignal:t.abortSignal,body:t.body,formData:t.formData,keepAlive:!!t.disableKeepAlive,onDownloadProgress:t.onDownloadProgress,onUploadProgress:t.onUploadProgress,proxySettings:t.proxySettings,streamResponseStatusCodes:t.streamResponseStatusCodes,agent:t.agent,requestOverrides:t.requestOverrides,clone(){throw new Error("Cannot clone a non-proxied WebResourceLike")},prepare(){throw new Error("WebResourceLike.prepare() is not supported by @azure/core-http-compat")},validateRequestProperties(){}};return e?.createProxy?new Proxy(n,{get(i,s,a){return s===_fe?t:s==="clone"?()=>Lh(r0(n,{originalRequest:r}),{createProxy:!0,originalRequest:r}):Reflect.get(i,s,a)},set(i,s,a,c){return s==="keepAlive"&&(t.disableKeepAlive=!a),typeof s=="string"&&["url","method","withCredentials","timeout","requestId","abortSignal","body","formData","onDownloadProgress","onUploadProgress","proxySettings","streamResponseStatusCodes","agent","requestOverrides"].includes(s)&&(t[s]=a),Reflect.set(i,s,a,c)}}):n}o(Lh,"toWebResourceLike");function n0(t){return new Qq(t.toJSON({preserveCase:!0}))}o(n0,"toHttpHeadersLike");function t0(t){return t.toLowerCase()}o(t0,"getHeaderKey");var Qq=class t{static{o(this,"HttpHeaders")}_headersMap;constructor(e){if(this._headersMap={},e)for(let r in e)this.set(r,e[r])}set(e,r){this._headersMap[t0(e)]={name:e,value:r.toString()}}get(e){let r=this._headersMap[t0(e)];return r?r.value:void 0}contains(e){return!!this._headersMap[t0(e)]}remove(e){let r=this.contains(e);return delete this._headersMap[t0(e)],r}rawHeaders(){return this.toJson({preserveCase:!0})}headersArray(){let e=[];for(let r in this._headersMap)e.push(this._headersMap[r]);return e}headerNames(){let e=[],r=this.headersArray();for(let n=0;n{let r=await t.sendRequest(Lh(e,{createProxy:!0}));return zN(r)},"sendRequest")}}o(Oq,"convertHttpClient");var Qfe=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Vtt=Qfe+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",$tt="["+Qfe+"]["+Vtt+"]*",jtt=new RegExp("^"+$tt+"$");function VN(t,e){let r=[],n=e.exec(t);for(;n;){let i=[];i.startIndex=e.lastIndex-n[0].length;let s=n.length;for(let a=0;a"u")},"isName");function kfe(t){return typeof t<"u"}o(kfe,"isExist");var s0=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],$N=["__proto__","constructor","prototype"];var Wtt={allowBooleanAttributes:!1,unpairedTags:[]};function jN(t,e){e=Object.assign({},Wtt,e);let r=[],n=!1,i=!1;t[0]==="\uFEFF"&&(t=t.substr(1));for(let s=0;s"&&t[s]!==" "&&t[s]!==" "&&t[s]!==` -`&&t[s]!=="\r";s++)l+=t[s];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),s--),!rrt(l)){let f;return l.trim().length===0?f="Invalid space after '<'.":f="Tag '"+l+"' is an invalid name.",qr("InvalidTag",f,Qi(t,s))}let u=Ktt(t,s);if(u===!1)return qr("InvalidAttr","Attributes for '"+l+"' have open quote.",Qi(t,s));let d=u.value;if(s=u.index,d[d.length-1]==="/"){let f=s-d.length;d=d.substring(0,d.length-1);let h=Ffe(d,e);if(h===!0)n=!0;else return qr(h.err.code,h.err.msg,Qi(t,f+h.err.line))}else if(c)if(u.tagClosed){if(d.trim().length>0)return qr("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",Qi(t,a));if(r.length===0)return qr("InvalidTag","Closing tag '"+l+"' has not been opened.",Qi(t,a));{let f=r.pop();if(l!==f.tagName){let h=Qi(t,f.tagStartPos);return qr("InvalidTag","Expected closing tag '"+f.tagName+"' (opened in line "+h.line+", col "+h.col+") instead of closing tag '"+l+"'.",Qi(t,a))}r.length==0&&(i=!0)}}else return qr("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",Qi(t,s));else{let f=Ffe(d,e);if(f!==!0)return qr(f.err.code,f.err.msg,Qi(t,s-d.length+f.err.line));if(i===!0)return qr("InvalidXml","Multiple possible root nodes found.",Qi(t,s));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),n=!0}for(s++;s0)return qr("InvalidXml","Invalid '"+JSON.stringify(r.map(s=>s.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return qr("InvalidXml","Start tag expected.",1);return!0}o(jN,"validate");function Pfe(t){return t===" "||t===" "||t===` -`||t==="\r"}o(Pfe,"isWhiteSpace");function Ofe(t,e){let r=e;for(;e5&&n==="xml")return qr("InvalidXml","XML declaration allowed only at the start of the document.",Qi(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(Ofe,"readPI");function Lfe(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e"){e+=2;break}}return e}o(Lfe,"readCommentAndCDATA");var Jtt='"',Ytt="'";function Ktt(t,e){let r="",n="",i=!1;for(;e"&&n===""){i=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:i}}o(Ktt,"readAttributeStr");var Xtt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Ffe(t,e){let r=VN(t,Xtt),n={};for(let i=0;i",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",amp:"&",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},Ufe={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},qfe={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",Hstrok:"\u0126",hstrok:"\u0127",Itilde:"\u0128",itilde:"\u0129",Imacr:"\u012A",imacr:"\u012B",Iogon:"\u012E",iogon:"\u012F",Idot:"\u0130",IJlig:"\u0132",ijlig:"\u0133",Jcirc:"\u0134",jcirc:"\u0135",Kcedil:"\u0136",kcedil:"\u0137",kgreen:"\u0138",Lacute:"\u0139",lacute:"\u013A",Lcedil:"\u013B",lcedil:"\u013C",Lcaron:"\u013D",lcaron:"\u013E",Lmidot:"\u013F",lmidot:"\u0140",Lstrok:"\u0141",lstrok:"\u0142",Nacute:"\u0143",nacute:"\u0144",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ENG:"\u014A",eng:"\u014B",Omacr:"\u014C",omacr:"\u014D",Odblac:"\u0150",odblac:"\u0151",OElig:"\u0152",oelig:"\u0153",Racute:"\u0154",racute:"\u0155",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",Sacute:"\u015A",sacute:"\u015B",Scirc:"\u015C",scirc:"\u015D",Scedil:"\u015E",scedil:"\u015F",Scaron:"\u0160",scaron:"\u0161",Tcedil:"\u0162",tcedil:"\u0163",Tcaron:"\u0164",tcaron:"\u0165",Tstrok:"\u0166",tstrok:"\u0167",Utilde:"\u0168",utilde:"\u0169",Umacr:"\u016A",umacr:"\u016B",Ubreve:"\u016C",ubreve:"\u016D",Uring:"\u016E",uring:"\u016F",Udblac:"\u0170",udblac:"\u0171",Uogon:"\u0172",uogon:"\u0173",Wcirc:"\u0174",wcirc:"\u0175",Ycirc:"\u0176",ycirc:"\u0177",Zacute:"\u0179",zacute:"\u017A",Zdot:"\u017B",zdot:"\u017C",Zcaron:"\u017D",zcaron:"\u017E"},Gfe={Alpha:"\u0391",alpha:"\u03B1",Beta:"\u0392",beta:"\u03B2",Gamma:"\u0393",gamma:"\u03B3",Delta:"\u0394",delta:"\u03B4",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",varepsilon:"\u03F5",Zeta:"\u0396",zeta:"\u03B6",Eta:"\u0397",eta:"\u03B7",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",vartheta:"\u03D1",Iota:"\u0399",iota:"\u03B9",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",varkappa:"\u03F0",Lambda:"\u039B",lambda:"\u03BB",Mu:"\u039C",mu:"\u03BC",Nu:"\u039D",nu:"\u03BD",Xi:"\u039E",xi:"\u03BE",Omicron:"\u039F",omicron:"\u03BF",Pi:"\u03A0",pi:"\u03C0",piv:"\u03D6",varpi:"\u03D6",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",varrho:"\u03F1",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",varsigma:"\u03C2",Tau:"\u03A4",tau:"\u03C4",Upsilon:"\u03A5",upsilon:"\u03C5",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",varphi:"\u03D5",Chi:"\u03A7",chi:"\u03C7",Psi:"\u03A8",psi:"\u03C8",Omega:"\u03A9",omega:"\u03C9",ohm:"\u03A9",Gammad:"\u03DC",gammad:"\u03DD",digamma:"\u03DD"},Hfe={Afr:"\u{1D504}",afr:"\u{1D51E}",Acy:"\u0410",acy:"\u0430",Bcy:"\u0411",bcy:"\u0431",Vcy:"\u0412",vcy:"\u0432",Gcy:"\u0413",gcy:"\u0433",Dcy:"\u0414",dcy:"\u0434",IEcy:"\u0415",iecy:"\u0435",IOcy:"\u0401",iocy:"\u0451",ZHcy:"\u0416",zhcy:"\u0436",Zcy:"\u0417",zcy:"\u0437",Icy:"\u0418",icy:"\u0438",Jcy:"\u0419",jcy:"\u0439",Kcy:"\u041A",kcy:"\u043A",Lcy:"\u041B",lcy:"\u043B",Mcy:"\u041C",mcy:"\u043C",Ncy:"\u041D",ncy:"\u043D",Ocy:"\u041E",ocy:"\u043E",Pcy:"\u041F",pcy:"\u043F",Rcy:"\u0420",rcy:"\u0440",Scy:"\u0421",scy:"\u0441",Tcy:"\u0422",tcy:"\u0442",Ucy:"\u0423",ucy:"\u0443",Fcy:"\u0424",fcy:"\u0444",KHcy:"\u0425",khcy:"\u0445",TScy:"\u0426",tscy:"\u0446",CHcy:"\u0427",chcy:"\u0447",SHcy:"\u0428",shcy:"\u0448",SHCHcy:"\u0429",shchcy:"\u0449",HARDcy:"\u042A",hardcy:"\u044A",Ycy:"\u042B",ycy:"\u044B",SOFTcy:"\u042C",softcy:"\u044C",Ecy:"\u042D",ecy:"\u044D",YUcy:"\u042E",yucy:"\u044E",YAcy:"\u042F",yacy:"\u044F",DJcy:"\u0402",djcy:"\u0452",GJcy:"\u0403",gjcy:"\u0453",Jukcy:"\u0404",jukcy:"\u0454",DScy:"\u0405",dscy:"\u0455",Iukcy:"\u0406",iukcy:"\u0456",YIcy:"\u0407",yicy:"\u0457",Jsercy:"\u0408",jsercy:"\u0458",LJcy:"\u0409",ljcy:"\u0459",NJcy:"\u040A",njcy:"\u045A",TSHcy:"\u040B",tshcy:"\u045B",KJcy:"\u040C",kjcy:"\u045C",Ubrcy:"\u040E",ubrcy:"\u045E",DZcy:"\u040F",dzcy:"\u045F"},zfe={plus:"+",minus:"\u2212",mnplus:"\u2213",mp:"\u2213",pm:"\xB1",times:"\xD7",div:"\xF7",divide:"\xF7",sdot:"\u22C5",star:"\u2606",starf:"\u2605",bigstar:"\u2605",lowast:"\u2217",ast:"*",midast:"*",compfn:"\u2218",smallcircle:"\u2218",bullet:"\u2022",bull:"\u2022",nbsp:"\xA0",hellip:"\u2026",mldr:"\u2026",prime:"\u2032",Prime:"\u2033",tprime:"\u2034",bprime:"\u2035",backprime:"\u2035",minus:"\u2212",minusd:"\u2238",dotminus:"\u2238",plusdo:"\u2214",dotplus:"\u2214",plusmn:"\xB1",minusplus:"\u2213",mnplus:"\u2213",mp:"\u2213",setminus:"\u2216",smallsetminus:"\u2216",Backslash:"\u2216",setmn:"\u2216",ssetmn:"\u2216",lowbar:"_",verbar:"|",vert:"|",VerticalLine:"|",colon:":",Colon:"\u2237",Proportion:"\u2237",ratio:"\u2236",equals:"=",ne:"\u2260",nequiv:"\u2262",equiv:"\u2261",Congruent:"\u2261",sim:"\u223C",thicksim:"\u223C",thksim:"\u223C",sime:"\u2243",simeq:"\u2243",TildeEqual:"\u2243",asymp:"\u2248",approx:"\u2248",thickapprox:"\u2248",thkap:"\u2248",TildeTilde:"\u2248",ncong:"\u2247",cong:"\u2245",TildeFullEqual:"\u2245",asympeq:"\u224D",CupCap:"\u224D",bump:"\u224E",Bumpeq:"\u224E",HumpDownHump:"\u224E",bumpe:"\u224F",bumpeq:"\u224F",HumpEqual:"\u224F",dotminus:"\u2238",minusd:"\u2238",plusdo:"\u2214",dotplus:"\u2214",le:"\u2264",LessEqual:"\u2264",ge:"\u2265",GreaterEqual:"\u2265",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",greater:">",less:"<"},Vfe={alefsym:"\u2135",aleph:"\u2135",beth:"\u2136",gimel:"\u2137",daleth:"\u2138",forall:"\u2200",ForAll:"\u2200",part:"\u2202",PartialD:"\u2202",exist:"\u2203",Exists:"\u2203",nexist:"\u2204",nexists:"\u2204",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",varnothing:"\u2205",nabla:"\u2207",Del:"\u2207",isin:"\u2208",isinv:"\u2208",in:"\u2208",Element:"\u2208",notin:"\u2209",notinva:"\u2209",ni:"\u220B",niv:"\u220B",SuchThat:"\u220B",ReverseElement:"\u220B",notni:"\u220C",notniva:"\u220C",prod:"\u220F",Product:"\u220F",coprod:"\u2210",Coproduct:"\u2210",sum:"\u2211",Sum:"\u2211",minus:"\u2212",mp:"\u2213",plusdo:"\u2214",dotplus:"\u2214",setminus:"\u2216",lowast:"\u2217",radic:"\u221A",Sqrt:"\u221A",prop:"\u221D",propto:"\u221D",Proportional:"\u221D",varpropto:"\u221D",infin:"\u221E",infintie:"\u29DD",ang:"\u2220",angle:"\u2220",angmsd:"\u2221",measuredangle:"\u2221",angsph:"\u2222",mid:"\u2223",VerticalBar:"\u2223",nmid:"\u2224",nsmid:"\u2224",npar:"\u2226",parallel:"\u2225",spar:"\u2225",nparallel:"\u2226",nspar:"\u2226",and:"\u2227",wedge:"\u2227",or:"\u2228",vee:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",Integral:"\u222B",conint:"\u222E",ContourIntegral:"\u222E",Conint:"\u222F",DoubleContourIntegral:"\u222F",Cconint:"\u2230",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",becaus:"\u2235",because:"\u2235",Because:"\u2235",ratio:"\u2236",Proportion:"\u2237",minusd:"\u2238",dotminus:"\u2238",mDDot:"\u223A",homtht:"\u223B",sim:"\u223C",bsimg:"\u223D",backsim:"\u223D",ac:"\u223E",mstpos:"\u223E",acd:"\u223F",VerticalTilde:"\u2240",wr:"\u2240",wreath:"\u2240",nsime:"\u2244",nsimeq:"\u2244",nsimeq:"\u2244",ncong:"\u2247",simne:"\u2246",ncongdot:"\u2A6D\u0338",ngsim:"\u2275",nsim:"\u2241",napprox:"\u2249",nap:"\u2249",ngeq:"\u2271",nge:"\u2271",nleq:"\u2270",nle:"\u2270",ngtr:"\u226F",ngt:"\u226F",nless:"\u226E",nlt:"\u226E",nprec:"\u2280",npr:"\u2280",nsucc:"\u2281",nsc:"\u2281"},$fe={larr:"\u2190",leftarrow:"\u2190",LeftArrow:"\u2190",uarr:"\u2191",uparrow:"\u2191",UpArrow:"\u2191",rarr:"\u2192",rightarrow:"\u2192",RightArrow:"\u2192",darr:"\u2193",downarrow:"\u2193",DownArrow:"\u2193",harr:"\u2194",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",varr:"\u2195",updownarrow:"\u2195",UpDownArrow:"\u2195",nwarr:"\u2196",nwarrow:"\u2196",UpperLeftArrow:"\u2196",nearr:"\u2197",nearrow:"\u2197",UpperRightArrow:"\u2197",searr:"\u2198",searrow:"\u2198",LowerRightArrow:"\u2198",swarr:"\u2199",swarrow:"\u2199",LowerLeftArrow:"\u2199",lArr:"\u21D0",Leftarrow:"\u21D0",uArr:"\u21D1",Uparrow:"\u21D1",rArr:"\u21D2",Rightarrow:"\u21D2",dArr:"\u21D3",Downarrow:"\u21D3",hArr:"\u21D4",Leftrightarrow:"\u21D4",iff:"\u21D4",vArr:"\u21D5",Updownarrow:"\u21D5",lAarr:"\u21DA",Lleftarrow:"\u21DA",rAarr:"\u21DB",Rrightarrow:"\u21DB",lrarr:"\u21C6",leftrightarrows:"\u21C6",rlarr:"\u21C4",rightleftarrows:"\u21C4",lrhar:"\u21CB",leftrightharpoons:"\u21CB",ReverseEquilibrium:"\u21CB",rlhar:"\u21CC",rightleftharpoons:"\u21CC",Equilibrium:"\u21CC",udarr:"\u21C5",UpArrowDownArrow:"\u21C5",duarr:"\u21F5",DownArrowUpArrow:"\u21F5",llarr:"\u21C7",leftleftarrows:"\u21C7",rrarr:"\u21C9",rightrightarrows:"\u21C9",ddarr:"\u21CA",downdownarrows:"\u21CA",har:"\u21BD",lhard:"\u21BD",leftharpoondown:"\u21BD",lharu:"\u21BC",leftharpoonup:"\u21BC",rhard:"\u21C1",rightharpoondown:"\u21C1",rharu:"\u21C0",rightharpoonup:"\u21C0",lsh:"\u21B0",Lsh:"\u21B0",rsh:"\u21B1",Rsh:"\u21B1",ldsh:"\u21B2",rdsh:"\u21B3",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",mapstoleft:"\u21A4",mapstoup:"\u21A5",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",crarr:"\u21B5",nwarrow:"\u2196",nearrow:"\u2197",searrow:"\u2198",swarrow:"\u2199",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nrightarrow:"\u219B",nrarr:"\u219B",larrtl:"\u21A2",rarrtl:"\u21A3",leftarrowtail:"\u21A2",rightarrowtail:"\u21A3",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Larr:"\u219E",Rarr:"\u21A0",larrhk:"\u21A9",rarrhk:"\u21AA",larrlp:"\u21AB",looparrowleft:"\u21AB",rarrlp:"\u21AC",looparrowright:"\u21AC",harrw:"\u21AD",leftrightsquigarrow:"\u21AD",nrarrw:"\u219D\u0338",rarrw:"\u219D",rightsquigarrow:"\u219D",larrbfs:"\u291F",rarrbfs:"\u2920",nvHarr:"\u2904",nvlArr:"\u2902",nvrArr:"\u2903",larrfs:"\u291D",rarrfs:"\u291E",Map:"\u2905",larrsim:"\u2973",rarrsim:"\u2974",harrcir:"\u2948",Uarrocir:"\u2949",lurdshar:"\u294A",ldrdhar:"\u2967",ldrushar:"\u294B",rdldhar:"\u2969",lrhard:"\u296D",rlhar:"\u21CC",uharr:"\u21BE",uharl:"\u21BF",dharr:"\u21C2",dharl:"\u21C3",Uarr:"\u219F",Darr:"\u21A1",zigrarr:"\u21DD",nwArr:"\u21D6",neArr:"\u21D7",seArr:"\u21D8",swArr:"\u21D9",nharr:"\u21AE",nhArr:"\u21CE",nlarr:"\u219A",nlArr:"\u21CD",nrarr:"\u219B",nrArr:"\u21CF",larrb:"\u21E4",LeftArrowBar:"\u21E4",rarrb:"\u21E5",RightArrowBar:"\u21E5"},jfe={square:"\u25A1",Square:"\u25A1",squ:"\u25A1",squf:"\u25AA",squarf:"\u25AA",blacksquar:"\u25AA",blacksquare:"\u25AA",FilledVerySmallSquare:"\u25AA",blk34:"\u2593",blk12:"\u2592",blk14:"\u2591",block:"\u2588",srect:"\u25AD",rect:"\u25AD",sdot:"\u22C5",sdotb:"\u22A1",dotsquare:"\u22A1",triangle:"\u25B5",tri:"\u25B5",trine:"\u25B5",utri:"\u25B5",triangledown:"\u25BF",dtri:"\u25BF",tridown:"\u25BF",triangleleft:"\u25C3",ltri:"\u25C3",triangleright:"\u25B9",rtri:"\u25B9",blacktriangle:"\u25B4",utrif:"\u25B4",blacktriangledown:"\u25BE",dtrif:"\u25BE",blacktriangleleft:"\u25C2",ltrif:"\u25C2",blacktriangleright:"\u25B8",rtrif:"\u25B8",loz:"\u25CA",lozenge:"\u25CA",blacklozenge:"\u29EB",lozf:"\u29EB",bigcirc:"\u25EF",xcirc:"\u25EF",circ:"\u02C6",Circle:"\u25CB",cir:"\u25CB",o:"\u25CB",bullet:"\u2022",bull:"\u2022",hellip:"\u2026",mldr:"\u2026",nldr:"\u2025",boxh:"\u2500",HorizontalLine:"\u2500",boxv:"\u2502",boxdr:"\u250C",boxdl:"\u2510",boxur:"\u2514",boxul:"\u2518",boxvr:"\u251C",boxvl:"\u2524",boxhd:"\u252C",boxhu:"\u2534",boxvh:"\u253C",boxH:"\u2550",boxV:"\u2551",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxDl:"\u2555",boxdL:"\u2556",boxDL:"\u2557",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxUl:"\u255C",boxuL:"\u255B",boxUL:"\u255D",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",boxVl:"\u2562",boxvL:"\u2561",boxVL:"\u2563",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C"},Wfe={excl:"!",iexcl:"\xA1",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",nbsp:"\xA0",comma:",",period:".",colon:":",semi:";",vert:"|",Verbar:"\u2016",verbar:"|",dblac:"\u02DD",circ:"\u02C6",caron:"\u02C7",breve:"\u02D8",dot:"\u02D9",ring:"\u02DA",ogon:"\u02DB",tilde:"\u02DC",DiacriticalGrave:"`",DiacriticalAcute:"\xB4",DiacriticalTilde:"\u02DC",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",grave:"`",acute:"\xB4"},WN={cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",euro:"\u20AC",dollar:"$",euro:"\u20AC",fnof:"\u0192",inr:"\u20B9",af:"\u060B",birr:"\u1265\u122D",peso:"\u20B1",rub:"\u20BD",won:"\u20A9",yuan:"\xA5",cedil:"\xB8"},Jfe={frac12:"\xBD",half:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044"},Yfe={trade:"\u2122",TRADE:"\u2122",telrec:"\u2315",target:"\u2316",ulcorn:"\u231C",ulcorner:"\u231C",urcorn:"\u231D",urcorner:"\u231D",dlcorn:"\u231E",llcorner:"\u231E",drcorn:"\u231F",lrcorner:"\u231F",intercal:"\u22BA",intcal:"\u22BA",oplus:"\u2295",CirclePlus:"\u2295",ominus:"\u2296",CircleMinus:"\u2296",otimes:"\u2297",CircleTimes:"\u2297",osol:"\u2298",odot:"\u2299",CircleDot:"\u2299",oast:"\u229B",circledast:"\u229B",odash:"\u229D",circleddash:"\u229D",ocirc:"\u229A",circledcirc:"\u229A",boxplus:"\u229E",plusb:"\u229E",boxminus:"\u229F",minusb:"\u229F",boxtimes:"\u22A0",timesb:"\u22A0",boxdot:"\u22A1",sdotb:"\u22A1",veebar:"\u22BB",vee:"\u2228",barvee:"\u22BD",and:"\u2227",wedge:"\u2227",Cap:"\u22D2",Cup:"\u22D3",Fork:"\u22D4",pitchfork:"\u22D4",epar:"\u22D5",ltlarr:"\u2976",nvap:"\u224D\u20D2",nvsim:"\u223C\u20D2",nvge:"\u2265\u20D2",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvgt:">\u20D2",nvltrie:"\u22B4\u20D2",nvrtrie:"\u22B5\u20D2",Vdash:"\u22A9",dashv:"\u22A3",vDash:"\u22A8",Vdash:"\u22A9",Vvdash:"\u22AA",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF"},nrt={...Mfe,...Ufe,...qfe,...Gfe,...Hfe,...zfe,...Vfe,...$fe,...jfe,...Wfe,...WN,...Jfe,...Yfe},a0={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},Fq={nbsp:"\xA0",copy:"\xA9",reg:"\xAE",trade:"\u2122",mdash:"\u2014",ndash:"\u2013",hellip:"\u2026",laquo:"\xAB",raquo:"\xBB",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",bull:"\u2022",para:"\xB6",sect:"\xA7",deg:"\xB0",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE"};var irt=new Set("!?\\\\/[]$%{}^&*()<>|+");function Kfe(t){if(t[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${t}"`);for(let e of t)if(irt.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${t}"`);return t}o(Kfe,"validateEntityName");function Mq(...t){let e=Object.create(null);for(let r of t)if(r)for(let n of Object.keys(r)){let i=r[n];if(typeof i=="string")e[n]=i;else if(i&&typeof i=="object"&&i.val!==void 0){let s=i.val;typeof s=="string"&&(e[n]=s)}}return e}o(Mq,"mergeEntityMaps");var Fh="external",JN="base",Uq="all";function srt(t){return!t||t===Fh?new Set([Fh]):t===Uq?new Set([Uq]):t===JN?new Set([JN]):Array.isArray(t)?new Set(t):new Set([Fh])}o(srt,"parseLimitTiers");var os=Object.freeze({allow:0,leave:1,remove:2,throw:3}),ort=new Set([9,10,13]);function art(t){if(!t)return{xmlVersion:1,onLevel:os.allow,nullLevel:os.remove};let e=t.xmlVersion===1.1?1.1:1,r=os[t.onNCR]??os.allow,n=os[t.nullNCR]??os.remove,i=Math.max(n,os.remove);return{xmlVersion:e,onLevel:r,nullLevel:i}}o(art,"parseNCRConfig");var Zm=class{static{o(this,"EntityDecoder")}constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck=="function"?e.postCheck:n=>n,this._limitTiers=srt(this._limit.applyLimitsTo??Fh),this._numericAllowed=e.numericAllowed??!0,this._baseMap=Mq(a0,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.leave&&Array.isArray(e.leave)?e.leave:[]);let r=art(e.ncr);this._ncrXmlVersion=r.xmlVersion,this._ncrOnLevel=r.onLevel,this._ncrNullLevel=r.nullLevel}setExternalEntities(e){if(e)for(let r of Object.keys(e))Kfe(r);this._externalMap=Mq(e)}addExternalEntity(e,r){Kfe(e),typeof r=="string"&&r.indexOf("&")===-1&&(this._externalMap[e]=r)}addInputEntities(e){this._totalExpansions=0,this._expandedLength=0,this._inputMap=Mq(e)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(e){this._ncrXmlVersion=e===1.1?1.1:1}decode(e){if(typeof e!="string"||e.length===0)return e;let r=e,n=[],i=e.length,s=0,a=0,c=this._maxTotalExpansions>0,l=this._maxExpandedLength>0,u=c||l;for(;a=i||e.charCodeAt(f)!==59){a++;continue}let h=e.slice(a+1,f);if(h.length===0){a++;continue}let p,m;if(this._removeSet.has(h))p="",m===void 0&&(m=Fh);else if(this._leaveSet.has(h)){a++;continue}else if(h.charCodeAt(0)===35){let A=this._resolveNCR(h);if(A===void 0){a++;continue}p=A,m=JN}else{let A=this._resolveName(h);p=A?.value,m=A?.tier}if(p===void 0){a++;continue}if(a>s&&n.push(e.slice(s,a)),n.push(p),s=f+1,a=s,u&&this._tierCounts(m)){if(c&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw new Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(l){let A=p.length-(h.length+2);if(A>0&&(this._expandedLength+=A,this._expandedLength>this._maxExpandedLength))throw new Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}s=55296&&e<=57343||this._ncrXmlVersion===1&&e>=1&&e<=31&&!ort.has(e)?os.remove:-1}_applyNCRAction(e,r,n){switch(e){case os.allow:return String.fromCodePoint(n);case os.remove:return"";case os.leave:return;case os.throw:throw new Error(`[EntityDecoder] Prohibited numeric character reference &${r}; (U+${n.toString(16).toUpperCase().padStart(4,"0")})`);default:return String.fromCodePoint(n)}}_resolveNCR(e){let r=e.charCodeAt(1),n;if(r===120||r===88?n=parseInt(e.slice(2),16):n=parseInt(e.slice(1),10),Number.isNaN(n)||n<0||n>1114111)return;let i=this._classifyNCR(n);if(!this._numericAllowed&&is0.includes(t)?"__"+t:t,"defaultOnDangerousProperty"),crt={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:o(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:o(function(t,e){return e},"attributeValueProcessor"),stopNodes:[],alwaysCreateTextNode:!1,isArray:o(()=>!1,"isArray"),commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:o(function(t,e,r){return t},"updateTag"),captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:Xfe};function lrt(t,e){if(typeof t!="string")return;let r=t.toLowerCase();if(s0.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);if($N.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`)}o(lrt,"validatePropertyName");function Zfe(t,e){return typeof t=="boolean"?{enabled:t,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:"all"}:typeof t=="object"&&t!==null?{enabled:t.enabled!==!1,maxEntitySize:Math.max(1,t.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,t.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,t.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,t.maxExpandedLength??1e5),maxEntityCount:Math.max(1,t.maxEntityCount??1e3),allowedTags:t.allowedTags??null,tagFilter:t.tagFilter??null,appliesTo:t.appliesTo??"all"}:Zfe(!0)}o(Zfe,"normalizeProcessEntities");var ehe=o(function(t){let e=Object.assign({},crt,t),r=[{value:e.attributeNamePrefix,name:"attributeNamePrefix"},{value:e.attributesGroupName,name:"attributesGroupName"},{value:e.textNodeName,name:"textNodeName"},{value:e.cdataPropName,name:"cdataPropName"},{value:e.commentPropName,name:"commentPropName"}];for(let{value:n,name:i}of r)n&&lrt(n,i);return e.onDangerousProperty===null&&(e.onDangerousProperty=Xfe),e.processEntities=Zfe(e.processEntities,e.htmlEntities),e.unpairedTagsSet=new Set(e.unpairedTags),e.stopNodes&&Array.isArray(e.stopNodes)&&(e.stopNodes=e.stopNodes.map(n=>typeof n=="string"&&n.startsWith("*.")?".."+n.substring(2):n)),e},"buildOptions");var YN;typeof Symbol!="function"?YN="@@xmlMetadata":YN=Symbol("XML Node Metadata");var as=class{static{o(this,"XmlNode")}constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,r){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:r})}addChild(e,r){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),r!==void 0&&(this.child[this.child.length-1][YN]={startIndex:r})}static getMetaDataSymbol(){return YN}};var the=":A-Za-z_\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u0486\u0488-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",urt=the+"\\-\\.\\d\xB7\u0300-\u036F\u203F-\u2040",rhe=":A-Za-z_\xC0-\u02FF\u0370-\u037D\u037F-\u0486\u0488-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}",drt=rhe+"\\-\\.\\d\xB7\u0300-\u036F\u0487\u203F-\u2040",nhe=o((t,e,r="")=>{let n=t.replace(":",""),i=e.replace(":",""),s=`[${n}][${i}]*`;return{name:new RegExp(`^[${t}][${e}]*$`,r),ncName:new RegExp(`^${s}$`,r),qName:new RegExp(`^${s}(?::${s})?$`,r),nmToken:new RegExp(`^[${e}]+$`,r),nmTokens:new RegExp(`^[${e}]+(?:\\s+[${e}]+)*$`,r)}},"buildRegexes"),frt=nhe(the,urt),hrt=nhe(rhe,drt,"u"),prt=o((t="1.0")=>t==="1.1"?hrt:frt,"getRegexes");var Mh=o((t,{xmlVersion:e="1.0"}={})=>prt(e).qName.test(t),"qName");var l0=class{static{o(this,"DocTypeReader")}constructor(e,r){this.suppressValidationErr=!e,this.options=e,this.xmlVersion=r||1}setXmlVersion(e=1){this.xmlVersion=e}readDocType(e,r){let n=Object.create(null),i=0;if(e[r+3]==="O"&&e[r+4]==="C"&&e[r+5]==="T"&&e[r+6]==="Y"&&e[r+7]==="P"&&e[r+8]==="E"){r=r+9;let s=1,a=!1,c=!1,l="";for(;r=this.options.maxEntityCount)throw new Error(`Entity count (${i+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);n[u]=d,i++}}else if(a&&Uh(e,"!ELEMENT",r)){r+=8;let{index:u}=this.readElementExp(e,r+1);r=u}else if(a&&Uh(e,"!ATTLIST",r))r+=8;else if(a&&Uh(e,"!NOTATION",r)){r+=9;let{index:u}=this.readNotationExp(e,r+1,this.suppressValidationErr);r=u}else if(Uh(e,"!--",r))c=!0;else throw new Error("Invalid DOCTYPE");s++,l=""}else if(e[r]===">"){if(c?e[r-1]==="-"&&e[r-2]==="-"&&(c=!1,s--):s--,s===0)break}else e[r]==="["?a=!0:l+=e[r];if(s!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:n,i:r}}readEntityExp(e,r){r=cs(e,r);let n=r;for(;rthis.options.maxEntitySize)throw new Error(`Entity "${i}" size (${s.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return r--,[i,s,r]}readNotationExp(e,r){r=cs(e,r);let n=r;for(;r{for(;e1||s.length===1&&!c))return t;{let l=Number(r),u=String(l);if(l===0)return l;if(u.search(/[eE]/)!==-1)return e.eNotation?l:t;if(r.indexOf(".")!==-1)return u==="0"||u===a||u===`${i}${a}`?l:t;let d=s?a:r;return s?d===u||i+d===u?l:t:d===u||d===i+u?l:t}}else return t}}else return Irt(t,Number(r),e)}o(Gq,"toNumber");var Crt=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function brt(t,e,r){if(!r.eNotation)return t;let n=e.match(Crt);if(n){let i=n[1]||"",s=n[3].indexOf("e")===-1?"E":"e",a=n[2],c=i?t[a.length+1]===s:t[a.length]===s;return a.length>1&&c?t:a.length===1&&(n[3].startsWith(`.${s}`)||n[3][0]===s)?Number(e):a.length>0?r.leadingZeros&&!c?(e=(n[1]||"")+n[3],Number(e)):t:Number(e)}else return t}o(brt,"resolveEnotation");function wrt(t){return t&&t.indexOf(".")!==-1&&(t=t.replace(/0+$/,""),t==="."?t="0":t[0]==="."?t="0"+t:t[t.length-1]==="."&&(t=t.substring(0,t.length-1))),t}o(wrt,"trimZeros");function qq(t,e){let r=t.trim();if((e===2||e===8)&&(t=r.substring(2)),parseInt)return parseInt(t,e);if(Number.parseInt)return Number.parseInt(t,e);if(window&&window.parseInt)return window.parseInt(t,e);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}o(qq,"parse_int");function Irt(t,e,r){let n=e===1/0;switch(r.infinity.toLowerCase()){case"null":return null;case"infinity":return e;case"string":return n?"Infinity":"-Infinity";default:return t}}o(Irt,"handleInfinity");function Hq(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}o(Hq,"getIgnoreAttributesFn");var Ws=class{static{o(this,"Expression")}constructor(e,r={},n){this.pattern=e,this.separator=r.separator||".",this.segments=this._parse(e),this.data=n,this._hasDeepWildcard=this.segments.some(i=>i.type==="deep-wildcard"),this._hasAttributeCondition=this.segments.some(i=>i.attrName!==void 0),this._hasPositionSelector=this.segments.some(i=>i.position!==void 0)}_parse(e){let r=[],n=0,i="";for(;n0?e[e.length-1].tag:void 0}getCurrentNamespace(){let e=this._matcher.path;return e.length>0?e[e.length-1].namespace:void 0}getAttrValue(e){let r=this._matcher.path;if(r.length!==0)return r[r.length-1].values?.[e]}hasAttr(e){let r=this._matcher.path;if(r.length===0)return!1;let n=r[r.length-1];return n.values!==void 0&&e in n.values}getPosition(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].position??0}getCounter(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(e,r=!0){return this._matcher.toString(e,r)}toArray(){return this._matcher.path.map(e=>e.tag)}matches(e){return this._matcher.matches(e)}matchesAny(e){return e.matchesAny(this._matcher)}},xc=class{static{o(this,"Matcher")}constructor(e={}){this.separator=e.separator||".",this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new zq(this)}push(e,r=null,n=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let i=this.path.length;this.siblingStacks[i]||(this.siblingStacks[i]=new Map);let s=this.siblingStacks[i],a=n?`${n}:${e}`:e,c=s.get(a)||0,l=0;for(let d of s.values())l+=d;s.set(a,c+1);let u={tag:e,position:l,counter:c};n!=null&&(u.namespace=n),r!=null&&(u.values=r),this.path.push(u)}pop(){if(this.path.length===0)return;this._pathStringCache=null;let e=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),e}updateCurrent(e){if(this.path.length>0){let r=this.path[this.path.length-1];e!=null&&(r.values=e)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(e){if(this.path.length!==0)return this.path[this.path.length-1].values?.[e]}hasAttr(e){if(this.path.length===0)return!1;let r=this.path[this.path.length-1];return r.values!==void 0&&e in r.values}getPosition(){return this.path.length===0?-1:this.path[this.path.length-1].position??0}getCounter(){return this.path.length===0?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,r=!0){let n=e||this.separator;if(n===this.separator&&r===!0){if(this._pathStringCache!==null)return this._pathStringCache;let s=this.path.map(a=>a.namespace?`${a.namespace}:${a.tag}`:a.tag).join(n);return this._pathStringCache=s,s}return this.path.map(s=>r&&s.namespace?`${s.namespace}:${s.tag}`:s.tag).join(n)}toArray(){return this.path.map(e=>e.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[]}matches(e){let r=e.segments;return r.length===0?!1:e.hasDeepWildcard()?this._matchWithDeepWildcard(r):this._matchSimple(r)}_matchSimple(e){if(this.path.length!==e.length)return!1;for(let r=0;r=0&&r>=0;){let i=e[n];if(i.type==="deep-wildcard"){if(n--,n<0)return!0;let s=e[n],a=!1;for(let c=r;c>=0;c--)if(this._matchSegment(s,this.path[c],c===this.path.length-1)){r=c-1,n--,a=!0;break}if(!a)return!1}else{if(!this._matchSegment(i,this.path[r],r===this.path.length-1))return!1;r--,n--}}return n<0}_matchSegment(e,r,n){if(e.tag!=="*"&&e.tag!==r.tag||e.namespace!==void 0&&e.namespace!=="*"&&e.namespace!==r.namespace||e.attrName!==void 0&&(!n||!r.values||!(e.attrName in r.values)||e.attrValue!==void 0&&String(r.values[e.attrName])!==String(e.attrValue)))return!1;if(e.position!==void 0){if(!n)return!1;let i=r.counter??0;if(e.position==="first"&&i!==0)return!1;if(e.position==="odd"&&i%2!==1)return!1;if(e.position==="even"&&i%2!==0)return!1;if(e.position==="nth"&&i!==e.positionValue)return!1}return!0}matchesAny(e){return e.matchesAny(this)}snapshot(){return{path:this.path.map(e=>({...e})),siblingStacks:this.siblingStacks.map(e=>new Map(e))}}restore(e){this._pathStringCache=null,this.path=e.path.map(r=>({...r})),this.siblingStacks=e.siblingStacks.map(r=>new Map(r))}readOnly(){return this._view}};function Srt(t,e){if(!t)return{};let r=e.attributesGroupName?t[e.attributesGroupName]:t;if(!r)return{};let n={};for(let i in r)if(i.startsWith(e.attributeNamePrefix)){let s=i.substring(e.attributeNamePrefix.length);n[s]=r[i]}else n[i]=r[i];return n}o(Srt,"extractRawAttributes");function Brt(t){if(!t||typeof t!="string")return;let e=t.indexOf(":");if(e!==-1&&e>0){let r=t.substring(0,e);if(r!=="xmlns")return r}}o(Brt,"extractNamespace");var u0=class{static{o(this,"OrderedObjParser")}constructor(e,r){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=_rt,this.parseTextData=xrt,this.resolveNameSpace=vrt,this.buildAttributesMap=Rrt,this.isItStopNode=krt,this.replaceEntitiesValue=Drt,this.readStopNodeData=Lrt,this.saveTextToParentTag=Qrt,this.addChild=Trt,this.ignoreAttributesFn=Hq(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0;let n={...a0};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities=="object"?n=this.options.htmlEntities:this.options.htmlEntities===!0&&(n={...Fq,...WN}),this.entityDecoder=new Zm({namedEntities:{...n,...r},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo}})),this.matcher=new xc,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new eg;let i=this.options.stopNodes;if(i&&i.length>0){for(let s=0;s0)){a||(t=this.replaceEntitiesValue(t,e,r));let l=c.jPath?r.toString():r,u=c.tagValueProcessor(e,t,l,i,s);return u==null?t:typeof u!=typeof t||u!==t?u:c.trimValues||t.trim()===t?jq(t,c.parseTagValue,c.numberParseOptions):t}}o(xrt,"parseTextData");function vrt(t){if(this.options.removeNSPrefix){let e=t.split(":"),r=t.charAt(0)==="/"?"/":"";if(e[0]==="xmlns")return"";e.length===2&&(t=r+e[1])}return t}o(vrt,"resolveNameSpace");var Nrt=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function Rrt(t,e,r,n=!1){let i=this.options;if(n===!0||i.ignoreAttributes!==!0&&typeof t=="string"){let s=VN(t,Nrt),a=s.length,c={},l=new Array(a),u=!1,d={};for(let p=0;p",c,"Closing Tag is not closed."),f=t.substring(c+2,d).trim();if(i.removeNSPrefix){let p=f.indexOf(":");p!==-1&&(f=f.substr(p+1))}f=Vq(i.transformTagName,f,"",i).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let h=this.matcher.getCurrentTag();if(f&&i.unpairedTagsSet.has(f))throw new Error(`Unpaired tag can not be used as closing tag: `);h&&i.unpairedTagsSet.has(h)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=d}else if(u===63){let d=$q(t,c,!1,"?>");if(!d)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let f=this.buildAttributesMap(d.tagExp,this.matcher,d.tagName,!0);if(f){let h=f[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(h)||1),s.setXmlVersion(Number(h)||1)}if(!(i.ignoreDeclaration&&d.tagName==="?xml"||i.ignorePiTags)){let h=new as(d.tagName);h.add(i.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&i.ignoreAttributes!==!0&&(h[":@"]=f),this.addChild(r,h,this.readonlyMatcher,c)}c=d.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let d=tg(t,"-->",c+4,"Comment is not closed.");if(i.commentPropName){let f=t.substring(c+4,d-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(i.commentPropName,[{[i.textNodeName]:f}])}c=d}else if(u===33&&t.charCodeAt(c+2)===68){let d=s.readDocType(t,c);this.entityDecoder.addInputEntities(d.entities),c=d.i}else if(u===33&&t.charCodeAt(c+2)===91){let d=tg(t,"]]>",c,"CDATA is not closed.")-2,f=t.substring(c+9,d);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let h=this.parseTextData(f,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);h==null&&(h=""),i.cdataPropName?r.add(i.cdataPropName,[{[i.textNodeName]:f}]):r.add(i.textNodeName,h),c=d+2}else{let d=$q(t,c,i.removeNSPrefix);if(!d){let U=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${U}"`)}let f=d.tagName,h=d.rawTagName,p=d.tagExp,m=d.attrExpPresent,A=d.closeIndex;if({tagName:f,tagExp:p}=Vq(i.transformTagName,f,p,i),i.strictReservedNames&&(f===i.commentPropName||f===i.cdataPropName||f===i.textNodeName||f===i.attributesGroupName))throw new Error(`Invalid tag name: ${f}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let E=r;E&&i.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let y=!1;p.length>0&&p.lastIndexOf("/")===p.length-1&&(y=!0,f[f.length-1]==="/"?(f=f.substr(0,f.length-1),p=f):p=p.substr(0,p.length-1),m=f!==p);let C=null,w={},B;B=Brt(h),f!==e.tagname&&this.matcher.push(f,{},B),f!==p&&m&&(C=this.buildAttributesMap(p,this.matcher,f),C&&(w=Srt(C,i))),f!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let P=c;if(this.isCurrentNodeStopNode){let U="";if(y)c=d.closeIndex;else if(i.unpairedTagsSet.has(f))c=d.closeIndex;else{let $=this.readStopNodeData(t,h,A+1);if(!$)throw new Error(`Unexpected end of ${h}`);c=$.i,U=$.tagContent}let N=new as(f);C&&(N[":@"]=C),N.add(i.textNodeName,U),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,N,this.readonlyMatcher,P)}else{if(y){({tagName:f,tagExp:p}=Vq(i.transformTagName,f,p,i));let U=new as(f);C&&(U[":@"]=C),this.addChild(r,U,this.readonlyMatcher,P),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(i.unpairedTagsSet.has(f)){let U=new as(f);C&&(U[":@"]=C),this.addChild(r,U,this.readonlyMatcher,P),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=d.closeIndex;continue}else{let U=new as(f);if(this.tagsNodeStack.length>i.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(U[":@"]=C),this.addChild(r,U,this.readonlyMatcher,P),r=U}n="",c=A}}}else n+=t[c];return e.child},"parseXml");function Trt(t,e,r,n){this.options.captureMetaData||(n=void 0);let i=this.options.jPath?r.toString():r,s=this.options.updateTag(e.tagname,i,e[":@"]);s===!1||(typeof s=="string"&&(e.tagname=s),t.addChild(e,n))}o(Trt,"addChild");function Drt(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let i=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,i)))return t}if(n.tagFilter){let i=this.options.jPath?r.toString():r;if(!n.tagFilter(e,i))return t}return this.entityDecoder.decode(t)}o(Drt,"replaceEntitiesValue");function Qrt(t,e,r,n){return t&&(n===void 0&&(n=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}o(Qrt,"saveTextToParentTag");function krt(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}o(krt,"isItStopNode");function Prt(t,e,r=">"){let n=0,i=t.length,s=r.charCodeAt(0),a=r.length>1?r.charCodeAt(1):-1,c="",l=e;for(let u=e;u",r,`${e} is not closed`);if(t.substring(r+2,c).trim()===e&&(i--,i===0))return{tagContent:t.substring(n,r),i:c};r=c}else if(a===63)r=tg(t,"?>",r+1,"StopNode is not closed.");else if(a===33&&t.charCodeAt(r+2)===45&&t.charCodeAt(r+3)===45)r=tg(t,"-->",r+3,"StopNode is not closed.");else if(a===33&&t.charCodeAt(r+2)===91)r=tg(t,"]]>",r,"StopNode is not closed.")-2;else{let c=$q(t,r,!1);c&&((c&&c.tagName)===e&&c.tagExp[c.tagExp.length-1]!=="/"&&i++,r=c.closeIndex)}}}o(Lrt,"readStopNodeData");function jq(t,e,r){if(e&&typeof t=="string"){let n=t.trim();return n==="true"?!0:n==="false"?!1:Gq(t,r)}else return kfe(t)?t:""}o(jq,"parseValue");function Vq(t,e,r,n){if(t){let i=t(e);r===e&&(r=i),e=i}return e=ihe(e,n),{tagName:e,tagExp:r}}o(Vq,"transformTagName");function ihe(t,e){if($N.includes(t))throw new Error(`[SECURITY] Invalid name: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);return s0.includes(t)?e.onDangerousProperty(t):t}o(ihe,"sanitizeName");var Wq=as.getMetaDataSymbol();function Frt(t,e){if(!t||typeof t!="object")return{};if(!e)return t;let r={};for(let n in t)if(n.startsWith(e)){let i=n.substring(e.length);r[i]=t[n]}else r[n]=t[n];return r}o(Frt,"stripAttributePrefix");function Jq(t,e,r,n){return she(t,e,r,n)}o(Jq,"prettify");function she(t,e,r,n){let i,s={};for(let a=0;a0&&(s[e.textNodeName]=i):i!==void 0&&(s[e.textNodeName]=i),s}o(she,"compress");function Mrt(t){let e=Object.keys(t);for(let r=0;r/g,"]]]]>")}o(XN,"safeCdata");function Pd(t){return String(t).replace(/"/g,""").replace(/'/g,"'")}o(Pd,"escapeAttribute");var Grt=` -`;function Hrt(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(Xq(r)==="?xml"){let i=r[":@"];if(i){let s=e.attributeNamePrefix+"version";if(i[s])return i[s]}}return"1.0"}o(Hrt,"detectXmlVersionFromArray");function ahe(t,e,r,n,i){return!r.sanitizeName||Mh(t,{xmlVersion:i})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(ahe,"resolveTagName");function Kq(t,e){let r="";e.format&&(r=Grt);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;ae.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let l=t.toString();return l=Yq(l,e),l}return""}for(let l=0;l`,c=!1,n.pop();continue}else if(h===e.commentPropName){let w=u[d][0][e.textNodeName],B=KN(w);a+=r+``,c=!0,n.pop();continue}else if(h[0]==="?"){let w=ohe(u[":@"],e,m,n,s);a+=(h==="?xml"?"":r)+`<${h}${w}?>`,c=!0,n.pop();continue}let A=r;A!==""&&(A+=e.indentBy);let E=ohe(u[":@"],e,m,n,s),y=r+`<${h}${E}`,C;m?C=lhe(u[d],e):C=che(u[d],e,A,n,i,s),e.unpairedTags.indexOf(h)!==-1?e.suppressUnpairedNode?a+=y+">":a+=y+"/>":(!C||C.length===0)&&e.suppressEmptyNode?a+=y+"/>":C&&C.endsWith(">")?a+=y+`>${C}${r}`:(a+=y+">",C&&r!==""&&(C.includes("/>")||C.includes("`),c=!0,n.pop()}return a}o(che,"arrToStr");function zrt(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let s=i.startsWith(e.attributeNamePrefix)?i.substr(e.attributeNamePrefix.length):i;r[s]=Pd(t[i]),n=!0}return n?r:null}o(zrt,"extractAttributeValues");function lhe(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n`:r+=`<${s}${a}>${c}`}}}return r}o(lhe,"getRawContent");function Vrt(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i=t[n];i===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${Pd(i)}"`}return r}o(Vrt,"attr_to_str_raw");function Xq(t){let e=Object.keys(t);for(let r=0;r0&&e.processEntities)for(let r=0;r{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}o(Zq,"getIgnoreAttributesFn");var jrt={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:o(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:o(function(t,e){return e},"attributeValueProcessor"),preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function ls(t){if(this.options=Object.assign({},jrt,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e +`,"utf-8")],i=get(n);i&&t.headers.set("Content-Length",i),t.body=await Vde(n)}o(yet,"buildRequestBody");var Wb="multipartPolicy",Eet=70,Cet=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function bet(t){if(t.length>Eet)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Cet.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(bet,"assertValidBoundary");function _N(){return{name:Wb,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",i=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!i)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,s,a]=i;if(a&&r&&a!==r)throw new Error(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);return r??=a,r?bet(r):r=pet(),t.headers.set("Content-Type",`${s}; boundary=${r}`),await yet(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(_N,"multipartPolicy");function RN(){return Zv()}o(RN,"createEmptyPipeline");var $de=Yv({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),IKt=$de.logger;function wc(t){return $de.createClientLogger(t)}o(wc,"createClientLogger");var Ic=wc("core-rest-pipeline");function iq(t={}){return sN({logger:Ic.info,...t})}o(iq,"logPolicy");var sq=oN;function oq(t={}){return aN(t)}o(oq,"redirectPolicy");var TN=T(require("node:os"),1),DN=T(require("node:process"),1);function jde(){return"User-Agent"}o(jde,"getHeaderName");async function Wde(t){if(DN.default&&DN.default.versions){let e=`${TN.default.type()} ${TN.default.release()}; ${TN.default.arch()}`,r=DN.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}o(Wde,"setPlatformSpecificData");var QN="1.22.2";function Ret(t){let e=[];for(let[r,n]of t){let i=n?`${r}/${n}`:r;e.push(i)}return e.join(" ")}o(Ret,"getUserAgentString");function Jde(){return jde()}o(Jde,"getUserAgentHeaderName");async function kN(t){let e=new Map;e.set("core-rest-pipeline",QN),await Wde(e);let r=Ret(e);return t?`${t} ${r}`:r}o(kN,"getUserAgentValue");var Yde=Jde(),Kde="userAgentPolicy";function aq(t={}){let e=kN(t.userAgentPrefix);return{name:Kde,async sendRequest(r,n){return r.headers.has(Yde)||r.headers.set(Yde,await e),n(r)}}}o(aq,"userAgentPolicy");var Vs=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function cq(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:i}=e??{};return new Promise((s,a)=>{function c(){a(new Vs(i??"The operation was aborted."))}o(c,"rejectOnAbort");function l(){n?.removeEventListener("abort",u)}o(l,"removeListeners");function u(){r?.(),l(),c()}if(o(u,"onAbort"),n?.aborted)return c();try{t(d=>{l(),s(d)},d=>{l(),a(d)})}catch(d){a(d)}n?.addEventListener("abort",u)})}o(cq,"createAbortablePromise");var Pet="The delay was aborted.";function Jb(t,e){let r,{abortSignal:n,abortErrorMsg:i}=e??{};return cq(s=>{r=setTimeout(s,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:i??Pet})}o(Jb,"delay");function Dd(t){if(Dh(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}o(Dd,"getErrorMessage");function Xde(t){return Dh(t)}o(Xde,"isError");function Ym(){return Th()}o(Ym,"randomUUID");var Qt=Ph;var Zde=Symbol("rawContent");function uq(t){return typeof t[Zde]=="function"}o(uq,"hasRawContent");function efe(t){return uq(t)?t[Zde]():t}o(efe,"getRawContent");var PN=Wb;function dq(){let t=_N();return{name:PN,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)uq(n.body)&&(n.body=efe(n.body));return t.sendRequest(e,r)},"sendRequest")}}o(dq,"multipartPolicy");var fq=cN;function hq(){return lN()}o(hq,"decompressResponsePolicy");function pq(t={}){return fN(t)}o(pq,"defaultRetryPolicy");function Aq(){return hN()}o(Aq,"formDataPolicy");function Qd(t){return ZU(t)}o(Qd,"getDefaultProxySettings");function mq(t,e){return SN(t,e)}o(mq,"proxyPolicy");var tfe="setClientRequestIdPolicy";function gq(t="x-ms-client-request-id"){return{name:tfe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}o(gq,"setClientRequestIdPolicy");function yq(t){return BN(t)}o(yq,"agentPolicy");function Eq(t){return xN(t)}o(Eq,"tlsPolicy");var Km={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function rfe(t={}){let e=new Cq(t.parentContext);return t.span&&(e=e.setValue(Km.span,t.span)),t.namespace&&(e=e.setValue(Km.namespace,t.namespace)),e}o(rfe,"createTracingContext");var Cq=class t{static{o(this,"TracingContextImpl")}_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let n=new t(this);return n._contextMap.set(e,r),n}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var ife=T(nfe(),1),LN=ife.state;function Oet(){return{end:o(()=>{},"end"),isRecording:o(()=>!1,"isRecording"),recordException:o(()=>{},"recordException"),setAttribute:o(()=>{},"setAttribute"),setStatus:o(()=>{},"setStatus"),addEvent:o(()=>{},"addEvent")}}o(Oet,"createDefaultTracingSpan");function Let(){return{createRequestHeaders:o(()=>({}),"createRequestHeaders"),parseTraceparentHeader:o(()=>{},"parseTraceparentHeader"),startSpan:o((t,e)=>({span:Oet(),tracingContext:rfe({parentContext:e.tracingContext})}),"startSpan"),withContext(t,e,...r){return e(...r)}}}o(Let,"createDefaultInstrumenter");function Yb(){return LN.instrumenterImplementation||(LN.instrumenterImplementation=Let()),LN.instrumenterImplementation}o(Yb,"getInstrumenter");function Kb(t){let{namespace:e,packageName:r,packageVersion:n}=t;function i(u,d,f){let h=Yb().startSpan(u,{...f,packageName:r,packageVersion:n,tracingContext:d?.tracingOptions?.tracingContext}),p=h.tracingContext,m=h.span;p.getValue(Km.namespace)||(p=p.setValue(Km.namespace,e)),m.setAttribute("az.namespace",p.getValue(Km.namespace));let A=Object.assign({},d,{tracingOptions:{...d?.tracingOptions,tracingContext:p}});return{span:m,updatedOptions:A}}o(i,"startSpan");async function s(u,d,f,h){let{span:p,updatedOptions:m}=i(u,d,h);try{let A=await a(m.tracingOptions.tracingContext,()=>Promise.resolve(f(m,p)));return p.setStatus({status:"success"}),A}catch(A){throw p.setStatus({status:"error",error:A}),A}finally{p.end()}}o(s,"withSpan");function a(u,d,...f){return Yb().withContext(u,d,...f)}o(a,"withContext");function c(u){return Yb().parseTraceparentHeader(u)}o(c,"parseTraceparentHeader");function l(u){return Yb().createRequestHeaders(u)}return o(l,"createRequestHeaders"),{startSpan:i,withSpan:s,withContext:a,parseTraceparentHeader:c,createRequestHeaders:l}}o(Kb,"createTracingClient");var lu=Di;function Lh(t){return eN(t)}o(Lh,"isRestError");var sfe="tracingPolicy";function bq(t={}){let e=kN(t.userAgentPrefix),r=new Na({additionalAllowedQueryParameters:t.additionalAllowedQueryParameters}),n=Fet();return{name:sfe,async sendRequest(i,s){if(!n)return s(i);let a=await e,c={"http.url":r.sanitizeUrl(i.url),"http.method":i.method,"http.user_agent":a,requestId:i.requestId};a&&(c["http.user_agent"]=a);let{span:l,tracingContext:u}=Met(n,i,c)??{};if(!l||!u)return s(i);try{let d=await n.withContext(u,s,i);return qet(l,d),d}catch(d){throw Uet(l,d),d}}}}o(bq,"tracingPolicy");function Fet(){try{return Kb({namespace:"",packageName:"@azure/core-rest-pipeline",packageVersion:QN})}catch(t){Ic.warning(`Error when creating the TracingClient: ${Dd(t)}`);return}}o(Fet,"tryCreateTracingClient");function Met(t,e,r){try{let{span:n,updatedOptions:i}=t.startSpan(`HTTP ${e.method}`,{tracingOptions:e.tracingOptions},{spanKind:"client",spanAttributes:r});if(!n.isRecording()){n.end();return}let s=t.createRequestHeaders(i.tracingOptions.tracingContext);for(let[a,c]of Object.entries(s))e.headers.set(a,c);return{span:n,tracingContext:i.tracingOptions.tracingContext}}catch(n){Ic.warning(`Skipping creating a tracing span due to an error: ${Dd(n)}`);return}}o(Met,"tryCreateSpan");function Uet(t,e){try{t.setStatus({status:"error",error:Xde(e)?e:void 0}),Lh(e)&&e.statusCode&&t.setAttribute("http.status_code",e.statusCode),t.end()}catch(r){Ic.warning(`Skipping tracing span processing due to an error: ${Dd(r)}`)}}o(Uet,"tryProcessError");function qet(t,e){try{t.setAttribute("http.status_code",e.status);let r=e.headers.get("x-ms-request-id");r&&t.setAttribute("serviceRequestId",r),e.status>=400&&t.setStatus({status:"error"}),t.end()}catch(r){Ic.warning(`Skipping tracing span processing due to an error: ${Dd(r)}`)}}o(qet,"tryProcessResponse");function FN(t){if(t instanceof AbortSignal)return{abortSignal:t};if(t.aborted)return{abortSignal:AbortSignal.abort(t.reason)};let e=new AbortController,r=!0;function n(){r&&(t.removeEventListener("abort",i),r=!1)}o(n,"cleanup");function i(){e.abort(t.reason),n()}return o(i,"listener"),t.addEventListener("abort",i),{abortSignal:e.signal,cleanup:n}}o(FN,"wrapAbortSignalLike");var Get="wrapAbortSignalLikePolicy";function ofe(){return{name:Get,sendRequest:o(async(t,e)=>{if(!t.abortSignal)return e(t);let{abortSignal:r,cleanup:n}=FN(t.abortSignal);t.abortSignal=r;try{return await e(t)}finally{n?.()}},"sendRequest")}}o(ofe,"wrapAbortSignalLikePolicy");function wq(t){let e=RN();return Qt&&(t.agent&&e.addPolicy(yq(t.agent)),t.tlsOptions&&e.addPolicy(Eq(t.tlsOptions)),e.addPolicy(mq(t.proxyOptions)),e.addPolicy(hq())),e.addPolicy(ofe()),e.addPolicy(Aq(),{beforePolicies:[PN]}),e.addPolicy(aq(t.userAgentOptions)),e.addPolicy(gq(t.telemetryOptions?.clientRequestIdHeaderName)),e.addPolicy(dq(),{afterPhase:"Deserialize"}),e.addPolicy(pq(t.retryOptions),{phase:"Retry"}),e.addPolicy(bq({...t.userAgentOptions,...t.loggingOptions}),{afterPhase:"Retry"}),Qt&&e.addPolicy(oq(t.redirectOptions),{afterPhase:"Retry"}),e.addPolicy(iq(t.loggingOptions),{afterPhase:"Sign"}),e}o(wq,"createPipelineFromOptions");function Xb(){let t=iN();return{async sendRequest(e){let{abortSignal:r,cleanup:n}=e.abortSignal?FN(e.abortSignal):{};try{return e.abortSignal=r,await t.sendRequest(e)}finally{n?.()}}}}o(Xb,"createDefaultHttpClient");function uu(t){return qs(t)}o(uu,"createHttpHeaders");function Zb(t){return Xv(t)}o(Zb,"createPipelineRequest");var ZZt=wc("core-rest-pipeline retryPolicy");var Het={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function zet(t,e,r){async function n(){if(Date.now()t.getToken(l,u),"tryGetAccessToken"),s.retryIntervalInMs,n?.expiresOnTimestamp??Date.now()).then(f=>(r=null,n=f,i=u.tenantId,n)).catch(f=>{throw r=null,n=null,i=void 0,f})),r}return o(c,"refresh"),async(l,u)=>{let d=!!u.claims,f=i!==u.tenantId;return d&&(n=null),f||d||a.mustRefresh?c(l,u):(a.shouldRefresh&&c(l,u),n)}}o(Iq,"createTokenCycler");var ufe="bearerTokenAuthenticationPolicy";async function MN(t,e){try{return[await e(t),void 0]}catch(r){if(Lh(r)&&r.response)return[r.response,r];throw r}}o(MN,"trySendRequest");async function Vet(t){let{scopes:e,getAccessToken:r,request:n}=t,i={abortSignal:n.abortSignal,tracingOptions:n.tracingOptions,enableCae:!0},s=await r(e,i);s&&t.request.headers.set("Authorization",`Bearer ${s.token}`)}o(Vet,"defaultAuthorizeRequest");function afe(t){return t.status===401&&t.headers.has("WWW-Authenticate")}o(afe,"isChallengeResponse");async function cfe(t,e){let{scopes:r}=t,n=await t.getAccessToken(r,{enableCae:!0,claims:e});return n?(t.request.headers.set("Authorization",`${n.tokenType??"Bearer"} ${n.token}`),!0):!1}o(cfe,"authorizeRequestOnCaeChallenge");function Xm(t){let{credential:e,scopes:r,challengeCallbacks:n}=t,i=t.logger||Ic,s={authorizeRequest:n?.authorizeRequest?.bind(n)??Vet,authorizeRequestOnChallenge:n?.authorizeRequestOnChallenge?.bind(n)},a=e?Iq(e):()=>Promise.resolve(null);return{name:ufe,async sendRequest(c,l){if(!c.url.toLowerCase().startsWith("https://"))throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.");await s.authorizeRequest({scopes:Array.isArray(r)?r:[r],request:c,getAccessToken:a,logger:i});let u,d,f;if([u,d]=await MN(c,l),afe(u)){let h=lfe(u.headers.get("WWW-Authenticate"));if(h){let p;try{p=atob(h)}catch{return i.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${h}`),u}f=await cfe({scopes:Array.isArray(r)?r:[r],response:u,request:c,getAccessToken:a,logger:i},p),f&&([u,d]=await MN(c,l))}else if(s.authorizeRequestOnChallenge&&(f=await s.authorizeRequestOnChallenge({scopes:Array.isArray(r)?r:[r],request:c,response:u,getAccessToken:a,logger:i}),f&&([u,d]=await MN(c,l)),afe(u)&&(h=lfe(u.headers.get("WWW-Authenticate")),h))){let p;try{p=atob(h)}catch{return i.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${h}`),u}f=await cfe({scopes:Array.isArray(r)?r:[r],response:u,request:c,getAccessToken:a,logger:i},p),f&&([u,d]=await MN(c,l))}}if(d)throw d;return u}}}o(Xm,"bearerTokenAuthenticationPolicy");function $et(t){let e=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g,r=/(\w+)="([^"]*)"/g,n=[],i;for(;(i=e.exec(t))!==null;){let s=i[1],a=i[2],c={},l;for(;(l=r.exec(a))!==null;)c[l[1]]=l[2];n.push({scheme:s,params:c})}return n}o($et,"parseChallenges");function lfe(t){return t?$et(t).find(r=>r.scheme==="Bearer"&&r.params.claims&&r.params.error==="insufficient_claims")?.params.claims:void 0}o(lfe,"getCaeChallengeClaims");function $s(t){let e=t;return e&&typeof e.getToken=="function"&&(e.signRequest===void 0||e.getToken.length>0)}o($s,"isTokenCredential");var Sq="DisableKeepAlivePolicy";function dfe(){return{name:Sq,async sendRequest(t,e){return t.disableKeepAlive=!0,e(t)}}}o(dfe,"createDisableKeepAlivePolicy");function ffe(t){return t.getOrderedPolicies().some(e=>e.name===Sq)}o(ffe,"pipelineContainsDisableKeepAlivePolicy");function Bq(t){return(t instanceof Buffer?t:Buffer.from(t.buffer)).toString("base64")}o(Bq,"encodeByteArray");function xq(t){return Buffer.from(t,"base64")}o(xq,"decodeString");function Wet(t,e){return e!=="Composite"&&e!=="Dictionary"&&(typeof t=="string"||typeof t=="number"||typeof t=="boolean"||e?.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i)!==null||t===void 0||t===null)}o(Wet,"isPrimitiveBody");var Jet=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function hfe(t){return Jet.test(t)}o(hfe,"isDuration");var Yet=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/i;function pfe(t){return Yet.test(t)}o(pfe,"isValidUuid");function Ket(t){let e={...t.headers,...t.body};return t.hasNullableType&&Object.getOwnPropertyNames(e).length===0?t.shouldWrapBody?{body:null}:null:t.shouldWrapBody?{...t.headers,body:t.body}:e}o(Ket,"handleNullableResponseAndWrappableBody");function vq(t,e){let r=t.parsedHeaders;if(t.request.method==="HEAD")return{...r,body:t.parsedBody};let n=e&&e.bodyMapper,i=!!n?.nullable,s=n?.type.name;if(s==="Stream")return{...r,blobBody:t.blobBody,readableStreamBody:t.readableStreamBody};let a=s==="Composite"&&n.type.modelProperties||{},c=Object.keys(a).some(l=>a[l].serializedName==="");if(s==="Sequence"||c){let l=t.parsedBody??[];for(let u of Object.keys(a))a[u].serializedName&&(l[u]=t.parsedBody?.[u]);if(r)for(let u of Object.keys(r))l[u]=r[u];return i&&!t.parsedBody&&!r&&Object.getOwnPropertyNames(a).length===0?null:l}return Ket({body:t.parsedBody,headers:r,hasNullableType:i,shouldWrapBody:Wet(t.parsedBody,s)})}o(vq,"flattenResponse");var Nq=class{static{o(this,"SerializerImpl")}modelMappers;isXML;constructor(e={},r=!1){this.modelMappers=e,this.isXML=r}validateConstraints(e,r,n){let i=o((s,a)=>{throw new Error(`"${n}" with value "${r}" should satisfy the constraint "${s}": ${a}.`)},"failValidation");if(e.constraints&&r!==void 0&&r!==null){let{ExclusiveMaximum:s,ExclusiveMinimum:a,InclusiveMaximum:c,InclusiveMinimum:l,MaxItems:u,MaxLength:d,MinItems:f,MinLength:h,MultipleOf:p,Pattern:m,UniqueItems:A}=e.constraints;if(s!==void 0&&r>=s&&i("ExclusiveMaximum",s),a!==void 0&&r<=a&&i("ExclusiveMinimum",a),c!==void 0&&r>c&&i("InclusiveMaximum",c),l!==void 0&&ru&&i("MaxItems",u),d!==void 0&&r.length>d&&i("MaxLength",d),f!==void 0&&r.lengthC.indexOf(E)!==y)&&i("UniqueItems",A)}}serialize(e,r,n,i={xml:{}}){let s={xml:{rootName:i.xml.rootName??"",includeRoot:i.xml.includeRoot??!1,xmlCharKey:i.xml.xmlCharKey??"_"}},a={},c=e.type.name;n||(n=e.serializedName),c.match(/^Sequence$/i)!==null&&(a=[]),e.isConstant&&(r=e.defaultValue);let{required:l,nullable:u}=e;if(l&&u&&r===void 0)throw new Error(`${n} cannot be undefined.`);if(l&&!u&&r==null)throw new Error(`${n} cannot be null or undefined.`);if(!l&&u===!1&&r===null)throw new Error(`${n} cannot be null.`);return r==null||c.match(/^any$/i)!==null?a=r:c.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)!==null?a=ntt(c,n,r):c.match(/^Enum$/i)!==null?a=itt(n,e.type.allowedValues,r):c.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null?a=att(c,r,n):c.match(/^ByteArray$/i)!==null?a=stt(n,r):c.match(/^Base64Url$/i)!==null?a=ott(n,r):c.match(/^Sequence$/i)!==null?a=ctt(this,e,r,n,!!this.isXML,s):c.match(/^Dictionary$/i)!==null?a=ltt(this,e,r,n,!!this.isXML,s):c.match(/^Composite$/i)!==null&&(a=dtt(this,e,r,n,!!this.isXML,s)),a}deserialize(e,r,n,i={xml:{}}){let s={xml:{rootName:i.xml.rootName??"",includeRoot:i.xml.includeRoot??!1,xmlCharKey:i.xml.xmlCharKey??"_"},ignoreUnknownProperties:i.ignoreUnknownProperties??!1};if(r==null)return this.isXML&&e.type.name==="Sequence"&&!e.xmlIsWrapped&&(r=[]),e.defaultValue!==void 0&&(r=e.defaultValue),r;let a,c=e.type.name;if(n||(n=e.serializedName),c.match(/^Composite$/i)!==null)a=htt(this,e,r,n,s);else{if(this.isXML){let l=s.xml.xmlCharKey;r["$"]!==void 0&&r[l]!==void 0&&(r=r[l])}c.match(/^Number$/i)!==null?(a=parseFloat(r),isNaN(a)&&(a=r)):c.match(/^Boolean$/i)!==null?r==="true"?a=!0:r==="false"?a=!1:a=r:c.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)!==null?a=r:c.match(/^(Date|DateTime|DateTimeRfc1123)$/i)!==null?a=new Date(r):c.match(/^UnixTime$/i)!==null?a=rtt(r):c.match(/^ByteArray$/i)!==null?a=xq(r):c.match(/^Base64Url$/i)!==null?a=ett(r):c.match(/^Sequence$/i)!==null?a=Att(this,e,r,n,s):c.match(/^Dictionary$/i)!==null&&(a=ptt(this,e,r,n,s))}return e.isConstant&&(a=e.defaultValue),a}};function js(t={},e=!1){return new Nq(t,e)}o(js,"createSerializer");function Xet(t,e){let r=t.length;for(;r-1>=0&&t[r-1]===e;)--r;return t.substr(0,r)}o(Xet,"trimEnd");function Zet(t){if(!t)return;if(!(t instanceof Uint8Array))throw new Error("Please provide an input of type Uint8Array for converting to Base64Url.");let e=Bq(t);return Xet(e,"=").replace(/\+/g,"-").replace(/\//g,"_")}o(Zet,"bufferToBase64Url");function ett(t){if(t){if(t&&typeof t.valueOf()!="string")throw new Error("Please provide an input of type string for converting to Uint8Array");return t=t.replace(/-/g,"+").replace(/_/g,"/"),xq(t)}}o(ett,"base64UrlToByteArray");function _q(t){let e=[],r="";if(t){let n=t.split(".");for(let i of n)i.charAt(i.length-1)==="\\"?r+=i.substr(0,i.length-1)+".":(r+=i,e.push(r),r="")}return e}o(_q,"splitSerializeName");function ttt(t){if(t)return typeof t.valueOf()=="string"&&(t=new Date(t)),Math.floor(t.getTime()/1e3)}o(ttt,"dateToUnixTime");function rtt(t){if(t)return new Date(t*1e3)}o(rtt,"unixTimeToDate");function ntt(t,e,r){if(r!=null){if(t.match(/^Number$/i)!==null){if(typeof r!="number")throw new Error(`${e} with value ${r} must be of type number.`)}else if(t.match(/^String$/i)!==null){if(typeof r.valueOf()!="string")throw new Error(`${e} with value "${r}" must be of type string.`)}else if(t.match(/^Uuid$/i)!==null){if(!(typeof r.valueOf()=="string"&&pfe(r)))throw new Error(`${e} with value "${r}" must be of type string and a valid uuid.`)}else if(t.match(/^Boolean$/i)!==null){if(typeof r!="boolean")throw new Error(`${e} with value ${r} must be of type boolean.`)}else if(t.match(/^Stream$/i)!==null){let n=typeof r;if(n!=="string"&&typeof r.pipe!="function"&&typeof r.tee!="function"&&!(r instanceof ArrayBuffer)&&!ArrayBuffer.isView(r)&&!((typeof Blob=="function"||typeof Blob=="object")&&r instanceof Blob)&&n!=="function")throw new Error(`${e} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`)}}return r}o(ntt,"serializeBasicTypes");function itt(t,e,r){if(!e)throw new Error(`Please provide a set of allowedValues to validate ${t} as an Enum Type.`);if(!e.some(i=>typeof i.valueOf()=="string"?i.toLowerCase()===r.toLowerCase():i===r))throw new Error(`${r} is not a valid value for ${t}. The valid values are: ${JSON.stringify(e)}.`);return r}o(itt,"serializeEnumType");function stt(t,e){if(e!=null){if(!(e instanceof Uint8Array))throw new Error(`${t} must be of type Uint8Array.`);e=Bq(e)}return e}o(stt,"serializeByteArrayType");function ott(t,e){if(e!=null){if(!(e instanceof Uint8Array))throw new Error(`${t} must be of type Uint8Array.`);e=Zet(e)}return e}o(ott,"serializeBase64UrlType");function att(t,e,r){if(e!=null){if(t.match(/^Date$/i)!==null){if(!(e instanceof Date||typeof e.valueOf()=="string"&&!isNaN(Date.parse(e))))throw new Error(`${r} must be an instanceof Date or a string in ISO8601 format.`);e=e instanceof Date?e.toISOString().substring(0,10):new Date(e).toISOString().substring(0,10)}else if(t.match(/^DateTime$/i)!==null){if(!(e instanceof Date||typeof e.valueOf()=="string"&&!isNaN(Date.parse(e))))throw new Error(`${r} must be an instanceof Date or a string in ISO8601 format.`);e=e instanceof Date?e.toISOString():new Date(e).toISOString()}else if(t.match(/^DateTimeRfc1123$/i)!==null){if(!(e instanceof Date||typeof e.valueOf()=="string"&&!isNaN(Date.parse(e))))throw new Error(`${r} must be an instanceof Date or a string in RFC-1123 format.`);e=e instanceof Date?e.toUTCString():new Date(e).toUTCString()}else if(t.match(/^UnixTime$/i)!==null){if(!(e instanceof Date||typeof e.valueOf()=="string"&&!isNaN(Date.parse(e))))throw new Error(`${r} must be an instanceof Date or a string in RFC-1123/ISO8601 format for it to be serialized in UnixTime/Epoch format.`);e=ttt(e)}else if(t.match(/^TimeSpan$/i)!==null&&!hfe(e))throw new Error(`${r} must be a string in ISO 8601 format. Instead was "${e}".`)}return e}o(att,"serializeDateTypes");function ctt(t,e,r,n,i,s){if(!Array.isArray(r))throw new Error(`${n} must be of type Array.`);let a=e.type.element;if(!a||typeof a!="object")throw new Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${n}.`);a.type.name==="Composite"&&a.type.className&&(a=t.modelMappers[a.type.className]??a);let c=[];for(let l=0;lh!==d)&&(a[d]=t.serialize(l,r[d],n+'["'+d+'"]',s))}return a}return r}o(dtt,"serializeCompositeType");function yfe(t,e,r,n){if(!r||!t.xmlNamespace)return e;let s={[t.xmlNamespacePrefix?`xmlns:${t.xmlNamespacePrefix}`:"xmlns"]:t.xmlNamespace};if(["Composite"].includes(t.type.name)){if(e["$"])return e;{let c={...e};return c["$"]=s,c}}let a={};return a[n.xml.xmlCharKey]=e,a["$"]=s,a}o(yfe,"getXmlObjectValue");function ftt(t,e){return["$",e.xml.xmlCharKey].includes(t)}o(ftt,"isSpecialXmlProperty");function htt(t,e,r,n,i){let s=i.xml.xmlCharKey??"_";UN(t,e)&&(e=Efe(t,e,r,"serializedName"));let a=gfe(t,e,n),c={},l=[];for(let d of Object.keys(a)){let f=a[d],h=_q(a[d].serializedName);l.push(h[0]);let{serializedName:p,xmlName:m,xmlElementName:A}=f,E=n;p!==""&&p!==void 0&&(E=n+"."+p);let y=f.headerCollectionPrefix;if(y){let C={};for(let w of Object.keys(r))w.startsWith(y)&&(C[w.substring(y.length)]=t.deserialize(f.type.value,r[w],E,i)),l.push(w);c[d]=C}else if(t.isXML)if(f.xmlIsAttribute&&r["$"])c[d]=t.deserialize(f,r["$"][m],E,i);else if(f.xmlIsMsText)r[s]!==void 0?c[d]=r[s]:typeof r=="string"&&(c[d]=r);else{let C=A||m||p;if(f.xmlIsWrapped){let B=r[m]?.[A]??[];c[d]=t.deserialize(f,B,E,i),l.push(m)}else{let w=r[C];c[d]=t.deserialize(f,w,E,i),l.push(C)}}else{let C,w=r,B=0;for(let N of h){if(!w)break;B++,w=w[N]}w===null&&B{for(let h in a)if(_q(a[h].serializedName)[0]===f)return!1;return!0},"isAdditionalProperty");for(let f in r)d(f)&&(c[f]=t.deserialize(u,r[f],n+'["'+f+'"]',i))}else if(r&&!i.ignoreUnknownProperties)for(let d of Object.keys(r))c[d]===void 0&&!l.includes(d)&&!ftt(d,i)&&(c[d]=r[d]);return c}o(htt,"deserializeCompositeType");function ptt(t,e,r,n,i){let s=e.type.value;if(!s||typeof s!="object")throw new Error(`"value" metadata for a Dictionary must be defined in the mapper and it must of type "object" in ${n}`);if(r){let a={};for(let c of Object.keys(r))a[c]=t.deserialize(s,r[c],n,i);return a}return r}o(ptt,"deserializeDictionaryType");function Att(t,e,r,n,i){let s=e.type.element;if(!s||typeof s!="object")throw new Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${n}`);if(r){Array.isArray(r)||(r=[r]),s.type.name==="Composite"&&s.type.className&&(s=t.modelMappers[s.type.className]??s);let a=[];for(let c=0;c0)if(i.isConstant)s=i.defaultValue;else{let a=wfe(t,n);!a.propertyFound&&r&&(a=wfe(r,n));let c=!1;a.propertyFound||(c=i.required||n[0]==="options"&&n.length===2),s=c?i.defaultValue:a.propertyValue}}else{i.required&&(s={});for(let a in n){let c=i.type.modelProperties[a],l=n[a],u=Pd(t,{parameterPath:l,mapper:c},r);u!==void 0&&(s||(s={}),s[a]=u)}}return s}o(Pd,"getOperationArgumentValueFromParameter");function wfe(t,e){let r={propertyFound:!1},n=0;for(;n=200&&r.status<300);l.headersMapper&&(s.parsedHeaders=c.serializer.deserialize(l.headersMapper,s.headers.toJSON(),"operationRes.parsedHeaders",{xml:{},ignoreUnknownProperties:!0}))}return s}o(wtt,"deserializeResponseBody");function Itt(t){let e=Object.keys(t.responses);return e.length===0||e.length===1&&e[0]==="default"}o(Itt,"isOperationSpecEmpty");function Stt(t,e,r,n){let i=200<=t.status&&t.status<300;if(Itt(e)?i:!!r)if(r){if(!r.isError)return{error:null,shouldReturnResponse:!1}}else return{error:null,shouldReturnResponse:!1};let a=r??e.responses.default,c=t.request.streamResponseStatusCodes?.has(t.status)?`Unexpected status code: ${t.status}`:t.bodyAsText,l=new lu(c,{statusCode:t.status,request:t.request,response:t});if(!a&&!(t.parsedBody?.error?.code&&t.parsedBody?.error?.message))throw l;let u=a?.bodyMapper,d=a?.headersMapper;try{if(t.parsedBody){let f=t.parsedBody,h;if(u){let m=f;if(e.isXML&&u.type.name===Sc.Sequence){m=[];let A=u.xmlElementName;typeof f=="object"&&A&&(m=f[A])}h=e.serializer.deserialize(u,m,"error.response.parsedBody",n)}let p=f.error||h||f;l.code=p.code,p.message&&(l.message=p.message),u&&(l.response.parsedBody=h)}t.headers&&d&&(l.response.parsedHeaders=e.serializer.deserialize(d,t.headers.toJSON(),"operationRes.parsedHeaders"))}catch(f){l.message=`Error "${f.message}" occurred in deserializing the responseBody - "${t.bodyAsText}" for the default response.`}return{error:l,shouldReturnResponse:!1}}o(Stt,"handleErrorResponse");async function Btt(t,e,r,n,i){if(!r.request.streamResponseStatusCodes?.has(r.status)&&r.bodyAsText){let s=r.bodyAsText,a=r.headers.get("Content-Type")||"",c=a?a.split(";").map(l=>l.toLowerCase()):[];try{if(c.length===0||c.some(l=>t.indexOf(l)!==-1))return r.parsedBody=JSON.parse(s),r;if(c.some(l=>e.indexOf(l)!==-1)){if(!i)throw new Error("Parsing XML not supported.");let l=await i(s,n.xml);return r.parsedBody=l,r}}catch(l){let u=`Error "${l}" occurred while parsing the response body - ${r.bodyAsText}.`,d=l.code||lu.PARSE_ERROR;throw new lu(u,{code:d,statusCode:r.status,request:r.request,response:r})}}return r}o(Btt,"parse");function Bfe(t){let e=new Set;for(let r in t.responses){let n=t.responses[r];n.bodyMapper&&n.bodyMapper.type.name===Sc.Stream&&e.add(Number(r))}return e}o(Bfe,"getStreamingResponseStatusCodes");function Bc(t){let{parameterPath:e,mapper:r}=t,n;return typeof e=="string"?n=e:Array.isArray(e)?n=e.join("."):n=r.serializedName,n}o(Bc,"getPathStringFromParameter");var xfe="serializationPolicy";function GN(t={}){let e=t.stringifyXML;return{name:xfe,async sendRequest(r,n){let i=du(r),s=i?.operationSpec,a=i?.operationArguments;return s&&a&&(xtt(r,a,s),vtt(r,a,s,e)),n(r)}}}o(GN,"serializationPolicy");function xtt(t,e,r){if(r.headerParameters)for(let i of r.headerParameters){let s=Pd(e,i);if(s!=null||i.mapper.required){s=r.serializer.serialize(i.mapper,s,Bc(i));let a=i.mapper.headerCollectionPrefix;if(a)for(let c of Object.keys(s))t.headers.set(a+c,s[c]);else t.headers.set(i.mapper.serializedName||Bc(i),s)}}let n=e.options?.requestOptions?.customHeaders;if(n)for(let i of Object.keys(n))t.headers.set(i,n[i])}o(xtt,"serializeHeaders");function vtt(t,e,r,n=function(){throw new Error("XML serialization unsupported!")}){let i=e.options?.serializerOptions,s={xml:{rootName:i?.xml.rootName??"",includeRoot:i?.xml.includeRoot??!1,xmlCharKey:i?.xml.xmlCharKey??"_"}},a=s.xml.xmlCharKey;if(r.requestBody&&r.requestBody.mapper){t.body=Pd(e,r.requestBody);let c=r.requestBody.mapper,{required:l,serializedName:u,xmlName:d,xmlElementName:f,xmlNamespace:h,xmlNamespacePrefix:p,nullable:m}=c,A=c.type.name;try{if(t.body!==void 0&&t.body!==null||m&&t.body===null||l){let E=Bc(r.requestBody);t.body=r.serializer.serialize(c,t.body,E,s);let y=A===Sc.Stream;if(r.isXML){let C=p?`xmlns:${p}`:"xmlns",w=Ntt(h,C,A,t.body,s);A===Sc.Sequence?t.body=n(_tt(w,f||d||u,C,h),{rootName:d||u,xmlCharKey:a}):y||(t.body=n(w,{rootName:d||u,xmlCharKey:a}))}else{if(A===Sc.String&&(r.contentType?.match("text/plain")||r.mediaType==="text"))return;y||(t.body=JSON.stringify(t.body))}}}catch(E){throw new Error(`Error "${E.message}" occurred in serializing the payload - ${JSON.stringify(u,void 0," ")}.`)}}else if(r.formDataParameters&&r.formDataParameters.length>0){t.formData={};for(let c of r.formDataParameters){let l=Pd(e,c);if(l!=null){let u=c.mapper.serializedName||Bc(c);t.formData[u]=r.serializer.serialize(c.mapper,l,Bc(c),s)}}}}o(vtt,"serializeRequestBody");function Ntt(t,e,r,n,i){if(t&&!["Composite","Sequence","Dictionary"].includes(r)){let s={};return s[i.xml.xmlCharKey]=n,s["$"]={[e]:t},s}return n}o(Ntt,"getXmlValueWithNamespace");function _tt(t,e,r,n){if(Array.isArray(t)||(t=[t]),!r||!n)return{[e]:t};let i={[e]:t};return i["$"]={[r]:n},i}o(_tt,"prepareXMLRootList");function e0(t={}){let e=wq(t??{});return t.credentialOptions&&e.addPolicy(Xm({credential:t.credentialOptions.credential,scopes:t.credentialOptions.credentialScopes})),e.addPolicy(GN(t.serializationOptions),{phase:"Serialize"}),e.addPolicy(Tq(t.deserializationOptions),{phase:"Deserialize"}),e}o(e0,"createClientPipeline");var Dq;function vfe(){return Dq||(Dq=Xb()),Dq}o(vfe,"getCachedDefaultHttpClient");var Rtt={CSV:",",SSV:" ",Multi:"Multi",TSV:" ",Pipes:"|"};function _fe(t,e,r,n){let i=Ttt(e,r,n),s=!1,a=Nfe(t,i);if(e.path){let u=Nfe(e.path,i);e.path==="/{nextLink}"&&u.startsWith("/")&&(u=u.substring(1)),Dtt(u)?(a=u,s=!0):a=Qtt(a,u)}let{queryParams:c,sequenceParams:l}=ktt(e,r,n);return a=Ott(a,c,l,s),a}o(_fe,"getRequestUrl");function Nfe(t,e){let r=t;for(let[n,i]of e)r=r.split(n).join(i);return r}o(Nfe,"replaceAll");function Ttt(t,e,r){let n=new Map;if(t.urlParameters?.length)for(let i of t.urlParameters){let s=Pd(e,i,r),a=Bc(i);s=t.serializer.serialize(i.mapper,s,a),i.skipEncoding||(s=encodeURIComponent(s)),n.set(`{${i.mapper.serializedName||a}}`,s)}return n}o(Ttt,"calculateUrlReplacements");function Dtt(t){return t.includes("://")}o(Dtt,"isAbsoluteUrl");function Qtt(t,e){if(!e)return t;let r=new URL(t),n=r.pathname;n.endsWith("/")||(n=`${n}/`),e.startsWith("/")&&(e=e.substring(1));let i=e.indexOf("?");if(i!==-1){let s=e.substring(0,i),a=e.substring(i+1);n=n+s,a&&(r.search=r.search?`${r.search}&${a}`:a)}else n=n+e;return r.pathname=n,r.toString()}o(Qtt,"appendPath");function ktt(t,e,r){let n=new Map,i=new Set;if(t.queryParameters?.length)for(let s of t.queryParameters){s.mapper.type.name==="Sequence"&&s.mapper.serializedName&&i.add(s.mapper.serializedName);let a=Pd(e,s,r);if(a!=null||s.mapper.required){a=t.serializer.serialize(s.mapper,a,Bc(s));let c=s.collectionFormat?Rtt[s.collectionFormat]:"";if(Array.isArray(a)&&(a=a.map(l=>l??"")),s.collectionFormat==="Multi"&&a.length===0)continue;Array.isArray(a)&&(s.collectionFormat==="SSV"||s.collectionFormat==="TSV")&&(a=a.join(c)),s.skipEncoding||(Array.isArray(a)?a=a.map(l=>encodeURIComponent(l)):a=encodeURIComponent(a)),Array.isArray(a)&&(s.collectionFormat==="CSV"||s.collectionFormat==="Pipes")&&(a=a.join(c)),n.set(s.mapper.serializedName||Bc(s),a)}}return{queryParams:n,sequenceParams:i}}o(ktt,"calculateQueryParameters");function Ptt(t){let e=new Map;if(!t||t[0]!=="?")return e;t=t.slice(1);let r=t.split("&");for(let n of r){let[i,s]=n.split("=",2),a=e.get(i);a?Array.isArray(a)?a.push(s):e.set(i,[a,s]):e.set(i,s)}return e}o(Ptt,"simpleParseQueryParams");function Ott(t,e,r,n=!1){if(e.size===0)return t;let i=new URL(t),s=Ptt(i.search);for(let[c,l]of e){let u=s.get(c);if(Array.isArray(u))if(Array.isArray(l)){u.push(...l);let d=new Set(u);s.set(c,Array.from(d))}else u.push(l);else u?(Array.isArray(l)?l.unshift(u):r.has(c)&&s.set(c,[u,l]),n||s.set(c,l)):s.set(c,l)}let a=[];for(let[c,l]of s)if(typeof l=="string")a.push(`${c}=${l}`);else if(Array.isArray(l))for(let u of l)a.push(`${c}=${u}`);else a.push(`${c}=${l}`);return i.search=a.length?`?${a.join("&")}`:"",i.toString()}o(Ott,"appendQueryParams");var Qq=wc("core-client");var t0=class{static{o(this,"ServiceClient")}_endpoint;_requestContentType;_allowInsecureConnection;_httpClient;pipeline;constructor(e={}){if(this._requestContentType=e.requestContentType,this._endpoint=e.endpoint??e.baseUri,e.baseUri&&Qq.warning("The baseUri option for SDK Clients has been deprecated, please use endpoint instead."),this._allowInsecureConnection=e.allowInsecureConnection,this._httpClient=e.httpClient||vfe(),this.pipeline=e.pipeline||Ltt(e),e.additionalPolicies?.length)for(let{policy:r,position:n}of e.additionalPolicies){let i=n==="perRetry"?"Sign":void 0;this.pipeline.addPolicy(r,{afterPhase:i})}}async sendRequest(e){return this.pipeline.sendRequest(this._httpClient,e)}async sendOperationRequest(e,r){let n=r.baseUrl||this._endpoint;if(!n)throw new Error("If operationSpec.baseUrl is not specified, then the ServiceClient must have a endpoint string property that contains the base URL to use.");let i=_fe(n,r,e,this),s=Zb({url:i});s.method=r.httpMethod;let a=du(s);a.operationSpec=r,a.operationArguments=e;let c=r.contentType||this._requestContentType;c&&r.requestBody&&s.headers.set("Content-Type",c);let l=e.options;if(l){let u=l.requestOptions;u&&(u.timeout&&(s.timeout=u.timeout),u.onUploadProgress&&(s.onUploadProgress=u.onUploadProgress),u.onDownloadProgress&&(s.onDownloadProgress=u.onDownloadProgress),u.shouldDeserialize!==void 0&&(a.shouldDeserialize=u.shouldDeserialize),u.allowInsecureConnection&&(s.allowInsecureConnection=!0)),l.abortSignal&&(s.abortSignal=l.abortSignal),l.tracingOptions&&(s.tracingOptions=l.tracingOptions)}this._allowInsecureConnection&&(s.allowInsecureConnection=!0),s.streamResponseStatusCodes===void 0&&(s.streamResponseStatusCodes=Bfe(r));try{let u=await this.sendRequest(s),d=vq(u,r.responses[u.status]);return l?.onResponse&&l.onResponse(u,d),d}catch(u){if(typeof u=="object"&&u?.response){let d=u.response,f=vq(d,r.responses[u.statusCode]||r.responses.default);u.details=f,l?.onResponse&&l.onResponse(d,f,u)}throw u}}};function Ltt(t){let e=Ftt(t),r=t.credential&&e?{credentialScopes:e,credential:t.credential}:void 0;return e0({...t,credentialOptions:r})}o(Ltt,"createDefaultPipeline");function Ftt(t){if(t.credentialScopes)return t.credentialScopes;if(t.endpoint)return`${t.endpoint}/.default`;if(t.baseUri)return`${t.baseUri}/.default`;if(t.credential&&!t.credentialScopes)throw new Error("When using credentials, the ServiceClientOptions must contain either a endpoint or a credentialScopes. Unable to create a bearerTokenAuthenticationPolicy")}o(Ftt,"getCredentialScopes");var Rfe={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};function Mtt(t){return/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(t)}o(Mtt,"isUuid");var HN=o(async t=>{let e=ztt(t.request),r=Gtt(t.response);if(r){let n=Htt(r),i=qtt(t,n),s=Utt(n);if(!s)return!1;let a=await t.getAccessToken(i,{...e,tenantId:s});return a?(t.request.headers.set(Rfe.HeaderConstants.AUTHORIZATION,`${a.tokenType??"Bearer"} ${a.token}`),!0):!1}return!1},"authorizeRequestOnTenantChallenge");function Utt(t){let n=new URL(t.authorization_uri).pathname.split("/")[1];if(n&&Mtt(n))return n}o(Utt,"extractTenantId");function qtt(t,e){if(!e.resource_id)return t.scopes;let r=new URL(e.resource_id);r.pathname=Rfe.DefaultScope;let n=r.toString();return n==="https://disk.azure.com/.default"&&(n="https://disk.azure.com//.default"),[n]}o(qtt,"buildScopes");function Gtt(t){let e=t.headers.get("WWW-Authenticate");if(t.status===401&&e)return e}o(Gtt,"getChallenge");function Htt(t){return`${t.slice(7).trim()} `.split(" ").filter(i=>i).map(i=>(([s,a])=>({[s]:a}))(i.trim().split("="))).reduce((i,s)=>({...i,...s}),{})}o(Htt,"parseChallenge");function ztt(t){return{abortSignal:t.abortSignal,requestOptions:{timeout:t.timeout},tracingOptions:t.tracingOptions}}o(ztt,"requestToOptions");var Tfe=Symbol("Original PipelineRequest"),Vtt=Symbol.for("@azure/core-client original request");function n0(t,e={}){let n=t[Tfe],i=uu(t.headers.toJson({preserveCase:!0}));if(n)return n.headers=i,n;{let s=Zb({url:t.url,method:t.method,headers:i,withCredentials:t.withCredentials,timeout:t.timeout,requestId:t.requestId,abortSignal:t.abortSignal,body:t.body,formData:t.formData,disableKeepAlive:!!t.keepAlive,onDownloadProgress:t.onDownloadProgress,onUploadProgress:t.onUploadProgress,proxySettings:t.proxySettings,streamResponseStatusCodes:t.streamResponseStatusCodes,agent:t.agent,requestOverrides:t.requestOverrides});return e.originalRequest&&(s[Vtt]=e.originalRequest),s}}o(n0,"toPipelineRequest");function Fh(t,e){let r=e?.originalRequest??t,n={url:t.url,method:t.method,headers:i0(t.headers),withCredentials:t.withCredentials,timeout:t.timeout,requestId:t.headers.get("x-ms-client-request-id")||t.requestId,abortSignal:t.abortSignal,body:t.body,formData:t.formData,keepAlive:!!t.disableKeepAlive,onDownloadProgress:t.onDownloadProgress,onUploadProgress:t.onUploadProgress,proxySettings:t.proxySettings,streamResponseStatusCodes:t.streamResponseStatusCodes,agent:t.agent,requestOverrides:t.requestOverrides,clone(){throw new Error("Cannot clone a non-proxied WebResourceLike")},prepare(){throw new Error("WebResourceLike.prepare() is not supported by @azure/core-http-compat")},validateRequestProperties(){}};return e?.createProxy?new Proxy(n,{get(i,s,a){return s===Tfe?t:s==="clone"?()=>Fh(n0(n,{originalRequest:r}),{createProxy:!0,originalRequest:r}):Reflect.get(i,s,a)},set(i,s,a,c){return s==="keepAlive"&&(t.disableKeepAlive=!a),typeof s=="string"&&["url","method","withCredentials","timeout","requestId","abortSignal","body","formData","onDownloadProgress","onUploadProgress","proxySettings","streamResponseStatusCodes","agent","requestOverrides"].includes(s)&&(t[s]=a),Reflect.set(i,s,a,c)}}):n}o(Fh,"toWebResourceLike");function i0(t){return new kq(t.toJSON({preserveCase:!0}))}o(i0,"toHttpHeadersLike");function r0(t){return t.toLowerCase()}o(r0,"getHeaderKey");var kq=class t{static{o(this,"HttpHeaders")}_headersMap;constructor(e){if(this._headersMap={},e)for(let r in e)this.set(r,e[r])}set(e,r){this._headersMap[r0(e)]={name:e,value:r.toString()}}get(e){let r=this._headersMap[r0(e)];return r?r.value:void 0}contains(e){return!!this._headersMap[r0(e)]}remove(e){let r=this.contains(e);return delete this._headersMap[r0(e)],r}rawHeaders(){return this.toJson({preserveCase:!0})}headersArray(){let e=[];for(let r in this._headersMap)e.push(this._headersMap[r]);return e}headerNames(){let e=[],r=this.headersArray();for(let n=0;n{let r=await t.sendRequest(Fh(e,{createProxy:!0}));return VN(r)},"sendRequest")}}o(Lq,"convertHttpClient");var kfe=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Wtt=kfe+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Jtt="["+kfe+"]["+Wtt+"]*",Ytt=new RegExp("^"+Jtt+"$");function $N(t,e){let r=[],n=e.exec(t);for(;n;){let i=[];i.startIndex=e.lastIndex-n[0].length;let s=n.length;for(let a=0;a"u")},"isName");function Pfe(t){return typeof t<"u"}o(Pfe,"isExist");var o0=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],jN=["__proto__","constructor","prototype"];var Ktt={allowBooleanAttributes:!1,unpairedTags:[]};function WN(t,e){e=Object.assign({},Ktt,e);let r=[],n=!1,i=!1;t[0]==="\uFEFF"&&(t=t.substr(1));for(let s=0;s"&&t[s]!==" "&&t[s]!==" "&&t[s]!==` +`&&t[s]!=="\r";s++)l+=t[s];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),s--),!srt(l)){let f;return l.trim().length===0?f="Invalid space after '<'.":f="Tag '"+l+"' is an invalid name.",qr("InvalidTag",f,Qi(t,s))}let u=ert(t,s);if(u===!1)return qr("InvalidAttr","Attributes for '"+l+"' have open quote.",Qi(t,s));let d=u.value;if(s=u.index,d[d.length-1]==="/"){let f=s-d.length;d=d.substring(0,d.length-1);let h=Mfe(d,e);if(h===!0)n=!0;else return qr(h.err.code,h.err.msg,Qi(t,f+h.err.line))}else if(c)if(u.tagClosed){if(d.trim().length>0)return qr("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",Qi(t,a));if(r.length===0)return qr("InvalidTag","Closing tag '"+l+"' has not been opened.",Qi(t,a));{let f=r.pop();if(l!==f.tagName){let h=Qi(t,f.tagStartPos);return qr("InvalidTag","Expected closing tag '"+f.tagName+"' (opened in line "+h.line+", col "+h.col+") instead of closing tag '"+l+"'.",Qi(t,a))}r.length==0&&(i=!0)}}else return qr("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",Qi(t,s));else{let f=Mfe(d,e);if(f!==!0)return qr(f.err.code,f.err.msg,Qi(t,s-d.length+f.err.line));if(i===!0)return qr("InvalidXml","Multiple possible root nodes found.",Qi(t,s));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),n=!0}for(s++;s0)return qr("InvalidXml","Invalid '"+JSON.stringify(r.map(s=>s.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return qr("InvalidXml","Start tag expected.",1);return!0}o(WN,"validate");function Ofe(t){return t===" "||t===" "||t===` +`||t==="\r"}o(Ofe,"isWhiteSpace");function Lfe(t,e){let r=e;for(;e5&&n==="xml")return qr("InvalidXml","XML declaration allowed only at the start of the document.",Qi(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(Lfe,"readPI");function Ffe(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e"){e+=2;break}}return e}o(Ffe,"readCommentAndCDATA");var Xtt='"',Ztt="'";function ert(t,e){let r="",n="",i=!1;for(;e"&&n===""){i=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:i}}o(ert,"readAttributeStr");var trt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Mfe(t,e){let r=$N(t,trt),n={};for(let i=0;i",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",amp:"&",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},qfe={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},Gfe={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",Hstrok:"\u0126",hstrok:"\u0127",Itilde:"\u0128",itilde:"\u0129",Imacr:"\u012A",imacr:"\u012B",Iogon:"\u012E",iogon:"\u012F",Idot:"\u0130",IJlig:"\u0132",ijlig:"\u0133",Jcirc:"\u0134",jcirc:"\u0135",Kcedil:"\u0136",kcedil:"\u0137",kgreen:"\u0138",Lacute:"\u0139",lacute:"\u013A",Lcedil:"\u013B",lcedil:"\u013C",Lcaron:"\u013D",lcaron:"\u013E",Lmidot:"\u013F",lmidot:"\u0140",Lstrok:"\u0141",lstrok:"\u0142",Nacute:"\u0143",nacute:"\u0144",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ENG:"\u014A",eng:"\u014B",Omacr:"\u014C",omacr:"\u014D",Odblac:"\u0150",odblac:"\u0151",OElig:"\u0152",oelig:"\u0153",Racute:"\u0154",racute:"\u0155",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",Sacute:"\u015A",sacute:"\u015B",Scirc:"\u015C",scirc:"\u015D",Scedil:"\u015E",scedil:"\u015F",Scaron:"\u0160",scaron:"\u0161",Tcedil:"\u0162",tcedil:"\u0163",Tcaron:"\u0164",tcaron:"\u0165",Tstrok:"\u0166",tstrok:"\u0167",Utilde:"\u0168",utilde:"\u0169",Umacr:"\u016A",umacr:"\u016B",Ubreve:"\u016C",ubreve:"\u016D",Uring:"\u016E",uring:"\u016F",Udblac:"\u0170",udblac:"\u0171",Uogon:"\u0172",uogon:"\u0173",Wcirc:"\u0174",wcirc:"\u0175",Ycirc:"\u0176",ycirc:"\u0177",Zacute:"\u0179",zacute:"\u017A",Zdot:"\u017B",zdot:"\u017C",Zcaron:"\u017D",zcaron:"\u017E"},Hfe={Alpha:"\u0391",alpha:"\u03B1",Beta:"\u0392",beta:"\u03B2",Gamma:"\u0393",gamma:"\u03B3",Delta:"\u0394",delta:"\u03B4",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",varepsilon:"\u03F5",Zeta:"\u0396",zeta:"\u03B6",Eta:"\u0397",eta:"\u03B7",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",vartheta:"\u03D1",Iota:"\u0399",iota:"\u03B9",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",varkappa:"\u03F0",Lambda:"\u039B",lambda:"\u03BB",Mu:"\u039C",mu:"\u03BC",Nu:"\u039D",nu:"\u03BD",Xi:"\u039E",xi:"\u03BE",Omicron:"\u039F",omicron:"\u03BF",Pi:"\u03A0",pi:"\u03C0",piv:"\u03D6",varpi:"\u03D6",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",varrho:"\u03F1",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",varsigma:"\u03C2",Tau:"\u03A4",tau:"\u03C4",Upsilon:"\u03A5",upsilon:"\u03C5",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",varphi:"\u03D5",Chi:"\u03A7",chi:"\u03C7",Psi:"\u03A8",psi:"\u03C8",Omega:"\u03A9",omega:"\u03C9",ohm:"\u03A9",Gammad:"\u03DC",gammad:"\u03DD",digamma:"\u03DD"},zfe={Afr:"\u{1D504}",afr:"\u{1D51E}",Acy:"\u0410",acy:"\u0430",Bcy:"\u0411",bcy:"\u0431",Vcy:"\u0412",vcy:"\u0432",Gcy:"\u0413",gcy:"\u0433",Dcy:"\u0414",dcy:"\u0434",IEcy:"\u0415",iecy:"\u0435",IOcy:"\u0401",iocy:"\u0451",ZHcy:"\u0416",zhcy:"\u0436",Zcy:"\u0417",zcy:"\u0437",Icy:"\u0418",icy:"\u0438",Jcy:"\u0419",jcy:"\u0439",Kcy:"\u041A",kcy:"\u043A",Lcy:"\u041B",lcy:"\u043B",Mcy:"\u041C",mcy:"\u043C",Ncy:"\u041D",ncy:"\u043D",Ocy:"\u041E",ocy:"\u043E",Pcy:"\u041F",pcy:"\u043F",Rcy:"\u0420",rcy:"\u0440",Scy:"\u0421",scy:"\u0441",Tcy:"\u0422",tcy:"\u0442",Ucy:"\u0423",ucy:"\u0443",Fcy:"\u0424",fcy:"\u0444",KHcy:"\u0425",khcy:"\u0445",TScy:"\u0426",tscy:"\u0446",CHcy:"\u0427",chcy:"\u0447",SHcy:"\u0428",shcy:"\u0448",SHCHcy:"\u0429",shchcy:"\u0449",HARDcy:"\u042A",hardcy:"\u044A",Ycy:"\u042B",ycy:"\u044B",SOFTcy:"\u042C",softcy:"\u044C",Ecy:"\u042D",ecy:"\u044D",YUcy:"\u042E",yucy:"\u044E",YAcy:"\u042F",yacy:"\u044F",DJcy:"\u0402",djcy:"\u0452",GJcy:"\u0403",gjcy:"\u0453",Jukcy:"\u0404",jukcy:"\u0454",DScy:"\u0405",dscy:"\u0455",Iukcy:"\u0406",iukcy:"\u0456",YIcy:"\u0407",yicy:"\u0457",Jsercy:"\u0408",jsercy:"\u0458",LJcy:"\u0409",ljcy:"\u0459",NJcy:"\u040A",njcy:"\u045A",TSHcy:"\u040B",tshcy:"\u045B",KJcy:"\u040C",kjcy:"\u045C",Ubrcy:"\u040E",ubrcy:"\u045E",DZcy:"\u040F",dzcy:"\u045F"},Vfe={plus:"+",minus:"\u2212",mnplus:"\u2213",mp:"\u2213",pm:"\xB1",times:"\xD7",div:"\xF7",divide:"\xF7",sdot:"\u22C5",star:"\u2606",starf:"\u2605",bigstar:"\u2605",lowast:"\u2217",ast:"*",midast:"*",compfn:"\u2218",smallcircle:"\u2218",bullet:"\u2022",bull:"\u2022",nbsp:"\xA0",hellip:"\u2026",mldr:"\u2026",prime:"\u2032",Prime:"\u2033",tprime:"\u2034",bprime:"\u2035",backprime:"\u2035",minus:"\u2212",minusd:"\u2238",dotminus:"\u2238",plusdo:"\u2214",dotplus:"\u2214",plusmn:"\xB1",minusplus:"\u2213",mnplus:"\u2213",mp:"\u2213",setminus:"\u2216",smallsetminus:"\u2216",Backslash:"\u2216",setmn:"\u2216",ssetmn:"\u2216",lowbar:"_",verbar:"|",vert:"|",VerticalLine:"|",colon:":",Colon:"\u2237",Proportion:"\u2237",ratio:"\u2236",equals:"=",ne:"\u2260",nequiv:"\u2262",equiv:"\u2261",Congruent:"\u2261",sim:"\u223C",thicksim:"\u223C",thksim:"\u223C",sime:"\u2243",simeq:"\u2243",TildeEqual:"\u2243",asymp:"\u2248",approx:"\u2248",thickapprox:"\u2248",thkap:"\u2248",TildeTilde:"\u2248",ncong:"\u2247",cong:"\u2245",TildeFullEqual:"\u2245",asympeq:"\u224D",CupCap:"\u224D",bump:"\u224E",Bumpeq:"\u224E",HumpDownHump:"\u224E",bumpe:"\u224F",bumpeq:"\u224F",HumpEqual:"\u224F",dotminus:"\u2238",minusd:"\u2238",plusdo:"\u2214",dotplus:"\u2214",le:"\u2264",LessEqual:"\u2264",ge:"\u2265",GreaterEqual:"\u2265",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",greater:">",less:"<"},$fe={alefsym:"\u2135",aleph:"\u2135",beth:"\u2136",gimel:"\u2137",daleth:"\u2138",forall:"\u2200",ForAll:"\u2200",part:"\u2202",PartialD:"\u2202",exist:"\u2203",Exists:"\u2203",nexist:"\u2204",nexists:"\u2204",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",varnothing:"\u2205",nabla:"\u2207",Del:"\u2207",isin:"\u2208",isinv:"\u2208",in:"\u2208",Element:"\u2208",notin:"\u2209",notinva:"\u2209",ni:"\u220B",niv:"\u220B",SuchThat:"\u220B",ReverseElement:"\u220B",notni:"\u220C",notniva:"\u220C",prod:"\u220F",Product:"\u220F",coprod:"\u2210",Coproduct:"\u2210",sum:"\u2211",Sum:"\u2211",minus:"\u2212",mp:"\u2213",plusdo:"\u2214",dotplus:"\u2214",setminus:"\u2216",lowast:"\u2217",radic:"\u221A",Sqrt:"\u221A",prop:"\u221D",propto:"\u221D",Proportional:"\u221D",varpropto:"\u221D",infin:"\u221E",infintie:"\u29DD",ang:"\u2220",angle:"\u2220",angmsd:"\u2221",measuredangle:"\u2221",angsph:"\u2222",mid:"\u2223",VerticalBar:"\u2223",nmid:"\u2224",nsmid:"\u2224",npar:"\u2226",parallel:"\u2225",spar:"\u2225",nparallel:"\u2226",nspar:"\u2226",and:"\u2227",wedge:"\u2227",or:"\u2228",vee:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",Integral:"\u222B",conint:"\u222E",ContourIntegral:"\u222E",Conint:"\u222F",DoubleContourIntegral:"\u222F",Cconint:"\u2230",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",becaus:"\u2235",because:"\u2235",Because:"\u2235",ratio:"\u2236",Proportion:"\u2237",minusd:"\u2238",dotminus:"\u2238",mDDot:"\u223A",homtht:"\u223B",sim:"\u223C",bsimg:"\u223D",backsim:"\u223D",ac:"\u223E",mstpos:"\u223E",acd:"\u223F",VerticalTilde:"\u2240",wr:"\u2240",wreath:"\u2240",nsime:"\u2244",nsimeq:"\u2244",nsimeq:"\u2244",ncong:"\u2247",simne:"\u2246",ncongdot:"\u2A6D\u0338",ngsim:"\u2275",nsim:"\u2241",napprox:"\u2249",nap:"\u2249",ngeq:"\u2271",nge:"\u2271",nleq:"\u2270",nle:"\u2270",ngtr:"\u226F",ngt:"\u226F",nless:"\u226E",nlt:"\u226E",nprec:"\u2280",npr:"\u2280",nsucc:"\u2281",nsc:"\u2281"},jfe={larr:"\u2190",leftarrow:"\u2190",LeftArrow:"\u2190",uarr:"\u2191",uparrow:"\u2191",UpArrow:"\u2191",rarr:"\u2192",rightarrow:"\u2192",RightArrow:"\u2192",darr:"\u2193",downarrow:"\u2193",DownArrow:"\u2193",harr:"\u2194",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",varr:"\u2195",updownarrow:"\u2195",UpDownArrow:"\u2195",nwarr:"\u2196",nwarrow:"\u2196",UpperLeftArrow:"\u2196",nearr:"\u2197",nearrow:"\u2197",UpperRightArrow:"\u2197",searr:"\u2198",searrow:"\u2198",LowerRightArrow:"\u2198",swarr:"\u2199",swarrow:"\u2199",LowerLeftArrow:"\u2199",lArr:"\u21D0",Leftarrow:"\u21D0",uArr:"\u21D1",Uparrow:"\u21D1",rArr:"\u21D2",Rightarrow:"\u21D2",dArr:"\u21D3",Downarrow:"\u21D3",hArr:"\u21D4",Leftrightarrow:"\u21D4",iff:"\u21D4",vArr:"\u21D5",Updownarrow:"\u21D5",lAarr:"\u21DA",Lleftarrow:"\u21DA",rAarr:"\u21DB",Rrightarrow:"\u21DB",lrarr:"\u21C6",leftrightarrows:"\u21C6",rlarr:"\u21C4",rightleftarrows:"\u21C4",lrhar:"\u21CB",leftrightharpoons:"\u21CB",ReverseEquilibrium:"\u21CB",rlhar:"\u21CC",rightleftharpoons:"\u21CC",Equilibrium:"\u21CC",udarr:"\u21C5",UpArrowDownArrow:"\u21C5",duarr:"\u21F5",DownArrowUpArrow:"\u21F5",llarr:"\u21C7",leftleftarrows:"\u21C7",rrarr:"\u21C9",rightrightarrows:"\u21C9",ddarr:"\u21CA",downdownarrows:"\u21CA",har:"\u21BD",lhard:"\u21BD",leftharpoondown:"\u21BD",lharu:"\u21BC",leftharpoonup:"\u21BC",rhard:"\u21C1",rightharpoondown:"\u21C1",rharu:"\u21C0",rightharpoonup:"\u21C0",lsh:"\u21B0",Lsh:"\u21B0",rsh:"\u21B1",Rsh:"\u21B1",ldsh:"\u21B2",rdsh:"\u21B3",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",mapstoleft:"\u21A4",mapstoup:"\u21A5",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",crarr:"\u21B5",nwarrow:"\u2196",nearrow:"\u2197",searrow:"\u2198",swarrow:"\u2199",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nrightarrow:"\u219B",nrarr:"\u219B",larrtl:"\u21A2",rarrtl:"\u21A3",leftarrowtail:"\u21A2",rightarrowtail:"\u21A3",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Larr:"\u219E",Rarr:"\u21A0",larrhk:"\u21A9",rarrhk:"\u21AA",larrlp:"\u21AB",looparrowleft:"\u21AB",rarrlp:"\u21AC",looparrowright:"\u21AC",harrw:"\u21AD",leftrightsquigarrow:"\u21AD",nrarrw:"\u219D\u0338",rarrw:"\u219D",rightsquigarrow:"\u219D",larrbfs:"\u291F",rarrbfs:"\u2920",nvHarr:"\u2904",nvlArr:"\u2902",nvrArr:"\u2903",larrfs:"\u291D",rarrfs:"\u291E",Map:"\u2905",larrsim:"\u2973",rarrsim:"\u2974",harrcir:"\u2948",Uarrocir:"\u2949",lurdshar:"\u294A",ldrdhar:"\u2967",ldrushar:"\u294B",rdldhar:"\u2969",lrhard:"\u296D",rlhar:"\u21CC",uharr:"\u21BE",uharl:"\u21BF",dharr:"\u21C2",dharl:"\u21C3",Uarr:"\u219F",Darr:"\u21A1",zigrarr:"\u21DD",nwArr:"\u21D6",neArr:"\u21D7",seArr:"\u21D8",swArr:"\u21D9",nharr:"\u21AE",nhArr:"\u21CE",nlarr:"\u219A",nlArr:"\u21CD",nrarr:"\u219B",nrArr:"\u21CF",larrb:"\u21E4",LeftArrowBar:"\u21E4",rarrb:"\u21E5",RightArrowBar:"\u21E5"},Wfe={square:"\u25A1",Square:"\u25A1",squ:"\u25A1",squf:"\u25AA",squarf:"\u25AA",blacksquar:"\u25AA",blacksquare:"\u25AA",FilledVerySmallSquare:"\u25AA",blk34:"\u2593",blk12:"\u2592",blk14:"\u2591",block:"\u2588",srect:"\u25AD",rect:"\u25AD",sdot:"\u22C5",sdotb:"\u22A1",dotsquare:"\u22A1",triangle:"\u25B5",tri:"\u25B5",trine:"\u25B5",utri:"\u25B5",triangledown:"\u25BF",dtri:"\u25BF",tridown:"\u25BF",triangleleft:"\u25C3",ltri:"\u25C3",triangleright:"\u25B9",rtri:"\u25B9",blacktriangle:"\u25B4",utrif:"\u25B4",blacktriangledown:"\u25BE",dtrif:"\u25BE",blacktriangleleft:"\u25C2",ltrif:"\u25C2",blacktriangleright:"\u25B8",rtrif:"\u25B8",loz:"\u25CA",lozenge:"\u25CA",blacklozenge:"\u29EB",lozf:"\u29EB",bigcirc:"\u25EF",xcirc:"\u25EF",circ:"\u02C6",Circle:"\u25CB",cir:"\u25CB",o:"\u25CB",bullet:"\u2022",bull:"\u2022",hellip:"\u2026",mldr:"\u2026",nldr:"\u2025",boxh:"\u2500",HorizontalLine:"\u2500",boxv:"\u2502",boxdr:"\u250C",boxdl:"\u2510",boxur:"\u2514",boxul:"\u2518",boxvr:"\u251C",boxvl:"\u2524",boxhd:"\u252C",boxhu:"\u2534",boxvh:"\u253C",boxH:"\u2550",boxV:"\u2551",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxDl:"\u2555",boxdL:"\u2556",boxDL:"\u2557",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxUl:"\u255C",boxuL:"\u255B",boxUL:"\u255D",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",boxVl:"\u2562",boxvL:"\u2561",boxVL:"\u2563",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C"},Jfe={excl:"!",iexcl:"\xA1",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",nbsp:"\xA0",comma:",",period:".",colon:":",semi:";",vert:"|",Verbar:"\u2016",verbar:"|",dblac:"\u02DD",circ:"\u02C6",caron:"\u02C7",breve:"\u02D8",dot:"\u02D9",ring:"\u02DA",ogon:"\u02DB",tilde:"\u02DC",DiacriticalGrave:"`",DiacriticalAcute:"\xB4",DiacriticalTilde:"\u02DC",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",grave:"`",acute:"\xB4"},JN={cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",euro:"\u20AC",dollar:"$",euro:"\u20AC",fnof:"\u0192",inr:"\u20B9",af:"\u060B",birr:"\u1265\u122D",peso:"\u20B1",rub:"\u20BD",won:"\u20A9",yuan:"\xA5",cedil:"\xB8"},Yfe={frac12:"\xBD",half:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044"},Kfe={trade:"\u2122",TRADE:"\u2122",telrec:"\u2315",target:"\u2316",ulcorn:"\u231C",ulcorner:"\u231C",urcorn:"\u231D",urcorner:"\u231D",dlcorn:"\u231E",llcorner:"\u231E",drcorn:"\u231F",lrcorner:"\u231F",intercal:"\u22BA",intcal:"\u22BA",oplus:"\u2295",CirclePlus:"\u2295",ominus:"\u2296",CircleMinus:"\u2296",otimes:"\u2297",CircleTimes:"\u2297",osol:"\u2298",odot:"\u2299",CircleDot:"\u2299",oast:"\u229B",circledast:"\u229B",odash:"\u229D",circleddash:"\u229D",ocirc:"\u229A",circledcirc:"\u229A",boxplus:"\u229E",plusb:"\u229E",boxminus:"\u229F",minusb:"\u229F",boxtimes:"\u22A0",timesb:"\u22A0",boxdot:"\u22A1",sdotb:"\u22A1",veebar:"\u22BB",vee:"\u2228",barvee:"\u22BD",and:"\u2227",wedge:"\u2227",Cap:"\u22D2",Cup:"\u22D3",Fork:"\u22D4",pitchfork:"\u22D4",epar:"\u22D5",ltlarr:"\u2976",nvap:"\u224D\u20D2",nvsim:"\u223C\u20D2",nvge:"\u2265\u20D2",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvgt:">\u20D2",nvltrie:"\u22B4\u20D2",nvrtrie:"\u22B5\u20D2",Vdash:"\u22A9",dashv:"\u22A3",vDash:"\u22A8",Vdash:"\u22A9",Vvdash:"\u22AA",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF"},ort={...Ufe,...qfe,...Gfe,...Hfe,...zfe,...Vfe,...$fe,...jfe,...Wfe,...Jfe,...JN,...Yfe,...Kfe},c0={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},Mq={nbsp:"\xA0",copy:"\xA9",reg:"\xAE",trade:"\u2122",mdash:"\u2014",ndash:"\u2013",hellip:"\u2026",laquo:"\xAB",raquo:"\xBB",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",bull:"\u2022",para:"\xB6",sect:"\xA7",deg:"\xB0",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE"};var art=new Set("!?\\\\/[]$%{}^&*()<>|+");function Xfe(t){if(t[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${t}"`);for(let e of t)if(art.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${t}"`);return t}o(Xfe,"validateEntityName");function Uq(...t){let e=Object.create(null);for(let r of t)if(r)for(let n of Object.keys(r)){let i=r[n];if(typeof i=="string")e[n]=i;else if(i&&typeof i=="object"&&i.val!==void 0){let s=i.val;typeof s=="string"&&(e[n]=s)}}return e}o(Uq,"mergeEntityMaps");var Mh="external",YN="base",qq="all";function crt(t){return!t||t===Mh?new Set([Mh]):t===qq?new Set([qq]):t===YN?new Set([YN]):Array.isArray(t)?new Set(t):new Set([Mh])}o(crt,"parseLimitTiers");var os=Object.freeze({allow:0,leave:1,remove:2,throw:3}),lrt=new Set([9,10,13]);function urt(t){if(!t)return{xmlVersion:1,onLevel:os.allow,nullLevel:os.remove};let e=t.xmlVersion===1.1?1.1:1,r=os[t.onNCR]??os.allow,n=os[t.nullNCR]??os.remove,i=Math.max(n,os.remove);return{xmlVersion:e,onLevel:r,nullLevel:i}}o(urt,"parseNCRConfig");var eg=class{static{o(this,"EntityDecoder")}constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck=="function"?e.postCheck:n=>n,this._limitTiers=crt(this._limit.applyLimitsTo??Mh),this._numericAllowed=e.numericAllowed??!0,this._baseMap=Uq(c0,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.leave&&Array.isArray(e.leave)?e.leave:[]);let r=urt(e.ncr);this._ncrXmlVersion=r.xmlVersion,this._ncrOnLevel=r.onLevel,this._ncrNullLevel=r.nullLevel}setExternalEntities(e){if(e)for(let r of Object.keys(e))Xfe(r);this._externalMap=Uq(e)}addExternalEntity(e,r){Xfe(e),typeof r=="string"&&r.indexOf("&")===-1&&(this._externalMap[e]=r)}addInputEntities(e){this._totalExpansions=0,this._expandedLength=0,this._inputMap=Uq(e)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(e){this._ncrXmlVersion=e===1.1?1.1:1}decode(e){if(typeof e!="string"||e.length===0)return e;let r=e,n=[],i=e.length,s=0,a=0,c=this._maxTotalExpansions>0,l=this._maxExpandedLength>0,u=c||l;for(;a=i||e.charCodeAt(f)!==59){a++;continue}let h=e.slice(a+1,f);if(h.length===0){a++;continue}let p,m;if(this._removeSet.has(h))p="",m===void 0&&(m=Mh);else if(this._leaveSet.has(h)){a++;continue}else if(h.charCodeAt(0)===35){let A=this._resolveNCR(h);if(A===void 0){a++;continue}p=A,m=YN}else{let A=this._resolveName(h);p=A?.value,m=A?.tier}if(p===void 0){a++;continue}if(a>s&&n.push(e.slice(s,a)),n.push(p),s=f+1,a=s,u&&this._tierCounts(m)){if(c&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw new Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(l){let A=p.length-(h.length+2);if(A>0&&(this._expandedLength+=A,this._expandedLength>this._maxExpandedLength))throw new Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}s=55296&&e<=57343||this._ncrXmlVersion===1&&e>=1&&e<=31&&!lrt.has(e)?os.remove:-1}_applyNCRAction(e,r,n){switch(e){case os.allow:return String.fromCodePoint(n);case os.remove:return"";case os.leave:return;case os.throw:throw new Error(`[EntityDecoder] Prohibited numeric character reference &${r}; (U+${n.toString(16).toUpperCase().padStart(4,"0")})`);default:return String.fromCodePoint(n)}}_resolveNCR(e){let r=e.charCodeAt(1),n;if(r===120||r===88?n=parseInt(e.slice(2),16):n=parseInt(e.slice(1),10),Number.isNaN(n)||n<0||n>1114111)return;let i=this._classifyNCR(n);if(!this._numericAllowed&&io0.includes(t)?"__"+t:t,"defaultOnDangerousProperty"),drt={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:o(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:o(function(t,e){return e},"attributeValueProcessor"),stopNodes:[],alwaysCreateTextNode:!1,isArray:o(()=>!1,"isArray"),commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:o(function(t,e,r){return t},"updateTag"),captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:Zfe};function frt(t,e){if(typeof t!="string")return;let r=t.toLowerCase();if(o0.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);if(jN.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`)}o(frt,"validatePropertyName");function ehe(t,e){return typeof t=="boolean"?{enabled:t,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:"all"}:typeof t=="object"&&t!==null?{enabled:t.enabled!==!1,maxEntitySize:Math.max(1,t.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,t.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,t.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,t.maxExpandedLength??1e5),maxEntityCount:Math.max(1,t.maxEntityCount??1e3),allowedTags:t.allowedTags??null,tagFilter:t.tagFilter??null,appliesTo:t.appliesTo??"all"}:ehe(!0)}o(ehe,"normalizeProcessEntities");var the=o(function(t){let e=Object.assign({},drt,t),r=[{value:e.attributeNamePrefix,name:"attributeNamePrefix"},{value:e.attributesGroupName,name:"attributesGroupName"},{value:e.textNodeName,name:"textNodeName"},{value:e.cdataPropName,name:"cdataPropName"},{value:e.commentPropName,name:"commentPropName"}];for(let{value:n,name:i}of r)n&&frt(n,i);return e.onDangerousProperty===null&&(e.onDangerousProperty=Zfe),e.processEntities=ehe(e.processEntities,e.htmlEntities),e.unpairedTagsSet=new Set(e.unpairedTags),e.stopNodes&&Array.isArray(e.stopNodes)&&(e.stopNodes=e.stopNodes.map(n=>typeof n=="string"&&n.startsWith("*.")?".."+n.substring(2):n)),e},"buildOptions");var KN;typeof Symbol!="function"?KN="@@xmlMetadata":KN=Symbol("XML Node Metadata");var as=class{static{o(this,"XmlNode")}constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,r){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:r})}addChild(e,r){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),r!==void 0&&(this.child[this.child.length-1][KN]={startIndex:r})}static getMetaDataSymbol(){return KN}};var rhe=":A-Za-z_\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u0486\u0488-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",hrt=rhe+"\\-\\.\\d\xB7\u0300-\u036F\u203F-\u2040",nhe=":A-Za-z_\xC0-\u02FF\u0370-\u037D\u037F-\u0486\u0488-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}",prt=nhe+"\\-\\.\\d\xB7\u0300-\u036F\u0487\u203F-\u2040",ihe=o((t,e,r="")=>{let n=t.replace(":",""),i=e.replace(":",""),s=`[${n}][${i}]*`;return{name:new RegExp(`^[${t}][${e}]*$`,r),ncName:new RegExp(`^${s}$`,r),qName:new RegExp(`^${s}(?::${s})?$`,r),nmToken:new RegExp(`^[${e}]+$`,r),nmTokens:new RegExp(`^[${e}]+(?:\\s+[${e}]+)*$`,r)}},"buildRegexes"),Art=ihe(rhe,hrt),mrt=ihe(nhe,prt,"u"),grt=o((t="1.0")=>t==="1.1"?mrt:Art,"getRegexes");var Uh=o((t,{xmlVersion:e="1.0"}={})=>grt(e).qName.test(t),"qName");var u0=class{static{o(this,"DocTypeReader")}constructor(e,r){this.suppressValidationErr=!e,this.options=e,this.xmlVersion=r||1}setXmlVersion(e=1){this.xmlVersion=e}readDocType(e,r){let n=Object.create(null),i=0;if(e[r+3]==="O"&&e[r+4]==="C"&&e[r+5]==="T"&&e[r+6]==="Y"&&e[r+7]==="P"&&e[r+8]==="E"){r=r+9;let s=1,a=!1,c=!1,l="";for(;r=this.options.maxEntityCount)throw new Error(`Entity count (${i+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);n[u]=d,i++}}else if(a&&qh(e,"!ELEMENT",r)){r+=8;let{index:u}=this.readElementExp(e,r+1);r=u}else if(a&&qh(e,"!ATTLIST",r))r+=8;else if(a&&qh(e,"!NOTATION",r)){r+=9;let{index:u}=this.readNotationExp(e,r+1,this.suppressValidationErr);r=u}else if(qh(e,"!--",r))c=!0;else throw new Error("Invalid DOCTYPE");s++,l=""}else if(e[r]===">"){if(c?e[r-1]==="-"&&e[r-2]==="-"&&(c=!1,s--):s--,s===0)break}else e[r]==="["?a=!0:l+=e[r];if(s!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:n,i:r}}readEntityExp(e,r){r=cs(e,r);let n=r;for(;rthis.options.maxEntitySize)throw new Error(`Entity "${i}" size (${s.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return r--,[i,s,r]}readNotationExp(e,r){r=cs(e,r);let n=r;for(;r{for(;e1||s.length===1&&!c))return t;{let l=Number(r),u=String(l);if(l===0)return l;if(u.search(/[eE]/)!==-1)return e.eNotation?l:t;if(r.indexOf(".")!==-1)return u==="0"||u===a||u===`${i}${a}`?l:t;let d=s?a:r;return s?d===u||i+d===u?l:t:d===u||d===i+u?l:t}}else return t}}else return xrt(t,Number(r),e)}o(Hq,"toNumber");var Irt=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function Srt(t,e,r){if(!r.eNotation)return t;let n=e.match(Irt);if(n){let i=n[1]||"",s=n[3].indexOf("e")===-1?"E":"e",a=n[2],c=i?t[a.length+1]===s:t[a.length]===s;return a.length>1&&c?t:a.length===1&&(n[3].startsWith(`.${s}`)||n[3][0]===s)?Number(e):a.length>0?r.leadingZeros&&!c?(e=(n[1]||"")+n[3],Number(e)):t:Number(e)}else return t}o(Srt,"resolveEnotation");function Brt(t){return t&&t.indexOf(".")!==-1&&(t=t.replace(/0+$/,""),t==="."?t="0":t[0]==="."?t="0"+t:t[t.length-1]==="."&&(t=t.substring(0,t.length-1))),t}o(Brt,"trimZeros");function Gq(t,e){let r=t.trim();if((e===2||e===8)&&(t=r.substring(2)),parseInt)return parseInt(t,e);if(Number.parseInt)return Number.parseInt(t,e);if(window&&window.parseInt)return window.parseInt(t,e);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}o(Gq,"parse_int");function xrt(t,e,r){let n=e===1/0;switch(r.infinity.toLowerCase()){case"null":return null;case"infinity":return e;case"string":return n?"Infinity":"-Infinity";default:return t}}o(xrt,"handleInfinity");function zq(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}o(zq,"getIgnoreAttributesFn");var Ws=class{static{o(this,"Expression")}constructor(e,r={},n){this.pattern=e,this.separator=r.separator||".",this.segments=this._parse(e),this.data=n,this._hasDeepWildcard=this.segments.some(i=>i.type==="deep-wildcard"),this._hasAttributeCondition=this.segments.some(i=>i.attrName!==void 0),this._hasPositionSelector=this.segments.some(i=>i.position!==void 0)}_parse(e){let r=[],n=0,i="";for(;n0?e[e.length-1].tag:void 0}getCurrentNamespace(){let e=this._matcher.path;return e.length>0?e[e.length-1].namespace:void 0}getAttrValue(e){let r=this._matcher.path;if(r.length!==0)return r[r.length-1].values?.[e]}hasAttr(e){let r=this._matcher.path;if(r.length===0)return!1;let n=r[r.length-1];return n.values!==void 0&&e in n.values}getPosition(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].position??0}getCounter(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(e,r=!0){return this._matcher.toString(e,r)}toArray(){return this._matcher.path.map(e=>e.tag)}matches(e){return this._matcher.matches(e)}matchesAny(e){return e.matchesAny(this._matcher)}},xc=class{static{o(this,"Matcher")}constructor(e={}){this.separator=e.separator||".",this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new Vq(this)}push(e,r=null,n=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let i=this.path.length;this.siblingStacks[i]||(this.siblingStacks[i]=new Map);let s=this.siblingStacks[i],a=n?`${n}:${e}`:e,c=s.get(a)||0,l=0;for(let d of s.values())l+=d;s.set(a,c+1);let u={tag:e,position:l,counter:c};n!=null&&(u.namespace=n),r!=null&&(u.values=r),this.path.push(u)}pop(){if(this.path.length===0)return;this._pathStringCache=null;let e=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),e}updateCurrent(e){if(this.path.length>0){let r=this.path[this.path.length-1];e!=null&&(r.values=e)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(e){if(this.path.length!==0)return this.path[this.path.length-1].values?.[e]}hasAttr(e){if(this.path.length===0)return!1;let r=this.path[this.path.length-1];return r.values!==void 0&&e in r.values}getPosition(){return this.path.length===0?-1:this.path[this.path.length-1].position??0}getCounter(){return this.path.length===0?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,r=!0){let n=e||this.separator;if(n===this.separator&&r===!0){if(this._pathStringCache!==null)return this._pathStringCache;let s=this.path.map(a=>a.namespace?`${a.namespace}:${a.tag}`:a.tag).join(n);return this._pathStringCache=s,s}return this.path.map(s=>r&&s.namespace?`${s.namespace}:${s.tag}`:s.tag).join(n)}toArray(){return this.path.map(e=>e.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[]}matches(e){let r=e.segments;return r.length===0?!1:e.hasDeepWildcard()?this._matchWithDeepWildcard(r):this._matchSimple(r)}_matchSimple(e){if(this.path.length!==e.length)return!1;for(let r=0;r=0&&r>=0;){let i=e[n];if(i.type==="deep-wildcard"){if(n--,n<0)return!0;let s=e[n],a=!1;for(let c=r;c>=0;c--)if(this._matchSegment(s,this.path[c],c===this.path.length-1)){r=c-1,n--,a=!0;break}if(!a)return!1}else{if(!this._matchSegment(i,this.path[r],r===this.path.length-1))return!1;r--,n--}}return n<0}_matchSegment(e,r,n){if(e.tag!=="*"&&e.tag!==r.tag||e.namespace!==void 0&&e.namespace!=="*"&&e.namespace!==r.namespace||e.attrName!==void 0&&(!n||!r.values||!(e.attrName in r.values)||e.attrValue!==void 0&&String(r.values[e.attrName])!==String(e.attrValue)))return!1;if(e.position!==void 0){if(!n)return!1;let i=r.counter??0;if(e.position==="first"&&i!==0)return!1;if(e.position==="odd"&&i%2!==1)return!1;if(e.position==="even"&&i%2!==0)return!1;if(e.position==="nth"&&i!==e.positionValue)return!1}return!0}matchesAny(e){return e.matchesAny(this)}snapshot(){return{path:this.path.map(e=>({...e})),siblingStacks:this.siblingStacks.map(e=>new Map(e))}}restore(e){this._pathStringCache=null,this.path=e.path.map(r=>({...r})),this.siblingStacks=e.siblingStacks.map(r=>new Map(r))}readOnly(){return this._view}};function vrt(t,e){if(!t)return{};let r=e.attributesGroupName?t[e.attributesGroupName]:t;if(!r)return{};let n={};for(let i in r)if(i.startsWith(e.attributeNamePrefix)){let s=i.substring(e.attributeNamePrefix.length);n[s]=r[i]}else n[i]=r[i];return n}o(vrt,"extractRawAttributes");function Nrt(t){if(!t||typeof t!="string")return;let e=t.indexOf(":");if(e!==-1&&e>0){let r=t.substring(0,e);if(r!=="xmlns")return r}}o(Nrt,"extractNamespace");var d0=class{static{o(this,"OrderedObjParser")}constructor(e,r){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=Qrt,this.parseTextData=_rt,this.resolveNameSpace=Rrt,this.buildAttributesMap=Drt,this.isItStopNode=Lrt,this.replaceEntitiesValue=Prt,this.readStopNodeData=Urt,this.saveTextToParentTag=Ort,this.addChild=krt,this.ignoreAttributesFn=zq(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0;let n={...c0};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities=="object"?n=this.options.htmlEntities:this.options.htmlEntities===!0&&(n={...Mq,...JN}),this.entityDecoder=new eg({namedEntities:{...n,...r},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo}})),this.matcher=new xc,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new tg;let i=this.options.stopNodes;if(i&&i.length>0){for(let s=0;s0)){a||(t=this.replaceEntitiesValue(t,e,r));let l=c.jPath?r.toString():r,u=c.tagValueProcessor(e,t,l,i,s);return u==null?t:typeof u!=typeof t||u!==t?u:c.trimValues||t.trim()===t?Wq(t,c.parseTagValue,c.numberParseOptions):t}}o(_rt,"parseTextData");function Rrt(t){if(this.options.removeNSPrefix){let e=t.split(":"),r=t.charAt(0)==="/"?"/":"";if(e[0]==="xmlns")return"";e.length===2&&(t=r+e[1])}return t}o(Rrt,"resolveNameSpace");var Trt=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function Drt(t,e,r,n=!1){let i=this.options;if(n===!0||i.ignoreAttributes!==!0&&typeof t=="string"){let s=$N(t,Trt),a=s.length,c={},l=new Array(a),u=!1,d={};for(let p=0;p",c,"Closing Tag is not closed."),f=t.substring(c+2,d).trim();if(i.removeNSPrefix){let p=f.indexOf(":");p!==-1&&(f=f.substr(p+1))}f=$q(i.transformTagName,f,"",i).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let h=this.matcher.getCurrentTag();if(f&&i.unpairedTagsSet.has(f))throw new Error(`Unpaired tag can not be used as closing tag: `);h&&i.unpairedTagsSet.has(h)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=d}else if(u===63){let d=jq(t,c,!1,"?>");if(!d)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let f=this.buildAttributesMap(d.tagExp,this.matcher,d.tagName,!0);if(f){let h=f[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(h)||1),s.setXmlVersion(Number(h)||1)}if(!(i.ignoreDeclaration&&d.tagName==="?xml"||i.ignorePiTags)){let h=new as(d.tagName);h.add(i.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&i.ignoreAttributes!==!0&&(h[":@"]=f),this.addChild(r,h,this.readonlyMatcher,c)}c=d.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let d=rg(t,"-->",c+4,"Comment is not closed.");if(i.commentPropName){let f=t.substring(c+4,d-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(i.commentPropName,[{[i.textNodeName]:f}])}c=d}else if(u===33&&t.charCodeAt(c+2)===68){let d=s.readDocType(t,c);this.entityDecoder.addInputEntities(d.entities),c=d.i}else if(u===33&&t.charCodeAt(c+2)===91){let d=rg(t,"]]>",c,"CDATA is not closed.")-2,f=t.substring(c+9,d);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let h=this.parseTextData(f,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);h==null&&(h=""),i.cdataPropName?r.add(i.cdataPropName,[{[i.textNodeName]:f}]):r.add(i.textNodeName,h),c=d+2}else{let d=jq(t,c,i.removeNSPrefix);if(!d){let U=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${U}"`)}let f=d.tagName,h=d.rawTagName,p=d.tagExp,m=d.attrExpPresent,A=d.closeIndex;if({tagName:f,tagExp:p}=$q(i.transformTagName,f,p,i),i.strictReservedNames&&(f===i.commentPropName||f===i.cdataPropName||f===i.textNodeName||f===i.attributesGroupName))throw new Error(`Invalid tag name: ${f}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let E=r;E&&i.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let y=!1;p.length>0&&p.lastIndexOf("/")===p.length-1&&(y=!0,f[f.length-1]==="/"?(f=f.substr(0,f.length-1),p=f):p=p.substr(0,p.length-1),m=f!==p);let C=null,w={},B;B=Nrt(h),f!==e.tagname&&this.matcher.push(f,{},B),f!==p&&m&&(C=this.buildAttributesMap(p,this.matcher,f),C&&(w=vrt(C,i))),f!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let P=c;if(this.isCurrentNodeStopNode){let U="";if(y)c=d.closeIndex;else if(i.unpairedTagsSet.has(f))c=d.closeIndex;else{let $=this.readStopNodeData(t,h,A+1);if(!$)throw new Error(`Unexpected end of ${h}`);c=$.i,U=$.tagContent}let N=new as(f);C&&(N[":@"]=C),N.add(i.textNodeName,U),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,N,this.readonlyMatcher,P)}else{if(y){({tagName:f,tagExp:p}=$q(i.transformTagName,f,p,i));let U=new as(f);C&&(U[":@"]=C),this.addChild(r,U,this.readonlyMatcher,P),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(i.unpairedTagsSet.has(f)){let U=new as(f);C&&(U[":@"]=C),this.addChild(r,U,this.readonlyMatcher,P),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=d.closeIndex;continue}else{let U=new as(f);if(this.tagsNodeStack.length>i.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(U[":@"]=C),this.addChild(r,U,this.readonlyMatcher,P),r=U}n="",c=A}}}else n+=t[c];return e.child},"parseXml");function krt(t,e,r,n){this.options.captureMetaData||(n=void 0);let i=this.options.jPath?r.toString():r,s=this.options.updateTag(e.tagname,i,e[":@"]);s===!1||(typeof s=="string"&&(e.tagname=s),t.addChild(e,n))}o(krt,"addChild");function Prt(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let i=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,i)))return t}if(n.tagFilter){let i=this.options.jPath?r.toString():r;if(!n.tagFilter(e,i))return t}return this.entityDecoder.decode(t)}o(Prt,"replaceEntitiesValue");function Ort(t,e,r,n){return t&&(n===void 0&&(n=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}o(Ort,"saveTextToParentTag");function Lrt(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}o(Lrt,"isItStopNode");function Frt(t,e,r=">"){let n=0,i=t.length,s=r.charCodeAt(0),a=r.length>1?r.charCodeAt(1):-1,c="",l=e;for(let u=e;u",r,`${e} is not closed`);if(t.substring(r+2,c).trim()===e&&(i--,i===0))return{tagContent:t.substring(n,r),i:c};r=c}else if(a===63)r=rg(t,"?>",r+1,"StopNode is not closed.");else if(a===33&&t.charCodeAt(r+2)===45&&t.charCodeAt(r+3)===45)r=rg(t,"-->",r+3,"StopNode is not closed.");else if(a===33&&t.charCodeAt(r+2)===91)r=rg(t,"]]>",r,"StopNode is not closed.")-2;else{let c=jq(t,r,!1);c&&((c&&c.tagName)===e&&c.tagExp[c.tagExp.length-1]!=="/"&&i++,r=c.closeIndex)}}}o(Urt,"readStopNodeData");function Wq(t,e,r){if(e&&typeof t=="string"){let n=t.trim();return n==="true"?!0:n==="false"?!1:Hq(t,r)}else return Pfe(t)?t:""}o(Wq,"parseValue");function $q(t,e,r,n){if(t){let i=t(e);r===e&&(r=i),e=i}return e=she(e,n),{tagName:e,tagExp:r}}o($q,"transformTagName");function she(t,e){if(jN.includes(t))throw new Error(`[SECURITY] Invalid name: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);return o0.includes(t)?e.onDangerousProperty(t):t}o(she,"sanitizeName");var Jq=as.getMetaDataSymbol();function qrt(t,e){if(!t||typeof t!="object")return{};if(!e)return t;let r={};for(let n in t)if(n.startsWith(e)){let i=n.substring(e.length);r[i]=t[n]}else r[n]=t[n];return r}o(qrt,"stripAttributePrefix");function Yq(t,e,r,n){return ohe(t,e,r,n)}o(Yq,"prettify");function ohe(t,e,r,n){let i,s={};for(let a=0;a0&&(s[e.textNodeName]=i):i!==void 0&&(s[e.textNodeName]=i),s}o(ohe,"compress");function Grt(t){let e=Object.keys(t);for(let r=0;r/g,"]]]]>")}o(ZN,"safeCdata");function Od(t){return String(t).replace(/"/g,""").replace(/'/g,"'")}o(Od,"escapeAttribute");var Vrt=` +`;function $rt(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(Zq(r)==="?xml"){let i=r[":@"];if(i){let s=e.attributeNamePrefix+"version";if(i[s])return i[s]}}return"1.0"}o($rt,"detectXmlVersionFromArray");function che(t,e,r,n,i){return!r.sanitizeName||Uh(t,{xmlVersion:i})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(che,"resolveTagName");function Xq(t,e){let r="";e.format&&(r=Vrt);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;ae.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let l=t.toString();return l=Kq(l,e),l}return""}for(let l=0;l`,c=!1,n.pop();continue}else if(h===e.commentPropName){let w=u[d][0][e.textNodeName],B=XN(w);a+=r+``,c=!0,n.pop();continue}else if(h[0]==="?"){let w=ahe(u[":@"],e,m,n,s);a+=(h==="?xml"?"":r)+`<${h}${w}?>`,c=!0,n.pop();continue}let A=r;A!==""&&(A+=e.indentBy);let E=ahe(u[":@"],e,m,n,s),y=r+`<${h}${E}`,C;m?C=uhe(u[d],e):C=lhe(u[d],e,A,n,i,s),e.unpairedTags.indexOf(h)!==-1?e.suppressUnpairedNode?a+=y+">":a+=y+"/>":(!C||C.length===0)&&e.suppressEmptyNode?a+=y+"/>":C&&C.endsWith(">")?a+=y+`>${C}${r}`:(a+=y+">",C&&r!==""&&(C.includes("/>")||C.includes("`),c=!0,n.pop()}return a}o(lhe,"arrToStr");function jrt(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let s=i.startsWith(e.attributeNamePrefix)?i.substr(e.attributeNamePrefix.length):i;r[s]=Od(t[i]),n=!0}return n?r:null}o(jrt,"extractAttributeValues");function uhe(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n`:r+=`<${s}${a}>${c}`}}}return r}o(uhe,"getRawContent");function Wrt(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i=t[n];i===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${Od(i)}"`}return r}o(Wrt,"attr_to_str_raw");function Zq(t){let e=Object.keys(t);for(let r=0;r0&&e.processEntities)for(let r=0;r{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}o(e3,"getIgnoreAttributesFn");var Yrt={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:o(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:o(function(t,e){return e},"attributeValueProcessor"),preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function ls(t){if(this.options=Object.assign({},Yrt,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e `,this.newLine=` -`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}o(ls,"Builder");function Wrt(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let i=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(i)return i}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}o(Wrt,"detectXmlVersionFromObj");function e3(t,e,r,n,i){return!r.sanitizeName||Mh(t,{xmlVersion:i})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(e3,"resolveTagName");ls.prototype.build=function(t){if(this.options.preserveOrder)return Kq(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new xc,r=Wrt(t,this.options);return this.j2x(t,0,e,r).val}};ls.prototype.j2x=function(t,e,r,n){let i="",s="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let a=this.options.jPath?r.toString():r,c=this.checkStopNode(r);for(let l in t){if(!Object.prototype.hasOwnProperty.call(t,l))continue;let d=l===this.options.textNodeName||l===this.options.cdataPropName||l===this.options.commentPropName||this.options.attributesGroupName&&l===this.options.attributesGroupName||this.isAttribute(l)||l[0]==="?"?l:e3(l,!1,this.options,r,n);if(typeof t[l]>"u")this.isAttribute(l)&&(s+="");else if(t[l]===null)this.isAttribute(l)||d===this.options.cdataPropName||d===this.options.commentPropName?s+="":d[0]==="?"?s+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(t[l]instanceof Date)s+=this.buildTextValNode(t[l],d,"",e,r);else if(typeof t[l]!="object"){let f=this.isAttribute(l);if(f&&!this.ignoreAttributesFn(f,a)){let h=e3(f,!0,this.options,r,n);i+=this.buildAttrPairStr(h,""+t[l],c)}else if(!f)if(l===this.options.textNodeName){let h=this.options.tagValueProcessor(l,""+t[l]);s+=this.replaceEntitiesValue(h)}else{r.push(d);let h=this.checkStopNode(r);if(r.pop(),h){let p=""+t[l];p===""?s+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:s+=this.indentate(e)+"<"+d+">"+p+""u"))if(A===null)d[0]==="?"?s+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(typeof A=="object")if(this.options.oneListGroup){r.push(d);let E=this.j2x(A,e+1,r,n);r.pop(),h+=E.val,this.options.attributesGroupName&&A.hasOwnProperty(this.options.attributesGroupName)&&(p+=E.attrStr)}else h+=this.processTextOrObjNode(A,d,e,r,n);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(d,A);E=this.replaceEntitiesValue(E),h+=E}else{r.push(d);let E=this.checkStopNode(r);if(r.pop(),E){let y=""+A;y===""?h+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:h+=this.indentate(e)+"<"+d+">"+y+"${i}`;else if(typeof i=="object"&&i!==null){let s=this.buildRawContent(i),a=this.buildAttributesForStopNode(i);s===""?e+=`<${r}${a}/>`:e+=`<${r}${a}>${s}`}}else if(typeof n=="object"&&n!==null){let i=this.buildRawContent(n),s=this.buildAttributesForStopNode(n);i===""?e+=`<${r}${s}/>`:e+=`<${r}${s}>${i}`}else e+=`<${r}>${n}`}return e};ls.prototype.buildAttributesForStopNode=function(t){if(!t||typeof t!="object")return"";let e="";if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let r=t[this.options.attributesGroupName];for(let n in r){if(!Object.prototype.hasOwnProperty.call(r,n))continue;let i=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n,s=r[n];s===!0&&this.options.suppressBooleanAttributes?e+=" "+i:e+=" "+i+'="'+s+'"'}}else for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let n=this.isAttribute(r);if(n){let i=t[r];i===!0&&this.options.suppressBooleanAttributes?e+=" "+n:e+=" "+n+'="'+i+'"'}}return e};ls.prototype.buildObjectNode=function(t,e,r,n){if(t==="")return e[0]==="?"?this.indentate(n)+"<"+e+r+"?"+this.tagEndChar:this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar;if(e[0]==="?")return this.indentate(n)+"<"+e+r+"?"+this.tagEndChar;{let i=""+t+i:this.options.commentPropName!==!1&&e===this.options.commentPropName&&s.length===0?this.indentate(n)+``+this.newLine:this.indentate(n)+"<"+e+r+s+this.tagEndChar+t+this.indentate(n)+i}};ls.prototype.closeTag=function(t){let e="";return this.options.unpairedTags.indexOf(t)!==-1?this.options.suppressUnpairedNode||(e="/"):this.options.suppressEmptyNode?e="/":e=`>`+this.newLine}else if(this.options.commentPropName!==!1&&e===this.options.commentPropName){let s=KN(t);return this.indentate(n)+``+this.newLine}else{if(e[0]==="?")return this.indentate(n)+"<"+e+r+"?"+this.tagEndChar;{let s=this.options.tagValueProcessor(e,t);return s=this.replaceEntitiesValue(s),s===""?this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar:this.indentate(n)+"<"+e+r+">"+s+"0&&this.options.processEntities)for(let e=0;e${n.build(i)}`.replace(/\n/g,"")}o(ZN,"stringifyXML");async function r3(t,e={}){if(!t)throw new Error("Document is empty");let r=uhe.validate(t);if(r!==!0)throw r;let i=new rg(Zrt(e)).parse(t);if(i["?xml"]&&delete i["?xml"],!e.includeRoot)for(let s of Object.keys(i)){let a=i[s];return typeof a=="object"?Object.assign({},a):a}return i}o(r3,"parseXML");var eR=wc("storage-blob");var mhe=require("events");var phe=require("node:stream");var tR=class extends phe.Readable{static{o(this,"BuffersStream")}buffers;byteLength;byteOffsetInCurrentBuffer;bufferIndex;pushedBytesLength;constructor(e,r,n){super(n),this.buffers=e,this.byteLength=r,this.byteOffsetInCurrentBuffer=0,this.bufferIndex=0,this.pushedBytesLength=0;let i=0;for(let s of this.buffers)i+=s.byteLength;if(i=this.byteLength&&this.push(null),e||(e=this.readableHighWaterMark);let r=[],n=0;for(;ne-n){let c=this.byteOffsetInCurrentBuffer+e-n;r.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,c)),this.pushedBytesLength+=e-n,this.byteOffsetInCurrentBuffer=c,n=e;break}else{let c=this.byteOffsetInCurrentBuffer+a;r.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,c)),a===s?(this.byteOffsetInCurrentBuffer=0,this.bufferIndex++):this.byteOffsetInCurrentBuffer=c,this.pushedBytesLength+=a,n+=a}}r.length>1?this.push(Buffer.concat(r)):r.length===1&&this.push(r[0])}};var Ahe=T(require("node:buffer"),1);var rR=Ahe.default.constants.MAX_LENGTH,nR=class{static{o(this,"PooledBuffer")}buffers=[];capacity;_size;get size(){return this._size}constructor(e,r,n){this.capacity=e,this._size=0;let i=Math.ceil(e/rR);for(let s=0;s0&&(e[0]=e[0].slice(a))}getReadableStream(){return new tR(this.buffers,this.size)}};var iR=class{static{o(this,"BufferScheduler")}bufferSize;maxBuffers;readable;outgoingHandler;emitter=new mhe.EventEmitter;concurrency;offset=0;isStreamEnd=!1;isError=!1;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(e,r,n,i,s,a){if(r<=0)throw new RangeError(`bufferSize must be larger than 0, current is ${r}`);if(n<=0)throw new RangeError(`maxBuffers must be larger than 0, current is ${n}`);if(s<=0)throw new RangeError(`concurrency must be larger than 0, current is ${s}`);this.bufferSize=r,this.maxBuffers=n,this.readable=e,this.outgoingHandler=i,this.concurrency=s,this.encoding=a}async do(){return new Promise((e,r)=>{this.readable.on("data",n=>{n=typeof n=="string"?Buffer.from(n,this.encoding):n,this.appendUnresolvedData(n),this.resolveData()||this.readable.pause()}),this.readable.on("error",n=>{this.emitter.emit("error",n)}),this.readable.on("end",()=>{this.isStreamEnd=!0,this.emitter.emit("checkEnd")}),this.emitter.on("error",n=>{this.isError=!0,this.readable.pause(),r(n)}),this.emitter.on("checkEnd",()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0)if(this.unresolvedLength>0&&this.unresolvedLengthn.getReadableStream(),n.size,this.offset).then(e).catch(r)}else{if(this.unresolvedLength>=this.bufferSize)return;e()}})})}appendUnresolvedData(e){this.unresolvedDataArray.push(e),this.unresolvedLength+=e.length}shiftBufferFromUnresolvedDataArray(e){return e?e.fill(this.unresolvedDataArray,this.unresolvedLength):e=new nR(this.bufferSize,this.unresolvedDataArray,this.unresolvedLength),this.unresolvedLength-=e.size,e}resolveData(){for(;this.unresolvedLength>=this.bufferSize;){let e;if(this.incoming.length>0)e=this.incoming.shift(),this.shiftBufferFromUnresolvedDataArray(e);else if(this.numBuffers=this.concurrency)return;e=this.outgoing.shift(),e&&this.triggerOutgoingHandler(e)}while(e)}async triggerOutgoingHandler(e){let r=e.size;this.executingOutgoingHandlers++,this.offset+=r;try{await this.outgoingHandler(()=>e.getReadableStream(),r,this.offset-r)}catch(n){this.emitter.emit("error",n);return}this.executingOutgoingHandlers--,this.reuseBuffer(e),this.emitter.emit("checkEnd")}reuseBuffer(e){this.incoming.push(e),!this.isError&&this.resolveData()&&!this.isStreamEnd&&this.readable.resume()}};var n3;function i3(){return n3||(n3=Kb()),n3}o(i3,"getCachedDefaultHttpClient");var vc=class{static{o(this,"BaseRequestPolicy")}_nextPolicy;_options;constructor(e,r){this._nextPolicy=e,this._options=r}shouldLog(e){return this._options.shouldLog(e)}log(e,r){this._options.log(e,r)}};var du={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}},qe={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};function Od(t,e,r){let n=new URL(t),i=encodeURIComponent(e),s=r?encodeURIComponent(r):void 0,a=n.search===""?"?":n.search,c=[];for(let l of a.slice(1).split("&"))if(l){let[u]=l.split("=",2);u!==i&&c.push(l)}return s&&c.push(`${i}=${s}`),n.search=c.length?`?${c.join("&")}`:"",n.toString()}o(Od,"setURLParameter");function sR(t,e){let r=new URL(t);return r.hostname=e,r.toString()}o(sR,"setURLHost");function oR(t){try{return new URL(t).pathname}catch{return}}o(oR,"getURLPath");function aR(t){let e=new URL(t).search;if(!e)return{};e=e.trim(),e=e.startsWith("?")?e.substring(1):e;let r=e.split("&");r=r.filter(i=>{let s=i.indexOf("="),a=i.lastIndexOf("=");return s>0&&s===a&&a{let s,a=o(()=>{s!==void 0&&clearTimeout(s),i(r)},"abortHandler");s=setTimeout(o(()=>{e!==void 0&&e.removeEventListener("abort",a),n()},"resolveHandler"),t),e!==void 0&&e.addEventListener("abort",a)})}o(cR,"delay");var d0=class extends vc{static{o(this,"StorageBrowserPolicy")}constructor(e,r){super(e,r)}async sendRequest(e){return Qt?this._nextPolicy.sendRequest(e):((e.method.toUpperCase()==="GET"||e.method.toUpperCase()==="HEAD")&&(e.url=Od(e.url,du.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),e.headers.remove(qe.COOKIE),e.headers.remove(qe.CONTENT_LENGTH),this._nextPolicy.sendRequest(e))}};var f0=class{static{o(this,"StorageBrowserPolicyFactory")}create(e,r){return new d0(e,r)}};var qh=class extends vc{static{o(this,"CredentialPolicy")}sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}};var h0=class extends qh{static{o(this,"AnonymousCredentialPolicy")}constructor(e,r){super(e,r)}};var Gh=class{static{o(this,"Credential")}create(e,r){throw new Error("Method should be implemented in children classes.")}};var dr=class extends Gh{static{o(this,"AnonymousCredential")}create(e,r){return new h0(e,r)}};var ghe=require("node:crypto");var ent=new Uint32Array([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,1820,0,1823,1825,1827,1829,0,0,0,1837,2051,0,0,1843,0,3331,3354,3356,3358,3360,3362,3364,3366,3368,3370,0,0,0,0,0,0,0,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,0,0,1859,1860,1864,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,1868,0,1872,0]),tnt=new Uint32Array([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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,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]),rnt=new Uint32Array([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,32786,0,0,0,0,0,33298,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,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]);function lR(t,e){return nnt(t,e)?-1:1}o(lR,"compareHeader");function nnt(t,e){let r=[ent,tnt,rnt],n=0,i=0,s=0;for(;ns;let a=i0&&e.headers.set(qe.CONTENT_LENGTH,Buffer.byteLength(e.body));let r=[e.method.toUpperCase(),this.getHeaderValueToSign(e,qe.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,qe.CONTENT_ENCODING),this.getHeaderValueToSign(e,qe.CONTENT_LENGTH),this.getHeaderValueToSign(e,qe.CONTENT_MD5),this.getHeaderValueToSign(e,qe.CONTENT_TYPE),this.getHeaderValueToSign(e,qe.DATE),this.getHeaderValueToSign(e,qe.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,qe.IF_MATCH),this.getHeaderValueToSign(e,qe.IF_NONE_MATCH),this.getHeaderValueToSign(e,qe.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,qe.RANGE)].join(` +`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}o(ls,"Builder");function Krt(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let i=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(i)return i}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}o(Krt,"detectXmlVersionFromObj");function t3(t,e,r,n,i){return!r.sanitizeName||Uh(t,{xmlVersion:i})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(t3,"resolveTagName");ls.prototype.build=function(t){if(this.options.preserveOrder)return Xq(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new xc,r=Krt(t,this.options);return this.j2x(t,0,e,r).val}};ls.prototype.j2x=function(t,e,r,n){let i="",s="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let a=this.options.jPath?r.toString():r,c=this.checkStopNode(r);for(let l in t){if(!Object.prototype.hasOwnProperty.call(t,l))continue;let d=l===this.options.textNodeName||l===this.options.cdataPropName||l===this.options.commentPropName||this.options.attributesGroupName&&l===this.options.attributesGroupName||this.isAttribute(l)||l[0]==="?"?l:t3(l,!1,this.options,r,n);if(typeof t[l]>"u")this.isAttribute(l)&&(s+="");else if(t[l]===null)this.isAttribute(l)||d===this.options.cdataPropName||d===this.options.commentPropName?s+="":d[0]==="?"?s+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(t[l]instanceof Date)s+=this.buildTextValNode(t[l],d,"",e,r);else if(typeof t[l]!="object"){let f=this.isAttribute(l);if(f&&!this.ignoreAttributesFn(f,a)){let h=t3(f,!0,this.options,r,n);i+=this.buildAttrPairStr(h,""+t[l],c)}else if(!f)if(l===this.options.textNodeName){let h=this.options.tagValueProcessor(l,""+t[l]);s+=this.replaceEntitiesValue(h)}else{r.push(d);let h=this.checkStopNode(r);if(r.pop(),h){let p=""+t[l];p===""?s+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:s+=this.indentate(e)+"<"+d+">"+p+""u"))if(A===null)d[0]==="?"?s+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(typeof A=="object")if(this.options.oneListGroup){r.push(d);let E=this.j2x(A,e+1,r,n);r.pop(),h+=E.val,this.options.attributesGroupName&&A.hasOwnProperty(this.options.attributesGroupName)&&(p+=E.attrStr)}else h+=this.processTextOrObjNode(A,d,e,r,n);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(d,A);E=this.replaceEntitiesValue(E),h+=E}else{r.push(d);let E=this.checkStopNode(r);if(r.pop(),E){let y=""+A;y===""?h+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:h+=this.indentate(e)+"<"+d+">"+y+"${i}`;else if(typeof i=="object"&&i!==null){let s=this.buildRawContent(i),a=this.buildAttributesForStopNode(i);s===""?e+=`<${r}${a}/>`:e+=`<${r}${a}>${s}`}}else if(typeof n=="object"&&n!==null){let i=this.buildRawContent(n),s=this.buildAttributesForStopNode(n);i===""?e+=`<${r}${s}/>`:e+=`<${r}${s}>${i}`}else e+=`<${r}>${n}`}return e};ls.prototype.buildAttributesForStopNode=function(t){if(!t||typeof t!="object")return"";let e="";if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let r=t[this.options.attributesGroupName];for(let n in r){if(!Object.prototype.hasOwnProperty.call(r,n))continue;let i=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n,s=r[n];s===!0&&this.options.suppressBooleanAttributes?e+=" "+i:e+=" "+i+'="'+s+'"'}}else for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let n=this.isAttribute(r);if(n){let i=t[r];i===!0&&this.options.suppressBooleanAttributes?e+=" "+n:e+=" "+n+'="'+i+'"'}}return e};ls.prototype.buildObjectNode=function(t,e,r,n){if(t==="")return e[0]==="?"?this.indentate(n)+"<"+e+r+"?"+this.tagEndChar:this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar;if(e[0]==="?")return this.indentate(n)+"<"+e+r+"?"+this.tagEndChar;{let i=""+t+i:this.options.commentPropName!==!1&&e===this.options.commentPropName&&s.length===0?this.indentate(n)+``+this.newLine:this.indentate(n)+"<"+e+r+s+this.tagEndChar+t+this.indentate(n)+i}};ls.prototype.closeTag=function(t){let e="";return this.options.unpairedTags.indexOf(t)!==-1?this.options.suppressUnpairedNode||(e="/"):this.options.suppressEmptyNode?e="/":e=`>`+this.newLine}else if(this.options.commentPropName!==!1&&e===this.options.commentPropName){let s=XN(t);return this.indentate(n)+``+this.newLine}else{if(e[0]==="?")return this.indentate(n)+"<"+e+r+"?"+this.tagEndChar;{let s=this.options.tagValueProcessor(e,t);return s=this.replaceEntitiesValue(s),s===""?this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar:this.indentate(n)+"<"+e+r+">"+s+"0&&this.options.processEntities)for(let e=0;e${n.build(i)}`.replace(/\n/g,"")}o(e_,"stringifyXML");async function n3(t,e={}){if(!t)throw new Error("Document is empty");let r=dhe.validate(t);if(r!==!0)throw r;let i=new ng(rnt(e)).parse(t);if(i["?xml"]&&delete i["?xml"],!e.includeRoot)for(let s of Object.keys(i)){let a=i[s];return typeof a=="object"?Object.assign({},a):a}return i}o(n3,"parseXML");var t_=wc("storage-blob");var ghe=require("events");var Ahe=require("node:stream");var r_=class extends Ahe.Readable{static{o(this,"BuffersStream")}buffers;byteLength;byteOffsetInCurrentBuffer;bufferIndex;pushedBytesLength;constructor(e,r,n){super(n),this.buffers=e,this.byteLength=r,this.byteOffsetInCurrentBuffer=0,this.bufferIndex=0,this.pushedBytesLength=0;let i=0;for(let s of this.buffers)i+=s.byteLength;if(i=this.byteLength&&this.push(null),e||(e=this.readableHighWaterMark);let r=[],n=0;for(;ne-n){let c=this.byteOffsetInCurrentBuffer+e-n;r.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,c)),this.pushedBytesLength+=e-n,this.byteOffsetInCurrentBuffer=c,n=e;break}else{let c=this.byteOffsetInCurrentBuffer+a;r.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,c)),a===s?(this.byteOffsetInCurrentBuffer=0,this.bufferIndex++):this.byteOffsetInCurrentBuffer=c,this.pushedBytesLength+=a,n+=a}}r.length>1?this.push(Buffer.concat(r)):r.length===1&&this.push(r[0])}};var mhe=T(require("node:buffer"),1);var n_=mhe.default.constants.MAX_LENGTH,i_=class{static{o(this,"PooledBuffer")}buffers=[];capacity;_size;get size(){return this._size}constructor(e,r,n){this.capacity=e,this._size=0;let i=Math.ceil(e/n_);for(let s=0;s0&&(e[0]=e[0].slice(a))}getReadableStream(){return new r_(this.buffers,this.size)}};var s_=class{static{o(this,"BufferScheduler")}bufferSize;maxBuffers;readable;outgoingHandler;emitter=new ghe.EventEmitter;concurrency;offset=0;isStreamEnd=!1;isError=!1;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(e,r,n,i,s,a){if(r<=0)throw new RangeError(`bufferSize must be larger than 0, current is ${r}`);if(n<=0)throw new RangeError(`maxBuffers must be larger than 0, current is ${n}`);if(s<=0)throw new RangeError(`concurrency must be larger than 0, current is ${s}`);this.bufferSize=r,this.maxBuffers=n,this.readable=e,this.outgoingHandler=i,this.concurrency=s,this.encoding=a}async do(){return new Promise((e,r)=>{this.readable.on("data",n=>{n=typeof n=="string"?Buffer.from(n,this.encoding):n,this.appendUnresolvedData(n),this.resolveData()||this.readable.pause()}),this.readable.on("error",n=>{this.emitter.emit("error",n)}),this.readable.on("end",()=>{this.isStreamEnd=!0,this.emitter.emit("checkEnd")}),this.emitter.on("error",n=>{this.isError=!0,this.readable.pause(),r(n)}),this.emitter.on("checkEnd",()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0)if(this.unresolvedLength>0&&this.unresolvedLengthn.getReadableStream(),n.size,this.offset).then(e).catch(r)}else{if(this.unresolvedLength>=this.bufferSize)return;e()}})})}appendUnresolvedData(e){this.unresolvedDataArray.push(e),this.unresolvedLength+=e.length}shiftBufferFromUnresolvedDataArray(e){return e?e.fill(this.unresolvedDataArray,this.unresolvedLength):e=new i_(this.bufferSize,this.unresolvedDataArray,this.unresolvedLength),this.unresolvedLength-=e.size,e}resolveData(){for(;this.unresolvedLength>=this.bufferSize;){let e;if(this.incoming.length>0)e=this.incoming.shift(),this.shiftBufferFromUnresolvedDataArray(e);else if(this.numBuffers=this.concurrency)return;e=this.outgoing.shift(),e&&this.triggerOutgoingHandler(e)}while(e)}async triggerOutgoingHandler(e){let r=e.size;this.executingOutgoingHandlers++,this.offset+=r;try{await this.outgoingHandler(()=>e.getReadableStream(),r,this.offset-r)}catch(n){this.emitter.emit("error",n);return}this.executingOutgoingHandlers--,this.reuseBuffer(e),this.emitter.emit("checkEnd")}reuseBuffer(e){this.incoming.push(e),!this.isError&&this.resolveData()&&!this.isStreamEnd&&this.readable.resume()}};var i3;function s3(){return i3||(i3=Xb()),i3}o(s3,"getCachedDefaultHttpClient");var vc=class{static{o(this,"BaseRequestPolicy")}_nextPolicy;_options;constructor(e,r){this._nextPolicy=e,this._options=r}shouldLog(e){return this._options.shouldLog(e)}log(e,r){this._options.log(e,r)}};var fu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}},qe={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};function Ld(t,e,r){let n=new URL(t),i=encodeURIComponent(e),s=r?encodeURIComponent(r):void 0,a=n.search===""?"?":n.search,c=[];for(let l of a.slice(1).split("&"))if(l){let[u]=l.split("=",2);u!==i&&c.push(l)}return s&&c.push(`${i}=${s}`),n.search=c.length?`?${c.join("&")}`:"",n.toString()}o(Ld,"setURLParameter");function o_(t,e){let r=new URL(t);return r.hostname=e,r.toString()}o(o_,"setURLHost");function a_(t){try{return new URL(t).pathname}catch{return}}o(a_,"getURLPath");function c_(t){let e=new URL(t).search;if(!e)return{};e=e.trim(),e=e.startsWith("?")?e.substring(1):e;let r=e.split("&");r=r.filter(i=>{let s=i.indexOf("="),a=i.lastIndexOf("=");return s>0&&s===a&&a{let s,a=o(()=>{s!==void 0&&clearTimeout(s),i(r)},"abortHandler");s=setTimeout(o(()=>{e!==void 0&&e.removeEventListener("abort",a),n()},"resolveHandler"),t),e!==void 0&&e.addEventListener("abort",a)})}o(l_,"delay");var f0=class extends vc{static{o(this,"StorageBrowserPolicy")}constructor(e,r){super(e,r)}async sendRequest(e){return Qt?this._nextPolicy.sendRequest(e):((e.method.toUpperCase()==="GET"||e.method.toUpperCase()==="HEAD")&&(e.url=Ld(e.url,fu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),e.headers.remove(qe.COOKIE),e.headers.remove(qe.CONTENT_LENGTH),this._nextPolicy.sendRequest(e))}};var h0=class{static{o(this,"StorageBrowserPolicyFactory")}create(e,r){return new f0(e,r)}};var Gh=class extends vc{static{o(this,"CredentialPolicy")}sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}};var p0=class extends Gh{static{o(this,"AnonymousCredentialPolicy")}constructor(e,r){super(e,r)}};var Hh=class{static{o(this,"Credential")}create(e,r){throw new Error("Method should be implemented in children classes.")}};var dr=class extends Hh{static{o(this,"AnonymousCredential")}create(e,r){return new p0(e,r)}};var yhe=require("node:crypto");var nnt=new Uint32Array([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,1820,0,1823,1825,1827,1829,0,0,0,1837,2051,0,0,1843,0,3331,3354,3356,3358,3360,3362,3364,3366,3368,3370,0,0,0,0,0,0,0,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,0,0,1859,1860,1864,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,1868,0,1872,0]),int=new Uint32Array([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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,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]),snt=new Uint32Array([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,32786,0,0,0,0,0,33298,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,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]);function u_(t,e){return ont(t,e)?-1:1}o(u_,"compareHeader");function ont(t,e){let r=[nnt,int,snt],n=0,i=0,s=0;for(;ns;let a=i0&&e.headers.set(qe.CONTENT_LENGTH,Buffer.byteLength(e.body));let r=[e.method.toUpperCase(),this.getHeaderValueToSign(e,qe.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,qe.CONTENT_ENCODING),this.getHeaderValueToSign(e,qe.CONTENT_LENGTH),this.getHeaderValueToSign(e,qe.CONTENT_MD5),this.getHeaderValueToSign(e,qe.CONTENT_TYPE),this.getHeaderValueToSign(e,qe.DATE),this.getHeaderValueToSign(e,qe.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,qe.IF_MATCH),this.getHeaderValueToSign(e,qe.IF_NONE_MATCH),this.getHeaderValueToSign(e,qe.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,qe.RANGE)].join(` `)+` -`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(qe.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===qe.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(i=>i.name.toLowerCase().startsWith(qe.PREFIX_FOR_STORAGE));r.sort((i,s)=>lR(i.name.toLowerCase(),s.name.toLowerCase())),r=r.filter((i,s,a)=>!(s>0&&i.name.toLowerCase()===a[s-1].name.toLowerCase()));let n="";return r.forEach(i=>{n+=`${i.name.toLowerCase().trimRight()}:${i.value.trimLeft()} -`}),n}getCanonicalizedResourceString(e){let r=oR(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let i=aR(e.url),s={};if(i){let a=[];for(let c in i)if(Object.prototype.hasOwnProperty.call(i,c)){let l=c.toLowerCase();s[l]=i[c],a.push(l)}a.sort();for(let c of a)n+=` -${c}:${decodeURIComponent(s[c])}`}return n}};var xr=class extends Gh{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new p0(e,r,this)}computeHMACSHA256(e){return(0,ghe.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var fn=wc("storage-common");var Do;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Do||(Do={}));var Ld={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Do.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},int=new Vs("The operation was aborted."),A0=class extends vc{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=Ld){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Ld.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Ld.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Ld.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Ld.maxRetryDelayInMs):Ld.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Ld.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Ld.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let i=e.clone(),s=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;s||(i.url=sR(i.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(i.url=Od(i.url,du.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(fn.info(`RetryPolicy: =====> Try=${n} ${s?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(i),!this.shouldRetry(s,n,a))return a;r=r||!s&&a.status===404}catch(c){if(fn.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(s,n,a,c))throw c}return await this.delay(s,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,i){if(r>=this.retryOptions.maxTries)return fn.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let s=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(i){for(let a of s)if(i.name.toUpperCase().includes(a)||i.message.toUpperCase().includes(a)||i.code&&i.code.toString().toUpperCase()===a)return fn.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||i){let a=n?n.status:i?i.statusCode:0;if(!e&&a===404)return fn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return fn.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(qe.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return i?.code==="PARSE_ERROR"&&i?.message.startsWith('Error "Error: Unclosed root tag')?(fn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let i=0;if(e)switch(this.retryOptions.retryPolicyType){case Do.EXPONENTIAL:i=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Do.FIXED:i=this.retryOptions.retryDelayInMs;break}else i=Math.random()*1e3;return fn.info(`RetryPolicy: Delay for ${i}ms`),cR(i,n,int)}};var m0=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new A0(e,r,this.retryOptions)}};var snt="storageBrowserPolicy";function yhe(){return{name:snt,async sendRequest(t,e){return Qt||((t.method==="GET"||t.method==="HEAD")&&(t.url=Od(t.url,du.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(qe.COOKIE),t.headers.delete(qe.CONTENT_LENGTH)),e(t)}}}o(yhe,"storageBrowserPolicy");var ont="StorageCorrectContentLengthPolicy";function Ehe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(qe.CONTENT_LENGTH,Buffer.byteLength(e.body))}return o(t,"correctContentLength"),{name:ont,async sendRequest(e,r){return t(e),r(e)}}}o(Ehe,"storageCorrectContentLengthPolicy");var ant="storageRetryPolicy",ng={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Do.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},cnt=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],lnt=new Vs("The operation was aborted.");function Che(t={}){let e=t.retryPolicyType??ng.retryPolicyType,r=t.maxTries??ng.maxTries,n=t.retryDelayInMs??ng.retryDelayInMs,i=t.maxRetryDelayInMs??ng.maxRetryDelayInMs,s=t.secondaryHost??ng.secondaryHost,a=t.tryTimeoutInMs??ng.tryTimeoutInMs;function c({isPrimaryRetry:u,attempt:d,response:f,error:h}){if(d>=r)return fn.info(`RetryPolicy: Attempt(s) ${d} >= maxTries ${r}, no further try.`),!1;if(h){for(let p of cnt)if(h.name.toUpperCase().includes(p)||h.message.toUpperCase().includes(p)||h.code&&h.code.toString().toUpperCase()===p)return fn.info(`RetryPolicy: Network error ${p} found, will retry.`),!0;if(h?.code==="PARSE_ERROR"&&h?.message.startsWith('Error "Error: Unclosed root tag'))return fn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0}if(f||h){let p=f?.status??h?.statusCode??0;if(!u&&p===404)return fn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(p===503||p===500)return fn.info(`RetryPolicy: Will retry for status code ${p}.`),!0}if(f&&f?.status>=400){let p=f.headers.get(qe.X_MS_CopySourceErrorCode);if(p!==void 0)switch(p){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return!1}o(c,"shouldRetry");function l(u,d){let f=0;if(u)switch(e){case Do.EXPONENTIAL:f=Math.min((Math.pow(2,d-1)-1)*n,i);break;case Do.FIXED:f=n;break}else f=Math.random()*1e3;return fn.info(`RetryPolicy: Delay for ${f}ms`),f}return o(l,"calculateDelay"),{name:ant,async sendRequest(u,d){a&&(u.url=Od(u.url,du.Parameters.TIMEOUT,String(Math.floor(a/1e3))));let f=u.url,h=s?sR(u.url,s):void 0,p=!1,m=1,A=!0,E,y;for(;A;){let C=p||!h||!["GET","HEAD","OPTIONS"].includes(u.method)||m%2===1;u.url=C?f:h,E=void 0,y=void 0;try{fn.info(`RetryPolicy: =====> Try=${m} ${C?"Primary":"Secondary"}`),E=await d(u),p=p||!C&&E.status===404}catch(w){if(Oh(w))fn.error(`RetryPolicy: Caught error, message: ${w.message}, code: ${w.code}`),y=w;else throw fn.error(`RetryPolicy: Caught error, message: ${Td(w)}`),w}A=c({isPrimaryRetry:C,attempt:m,response:E,error:y}),A&&await cR(l(C,m),u.abortSignal,lnt),m++}if(E)return E;throw y??new cu("RetryPolicy failed without known error.")}}}o(Che,"storageRetryPolicy");var bhe=require("node:crypto");var unt="storageSharedKeyCredentialPolicy";function s3(t){function e(s){s.headers.set(qe.X_MS_DATE,new Date().toUTCString()),s.body&&(typeof s.body=="string"||Buffer.isBuffer(s.body))&&s.body.length>0&&s.headers.set(qe.CONTENT_LENGTH,Buffer.byteLength(s.body));let a=[s.method.toUpperCase(),r(s,qe.CONTENT_LANGUAGE),r(s,qe.CONTENT_ENCODING),r(s,qe.CONTENT_LENGTH),r(s,qe.CONTENT_MD5),r(s,qe.CONTENT_TYPE),r(s,qe.DATE),r(s,qe.IF_MODIFIED_SINCE),r(s,qe.IF_MATCH),r(s,qe.IF_NONE_MATCH),r(s,qe.IF_UNMODIFIED_SINCE),r(s,qe.RANGE)].join(` +`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(qe.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===qe.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(i=>i.name.toLowerCase().startsWith(qe.PREFIX_FOR_STORAGE));r.sort((i,s)=>u_(i.name.toLowerCase(),s.name.toLowerCase())),r=r.filter((i,s,a)=>!(s>0&&i.name.toLowerCase()===a[s-1].name.toLowerCase()));let n="";return r.forEach(i=>{n+=`${i.name.toLowerCase().trimRight()}:${i.value.trimLeft()} +`}),n}getCanonicalizedResourceString(e){let r=a_(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let i=c_(e.url),s={};if(i){let a=[];for(let c in i)if(Object.prototype.hasOwnProperty.call(i,c)){let l=c.toLowerCase();s[l]=i[c],a.push(l)}a.sort();for(let c of a)n+=` +${c}:${decodeURIComponent(s[c])}`}return n}};var xr=class extends Hh{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new A0(e,r,this)}computeHMACSHA256(e){return(0,yhe.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var fn=wc("storage-common");var Do;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Do||(Do={}));var Fd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Do.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},ant=new Vs("The operation was aborted."),m0=class extends vc{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=Fd){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Fd.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Fd.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Fd.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Fd.maxRetryDelayInMs):Fd.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Fd.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Fd.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let i=e.clone(),s=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;s||(i.url=o_(i.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(i.url=Ld(i.url,fu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(fn.info(`RetryPolicy: =====> Try=${n} ${s?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(i),!this.shouldRetry(s,n,a))return a;r=r||!s&&a.status===404}catch(c){if(fn.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(s,n,a,c))throw c}return await this.delay(s,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,i){if(r>=this.retryOptions.maxTries)return fn.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let s=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(i){for(let a of s)if(i.name.toUpperCase().includes(a)||i.message.toUpperCase().includes(a)||i.code&&i.code.toString().toUpperCase()===a)return fn.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||i){let a=n?n.status:i?i.statusCode:0;if(!e&&a===404)return fn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return fn.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(qe.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return i?.code==="PARSE_ERROR"&&i?.message.startsWith('Error "Error: Unclosed root tag')?(fn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let i=0;if(e)switch(this.retryOptions.retryPolicyType){case Do.EXPONENTIAL:i=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Do.FIXED:i=this.retryOptions.retryDelayInMs;break}else i=Math.random()*1e3;return fn.info(`RetryPolicy: Delay for ${i}ms`),l_(i,n,ant)}};var g0=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new m0(e,r,this.retryOptions)}};var cnt="storageBrowserPolicy";function Ehe(){return{name:cnt,async sendRequest(t,e){return Qt||((t.method==="GET"||t.method==="HEAD")&&(t.url=Ld(t.url,fu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(qe.COOKIE),t.headers.delete(qe.CONTENT_LENGTH)),e(t)}}}o(Ehe,"storageBrowserPolicy");var lnt="StorageCorrectContentLengthPolicy";function Che(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(qe.CONTENT_LENGTH,Buffer.byteLength(e.body))}return o(t,"correctContentLength"),{name:lnt,async sendRequest(e,r){return t(e),r(e)}}}o(Che,"storageCorrectContentLengthPolicy");var unt="storageRetryPolicy",ig={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Do.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},dnt=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],fnt=new Vs("The operation was aborted.");function bhe(t={}){let e=t.retryPolicyType??ig.retryPolicyType,r=t.maxTries??ig.maxTries,n=t.retryDelayInMs??ig.retryDelayInMs,i=t.maxRetryDelayInMs??ig.maxRetryDelayInMs,s=t.secondaryHost??ig.secondaryHost,a=t.tryTimeoutInMs??ig.tryTimeoutInMs;function c({isPrimaryRetry:u,attempt:d,response:f,error:h}){if(d>=r)return fn.info(`RetryPolicy: Attempt(s) ${d} >= maxTries ${r}, no further try.`),!1;if(h){for(let p of dnt)if(h.name.toUpperCase().includes(p)||h.message.toUpperCase().includes(p)||h.code&&h.code.toString().toUpperCase()===p)return fn.info(`RetryPolicy: Network error ${p} found, will retry.`),!0;if(h?.code==="PARSE_ERROR"&&h?.message.startsWith('Error "Error: Unclosed root tag'))return fn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0}if(f||h){let p=f?.status??h?.statusCode??0;if(!u&&p===404)return fn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(p===503||p===500)return fn.info(`RetryPolicy: Will retry for status code ${p}.`),!0}if(f&&f?.status>=400){let p=f.headers.get(qe.X_MS_CopySourceErrorCode);if(p!==void 0)switch(p){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return!1}o(c,"shouldRetry");function l(u,d){let f=0;if(u)switch(e){case Do.EXPONENTIAL:f=Math.min((Math.pow(2,d-1)-1)*n,i);break;case Do.FIXED:f=n;break}else f=Math.random()*1e3;return fn.info(`RetryPolicy: Delay for ${f}ms`),f}return o(l,"calculateDelay"),{name:unt,async sendRequest(u,d){a&&(u.url=Ld(u.url,fu.Parameters.TIMEOUT,String(Math.floor(a/1e3))));let f=u.url,h=s?o_(u.url,s):void 0,p=!1,m=1,A=!0,E,y;for(;A;){let C=p||!h||!["GET","HEAD","OPTIONS"].includes(u.method)||m%2===1;u.url=C?f:h,E=void 0,y=void 0;try{fn.info(`RetryPolicy: =====> Try=${m} ${C?"Primary":"Secondary"}`),E=await d(u),p=p||!C&&E.status===404}catch(w){if(Lh(w))fn.error(`RetryPolicy: Caught error, message: ${w.message}, code: ${w.code}`),y=w;else throw fn.error(`RetryPolicy: Caught error, message: ${Dd(w)}`),w}A=c({isPrimaryRetry:C,attempt:m,response:E,error:y}),A&&await l_(l(C,m),u.abortSignal,fnt),m++}if(E)return E;throw y??new lu("RetryPolicy failed without known error.")}}}o(bhe,"storageRetryPolicy");var whe=require("node:crypto");var hnt="storageSharedKeyCredentialPolicy";function o3(t){function e(s){s.headers.set(qe.X_MS_DATE,new Date().toUTCString()),s.body&&(typeof s.body=="string"||Buffer.isBuffer(s.body))&&s.body.length>0&&s.headers.set(qe.CONTENT_LENGTH,Buffer.byteLength(s.body));let a=[s.method.toUpperCase(),r(s,qe.CONTENT_LANGUAGE),r(s,qe.CONTENT_ENCODING),r(s,qe.CONTENT_LENGTH),r(s,qe.CONTENT_MD5),r(s,qe.CONTENT_TYPE),r(s,qe.DATE),r(s,qe.IF_MODIFIED_SINCE),r(s,qe.IF_MATCH),r(s,qe.IF_NONE_MATCH),r(s,qe.IF_UNMODIFIED_SINCE),r(s,qe.RANGE)].join(` `)+` -`+n(s)+i(s),c=(0,bhe.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");s.headers.set(qe.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}o(e,"signRequest");function r(s,a){let c=s.headers.get(a);return!c||a===qe.CONTENT_LENGTH&&c==="0"?"":c}o(r,"getHeaderValueToSign");function n(s){let a=[];for(let[l,u]of s.headers)l.toLowerCase().startsWith(qe.PREFIX_FOR_STORAGE)&&a.push({name:l,value:u});a.sort((l,u)=>lR(l.name.toLowerCase(),u.name.toLowerCase())),a=a.filter((l,u,d)=>!(u>0&&l.name.toLowerCase()===d[u-1].name.toLowerCase()));let c="";return a.forEach(l=>{c+=`${l.name.toLowerCase().trimRight()}:${l.value.trimLeft()} -`}),c}o(n,"getCanonicalizedHeadersString");function i(s){let a=oR(s.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=aR(s.url),u={};if(l){let d=[];for(let f in l)if(Object.prototype.hasOwnProperty.call(l,f)){let h=f.toLowerCase();u[h]=l[f],d.push(h)}d.sort();for(let f of d)c+=` -${f}:${decodeURIComponent(u[f])}`}return c}return o(i,"getCanonicalizedResourceString"),{name:unt,async sendRequest(s,a){return e(s),a(s)}}}o(s3,"storageSharedKeyCredentialPolicy");var dnt="storageRequestFailureDetailsParserPolicy";function whe(){return{name:dnt,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information. -`),r}}}}o(whe,"storageRequestFailureDetailsParserPolicy");var Ihe=require("node:crypto");var uR=class{static{o(this,"UserDelegationKeyCredential")}accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,Ihe.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var dR="12.31.0",fR="2026-02-06";var hR="https://storage.azure.com/.default",fu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Ra="",o3="*",fnt=1*1024*1024;var hnt=4*fnt;var She="AES256",Bhe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",xhe=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],vhe=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],Nhe="BlobUsesCustomerSpecifiedEncryption",Rhe="BlobDoesNotUseCustomerSpecifiedEncryption",_he=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function hu(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}o(hu,"isPipelineLike");var g0=class{static{o(this,"Pipeline")}factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Gr(t,e={}){t||(t=new dr);let r=new g0([],e);return r._credential=t,r}o(Gr,"newPipeline");function pnt(t){let e=[Ant,The,mnt,gnt,ynt,Ent,bnt];if(t.factories.length){let r=t.factories.filter(n=>!e.some(i=>i(n)));if(r.length){let n=r.some(i=>Cnt(i));return{wrappedPolicies:Pq(r),afterRetry:n}}}}o(pnt,"processDownlevelPipeline");function a3(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?Oq(e):i3(),t._coreHttpClient=n);let i=t._corePipeline;if(!i){let s=`azsdk-js-azure-storage-blob/${dR}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${s}`:`${s}`;i=Zb({...r,loggingOptions:{additionalAllowedHeaderNames:xhe,additionalAllowedQueryParameters:vhe,logger:eR.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:ZN,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:r3,serializerOptions:{xml:{xmlCharKey:"#"}}}}),i.removePolicy({phase:"Retry"}),i.removePolicy({name:dq}),i.addPolicy(Ehe()),i.addPolicy(Che(r.retryOptions),{phase:"Retry"}),i.addPolicy(whe()),i.addPolicy(yhe());let c=pnt(t);c&&i.addPolicy(c.wrappedPolicies,c.afterRetry?{afterPhase:"Retry"}:void 0);let l=c3(t);$s(l)?i.addPolicy(Km({credential:l,scopes:r.audience??hR,challengeCallbacks:{authorizeRequestOnChallenge:GN}}),{phase:"Sign"}):l instanceof xr&&i.addPolicy(s3({accountName:l.accountName,accountKey:l.accountKey}),{phase:"Sign"}),t._corePipeline=i}return{...r,allowInsecureConnection:!0,httpClient:n,pipeline:i}}o(a3,"getCoreClientOptions");function c3(t){if(t._credential)return t._credential;let e=new dr;for(let r of t.factories)if($s(r.credential))e=r.credential;else if(The(r))return r;return e}o(c3,"getCredentialFromPipeline");function The(t){return t instanceof xr?!0:t.constructor.name==="StorageSharedKeyCredential"}o(The,"isStorageSharedKeyCredential");function Ant(t){return t instanceof dr?!0:t.constructor.name==="AnonymousCredential"}o(Ant,"isAnonymousCredential");function mnt(t){return $s(t.credential)}o(mnt,"isCoreHttpBearerTokenFactory");function gnt(t){return t instanceof f0?!0:t.constructor.name==="StorageBrowserPolicyFactory"}o(gnt,"isStorageBrowserPolicyFactory");function ynt(t){return t instanceof m0?!0:t.constructor.name==="StorageRetryPolicyFactory"}o(ynt,"isStorageRetryPolicyFactory");function Ent(t){return t.constructor.name==="TelemetryPolicyFactory"}o(Ent,"isStorageTelemetryPolicyFactory");function Cnt(t){return t.constructor.name==="InjectorPolicyFactory"}o(Cnt,"isInjectorPolicyFactory");function bnt(t){let e=["GenerateClientRequestIdPolicy","TracingPolicy","LogPolicy","ProxyPolicy","DisableResponseDecompressionPolicy","KeepAlivePolicy","DeserializationPolicy"],r={sendRequest:o(async a=>({request:a,headers:a.headers.clone(),status:500}),"sendRequest")},n={log(a,c){},shouldLog(a){return!1}},s=t.create(r,n).constructor.name;return e.some(a=>s.startsWith(a))}o(bnt,"isCoreHttpPolicyFactory");var Dhe;(function(t){t.AES256="AES256"})(Dhe||(Dhe={}));var Qhe;(function(t){t.Backup="backup"})(Qhe||(Qhe={}));var khe;(function(t){t.NeverExpire="NeverExpire",t.RelativeToCreation="RelativeToCreation",t.RelativeToNow="RelativeToNow",t.Absolute="Absolute"})(khe||(khe={}));var Phe;(function(t){t.AccountAlreadyExists="AccountAlreadyExists",t.AccountBeingCreated="AccountBeingCreated",t.AccountIsDisabled="AccountIsDisabled",t.AuthenticationFailed="AuthenticationFailed",t.AuthorizationFailure="AuthorizationFailure",t.ConditionHeadersNotSupported="ConditionHeadersNotSupported",t.ConditionNotMet="ConditionNotMet",t.EmptyMetadataKey="EmptyMetadataKey",t.InsufficientAccountPermissions="InsufficientAccountPermissions",t.InternalError="InternalError",t.InvalidAuthenticationInfo="InvalidAuthenticationInfo",t.InvalidHeaderValue="InvalidHeaderValue",t.InvalidHttpVerb="InvalidHttpVerb",t.InvalidInput="InvalidInput",t.InvalidMd5="InvalidMd5",t.InvalidMetadata="InvalidMetadata",t.InvalidQueryParameterValue="InvalidQueryParameterValue",t.InvalidRange="InvalidRange",t.InvalidResourceName="InvalidResourceName",t.InvalidUri="InvalidUri",t.InvalidXmlDocument="InvalidXmlDocument",t.InvalidXmlNodeValue="InvalidXmlNodeValue",t.Md5Mismatch="Md5Mismatch",t.MetadataTooLarge="MetadataTooLarge",t.MissingContentLengthHeader="MissingContentLengthHeader",t.MissingRequiredQueryParameter="MissingRequiredQueryParameter",t.MissingRequiredHeader="MissingRequiredHeader",t.MissingRequiredXmlNode="MissingRequiredXmlNode",t.MultipleConditionHeadersNotSupported="MultipleConditionHeadersNotSupported",t.OperationTimedOut="OperationTimedOut",t.OutOfRangeInput="OutOfRangeInput",t.OutOfRangeQueryParameterValue="OutOfRangeQueryParameterValue",t.RequestBodyTooLarge="RequestBodyTooLarge",t.ResourceTypeMismatch="ResourceTypeMismatch",t.RequestUrlFailedToParse="RequestUrlFailedToParse",t.ResourceAlreadyExists="ResourceAlreadyExists",t.ResourceNotFound="ResourceNotFound",t.ServerBusy="ServerBusy",t.UnsupportedHeader="UnsupportedHeader",t.UnsupportedXmlNode="UnsupportedXmlNode",t.UnsupportedQueryParameter="UnsupportedQueryParameter",t.UnsupportedHttpVerb="UnsupportedHttpVerb",t.AppendPositionConditionNotMet="AppendPositionConditionNotMet",t.BlobAlreadyExists="BlobAlreadyExists",t.BlobImmutableDueToPolicy="BlobImmutableDueToPolicy",t.BlobNotFound="BlobNotFound",t.BlobOverwritten="BlobOverwritten",t.BlobTierInadequateForContentLength="BlobTierInadequateForContentLength",t.BlobUsesCustomerSpecifiedEncryption="BlobUsesCustomerSpecifiedEncryption",t.BlockCountExceedsLimit="BlockCountExceedsLimit",t.BlockListTooLong="BlockListTooLong",t.CannotChangeToLowerTier="CannotChangeToLowerTier",t.CannotVerifyCopySource="CannotVerifyCopySource",t.ContainerAlreadyExists="ContainerAlreadyExists",t.ContainerBeingDeleted="ContainerBeingDeleted",t.ContainerDisabled="ContainerDisabled",t.ContainerNotFound="ContainerNotFound",t.ContentLengthLargerThanTierLimit="ContentLengthLargerThanTierLimit",t.CopyAcrossAccountsNotSupported="CopyAcrossAccountsNotSupported",t.CopyIdMismatch="CopyIdMismatch",t.FeatureVersionMismatch="FeatureVersionMismatch",t.IncrementalCopyBlobMismatch="IncrementalCopyBlobMismatch",t.IncrementalCopyOfEarlierVersionSnapshotNotAllowed="IncrementalCopyOfEarlierVersionSnapshotNotAllowed",t.IncrementalCopySourceMustBeSnapshot="IncrementalCopySourceMustBeSnapshot",t.InfiniteLeaseDurationRequired="InfiniteLeaseDurationRequired",t.InvalidBlobOrBlock="InvalidBlobOrBlock",t.InvalidBlobTier="InvalidBlobTier",t.InvalidBlobType="InvalidBlobType",t.InvalidBlockId="InvalidBlockId",t.InvalidBlockList="InvalidBlockList",t.InvalidOperation="InvalidOperation",t.InvalidPageRange="InvalidPageRange",t.InvalidSourceBlobType="InvalidSourceBlobType",t.InvalidSourceBlobUrl="InvalidSourceBlobUrl",t.InvalidVersionForPageBlobOperation="InvalidVersionForPageBlobOperation",t.LeaseAlreadyPresent="LeaseAlreadyPresent",t.LeaseAlreadyBroken="LeaseAlreadyBroken",t.LeaseIdMismatchWithBlobOperation="LeaseIdMismatchWithBlobOperation",t.LeaseIdMismatchWithContainerOperation="LeaseIdMismatchWithContainerOperation",t.LeaseIdMismatchWithLeaseOperation="LeaseIdMismatchWithLeaseOperation",t.LeaseIdMissing="LeaseIdMissing",t.LeaseIsBreakingAndCannotBeAcquired="LeaseIsBreakingAndCannotBeAcquired",t.LeaseIsBreakingAndCannotBeChanged="LeaseIsBreakingAndCannotBeChanged",t.LeaseIsBrokenAndCannotBeRenewed="LeaseIsBrokenAndCannotBeRenewed",t.LeaseLost="LeaseLost",t.LeaseNotPresentWithBlobOperation="LeaseNotPresentWithBlobOperation",t.LeaseNotPresentWithContainerOperation="LeaseNotPresentWithContainerOperation",t.LeaseNotPresentWithLeaseOperation="LeaseNotPresentWithLeaseOperation",t.MaxBlobSizeConditionNotMet="MaxBlobSizeConditionNotMet",t.NoAuthenticationInformation="NoAuthenticationInformation",t.NoPendingCopyOperation="NoPendingCopyOperation",t.OperationNotAllowedOnIncrementalCopyBlob="OperationNotAllowedOnIncrementalCopyBlob",t.PendingCopyOperation="PendingCopyOperation",t.PreviousSnapshotCannotBeNewer="PreviousSnapshotCannotBeNewer",t.PreviousSnapshotNotFound="PreviousSnapshotNotFound",t.PreviousSnapshotOperationNotSupported="PreviousSnapshotOperationNotSupported",t.SequenceNumberConditionNotMet="SequenceNumberConditionNotMet",t.SequenceNumberIncrementTooLarge="SequenceNumberIncrementTooLarge",t.SnapshotCountExceeded="SnapshotCountExceeded",t.SnapshotOperationRateExceeded="SnapshotOperationRateExceeded",t.SnapshotsPresent="SnapshotsPresent",t.SourceConditionNotMet="SourceConditionNotMet",t.SystemInUse="SystemInUse",t.TargetConditionNotMet="TargetConditionNotMet",t.UnauthorizedBlobOverwrite="UnauthorizedBlobOverwrite",t.BlobBeingRehydrated="BlobBeingRehydrated",t.BlobArchived="BlobArchived",t.BlobNotArchived="BlobNotArchived",t.AuthorizationSourceIPMismatch="AuthorizationSourceIPMismatch",t.AuthorizationProtocolMismatch="AuthorizationProtocolMismatch",t.AuthorizationPermissionMismatch="AuthorizationPermissionMismatch",t.AuthorizationServiceMismatch="AuthorizationServiceMismatch",t.AuthorizationResourceTypeMismatch="AuthorizationResourceTypeMismatch",t.BlobAccessTierNotSupportedForAccountType="BlobAccessTierNotSupportedForAccountType"})(Phe||(Phe={}));var Js={};TLe(Js,{AccessPolicy:()=>Qnt,AppendBlobAppendBlockExceptionHeaders:()=>NH,AppendBlobAppendBlockFromUrlExceptionHeaders:()=>_H,AppendBlobAppendBlockFromUrlHeaders:()=>RH,AppendBlobAppendBlockHeaders:()=>vH,AppendBlobCreateExceptionHeaders:()=>xH,AppendBlobCreateHeaders:()=>BH,AppendBlobSealExceptionHeaders:()=>DH,AppendBlobSealHeaders:()=>TH,ArrowConfiguration:()=>jnt,ArrowField:()=>Wnt,BlobAbortCopyFromURLExceptionHeaders:()=>XG,BlobAbortCopyFromURLHeaders:()=>KG,BlobAcquireLeaseExceptionHeaders:()=>OG,BlobAcquireLeaseHeaders:()=>PG,BlobBreakLeaseExceptionHeaders:()=>zG,BlobBreakLeaseHeaders:()=>HG,BlobChangeLeaseExceptionHeaders:()=>GG,BlobChangeLeaseHeaders:()=>qG,BlobCopyFromURLExceptionHeaders:()=>YG,BlobCopyFromURLHeaders:()=>JG,BlobCreateSnapshotExceptionHeaders:()=>$G,BlobCreateSnapshotHeaders:()=>VG,BlobDeleteExceptionHeaders:()=>CG,BlobDeleteHeaders:()=>EG,BlobDeleteImmutabilityPolicyExceptionHeaders:()=>_G,BlobDeleteImmutabilityPolicyHeaders:()=>RG,BlobDownloadExceptionHeaders:()=>mG,BlobDownloadHeaders:()=>AR,BlobFlatListSegment:()=>knt,BlobGetAccountInfoExceptionHeaders:()=>tH,BlobGetAccountInfoHeaders:()=>eH,BlobGetPropertiesExceptionHeaders:()=>yG,BlobGetPropertiesHeaders:()=>gG,BlobGetTagsExceptionHeaders:()=>iH,BlobGetTagsHeaders:()=>nH,BlobHierarchyListSegment:()=>Fnt,BlobItemInternal:()=>Pnt,BlobName:()=>Ont,BlobPrefix:()=>Mnt,BlobPropertiesInternal:()=>Lnt,BlobQueryExceptionHeaders:()=>rH,BlobQueryHeaders:()=>gR,BlobReleaseLeaseExceptionHeaders:()=>FG,BlobReleaseLeaseHeaders:()=>LG,BlobRenewLeaseExceptionHeaders:()=>UG,BlobRenewLeaseHeaders:()=>MG,BlobServiceProperties:()=>y0,BlobServiceStatistics:()=>l3,BlobSetExpiryExceptionHeaders:()=>SG,BlobSetExpiryHeaders:()=>IG,BlobSetHttpHeadersExceptionHeaders:()=>xG,BlobSetHttpHeadersHeaders:()=>BG,BlobSetImmutabilityPolicyExceptionHeaders:()=>NG,BlobSetImmutabilityPolicyHeaders:()=>vG,BlobSetLegalHoldExceptionHeaders:()=>DG,BlobSetLegalHoldHeaders:()=>TG,BlobSetMetadataExceptionHeaders:()=>kG,BlobSetMetadataHeaders:()=>QG,BlobSetTagsExceptionHeaders:()=>oH,BlobSetTagsHeaders:()=>sH,BlobSetTierExceptionHeaders:()=>ZG,BlobSetTierHeaders:()=>mR,BlobStartCopyFromURLExceptionHeaders:()=>WG,BlobStartCopyFromURLHeaders:()=>jG,BlobTag:()=>Tnt,BlobTags:()=>C0,BlobUndeleteExceptionHeaders:()=>wG,BlobUndeleteHeaders:()=>bG,Block:()=>Unt,BlockBlobCommitBlockListExceptionHeaders:()=>GH,BlockBlobCommitBlockListHeaders:()=>qH,BlockBlobGetBlockListExceptionHeaders:()=>zH,BlockBlobGetBlockListHeaders:()=>HH,BlockBlobPutBlobFromUrlExceptionHeaders:()=>OH,BlockBlobPutBlobFromUrlHeaders:()=>PH,BlockBlobStageBlockExceptionHeaders:()=>FH,BlockBlobStageBlockFromURLExceptionHeaders:()=>UH,BlockBlobStageBlockFromURLHeaders:()=>MH,BlockBlobStageBlockHeaders:()=>LH,BlockBlobUploadExceptionHeaders:()=>kH,BlockBlobUploadHeaders:()=>QH,BlockList:()=>m3,BlockLookupList:()=>A3,ClearRange:()=>Gnt,ContainerAcquireLeaseExceptionHeaders:()=>tG,ContainerAcquireLeaseHeaders:()=>eG,ContainerBreakLeaseExceptionHeaders:()=>aG,ContainerBreakLeaseHeaders:()=>oG,ContainerChangeLeaseExceptionHeaders:()=>lG,ContainerChangeLeaseHeaders:()=>cG,ContainerCreateExceptionHeaders:()=>P3,ContainerCreateHeaders:()=>k3,ContainerDeleteExceptionHeaders:()=>M3,ContainerDeleteHeaders:()=>F3,ContainerFilterBlobsExceptionHeaders:()=>Z3,ContainerFilterBlobsHeaders:()=>X3,ContainerGetAccessPolicyExceptionHeaders:()=>H3,ContainerGetAccessPolicyHeaders:()=>G3,ContainerGetAccountInfoExceptionHeaders:()=>AG,ContainerGetAccountInfoHeaders:()=>pG,ContainerGetPropertiesExceptionHeaders:()=>L3,ContainerGetPropertiesHeaders:()=>O3,ContainerItem:()=>Nnt,ContainerListBlobFlatSegmentExceptionHeaders:()=>dG,ContainerListBlobFlatSegmentHeaders:()=>uG,ContainerListBlobHierarchySegmentExceptionHeaders:()=>hG,ContainerListBlobHierarchySegmentHeaders:()=>fG,ContainerProperties:()=>Rnt,ContainerReleaseLeaseExceptionHeaders:()=>nG,ContainerReleaseLeaseHeaders:()=>rG,ContainerRenameExceptionHeaders:()=>J3,ContainerRenameHeaders:()=>W3,ContainerRenewLeaseExceptionHeaders:()=>sG,ContainerRenewLeaseHeaders:()=>iG,ContainerRestoreExceptionHeaders:()=>j3,ContainerRestoreHeaders:()=>$3,ContainerSetAccessPolicyExceptionHeaders:()=>V3,ContainerSetAccessPolicyHeaders:()=>z3,ContainerSetMetadataExceptionHeaders:()=>q3,ContainerSetMetadataHeaders:()=>U3,ContainerSubmitBatchExceptionHeaders:()=>K3,ContainerSubmitBatchHeaders:()=>Y3,CorsRule:()=>Bnt,DelimitedTextConfiguration:()=>Vnt,FilterBlobItem:()=>_nt,FilterBlobSegment:()=>E0,GeoReplication:()=>vnt,JsonTextConfiguration:()=>$nt,KeyInfo:()=>d3,ListBlobsFlatSegmentResponse:()=>h3,ListBlobsHierarchySegmentResponse:()=>p3,ListContainersSegmentResponse:()=>u3,Logging:()=>wnt,Metrics:()=>Snt,PageBlobClearPagesExceptionHeaders:()=>fH,PageBlobClearPagesHeaders:()=>dH,PageBlobCopyIncrementalExceptionHeaders:()=>SH,PageBlobCopyIncrementalHeaders:()=>IH,PageBlobCreateExceptionHeaders:()=>cH,PageBlobCreateHeaders:()=>aH,PageBlobGetPageRangesDiffExceptionHeaders:()=>yH,PageBlobGetPageRangesDiffHeaders:()=>gH,PageBlobGetPageRangesExceptionHeaders:()=>mH,PageBlobGetPageRangesHeaders:()=>AH,PageBlobResizeExceptionHeaders:()=>CH,PageBlobResizeHeaders:()=>EH,PageBlobUpdateSequenceNumberExceptionHeaders:()=>wH,PageBlobUpdateSequenceNumberHeaders:()=>bH,PageBlobUploadPagesExceptionHeaders:()=>uH,PageBlobUploadPagesFromURLExceptionHeaders:()=>pH,PageBlobUploadPagesFromURLHeaders:()=>hH,PageBlobUploadPagesHeaders:()=>lH,PageList:()=>pR,PageRange:()=>qnt,QueryFormat:()=>znt,QueryRequest:()=>g3,QuerySerialization:()=>Hnt,RetentionPolicy:()=>Int,ServiceFilterBlobsExceptionHeaders:()=>Q3,ServiceFilterBlobsHeaders:()=>D3,ServiceGetAccountInfoExceptionHeaders:()=>R3,ServiceGetAccountInfoHeaders:()=>N3,ServiceGetPropertiesExceptionHeaders:()=>b3,ServiceGetPropertiesHeaders:()=>C3,ServiceGetStatisticsExceptionHeaders:()=>I3,ServiceGetStatisticsHeaders:()=>w3,ServiceGetUserDelegationKeyExceptionHeaders:()=>v3,ServiceGetUserDelegationKeyHeaders:()=>x3,ServiceListContainersSegmentExceptionHeaders:()=>B3,ServiceListContainersSegmentHeaders:()=>S3,ServiceSetPropertiesExceptionHeaders:()=>E3,ServiceSetPropertiesHeaders:()=>y3,ServiceSubmitBatchExceptionHeaders:()=>T3,ServiceSubmitBatchHeaders:()=>_3,SignedIdentifier:()=>Dnt,StaticWebsite:()=>xnt,StorageError:()=>Z,UserDelegationKey:()=>f3});var y0={serializedName:"BlobServiceProperties",xmlName:"StorageServiceProperties",type:{name:"Composite",className:"BlobServiceProperties",modelProperties:{blobAnalyticsLogging:{serializedName:"Logging",xmlName:"Logging",type:{name:"Composite",className:"Logging"}},hourMetrics:{serializedName:"HourMetrics",xmlName:"HourMetrics",type:{name:"Composite",className:"Metrics"}},minuteMetrics:{serializedName:"MinuteMetrics",xmlName:"MinuteMetrics",type:{name:"Composite",className:"Metrics"}},cors:{serializedName:"Cors",xmlName:"Cors",xmlIsWrapped:!0,xmlElementName:"CorsRule",type:{name:"Sequence",element:{type:{name:"Composite",className:"CorsRule"}}}},defaultServiceVersion:{serializedName:"DefaultServiceVersion",xmlName:"DefaultServiceVersion",type:{name:"String"}},deleteRetentionPolicy:{serializedName:"DeleteRetentionPolicy",xmlName:"DeleteRetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}},staticWebsite:{serializedName:"StaticWebsite",xmlName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite"}}}}},wnt={serializedName:"Logging",type:{name:"Composite",className:"Logging",modelProperties:{version:{serializedName:"Version",required:!0,xmlName:"Version",type:{name:"String"}},deleteProperty:{serializedName:"Delete",required:!0,xmlName:"Delete",type:{name:"Boolean"}},read:{serializedName:"Read",required:!0,xmlName:"Read",type:{name:"Boolean"}},write:{serializedName:"Write",required:!0,xmlName:"Write",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}},Int={serializedName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy",modelProperties:{enabled:{serializedName:"Enabled",required:!0,xmlName:"Enabled",type:{name:"Boolean"}},days:{constraints:{InclusiveMinimum:1},serializedName:"Days",xmlName:"Days",type:{name:"Number"}}}}},Snt={serializedName:"Metrics",type:{name:"Composite",className:"Metrics",modelProperties:{version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},enabled:{serializedName:"Enabled",required:!0,xmlName:"Enabled",type:{name:"Boolean"}},includeAPIs:{serializedName:"IncludeAPIs",xmlName:"IncludeAPIs",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}},Bnt={serializedName:"CorsRule",type:{name:"Composite",className:"CorsRule",modelProperties:{allowedOrigins:{serializedName:"AllowedOrigins",required:!0,xmlName:"AllowedOrigins",type:{name:"String"}},allowedMethods:{serializedName:"AllowedMethods",required:!0,xmlName:"AllowedMethods",type:{name:"String"}},allowedHeaders:{serializedName:"AllowedHeaders",required:!0,xmlName:"AllowedHeaders",type:{name:"String"}},exposedHeaders:{serializedName:"ExposedHeaders",required:!0,xmlName:"ExposedHeaders",type:{name:"String"}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:"MaxAgeInSeconds",required:!0,xmlName:"MaxAgeInSeconds",type:{name:"Number"}}}}},xnt={serializedName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite",modelProperties:{enabled:{serializedName:"Enabled",required:!0,xmlName:"Enabled",type:{name:"Boolean"}},indexDocument:{serializedName:"IndexDocument",xmlName:"IndexDocument",type:{name:"String"}},errorDocument404Path:{serializedName:"ErrorDocument404Path",xmlName:"ErrorDocument404Path",type:{name:"String"}},defaultIndexDocumentPath:{serializedName:"DefaultIndexDocumentPath",xmlName:"DefaultIndexDocumentPath",type:{name:"String"}}}}},Z={serializedName:"StorageError",type:{name:"Composite",className:"StorageError",modelProperties:{message:{serializedName:"Message",xmlName:"Message",type:{name:"String"}},copySourceStatusCode:{serializedName:"CopySourceStatusCode",xmlName:"CopySourceStatusCode",type:{name:"Number"}},copySourceErrorCode:{serializedName:"CopySourceErrorCode",xmlName:"CopySourceErrorCode",type:{name:"String"}},copySourceErrorMessage:{serializedName:"CopySourceErrorMessage",xmlName:"CopySourceErrorMessage",type:{name:"String"}},code:{serializedName:"Code",xmlName:"Code",type:{name:"String"}},authenticationErrorDetail:{serializedName:"AuthenticationErrorDetail",xmlName:"AuthenticationErrorDetail",type:{name:"String"}}}}},l3={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}},vnt={serializedName:"GeoReplication",type:{name:"Composite",className:"GeoReplication",modelProperties:{status:{serializedName:"Status",required:!0,xmlName:"Status",type:{name:"Enum",allowedValues:["live","bootstrap","unavailable"]}},lastSyncOn:{serializedName:"LastSyncTime",required:!0,xmlName:"LastSyncTime",type:{name:"DateTimeRfc1123"}}}}},u3={serializedName:"ListContainersSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListContainersSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:!0,xmlName:"ServiceEndpoint",xmlIsAttribute:!0,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},containerItems:{serializedName:"ContainerItems",required:!0,xmlName:"Containers",xmlIsWrapped:!0,xmlElementName:"Container",type:{name:"Sequence",element:{type:{name:"Composite",className:"ContainerItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},Nnt={serializedName:"ContainerItem",xmlName:"Container",type:{name:"Composite",className:"ContainerItem",modelProperties:{name:{serializedName:"Name",required:!0,xmlName:"Name",type:{name:"String"}},deleted:{serializedName:"Deleted",xmlName:"Deleted",type:{name:"Boolean"}},version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"ContainerProperties"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}},Rnt={serializedName:"ContainerProperties",type:{name:"Composite",className:"ContainerProperties",modelProperties:{lastModified:{serializedName:"Last-Modified",required:!0,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:!0,xmlName:"Etag",type:{name:"String"}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},publicAccess:{serializedName:"PublicAccess",xmlName:"PublicAccess",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"HasImmutabilityPolicy",xmlName:"HasImmutabilityPolicy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"HasLegalHold",xmlName:"HasLegalHold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"DefaultEncryptionScope",xmlName:"DefaultEncryptionScope",type:{name:"String"}},preventEncryptionScopeOverride:{serializedName:"DenyEncryptionScopeOverride",xmlName:"DenyEncryptionScopeOverride",type:{name:"Boolean"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},isImmutableStorageWithVersioningEnabled:{serializedName:"ImmutableStorageWithVersioningEnabled",xmlName:"ImmutableStorageWithVersioningEnabled",type:{name:"Boolean"}}}}},d3={serializedName:"KeyInfo",type:{name:"Composite",className:"KeyInfo",modelProperties:{startsOn:{serializedName:"Start",required:!0,xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",required:!0,xmlName:"Expiry",type:{name:"String"}}}}},f3={serializedName:"UserDelegationKey",type:{name:"Composite",className:"UserDelegationKey",modelProperties:{signedObjectId:{serializedName:"SignedOid",required:!0,xmlName:"SignedOid",type:{name:"String"}},signedTenantId:{serializedName:"SignedTid",required:!0,xmlName:"SignedTid",type:{name:"String"}},signedStartsOn:{serializedName:"SignedStart",required:!0,xmlName:"SignedStart",type:{name:"String"}},signedExpiresOn:{serializedName:"SignedExpiry",required:!0,xmlName:"SignedExpiry",type:{name:"String"}},signedService:{serializedName:"SignedService",required:!0,xmlName:"SignedService",type:{name:"String"}},signedVersion:{serializedName:"SignedVersion",required:!0,xmlName:"SignedVersion",type:{name:"String"}},value:{serializedName:"Value",required:!0,xmlName:"Value",type:{name:"String"}}}}},E0={serializedName:"FilterBlobSegment",xmlName:"EnumerationResults",type:{name:"Composite",className:"FilterBlobSegment",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:!0,xmlName:"ServiceEndpoint",xmlIsAttribute:!0,type:{name:"String"}},where:{serializedName:"Where",required:!0,xmlName:"Where",type:{name:"String"}},blobs:{serializedName:"Blobs",required:!0,xmlName:"Blobs",xmlIsWrapped:!0,xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"FilterBlobItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},_nt={serializedName:"FilterBlobItem",xmlName:"Blob",type:{name:"Composite",className:"FilterBlobItem",modelProperties:{name:{serializedName:"Name",required:!0,xmlName:"Name",type:{name:"String"}},containerName:{serializedName:"ContainerName",required:!0,xmlName:"ContainerName",type:{name:"String"}},tags:{serializedName:"Tags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}}}}},C0={serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags",modelProperties:{blobTagSet:{serializedName:"BlobTagSet",required:!0,xmlName:"TagSet",xmlIsWrapped:!0,xmlElementName:"Tag",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobTag"}}}}}}},Tnt={serializedName:"BlobTag",xmlName:"Tag",type:{name:"Composite",className:"BlobTag",modelProperties:{key:{serializedName:"Key",required:!0,xmlName:"Key",type:{name:"String"}},value:{serializedName:"Value",required:!0,xmlName:"Value",type:{name:"String"}}}}},Dnt={serializedName:"SignedIdentifier",xmlName:"SignedIdentifier",type:{name:"Composite",className:"SignedIdentifier",modelProperties:{id:{serializedName:"Id",required:!0,xmlName:"Id",type:{name:"String"}},accessPolicy:{serializedName:"AccessPolicy",xmlName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy"}}}}},Qnt={serializedName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy",modelProperties:{startsOn:{serializedName:"Start",xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",xmlName:"Expiry",type:{name:"String"}},permissions:{serializedName:"Permission",xmlName:"Permission",type:{name:"String"}}}}},h3={serializedName:"ListBlobsFlatSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsFlatSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:!0,xmlName:"ServiceEndpoint",xmlIsAttribute:!0,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:!0,xmlName:"ContainerName",xmlIsAttribute:!0,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},knt={serializedName:"BlobFlatListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment",modelProperties:{blobItems:{serializedName:"BlobItems",required:!0,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}},Pnt={serializedName:"BlobItemInternal",xmlName:"Blob",type:{name:"Composite",className:"BlobItemInternal",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}},deleted:{serializedName:"Deleted",required:!0,xmlName:"Deleted",type:{name:"Boolean"}},snapshot:{serializedName:"Snapshot",required:!0,xmlName:"Snapshot",type:{name:"String"}},versionId:{serializedName:"VersionId",xmlName:"VersionId",type:{name:"String"}},isCurrentVersion:{serializedName:"IsCurrentVersion",xmlName:"IsCurrentVersion",type:{name:"Boolean"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobTags:{serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}},objectReplicationMetadata:{serializedName:"ObjectReplicationMetadata",xmlName:"OrMetadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},hasVersionsOnly:{serializedName:"HasVersionsOnly",xmlName:"HasVersionsOnly",type:{name:"Boolean"}}}}},Ont={serializedName:"BlobName",type:{name:"Composite",className:"BlobName",modelProperties:{encoded:{serializedName:"Encoded",xmlName:"Encoded",xmlIsAttribute:!0,type:{name:"Boolean"}},content:{serializedName:"content",xmlName:"content",xmlIsMsText:!0,type:{name:"String"}}}}},Lnt={serializedName:"BlobPropertiesInternal",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal",modelProperties:{createdOn:{serializedName:"Creation-Time",xmlName:"Creation-Time",type:{name:"DateTimeRfc1123"}},lastModified:{serializedName:"Last-Modified",required:!0,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:!0,xmlName:"Etag",type:{name:"String"}},contentLength:{serializedName:"Content-Length",xmlName:"Content-Length",type:{name:"Number"}},contentType:{serializedName:"Content-Type",xmlName:"Content-Type",type:{name:"String"}},contentEncoding:{serializedName:"Content-Encoding",xmlName:"Content-Encoding",type:{name:"String"}},contentLanguage:{serializedName:"Content-Language",xmlName:"Content-Language",type:{name:"String"}},contentMD5:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}},contentDisposition:{serializedName:"Content-Disposition",xmlName:"Content-Disposition",type:{name:"String"}},cacheControl:{serializedName:"Cache-Control",xmlName:"Cache-Control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"BlobType",xmlName:"BlobType",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},copyId:{serializedName:"CopyId",xmlName:"CopyId",type:{name:"String"}},copyStatus:{serializedName:"CopyStatus",xmlName:"CopyStatus",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},copySource:{serializedName:"CopySource",xmlName:"CopySource",type:{name:"String"}},copyProgress:{serializedName:"CopyProgress",xmlName:"CopyProgress",type:{name:"String"}},copyCompletedOn:{serializedName:"CopyCompletionTime",xmlName:"CopyCompletionTime",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"CopyStatusDescription",xmlName:"CopyStatusDescription",type:{name:"String"}},serverEncrypted:{serializedName:"ServerEncrypted",xmlName:"ServerEncrypted",type:{name:"Boolean"}},incrementalCopy:{serializedName:"IncrementalCopy",xmlName:"IncrementalCopy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"DestinationSnapshot",xmlName:"DestinationSnapshot",type:{name:"String"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},accessTier:{serializedName:"AccessTier",xmlName:"AccessTier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}},accessTierInferred:{serializedName:"AccessTierInferred",xmlName:"AccessTierInferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"ArchiveStatus",xmlName:"ArchiveStatus",type:{name:"Enum",allowedValues:["rehydrate-pending-to-hot","rehydrate-pending-to-cool","rehydrate-pending-to-cold"]}},customerProvidedKeySha256:{serializedName:"CustomerProvidedKeySha256",xmlName:"CustomerProvidedKeySha256",type:{name:"String"}},encryptionScope:{serializedName:"EncryptionScope",xmlName:"EncryptionScope",type:{name:"String"}},accessTierChangedOn:{serializedName:"AccessTierChangeTime",xmlName:"AccessTierChangeTime",type:{name:"DateTimeRfc1123"}},tagCount:{serializedName:"TagCount",xmlName:"TagCount",type:{name:"Number"}},expiresOn:{serializedName:"Expiry-Time",xmlName:"Expiry-Time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"Sealed",xmlName:"Sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"RehydratePriority",xmlName:"RehydratePriority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessedOn:{serializedName:"LastAccessTime",xmlName:"LastAccessTime",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"ImmutabilityPolicyUntilDate",xmlName:"ImmutabilityPolicyUntilDate",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"ImmutabilityPolicyMode",xmlName:"ImmutabilityPolicyMode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"LegalHold",xmlName:"LegalHold",type:{name:"Boolean"}}}}},p3={serializedName:"ListBlobsHierarchySegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsHierarchySegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:!0,xmlName:"ServiceEndpoint",xmlIsAttribute:!0,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:!0,xmlName:"ContainerName",xmlIsAttribute:!0,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},delimiter:{serializedName:"Delimiter",xmlName:"Delimiter",type:{name:"String"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},Fnt={serializedName:"BlobHierarchyListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment",modelProperties:{blobPrefixes:{serializedName:"BlobPrefixes",xmlName:"BlobPrefixes",xmlElementName:"BlobPrefix",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobPrefix"}}}},blobItems:{serializedName:"BlobItems",required:!0,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}},Mnt={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}},A3={serializedName:"BlockLookupList",xmlName:"BlockList",type:{name:"Composite",className:"BlockLookupList",modelProperties:{committed:{serializedName:"Committed",xmlName:"Committed",xmlElementName:"Committed",type:{name:"Sequence",element:{type:{name:"String"}}}},uncommitted:{serializedName:"Uncommitted",xmlName:"Uncommitted",xmlElementName:"Uncommitted",type:{name:"Sequence",element:{type:{name:"String"}}}},latest:{serializedName:"Latest",xmlName:"Latest",xmlElementName:"Latest",type:{name:"Sequence",element:{type:{name:"String"}}}}}}},m3={serializedName:"BlockList",type:{name:"Composite",className:"BlockList",modelProperties:{committedBlocks:{serializedName:"CommittedBlocks",xmlName:"CommittedBlocks",xmlIsWrapped:!0,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}},uncommittedBlocks:{serializedName:"UncommittedBlocks",xmlName:"UncommittedBlocks",xmlIsWrapped:!0,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}}}}},Unt={serializedName:"Block",type:{name:"Composite",className:"Block",modelProperties:{name:{serializedName:"Name",required:!0,xmlName:"Name",type:{name:"String"}},size:{serializedName:"Size",required:!0,xmlName:"Size",type:{name:"Number"}}}}},pR={serializedName:"PageList",type:{name:"Composite",className:"PageList",modelProperties:{pageRange:{serializedName:"PageRange",xmlName:"PageRange",xmlElementName:"PageRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"PageRange"}}}},clearRange:{serializedName:"ClearRange",xmlName:"ClearRange",xmlElementName:"ClearRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"ClearRange"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},qnt={serializedName:"PageRange",xmlName:"PageRange",type:{name:"Composite",className:"PageRange",modelProperties:{start:{serializedName:"Start",required:!0,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:!0,xmlName:"End",type:{name:"Number"}}}}},Gnt={serializedName:"ClearRange",xmlName:"ClearRange",type:{name:"Composite",className:"ClearRange",modelProperties:{start:{serializedName:"Start",required:!0,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:!0,xmlName:"End",type:{name:"Number"}}}}},g3={serializedName:"QueryRequest",xmlName:"QueryRequest",type:{name:"Composite",className:"QueryRequest",modelProperties:{queryType:{serializedName:"QueryType",required:!0,xmlName:"QueryType",type:{name:"String"}},expression:{serializedName:"Expression",required:!0,xmlName:"Expression",type:{name:"String"}},inputSerialization:{serializedName:"InputSerialization",xmlName:"InputSerialization",type:{name:"Composite",className:"QuerySerialization"}},outputSerialization:{serializedName:"OutputSerialization",xmlName:"OutputSerialization",type:{name:"Composite",className:"QuerySerialization"}}}}},Hnt={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}},znt={serializedName:"QueryFormat",type:{name:"Composite",className:"QueryFormat",modelProperties:{type:{serializedName:"Type",required:!0,xmlName:"Type",type:{name:"Enum",allowedValues:["delimited","json","arrow","parquet"]}},delimitedTextConfiguration:{serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration"}},jsonTextConfiguration:{serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration"}},arrowConfiguration:{serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration"}},parquetTextConfiguration:{serializedName:"ParquetTextConfiguration",xmlName:"ParquetTextConfiguration",type:{name:"Dictionary",value:{type:{name:"any"}}}}}}},Vnt={serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration",modelProperties:{columnSeparator:{serializedName:"ColumnSeparator",xmlName:"ColumnSeparator",type:{name:"String"}},fieldQuote:{serializedName:"FieldQuote",xmlName:"FieldQuote",type:{name:"String"}},recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}},escapeChar:{serializedName:"EscapeChar",xmlName:"EscapeChar",type:{name:"String"}},headersPresent:{serializedName:"HeadersPresent",xmlName:"HasHeaders",type:{name:"Boolean"}}}}},$nt={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}},jnt={serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration",modelProperties:{schema:{serializedName:"Schema",required:!0,xmlName:"Schema",xmlIsWrapped:!0,xmlElementName:"Field",type:{name:"Sequence",element:{type:{name:"Composite",className:"ArrowField"}}}}}}},Wnt={serializedName:"ArrowField",xmlName:"Field",type:{name:"Composite",className:"ArrowField",modelProperties:{type:{serializedName:"Type",required:!0,xmlName:"Type",type:{name:"String"}},name:{serializedName:"Name",xmlName:"Name",type:{name:"String"}},precision:{serializedName:"Precision",xmlName:"Precision",type:{name:"Number"}},scale:{serializedName:"Scale",xmlName:"Scale",type:{name:"Number"}}}}},y3={serializedName:"Service_setPropertiesHeaders",type:{name:"Composite",className:"ServiceSetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},E3={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},C3={serializedName:"Service_getPropertiesHeaders",type:{name:"Composite",className:"ServiceGetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},b3={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},w3={serializedName:"Service_getStatisticsHeaders",type:{name:"Composite",className:"ServiceGetStatisticsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},I3={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},S3={serializedName:"Service_listContainersSegmentHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},B3={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},x3={serializedName:"Service_getUserDelegationKeyHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},v3={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},N3={serializedName:"Service_getAccountInfoHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},R3={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},_3={serializedName:"Service_submitBatchHeaders",type:{name:"Composite",className:"ServiceSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},T3={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},D3={serializedName:"Service_filterBlobsHeaders",type:{name:"Composite",className:"ServiceFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Q3={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},k3={serializedName:"Container_createHeaders",type:{name:"Composite",className:"ContainerCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},P3={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},O3={serializedName:"Container_getPropertiesHeaders",type:{name:"Composite",className:"ContainerGetPropertiesHeaders",modelProperties:{metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"x-ms-has-immutability-policy",xmlName:"x-ms-has-immutability-policy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"x-ms-has-legal-hold",xmlName:"x-ms-has-legal-hold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}},denyEncryptionScopeOverride:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}},isImmutableStorageWithVersioningEnabled:{serializedName:"x-ms-immutable-storage-with-versioning-enabled",xmlName:"x-ms-immutable-storage-with-versioning-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},L3={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},F3={serializedName:"Container_deleteHeaders",type:{name:"Composite",className:"ContainerDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},M3={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},U3={serializedName:"Container_setMetadataHeaders",type:{name:"Composite",className:"ContainerSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},q3={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},G3={serializedName:"Container_getAccessPolicyHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyHeaders",modelProperties:{blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},H3={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},z3={serializedName:"Container_setAccessPolicyHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},V3={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},$3={serializedName:"Container_restoreHeaders",type:{name:"Composite",className:"ContainerRestoreHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},j3={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},W3={serializedName:"Container_renameHeaders",type:{name:"Composite",className:"ContainerRenameHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},J3={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Y3={serializedName:"Container_submitBatchHeaders",type:{name:"Composite",className:"ContainerSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}}}}},K3={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},X3={serializedName:"Container_filterBlobsHeaders",type:{name:"Composite",className:"ContainerFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},Z3={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},eG={serializedName:"Container_acquireLeaseHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},tG={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},rG={serializedName:"Container_releaseLeaseHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},nG={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},iG={serializedName:"Container_renewLeaseHeaders",type:{name:"Composite",className:"ContainerRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},sG={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},oG={serializedName:"Container_breakLeaseHeaders",type:{name:"Composite",className:"ContainerBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},aG={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},cG={serializedName:"Container_changeLeaseHeaders",type:{name:"Composite",className:"ContainerChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},lG={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},uG={serializedName:"Container_listBlobFlatSegmentHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},dG={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},fG={serializedName:"Container_listBlobHierarchySegmentHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},hG={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},pG={serializedName:"Container_getAccountInfoHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}}}}},AG={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},AR={serializedName:"Blob_downloadHeaders",type:{name:"Composite",className:"BlobDownloadHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}},mG={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},gG={serializedName:"Blob_getPropertiesHeaders",type:{name:"Composite",className:"BlobGetPropertiesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},isIncrementalCopy:{serializedName:"x-ms-incremental-copy",xmlName:"x-ms-incremental-copy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"x-ms-copy-destination-snapshot",xmlName:"x-ms-copy-destination-snapshot",type:{name:"String"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},accessTier:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"String"}},accessTierInferred:{serializedName:"x-ms-access-tier-inferred",xmlName:"x-ms-access-tier-inferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"x-ms-archive-status",xmlName:"x-ms-archive-status",type:{name:"String"}},accessTierChangedOn:{serializedName:"x-ms-access-tier-change-time",xmlName:"x-ms-access-tier-change-time",type:{name:"DateTimeRfc1123"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},expiresOn:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},yG={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},EG={serializedName:"Blob_deleteHeaders",type:{name:"Composite",className:"BlobDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},CG={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},bG={serializedName:"Blob_undeleteHeaders",type:{name:"Composite",className:"BlobUndeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},wG={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},IG={serializedName:"Blob_setExpiryHeaders",type:{name:"Composite",className:"BlobSetExpiryHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},SG={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},BG={serializedName:"Blob_setHttpHeadersHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},xG={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},vG={serializedName:"Blob_setImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiry:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}}}},NG={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},RG={serializedName:"Blob_deleteImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},_G={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},TG={serializedName:"Blob_setLegalHoldHeaders",type:{name:"Composite",className:"BlobSetLegalHoldHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}}}},DG={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},QG={serializedName:"Blob_setMetadataHeaders",type:{name:"Composite",className:"BlobSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},kG={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},PG={serializedName:"Blob_acquireLeaseHeaders",type:{name:"Composite",className:"BlobAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},OG={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},LG={serializedName:"Blob_releaseLeaseHeaders",type:{name:"Composite",className:"BlobReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},FG={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},MG={serializedName:"Blob_renewLeaseHeaders",type:{name:"Composite",className:"BlobRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},UG={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},qG={serializedName:"Blob_changeLeaseHeaders",type:{name:"Composite",className:"BlobChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},GG={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},HG={serializedName:"Blob_breakLeaseHeaders",type:{name:"Composite",className:"BlobBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},zG={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},VG={serializedName:"Blob_createSnapshotHeaders",type:{name:"Composite",className:"BlobCreateSnapshotHeaders",modelProperties:{snapshot:{serializedName:"x-ms-snapshot",xmlName:"x-ms-snapshot",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},$G={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},jG={serializedName:"Blob_startCopyFromURLHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},WG={serializedName:"Blob_startCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}},JG={serializedName:"Blob_copyFromURLHeaders",type:{name:"Composite",className:"BlobCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{defaultValue:"success",isConstant:!0,serializedName:"x-ms-copy-status",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},YG={serializedName:"Blob_copyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}},KG={serializedName:"Blob_abortCopyFromURLHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},XG={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},mR={serializedName:"Blob_setTierHeaders",type:{name:"Composite",className:"BlobSetTierHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},ZG={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},eH={serializedName:"Blob_getAccountInfoHeaders",type:{name:"Composite",className:"BlobGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}}}}},tH={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},gR={serializedName:"Blob_queryHeaders",type:{name:"Composite",className:"BlobQueryHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletionTime:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}},rH={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},nH={serializedName:"Blob_getTagsHeaders",type:{name:"Composite",className:"BlobGetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},iH={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},sH={serializedName:"Blob_setTagsHeaders",type:{name:"Composite",className:"BlobSetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},oH={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},aH={serializedName:"PageBlob_createHeaders",type:{name:"Composite",className:"PageBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},cH={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},lH={serializedName:"PageBlob_uploadPagesHeaders",type:{name:"Composite",className:"PageBlobUploadPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},uH={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},dH={serializedName:"PageBlob_clearPagesHeaders",type:{name:"Composite",className:"PageBlobClearPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},fH={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},hH={serializedName:"PageBlob_uploadPagesFromURLHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},pH={serializedName:"PageBlob_uploadPagesFromURLExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}},AH={serializedName:"PageBlob_getPageRangesHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},mH={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},gH={serializedName:"PageBlob_getPageRangesDiffHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},yH={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},EH={serializedName:"PageBlob_resizeHeaders",type:{name:"Composite",className:"PageBlobResizeHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},CH={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},bH={serializedName:"PageBlob_updateSequenceNumberHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},wH={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},IH={serializedName:"PageBlob_copyIncrementalHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},SH={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},BH={serializedName:"AppendBlob_createHeaders",type:{name:"Composite",className:"AppendBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},xH={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},vH={serializedName:"AppendBlob_appendBlockHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},NH={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},RH={serializedName:"AppendBlob_appendBlockFromUrlHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},_H={serializedName:"AppendBlob_appendBlockFromUrlExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}},TH={serializedName:"AppendBlob_sealHeaders",type:{name:"Composite",className:"AppendBlobSealHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}}}}},DH={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},QH={serializedName:"BlockBlob_uploadHeaders",type:{name:"Composite",className:"BlockBlobUploadHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},kH={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},PH={serializedName:"BlockBlob_putBlobFromUrlHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},OH={serializedName:"BlockBlob_putBlobFromUrlExceptionHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}},LH={serializedName:"BlockBlob_stageBlockHeaders",type:{name:"Composite",className:"BlockBlobStageBlockHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},FH={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},MH={serializedName:"BlockBlob_stageBlockFromURLHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},UH={serializedName:"BlockBlob_stageBlockFromURLExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}},qH={serializedName:"BlockBlob_commitBlockListHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},GH={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},HH={serializedName:"BlockBlob_getBlockListHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},zH={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};var Nc={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},Ohe={parameterPath:"blobServiceProperties",mapper:y0},Qo={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},ee={parameterPath:"url",mapper:{serializedName:"url",required:!0,xmlName:"url",type:{name:"String"}},skipEncoding:!0},b0={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:!0,serializedName:"restype",type:{name:"String"}}},ko={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:!0,serializedName:"comp",type:{name:"String"}}},te={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}},re={parameterPath:"version",mapper:{defaultValue:"2026-02-06",isConstant:!0,serializedName:"x-ms-version",type:{name:"String"}}},ne={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}},me={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},Lhe={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:!0,serializedName:"comp",type:{name:"String"}}},w0={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:!0,serializedName:"comp",type:{name:"String"}}},I0={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}},Rc={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}},_c={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}},Fhe={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:"CSV"},Mhe={parameterPath:"keyInfo",mapper:d3},Uhe={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:!0,serializedName:"comp",type:{name:"String"}}},ig={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:!0,serializedName:"restype",type:{name:"String"}}},yR={parameterPath:"body",mapper:{serializedName:"body",required:!0,xmlName:"body",type:{name:"Stream"}}},ER={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:!0,serializedName:"comp",type:{name:"String"}}},vn={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:!0,xmlName:"Content-Length",type:{name:"Number"}}},CR={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:!0,xmlName:"Content-Type",type:{name:"String"}}},bR={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:!0,serializedName:"comp",type:{name:"String"}}},wR={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}},Nn={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:!0,serializedName:"restype",type:{name:"String"}}},ci={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",type:{name:"Dictionary",value:{type:{name:"String"}}}}},VH={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}},qhe={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}},Ghe={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}},et={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}},We={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}},Je={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}},IR={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:!0,serializedName:"comp",type:{name:"String"}}},$H={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Hhe={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:!0,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}},SR={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:!0,serializedName:"comp",type:{name:"String"}}},zhe={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}},Vhe={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}},$he={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:!0,serializedName:"comp",type:{name:"String"}}},jhe={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:!0,xmlName:"x-ms-source-container-name",type:{name:"String"}}},Whe={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}},Po={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:!0,serializedName:"comp",type:{name:"String"}}},BR={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},xR={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}},vR={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}},NR={parameterPath:"action",mapper:{defaultValue:"release",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},Fd={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:!0,xmlName:"x-ms-lease-id",type:{name:"String"}}},RR={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},_R={parameterPath:"action",mapper:{defaultValue:"break",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},TR={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}},DR={parameterPath:"action",mapper:{defaultValue:"change",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},QR={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:!0,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}},jH={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListBlobsIncludeItem",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["copy","deleted","metadata","snapshots","uncommittedblobs","versions","tags","immutabilitypolicy","legalhold","deletedwithversions"]}}}},collectionFormat:"CSV"},WH={parameterPath:["options","startFrom"],mapper:{serializedName:"startFrom",xmlName:"startFrom",type:{name:"String"}}},Jhe={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:!0,xmlName:"delimiter",type:{name:"String"}}},ki={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}},Tc={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}},Hh={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}},Yhe={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}},Khe={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}},vr={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}},Nr={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}},Rr={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}},It={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}},St={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}},at={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}},Xhe={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}},Zhe={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}},epe={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:!0,serializedName:"comp",type:{name:"String"}}},tpe={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:!0,xmlName:"x-ms-expiry-option",type:{name:"String"}}},rpe={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}},Dc={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}},Qc={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}},kc={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}},Pc={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}},Oc={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}},Lc={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}},JH={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:!0,serializedName:"comp",type:{name:"String"}}},_a={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}},Ta={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}},npe={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:!0,serializedName:"comp",type:{name:"String"}}},ipe={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:!0,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}},tn={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}},spe={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:!0,serializedName:"comp",type:{name:"String"}}},pu={parameterPath:["options","tier"],mapper:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}},YH={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}},Fc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}},Mc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}},Uc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}},qc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}},kR={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}},zh={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:!0,xmlName:"x-ms-copy-source",type:{name:"String"}}},Da={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}},ope={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}},Gc={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}},ape={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:!0,serializedName:"x-ms-requires-sync",type:{name:"String"}}},Au={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}},mu={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}},PR={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}},gu={parameterPath:["options","fileRequestIntent"],mapper:{serializedName:"x-ms-file-request-intent",xmlName:"x-ms-file-request-intent",type:{name:"String"}}},cpe={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:!0,serializedName:"comp",type:{name:"String"}}},lpe={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:!0,serializedName:"x-ms-copy-action",type:{name:"String"}}},upe={parameterPath:"copyId",mapper:{serializedName:"copyid",required:!0,xmlName:"copyid",type:{name:"String"}}},dpe={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:!0,serializedName:"comp",type:{name:"String"}}},fpe={parameterPath:"tier",mapper:{serializedName:"x-ms-access-tier",required:!0,xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}},hpe={parameterPath:["options","queryRequest"],mapper:g3},ppe={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:!0,serializedName:"comp",type:{name:"String"}}},KH={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:!0,serializedName:"comp",type:{name:"String"}}},XH={parameterPath:["options","blobModifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"x-ms-blob-if-modified-since",xmlName:"x-ms-blob-if-modified-since",type:{name:"DateTimeRfc1123"}}},ZH={parameterPath:["options","blobModifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"x-ms-blob-if-unmodified-since",xmlName:"x-ms-blob-if-unmodified-since",type:{name:"DateTimeRfc1123"}}},e5={parameterPath:["options","blobModifiedAccessConditions","ifMatch"],mapper:{serializedName:"x-ms-blob-if-match",xmlName:"x-ms-blob-if-match",type:{name:"String"}}},t5={parameterPath:["options","blobModifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"x-ms-blob-if-none-match",xmlName:"x-ms-blob-if-none-match",type:{name:"String"}}},Ape={parameterPath:["options","tags"],mapper:C0},Oo={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}},Hc={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}},mpe={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},r5={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:!0,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}},n5={parameterPath:["options","blobSequenceNumber"],mapper:{defaultValue:0,serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}},Vh={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},$h={parameterPath:"body",mapper:{serializedName:"body",required:!0,xmlName:"body",type:{name:"Stream"}}},jh={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},OR={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:!0,serializedName:"comp",type:{name:"String"}}},i5={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:!0,serializedName:"x-ms-page-write",type:{name:"String"}}},LR={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}},FR={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}},MR={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}},gpe={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:!0,serializedName:"x-ms-page-write",type:{name:"String"}}},sg={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:!0,xmlName:"x-ms-copy-source",type:{name:"String"}}},ype={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:!0,xmlName:"x-ms-source-range",type:{name:"String"}}},og={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}},Epe={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:!0,xmlName:"x-ms-range",type:{name:"String"}}},s5={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Cpe={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}},bpe={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}},wpe={parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:!0,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}},Ipe={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Spe={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},o5={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:!0,serializedName:"comp",type:{name:"String"}}},a5={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}},UR={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}},qR={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}},Bpe={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:!0,serializedName:"comp",type:{name:"String"}}},c5={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},xpe={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}},l5={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:!0,serializedName:"comp",type:{name:"String"}}},u5={parameterPath:"blockId",mapper:{serializedName:"blockid",required:!0,xmlName:"blockid",type:{name:"String"}}},vpe={parameterPath:"blocks",mapper:A3},d5={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Npe={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:!0,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}};var GR=class{static{o(this,"ServiceImpl")}client;constructor(e){this.client=e}setProperties(e,r){return this.client.sendOperationRequest({blobServiceProperties:e,options:r},Jnt)}getProperties(e){return this.client.sendOperationRequest({options:e},Ynt)}getStatistics(e){return this.client.sendOperationRequest({options:e},Knt)}listContainersSegment(e){return this.client.sendOperationRequest({options:e},Xnt)}getUserDelegationKey(e,r){return this.client.sendOperationRequest({keyInfo:e,options:r},Znt)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},eit)}submitBatch(e,r,n,i){return this.client.sendOperationRequest({contentLength:e,multipartContentType:r,body:n,options:i},tit)}filterBlobs(e){return this.client.sendOperationRequest({options:e},rit)}},Md=js(Js,!0),Jnt={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:y3},default:{bodyMapper:Z,headersMapper:E3}},requestBody:Ohe,queryParameters:[b0,ko,te],urlParameters:[ee],headerParameters:[Nc,Qo,re,ne],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Md},Ynt={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:y0,headersMapper:C3},default:{bodyMapper:Z,headersMapper:b3}},queryParameters:[b0,ko,te],urlParameters:[ee],headerParameters:[re,ne,me],isXML:!0,serializer:Md},Knt={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:l3,headersMapper:w3},default:{bodyMapper:Z,headersMapper:I3}},queryParameters:[b0,te,Lhe],urlParameters:[ee],headerParameters:[re,ne,me],isXML:!0,serializer:Md},Xnt={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:u3,headersMapper:S3},default:{bodyMapper:Z,headersMapper:B3}},queryParameters:[te,w0,I0,Rc,_c,Fhe],urlParameters:[ee],headerParameters:[re,ne,me],isXML:!0,serializer:Md},Znt={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:f3,headersMapper:x3},default:{bodyMapper:Z,headersMapper:v3}},requestBody:Mhe,queryParameters:[b0,te,Uhe],urlParameters:[ee],headerParameters:[Nc,Qo,re,ne],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Md},eit={path:"/",httpMethod:"GET",responses:{200:{headersMapper:N3},default:{bodyMapper:Z,headersMapper:R3}},queryParameters:[ko,te,ig],urlParameters:[ee],headerParameters:[re,ne,me],isXML:!0,serializer:Md},tit={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:_3},default:{bodyMapper:Z,headersMapper:T3}},requestBody:yR,queryParameters:[te,ER],urlParameters:[ee],headerParameters:[Qo,re,ne,vn,CR],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Md},rit={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:E0,headersMapper:D3},default:{bodyMapper:Z,headersMapper:Q3}},queryParameters:[te,Rc,_c,bR,wR],urlParameters:[ee],headerParameters:[re,ne,me],isXML:!0,serializer:Md};var HR=class{static{o(this,"ContainerImpl")}client;constructor(e){this.client=e}create(e){return this.client.sendOperationRequest({options:e},nit)}getProperties(e){return this.client.sendOperationRequest({options:e},iit)}delete(e){return this.client.sendOperationRequest({options:e},sit)}setMetadata(e){return this.client.sendOperationRequest({options:e},oit)}getAccessPolicy(e){return this.client.sendOperationRequest({options:e},ait)}setAccessPolicy(e){return this.client.sendOperationRequest({options:e},cit)}restore(e){return this.client.sendOperationRequest({options:e},lit)}rename(e,r){return this.client.sendOperationRequest({sourceContainerName:e,options:r},uit)}submitBatch(e,r,n,i){return this.client.sendOperationRequest({contentLength:e,multipartContentType:r,body:n,options:i},dit)}filterBlobs(e){return this.client.sendOperationRequest({options:e},fit)}acquireLease(e){return this.client.sendOperationRequest({options:e},hit)}releaseLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},pit)}renewLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},Ait)}breakLease(e){return this.client.sendOperationRequest({options:e},mit)}changeLease(e,r,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:r,options:n},git)}listBlobFlatSegment(e){return this.client.sendOperationRequest({options:e},yit)}listBlobHierarchySegment(e,r){return this.client.sendOperationRequest({delimiter:e,options:r},Eit)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},Cit)}},Rn=js(Js,!0),nit={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:k3},default:{bodyMapper:Z,headersMapper:P3}},queryParameters:[te,Nn],urlParameters:[ee],headerParameters:[re,ne,me,ci,VH,qhe,Ghe],isXML:!0,serializer:Rn},iit={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:O3},default:{bodyMapper:Z,headersMapper:L3}},queryParameters:[te,Nn],urlParameters:[ee],headerParameters:[re,ne,me,et],isXML:!0,serializer:Rn},sit={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:F3},default:{bodyMapper:Z,headersMapper:M3}},queryParameters:[te,Nn],urlParameters:[ee],headerParameters:[re,ne,me,et,We,Je],isXML:!0,serializer:Rn},oit={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:U3},default:{bodyMapper:Z,headersMapper:q3}},queryParameters:[te,Nn,IR],urlParameters:[ee],headerParameters:[re,ne,me,ci,et,We],isXML:!0,serializer:Rn},ait={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}},serializedName:"SignedIdentifiers",xmlName:"SignedIdentifiers",xmlIsWrapped:!0,xmlElementName:"SignedIdentifier"},headersMapper:G3},default:{bodyMapper:Z,headersMapper:H3}},queryParameters:[te,Nn,$H],urlParameters:[ee],headerParameters:[re,ne,me,et],isXML:!0,serializer:Rn},cit={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:z3},default:{bodyMapper:Z,headersMapper:V3}},requestBody:Hhe,queryParameters:[te,Nn,$H],urlParameters:[ee],headerParameters:[Nc,Qo,re,ne,VH,et,We,Je],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Rn},lit={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:$3},default:{bodyMapper:Z,headersMapper:j3}},queryParameters:[te,Nn,SR],urlParameters:[ee],headerParameters:[re,ne,me,zhe,Vhe],isXML:!0,serializer:Rn},uit={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:W3},default:{bodyMapper:Z,headersMapper:J3}},queryParameters:[te,Nn,$he],urlParameters:[ee],headerParameters:[re,ne,me,jhe,Whe],isXML:!0,serializer:Rn},dit={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Y3},default:{bodyMapper:Z,headersMapper:K3}},requestBody:yR,queryParameters:[te,ER,Nn],urlParameters:[ee],headerParameters:[Qo,re,ne,vn,CR],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Rn},fit={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:E0,headersMapper:X3},default:{bodyMapper:Z,headersMapper:Z3}},queryParameters:[te,Rc,_c,bR,wR,Nn],urlParameters:[ee],headerParameters:[re,ne,me],isXML:!0,serializer:Rn},hit={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:eG},default:{bodyMapper:Z,headersMapper:tG}},queryParameters:[te,Nn,Po],urlParameters:[ee],headerParameters:[re,ne,me,We,Je,BR,xR,vR],isXML:!0,serializer:Rn},pit={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:rG},default:{bodyMapper:Z,headersMapper:nG}},queryParameters:[te,Nn,Po],urlParameters:[ee],headerParameters:[re,ne,me,We,Je,NR,Fd],isXML:!0,serializer:Rn},Ait={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:iG},default:{bodyMapper:Z,headersMapper:sG}},queryParameters:[te,Nn,Po],urlParameters:[ee],headerParameters:[re,ne,me,We,Je,Fd,RR],isXML:!0,serializer:Rn},mit={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:oG},default:{bodyMapper:Z,headersMapper:aG}},queryParameters:[te,Nn,Po],urlParameters:[ee],headerParameters:[re,ne,me,We,Je,_R,TR],isXML:!0,serializer:Rn},git={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:cG},default:{bodyMapper:Z,headersMapper:lG}},queryParameters:[te,Nn,Po],urlParameters:[ee],headerParameters:[re,ne,me,We,Je,Fd,DR,QR],isXML:!0,serializer:Rn},yit={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:h3,headersMapper:uG},default:{bodyMapper:Z,headersMapper:dG}},queryParameters:[te,w0,I0,Rc,_c,Nn,jH,WH],urlParameters:[ee],headerParameters:[re,ne,me],isXML:!0,serializer:Rn},Eit={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:p3,headersMapper:fG},default:{bodyMapper:Z,headersMapper:hG}},queryParameters:[te,w0,I0,Rc,_c,Nn,jH,WH,Jhe],urlParameters:[ee],headerParameters:[re,ne,me],isXML:!0,serializer:Rn},Cit={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:pG},default:{bodyMapper:Z,headersMapper:AG}},queryParameters:[ko,te,ig],urlParameters:[ee],headerParameters:[re,ne,me],isXML:!0,serializer:Rn};var zR=class{static{o(this,"BlobImpl")}client;constructor(e){this.client=e}download(e){return this.client.sendOperationRequest({options:e},bit)}getProperties(e){return this.client.sendOperationRequest({options:e},wit)}delete(e){return this.client.sendOperationRequest({options:e},Iit)}undelete(e){return this.client.sendOperationRequest({options:e},Sit)}setExpiry(e,r){return this.client.sendOperationRequest({expiryOptions:e,options:r},Bit)}setHttpHeaders(e){return this.client.sendOperationRequest({options:e},xit)}setImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},vit)}deleteImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},Nit)}setLegalHold(e,r){return this.client.sendOperationRequest({legalHold:e,options:r},Rit)}setMetadata(e){return this.client.sendOperationRequest({options:e},_it)}acquireLease(e){return this.client.sendOperationRequest({options:e},Tit)}releaseLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},Dit)}renewLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},Qit)}changeLease(e,r,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:r,options:n},kit)}breakLease(e){return this.client.sendOperationRequest({options:e},Pit)}createSnapshot(e){return this.client.sendOperationRequest({options:e},Oit)}startCopyFromURL(e,r){return this.client.sendOperationRequest({copySource:e,options:r},Lit)}copyFromURL(e,r){return this.client.sendOperationRequest({copySource:e,options:r},Fit)}abortCopyFromURL(e,r){return this.client.sendOperationRequest({copyId:e,options:r},Mit)}setTier(e,r){return this.client.sendOperationRequest({tier:e,options:r},Uit)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},qit)}query(e){return this.client.sendOperationRequest({options:e},Git)}getTags(e){return this.client.sendOperationRequest({options:e},Hit)}setTags(e){return this.client.sendOperationRequest({options:e},zit)}},fr=js(Js,!0),bit={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:AR},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:AR},default:{bodyMapper:Z,headersMapper:mG}},queryParameters:[te,ki,Tc],urlParameters:[ee],headerParameters:[re,ne,me,et,We,Je,Hh,Yhe,Khe,vr,Nr,Rr,It,St,at],isXML:!0,serializer:fr},wit={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:gG},default:{bodyMapper:Z,headersMapper:yG}},queryParameters:[te,ki,Tc],urlParameters:[ee],headerParameters:[re,ne,me,et,We,Je,vr,Nr,Rr,It,St,at],isXML:!0,serializer:fr},Iit={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:EG},default:{bodyMapper:Z,headersMapper:CG}},queryParameters:[te,ki,Tc,Zhe],urlParameters:[ee],headerParameters:[re,ne,me,et,We,Je,It,St,at,Xhe],isXML:!0,serializer:fr},Sit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:bG},default:{bodyMapper:Z,headersMapper:wG}},queryParameters:[te,SR],urlParameters:[ee],headerParameters:[re,ne,me],isXML:!0,serializer:fr},Bit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:IG},default:{bodyMapper:Z,headersMapper:SG}},queryParameters:[te,epe],urlParameters:[ee],headerParameters:[re,ne,me,tpe,rpe],isXML:!0,serializer:fr},xit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:BG},default:{bodyMapper:Z,headersMapper:xG}},queryParameters:[ko,te],urlParameters:[ee],headerParameters:[re,ne,me,et,We,Je,It,St,at,Dc,Qc,kc,Pc,Oc,Lc],isXML:!0,serializer:fr},vit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:vG},default:{bodyMapper:Z,headersMapper:NG}},queryParameters:[te,ki,Tc,JH],urlParameters:[ee],headerParameters:[re,ne,me,Je,_a,Ta],isXML:!0,serializer:fr},Nit={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:RG},default:{bodyMapper:Z,headersMapper:_G}},queryParameters:[te,ki,Tc,JH],urlParameters:[ee],headerParameters:[re,ne,me],isXML:!0,serializer:fr},Rit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:TG},default:{bodyMapper:Z,headersMapper:DG}},queryParameters:[te,ki,Tc,npe],urlParameters:[ee],headerParameters:[re,ne,me,ipe],isXML:!0,serializer:fr},_it={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:QG},default:{bodyMapper:Z,headersMapper:kG}},queryParameters:[te,IR],urlParameters:[ee],headerParameters:[re,ne,me,ci,et,We,Je,vr,Nr,Rr,It,St,at,tn],isXML:!0,serializer:fr},Tit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:PG},default:{bodyMapper:Z,headersMapper:OG}},queryParameters:[te,Po],urlParameters:[ee],headerParameters:[re,ne,me,We,Je,BR,xR,vR,It,St,at],isXML:!0,serializer:fr},Dit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:LG},default:{bodyMapper:Z,headersMapper:FG}},queryParameters:[te,Po],urlParameters:[ee],headerParameters:[re,ne,me,We,Je,NR,Fd,It,St,at],isXML:!0,serializer:fr},Qit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:MG},default:{bodyMapper:Z,headersMapper:UG}},queryParameters:[te,Po],urlParameters:[ee],headerParameters:[re,ne,me,We,Je,Fd,RR,It,St,at],isXML:!0,serializer:fr},kit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:qG},default:{bodyMapper:Z,headersMapper:GG}},queryParameters:[te,Po],urlParameters:[ee],headerParameters:[re,ne,me,We,Je,Fd,DR,QR,It,St,at],isXML:!0,serializer:fr},Pit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:HG},default:{bodyMapper:Z,headersMapper:zG}},queryParameters:[te,Po],urlParameters:[ee],headerParameters:[re,ne,me,We,Je,_R,TR,It,St,at],isXML:!0,serializer:fr},Oit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:VG},default:{bodyMapper:Z,headersMapper:$G}},queryParameters:[te,spe],urlParameters:[ee],headerParameters:[re,ne,me,ci,et,We,Je,vr,Nr,Rr,It,St,at,tn],isXML:!0,serializer:fr},Lit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:jG},default:{bodyMapper:Z,headersMapper:WG}},queryParameters:[te],urlParameters:[ee],headerParameters:[re,ne,me,ci,et,We,Je,It,St,at,_a,Ta,pu,YH,Fc,Mc,Uc,qc,kR,zh,Da,ope,Gc],isXML:!0,serializer:fr},Fit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:JG},default:{bodyMapper:Z,headersMapper:YG}},queryParameters:[te],urlParameters:[ee],headerParameters:[re,ne,me,ci,et,We,Je,It,St,at,_a,Ta,tn,pu,Fc,Mc,Uc,qc,zh,Da,Gc,ape,Au,mu,PR,gu],isXML:!0,serializer:fr},Mit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:KG},default:{bodyMapper:Z,headersMapper:XG}},queryParameters:[te,cpe,upe],urlParameters:[ee],headerParameters:[re,ne,me,et,lpe],isXML:!0,serializer:fr},Uit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:mR},202:{headersMapper:mR},default:{bodyMapper:Z,headersMapper:ZG}},queryParameters:[te,ki,Tc,dpe],urlParameters:[ee],headerParameters:[re,ne,me,et,at,YH,fpe],isXML:!0,serializer:fr},qit={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:eH},default:{bodyMapper:Z,headersMapper:tH}},queryParameters:[ko,te,ig],urlParameters:[ee],headerParameters:[re,ne,me],isXML:!0,serializer:fr},Git={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:gR},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:gR},default:{bodyMapper:Z,headersMapper:rH}},requestBody:hpe,queryParameters:[te,ki,ppe],urlParameters:[ee],headerParameters:[Nc,Qo,re,ne,et,We,Je,vr,Nr,Rr,It,St,at],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:fr},Hit={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:C0,headersMapper:nH},default:{bodyMapper:Z,headersMapper:iH}},queryParameters:[te,ki,Tc,KH],urlParameters:[ee],headerParameters:[re,ne,me,et,at,XH,ZH,e5,t5],isXML:!0,serializer:fr},zit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:sH},default:{bodyMapper:Z,headersMapper:oH}},requestBody:Ape,queryParameters:[te,Tc,KH],urlParameters:[ee],headerParameters:[Nc,Qo,re,ne,et,at,XH,ZH,e5,t5,Oo,Hc],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:fr};var VR=class{static{o(this,"PageBlobImpl")}client;constructor(e){this.client=e}create(e,r,n){return this.client.sendOperationRequest({contentLength:e,blobContentLength:r,options:n},Vit)}uploadPages(e,r,n){return this.client.sendOperationRequest({contentLength:e,body:r,options:n},$it)}clearPages(e,r){return this.client.sendOperationRequest({contentLength:e,options:r},jit)}uploadPagesFromURL(e,r,n,i,s){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:r,contentLength:n,range:i,options:s},Wit)}getPageRanges(e){return this.client.sendOperationRequest({options:e},Jit)}getPageRangesDiff(e){return this.client.sendOperationRequest({options:e},Yit)}resize(e,r){return this.client.sendOperationRequest({blobContentLength:e,options:r},Kit)}updateSequenceNumber(e,r){return this.client.sendOperationRequest({sequenceNumberAction:e,options:r},Xit)}copyIncremental(e,r){return this.client.sendOperationRequest({copySource:e,options:r},Zit)}},yu=js(Js,!0),Vit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:aH},default:{bodyMapper:Z,headersMapper:cH}},queryParameters:[te],urlParameters:[ee],headerParameters:[re,ne,me,vn,ci,et,We,Je,vr,Nr,Rr,It,St,at,Dc,Qc,kc,Pc,Oc,Lc,_a,Ta,tn,pu,Da,Gc,mpe,r5,n5],isXML:!0,serializer:yu},$it={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:lH},default:{bodyMapper:Z,headersMapper:uH}},requestBody:$h,queryParameters:[te,OR],urlParameters:[ee],headerParameters:[re,ne,vn,et,We,Je,Hh,vr,Nr,Rr,It,St,at,tn,Oo,Hc,Vh,jh,i5,LR,FR,MR],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:yu},jit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:dH},default:{bodyMapper:Z,headersMapper:fH}},queryParameters:[te,OR],urlParameters:[ee],headerParameters:[re,ne,me,vn,et,We,Je,Hh,vr,Nr,Rr,It,St,at,tn,LR,FR,MR,gpe],isXML:!0,serializer:yu},Wit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:hH},default:{bodyMapper:Z,headersMapper:pH}},queryParameters:[te,OR],urlParameters:[ee],headerParameters:[re,ne,me,vn,et,We,Je,vr,Nr,Rr,It,St,at,tn,Fc,Mc,Uc,qc,Au,mu,gu,i5,LR,FR,MR,sg,ype,og,Epe],isXML:!0,serializer:yu},Jit={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:pR,headersMapper:AH},default:{bodyMapper:Z,headersMapper:mH}},queryParameters:[te,Rc,_c,ki,s5],urlParameters:[ee],headerParameters:[re,ne,me,et,We,Je,Hh,It,St,at],isXML:!0,serializer:yu},Yit={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:pR,headersMapper:gH},default:{bodyMapper:Z,headersMapper:yH}},queryParameters:[te,Rc,_c,ki,s5,Cpe],urlParameters:[ee],headerParameters:[re,ne,me,et,We,Je,Hh,It,St,at,bpe],isXML:!0,serializer:yu},Kit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:EH},default:{bodyMapper:Z,headersMapper:CH}},queryParameters:[ko,te],urlParameters:[ee],headerParameters:[re,ne,me,et,We,Je,vr,Nr,Rr,It,St,at,tn,r5],isXML:!0,serializer:yu},Xit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:bH},default:{bodyMapper:Z,headersMapper:wH}},queryParameters:[ko,te],urlParameters:[ee],headerParameters:[re,ne,me,et,We,Je,It,St,at,n5,wpe],isXML:!0,serializer:yu},Zit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:IH},default:{bodyMapper:Z,headersMapper:SH}},queryParameters:[te,Ipe],urlParameters:[ee],headerParameters:[re,ne,me,We,Je,It,St,at,zh],isXML:!0,serializer:yu};var $R=class{static{o(this,"AppendBlobImpl")}client;constructor(e){this.client=e}create(e,r){return this.client.sendOperationRequest({contentLength:e,options:r},est)}appendBlock(e,r,n){return this.client.sendOperationRequest({contentLength:e,body:r,options:n},tst)}appendBlockFromUrl(e,r,n){return this.client.sendOperationRequest({sourceUrl:e,contentLength:r,options:n},rst)}seal(e){return this.client.sendOperationRequest({options:e},nst)}},jR=js(Js,!0),est={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:BH},default:{bodyMapper:Z,headersMapper:xH}},queryParameters:[te],urlParameters:[ee],headerParameters:[re,ne,me,vn,ci,et,We,Je,vr,Nr,Rr,It,St,at,Dc,Qc,kc,Pc,Oc,Lc,_a,Ta,tn,Da,Gc,Spe],isXML:!0,serializer:jR},tst={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:vH},default:{bodyMapper:Z,headersMapper:NH}},requestBody:$h,queryParameters:[te,o5],urlParameters:[ee],headerParameters:[re,ne,vn,et,We,Je,vr,Nr,Rr,It,St,at,tn,Oo,Hc,Vh,jh,a5,UR],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:jR},rst={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:RH},default:{bodyMapper:Z,headersMapper:_H}},queryParameters:[te,o5],urlParameters:[ee],headerParameters:[re,ne,me,vn,et,We,Je,vr,Nr,Rr,It,St,at,tn,Fc,Mc,Uc,qc,Au,mu,gu,Oo,sg,og,a5,UR,qR],isXML:!0,serializer:jR},nst={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:TH},default:{bodyMapper:Z,headersMapper:DH}},queryParameters:[te,Bpe],urlParameters:[ee],headerParameters:[re,ne,me,et,We,Je,It,St,UR],isXML:!0,serializer:jR};var WR=class{static{o(this,"BlockBlobImpl")}client;constructor(e){this.client=e}upload(e,r,n){return this.client.sendOperationRequest({contentLength:e,body:r,options:n},ist)}putBlobFromUrl(e,r,n){return this.client.sendOperationRequest({contentLength:e,copySource:r,options:n},sst)}stageBlock(e,r,n,i){return this.client.sendOperationRequest({blockId:e,contentLength:r,body:n,options:i},ost)}stageBlockFromURL(e,r,n,i){return this.client.sendOperationRequest({blockId:e,contentLength:r,sourceUrl:n,options:i},ast)}commitBlockList(e,r){return this.client.sendOperationRequest({blocks:e,options:r},cst)}getBlockList(e,r){return this.client.sendOperationRequest({listType:e,options:r},lst)}},cg=js(Js,!0),ist={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:QH},default:{bodyMapper:Z,headersMapper:kH}},requestBody:$h,queryParameters:[te],urlParameters:[ee],headerParameters:[re,ne,vn,ci,et,We,Je,vr,Nr,Rr,It,St,at,Dc,Qc,kc,Pc,Oc,Lc,_a,Ta,tn,pu,Da,Gc,Oo,Hc,Vh,jh,c5],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:cg},sst={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:PH},default:{bodyMapper:Z,headersMapper:OH}},queryParameters:[te],urlParameters:[ee],headerParameters:[re,ne,me,vn,ci,et,We,Je,vr,Nr,Rr,It,St,at,Dc,Qc,kc,Pc,Oc,Lc,tn,pu,Fc,Mc,Uc,qc,kR,zh,Da,Au,mu,PR,gu,Oo,c5,xpe],isXML:!0,serializer:cg},ost={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:LH},default:{bodyMapper:Z,headersMapper:FH}},requestBody:$h,queryParameters:[te,l5,u5],urlParameters:[ee],headerParameters:[re,ne,vn,et,vr,Nr,Rr,tn,Oo,Hc,Vh,jh],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:cg},ast={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:MH},default:{bodyMapper:Z,headersMapper:UH}},queryParameters:[te,l5,u5],urlParameters:[ee],headerParameters:[re,ne,me,vn,et,vr,Nr,Rr,tn,Fc,Mc,Uc,qc,Au,mu,gu,sg,og,qR],isXML:!0,serializer:cg},cst={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:qH},default:{bodyMapper:Z,headersMapper:GH}},requestBody:vpe,queryParameters:[te,d5],urlParameters:[ee],headerParameters:[Nc,Qo,re,ne,ci,et,We,Je,vr,Nr,Rr,It,St,at,Dc,Qc,kc,Pc,Oc,Lc,_a,Ta,tn,pu,Da,Gc,Oo,Hc],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:cg},lst={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:m3,headersMapper:HH},default:{bodyMapper:Z,headersMapper:zH}},queryParameters:[te,ki,d5,Npe],urlParameters:[ee],headerParameters:[re,ne,me,et,at],isXML:!0,serializer:cg};var S0=class extends i0{static{o(this,"StorageClient")}url;version;constructor(e,r){if(e===void 0)throw new Error("'url' cannot be null");r||(r={});let n={requestContentType:"application/json; charset=utf-8"},i="azsdk-js-azure-storage-blob/12.30.0",s=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`,a={...n,...r,userAgentOptions:{userAgentPrefix:s},endpoint:r.endpoint??r.baseUri??"{url}"};super(a),this.url=e,this.version=r.version||"2026-02-06",this.service=new GR(this),this.container=new HR(this),this.blob=new zR(this),this.pageBlob=new VR(this),this.appendBlob=new $R(this),this.blockBlob=new WR(this)}service;container;blob;pageBlob;appendBlob;blockBlob};var B0=class extends S0{static{o(this,"StorageContextClient")}async sendOperationRequest(e,r){let n={...r};return(n.path==="/{containerName}"||n.path==="/{containerName}/{blob}")&&(n.path=""),super.sendOperationRequest(e,n)}};function _pe(t){let e=new URL(t),r=e.pathname;return r=r||"/",r=dst(r),e.pathname=r,e.toString()}o(_pe,"escapeURLPath");function ust(t){let e="";if(t.search("DevelopmentStorageProxyUri=")!==-1){let r=t.split(";");for(let n of r)n.trim().startsWith("DevelopmentStorageProxyUri=")&&(e=n.trim().match("DevelopmentStorageProxyUri=(.*)")[1])}return e}o(ust,"getProxyUriFromDevConnString");function Wh(t,e){let r=t.split(";");for(let n of r)if(n.trim().startsWith(e))return n.trim().match(e+"=(.*)")[1];return""}o(Wh,"getValueInConnString");function Jh(t){let e="";t.startsWith("UseDevelopmentStorage=true")&&(e=ust(t),t=Bhe);let r=Wh(t,"BlobEndpoint");if(r=r.endsWith("/")?r.slice(0,-1):r,t.search("DefaultEndpointsProtocol=")!==-1&&t.search("AccountKey=")!==-1){let n="",i="",s=Buffer.from("accountKey","base64"),a="";if(i=Wh(t,"AccountName"),s=Buffer.from(Wh(t,"AccountKey"),"base64"),!r){n=Wh(t,"DefaultEndpointsProtocol");let c=n.toLowerCase();if(c!=="https"&&c!=="http")throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'");if(a=Wh(t,"EndpointSuffix"),!a)throw new Error("Invalid EndpointSuffix in the provided Connection String");r=`${n}://${i}.blob.${a}`}if(i){if(s.length===0)throw new Error("Invalid AccountKey in the provided Connection String")}else throw new Error("Invalid AccountName in the provided Connection String");return{kind:"AccountConnString",url:r,accountName:i,accountKey:s,proxyUri:e}}else{let n=Wh(t,"SharedAccessSignature"),i=Wh(t,"AccountName");if(i||(i=A5(r)),r){if(!n)throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}else throw new Error("Invalid BlobEndpoint in the provided SAS Connection String");return n.startsWith("?")&&(n=n.substring(1)),{kind:"SASConnString",url:r,accountName:i,accountSas:n}}}o(Jh,"extractConnectionStringParts");function dst(t){return encodeURIComponent(t).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}o(dst,"escape");function hn(t,e){let r=new URL(t),n=r.pathname;return n=n?n.endsWith("/")?`${n}${e}`:`${n}/${e}`:e,r.pathname=n,r.toString()}o(hn,"appendToURLPath");function lg(t,e,r){let n=new URL(t),i=encodeURIComponent(e),s=r?encodeURIComponent(r):void 0,a=n.search===""?"?":n.search,c=[];for(let l of a.slice(1).split("&"))if(l){let[u]=l.split("=",2);u!==i&&c.push(l)}return s&&c.push(`${i}=${s}`),n.search=c.length?`?${c.join("&")}`:"",n.toString()}o(lg,"setURLParameter");function f5(t,e){return new URL(t).searchParams.get(e)??void 0}o(f5,"getURLParameter");function Tpe(t){try{let e=new URL(t);return e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol}catch{return}}o(Tpe,"getURLScheme");function x0(t,e){let r=new URL(t),n=r.search;return n?n+="&"+e:n=e,r.search=n,r.toString()}o(x0,"appendToURLQuery");function kt(t,e=!0){let r=t.toISOString();return e?r.substring(0,r.length-1)+"0000Z":r.substring(0,r.length-5)+"Z"}o(kt,"truncatedISO8061Date");function fst(t){return Qt?Buffer.from(t).toString("base64"):btoa(t)}o(fst,"base64encode");function h5(t,e){t.length>42&&(t=t.slice(0,42));let s=t+hst(e.toString(),48-t.length,"0");return fst(s)}o(h5,"generateBlockID");function hst(t,e,r=" "){return String.prototype.padStart?t.padStart(e,r):(r=r||" ",t.length>e?t:(e=e-t.length,e>r.length&&(r+=r.repeat(e/r.length)),r.slice(0,e)+t))}o(hst,"padStart");function p5(t,e){return t.toLocaleLowerCase()===e.toLocaleLowerCase()}o(p5,"iEqual");function A5(t){let e=new URL(t),r;try{return e.hostname.split(".")[1]==="blob"?r=e.hostname.split(".")[0]:JR(e)?r=e.pathname.split("/")[1]:r="",r}catch{throw new Error("Unable to extract accountName with provided information.")}}o(A5,"getAccountNameFromUrl");function JR(t){let e=t.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(e)||!!t.port&&_he.includes(t.port)}o(JR,"isIpEndpointStyle");function Ud(t){if(t===void 0)return;let e=[];for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)){let n=t[r];e.push(`${encodeURIComponent(r)}=${encodeURIComponent(n)}`)}return e.join("&")}o(Ud,"toBlobTagsString");function Dpe(t){if(t===void 0)return;let e={blobTagSet:[]};for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)){let n=t[r];e.blobTagSet.push({key:r,value:n})}return e}o(Dpe,"toBlobTags");function YR(t){if(t===void 0)return;let e={};for(let r of t.blobTagSet)e[r.key]=r.value;return e}o(YR,"toTags");function m5(t){if(t!==void 0)switch(t.kind){case"csv":return{format:{type:"delimited",delimitedTextConfiguration:{columnSeparator:t.columnSeparator||",",fieldQuote:t.fieldQuote||"",recordSeparator:t.recordSeparator,escapeChar:t.escapeCharacter||"",headersPresent:t.hasHeaders||!1}}};case"json":return{format:{type:"json",jsonTextConfiguration:{recordSeparator:t.recordSeparator}}};case"arrow":return{format:{type:"arrow",arrowConfiguration:{schema:t.schema}}};case"parquet":return{format:{type:"parquet"}};default:throw Error("Invalid BlobQueryTextConfiguration.")}}o(m5,"toQuerySerialization");function KR(t){if(!t||"policy-id"in t)return;let e=[];for(let r in t){let n=r.split("_"),i="or-";n[0].startsWith(i)&&(n[0]=n[0].substring(i.length));let s={ruleId:n[1],replicationStatus:t[r]},a=e.findIndex(c=>c.policyId===n[0]);a>-1?e[a].rules.push(s):e.push({policyId:n[0],rules:[s]})}return e}o(KR,"parseObjectReplicationRecord");function ug(t){return t?t.scheme+" "+t.value:void 0}o(ug,"httpAuthorizationToString");function*g5(t){let e=[],r=[];t.pageRange&&(e=t.pageRange),t.clearRange&&(r=t.clearRange);let n=0,i=0;for(;n0&&n.length>0&&e.push(`${r}=${n}`))}};function v0(t,e,r){return N0(t,e,r).sasQueryParameters}o(v0,"generateBlobSASQueryParameters");function N0(t,e,r){let n=t.version?t.version:fR,i=e instanceof xr?e:void 0,s;if(i===void 0&&r!==void 0&&(s=new uR(r,e)),i===void 0&&s===void 0)throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.");if(n>="2020-12-06")return i!==void 0?mst(t,i):n>="2025-07-05"?Cst(t,s):Est(t,s);if(n>="2018-11-09")return i!==void 0?Ast(t,i):n>="2020-02-10"?yst(t,s):gst(t,s);if(n>="2015-04-05"){if(i!==void 0)return pst(t,i);throw new RangeError("'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.")}throw new RangeError("'version' must be >= '2015-04-05'.")}o(N0,"generateBlobSASQueryParametersInternal");function pst(t,e){if(t=Kh(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c";t.blobName&&(r="b");let n;t.permissions&&(t.blobName?n=zc.parse(t.permissions.toString()).toString():n=Vc.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?kt(t.startsOn,!1):"",t.expiresOn?kt(t.expiresOn,!1):"",Yh(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Qa(t.ipRange):"",t.protocol?t.protocol:"",t.version,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(` -`),s=e.computeHMACSHA256(i);return{sasQueryParameters:new ka(t.version,s,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}o(pst,"generateBlobSASQueryParameters20150405");function Ast(t,e){if(t=Kh(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=zc.parse(t.permissions.toString()).toString():i=Vc.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?kt(t.startsOn,!1):"",t.expiresOn?kt(t.expiresOn,!1):"",Yh(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Qa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(` -`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new ka(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}o(Ast,"generateBlobSASQueryParameters20181109");function mst(t,e){if(t=Kh(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=zc.parse(t.permissions.toString()).toString():i=Vc.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?kt(t.startsOn,!1):"",t.expiresOn?kt(t.expiresOn,!1):"",Yh(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Qa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(` -`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new ka(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:s}}o(mst,"generateBlobSASQueryParameters20201206");function gst(t,e){if(t=Kh(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=zc.parse(t.permissions.toString()).toString():i=Vc.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?kt(t.startsOn,!1):"",t.expiresOn?kt(t.expiresOn,!1):"",Yh(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?kt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?kt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Qa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(` -`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new ka(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:s}}o(gst,"generateBlobSASQueryParametersUDK20181109");function yst(t,e){if(t=Kh(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=zc.parse(t.permissions.toString()).toString():i=Vc.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?kt(t.startsOn,!1):"",t.expiresOn?kt(t.expiresOn,!1):"",Yh(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?kt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?kt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Qa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(` -`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new ka(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:s}}o(yst,"generateBlobSASQueryParametersUDK20200210");function Est(t,e){if(t=Kh(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=zc.parse(t.permissions.toString()).toString():i=Vc.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?kt(t.startsOn,!1):"",t.expiresOn?kt(t.expiresOn,!1):"",Yh(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?kt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?kt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Qa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(` -`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new ka(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:s}}o(Est,"generateBlobSASQueryParametersUDK20201206");function Cst(t,e){if(t=Kh(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=zc.parse(t.permissions.toString()).toString():i=Vc.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?kt(t.startsOn,!1):"",t.expiresOn?kt(t.expiresOn,!1):"",Yh(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?kt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?kt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Qa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(` -`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new ka(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:s}}o(Cst,"generateBlobSASQueryParametersUDK20250705");function Yh(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}o(Yh,"getCanonicalName");function Kh(t){let e=t.version?t.version:fR;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}o(Kh,"SASSignatureValuesSanityCheckAndAutofill");var R0=class{static{o(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=Jm()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ra||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ra||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return ye.withSpan("BlobLeaseClient-acquireLease",r,async n=>xe(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ra||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ra||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return ye.withSpan("BlobLeaseClient-changeLease",r,async n=>{let i=xe(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,i})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Ra||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ra||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return ye.withSpan("BlobLeaseClient-releaseLease",e,async r=>xe(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Ra||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ra||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return ye.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions}))}async breakLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ra||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ra||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return ye.withSpan("BlobLeaseClient-breakLease",r,async n=>{let i={abortSignal:r.abortSignal,breakPeriod:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions};return xe(await this._containerOrBlobOperation.breakLease(i))})}};var kpe=require("node:stream");var XR=class extends kpe.Readable{static{o(this,"RetriableReadableStream")}start;offset;end;getter;source;retries=0;maxRetryRequests;onProgress;options;constructor(e,r,n,i,s={}){super({highWaterMark:s.highWaterMark}),this.getter=r,this.source=e,this.start=n,this.offset=n,this.end=n+i-1,this.maxRetryRequests=s.maxRetryRequests&&s.maxRetryRequests>=0?s.maxRetryRequests:0,this.onProgress=s.onProgress,this.options=s,this.setSourceEventHandlers()}_read(){this.source.resume()}setSourceEventHandlers(){this.source.on("data",this.sourceDataHandler),this.source.on("end",this.sourceErrorOrEndHandler),this.source.on("error",this.sourceErrorOrEndHandler),this.source.on("aborted",this.sourceAbortedHandler)}removeSourceEventHandlers(){this.source.removeListener("data",this.sourceDataHandler),this.source.removeListener("end",this.sourceErrorOrEndHandler),this.source.removeListener("error",this.sourceErrorOrEndHandler),this.source.removeListener("aborted",this.sourceAbortedHandler)}sourceDataHandler=o(e=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=void 0,this.source.pause(),this.sourceErrorOrEndHandler(),this.source.destroy();return}this.offset+=e.length,this.onProgress&&this.onProgress({loadedBytes:this.offset-this.start}),this.push(e)||this.source.pause()},"sourceDataHandler");sourceAbortedHandler=o(()=>{let e=new Vs("The operation was aborted.");this.destroy(e)},"sourceAbortedHandler");sourceErrorOrEndHandler=o(e=>{if(e&&e.name==="AbortError"){this.destroy(e);return}this.removeSourceEventHandlers(),this.offset-1===this.end?this.push(null):this.offset<=this.end?this.retries{this.source=r,this.setSourceEventHandlers()}).catch(r=>{this.destroy(r)})):this.destroy(new Error(`Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: ${this.offset-1}, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${this.maxRetryRequests}`)):this.destroy(new Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset-1}`))},"sourceErrorOrEndHandler");_destroy(e,r){this.removeSourceEventHandlers(),this.source.destroy(),r(e===null?void 0:e)}};var ZR=class{static{o(this,"BlobDownloadResponse")}get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return this.originalResponse.copyCompletedOn}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get tagCount(){return this.originalResponse.tagCount}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get lastAccessed(){return this.originalResponse.lastAccessed}get createdOn(){return this.originalResponse.createdOn}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get versionId(){return this.originalResponse.versionId}get isCurrentVersion(){return this.originalResponse.isCurrentVersion}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get objectReplicationDestinationPolicyId(){return this.originalResponse.objectReplicationDestinationPolicyId}get objectReplicationSourceProperties(){return this.originalResponse.objectReplicationSourceProperties}get isSealed(){return this.originalResponse.isSealed}get immutabilityPolicyExpiresOn(){return this.originalResponse.immutabilityPolicyExpiresOn}get immutabilityPolicyMode(){return this.originalResponse.immutabilityPolicyMode}get legalHold(){return this.originalResponse.legalHold}get contentAsBlob(){return this.originalResponse.blobBody}get readableStreamBody(){return Qt?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,r,n,i,s={}){this.originalResponse=e,this.blobDownloadStream=new XR(this.originalResponse.readableStreamBody,r,n,i,s)}};var Upe=require("node:stream");var y5=new Uint8Array([79,98,106,1]),Ppe="avro.codec",Ope="avro.schema";var gr=class t{static{o(this,"AvroParser")}static async readFixedBytes(e,r,n={}){let i=await e.read(r,{abortSignal:n.abortSignal});if(i.length!==r)throw new Error("Hit stream end.");return i}static async readByte(e,r={}){return(await t.readFixedBytes(e,1,r))[0]}static async readZigZagLong(e,r={}){let n=0,i=0,s,a,c;do s=await t.readByte(e,r),a=s&128,n|=(s&127)<Number.MAX_SAFE_INTEGER)throw new Error("Integer overflow.");return l}return n>>1^-(n&1)}static async readLong(e,r={}){return t.readZigZagLong(e,r)}static async readInt(e,r={}){return t.readZigZagLong(e,r)}static async readNull(){return null}static async readBoolean(e,r={}){let n=await t.readByte(e,r);if(n===1)return!0;if(n===0)return!1;throw new Error("Byte was not a boolean.")}static async readFloat(e,r={}){let n=await t.readFixedBytes(e,4,r);return new DataView(n.buffer,n.byteOffset,n.byteLength).getFloat32(0,!0)}static async readDouble(e,r={}){let n=await t.readFixedBytes(e,8,r);return new DataView(n.buffer,n.byteOffset,n.byteLength).getFloat64(0,!0)}static async readBytes(e,r={}){let n=await t.readLong(e,r);if(n<0)throw new Error("Bytes size was negative.");return e.read(n,{abortSignal:r.abortSignal})}static async readString(e,r={}){let n=await t.readBytes(e,r);return new TextDecoder().decode(n)}static async readMapPair(e,r,n={}){let i=await t.readString(e,n),s=await r(e,n);return{key:i,value:s}}static async readMap(e,r,n={}){let i=o((c,l={})=>t.readMapPair(c,r,l),"readPairMethod"),s=await t.readArray(e,i,n),a={};for(let c of s)a[c.key]=c.value;return a}static async readArray(e,r,n={}){let i=[];for(let s=await t.readLong(e,n);s!==0;s=await t.readLong(e,n))for(s<0&&(await t.readLong(e,n),s=-s);s--;){let a=await r(e,n);i.push(a)}return i}},Xh;(function(t){t.RECORD="record",t.ENUM="enum",t.ARRAY="array",t.MAP="map",t.UNION="union",t.FIXED="fixed"})(Xh||(Xh={}));var _n;(function(t){t.NULL="null",t.BOOLEAN="boolean",t.INT="int",t.LONG="long",t.FLOAT="float",t.DOUBLE="double",t.BYTES="bytes",t.STRING="string"})(_n||(_n={}));var Eu=class t{static{o(this,"AvroType")}static fromSchema(e){return typeof e=="string"?t.fromStringSchema(e):Array.isArray(e)?t.fromArraySchema(e):t.fromObjectSchema(e)}static fromStringSchema(e){switch(e){case _n.NULL:case _n.BOOLEAN:case _n.INT:case _n.LONG:case _n.FLOAT:case _n.DOUBLE:case _n.BYTES:case _n.STRING:return new E5(e);default:throw new Error(`Unexpected Avro type ${e}`)}}static fromArraySchema(e){return new b5(e.map(t.fromSchema))}static fromObjectSchema(e){let r=e.type;try{return t.fromStringSchema(r)}catch{}switch(r){case Xh.RECORD:if(e.aliases)throw new Error(`aliases currently is not supported, schema: ${e}`);if(!e.name)throw new Error(`Required attribute 'name' doesn't exist on schema: ${e}`);let n={};if(!e.fields)throw new Error(`Required attribute 'fields' doesn't exist on schema: ${e}`);for(let i of e.fields)n[i.name]=t.fromSchema(i.type);return new I5(n,e.name);case Xh.ENUM:if(e.aliases)throw new Error(`aliases currently is not supported, schema: ${e}`);if(!e.symbols)throw new Error(`Required attribute 'symbols' doesn't exist on schema: ${e}`);return new C5(e.symbols);case Xh.MAP:if(!e.values)throw new Error(`Required attribute 'values' doesn't exist on schema: ${e}`);return new w5(t.fromSchema(e.values));case Xh.ARRAY:case Xh.FIXED:default:throw new Error(`Unexpected Avro type ${r} in ${e}`)}}},E5=class extends Eu{static{o(this,"AvroPrimitiveType")}_primitive;constructor(e){super(),this._primitive=e}read(e,r={}){switch(this._primitive){case _n.NULL:return gr.readNull();case _n.BOOLEAN:return gr.readBoolean(e,r);case _n.INT:return gr.readInt(e,r);case _n.LONG:return gr.readLong(e,r);case _n.FLOAT:return gr.readFloat(e,r);case _n.DOUBLE:return gr.readDouble(e,r);case _n.BYTES:return gr.readBytes(e,r);case _n.STRING:return gr.readString(e,r);default:throw new Error("Unknown Avro Primitive")}}},C5=class extends Eu{static{o(this,"AvroEnumType")}_symbols;constructor(e){super(),this._symbols=e}async read(e,r={}){let n=await gr.readInt(e,r);return this._symbols[n]}},b5=class extends Eu{static{o(this,"AvroUnionType")}_types;constructor(e){super(),this._types=e}async read(e,r={}){let n=await gr.readInt(e,r);return this._types[n].read(e,r)}},w5=class extends Eu{static{o(this,"AvroMapType")}_itemType;constructor(e){super(),this._itemType=e}read(e,r={}){let n=o((i,s)=>this._itemType.read(i,s),"readItemMethod");return gr.readMap(e,n,r)}},I5=class extends Eu{static{o(this,"AvroRecordType")}_name;_fields;constructor(e,r){super(),this._fields=e,this._name=r}async read(e,r={}){let n={};n.$schema=this._name;for(let i in this._fields)Object.prototype.hasOwnProperty.call(this._fields,i)&&(n[i]=await this._fields[i].read(e,r));return n}};function S5(t,e){if(t===e)return!0;if(t==null||e==null||t.length!==e.length)return!1;for(let r=0;r0)for(let s=0;s0}async*parseObjects(e={}){for(this._initialized||await this.initialize(e);this.hasNext();){let r=await this._itemType.read(this._dataStream,{abortSignal:e.abortSignal});if(this._itemsRemainingInBlock--,this._objectIndex++,this._itemsRemainingInBlock===0){let n=await gr.readFixedBytes(this._dataStream,16,{abortSignal:e.abortSignal});if(this._blockOffset=this._initialBlockOffset+this._dataStream.position,this._objectIndex=0,!S5(this._syncMarker,n))throw new Error("Stream is not a valid Avro file.");try{this._itemsRemainingInBlock=await gr.readLong(this._dataStream,{abortSignal:e.abortSignal})}catch{this._itemsRemainingInBlock=0}this._itemsRemainingInBlock>0&&await gr.readLong(this._dataStream,{abortSignal:e.abortSignal})}yield r}}};var T0=class{static{o(this,"AvroReadable")}};var Mpe=require("buffer");var Fpe=new Vs("Reading from the avro stream was aborted."),D0=class extends T0{static{o(this,"AvroReadableFromStream")}_position;_readable;toUint8Array(e){return typeof e=="string"?Mpe.Buffer.from(e):e}constructor(e){super(),this._readable=e,this._position=0}get position(){return this._position}async read(e,r={}){if(r.abortSignal?.aborted)throw Fpe;if(e<0)throw new Error(`size parameter should be positive: ${e}`);if(e===0)return new Uint8Array;if(!this._readable.readable)throw new Error("Stream no longer readable.");let n=this._readable.read(e);return n?(this._position+=n.length,this.toUint8Array(n)):new Promise((i,s)=>{let a=o(()=>{this._readable.removeListener("readable",c),this._readable.removeListener("error",l),this._readable.removeListener("end",l),this._readable.removeListener("close",l),r.abortSignal&&r.abortSignal.removeEventListener("abort",u)},"cleanUp"),c=o(()=>{let d=this._readable.read(e);d&&(this._position+=d.length,a(),i(this.toUint8Array(d)))},"readableCallback"),l=o(()=>{a(),s()},"rejectCallback"),u=o(()=>{a(),s(Fpe)},"abortHandler");this._readable.on("readable",c),this._readable.once("error",l),this._readable.once("end",l),this._readable.once("close",l),r.abortSignal&&r.abortSignal.addEventListener("abort",u)})}};var e_=class extends Upe.Readable{static{o(this,"BlobQuickQueryStream")}source;avroReader;avroIter;avroPaused=!0;onProgress;onError;constructor(e,r={}){super(),this.source=e,this.onProgress=r.onProgress,this.onError=r.onError,this.avroReader=new _0(new D0(this.source)),this.avroIter=this.avroReader.parseObjects({abortSignal:r.abortSignal})}_read(){this.avroPaused&&this.readInternal().catch(e=>{this.emit("error",e)})}async readInternal(){this.avroPaused=!1;let e;do{if(e=await this.avroIter.next(),e.done)break;let r=e.value,n=r.$schema;if(typeof n!="string")throw Error("Missing schema in avro record.");switch(n){case"com.microsoft.azure.storage.queryBlobContents.resultData":{let i=r.data;if(!(i instanceof Uint8Array))throw Error("Invalid data in avro result record.");this.push(Buffer.from(i))||(this.avroPaused=!0)}break;case"com.microsoft.azure.storage.queryBlobContents.progress":{let i=r.bytesScanned;if(typeof i!="number")throw Error("Invalid bytesScanned in avro progress record.");this.onProgress&&this.onProgress({loadedBytes:i})}break;case"com.microsoft.azure.storage.queryBlobContents.end":if(this.onProgress){let i=r.totalBytes;if(typeof i!="number")throw Error("Invalid totalBytes in avro end record.");this.onProgress({loadedBytes:i})}this.push(null);break;case"com.microsoft.azure.storage.queryBlobContents.error":if(this.onError){let i=r.fatal;if(typeof i!="boolean")throw Error("Invalid fatal in avro error record.");let s=r.name;if(typeof s!="string")throw Error("Invalid name in avro error record.");let a=r.description;if(typeof a!="string")throw Error("Invalid description in avro error record.");let c=r.position;if(typeof c!="number")throw Error("Invalid position in avro error record.");this.onError({position:c,name:s,isFatal:i,description:a})}break;default:throw Error(`Unknown schema ${n} in avro progress record.`)}}while(!e.done&&!this.avroPaused)}};var t_=class{static{o(this,"BlobQueryResponse")}get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get blobBody(){}get readableStreamBody(){return Qt?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,r={}){this.originalResponse=e,this.blobDownloadStream=new e_(this.originalResponse.readableStreamBody,r)}};var B5;(function(t){t.Hot="Hot",t.Cool="Cool",t.Cold="Cold",t.Archive="Archive"})(B5||(B5={}));var x5;(function(t){t.P4="P4",t.P6="P6",t.P10="P10",t.P15="P15",t.P20="P20",t.P30="P30",t.P40="P40",t.P50="P50",t.P60="P60",t.P70="P70",t.P80="P80"})(x5||(x5={}));function qd(t){if(t!==void 0)return t}o(qd,"toAccessTier");function pn(t,e){if(t&&!e)throw new RangeError("Customer-provided encryption key must be used over HTTPS.");t&&!t.encryptionAlgorithm&&(t.encryptionAlgorithm=She)}o(pn,"ensureCpkIfSpecified");var v5;(function(t){t.StorageOAuthScopes="https://storage.azure.com/.default",t.DiskComputeOAuthScopes="https://disk.compute.azure.com/.default"})(v5||(v5={}));function r_(t){let e=(t._response.parsedBody.pageRange||[]).map(n=>({offset:n.start,count:n.end-n.start})),r=(t._response.parsedBody.clearRange||[]).map(n=>({offset:n.start,count:n.end-n.start}));return{...t,pageRange:e,clearRange:r,_response:{...t._response,parsedBody:{pageRange:e,clearRange:r}}}}o(r_,"rangeResponseFromModel");var BAe=T(SAe(),1);var f_=class extends BAe.Poller{static{o(this,"BlobBeginCopyFromUrlPoller")}intervalInMs;constructor(e){let{blobClient:r,copySource:n,intervalInMs:i=15e3,onProgress:s,resumeFrom:a,startCopyFromURLOptions:c}=e,l;a&&(l=JSON.parse(a).state);let u=O0({...l,blobClient:r,copySource:n,startCopyFromURLOptions:c});super(u),typeof s=="function"&&this.onProgress(s),this.intervalInMs=i}delay(){return Wb(this.intervalInMs)}},got=o(async function(e={}){let r=this.state,{copyId:n}=r;return r.isCompleted?O0(r):n?(await r.blobClient.abortCopyFromURL(n,{abortSignal:e.abortSignal}),r.isCancelled=!0,O0(r)):(r.isCancelled=!0,O0(r))},"cancel"),yot=o(async function(e={}){let r=this.state,{blobClient:n,copySource:i,startCopyFromURLOptions:s}=r;if(r.isStarted){if(!r.isCompleted)try{let a=await r.blobClient.getProperties({abortSignal:e.abortSignal}),{copyStatus:c,copyProgress:l}=a,u=r.copyProgress;l&&(r.copyProgress=l),c==="pending"&&l!==u&&typeof e.fireProgress=="function"?e.fireProgress(r):c==="success"?(r.result=a,r.isCompleted=!0):c==="failed"&&(r.error=new Error(`Blob copy failed with reason: "${a.copyStatusDescription||"unknown"}"`),r.isCompleted=!0)}catch(a){r.error=a,r.isCompleted=!0}}else{r.isStarted=!0;let a=await n.startCopyFromURL(i,s);r.copyId=a.copyId,a.copyStatus==="success"&&(r.result=a,r.isCompleted=!0)}return O0(r)},"update"),Eot=o(function(){return JSON.stringify({state:this.state},(e,r)=>{if(e!=="blobClient")return r})},"toString");function O0(t){return{state:{...t},cancel:got,toString:Eot,update:yot}}o(O0,"makeBlobBeginCopyFromURLPollOperation");function us(t){if(t.offset<0)throw new RangeError("Range.offset cannot be smaller than 0.");if(t.count&&t.count<=0)throw new RangeError("Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.");return t.count?`bytes=${t.offset}-${t.offset+t.count-1}`:`bytes=${t.offset}-`}o(us,"rangeToString");var xAe=require("events");var L0;(function(t){t[t.Good=0]="Good",t[t.Error=1]="Error"})(L0||(L0={}));var F0=class{static{o(this,"Batch")}concurrency;actives=0;completed=0;offset=0;operations=[];state=L0.Good;emitter;constructor(e=5){if(e<1)throw new RangeError("concurrency must be larger than 0");this.concurrency=e,this.emitter=new xAe.EventEmitter}addOperation(e){this.operations.push(async()=>{try{this.actives++,await e(),this.actives--,this.completed++,this.parallelExecute()}catch(r){this.emitter.emit("error",r)}})}async do(){return this.operations.length===0?Promise.resolve():(this.parallelExecute(),new Promise((e,r)=>{this.emitter.on("finish",e),this.emitter.on("error",n=>{this.state=L0.Error,r(n)})}))}nextOperation(){return this.offset=this.operations.length){this.emitter.emit("finish");return}for(;this.actives{let u=setTimeout(()=>l(new Error("The operation cannot be completed in timeout.")),1e5);t.on("readable",()=>{if(s>=a){clearTimeout(u),c();return}let d=t.read();if(!d)return;typeof d=="string"&&(d=Buffer.from(d,i));let f=s+d.length>a?a-s:d.length;e.fill(d.slice(0,f),r+s,r+s+f),s+=f}),t.on("end",()=>{clearTimeout(u),s{clearTimeout(u),l(d)})})}o(NAe,"streamToBuffer");async function RAe(t,e){return new Promise((r,n)=>{let i=h_.default.createWriteStream(e);t.on("error",s=>{n(s)}),i.on("error",s=>{n(s)}),i.on("close",r),t.pipe(i)})}o(RAe,"readStreamToLocalFile");var _Ae=vAe.default.promisify(h_.default.stat),TAe=h_.default.createReadStream;var Pa=class t extends dg{static{o(this,"BlobClient")}blobContext;_name;_containerName;_versionId;_snapshot;get name(){return this._name}get containerName(){return this._containerName}constructor(e,r,n,i){i=i||{};let s,a;if(hu(r))a=e,s=r;else if(Qt&&r instanceof xr||r instanceof dr||$s(r))a=e,i=n,s=Gr(r,i);else if(!r&&typeof r!="string")a=e,n&&typeof n!="string"&&(i=n),s=Gr(new dr,i);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=Jh(e);if(u.kind==="AccountConnString")if(Qt){let d=new xr(u.accountName,u.accountKey);a=hn(hn(u.url,encodeURIComponent(c)),encodeURIComponent(l)),i.proxyOptions||(i.proxyOptions=Dd(u.proxyUri)),s=Gr(d,i)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=hn(hn(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,s=Gr(new dr,i);else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}else throw new Error("Expecting non-empty strings for containerName and blobName parameters");super(a,s),{blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl(),this.blobContext=this.storageClientContext.blob,this._snapshot=f5(this.url,fu.Parameters.SNAPSHOT),this._versionId=f5(this.url,fu.Parameters.VERSIONID)}withSnapshot(e){return new t(lg(this.url,fu.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}withVersion(e){return new t(lg(this.url,fu.Parameters.VERSIONID,e.length===0?void 0:e),this.pipeline)}getAppendBlobClient(){return new A_(this.url,this.pipeline)}getBlockBlobClient(){return new pg(this.url,this.pipeline)}getPageBlobClient(){return new m_(this.url,this.pipeline)}async download(e=0,r,n={}){return n.conditions=n.conditions||{},n.conditions=n.conditions||{},pn(n.customerProvidedKey,this.isHttps),ye.withSpan("BlobClient-download",n,async i=>{let s=xe(await this.blobContext.download({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onDownloadProgress:Qt?void 0:n.onProgress},range:e===0&&!r?void 0:us({offset:e,count:r}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey,tracingOptions:i.tracingOptions})),a={...s,_response:s._response,objectReplicationDestinationPolicyId:s.objectReplicationPolicyId,objectReplicationSourceProperties:KR(s.objectReplicationRules)};if(!Qt)return a;if((n.maxRetryRequests===void 0||n.maxRetryRequests<0)&&(n.maxRetryRequests=5),s.contentLength===void 0)throw new RangeError("File download response doesn't contain valid content length header");if(!s.etag)throw new RangeError("File download response doesn't contain valid etag header");return new ZR(a,async c=>{let l={leaseAccessConditions:n.conditions,modifiedAccessConditions:{ifMatch:n.conditions.ifMatch||s.etag,ifModifiedSince:n.conditions.ifModifiedSince,ifNoneMatch:n.conditions.ifNoneMatch,ifUnmodifiedSince:n.conditions.ifUnmodifiedSince,ifTags:n.conditions?.tagConditions},range:us({count:e+s.contentLength-c,offset:c}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey};return(await this.blobContext.download({abortSignal:n.abortSignal,...l})).readableStreamBody},e,s.contentLength,{maxRetryRequests:n.maxRetryRequests,onProgress:n.onProgress})})}async exists(e={}){return ye.withSpan("BlobClient-exists",e,async r=>{try{return pn(e.customerProvidedKey,this.isHttps),await this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,conditions:e.conditions,tracingOptions:r.tracingOptions}),!0}catch(n){if(n.statusCode===404)return!1;if(n.statusCode===409&&(n.details.errorCode===Nhe||n.details.errorCode===Rhe))return!0;throw n}})}async getProperties(e={}){return e.conditions=e.conditions||{},pn(e.customerProvidedKey,this.isHttps),ye.withSpan("BlobClient-getProperties",e,async r=>{let n=xe(await this.blobContext.getProperties({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,tracingOptions:r.tracingOptions}));return{...n,_response:n._response,objectReplicationDestinationPolicyId:n.objectReplicationPolicyId,objectReplicationSourceProperties:KR(n.objectReplicationRules)}})}async delete(e={}){return e.conditions=e.conditions||{},ye.withSpan("BlobClient-delete",e,async r=>xe(await this.blobContext.delete({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async deleteIfExists(e={}){return ye.withSpan("BlobClient-deleteIfExists",e,async r=>{try{let n=xe(await this.delete(r));return{succeeded:!0,...n,_response:n._response}}catch(n){if(n.details?.errorCode==="BlobNotFound")return{succeeded:!1,...n.response?.parsedHeaders,_response:n.response};throw n}})}async undelete(e={}){return ye.withSpan("BlobClient-undelete",e,async r=>xe(await this.blobContext.undelete({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async setHTTPHeaders(e,r={}){return r.conditions=r.conditions||{},pn(r.customerProvidedKey,this.isHttps),ye.withSpan("BlobClient-setHTTPHeaders",r,async n=>xe(await this.blobContext.setHttpHeaders({abortSignal:r.abortSignal,blobHttpHeaders:e,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}async setMetadata(e,r={}){return r.conditions=r.conditions||{},pn(r.customerProvidedKey,this.isHttps),ye.withSpan("BlobClient-setMetadata",r,async n=>xe(await this.blobContext.setMetadata({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,metadata:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:n.tracingOptions})))}async setTags(e,r={}){return ye.withSpan("BlobClient-setTags",r,async n=>xe(await this.blobContext.setTags({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},blobModifiedAccessConditions:r.conditions,tracingOptions:n.tracingOptions,tags:Dpe(e)})))}async getTags(e={}){return ye.withSpan("BlobClient-getTags",e,async r=>{let n=xe(await this.blobContext.getTags({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},blobModifiedAccessConditions:e.conditions,tracingOptions:r.tracingOptions}));return{...n,_response:n._response,tags:YR({blobTagSet:n.blobTagSet})||{}}})}getBlobLeaseClient(e){return new R0(this,e)}async createSnapshot(e={}){return e.conditions=e.conditions||{},pn(e.customerProvidedKey,this.isHttps),ye.withSpan("BlobClient-createSnapshot",e,async r=>xe(await this.blobContext.createSnapshot({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,tracingOptions:r.tracingOptions})))}async beginCopyFromURL(e,r={}){let n={abortCopyFromURL:o((...s)=>this.abortCopyFromURL(...s),"abortCopyFromURL"),getProperties:o((...s)=>this.getProperties(...s),"getProperties"),startCopyFromURL:o((...s)=>this.startCopyFromURL(...s),"startCopyFromURL")},i=new f_({blobClient:n,copySource:e,intervalInMs:r.intervalInMs,onProgress:r.onProgress,resumeFrom:r.resumeFrom,startCopyFromURLOptions:r});return await i.poll(),i}async abortCopyFromURL(e,r={}){return ye.withSpan("BlobClient-abortCopyFromURL",r,async n=>xe(await this.blobContext.abortCopyFromURL(e,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,tracingOptions:n.tracingOptions})))}async syncCopyFromURL(e,r={}){return r.conditions=r.conditions||{},r.sourceConditions=r.sourceConditions||{},ye.withSpan("BlobClient-syncCopyFromURL",r,async n=>xe(await this.blobContext.copyFromURL(e,{abortSignal:r.abortSignal,metadata:r.metadata,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:r.sourceConditions?.ifMatch,sourceIfModifiedSince:r.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:r.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:r.sourceConditions?.ifUnmodifiedSince},sourceContentMD5:r.sourceContentMD5,copySourceAuthorization:ug(r.sourceAuthorization),tier:qd(r.tier),blobTagsString:Ud(r.tags),immutabilityPolicyExpiry:r.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:r.immutabilityPolicy?.policyMode,legalHold:r.legalHold,encryptionScope:r.encryptionScope,copySourceTags:r.copySourceTags,fileRequestIntent:r.sourceShareTokenIntent,tracingOptions:n.tracingOptions})))}async setAccessTier(e,r={}){return ye.withSpan("BlobClient-setAccessTier",r,async n=>xe(await this.blobContext.setTier(qd(e),{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},rehydratePriority:r.rehydratePriority,tracingOptions:n.tracingOptions})))}async downloadToBuffer(e,r,n,i={}){let s,a=0,c=0,l=i;e instanceof Buffer?(s=e,a=r||0,c=typeof n=="number"?n:0):(a=typeof e=="number"?e:0,c=typeof r=="number"?r:0,l=n||{});let u=l.blockSize??0;if(u<0)throw new RangeError("blockSize option must be >= 0");if(u===0&&(u=4194304),a<0)throw new RangeError("offset option must be >= 0");if(c&&c<=0)throw new RangeError("count option must be greater than 0");return l.conditions||(l.conditions={}),ye.withSpan("BlobClient-downloadToBuffer",l,async d=>{if(!c){let p=await this.getProperties({...l,tracingOptions:d.tracingOptions});if(c=p.contentLength-a,c<0)throw new RangeError(`offset ${a} shouldn't be larger than blob size ${p.contentLength}`)}if(!s)try{s=Buffer.alloc(c)}catch(p){throw new Error(`Unable to allocate the buffer of size: ${c}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile". ${p.message}`)}if(s.length{let m=a+c;p+u{let a=await this.download(r,n,{...i,tracingOptions:s.tracingOptions});return a.readableStreamBody&&await RAe(a.readableStreamBody,e),a.blobDownloadStream=void 0,a})}getBlobAndContainerNamesFromUrl(){let e,r;try{let n=new URL(this.url);if(n.host.split(".")[1]==="blob"){let i=n.pathname.match("/([^/]*)(/(.*))?");e=i[1],r=i[3]}else if(JR(n)){let i=n.pathname.match("/([^/]*)/([^/]*)(/(.*))?");e=i[2],r=i[4]}else{let i=n.pathname.match("/([^/]*)(/(.*))?");e=i[1],r=i[3]}if(e=decodeURIComponent(e),r=decodeURIComponent(r),r=r.replace(/\\/g,"/"),!e)throw new Error("Provided containerName is invalid.");return{blobName:r,containerName:e}}catch{throw new Error("Unable to extract blobName and containerName with provided information.")}}async startCopyFromURL(e,r={}){return ye.withSpan("BlobClient-startCopyFromURL",r,async n=>(r.conditions=r.conditions||{},r.sourceConditions=r.sourceConditions||{},xe(await this.blobContext.startCopyFromURL(e,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:r.sourceConditions.ifMatch,sourceIfModifiedSince:r.sourceConditions.ifModifiedSince,sourceIfNoneMatch:r.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:r.sourceConditions.ifUnmodifiedSince,sourceIfTags:r.sourceConditions.tagConditions},immutabilityPolicyExpiry:r.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:r.immutabilityPolicy?.policyMode,legalHold:r.legalHold,rehydratePriority:r.rehydratePriority,tier:qd(r.tier),blobTagsString:Ud(r.tags),sealBlob:r.sealBlob,tracingOptions:n.tracingOptions}))))}generateSasUrl(e){return new Promise(r=>{if(!(this.credential instanceof xr))throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential");let n=v0({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).toString();r(x0(this.url,n))})}generateSasStringToSign(e){if(!(this.credential instanceof xr))throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential");return N0({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,r){return new Promise(n=>{let i=v0({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},r,this.accountName).toString();n(x0(this.url,i))})}generateUserDelegationSasStringToSign(e,r){return N0({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},r,this.accountName).stringToSign}async deleteImmutabilityPolicy(e={}){return ye.withSpan("BlobClient-deleteImmutabilityPolicy",e,async r=>xe(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:r.tracingOptions})))}async setImmutabilityPolicy(e,r={}){return ye.withSpan("BlobClient-setImmutabilityPolicy",r,async n=>xe(await this.blobContext.setImmutabilityPolicy({immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,tracingOptions:n.tracingOptions})))}async setLegalHold(e,r={}){return ye.withSpan("BlobClient-setLegalHold",r,async n=>xe(await this.blobContext.setLegalHold(e,{tracingOptions:n.tracingOptions})))}async getAccountInfo(e={}){return ye.withSpan("BlobClient-getAccountInfo",e,async r=>xe(await this.blobContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}},A_=class t extends Pa{static{o(this,"AppendBlobClient")}appendBlobContext;constructor(e,r,n,i){let s,a;if(i=i||{},hu(r))a=e,s=r;else if(Qt&&r instanceof xr||r instanceof dr||$s(r))a=e,i=n,s=Gr(r,i);else if(!r&&typeof r!="string")a=e,s=Gr(new dr,i);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=Jh(e);if(u.kind==="AccountConnString")if(Qt){let d=new xr(u.accountName,u.accountKey);a=hn(hn(u.url,encodeURIComponent(c)),encodeURIComponent(l)),i.proxyOptions||(i.proxyOptions=Dd(u.proxyUri)),s=Gr(d,i)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=hn(hn(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,s=Gr(new dr,i);else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}else throw new Error("Expecting non-empty strings for containerName and blobName parameters");super(a,s),this.appendBlobContext=this.storageClientContext.appendBlob}withSnapshot(e){return new t(lg(this.url,fu.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}async create(e={}){return e.conditions=e.conditions||{},pn(e.customerProvidedKey,this.isHttps),ye.withSpan("AppendBlobClient-create",e,async r=>xe(await this.appendBlobContext.create(0,{abortSignal:e.abortSignal,blobHttpHeaders:e.blobHTTPHeaders,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,immutabilityPolicyExpiry:e.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:e.immutabilityPolicy?.policyMode,legalHold:e.legalHold,blobTagsString:Ud(e.tags),tracingOptions:r.tracingOptions})))}async createIfNotExists(e={}){let r={ifNoneMatch:o3};return ye.withSpan("AppendBlobClient-createIfNotExists",e,async n=>{try{let i=xe(await this.create({...n,conditions:r}));return{succeeded:!0,...i,_response:i._response}}catch(i){if(i.details?.errorCode==="BlobAlreadyExists")return{succeeded:!1,...i.response?.parsedHeaders,_response:i.response};throw i}})}async seal(e={}){return e.conditions=e.conditions||{},ye.withSpan("AppendBlobClient-seal",e,async r=>xe(await this.appendBlobContext.seal({abortSignal:e.abortSignal,appendPositionAccessConditions:e.conditions,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async appendBlock(e,r,n={}){return n.conditions=n.conditions||{},pn(n.customerProvidedKey,this.isHttps),ye.withSpan("AppendBlobClient-appendBlock",n,async i=>xe(await this.appendBlobContext.appendBlock(r,e,{abortSignal:n.abortSignal,appendPositionAccessConditions:n.conditions,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},transactionalContentMD5:n.transactionalContentMD5,transactionalContentCrc64:n.transactionalContentCrc64,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:i.tracingOptions})))}async appendBlockFromURL(e,r,n,i={}){return i.conditions=i.conditions||{},i.sourceConditions=i.sourceConditions||{},pn(i.customerProvidedKey,this.isHttps),ye.withSpan("AppendBlobClient-appendBlockFromURL",i,async s=>xe(await this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:i.abortSignal,sourceRange:us({offset:r,count:n}),sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,leaseAccessConditions:i.conditions,appendPositionAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:i.sourceConditions?.ifMatch,sourceIfModifiedSince:i.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:i.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:i.sourceConditions?.ifUnmodifiedSince},copySourceAuthorization:ug(i.sourceAuthorization),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,fileRequestIntent:i.sourceShareTokenIntent,tracingOptions:s.tracingOptions})))}},pg=class t extends Pa{static{o(this,"BlockBlobClient")}_blobContext;blockBlobContext;constructor(e,r,n,i){let s,a;if(i=i||{},hu(r))a=e,s=r;else if(Qt&&r instanceof xr||r instanceof dr||$s(r))a=e,i=n,s=Gr(r,i);else if(!r&&typeof r!="string")a=e,n&&typeof n!="string"&&(i=n),s=Gr(new dr,i);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=Jh(e);if(u.kind==="AccountConnString")if(Qt){let d=new xr(u.accountName,u.accountKey);a=hn(hn(u.url,encodeURIComponent(c)),encodeURIComponent(l)),i.proxyOptions||(i.proxyOptions=Dd(u.proxyUri)),s=Gr(d,i)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=hn(hn(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,s=Gr(new dr,i);else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}else throw new Error("Expecting non-empty strings for containerName and blobName parameters");super(a,s),this.blockBlobContext=this.storageClientContext.blockBlob,this._blobContext=this.storageClientContext.blob}withSnapshot(e){return new t(lg(this.url,fu.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}async query(e,r={}){if(pn(r.customerProvidedKey,this.isHttps),!Qt)throw new Error("This operation currently is only supported in Node.js.");return ye.withSpan("BlockBlobClient-query",r,async n=>{let i=xe(await this._blobContext.query({abortSignal:r.abortSignal,queryRequest:{queryType:"SQL",expression:e,inputSerialization:m5(r.inputTextConfiguration),outputSerialization:m5(r.outputTextConfiguration)},leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},cpkInfo:r.customerProvidedKey,tracingOptions:n.tracingOptions}));return new t_(i,{abortSignal:r.abortSignal,onProgress:r.onProgress,onError:r.onError})})}async upload(e,r,n={}){return n.conditions=n.conditions||{},pn(n.customerProvidedKey,this.isHttps),ye.withSpan("BlockBlobClient-upload",n,async i=>xe(await this.blockBlobContext.upload(r,e,{abortSignal:n.abortSignal,blobHttpHeaders:n.blobHTTPHeaders,leaseAccessConditions:n.conditions,metadata:n.metadata,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,immutabilityPolicyExpiry:n.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:n.immutabilityPolicy?.policyMode,legalHold:n.legalHold,tier:qd(n.tier),blobTagsString:Ud(n.tags),tracingOptions:i.tracingOptions})))}async syncUploadFromURL(e,r={}){return r.conditions=r.conditions||{},pn(r.customerProvidedKey,this.isHttps),ye.withSpan("BlockBlobClient-syncUploadFromURL",r,async n=>xe(await this.blockBlobContext.putBlobFromUrl(0,e,{...r,blobHttpHeaders:r.blobHTTPHeaders,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:r.sourceConditions?.ifMatch,sourceIfModifiedSince:r.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:r.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:r.sourceConditions?.ifUnmodifiedSince,sourceIfTags:r.sourceConditions?.tagConditions},cpkInfo:r.customerProvidedKey,copySourceAuthorization:ug(r.sourceAuthorization),tier:qd(r.tier),blobTagsString:Ud(r.tags),copySourceTags:r.copySourceTags,fileRequestIntent:r.sourceShareTokenIntent,tracingOptions:n.tracingOptions})))}async stageBlock(e,r,n,i={}){return pn(i.customerProvidedKey,this.isHttps),ye.withSpan("BlockBlobClient-stageBlock",i,async s=>xe(await this.blockBlobContext.stageBlock(e,n,r,{abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,requestOptions:{onUploadProgress:i.onProgress},transactionalContentMD5:i.transactionalContentMD5,transactionalContentCrc64:i.transactionalContentCrc64,cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,tracingOptions:s.tracingOptions})))}async stageBlockFromURL(e,r,n=0,i,s={}){return pn(s.customerProvidedKey,this.isHttps),ye.withSpan("BlockBlobClient-stageBlockFromURL",s,async a=>xe(await this.blockBlobContext.stageBlockFromURL(e,0,r,{abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,sourceContentMD5:s.sourceContentMD5,sourceContentCrc64:s.sourceContentCrc64,sourceRange:n===0&&!i?void 0:us({offset:n,count:i}),cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,copySourceAuthorization:ug(s.sourceAuthorization),fileRequestIntent:s.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async commitBlockList(e,r={}){return r.conditions=r.conditions||{},pn(r.customerProvidedKey,this.isHttps),ye.withSpan("BlockBlobClient-commitBlockList",r,async n=>xe(await this.blockBlobContext.commitBlockList({latest:e},{abortSignal:r.abortSignal,blobHttpHeaders:r.blobHTTPHeaders,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,immutabilityPolicyExpiry:r.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:r.immutabilityPolicy?.policyMode,legalHold:r.legalHold,tier:qd(r.tier),blobTagsString:Ud(r.tags),tracingOptions:n.tracingOptions})))}async getBlockList(e,r={}){return ye.withSpan("BlockBlobClient-getBlockList",r,async n=>{let i=xe(await this.blockBlobContext.getBlockList(e,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return i.committedBlocks||(i.committedBlocks=[]),i.uncommittedBlocks||(i.uncommittedBlocks=[]),i})}async uploadData(e,r={}){return ye.withSpan("BlockBlobClient-uploadData",r,async n=>{if(Qt){let i;return e instanceof Buffer?i=e:e instanceof ArrayBuffer?i=Buffer.from(e):(e=e,i=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),this.uploadSeekableInternal((s,a)=>i.slice(s,s+a),i.byteLength,n)}else{let i=new Blob([e]);return this.uploadSeekableInternal((s,a)=>i.slice(s,s+a),i.size,n)}})}async uploadBrowserData(e,r={}){return ye.withSpan("BlockBlobClient-uploadBrowserData",r,async n=>{let i=new Blob([e]);return this.uploadSeekableInternal((s,a)=>i.slice(s,s+a),i.size,n)})}async uploadSeekableInternal(e,r,n={}){let i=n.blockSize??0;if(i<0||i>4194304e3)throw new RangeError(`blockSize option must be >= 0 and <= ${4194304e3}`);let s=n.maxSingleShotSize??268435456;if(s<0||s>268435456)throw new RangeError(`maxSingleShotSize option must be >= 0 and <= ${268435456}`);if(i===0){if(r>4194304e3*5e4)throw new RangeError(`${r} is too larger to upload to a block blob.`);r>s&&(i=Math.ceil(r/5e4),i<4194304&&(i=4194304))}return n.blobHTTPHeaders||(n.blobHTTPHeaders={}),n.conditions||(n.conditions={}),ye.withSpan("BlockBlobClient-uploadSeekableInternal",n,async a=>{if(r<=s)return xe(await this.upload(e(0,r),r,a));let c=Math.floor((r-1)/i)+1;if(c>5e4)throw new RangeError(`The buffer's size is too big or the BlockSize is too small;the number of blocks must be <= ${5e4}`);let l=[],u=Jm(),d=0,f=new F0(n.concurrency);for(let h=0;h{let p=h5(u,h),m=i*h,E=(h===c-1?r:m+i)-m;l.push(p),await this.stageBlock(p,e(m,E),E,{abortSignal:n.abortSignal,conditions:n.conditions,encryptionScope:n.encryptionScope,tracingOptions:a.tracingOptions}),d+=E,n.onProgress&&n.onProgress({loadedBytes:d})});return await f.do(),this.commitBlockList(l,a)})}async uploadFile(e,r={}){return ye.withSpan("BlockBlobClient-uploadFile",r,async n=>{let i=(await _Ae(e)).size;return this.uploadSeekableInternal((s,a)=>()=>TAe(e,{autoClose:!0,end:a?s+a-1:1/0,start:s}),i,{...r,tracingOptions:n.tracingOptions})})}async uploadStream(e,r=8388608,n=5,i={}){return i.blobHTTPHeaders||(i.blobHTTPHeaders={}),i.conditions||(i.conditions={}),ye.withSpan("BlockBlobClient-uploadStream",i,async s=>{let a=0,c=Jm(),l=0,u=[];return await new iR(e,r,n,async(f,h)=>{let p=h5(c,a);u.push(p),a++,await this.stageBlock(p,f,h,{customerProvidedKey:i.customerProvidedKey,conditions:i.conditions,encryptionScope:i.encryptionScope,tracingOptions:s.tracingOptions}),l+=h,i.onProgress&&i.onProgress({loadedBytes:l})},Math.ceil(n/4*3)).do(),xe(await this.commitBlockList(u,{...i,tracingOptions:s.tracingOptions}))})}},m_=class t extends Pa{static{o(this,"PageBlobClient")}pageBlobContext;constructor(e,r,n,i){let s,a;if(i=i||{},hu(r))a=e,s=r;else if(Qt&&r instanceof xr||r instanceof dr||$s(r))a=e,i=n,s=Gr(r,i);else if(!r&&typeof r!="string")a=e,s=Gr(new dr,i);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=Jh(e);if(u.kind==="AccountConnString")if(Qt){let d=new xr(u.accountName,u.accountKey);a=hn(hn(u.url,encodeURIComponent(c)),encodeURIComponent(l)),i.proxyOptions||(i.proxyOptions=Dd(u.proxyUri)),s=Gr(d,i)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=hn(hn(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,s=Gr(new dr,i);else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}else throw new Error("Expecting non-empty strings for containerName and blobName parameters");super(a,s),this.pageBlobContext=this.storageClientContext.pageBlob}withSnapshot(e){return new t(lg(this.url,fu.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}async create(e,r={}){return r.conditions=r.conditions||{},pn(r.customerProvidedKey,this.isHttps),ye.withSpan("PageBlobClient-create",r,async n=>xe(await this.pageBlobContext.create(0,e,{abortSignal:r.abortSignal,blobHttpHeaders:r.blobHTTPHeaders,blobSequenceNumber:r.blobSequenceNumber,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,immutabilityPolicyExpiry:r.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:r.immutabilityPolicy?.policyMode,legalHold:r.legalHold,tier:qd(r.tier),blobTagsString:Ud(r.tags),tracingOptions:n.tracingOptions})))}async createIfNotExists(e,r={}){return ye.withSpan("PageBlobClient-createIfNotExists",r,async n=>{try{let i={ifNoneMatch:o3},s=xe(await this.create(e,{...r,conditions:i,tracingOptions:n.tracingOptions}));return{succeeded:!0,...s,_response:s._response}}catch(i){if(i.details?.errorCode==="BlobAlreadyExists")return{succeeded:!1,...i.response?.parsedHeaders,_response:i.response};throw i}})}async uploadPages(e,r,n,i={}){return i.conditions=i.conditions||{},pn(i.customerProvidedKey,this.isHttps),ye.withSpan("PageBlobClient-uploadPages",i,async s=>xe(await this.pageBlobContext.uploadPages(n,e,{abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},requestOptions:{onUploadProgress:i.onProgress},range:us({offset:r,count:n}),sequenceNumberAccessConditions:i.conditions,transactionalContentMD5:i.transactionalContentMD5,transactionalContentCrc64:i.transactionalContentCrc64,cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,tracingOptions:s.tracingOptions})))}async uploadPagesFromURL(e,r,n,i,s={}){return s.conditions=s.conditions||{},s.sourceConditions=s.sourceConditions||{},pn(s.customerProvidedKey,this.isHttps),ye.withSpan("PageBlobClient-uploadPagesFromURL",s,async a=>xe(await this.pageBlobContext.uploadPagesFromURL(e,us({offset:r,count:i}),0,us({offset:n,count:i}),{abortSignal:s.abortSignal,sourceContentMD5:s.sourceContentMD5,sourceContentCrc64:s.sourceContentCrc64,leaseAccessConditions:s.conditions,sequenceNumberAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:s.sourceConditions?.ifMatch,sourceIfModifiedSince:s.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:s.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:s.sourceConditions?.ifUnmodifiedSince},cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,copySourceAuthorization:ug(s.sourceAuthorization),fileRequestIntent:s.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async clearPages(e=0,r,n={}){return n.conditions=n.conditions||{},ye.withSpan("PageBlobClient-clearPages",n,async i=>xe(await this.pageBlobContext.clearPages(0,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:us({offset:e,count:r}),sequenceNumberAccessConditions:n.conditions,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:i.tracingOptions})))}async getPageRanges(e=0,r,n={}){return n.conditions=n.conditions||{},ye.withSpan("PageBlobClient-getPageRanges",n,async i=>{let s=xe(await this.pageBlobContext.getPageRanges({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:us({offset:e,count:r}),tracingOptions:i.tracingOptions}));return r_(s)})}async listPageRangesSegment(e=0,r,n,i={}){return ye.withSpan("PageBlobClient-getPageRangesSegment",i,async s=>xe(await this.pageBlobContext.getPageRanges({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},range:us({offset:e,count:r}),marker:n,maxPageSize:i.maxPageSize,tracingOptions:s.tracingOptions})))}async*listPageRangeItemSegments(e=0,r,n,i={}){let s;if(n||n===void 0)do s=await this.listPageRangesSegment(e,r,n,i),n=s.continuationToken,yield await s;while(n)}async*listPageRangeItems(e=0,r,n={}){let i;for await(let s of this.listPageRangeItemSegments(e,r,i,n))yield*g5(s)}listPageRanges(e=0,r,n={}){n.conditions=n.conditions||{};let i=this.listPageRangeItems(e,r,n);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:o((s={})=>this.listPageRangeItemSegments(e,r,s.continuationToken,{maxPageSize:s.maxPageSize,...n}),"byPage")}}async getPageRangesDiff(e,r,n,i={}){return i.conditions=i.conditions||{},ye.withSpan("PageBlobClient-getPageRangesDiff",i,async s=>{let a=xe(await this.pageBlobContext.getPageRangesDiff({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},prevsnapshot:n,range:us({offset:e,count:r}),tracingOptions:s.tracingOptions}));return r_(a)})}async listPageRangesDiffSegment(e,r,n,i,s={}){return ye.withSpan("PageBlobClient-getPageRangesDiffSegment",s,async a=>xe(await this.pageBlobContext.getPageRangesDiff({abortSignal:s?.abortSignal,leaseAccessConditions:s?.conditions,modifiedAccessConditions:{...s?.conditions,ifTags:s?.conditions?.tagConditions},prevsnapshot:n,range:us({offset:e,count:r}),marker:i,maxPageSize:s?.maxPageSize,tracingOptions:a.tracingOptions})))}async*listPageRangeDiffItemSegments(e,r,n,i,s){let a;if(i||i===void 0)do a=await this.listPageRangesDiffSegment(e,r,n,i,s),i=a.continuationToken,yield await a;while(i)}async*listPageRangeDiffItems(e,r,n,i){let s;for await(let a of this.listPageRangeDiffItemSegments(e,r,n,s,i))yield*g5(a)}listPageRangesDiff(e,r,n,i={}){i.conditions=i.conditions||{};let s=this.listPageRangeDiffItems(e,r,n,{...i});return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:o((a={})=>this.listPageRangeDiffItemSegments(e,r,n,a.continuationToken,{maxPageSize:a.maxPageSize,...i}),"byPage")}}async getPageRangesDiffForManagedDisks(e,r,n,i={}){return i.conditions=i.conditions||{},ye.withSpan("PageBlobClient-GetPageRangesDiffForManagedDisks",i,async s=>{let a=xe(await this.pageBlobContext.getPageRangesDiff({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},prevSnapshotUrl:n,range:us({offset:e,count:r}),tracingOptions:s.tracingOptions}));return r_(a)})}async resize(e,r={}){return r.conditions=r.conditions||{},ye.withSpan("PageBlobClient-resize",r,async n=>xe(await this.pageBlobContext.resize(e,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},encryptionScope:r.encryptionScope,tracingOptions:n.tracingOptions})))}async updateSequenceNumber(e,r,n={}){return n.conditions=n.conditions||{},ye.withSpan("PageBlobClient-updateSequenceNumber",n,async i=>xe(await this.pageBlobContext.updateSequenceNumber(e,{abortSignal:n.abortSignal,blobSequenceNumber:r,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:i.tracingOptions})))}async startCopyIncremental(e,r={}){return ye.withSpan("PageBlobClient-startCopyIncremental",r,async n=>xe(await this.pageBlobContext.copyIncremental(e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}};var DAe;(function(t){t[t.LOCKED=0]="LOCKED",t[t.UNLOCKED=1]="UNLOCKED"})(DAe||(DAe={}));var QAe;(function(t){t.AES256="AES256"})(QAe||(QAe={}));var g_=class extends Error{static{o(this,"InvalidResponseError")}constructor(e){super(e),this.name="InvalidResponseError"}};var Ag=class extends Error{static{o(this,"NetworkError")}constructor(e){let r=`Unable to make request: ${e} -If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};Ag.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var tp=class extends Error{static{o(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. -More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};tp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var M0=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var _ot=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},K5=class{static{o(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,i=(e/(1024*1024)/(n/1e3)).toFixed(1);D(`Sent ${e} of ${this.contentLength} (${r}%), ${i} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function kAe(t,e,r){return _ot(this,void 0,void 0,function*(){var n;let i=new Pa(t),s=i.getBlockBlobClient(),a=new K5((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),v(`BlobClient: ${i.name}:${i.accountName}:${i.containerName}`);let l=yield s.uploadFile(e,c);if(l._response.status>=400)throw new g_(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw Ge(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}o(kAe,"uploadCacheArchiveSDK");var OAe=T(require("buffer"),1),$c=T(require("fs"),1),LAe=T(require("stream"),1),FAe=T(require("util"),1);var y_=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function E_(t){return t?t>=200&&t<300:!1}o(E_,"isSuccessStatusCode");function Tot(t){return t?t>=500:!0}o(Tot,"isServerErrorStatusCode");function Dot(t){return t?[Br.BadGateway,Br.ServiceUnavailable,Br.GatewayTimeout].includes(t):!1}o(Dot,"isRetryableStatusCode");function Qot(t){return y_(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(Qot,"sleep");function PAe(t,e,r){return y_(this,arguments,void 0,function*(n,i,s,a=Gv,c=Hv,l=void 0){let u="",d=1;for(;d<=a;){let f,h,p=!1;try{f=yield i()}catch(m){l&&(f=l(m)),p=!0,u=m.message}if(f&&(h=s(f),!Tot(h)))return f;if(h&&(p=Dot(h),u=`Cache service responded with ${h}`),v(`${n} - Attempt ${d} of ${a} failed with error: ${u}`),!p){v(`${n} - Error is not retryable`);break}yield Qot(c),d++}throw Error(`${n} failed: ${u}`)})}o(PAe,"retry");function U0(t,e){return y_(this,arguments,void 0,function*(r,n,i=Gv,s=Hv){return yield PAe(r,n,a=>a.statusCode,i,s,a=>{if(a instanceof yc)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(U0,"retryTypedResponse");function mg(t,e){return y_(this,arguments,void 0,function*(r,n,i=Gv,s=Hv){return yield PAe(r,n,a=>a.message.statusCode,i,s)})}o(mg,"retryHttpClientResponse");var Lo=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function kot(t,e){return Lo(this,void 0,void 0,function*(){yield FAe.promisify(LAe.pipeline)(t.message,e)})}o(kot,"pipeResponseToStream");var C_=class{static{o(this,"DownloadProgress")}constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,v(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,i=(e/(1024*1024)/(n/1e3)).toFixed(1);D(`Received ${e} of ${this.contentLength} (${r}%), ${i} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function b_(t,e){return Lo(this,void 0,void 0,function*(){let r=$c.createWriteStream(e),n=new au("actions/cache"),i=yield mg("downloadCache",()=>Lo(this,void 0,void 0,function*(){return n.get(t)}));i.message.socket.setTimeout(CU,()=>{i.message.destroy(),v(`Aborting download, socket timed out after ${CU} ms`)}),yield kot(i,r);let s=i.message.headers["content-length"];if(s){let a=parseInt(s),c=gc(e);if(c!==a)throw new Error(`Incomplete download. Expected file size: ${a}, actual file size: ${c}`)}else v("Unable to validate download, no Content-Length header")})}o(b_,"downloadCacheHttpClient");function MAe(t,e,r){return Lo(this,void 0,void 0,function*(){var n;let i=yield $c.promises.open(e,"w"),s=new au("actions/cache",void 0,{socketTimeout:r.timeoutInMs,keepAlive:!0});try{let c=(yield mg("downloadCacheMetadata",()=>Lo(this,void 0,void 0,function*(){return yield s.request("HEAD",t,null,{})}))).message.headers["content-length"];if(c==null)throw new Error("Content-Length not found on blob response");let l=parseInt(c);if(Number.isNaN(l))throw new Error(`Could not interpret Content-Length: ${l}`);let u=[],d=4*1024*1024;for(let C=0;CLo(this,void 0,void 0,function*(){return yield Pot(s,t,C,w)}),"promiseGetter")})}u.reverse();let f=0,h=0,p=new C_(l);p.startDisplayTimer();let m=p.onProgress(),A=[],E,y=o(()=>Lo(this,void 0,void 0,function*(){let C=yield Promise.race(Object.values(A));yield i.write(C.buffer,0,C.count,C.offset),f--,delete A[C.offset],h+=C.count,m({loadedBytes:h})}),"waitAndWrite");for(;E=u.pop();)A[E.offset]=E.promiseGetter(),f++,f>=((n=r.downloadConcurrency)!==null&&n!==void 0?n:10)&&(yield y());for(;f>0;)yield y()}finally{s.dispose(),yield i.close()}})}o(MAe,"downloadCacheHttpClientConcurrent");function Pot(t,e,r,n){return Lo(this,void 0,void 0,function*(){let s=0;for(;;)try{let c=yield qAe(3e4,Oot(t,e,r,n));if(typeof c=="string")throw new Error("downloadSegmentRetry failed due to timeout");return c}catch(a){if(s>=5)throw a;s++}})}o(Pot,"downloadSegmentRetry");function Oot(t,e,r,n){return Lo(this,void 0,void 0,function*(){let i=yield mg("downloadCachePart",()=>Lo(this,void 0,void 0,function*(){return yield t.get(e,{Range:`bytes=${r}-${r+n-1}`})}));if(!i.readBodyBuffer)throw new Error("Expected HttpClientResponse to implement readBodyBuffer");return{offset:r,count:n,buffer:yield i.readBodyBuffer()}})}o(Oot,"downloadSegment");function UAe(t,e,r){return Lo(this,void 0,void 0,function*(){var n;let i=new pg(t,void 0,{retryOptions:{tryTimeoutInMs:r.timeoutInMs}}),a=(n=(yield i.getProperties()).contentLength)!==null&&n!==void 0?n:-1;if(a<0)v("Unable to determine content length, downloading file with http-client..."),yield b_(t,e);else{let c=Math.min(134217728,OAe.constants.MAX_LENGTH),l=new C_(a),u=$c.openSync(e,"w");try{l.startDisplayTimer();let d=new AbortController,f=d.signal;for(;!l.isDone();){let h=l.segmentOffset+l.segmentSize,p=Math.min(c,a-h);l.nextSegment(p);let m=yield qAe(r.segmentTimeoutInMs||36e5,i.downloadToBuffer(h,p,{abortSignal:f,concurrency:r.downloadConcurrency,onProgress:l.onProgress()}));if(m==="timeout")throw d.abort(),new Error("Aborting cache download as the download time exceeded the timeout.");Buffer.isBuffer(m)&&$c.writeFileSync(u,m)}}finally{l.stopDisplayTimer(),$c.closeSync(u)}}})}o(UAe,"downloadCacheStorageSDK");var qAe=o((t,e)=>Lo(void 0,void 0,void 0,function*(){let r,n=new Promise(i=>{r=setTimeout(()=>i("timeout"),t)});return Promise.race([e,n]).then(i=>(clearTimeout(r),i))}),"promiseWithTimeout");function X5(t){let e={useAzureSdk:!1,uploadConcurrency:4,uploadChunkSize:33554432};return t&&(typeof t.useAzureSdk=="boolean"&&(e.useAzureSdk=t.useAzureSdk),typeof t.uploadConcurrency=="number"&&(e.uploadConcurrency=t.uploadConcurrency),typeof t.uploadChunkSize=="number"&&(e.uploadChunkSize=t.uploadChunkSize)),e.uploadConcurrency=isNaN(Number(process.env.CACHE_UPLOAD_CONCURRENCY))?e.uploadConcurrency:Math.min(32,Number(process.env.CACHE_UPLOAD_CONCURRENCY)),e.uploadChunkSize=isNaN(Number(process.env.CACHE_UPLOAD_CHUNK_SIZE))?e.uploadChunkSize:Math.min(128*1024*1024,Number(process.env.CACHE_UPLOAD_CHUNK_SIZE)*1024*1024),v(`Use Azure SDK: ${e.useAzureSdk}`),v(`Upload concurrency: ${e.uploadConcurrency}`),v(`Upload chunk size: ${e.uploadChunkSize}`),e}o(X5,"getUploadOptions");function GAe(t){let e={useAzureSdk:!1,concurrentBlobDownloads:!0,downloadConcurrency:8,timeoutInMs:3e4,segmentTimeoutInMs:6e5,lookupOnly:!1};t&&(typeof t.useAzureSdk=="boolean"&&(e.useAzureSdk=t.useAzureSdk),typeof t.concurrentBlobDownloads=="boolean"&&(e.concurrentBlobDownloads=t.concurrentBlobDownloads),typeof t.downloadConcurrency=="number"&&(e.downloadConcurrency=t.downloadConcurrency),typeof t.timeoutInMs=="number"&&(e.timeoutInMs=t.timeoutInMs),typeof t.segmentTimeoutInMs=="number"&&(e.segmentTimeoutInMs=t.segmentTimeoutInMs),typeof t.lookupOnly=="boolean"&&(e.lookupOnly=t.lookupOnly));let r=process.env.SEGMENT_DOWNLOAD_TIMEOUT_MINS;return r&&!isNaN(Number(r))&&isFinite(Number(r))&&(e.segmentTimeoutInMs=Number(r)*60*1e3),v(`Use Azure SDK: ${e.useAzureSdk}`),v(`Download concurrency: ${e.downloadConcurrency}`),v(`Request timeout (ms): ${e.timeoutInMs}`),v(`Cache segment download timeout mins env var: ${process.env.SEGMENT_DOWNLOAD_TIMEOUT_MINS}`),v(`Segment download timeout (ms): ${e.segmentTimeoutInMs}`),v(`Lookup only: ${e.lookupOnly}`),e}o(GAe,"getDownloadOptions");function Z5(){let e=new URL(process.env.GITHUB_SERVER_URL||"https://github.com").hostname.trimEnd().toUpperCase(),r=e==="GITHUB.COM",n=e.endsWith(".GHE.COM"),i=e.endsWith(".LOCALHOST");return!r&&!n&&!i}o(Z5,"isGhes");function q0(){return Z5()?"v1":process.env.ACTIONS_CACHE_SERVICE_V2?"v2":"v1"}o(q0,"getCacheServiceVersion");var HAe=["none","read","write","write-only"];function ez(){return(process.env.ACTIONS_CACHE_MODE||"").trim().toLowerCase()}o(ez,"getCacheMode");function zAe(t){return HAe.includes(t)?t==="read"||t==="write":!0}o(zAe,"isCacheReadable");function VAe(t){return HAe.includes(t)?t==="write"||t==="write-only":!0}o(VAe,"isCacheWritable");function w_(){let t=q0();switch(t){case"v1":return process.env.ACTIONS_CACHE_URL||process.env.ACTIONS_RESULTS_URL||"";case"v2":return process.env.ACTIONS_RESULTS_URL||"";default:throw new Error(`Unsupported cache service version: ${t}`)}}o(w_,"getCacheServiceURL");var JAe=T(WAe(),1);function I_(){return`@actions/cache-${JAe.version}`}o(I_,"getUserAgentString");var ds=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function G0(t){let e=w_();if(!e)throw new Error("Cache Service Url not found, unable to restore cache.");let r=`${e}_apis/artifactcache/${t}`;return v(`Resource Url: ${r}`),r}o(G0,"getCacheApiUrl");function Mot(t,e){return`${t};api-version=${e}`}o(Mot,"createAcceptHeader");function Uot(){return{headers:{Accept:Mot("application/json","6.0-preview.1")}}}o(Uot,"getRequestOptions");function tz(){let t=process.env.ACTIONS_RUNTIME_TOKEN||"",e=new qm(t);return new au(I_(),[e],Uot())}o(tz,"createHttpClient");function XAe(t,e,r){return ds(this,void 0,void 0,function*(){var n;let i=tz(),s=Um(e,r?.compressionMethod,r?.enableCrossOsArchive),a=`cache?keys=${encodeURIComponent(t.join(","))}&version=${s}`,c=yield U0("getCacheEntry",()=>ds(this,void 0,void 0,function*(){return i.getJson(G0(a))}));if(c.statusCode===204)return Ih()&&(yield qot(t[0],i,s)),null;if(!E_(c.statusCode)){let d=(n=c.error)===null||n===void 0?void 0:n.message;throw d?.includes(zv)?new Error(d):new Error(`Cache service responded with ${c.statusCode}`)}let l=c.result,u=l?.archiveLocation;if(!u)throw new Error("Cache not found.");return Os(u),v("Cache Result:"),v(JSON.stringify(l)),l})}o(XAe,"getCacheEntry");function qot(t,e,r){return ds(this,void 0,void 0,function*(){let n=`caches?key=${encodeURIComponent(t)}`,i=yield U0("listCache",()=>ds(this,void 0,void 0,function*(){return e.getJson(G0(n))}));if(i.statusCode===200){let s=i.result,a=s?.totalCount;if(a&&a>0){v(`No matching cache found for cache key '${t}', version '${r} and scope ${process.env.GITHUB_REF}. There exist one or more cache(s) with similar key but they have different version or scope. See more info on cache matching here: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key -Other caches with similar key:`);for(let c of s?.artifactCaches||[])v(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}o(qot,"printCachesListForDiagnostics");function rz(t,e,r){return ds(this,void 0,void 0,function*(){let n=new KAe.URL(t),i=GAe(r);n.hostname.endsWith(".blob.core.windows.net")?i.useAzureSdk?yield UAe(t,e,i):i.concurrentBlobDownloads?yield MAe(t,e,i):yield b_(t,e):yield b_(t,e)})}o(rz,"downloadCache");function ZAe(t,e,r){return ds(this,void 0,void 0,function*(){let n=tz(),i=Um(e,r?.compressionMethod,r?.enableCrossOsArchive),s={key:t,version:i,cacheSize:r?.cacheSize};return yield U0("reserveCache",()=>ds(this,void 0,void 0,function*(){return n.postJson(G0("caches"),s)}))})}o(ZAe,"reserveCache");function YAe(t,e){return`bytes ${t}-${e}/*`}o(YAe,"getContentRange");function Got(t,e,r,n,i){return ds(this,void 0,void 0,function*(){v(`Uploading chunk of size ${i-n+1} bytes at offset ${n} with content range: ${YAe(n,i)}`);let s={"Content-Type":"application/octet-stream","Content-Range":YAe(n,i)},a=yield mg(`uploadChunk (start: ${n}, end: ${i})`,()=>ds(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),s)}));if(!E_(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(Got,"uploadChunk");function Hot(t,e,r,n){return ds(this,void 0,void 0,function*(){let i=gc(r),s=G0(`caches/${e.toString()}`),a=gg.openSync(r,"r"),c=X5(n),l=SU("uploadConcurrency",c.uploadConcurrency),u=SU("uploadChunkSize",c.uploadChunkSize),d=[...new Array(l).keys()];v("Awaiting all uploads");let f=0;try{yield Promise.all(d.map(()=>ds(this,void 0,void 0,function*(){for(;fgg.createReadStream(r,{fd:a,start:p,end:m,autoClose:!1}).on("error",A=>{throw new Error(`Cache upload failed because file read failed with ${A.message}`)}),p,m)}})))}finally{gg.closeSync(a)}})}o(Hot,"uploadFile");function zot(t,e,r){return ds(this,void 0,void 0,function*(){let n={size:r};return yield U0("commitCache",()=>ds(this,void 0,void 0,function*(){return t.postJson(G0(`caches/${e.toString()}`),n)}))})}o(zot,"commitCache");function nz(t,e,r,n){return ds(this,void 0,void 0,function*(){if(X5(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield kAe(r,e,n)}else{let s=tz();v("Upload cache"),yield Hot(s,t,e,n),v("Commiting cache");let a=gc(e);D(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield zot(s,t,a);if(!E_(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);D("Cache saved successfully")}})}o(nz,"saveCache");var $me=T(Wz(),1),zr=T(nt(),1),Ks=T(nt(),1),op=T(nt(),1),ap=T(nt(),1),cp=T(nt(),1);var Xz=T(nt(),1),Zz=T(nt(),1),Hme=T(nt(),1),zme=T(nt(),1),Vme=T(nt(),1);var Jz=T(nt(),1),Yz=T(nt(),1),Ume=T(nt(),1),qme=T(nt(),1),Gme=T(nt(),1);var Kz=class extends Gme.MessageType{static{o(this,"CacheScope$Type")}constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,qme.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Ume.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.poscT,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,zme.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Hme.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.posKc,"T")},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"version",kind:"scalar",T:9}])}create(e){let r={key:"",version:""};return globalThis.Object.defineProperty(r,ap.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,op.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.posKc,"T")},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"size_bytes",kind:"scalar",T:3},{no:4,name:"version",kind:"scalar",T:9}])}create(e){let r={key:"",sizeBytes:"0",version:""};return globalThis.Object.defineProperty(r,ap.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,op.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.posKc,"T")},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"restore_keys",kind:"scalar",repeat:2,T:9},{no:4,name:"version",kind:"scalar",T:9}])}create(e){let r={key:"",restoreKeys:[],version:""};return globalThis.Object.defineProperty(r,ap.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,op.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.poscV.fromJson(i,{ignoreUnknownFields:!0}))}FinalizeCacheEntryUpload(e){let r=lV.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.CacheService","FinalizeCacheEntryUpload","application/json",r).then(i=>uV.fromJson(i,{ignoreUnknownFields:!0}))}GetCacheEntryDownloadURL(e){let r=dV.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.CacheService","GetCacheEntryDownloadURL","application/json",r).then(i=>fV.fromJson(i,{ignoreUnknownFields:!0}))}};function jme(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Os(r),Os(encodeURIComponent(r)))}catch(e){v(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}o(jme,"maskSigUrl");function Wme(t){if(typeof t!="object"||t===null){v("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&jme(t.signed_upload_url),"signed_download_url"in t&&typeof t.signed_download_url=="string"&&jme(t.signed_download_url)}o(Wme,"maskSecretUrls");var uT=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},hV=class{static{o(this,"CacheServiceClient")}constructor(e,r,n,i){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let s=Cue();this.baseUrl=w_(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),i&&(this.retryMultiplier=i),this.httpClient=new au(e,[new qm(s)])}request(e,r,n,i){return uT(this,void 0,void 0,function*(){let s=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;v(`[Request] ${r} ${s}`);let a={"Content-Type":n};try{let{body:c}=yield this.retryableRequest(()=>uT(this,void 0,void 0,function*(){return this.httpClient.post(s,JSON.stringify(i),a)}));return c}catch(c){throw new Error(`Failed to ${r}: ${c.message}`)}})}retryableRequest(e){return uT(this,void 0,void 0,function*(){let r=0,n="",i="";for(;r0&&Ge(`You've hit a rate limit, your rate limit will reset in ${f} seconds`)}throw new M0(`Rate limited: ${n}`)}}catch(c){if(c instanceof SyntaxError&&v(`Raw Body: ${i}`),c instanceof tp||c instanceof M0)throw c;if(Ag.isNetworkErrorCode(c?.code))throw new Ag(c?.code);s=!0,n=c.message}if(!s)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let a=this.getExponentialRetryTimeMilliseconds(r);D(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${a} ms...`),yield this.sleep(a),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[Br.BadGateway,Br.GatewayTimeout,Br.InternalServerError,Br.ServiceUnavailable].includes(e):!1}sleep(e){return uT(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function pV(t){let e=new hV(I_(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new lT(e)}o(pV,"internalCacheTwirpClient");var dT=require("fs"),ps=T(require("path"),1);var Xc=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},Vd=process.platform==="win32";function elt(){return Xc(this,void 0,void 0,function*(){switch(process.platform){case"win32":{let t=yield Eue(),e=Aue;if(t)return{path:t,type:Us.GNU};if((0,dT.existsSync)(e))return{path:e,type:Us.BSD};break}case"darwin":{let t=yield Gn("gtar",!1);return t?{path:t,type:Us.GNU}:{path:yield Gn("tar",!0),type:Us.BSD}}default:break}return{path:yield Gn("tar",!0),type:Us.GNU}})}o(elt,"getTarPath");function tlt(t,e,r){return Xc(this,arguments,void 0,function*(n,i,s,a=""){let c=[`"${n.path}"`],l=Nd(i),u="cache.tar",d=Yme(),f=n.type===Us.BSD&&i!==_i.Gzip&&Vd;switch(s){case"create":c.push("--posix","-cf",f?u:l.replace(new RegExp(`\\${ps.sep}`,"g"),"/"),"--exclude",f?u:l.replace(new RegExp(`\\${ps.sep}`,"g"),"/"),"-P","-C",d.replace(new RegExp(`\\${ps.sep}`,"g"),"/"),"--files-from",wU);break;case"extract":c.push("-xf",f?u:a.replace(new RegExp(`\\${ps.sep}`,"g"),"/"),"-P","-C",f?AV(d):d.replace(new RegExp(`\\${ps.sep}`,"g"),"/"));break;case"list":c.push("-tf",f?u:a.replace(new RegExp(`\\${ps.sep}`,"g"),"/"),"-P");break}if(n.type===Us.GNU)switch(process.platform){case"win32":c.push("--force-local");break;case"darwin":c.push("--delay-directory-restore");break}return c})}o(tlt,"getTarArgs");function Jme(t,e){return Xc(this,arguments,void 0,function*(r,n,i=""){let s,a=yield elt(),c=yield tlt(a,r,n,i),l=n!=="create"?yield rlt(a,r,i):yield nlt(a,r),u=a.type===Us.BSD&&r!==_i.Gzip&&Vd;return u&&n!=="create"?s=[[...l].join(" "),[...c].join(" ")]:s=[[...c].join(" "),[...l].join(" ")],{commands:u?s:[s.join(" ")],requiresTempDirectory:u&&n!=="create"}})}o(Jme,"getCommands");function Yme(){var t;return(t=process.env.GITHUB_WORKSPACE)!==null&&t!==void 0?t:process.cwd()}o(Yme,"getWorkingDirectory");function AV(t){return`"${ps.resolve(t).replace(new RegExp(`\\${ps.sep}`,"g"),"/")}"`}o(AV,"quoteAbsolutePath");function rlt(t,e,r){return Xc(this,void 0,void 0,function*(){let n=t.type===Us.BSD&&e!==_i.Gzip&&Vd;switch(e){case _i.Zstd:return n?["zstd -d --long=30 --force -o",Fb,AV(r)]:["--use-compress-program",Vd?'"zstd -d --long=30"':"unzstd --long=30"];case _i.ZstdWithoutLong:return n?["zstd -d --force -o",Fb,AV(r)]:["--use-compress-program",Vd?'"zstd -d"':"unzstd"];default:return["-z"]}})}o(rlt,"getDecompressionProgram");function nlt(t,e){return Xc(this,void 0,void 0,function*(){let r=Nd(e),n=t.type===Us.BSD&&e!==_i.Gzip&&Vd;switch(e){case _i.Zstd:return n?["zstd -T0 --long=30 --force -o",r.replace(new RegExp(`\\${ps.sep}`,"g"),"/"),Fb]:["--use-compress-program",Vd?'"zstd -T0 --long=30"':"zstdmt --long=30"];case _i.ZstdWithoutLong:return n?["zstd -T0 --force -o",r.replace(new RegExp(`\\${ps.sep}`,"g"),"/"),Fb]:["--use-compress-program",Vd?'"zstd -T0"':"zstdmt"];default:return["-z"]}})}o(nlt,"getCompressionProgram");function Kme(t,e){return Xc(this,void 0,void 0,function*(){for(let r of t)try{yield Fs(r,void 0,{cwd:e,env:Object.assign(Object.assign({},process.env),{MSYS:"winsymlinks:nativestrict"})})}catch(n){throw new Error(`${r.split(" ")[0]} failed with error: ${n?.message}`)}})}o(Kme,"execCommands");function Xme(t,e,r){return Xc(this,void 0,void 0,function*(){let{commands:n,requiresTempDirectory:i}=yield Jme(e,r,t),s=i?yield Rh():void 0;try{yield Kme(n,s)}finally{if(s)try{yield Nm(s)}catch(a){v(`Failed to delete temporary tar directory: ${a}`)}}})}o(Xme,"execReadCommands");function nw(t,e){return Xc(this,void 0,void 0,function*(){yield Xme(t,e,"list")})}o(nw,"listTar");function mV(t,e){return Xc(this,void 0,void 0,function*(){let r=Yme();yield ru(r),yield Xme(t,e,"extract")})}o(mV,"extractTar");function gV(t,e,r){return Xc(this,void 0,void 0,function*(){(0,dT.writeFileSync)(ps.join(t,wU),e.join(` -`));let{commands:n}=yield Jme(r,"create");yield Kme(n,t)})}o(gV,"createTar");var Qg=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},Fa=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},lp=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},yV="cache write denied:",fT=class t extends lp{static{o(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},Zme=zv,hT=class t extends Error{static{o(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},pT=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function ege(t){if(!t||t.length===0)throw new Fa("Path Validation Error: At least one directory or file path is required")}o(ege,"checkPaths");function EV(t){if(t.length>512)throw new Fa(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Fa(`Key Validation Error: ${t} cannot contain commas.`)}o(EV,"checkKey");function CV(){return q0()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(CV,"isFeatureAvailable");function tge(t,e,r,n){return Qg(this,arguments,void 0,function*(i,s,a,c,l=!1){let u=q0();v(`Cache service version: ${u}`),ege(i);let d=ez();if(!zAe(d)){D(`Cache restore skipped: the effective cache-mode '${d}' does not permit reads.`),v(`Skipped restore for paths [${i.join(", ")}] with primary key '${s}'.`);return}return u==="v2"?yield slt(i,s,a,c,l):yield ilt(i,s,a,c,l)})}o(tge,"restoreCache");function ilt(t,e,r,n){return Qg(this,arguments,void 0,function*(i,s,a,c,l=!1){var u;a=a||[];let d=[s,...a];if(v("Resolved Keys:"),v(JSON.stringify(d)),d.length>10)throw new Fa("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of d)EV(p);let f=yield Ub(),h="";try{let p;try{p=yield XAe(d,i,{compressionMethod:f,enableCrossOsArchive:l})}catch(A){let E=(u=A?.message)!==null&&u!==void 0?u:"";throw E.includes(Zme)?new hT(E):A}if(!p?.archiveLocation)return;if(c?.lookupOnly)return D("Lookup only - skipping download"),p.cacheKey;h=iw.join(yield Rh(),Nd(f)),v(`Archive Path: ${h}`),yield rz(p.archiveLocation,h,c),Ih()&&(yield nw(h,f));let m=gc(h);return D(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),yield mV(h,f),D("Cache restored successfully"),p.cacheKey}catch(p){let m=p;if(m.name===Fa.name)throw p;m instanceof yc&&typeof m.statusCode=="number"&&m.statusCode>=500?Sa(`Failed to restore: ${p.message}`):Ge(`Failed to restore: ${p.message}`)}finally{try{yield Mb(h)}catch(p){v(`Failed to delete archive: ${p}`)}}})}o(ilt,"restoreCacheV1");function slt(t,e,r,n){return Qg(this,arguments,void 0,function*(i,s,a,c,l=!1){var u;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let d=[s,...a];if(v("Resolved Keys:"),v(JSON.stringify(d)),d.length>10)throw new Fa("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of d)EV(h);let f="";try{let h=pV(),p=yield Ub(),m={key:s,restoreKeys:a,version:Um(i,p,l)},A;try{A=yield h.GetCacheEntryDownloadURL(m)}catch(C){let w=(u=C?.message)!==null&&u!==void 0?u:"";throw w.includes(Zme)?new hT(w):C}if(!A.ok){v(`Cache not found for version ${m.version} of keys: ${d.join(", ")}`);return}if(m.key!==A.matchedKey?D(`Cache hit for restore-key: ${A.matchedKey}`):D(`Cache hit for: ${A.matchedKey}`),c?.lookupOnly)return D("Lookup only - skipping download"),A.matchedKey;f=iw.join(yield Rh(),Nd(p)),v(`Archive path: ${f}`),v(`Starting download of archive to: ${f}`),yield rz(A.signedDownloadUrl,f,c);let y=gc(f);return D(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),Ih()&&(yield nw(f,p)),yield mV(f,p),D("Cache restored successfully"),A.matchedKey}catch(h){let p=h;if(p.name===Fa.name)throw h;p instanceof yc&&typeof p.statusCode=="number"&&p.statusCode>=500?Sa(`Failed to restore: ${h.message}`):Ge(`Failed to restore: ${h.message}`)}finally{try{f&&(yield Mb(f))}catch(h){v(`Failed to delete archive: ${h}`)}}})}o(slt,"restoreCacheV2");function bV(t,e,r){return Qg(this,arguments,void 0,function*(n,i,s,a=!1){let c=q0();v(`Cache service version: ${c}`),ege(n),EV(i);let l=ez();return VAe(l)?c==="v2"?yield alt(n,i,s,a):yield olt(n,i,s,a):(D(`Cache save skipped: the effective cache-mode '${l}' does not permit writes.`),v(`Skipped save for paths [${n.join(", ")}] with key '${i}'.`),-1)})}o(bV,"saveCache");function olt(t,e,r){return Qg(this,arguments,void 0,function*(n,i,s,a=!1){var c,l,u,d,f,h;let p=yield Ub(),m=-1,A=yield IU(n);if(v("Cache Paths:"),v(`${JSON.stringify(A)}`),A.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let E=yield Rh(),y=iw.join(E,Nd(p));v(`Archive Path: ${y}`);try{yield gV(E,A,p),Ih()&&(yield nw(y,p));let C=10*1024*1024*1024,w=gc(y);if(v(`File Size: ${w}`),w>C&&!Z5())throw new Error(`Cache size of ~${Math.round(w/(1024*1024))} MB (${w} B) is over the 10GB limit, not saving cache.`);v("Reserving Cache");let B=yield ZAe(i,n,{compressionMethod:p,enableCrossOsArchive:a,cacheSize:w});if(!((c=B?.result)===null||c===void 0)&&c.cacheId)m=(l=B?.result)===null||l===void 0?void 0:l.cacheId;else{if(B?.statusCode===400)throw new Error((d=(u=B?.error)===null||u===void 0?void 0:u.message)!==null&&d!==void 0?d:`Cache size of ~${Math.round(w/(1024*1024))} MB (${w} B) is over the data cap limit, not saving cache.`);{let P=(f=B?.error)===null||f===void 0?void 0:f.message;throw P?.startsWith(yV)?new fT(`Unable to reserve cache with key ${i}. More details: ${P}`):new lp(`Unable to reserve cache with key ${i}, another job may be creating this cache. More details: ${(h=B?.error)===null||h===void 0?void 0:h.message}`)}}v(`Saving Cache (ID: ${m})`),yield nz(m,y,"",s)}catch(C){let w=C;if(w.name===Fa.name)throw C;w.name===lp.name?D(`Failed to save: ${w.message}`):w instanceof yc&&typeof w.statusCode=="number"&&w.statusCode>=500?Sa(`Failed to save: ${w.message}`):Ge(`Failed to save: ${w.message}`)}finally{try{yield Mb(y)}catch(C){v(`Failed to delete archive: ${C}`)}}return m})}o(olt,"saveCacheV1");function alt(t,e,r){return Qg(this,arguments,void 0,function*(n,i,s,a=!1){var c;s=Object.assign(Object.assign({},s),{uploadChunkSize:64*1024*1024,uploadConcurrency:8,useAzureSdk:!0});let l=yield Ub(),u=pV(),d=-1,f=yield IU(n);if(v("Cache Paths:"),v(`${JSON.stringify(f)}`),f.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let h=yield Rh(),p=iw.join(h,Nd(l));v(`Archive Path: ${p}`);try{yield gV(h,f,l),Ih()&&(yield nw(p,l));let m=gc(p);v(`File Size: ${m}`),s.archiveSizeBytes=m,v("Reserving Cache");let A=Um(n,l,a),E={key:i,version:A},y;try{let B=yield u.CreateCacheEntry(E);if(!B.ok)throw B.message&&!B.message.startsWith(yV)&&Ge(`Cache reservation failed: ${B.message}`),new Error(B.message||"Response was not ok");y=B.signedUploadUrl}catch(B){v(`Failed to reserve cache: ${B}`);let P=(c=B?.message)!==null&&c!==void 0?c:"";throw P.startsWith(yV)?new fT(`Unable to reserve cache with key ${i}. More details: ${P}`):new lp(`Unable to reserve cache with key ${i}, another job may be creating this cache.`)}v(`Attempting to upload cache located at: ${p}`),yield nz(d,p,y,s);let C={key:i,version:A,sizeBytes:`${m}`},w=yield u.FinalizeCacheEntryUpload(C);if(v(`FinalizeCacheEntryUploadResponse: ${w.ok}`),!w.ok)throw w.message?new pT(w.message):new Error(`Unable to finalize cache with key ${i}, another job may be finalizing this cache.`);d=parseInt(w.entryId)}catch(m){let A=m;if(A.name===Fa.name)throw m;A.name===lp.name?D(`Failed to save: ${A.message}`):A.name===pT.name?Ge(A.message):A instanceof yc&&typeof A.statusCode=="number"&&A.statusCode>=500?Sa(`Failed to save: ${A.message}`):Ge(`Failed to save: ${A.message}`)}finally{try{yield Mb(p)}catch(m){v(`Failed to delete archive: ${m}`)}}return d})}o(alt,"saveCacheV2");var rge=T(require("util"),1);var Dn=class t{static{o(this,"Cache")}opts;ghaCacheKey;ghaNoCache;cacheDir;cachePath;static POST_CACHE_KEY="postCache";constructor(e){this.opts=e,this.ghaCacheKey=rge.format("%s-%s-%s",this.opts.htcName,this.opts.htcVersion,this.platform()),this.ghaNoCache=this.opts.ghaNoCache,this.cacheDir=IV.default.join(this.opts.baseCacheDir,this.opts.htcVersion,this.platform()),this.cachePath=IV.default.join(this.cacheDir,this.opts.cacheFile),sw.default.existsSync(this.cacheDir)||sw.default.mkdirSync(this.cacheDir,{recursive:!0})}async save(e,r){v(`Cache.save ${e}`);let n=this.copyToCache(e),i=await this.cacheToHostedToolCache();if(i&&v(`Cache.save cached to hosted tool cache ${i}`),!this.ghaNoCache&&CV())if(r)try{v(`Cache.save caching ${this.ghaCacheKey} to GitHub Actions cache`),await bV([this.cacheDir],this.ghaCacheKey)}catch(s){Ge(`Failed to save cache: ${s}`)}else v(`Cache.save sending ${this.ghaCacheKey} to post state`),Eo(t.POST_CACHE_KEY,JSON.stringify({dir:this.cacheDir,key:this.ghaCacheKey}));return n}async find(){try{let e=Vae(this.opts.htcName,this.opts.htcVersion,this.platform());if(e)return D(`Restored from hosted tool cache ${e}`),this.copyToCache(`${e}/${this.opts.cacheFile}`);if(!this.ghaNoCache&&CV()){if(v("GitHub Actions cache feature available"),await tge([this.cacheDir],this.ghaCacheKey)){if(D(`Restored ${this.ghaCacheKey} from GitHub Actions cache`),!sw.default.existsSync(this.cachePath))return Ge(`Cache file ${this.cachePath} does not exist`),"";let r=await this.cacheToHostedToolCache();return r&&D(`Cached to hosted tool cache ${r}`),this.cachePath}}else this.ghaNoCache?D("GitHub Actions cache disabled"):D("GitHub Actions cache feature not available")}catch(e){Ge(`Failed to restore cache: ${e}`)}return""}static async post(){let e=qse(t.POST_CACHE_KEY);if(!e)return D("State not set"),Promise.resolve(void 0);let r;try{r=JSON.parse(e)}catch(n){throw new Error(`Failed to parse cache post state: ${n}`)}if(!r.dir||!r.key)throw new Error(`Invalid cache post state: ${e}`);try{D(`Caching ${r.key} to GitHub Actions cache`),await bV([r.dir],r.key)}catch(n){Ge(`Failed to save cache: ${n}`)}return r}copyToCache(e){return D(`Copying ${e} to ${this.cachePath}`),sw.default.copyFileSync(e,this.cachePath),this.cachePath}async cacheToHostedToolCache(){try{return await zae(this.cacheDir,this.opts.htcName,this.opts.htcVersion,this.platform())}catch(e){D(`Failed to cache to hosted tool cache: ${e}`)}return""}platform(){let e=process.config.variables.arm_version;return`${wV.default.platform()}-${wV.default.arch()}${e?"v"+e:""}`}};var nge=!!process.env.STATE_isPost;nge||Eo("isPost","true");async function ige(t,e){if(nge)e&&await e(),await Sr("Post cache",async()=>{await Dn.post()});else try{await t()}catch(r){lv(r.message)}}o(ige,"run");var Jo=T(require("fs"),1),gs=T(require("path"),1),S0e=require("util");var B0e=T(Ma(),1);var vT=class t{static{o(this,"Git")}static protoRegexp=new RegExp("^[a-zA-Z0-9]+://");static supportedProtos={http:{},https:{},ssh:{},git:{}};static parseURL(e){let r=e.match(t.protoRegexp);if(r&&r.length>0){let n=r[0].toLowerCase();if(n=n.slice(0,n.lastIndexOf("://")),!(n in t.supportedProtos))throw new Error(`Invalid protocol: ${n}`);return t.fromURL(new URL(e))}throw new Error("Unknown protocol")}static fromURL(e){let r=new URL(e.toString());r.hash="";let n;return(e.username||e.password)&&(n={username:e.username,password:e.password,passwordSet:e.password!==""}),{scheme:e.protocol.slice(0,-1),user:n,host:`${e.hostname}${e.port?":"+e.port:""}`,path:e.pathname,fragment:t.splitGitFragment(e.hash),remote:r.toString()}}static splitGitFragment(e){if(e==="")return;let[r,n]=e.slice(1).split(":");return{ref:r,subdir:n}}static parseRef(e){let r={},n;if(e.startsWith("./")||e.startsWith("../"))throw new Error("Invalid argument");if(e.startsWith("github.com/"))r.indistinguishableFromLocal=!0,n=t.fromURL(new URL("https://"+e));else if(n=t.parseURL(e),["http","git"].includes(n.scheme)&&(r.unencryptedTCP=!0),["http","https"].includes(n.scheme)&&!n.path.endsWith(".git"))throw new Error("Invalid argument");r.remote=n.remote,r.indistinguishableFromLocal&&(r.remote=r.remote.split("://")[1]),n.fragment&&(r.commit=n.fragment.ref,r.subDir=n.fragment.subdir);let i=r.remote.split("/");return r.shortName=i[i.length-1].replace(".git",""),r}};var J4=T(require("fs"),1),wbe=T(require("os"),1),ww=T(require("path"),1),Ibe=require("util"),Sbe=T(tEe(),1);var JV=T(require("fs"),1),CEe=T(require("os"),1),bEe=T(require("path"),1),wEe=T(EEe(),1);var ht=class t{static{o(this,"Context")}static _tmpDir=JV.default.mkdtempSync(bEe.default.join(t.ensureDirExists(process.env.RUNNER_TEMP||CEe.default.tmpdir()),"docker-actions-toolkit-"));static ensureDirExists(e){return JV.default.mkdirSync(e,{recursive:!0}),e}static tmpDir(){return t._tmpDir}static tmpName(e){return wEe.tmpNameSync(e)}};var Ie=class{static{o(this,"Exec")}static async exec(e,r,n){return v(`Exec.exec: ${e} ${r?.join(" ")}`),Fs(e,r,n)}static async getExecOutput(e,r,n){return v(`Exec.getExecOutput: ${e} ${r?.join(" ")}`),fb(e,r,n)}};var W4=T(require("crypto"),1),Cbe=T(require("fs"),1),bw=T(require("path"),1),bbe=T(V4(),1);var ct=class t extends Error{static{o(this,"CsvError")}constructor(e,r,n,...i){Array.isArray(r)&&(r=r.join(" ").trim()),super(r),Error.captureStackTrace!==void 0&&Error.captureStackTrace(this,t),this.code=e;for(let s of i)for(let a in s){let c=s[a];this[a]=Buffer.isBuffer(c)?c.toString(n.encoding):c==null?c:JSON.parse(JSON.stringify(c))}}};var Cw=o(function(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)},"is_object");var p2=o(function(t){let e=[];for(let r=0,n=t.length;r=this.size&&(this.resize(),r>=this.size))throw Error("INVALID_BUFFER_STATE");let n=this.buf;this.buf=Buffer.allocUnsafe(this.size),e.copy(this.buf,0),n.copy(this.buf,e.length),this.length+=e.length}else{let r=this.length++;r===this.size&&this.resize();let n=this.clone();this.buf[0]=e,n.copy(this.buf,1,0,r)}}append(e){let r=this.length++;r===this.size&&this.resize(),this.buf[r]=e}clone(){return Buffer.from(this.buf.slice(0,this.length))}resize(){let e=this.length;this.size=this.size*2;let r=Buffer.allocUnsafe(this.size);this.buf.copy(r,0,0,e),this.buf=r}toString(e){return e?this.buf.toString(e,0,this.length):Uint8Array.prototype.slice.call(this.buf.slice(0,this.length))}toJSON(){return this.toString("utf8")}reset(){this.length=0}},j4=$4;var mbe=o(function(t){let e=[32,9,10,13,12,11,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288,65279].reduce((n,i)=>{let s=Buffer.from(String.fromCharCode(i),t.encoding);return i!==63&&s.length===1&&s[0]===63||n.push(s),n},[]),r=new Uint8Array(256);for(let n of e)r[n[0]]=1;return{bomSkipped:!1,bufBytesStart:0,castField:t.cast_function,commenting:!1,delimiterBufPrevious:void 0,delimiterDiscovered:!1,error:void 0,enabled:t.from_line===1,escaping:!1,escapeIsQuote:Buffer.isBuffer(t.escape)&&Buffer.isBuffer(t.quote)&&Buffer.compare(t.escape,t.quote)===0,expectedRecordLength:Array.isArray(t.columns)?t.columns.length:void 0,field:new j4(20),firstLineToHeaders:t.cast_first_line_to_header,needMoreDataSize:Math.max(t.comment!==null?t.comment.length:0,...t.delimiter?t.delimiter.map(n=>n.length):[],t.delimiter_auto?1:0,t.quote!==null?t.quote.length:0,...e.map(n=>n.length)),previousBuf:void 0,quoting:!1,stop:!1,rawBuffer:new j4(100),record:[],recordHasError:!1,record_length:0,recordDelimiterMaxLength:t.record_delimiter.length===0?0:Math.max(...t.record_delimiter.map(n=>n.length)),trimChars:[Buffer.from(" ",t.encoding)[0],Buffer.from(" ",t.encoding)[0]],wasQuoting:!1,wasRowDelimiter:!1,timchars:e,timcharFirstBytes:r}},"init_state");var gbe=o(function(t){return t.replace(/([A-Z])/g,function(e,r){return"_"+r.toLowerCase()})},"underscore");var Yg=o(function(t){let e={};for(let n in t)e[gbe(n)]=t[n];if(e.encoding===void 0||e.encoding===!0)e.encoding="utf8";else if(e.encoding===null||e.encoding===!1)e.encoding=null;else if(typeof e.encoding!="string"&&e.encoding!==null)throw new ct("CSV_INVALID_OPTION_ENCODING",["Invalid option encoding:","encoding must be a string or null to return a buffer,",`got ${JSON.stringify(e.encoding)}`],e);if(e.bom===void 0||e.bom===null||e.bom===!1)e.bom=!1;else if(e.bom!==!0)throw new ct("CSV_INVALID_OPTION_BOM",["Invalid option bom:","bom must be true,",`got ${JSON.stringify(e.bom)}`],e);if(e.cast_function=null,e.cast===void 0||e.cast===null||e.cast===!1||e.cast==="")e.cast=void 0;else if(typeof e.cast=="function")e.cast_function=e.cast,e.cast=!0;else if(e.cast!==!0)throw new ct("CSV_INVALID_OPTION_CAST",["Invalid option cast:","cast must be true or a function,",`got ${JSON.stringify(e.cast)}`],e);if(e.cast_date===void 0||e.cast_date===null||e.cast_date===!1||e.cast_date==="")e.cast_date=!1;else if(e.cast_date===!0)e.cast_date=function(n){let i=Date.parse(n);return isNaN(i)?n:new Date(i)};else if(typeof e.cast_date!="function")throw new ct("CSV_INVALID_OPTION_CAST_DATE",["Invalid option cast_date:","cast_date must be true or a function,",`got ${JSON.stringify(e.cast_date)}`],e);if(e.cast_first_line_to_header=void 0,e.columns===!0)e.cast_first_line_to_header=void 0;else if(typeof e.columns=="function")e.cast_first_line_to_header=e.columns,e.columns=!0;else if(Array.isArray(e.columns))e.columns=p2(e.columns);else if(e.columns===void 0||e.columns===null||e.columns===!1)e.columns=!1;else throw new ct("CSV_INVALID_OPTION_COLUMNS",["Invalid option columns:","expect an array, a function or true,",`got ${JSON.stringify(e.columns)}`],e);if(e.group_columns_by_name===void 0||e.group_columns_by_name===null||e.group_columns_by_name===!1)e.group_columns_by_name=!1;else{if(e.group_columns_by_name!==!0)throw new ct("CSV_INVALID_OPTION_GROUP_COLUMNS_BY_NAME",["Invalid option group_columns_by_name:","expect an boolean,",`got ${JSON.stringify(e.group_columns_by_name)}`],e);if(e.columns===!1)throw new ct("CSV_INVALID_OPTION_GROUP_COLUMNS_BY_NAME",["Invalid option group_columns_by_name:","the `columns` mode must be activated."],e)}if(e.comment===void 0||e.comment===null||e.comment===!1||e.comment==="")e.comment=null;else if(typeof e.comment=="string"&&(e.comment=Buffer.from(e.comment,e.encoding)),!Buffer.isBuffer(e.comment))throw new ct("CSV_INVALID_OPTION_COMMENT",["Invalid option comment:","comment must be a buffer or a string,",`got ${JSON.stringify(e.comment)}`],e);if(e.comment_no_infix===void 0||e.comment_no_infix===null||e.comment_no_infix===!1)e.comment_no_infix=!1;else if(e.comment_no_infix!==!0)throw new ct("CSV_INVALID_OPTION_COMMENT",["Invalid option comment_no_infix:","value must be a boolean,",`got ${JSON.stringify(e.comment_no_infix)}`],e);if(e.delimiter_auto===void 0||e.delimiter_auto===null||e.delimiter_auto===!1)e.delimiter_auto=!1;else if(e.delimiter_auto===!0)e.delimiter_auto={};else if(!Cw(e.delimiter_auto))throw new ct("CSV_INVALID_OPTION_DELIMITER_AUTO",["Invalid option delimiter_auto:","delimiter_auto must be a boolean or a configuration object,",`got ${JSON.stringify(e.delimiter_auto)}`],e);if(e.delimiter_auto){if(e.delimiter_auto.preferred===void 0)e.delimiter_auto.preferred={44:1.8,9:1.8,59:1.6,32:1.6,58:1.5,46:1.4,47:1.4};else if(!Cw(e.delimiter_auto.preferred))throw new ct("CSV_INVALID_OPTION_DELIMITER_AUTO",["Invalid option delimiter_auto:","preferred must be an object,",`got ${JSON.stringify(e.delimiter_auto.preferred)}`],e);if(e.delimiter_auto.score===void 0)e.delimiter_auto.score=(n,i)=>(n.total-n.std)*(i.preferred[n.char_code]||1);else if(typeof e.delimiter_auto.score!="function")throw new ct("CSV_INVALID_OPTION_DELIMITER_AUTO",["Invalid option delimiter_auto:","score must be a function,",`got ${JSON.stringify(e.delimiter_auto.score)}`],e);if(e.delimiter_auto.size===void 0)e.delimiter_auto.size=2048;else if(typeof e.delimiter_auto.size!="number")throw new ct("CSV_INVALID_OPTION_DELIMITER_AUTO",["Invalid option delimiter_auto:","size must be a number,",`got ${JSON.stringify(e.delimiter_auto.size)}`],e)}let r=JSON.stringify(e.delimiter);if(e.delimiter_auto!==!1&&(e.delimiter=[]),Array.isArray(e.delimiter)||((e.delimiter===void 0||e.delimiter===null||e.delimiter===!1)&&(e.delimiter=Buffer.from(",",e.encoding)),e.delimiter=[e.delimiter]),e.delimiter=e.delimiter.map(function(n){if(typeof n=="string"&&(n=Buffer.from(n,e.encoding)),!Buffer.isBuffer(n)||n.length===0)throw new ct("CSV_INVALID_OPTION_DELIMITER",["Invalid option delimiter:","delimiter must be a non empty string or buffer or array of string|buffer,",`got ${r}`],e);return n}),e.escape===void 0||e.escape===!0?e.escape=Buffer.from('"',e.encoding):typeof e.escape=="string"?e.escape=Buffer.from(e.escape,e.encoding):(e.escape===null||e.escape===!1)&&(e.escape=null),e.escape!==null&&!Buffer.isBuffer(e.escape))throw new Error(`Invalid Option: escape must be a buffer, a string or a boolean, got ${JSON.stringify(e.escape)}`);if(e.from===void 0||e.from===null)e.from=1;else if(typeof e.from=="string"&&/\d+/.test(e.from)&&(e.from=parseInt(e.from)),Number.isInteger(e.from)){if(e.from<0)throw new Error(`Invalid Option: from must be a positive integer, got ${JSON.stringify(t.from)}`)}else throw new Error(`Invalid Option: from must be an integer, got ${JSON.stringify(e.from)}`);if(e.from_line===void 0||e.from_line===null)e.from_line=1;else if(typeof e.from_line=="string"&&/\d+/.test(e.from_line)&&(e.from_line=parseInt(e.from_line)),Number.isInteger(e.from_line)){if(e.from_line<=0)throw new Error(`Invalid Option: from_line must be a positive integer greater than 0, got ${JSON.stringify(t.from_line)}`)}else throw new Error(`Invalid Option: from_line must be an integer, got ${JSON.stringify(t.from_line)}`);if(e.ignore_last_delimiters===void 0||e.ignore_last_delimiters===null)e.ignore_last_delimiters=!1;else if(typeof e.ignore_last_delimiters=="number")e.ignore_last_delimiters=Math.floor(e.ignore_last_delimiters),e.ignore_last_delimiters===0&&(e.ignore_last_delimiters=!1);else if(typeof e.ignore_last_delimiters!="boolean")throw new ct("CSV_INVALID_OPTION_IGNORE_LAST_DELIMITERS",["Invalid option `ignore_last_delimiters`:","the value must be a boolean value or an integer,",`got ${JSON.stringify(e.ignore_last_delimiters)}`],e);if(e.ignore_last_delimiters===!0&&e.columns===!1)throw new ct("CSV_IGNORE_LAST_DELIMITERS_REQUIRES_COLUMNS",["The option `ignore_last_delimiters`","requires the activation of the `columns` option"],e);if(e.info===void 0||e.info===null||e.info===!1)e.info=!1;else if(e.info!==!0)throw new Error(`Invalid Option: info must be true, got ${JSON.stringify(e.info)}`);if(e.max_record_size===void 0||e.max_record_size===null||e.max_record_size===!1)e.max_record_size=0;else if(!(Number.isInteger(e.max_record_size)&&e.max_record_size>=0))if(typeof e.max_record_size=="string"&&/\d+/.test(e.max_record_size))e.max_record_size=parseInt(e.max_record_size);else throw new Error(`Invalid Option: max_record_size must be a positive integer, got ${JSON.stringify(e.max_record_size)}`);if(e.objname===void 0||e.objname===null||e.objname===!1)e.objname=void 0;else if(Buffer.isBuffer(e.objname)){if(e.objname.length===0)throw new Error("Invalid Option: objname must be a non empty buffer");e.encoding===null||(e.objname=e.objname.toString(e.encoding))}else if(typeof e.objname=="string"){if(e.objname.length===0)throw new Error("Invalid Option: objname must be a non empty string")}else if(typeof e.objname!="number")throw new Error(`Invalid Option: objname must be a string or a buffer, got ${e.objname}`);if(e.objname!==void 0){if(typeof e.objname=="number"){if(e.columns!==!1)throw Error("Invalid Option: objname index cannot be combined with columns or be defined as a field")}else if(e.columns===!1)throw Error("Invalid Option: objname field must be combined with columns or be defined as an index")}if(e.on_record===void 0||e.on_record===null)e.on_record=void 0;else if(typeof e.on_record!="function")throw new ct("CSV_INVALID_OPTION_ON_RECORD",["Invalid option `on_record`:","expect a function,",`got ${JSON.stringify(e.on_record)}`],e);if(e.on_skip!==void 0&&e.on_skip!==null&&typeof e.on_skip!="function")throw new Error(`Invalid Option: on_skip must be a function, got ${JSON.stringify(e.on_skip)}`);if(e.quote===null||e.quote===!1||e.quote==="")e.quote=null;else if(e.quote===void 0||e.quote===!0?e.quote=Buffer.from('"',e.encoding):typeof e.quote=="string"&&(e.quote=Buffer.from(e.quote,e.encoding)),!Buffer.isBuffer(e.quote))throw new Error(`Invalid Option: quote must be a buffer or a string, got ${JSON.stringify(e.quote)}`);if(e.raw===void 0||e.raw===null||e.raw===!1)e.raw=!1;else if(e.raw!==!0)throw new Error(`Invalid Option: raw must be true, got ${JSON.stringify(e.raw)}`);if(e.record_delimiter===void 0)e.record_delimiter=[];else if(typeof e.record_delimiter=="string"||Buffer.isBuffer(e.record_delimiter)){if(e.record_delimiter.length===0)throw new ct("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a non empty string or buffer,",`got ${JSON.stringify(e.record_delimiter)}`],e);e.record_delimiter=[e.record_delimiter]}else if(!Array.isArray(e.record_delimiter))throw new ct("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a string, a buffer or array of string|buffer,",`got ${JSON.stringify(e.record_delimiter)}`],e);if(e.record_delimiter=e.record_delimiter.map(function(n,i){if(typeof n!="string"&&!Buffer.isBuffer(n))throw new ct("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a string, a buffer or array of string|buffer",`at index ${i},`,`got ${JSON.stringify(n)}`],e);if(n.length===0)throw new ct("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a non empty string or buffer",`at index ${i},`,`got ${JSON.stringify(n)}`],e);return typeof n=="string"&&(n=Buffer.from(n,e.encoding)),n}),typeof e.relax_column_count!="boolean")if(e.relax_column_count===void 0||e.relax_column_count===null)e.relax_column_count=!1;else throw new Error(`Invalid Option: relax_column_count must be a boolean, got ${JSON.stringify(e.relax_column_count)}`);if(typeof e.relax_column_count_less!="boolean")if(e.relax_column_count_less===void 0||e.relax_column_count_less===null)e.relax_column_count_less=!1;else throw new Error(`Invalid Option: relax_column_count_less must be a boolean, got ${JSON.stringify(e.relax_column_count_less)}`);if(typeof e.relax_column_count_more!="boolean")if(e.relax_column_count_more===void 0||e.relax_column_count_more===null)e.relax_column_count_more=!1;else throw new Error(`Invalid Option: relax_column_count_more must be a boolean, got ${JSON.stringify(e.relax_column_count_more)}`);if(typeof e.relax_quotes!="boolean")if(e.relax_quotes===void 0||e.relax_quotes===null)e.relax_quotes=!1;else throw new Error(`Invalid Option: relax_quotes must be a boolean, got ${JSON.stringify(e.relax_quotes)}`);if(typeof e.skip_empty_lines!="boolean")if(e.skip_empty_lines===void 0||e.skip_empty_lines===null)e.skip_empty_lines=!1;else throw new Error(`Invalid Option: skip_empty_lines must be a boolean, got ${JSON.stringify(e.skip_empty_lines)}`);if(typeof e.skip_records_with_empty_values!="boolean")if(e.skip_records_with_empty_values===void 0||e.skip_records_with_empty_values===null)e.skip_records_with_empty_values=!1;else throw new Error(`Invalid Option: skip_records_with_empty_values must be a boolean, got ${JSON.stringify(e.skip_records_with_empty_values)}`);if(typeof e.skip_records_with_error!="boolean")if(e.skip_records_with_error===void 0||e.skip_records_with_error===null)e.skip_records_with_error=!1;else throw new Error(`Invalid Option: skip_records_with_error must be a boolean, got ${JSON.stringify(e.skip_records_with_error)}`);if(e.rtrim===void 0||e.rtrim===null||e.rtrim===!1)e.rtrim=!1;else if(e.rtrim!==!0)throw new Error(`Invalid Option: rtrim must be a boolean, got ${JSON.stringify(e.rtrim)}`);if(e.ltrim===void 0||e.ltrim===null||e.ltrim===!1)e.ltrim=!1;else if(e.ltrim!==!0)throw new Error(`Invalid Option: ltrim must be a boolean, got ${JSON.stringify(e.ltrim)}`);if(e.trim===void 0||e.trim===null||e.trim===!1)e.trim=!1;else if(e.trim!==!0)throw new Error(`Invalid Option: trim must be a boolean, got ${JSON.stringify(e.trim)}`);if(e.trim===!0&&t.ltrim!==!1?e.ltrim=!0:e.ltrim!==!0&&(e.ltrim=!1),e.trim===!0&&t.rtrim!==!1?e.rtrim=!0:e.rtrim!==!0&&(e.rtrim=!1),e.to===void 0||e.to===null)e.to=-1;else if(e.to!==-1)if(typeof e.to=="string"&&/\d+/.test(e.to)&&(e.to=parseInt(e.to)),Number.isInteger(e.to)){if(e.to<=0)throw new Error(`Invalid Option: to must be a positive integer greater than 0, got ${JSON.stringify(t.to)}`)}else throw new Error(`Invalid Option: to must be an integer, got ${JSON.stringify(t.to)}`);if(e.to_line===void 0||e.to_line===null)e.to_line=-1;else if(e.to_line!==-1)if(typeof e.to_line=="string"&&/\d+/.test(e.to_line)&&(e.to_line=parseInt(e.to_line)),Number.isInteger(e.to_line)){if(e.to_line<=0)throw new Error(`Invalid Option: to_line must be a positive integer greater than 0, got ${JSON.stringify(t.to_line)}`)}else throw new Error(`Invalid Option: to_line must be an integer, got ${JSON.stringify(t.to_line)}`);return e},"normalize_options");var ybe=o(function(t,e){e||({delimiter_auto:e}=Yg({delimiter_auto:!0})),typeof t=="string"&&(t=Buffer.from(t)),Buffer.isBuffer(t)&&(t=(i=>{let s=[],a=A2({delimiter:[]}),c=o(d=>s.push(d),"push"),l=o(()=>{},"close"),u=a.parse(i,!0,c,l);if(u!==void 0)throw u;return s})(t));let r=Array(127).fill().map(()=>({lines:[]}));t.map(([i],s)=>{for(let a=0,c=i.length;a{i.char_code=s,i.std=FAt(i.lines),i.total=i.lines.reduce((a,c)=>a+c,0),i.preferred=!!e.preferred[s],i.score=e.score(i,e)});let n=r.reduce((i,s)=>i.score>s.score?i:s,{});return String.fromCharCode(n.char_code)},"delimiter_discover"),FAt=o(function(t){let e=t.length;if(e===0)return 0;let r=t.reduce((n,i)=>n+i)/e;return Math.sqrt(t.map(n=>Math.pow(n-r,2)).reduce((n,i)=>n+i)/e)},"std");var Ebe=o(function(t){return t.every(e=>e==null||e.toString&&e.toString().trim()==="")},"isRecordEmpty"),MAt=13,UAt=10,Kg={utf8:Buffer.from([239,187,191]),utf16le:Buffer.from([255,254])},A2=o(function(t={}){let e={bytes:0,bytes_records:0,comment_lines:0,empty_lines:0,invalid_field_length:0,lines:1,records:0},r=Yg(t);return{info:e,original_options:t,options:r,state:mbe(r),__needMoreData:o(function(n,i,s){if(s)return!1;let{encoding:a,escape:c,quote:l}=this.options,{quoting:u,needMoreDataSize:d,recordDelimiterMaxLength:f}=this.state,h=i-n-1,p=Math.max(d,f===0?Buffer.from(`\r -`,a).length:f,u?(c===null?0:c.length)+l.length:0,u?l.length+f:0);return hu.size)this.options.delimiter=[Buffer.from(ybe(fe,this.options.delimiter_auto))],this.state.previousBuf=fe,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=fe;return}}let{previousBuf:ue}=this.state,de;if(ue===void 0)if(n===void 0){a();return}else de=n;else ue!==void 0&&n===void 0?de=ue:de=Buffer.concat([ue,n]);if($===!1)if(c===!1)this.state.bomSkipped=!0;else if(de.length<3){if(i===!1){this.state.previousBuf=de;return}}else{for(let fe in Kg)if(Kg[fe].compare(de,0,Kg[fe].length)===0){let Tt=Kg[fe].length;this.state.bufBytesStart+=Tt,de=de.slice(Tt);let yt=Yg({...this.original_options,encoding:fe});for(let sr in yt)this.options[sr]=yt[sr];({comment:B,escape:P,quote:U}=this.options);break}this.state.bomSkipped=!0}let Se=de.length,K;for(K=0;Kw){this.state.stop=!0,a();return}this.state.quoting===!1&&N.length===0&&this.__autoDiscoverRecordDelimiter(de,K)&&(N=this.options.record_delimiter);let fe=de[K];if(m===!0&&V.append(fe),(fe===MAt||fe===UAt)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(P!==null&&this.state.quoting===!0&&this.__isEscape(de,K,fe)&&K+P.lengthKg[bi].equals(this.state.field.toString())?bi:!1).filter(Boolean)[0],Ji=this.__error(new ct("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(sr.column)} at line ${sr.lines}, value is ${JSON.stringify(this.state.field.toString(d))}`,or?`(${or} bom)`:void 0],this.options,sr,{field:this.state.field}));if(Ji!==void 0)return Ji}}else{this.state.quoting=!0,K+=U.length-1;continue}if(this.state.quoting===!1){let sr=this.__isRecordDelimiter(fe,de,K);if(sr!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=f){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),K+=sr-1;continue}if(y===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,K+=sr-1;continue}this.info.bytes=this.state.bufBytesStart+K;let bi=this.__onField();if(bi!==void 0)return bi;this.info.bytes=this.state.bufBytesStart+K+sr;let tc=this.__onRecord(s);if(tc!==void 0)return tc;if(C!==-1&&this.info.records>=C){this.state.stop=!0,a();return}}this.state.commenting=!1,K+=sr-1;continue}if(this.state.commenting)continue;if(B!==null&&(l===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(B,de,K,fe)!==0){this.state.commenting=!0;continue}let or=this.__isDelimiter(de,K,fe);if(or!==0){this.info.bytes=this.state.bufBytesStart+K;let Ji=this.__onField();if(Ji!==void 0)return Ji;K+=or-1;continue}}}if(this.state.commenting===!1&&p!==0&&this.state.record_length+this.state.field.length>p)return this.__error(new ct("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${p}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let Tt=h===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(de,K),yt=E===!1||this.state.wasQuoting===!1;if(Tt===!0&&yt===!0)this.state.field.append(fe);else{if(E===!0&&!this.__isCharTrimable(de,K))return this.__error(new ct("CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE",["Invalid Closing Quote:","found non trimable byte after quote",`at line ${this.info.lines}`],this.options,this.__infoField()));Tt===!1&&(K+=this.__isCharTrimable(de,K)-1);continue}}if(i===!0)if(this.state.quoting===!0){let fe=this.__error(new ct("CSV_QUOTE_NOT_CLOSED",["Quote Not Closed:",`the parsing is finished with an opening quote at line ${this.info.lines}`],this.options,this.__infoField()));if(fe!==void 0)return fe}else if(this.state.wasQuoting===!0||this.state.record.length!==0||this.state.field.length!==0){this.info.bytes=this.state.bufBytesStart+K;let fe=this.__onField();if(fe!==void 0)return fe;let Tt=this.__onRecord(s);if(Tt!==void 0)return Tt}else this.state.wasRowDelimiter===!0?this.info.empty_lines++:this.state.commenting===!0&&this.info.comment_lines++;else this.state.bufBytesStart+=K,this.state.previousBuf=de.slice(K);this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1)},"parse"),__onRecord:o(function(n){let{columns:i,group_columns_by_name:s,encoding:a,info:c,from:l,relax_column_count:u,relax_column_count_less:d,relax_column_count_more:f,raw:h,skip_records_with_empty_values:p}=this.options,{enabled:m,record:A}=this.state;if(m===!1)return this.__resetRecord();let E=A.length;if(i===!0){if(p===!0&&Ebe(A)){this.__resetRecord();return}return this.__firstLineToColumns(A)}if(i===!1&&this.info.records===0&&(this.state.expectedRecordLength=E),E!==this.state.expectedRecordLength){let y=i===!1?new ct("CSV_RECORD_INCONSISTENT_FIELDS_LENGTH",["Invalid Record Length:",`expect ${this.state.expectedRecordLength},`,`got ${E} on line ${this.info.lines}`],this.options,this.__infoField(),{record:A}):new ct("CSV_RECORD_INCONSISTENT_COLUMNS",["Invalid Record Length:",`columns length is ${i.length},`,`got ${E} on line ${this.info.lines}`],this.options,this.__infoField(),{record:A});if(u===!0||d===!0&&Ethis.state.expectedRecordLength)this.info.invalid_field_length++,this.state.error=y;else{let C=this.__error(y);if(C)return C}}if(p===!0&&Ebe(A)){this.__resetRecord();return}if(this.state.recordHasError===!0){this.__resetRecord(),this.state.recordHasError=!1;return}if(this.info.records++,l===1||this.info.records>=l){let{objname:y}=this.options;if(i!==!1){let C={};for(let w=0,B=A.length;w=0},"__isFloat"),__isQuote:o(function(n,i){let{quote:s}=this.options;if(s===null)return!1;let a=s.length;for(let c=0;cu_(l.name.toLowerCase(),u.name.toLowerCase())),a=a.filter((l,u,d)=>!(u>0&&l.name.toLowerCase()===d[u-1].name.toLowerCase()));let c="";return a.forEach(l=>{c+=`${l.name.toLowerCase().trimRight()}:${l.value.trimLeft()} +`}),c}o(n,"getCanonicalizedHeadersString");function i(s){let a=a_(s.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=c_(s.url),u={};if(l){let d=[];for(let f in l)if(Object.prototype.hasOwnProperty.call(l,f)){let h=f.toLowerCase();u[h]=l[f],d.push(h)}d.sort();for(let f of d)c+=` +${f}:${decodeURIComponent(u[f])}`}return c}return o(i,"getCanonicalizedResourceString"),{name:hnt,async sendRequest(s,a){return e(s),a(s)}}}o(o3,"storageSharedKeyCredentialPolicy");var pnt="storageRequestFailureDetailsParserPolicy";function Ihe(){return{name:pnt,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information. +`),r}}}}o(Ihe,"storageRequestFailureDetailsParserPolicy");var She=require("node:crypto");var d_=class{static{o(this,"UserDelegationKeyCredential")}accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,She.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var f_="12.31.0",h_="2026-02-06";var p_="https://storage.azure.com/.default",hu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var _a="",a3="*",Ant=1*1024*1024;var mnt=4*Ant;var Bhe="AES256",xhe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",vhe=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],Nhe=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],_he="BlobUsesCustomerSpecifiedEncryption",Rhe="BlobDoesNotUseCustomerSpecifiedEncryption",The=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function pu(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}o(pu,"isPipelineLike");var y0=class{static{o(this,"Pipeline")}factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Gr(t,e={}){t||(t=new dr);let r=new y0([],e);return r._credential=t,r}o(Gr,"newPipeline");function gnt(t){let e=[ynt,Dhe,Ent,Cnt,bnt,wnt,Snt];if(t.factories.length){let r=t.factories.filter(n=>!e.some(i=>i(n)));if(r.length){let n=r.some(i=>Int(i));return{wrappedPolicies:Oq(r),afterRetry:n}}}}o(gnt,"processDownlevelPipeline");function c3(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?Lq(e):s3(),t._coreHttpClient=n);let i=t._corePipeline;if(!i){let s=`azsdk-js-azure-storage-blob/${f_}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${s}`:`${s}`;i=e0({...r,loggingOptions:{additionalAllowedHeaderNames:vhe,additionalAllowedQueryParameters:Nhe,logger:t_.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:e_,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:n3,serializerOptions:{xml:{xmlCharKey:"#"}}}}),i.removePolicy({phase:"Retry"}),i.removePolicy({name:fq}),i.addPolicy(Che()),i.addPolicy(bhe(r.retryOptions),{phase:"Retry"}),i.addPolicy(Ihe()),i.addPolicy(Ehe());let c=gnt(t);c&&i.addPolicy(c.wrappedPolicies,c.afterRetry?{afterPhase:"Retry"}:void 0);let l=l3(t);$s(l)?i.addPolicy(Xm({credential:l,scopes:r.audience??p_,challengeCallbacks:{authorizeRequestOnChallenge:HN}}),{phase:"Sign"}):l instanceof xr&&i.addPolicy(o3({accountName:l.accountName,accountKey:l.accountKey}),{phase:"Sign"}),t._corePipeline=i}return{...r,allowInsecureConnection:!0,httpClient:n,pipeline:i}}o(c3,"getCoreClientOptions");function l3(t){if(t._credential)return t._credential;let e=new dr;for(let r of t.factories)if($s(r.credential))e=r.credential;else if(Dhe(r))return r;return e}o(l3,"getCredentialFromPipeline");function Dhe(t){return t instanceof xr?!0:t.constructor.name==="StorageSharedKeyCredential"}o(Dhe,"isStorageSharedKeyCredential");function ynt(t){return t instanceof dr?!0:t.constructor.name==="AnonymousCredential"}o(ynt,"isAnonymousCredential");function Ent(t){return $s(t.credential)}o(Ent,"isCoreHttpBearerTokenFactory");function Cnt(t){return t instanceof h0?!0:t.constructor.name==="StorageBrowserPolicyFactory"}o(Cnt,"isStorageBrowserPolicyFactory");function bnt(t){return t instanceof g0?!0:t.constructor.name==="StorageRetryPolicyFactory"}o(bnt,"isStorageRetryPolicyFactory");function wnt(t){return t.constructor.name==="TelemetryPolicyFactory"}o(wnt,"isStorageTelemetryPolicyFactory");function Int(t){return t.constructor.name==="InjectorPolicyFactory"}o(Int,"isInjectorPolicyFactory");function Snt(t){let e=["GenerateClientRequestIdPolicy","TracingPolicy","LogPolicy","ProxyPolicy","DisableResponseDecompressionPolicy","KeepAlivePolicy","DeserializationPolicy"],r={sendRequest:o(async a=>({request:a,headers:a.headers.clone(),status:500}),"sendRequest")},n={log(a,c){},shouldLog(a){return!1}},s=t.create(r,n).constructor.name;return e.some(a=>s.startsWith(a))}o(Snt,"isCoreHttpPolicyFactory");var Qhe;(function(t){t.AES256="AES256"})(Qhe||(Qhe={}));var khe;(function(t){t.Backup="backup"})(khe||(khe={}));var Phe;(function(t){t.NeverExpire="NeverExpire",t.RelativeToCreation="RelativeToCreation",t.RelativeToNow="RelativeToNow",t.Absolute="Absolute"})(Phe||(Phe={}));var Ohe;(function(t){t.AccountAlreadyExists="AccountAlreadyExists",t.AccountBeingCreated="AccountBeingCreated",t.AccountIsDisabled="AccountIsDisabled",t.AuthenticationFailed="AuthenticationFailed",t.AuthorizationFailure="AuthorizationFailure",t.ConditionHeadersNotSupported="ConditionHeadersNotSupported",t.ConditionNotMet="ConditionNotMet",t.EmptyMetadataKey="EmptyMetadataKey",t.InsufficientAccountPermissions="InsufficientAccountPermissions",t.InternalError="InternalError",t.InvalidAuthenticationInfo="InvalidAuthenticationInfo",t.InvalidHeaderValue="InvalidHeaderValue",t.InvalidHttpVerb="InvalidHttpVerb",t.InvalidInput="InvalidInput",t.InvalidMd5="InvalidMd5",t.InvalidMetadata="InvalidMetadata",t.InvalidQueryParameterValue="InvalidQueryParameterValue",t.InvalidRange="InvalidRange",t.InvalidResourceName="InvalidResourceName",t.InvalidUri="InvalidUri",t.InvalidXmlDocument="InvalidXmlDocument",t.InvalidXmlNodeValue="InvalidXmlNodeValue",t.Md5Mismatch="Md5Mismatch",t.MetadataTooLarge="MetadataTooLarge",t.MissingContentLengthHeader="MissingContentLengthHeader",t.MissingRequiredQueryParameter="MissingRequiredQueryParameter",t.MissingRequiredHeader="MissingRequiredHeader",t.MissingRequiredXmlNode="MissingRequiredXmlNode",t.MultipleConditionHeadersNotSupported="MultipleConditionHeadersNotSupported",t.OperationTimedOut="OperationTimedOut",t.OutOfRangeInput="OutOfRangeInput",t.OutOfRangeQueryParameterValue="OutOfRangeQueryParameterValue",t.RequestBodyTooLarge="RequestBodyTooLarge",t.ResourceTypeMismatch="ResourceTypeMismatch",t.RequestUrlFailedToParse="RequestUrlFailedToParse",t.ResourceAlreadyExists="ResourceAlreadyExists",t.ResourceNotFound="ResourceNotFound",t.ServerBusy="ServerBusy",t.UnsupportedHeader="UnsupportedHeader",t.UnsupportedXmlNode="UnsupportedXmlNode",t.UnsupportedQueryParameter="UnsupportedQueryParameter",t.UnsupportedHttpVerb="UnsupportedHttpVerb",t.AppendPositionConditionNotMet="AppendPositionConditionNotMet",t.BlobAlreadyExists="BlobAlreadyExists",t.BlobImmutableDueToPolicy="BlobImmutableDueToPolicy",t.BlobNotFound="BlobNotFound",t.BlobOverwritten="BlobOverwritten",t.BlobTierInadequateForContentLength="BlobTierInadequateForContentLength",t.BlobUsesCustomerSpecifiedEncryption="BlobUsesCustomerSpecifiedEncryption",t.BlockCountExceedsLimit="BlockCountExceedsLimit",t.BlockListTooLong="BlockListTooLong",t.CannotChangeToLowerTier="CannotChangeToLowerTier",t.CannotVerifyCopySource="CannotVerifyCopySource",t.ContainerAlreadyExists="ContainerAlreadyExists",t.ContainerBeingDeleted="ContainerBeingDeleted",t.ContainerDisabled="ContainerDisabled",t.ContainerNotFound="ContainerNotFound",t.ContentLengthLargerThanTierLimit="ContentLengthLargerThanTierLimit",t.CopyAcrossAccountsNotSupported="CopyAcrossAccountsNotSupported",t.CopyIdMismatch="CopyIdMismatch",t.FeatureVersionMismatch="FeatureVersionMismatch",t.IncrementalCopyBlobMismatch="IncrementalCopyBlobMismatch",t.IncrementalCopyOfEarlierVersionSnapshotNotAllowed="IncrementalCopyOfEarlierVersionSnapshotNotAllowed",t.IncrementalCopySourceMustBeSnapshot="IncrementalCopySourceMustBeSnapshot",t.InfiniteLeaseDurationRequired="InfiniteLeaseDurationRequired",t.InvalidBlobOrBlock="InvalidBlobOrBlock",t.InvalidBlobTier="InvalidBlobTier",t.InvalidBlobType="InvalidBlobType",t.InvalidBlockId="InvalidBlockId",t.InvalidBlockList="InvalidBlockList",t.InvalidOperation="InvalidOperation",t.InvalidPageRange="InvalidPageRange",t.InvalidSourceBlobType="InvalidSourceBlobType",t.InvalidSourceBlobUrl="InvalidSourceBlobUrl",t.InvalidVersionForPageBlobOperation="InvalidVersionForPageBlobOperation",t.LeaseAlreadyPresent="LeaseAlreadyPresent",t.LeaseAlreadyBroken="LeaseAlreadyBroken",t.LeaseIdMismatchWithBlobOperation="LeaseIdMismatchWithBlobOperation",t.LeaseIdMismatchWithContainerOperation="LeaseIdMismatchWithContainerOperation",t.LeaseIdMismatchWithLeaseOperation="LeaseIdMismatchWithLeaseOperation",t.LeaseIdMissing="LeaseIdMissing",t.LeaseIsBreakingAndCannotBeAcquired="LeaseIsBreakingAndCannotBeAcquired",t.LeaseIsBreakingAndCannotBeChanged="LeaseIsBreakingAndCannotBeChanged",t.LeaseIsBrokenAndCannotBeRenewed="LeaseIsBrokenAndCannotBeRenewed",t.LeaseLost="LeaseLost",t.LeaseNotPresentWithBlobOperation="LeaseNotPresentWithBlobOperation",t.LeaseNotPresentWithContainerOperation="LeaseNotPresentWithContainerOperation",t.LeaseNotPresentWithLeaseOperation="LeaseNotPresentWithLeaseOperation",t.MaxBlobSizeConditionNotMet="MaxBlobSizeConditionNotMet",t.NoAuthenticationInformation="NoAuthenticationInformation",t.NoPendingCopyOperation="NoPendingCopyOperation",t.OperationNotAllowedOnIncrementalCopyBlob="OperationNotAllowedOnIncrementalCopyBlob",t.PendingCopyOperation="PendingCopyOperation",t.PreviousSnapshotCannotBeNewer="PreviousSnapshotCannotBeNewer",t.PreviousSnapshotNotFound="PreviousSnapshotNotFound",t.PreviousSnapshotOperationNotSupported="PreviousSnapshotOperationNotSupported",t.SequenceNumberConditionNotMet="SequenceNumberConditionNotMet",t.SequenceNumberIncrementTooLarge="SequenceNumberIncrementTooLarge",t.SnapshotCountExceeded="SnapshotCountExceeded",t.SnapshotOperationRateExceeded="SnapshotOperationRateExceeded",t.SnapshotsPresent="SnapshotsPresent",t.SourceConditionNotMet="SourceConditionNotMet",t.SystemInUse="SystemInUse",t.TargetConditionNotMet="TargetConditionNotMet",t.UnauthorizedBlobOverwrite="UnauthorizedBlobOverwrite",t.BlobBeingRehydrated="BlobBeingRehydrated",t.BlobArchived="BlobArchived",t.BlobNotArchived="BlobNotArchived",t.AuthorizationSourceIPMismatch="AuthorizationSourceIPMismatch",t.AuthorizationProtocolMismatch="AuthorizationProtocolMismatch",t.AuthorizationPermissionMismatch="AuthorizationPermissionMismatch",t.AuthorizationServiceMismatch="AuthorizationServiceMismatch",t.AuthorizationResourceTypeMismatch="AuthorizationResourceTypeMismatch",t.BlobAccessTierNotSupportedForAccountType="BlobAccessTierNotSupportedForAccountType"})(Ohe||(Ohe={}));var Js={};kLe(Js,{AccessPolicy:()=>Ont,AppendBlobAppendBlockExceptionHeaders:()=>_H,AppendBlobAppendBlockFromUrlExceptionHeaders:()=>TH,AppendBlobAppendBlockFromUrlHeaders:()=>RH,AppendBlobAppendBlockHeaders:()=>NH,AppendBlobCreateExceptionHeaders:()=>vH,AppendBlobCreateHeaders:()=>xH,AppendBlobSealExceptionHeaders:()=>QH,AppendBlobSealHeaders:()=>DH,ArrowConfiguration:()=>Ynt,ArrowField:()=>Knt,BlobAbortCopyFromURLExceptionHeaders:()=>ZG,BlobAbortCopyFromURLHeaders:()=>XG,BlobAcquireLeaseExceptionHeaders:()=>LG,BlobAcquireLeaseHeaders:()=>OG,BlobBreakLeaseExceptionHeaders:()=>VG,BlobBreakLeaseHeaders:()=>zG,BlobChangeLeaseExceptionHeaders:()=>HG,BlobChangeLeaseHeaders:()=>GG,BlobCopyFromURLExceptionHeaders:()=>KG,BlobCopyFromURLHeaders:()=>YG,BlobCreateSnapshotExceptionHeaders:()=>jG,BlobCreateSnapshotHeaders:()=>$G,BlobDeleteExceptionHeaders:()=>bG,BlobDeleteHeaders:()=>CG,BlobDeleteImmutabilityPolicyExceptionHeaders:()=>TG,BlobDeleteImmutabilityPolicyHeaders:()=>RG,BlobDownloadExceptionHeaders:()=>gG,BlobDownloadHeaders:()=>m_,BlobFlatListSegment:()=>Lnt,BlobGetAccountInfoExceptionHeaders:()=>rH,BlobGetAccountInfoHeaders:()=>tH,BlobGetPropertiesExceptionHeaders:()=>EG,BlobGetPropertiesHeaders:()=>yG,BlobGetTagsExceptionHeaders:()=>sH,BlobGetTagsHeaders:()=>iH,BlobHierarchyListSegment:()=>qnt,BlobItemInternal:()=>Fnt,BlobName:()=>Mnt,BlobPrefix:()=>Gnt,BlobPropertiesInternal:()=>Unt,BlobQueryExceptionHeaders:()=>nH,BlobQueryHeaders:()=>y_,BlobReleaseLeaseExceptionHeaders:()=>MG,BlobReleaseLeaseHeaders:()=>FG,BlobRenewLeaseExceptionHeaders:()=>qG,BlobRenewLeaseHeaders:()=>UG,BlobServiceProperties:()=>E0,BlobServiceStatistics:()=>u3,BlobSetExpiryExceptionHeaders:()=>BG,BlobSetExpiryHeaders:()=>SG,BlobSetHttpHeadersExceptionHeaders:()=>vG,BlobSetHttpHeadersHeaders:()=>xG,BlobSetImmutabilityPolicyExceptionHeaders:()=>_G,BlobSetImmutabilityPolicyHeaders:()=>NG,BlobSetLegalHoldExceptionHeaders:()=>QG,BlobSetLegalHoldHeaders:()=>DG,BlobSetMetadataExceptionHeaders:()=>PG,BlobSetMetadataHeaders:()=>kG,BlobSetTagsExceptionHeaders:()=>aH,BlobSetTagsHeaders:()=>oH,BlobSetTierExceptionHeaders:()=>eH,BlobSetTierHeaders:()=>g_,BlobStartCopyFromURLExceptionHeaders:()=>JG,BlobStartCopyFromURLHeaders:()=>WG,BlobTag:()=>knt,BlobTags:()=>b0,BlobUndeleteExceptionHeaders:()=>IG,BlobUndeleteHeaders:()=>wG,Block:()=>Hnt,BlockBlobCommitBlockListExceptionHeaders:()=>HH,BlockBlobCommitBlockListHeaders:()=>GH,BlockBlobGetBlockListExceptionHeaders:()=>VH,BlockBlobGetBlockListHeaders:()=>zH,BlockBlobPutBlobFromUrlExceptionHeaders:()=>LH,BlockBlobPutBlobFromUrlHeaders:()=>OH,BlockBlobStageBlockExceptionHeaders:()=>MH,BlockBlobStageBlockFromURLExceptionHeaders:()=>qH,BlockBlobStageBlockFromURLHeaders:()=>UH,BlockBlobStageBlockHeaders:()=>FH,BlockBlobUploadExceptionHeaders:()=>PH,BlockBlobUploadHeaders:()=>kH,BlockList:()=>g3,BlockLookupList:()=>m3,ClearRange:()=>Vnt,ContainerAcquireLeaseExceptionHeaders:()=>rG,ContainerAcquireLeaseHeaders:()=>tG,ContainerBreakLeaseExceptionHeaders:()=>cG,ContainerBreakLeaseHeaders:()=>aG,ContainerChangeLeaseExceptionHeaders:()=>uG,ContainerChangeLeaseHeaders:()=>lG,ContainerCreateExceptionHeaders:()=>O3,ContainerCreateHeaders:()=>P3,ContainerDeleteExceptionHeaders:()=>U3,ContainerDeleteHeaders:()=>M3,ContainerFilterBlobsExceptionHeaders:()=>eG,ContainerFilterBlobsHeaders:()=>Z3,ContainerGetAccessPolicyExceptionHeaders:()=>z3,ContainerGetAccessPolicyHeaders:()=>H3,ContainerGetAccountInfoExceptionHeaders:()=>mG,ContainerGetAccountInfoHeaders:()=>AG,ContainerGetPropertiesExceptionHeaders:()=>F3,ContainerGetPropertiesHeaders:()=>L3,ContainerItem:()=>Tnt,ContainerListBlobFlatSegmentExceptionHeaders:()=>fG,ContainerListBlobFlatSegmentHeaders:()=>dG,ContainerListBlobHierarchySegmentExceptionHeaders:()=>pG,ContainerListBlobHierarchySegmentHeaders:()=>hG,ContainerProperties:()=>Dnt,ContainerReleaseLeaseExceptionHeaders:()=>iG,ContainerReleaseLeaseHeaders:()=>nG,ContainerRenameExceptionHeaders:()=>Y3,ContainerRenameHeaders:()=>J3,ContainerRenewLeaseExceptionHeaders:()=>oG,ContainerRenewLeaseHeaders:()=>sG,ContainerRestoreExceptionHeaders:()=>W3,ContainerRestoreHeaders:()=>j3,ContainerSetAccessPolicyExceptionHeaders:()=>$3,ContainerSetAccessPolicyHeaders:()=>V3,ContainerSetMetadataExceptionHeaders:()=>G3,ContainerSetMetadataHeaders:()=>q3,ContainerSubmitBatchExceptionHeaders:()=>X3,ContainerSubmitBatchHeaders:()=>K3,CorsRule:()=>Nnt,DelimitedTextConfiguration:()=>Wnt,FilterBlobItem:()=>Qnt,FilterBlobSegment:()=>C0,GeoReplication:()=>Rnt,JsonTextConfiguration:()=>Jnt,KeyInfo:()=>f3,ListBlobsFlatSegmentResponse:()=>p3,ListBlobsHierarchySegmentResponse:()=>A3,ListContainersSegmentResponse:()=>d3,Logging:()=>Bnt,Metrics:()=>vnt,PageBlobClearPagesExceptionHeaders:()=>hH,PageBlobClearPagesHeaders:()=>fH,PageBlobCopyIncrementalExceptionHeaders:()=>BH,PageBlobCopyIncrementalHeaders:()=>SH,PageBlobCreateExceptionHeaders:()=>lH,PageBlobCreateHeaders:()=>cH,PageBlobGetPageRangesDiffExceptionHeaders:()=>EH,PageBlobGetPageRangesDiffHeaders:()=>yH,PageBlobGetPageRangesExceptionHeaders:()=>gH,PageBlobGetPageRangesHeaders:()=>mH,PageBlobResizeExceptionHeaders:()=>bH,PageBlobResizeHeaders:()=>CH,PageBlobUpdateSequenceNumberExceptionHeaders:()=>IH,PageBlobUpdateSequenceNumberHeaders:()=>wH,PageBlobUploadPagesExceptionHeaders:()=>dH,PageBlobUploadPagesFromURLExceptionHeaders:()=>AH,PageBlobUploadPagesFromURLHeaders:()=>pH,PageBlobUploadPagesHeaders:()=>uH,PageList:()=>A_,PageRange:()=>znt,QueryFormat:()=>jnt,QueryRequest:()=>y3,QuerySerialization:()=>$nt,RetentionPolicy:()=>xnt,ServiceFilterBlobsExceptionHeaders:()=>k3,ServiceFilterBlobsHeaders:()=>Q3,ServiceGetAccountInfoExceptionHeaders:()=>R3,ServiceGetAccountInfoHeaders:()=>_3,ServiceGetPropertiesExceptionHeaders:()=>w3,ServiceGetPropertiesHeaders:()=>b3,ServiceGetStatisticsExceptionHeaders:()=>S3,ServiceGetStatisticsHeaders:()=>I3,ServiceGetUserDelegationKeyExceptionHeaders:()=>N3,ServiceGetUserDelegationKeyHeaders:()=>v3,ServiceListContainersSegmentExceptionHeaders:()=>x3,ServiceListContainersSegmentHeaders:()=>B3,ServiceSetPropertiesExceptionHeaders:()=>C3,ServiceSetPropertiesHeaders:()=>E3,ServiceSubmitBatchExceptionHeaders:()=>D3,ServiceSubmitBatchHeaders:()=>T3,SignedIdentifier:()=>Pnt,StaticWebsite:()=>_nt,StorageError:()=>Z,UserDelegationKey:()=>h3});var E0={serializedName:"BlobServiceProperties",xmlName:"StorageServiceProperties",type:{name:"Composite",className:"BlobServiceProperties",modelProperties:{blobAnalyticsLogging:{serializedName:"Logging",xmlName:"Logging",type:{name:"Composite",className:"Logging"}},hourMetrics:{serializedName:"HourMetrics",xmlName:"HourMetrics",type:{name:"Composite",className:"Metrics"}},minuteMetrics:{serializedName:"MinuteMetrics",xmlName:"MinuteMetrics",type:{name:"Composite",className:"Metrics"}},cors:{serializedName:"Cors",xmlName:"Cors",xmlIsWrapped:!0,xmlElementName:"CorsRule",type:{name:"Sequence",element:{type:{name:"Composite",className:"CorsRule"}}}},defaultServiceVersion:{serializedName:"DefaultServiceVersion",xmlName:"DefaultServiceVersion",type:{name:"String"}},deleteRetentionPolicy:{serializedName:"DeleteRetentionPolicy",xmlName:"DeleteRetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}},staticWebsite:{serializedName:"StaticWebsite",xmlName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite"}}}}},Bnt={serializedName:"Logging",type:{name:"Composite",className:"Logging",modelProperties:{version:{serializedName:"Version",required:!0,xmlName:"Version",type:{name:"String"}},deleteProperty:{serializedName:"Delete",required:!0,xmlName:"Delete",type:{name:"Boolean"}},read:{serializedName:"Read",required:!0,xmlName:"Read",type:{name:"Boolean"}},write:{serializedName:"Write",required:!0,xmlName:"Write",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}},xnt={serializedName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy",modelProperties:{enabled:{serializedName:"Enabled",required:!0,xmlName:"Enabled",type:{name:"Boolean"}},days:{constraints:{InclusiveMinimum:1},serializedName:"Days",xmlName:"Days",type:{name:"Number"}}}}},vnt={serializedName:"Metrics",type:{name:"Composite",className:"Metrics",modelProperties:{version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},enabled:{serializedName:"Enabled",required:!0,xmlName:"Enabled",type:{name:"Boolean"}},includeAPIs:{serializedName:"IncludeAPIs",xmlName:"IncludeAPIs",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}},Nnt={serializedName:"CorsRule",type:{name:"Composite",className:"CorsRule",modelProperties:{allowedOrigins:{serializedName:"AllowedOrigins",required:!0,xmlName:"AllowedOrigins",type:{name:"String"}},allowedMethods:{serializedName:"AllowedMethods",required:!0,xmlName:"AllowedMethods",type:{name:"String"}},allowedHeaders:{serializedName:"AllowedHeaders",required:!0,xmlName:"AllowedHeaders",type:{name:"String"}},exposedHeaders:{serializedName:"ExposedHeaders",required:!0,xmlName:"ExposedHeaders",type:{name:"String"}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:"MaxAgeInSeconds",required:!0,xmlName:"MaxAgeInSeconds",type:{name:"Number"}}}}},_nt={serializedName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite",modelProperties:{enabled:{serializedName:"Enabled",required:!0,xmlName:"Enabled",type:{name:"Boolean"}},indexDocument:{serializedName:"IndexDocument",xmlName:"IndexDocument",type:{name:"String"}},errorDocument404Path:{serializedName:"ErrorDocument404Path",xmlName:"ErrorDocument404Path",type:{name:"String"}},defaultIndexDocumentPath:{serializedName:"DefaultIndexDocumentPath",xmlName:"DefaultIndexDocumentPath",type:{name:"String"}}}}},Z={serializedName:"StorageError",type:{name:"Composite",className:"StorageError",modelProperties:{message:{serializedName:"Message",xmlName:"Message",type:{name:"String"}},copySourceStatusCode:{serializedName:"CopySourceStatusCode",xmlName:"CopySourceStatusCode",type:{name:"Number"}},copySourceErrorCode:{serializedName:"CopySourceErrorCode",xmlName:"CopySourceErrorCode",type:{name:"String"}},copySourceErrorMessage:{serializedName:"CopySourceErrorMessage",xmlName:"CopySourceErrorMessage",type:{name:"String"}},code:{serializedName:"Code",xmlName:"Code",type:{name:"String"}},authenticationErrorDetail:{serializedName:"AuthenticationErrorDetail",xmlName:"AuthenticationErrorDetail",type:{name:"String"}}}}},u3={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}},Rnt={serializedName:"GeoReplication",type:{name:"Composite",className:"GeoReplication",modelProperties:{status:{serializedName:"Status",required:!0,xmlName:"Status",type:{name:"Enum",allowedValues:["live","bootstrap","unavailable"]}},lastSyncOn:{serializedName:"LastSyncTime",required:!0,xmlName:"LastSyncTime",type:{name:"DateTimeRfc1123"}}}}},d3={serializedName:"ListContainersSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListContainersSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:!0,xmlName:"ServiceEndpoint",xmlIsAttribute:!0,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},containerItems:{serializedName:"ContainerItems",required:!0,xmlName:"Containers",xmlIsWrapped:!0,xmlElementName:"Container",type:{name:"Sequence",element:{type:{name:"Composite",className:"ContainerItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},Tnt={serializedName:"ContainerItem",xmlName:"Container",type:{name:"Composite",className:"ContainerItem",modelProperties:{name:{serializedName:"Name",required:!0,xmlName:"Name",type:{name:"String"}},deleted:{serializedName:"Deleted",xmlName:"Deleted",type:{name:"Boolean"}},version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"ContainerProperties"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}},Dnt={serializedName:"ContainerProperties",type:{name:"Composite",className:"ContainerProperties",modelProperties:{lastModified:{serializedName:"Last-Modified",required:!0,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:!0,xmlName:"Etag",type:{name:"String"}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},publicAccess:{serializedName:"PublicAccess",xmlName:"PublicAccess",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"HasImmutabilityPolicy",xmlName:"HasImmutabilityPolicy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"HasLegalHold",xmlName:"HasLegalHold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"DefaultEncryptionScope",xmlName:"DefaultEncryptionScope",type:{name:"String"}},preventEncryptionScopeOverride:{serializedName:"DenyEncryptionScopeOverride",xmlName:"DenyEncryptionScopeOverride",type:{name:"Boolean"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},isImmutableStorageWithVersioningEnabled:{serializedName:"ImmutableStorageWithVersioningEnabled",xmlName:"ImmutableStorageWithVersioningEnabled",type:{name:"Boolean"}}}}},f3={serializedName:"KeyInfo",type:{name:"Composite",className:"KeyInfo",modelProperties:{startsOn:{serializedName:"Start",required:!0,xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",required:!0,xmlName:"Expiry",type:{name:"String"}}}}},h3={serializedName:"UserDelegationKey",type:{name:"Composite",className:"UserDelegationKey",modelProperties:{signedObjectId:{serializedName:"SignedOid",required:!0,xmlName:"SignedOid",type:{name:"String"}},signedTenantId:{serializedName:"SignedTid",required:!0,xmlName:"SignedTid",type:{name:"String"}},signedStartsOn:{serializedName:"SignedStart",required:!0,xmlName:"SignedStart",type:{name:"String"}},signedExpiresOn:{serializedName:"SignedExpiry",required:!0,xmlName:"SignedExpiry",type:{name:"String"}},signedService:{serializedName:"SignedService",required:!0,xmlName:"SignedService",type:{name:"String"}},signedVersion:{serializedName:"SignedVersion",required:!0,xmlName:"SignedVersion",type:{name:"String"}},value:{serializedName:"Value",required:!0,xmlName:"Value",type:{name:"String"}}}}},C0={serializedName:"FilterBlobSegment",xmlName:"EnumerationResults",type:{name:"Composite",className:"FilterBlobSegment",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:!0,xmlName:"ServiceEndpoint",xmlIsAttribute:!0,type:{name:"String"}},where:{serializedName:"Where",required:!0,xmlName:"Where",type:{name:"String"}},blobs:{serializedName:"Blobs",required:!0,xmlName:"Blobs",xmlIsWrapped:!0,xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"FilterBlobItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},Qnt={serializedName:"FilterBlobItem",xmlName:"Blob",type:{name:"Composite",className:"FilterBlobItem",modelProperties:{name:{serializedName:"Name",required:!0,xmlName:"Name",type:{name:"String"}},containerName:{serializedName:"ContainerName",required:!0,xmlName:"ContainerName",type:{name:"String"}},tags:{serializedName:"Tags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}}}}},b0={serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags",modelProperties:{blobTagSet:{serializedName:"BlobTagSet",required:!0,xmlName:"TagSet",xmlIsWrapped:!0,xmlElementName:"Tag",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobTag"}}}}}}},knt={serializedName:"BlobTag",xmlName:"Tag",type:{name:"Composite",className:"BlobTag",modelProperties:{key:{serializedName:"Key",required:!0,xmlName:"Key",type:{name:"String"}},value:{serializedName:"Value",required:!0,xmlName:"Value",type:{name:"String"}}}}},Pnt={serializedName:"SignedIdentifier",xmlName:"SignedIdentifier",type:{name:"Composite",className:"SignedIdentifier",modelProperties:{id:{serializedName:"Id",required:!0,xmlName:"Id",type:{name:"String"}},accessPolicy:{serializedName:"AccessPolicy",xmlName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy"}}}}},Ont={serializedName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy",modelProperties:{startsOn:{serializedName:"Start",xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",xmlName:"Expiry",type:{name:"String"}},permissions:{serializedName:"Permission",xmlName:"Permission",type:{name:"String"}}}}},p3={serializedName:"ListBlobsFlatSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsFlatSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:!0,xmlName:"ServiceEndpoint",xmlIsAttribute:!0,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:!0,xmlName:"ContainerName",xmlIsAttribute:!0,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},Lnt={serializedName:"BlobFlatListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment",modelProperties:{blobItems:{serializedName:"BlobItems",required:!0,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}},Fnt={serializedName:"BlobItemInternal",xmlName:"Blob",type:{name:"Composite",className:"BlobItemInternal",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}},deleted:{serializedName:"Deleted",required:!0,xmlName:"Deleted",type:{name:"Boolean"}},snapshot:{serializedName:"Snapshot",required:!0,xmlName:"Snapshot",type:{name:"String"}},versionId:{serializedName:"VersionId",xmlName:"VersionId",type:{name:"String"}},isCurrentVersion:{serializedName:"IsCurrentVersion",xmlName:"IsCurrentVersion",type:{name:"Boolean"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobTags:{serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}},objectReplicationMetadata:{serializedName:"ObjectReplicationMetadata",xmlName:"OrMetadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},hasVersionsOnly:{serializedName:"HasVersionsOnly",xmlName:"HasVersionsOnly",type:{name:"Boolean"}}}}},Mnt={serializedName:"BlobName",type:{name:"Composite",className:"BlobName",modelProperties:{encoded:{serializedName:"Encoded",xmlName:"Encoded",xmlIsAttribute:!0,type:{name:"Boolean"}},content:{serializedName:"content",xmlName:"content",xmlIsMsText:!0,type:{name:"String"}}}}},Unt={serializedName:"BlobPropertiesInternal",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal",modelProperties:{createdOn:{serializedName:"Creation-Time",xmlName:"Creation-Time",type:{name:"DateTimeRfc1123"}},lastModified:{serializedName:"Last-Modified",required:!0,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:!0,xmlName:"Etag",type:{name:"String"}},contentLength:{serializedName:"Content-Length",xmlName:"Content-Length",type:{name:"Number"}},contentType:{serializedName:"Content-Type",xmlName:"Content-Type",type:{name:"String"}},contentEncoding:{serializedName:"Content-Encoding",xmlName:"Content-Encoding",type:{name:"String"}},contentLanguage:{serializedName:"Content-Language",xmlName:"Content-Language",type:{name:"String"}},contentMD5:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}},contentDisposition:{serializedName:"Content-Disposition",xmlName:"Content-Disposition",type:{name:"String"}},cacheControl:{serializedName:"Cache-Control",xmlName:"Cache-Control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"BlobType",xmlName:"BlobType",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},copyId:{serializedName:"CopyId",xmlName:"CopyId",type:{name:"String"}},copyStatus:{serializedName:"CopyStatus",xmlName:"CopyStatus",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},copySource:{serializedName:"CopySource",xmlName:"CopySource",type:{name:"String"}},copyProgress:{serializedName:"CopyProgress",xmlName:"CopyProgress",type:{name:"String"}},copyCompletedOn:{serializedName:"CopyCompletionTime",xmlName:"CopyCompletionTime",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"CopyStatusDescription",xmlName:"CopyStatusDescription",type:{name:"String"}},serverEncrypted:{serializedName:"ServerEncrypted",xmlName:"ServerEncrypted",type:{name:"Boolean"}},incrementalCopy:{serializedName:"IncrementalCopy",xmlName:"IncrementalCopy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"DestinationSnapshot",xmlName:"DestinationSnapshot",type:{name:"String"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},accessTier:{serializedName:"AccessTier",xmlName:"AccessTier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}},accessTierInferred:{serializedName:"AccessTierInferred",xmlName:"AccessTierInferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"ArchiveStatus",xmlName:"ArchiveStatus",type:{name:"Enum",allowedValues:["rehydrate-pending-to-hot","rehydrate-pending-to-cool","rehydrate-pending-to-cold"]}},customerProvidedKeySha256:{serializedName:"CustomerProvidedKeySha256",xmlName:"CustomerProvidedKeySha256",type:{name:"String"}},encryptionScope:{serializedName:"EncryptionScope",xmlName:"EncryptionScope",type:{name:"String"}},accessTierChangedOn:{serializedName:"AccessTierChangeTime",xmlName:"AccessTierChangeTime",type:{name:"DateTimeRfc1123"}},tagCount:{serializedName:"TagCount",xmlName:"TagCount",type:{name:"Number"}},expiresOn:{serializedName:"Expiry-Time",xmlName:"Expiry-Time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"Sealed",xmlName:"Sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"RehydratePriority",xmlName:"RehydratePriority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessedOn:{serializedName:"LastAccessTime",xmlName:"LastAccessTime",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"ImmutabilityPolicyUntilDate",xmlName:"ImmutabilityPolicyUntilDate",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"ImmutabilityPolicyMode",xmlName:"ImmutabilityPolicyMode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"LegalHold",xmlName:"LegalHold",type:{name:"Boolean"}}}}},A3={serializedName:"ListBlobsHierarchySegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsHierarchySegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:!0,xmlName:"ServiceEndpoint",xmlIsAttribute:!0,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:!0,xmlName:"ContainerName",xmlIsAttribute:!0,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},delimiter:{serializedName:"Delimiter",xmlName:"Delimiter",type:{name:"String"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},qnt={serializedName:"BlobHierarchyListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment",modelProperties:{blobPrefixes:{serializedName:"BlobPrefixes",xmlName:"BlobPrefixes",xmlElementName:"BlobPrefix",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobPrefix"}}}},blobItems:{serializedName:"BlobItems",required:!0,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}},Gnt={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}},m3={serializedName:"BlockLookupList",xmlName:"BlockList",type:{name:"Composite",className:"BlockLookupList",modelProperties:{committed:{serializedName:"Committed",xmlName:"Committed",xmlElementName:"Committed",type:{name:"Sequence",element:{type:{name:"String"}}}},uncommitted:{serializedName:"Uncommitted",xmlName:"Uncommitted",xmlElementName:"Uncommitted",type:{name:"Sequence",element:{type:{name:"String"}}}},latest:{serializedName:"Latest",xmlName:"Latest",xmlElementName:"Latest",type:{name:"Sequence",element:{type:{name:"String"}}}}}}},g3={serializedName:"BlockList",type:{name:"Composite",className:"BlockList",modelProperties:{committedBlocks:{serializedName:"CommittedBlocks",xmlName:"CommittedBlocks",xmlIsWrapped:!0,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}},uncommittedBlocks:{serializedName:"UncommittedBlocks",xmlName:"UncommittedBlocks",xmlIsWrapped:!0,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}}}}},Hnt={serializedName:"Block",type:{name:"Composite",className:"Block",modelProperties:{name:{serializedName:"Name",required:!0,xmlName:"Name",type:{name:"String"}},size:{serializedName:"Size",required:!0,xmlName:"Size",type:{name:"Number"}}}}},A_={serializedName:"PageList",type:{name:"Composite",className:"PageList",modelProperties:{pageRange:{serializedName:"PageRange",xmlName:"PageRange",xmlElementName:"PageRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"PageRange"}}}},clearRange:{serializedName:"ClearRange",xmlName:"ClearRange",xmlElementName:"ClearRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"ClearRange"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},znt={serializedName:"PageRange",xmlName:"PageRange",type:{name:"Composite",className:"PageRange",modelProperties:{start:{serializedName:"Start",required:!0,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:!0,xmlName:"End",type:{name:"Number"}}}}},Vnt={serializedName:"ClearRange",xmlName:"ClearRange",type:{name:"Composite",className:"ClearRange",modelProperties:{start:{serializedName:"Start",required:!0,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:!0,xmlName:"End",type:{name:"Number"}}}}},y3={serializedName:"QueryRequest",xmlName:"QueryRequest",type:{name:"Composite",className:"QueryRequest",modelProperties:{queryType:{serializedName:"QueryType",required:!0,xmlName:"QueryType",type:{name:"String"}},expression:{serializedName:"Expression",required:!0,xmlName:"Expression",type:{name:"String"}},inputSerialization:{serializedName:"InputSerialization",xmlName:"InputSerialization",type:{name:"Composite",className:"QuerySerialization"}},outputSerialization:{serializedName:"OutputSerialization",xmlName:"OutputSerialization",type:{name:"Composite",className:"QuerySerialization"}}}}},$nt={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}},jnt={serializedName:"QueryFormat",type:{name:"Composite",className:"QueryFormat",modelProperties:{type:{serializedName:"Type",required:!0,xmlName:"Type",type:{name:"Enum",allowedValues:["delimited","json","arrow","parquet"]}},delimitedTextConfiguration:{serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration"}},jsonTextConfiguration:{serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration"}},arrowConfiguration:{serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration"}},parquetTextConfiguration:{serializedName:"ParquetTextConfiguration",xmlName:"ParquetTextConfiguration",type:{name:"Dictionary",value:{type:{name:"any"}}}}}}},Wnt={serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration",modelProperties:{columnSeparator:{serializedName:"ColumnSeparator",xmlName:"ColumnSeparator",type:{name:"String"}},fieldQuote:{serializedName:"FieldQuote",xmlName:"FieldQuote",type:{name:"String"}},recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}},escapeChar:{serializedName:"EscapeChar",xmlName:"EscapeChar",type:{name:"String"}},headersPresent:{serializedName:"HeadersPresent",xmlName:"HasHeaders",type:{name:"Boolean"}}}}},Jnt={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}},Ynt={serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration",modelProperties:{schema:{serializedName:"Schema",required:!0,xmlName:"Schema",xmlIsWrapped:!0,xmlElementName:"Field",type:{name:"Sequence",element:{type:{name:"Composite",className:"ArrowField"}}}}}}},Knt={serializedName:"ArrowField",xmlName:"Field",type:{name:"Composite",className:"ArrowField",modelProperties:{type:{serializedName:"Type",required:!0,xmlName:"Type",type:{name:"String"}},name:{serializedName:"Name",xmlName:"Name",type:{name:"String"}},precision:{serializedName:"Precision",xmlName:"Precision",type:{name:"Number"}},scale:{serializedName:"Scale",xmlName:"Scale",type:{name:"Number"}}}}},E3={serializedName:"Service_setPropertiesHeaders",type:{name:"Composite",className:"ServiceSetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},C3={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},b3={serializedName:"Service_getPropertiesHeaders",type:{name:"Composite",className:"ServiceGetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},w3={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},I3={serializedName:"Service_getStatisticsHeaders",type:{name:"Composite",className:"ServiceGetStatisticsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},S3={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},B3={serializedName:"Service_listContainersSegmentHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},x3={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},v3={serializedName:"Service_getUserDelegationKeyHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},N3={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},_3={serializedName:"Service_getAccountInfoHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},R3={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},T3={serializedName:"Service_submitBatchHeaders",type:{name:"Composite",className:"ServiceSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},D3={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Q3={serializedName:"Service_filterBlobsHeaders",type:{name:"Composite",className:"ServiceFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},k3={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},P3={serializedName:"Container_createHeaders",type:{name:"Composite",className:"ContainerCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},O3={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},L3={serializedName:"Container_getPropertiesHeaders",type:{name:"Composite",className:"ContainerGetPropertiesHeaders",modelProperties:{metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"x-ms-has-immutability-policy",xmlName:"x-ms-has-immutability-policy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"x-ms-has-legal-hold",xmlName:"x-ms-has-legal-hold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}},denyEncryptionScopeOverride:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}},isImmutableStorageWithVersioningEnabled:{serializedName:"x-ms-immutable-storage-with-versioning-enabled",xmlName:"x-ms-immutable-storage-with-versioning-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},F3={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},M3={serializedName:"Container_deleteHeaders",type:{name:"Composite",className:"ContainerDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},U3={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},q3={serializedName:"Container_setMetadataHeaders",type:{name:"Composite",className:"ContainerSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},G3={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},H3={serializedName:"Container_getAccessPolicyHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyHeaders",modelProperties:{blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},z3={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},V3={serializedName:"Container_setAccessPolicyHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},$3={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},j3={serializedName:"Container_restoreHeaders",type:{name:"Composite",className:"ContainerRestoreHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},W3={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},J3={serializedName:"Container_renameHeaders",type:{name:"Composite",className:"ContainerRenameHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Y3={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},K3={serializedName:"Container_submitBatchHeaders",type:{name:"Composite",className:"ContainerSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}}}}},X3={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Z3={serializedName:"Container_filterBlobsHeaders",type:{name:"Composite",className:"ContainerFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},eG={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tG={serializedName:"Container_acquireLeaseHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},rG={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},nG={serializedName:"Container_releaseLeaseHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},iG={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},sG={serializedName:"Container_renewLeaseHeaders",type:{name:"Composite",className:"ContainerRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},oG={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},aG={serializedName:"Container_breakLeaseHeaders",type:{name:"Composite",className:"ContainerBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},cG={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},lG={serializedName:"Container_changeLeaseHeaders",type:{name:"Composite",className:"ContainerChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},uG={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},dG={serializedName:"Container_listBlobFlatSegmentHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},fG={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},hG={serializedName:"Container_listBlobHierarchySegmentHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},pG={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},AG={serializedName:"Container_getAccountInfoHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}}}}},mG={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},m_={serializedName:"Blob_downloadHeaders",type:{name:"Composite",className:"BlobDownloadHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}},gG={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},yG={serializedName:"Blob_getPropertiesHeaders",type:{name:"Composite",className:"BlobGetPropertiesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},isIncrementalCopy:{serializedName:"x-ms-incremental-copy",xmlName:"x-ms-incremental-copy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"x-ms-copy-destination-snapshot",xmlName:"x-ms-copy-destination-snapshot",type:{name:"String"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},accessTier:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"String"}},accessTierInferred:{serializedName:"x-ms-access-tier-inferred",xmlName:"x-ms-access-tier-inferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"x-ms-archive-status",xmlName:"x-ms-archive-status",type:{name:"String"}},accessTierChangedOn:{serializedName:"x-ms-access-tier-change-time",xmlName:"x-ms-access-tier-change-time",type:{name:"DateTimeRfc1123"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},expiresOn:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},EG={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},CG={serializedName:"Blob_deleteHeaders",type:{name:"Composite",className:"BlobDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},bG={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},wG={serializedName:"Blob_undeleteHeaders",type:{name:"Composite",className:"BlobUndeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},IG={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},SG={serializedName:"Blob_setExpiryHeaders",type:{name:"Composite",className:"BlobSetExpiryHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},BG={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},xG={serializedName:"Blob_setHttpHeadersHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},vG={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},NG={serializedName:"Blob_setImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiry:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}}}},_G={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},RG={serializedName:"Blob_deleteImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},TG={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},DG={serializedName:"Blob_setLegalHoldHeaders",type:{name:"Composite",className:"BlobSetLegalHoldHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}}}},QG={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},kG={serializedName:"Blob_setMetadataHeaders",type:{name:"Composite",className:"BlobSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},PG={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},OG={serializedName:"Blob_acquireLeaseHeaders",type:{name:"Composite",className:"BlobAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},LG={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},FG={serializedName:"Blob_releaseLeaseHeaders",type:{name:"Composite",className:"BlobReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},MG={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},UG={serializedName:"Blob_renewLeaseHeaders",type:{name:"Composite",className:"BlobRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},qG={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},GG={serializedName:"Blob_changeLeaseHeaders",type:{name:"Composite",className:"BlobChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},HG={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},zG={serializedName:"Blob_breakLeaseHeaders",type:{name:"Composite",className:"BlobBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},VG={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},$G={serializedName:"Blob_createSnapshotHeaders",type:{name:"Composite",className:"BlobCreateSnapshotHeaders",modelProperties:{snapshot:{serializedName:"x-ms-snapshot",xmlName:"x-ms-snapshot",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},jG={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},WG={serializedName:"Blob_startCopyFromURLHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},JG={serializedName:"Blob_startCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}},YG={serializedName:"Blob_copyFromURLHeaders",type:{name:"Composite",className:"BlobCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{defaultValue:"success",isConstant:!0,serializedName:"x-ms-copy-status",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},KG={serializedName:"Blob_copyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}},XG={serializedName:"Blob_abortCopyFromURLHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},ZG={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},g_={serializedName:"Blob_setTierHeaders",type:{name:"Composite",className:"BlobSetTierHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},eH={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tH={serializedName:"Blob_getAccountInfoHeaders",type:{name:"Composite",className:"BlobGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}}}}},rH={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},y_={serializedName:"Blob_queryHeaders",type:{name:"Composite",className:"BlobQueryHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletionTime:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}},nH={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},iH={serializedName:"Blob_getTagsHeaders",type:{name:"Composite",className:"BlobGetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},sH={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},oH={serializedName:"Blob_setTagsHeaders",type:{name:"Composite",className:"BlobSetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},aH={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},cH={serializedName:"PageBlob_createHeaders",type:{name:"Composite",className:"PageBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},lH={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},uH={serializedName:"PageBlob_uploadPagesHeaders",type:{name:"Composite",className:"PageBlobUploadPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},dH={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},fH={serializedName:"PageBlob_clearPagesHeaders",type:{name:"Composite",className:"PageBlobClearPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},hH={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},pH={serializedName:"PageBlob_uploadPagesFromURLHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},AH={serializedName:"PageBlob_uploadPagesFromURLExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}},mH={serializedName:"PageBlob_getPageRangesHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},gH={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},yH={serializedName:"PageBlob_getPageRangesDiffHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},EH={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},CH={serializedName:"PageBlob_resizeHeaders",type:{name:"Composite",className:"PageBlobResizeHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},bH={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},wH={serializedName:"PageBlob_updateSequenceNumberHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},IH={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},SH={serializedName:"PageBlob_copyIncrementalHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},BH={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},xH={serializedName:"AppendBlob_createHeaders",type:{name:"Composite",className:"AppendBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},vH={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},NH={serializedName:"AppendBlob_appendBlockHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},_H={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},RH={serializedName:"AppendBlob_appendBlockFromUrlHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},TH={serializedName:"AppendBlob_appendBlockFromUrlExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}},DH={serializedName:"AppendBlob_sealHeaders",type:{name:"Composite",className:"AppendBlobSealHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}}}}},QH={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},kH={serializedName:"BlockBlob_uploadHeaders",type:{name:"Composite",className:"BlockBlobUploadHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},PH={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},OH={serializedName:"BlockBlob_putBlobFromUrlHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},LH={serializedName:"BlockBlob_putBlobFromUrlExceptionHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}},FH={serializedName:"BlockBlob_stageBlockHeaders",type:{name:"Composite",className:"BlockBlobStageBlockHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},MH={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},UH={serializedName:"BlockBlob_stageBlockFromURLHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},qH={serializedName:"BlockBlob_stageBlockFromURLExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}},GH={serializedName:"BlockBlob_commitBlockListHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},HH={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},zH={serializedName:"BlockBlob_getBlockListHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},VH={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};var Nc={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},Lhe={parameterPath:"blobServiceProperties",mapper:E0},Qo={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},ee={parameterPath:"url",mapper:{serializedName:"url",required:!0,xmlName:"url",type:{name:"String"}},skipEncoding:!0},w0={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:!0,serializedName:"restype",type:{name:"String"}}},ko={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:!0,serializedName:"comp",type:{name:"String"}}},te={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}},re={parameterPath:"version",mapper:{defaultValue:"2026-02-06",isConstant:!0,serializedName:"x-ms-version",type:{name:"String"}}},ne={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}},me={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},Fhe={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:!0,serializedName:"comp",type:{name:"String"}}},I0={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:!0,serializedName:"comp",type:{name:"String"}}},S0={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}},_c={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}},Rc={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}},Mhe={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:"CSV"},Uhe={parameterPath:"keyInfo",mapper:f3},qhe={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:!0,serializedName:"comp",type:{name:"String"}}},sg={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:!0,serializedName:"restype",type:{name:"String"}}},E_={parameterPath:"body",mapper:{serializedName:"body",required:!0,xmlName:"body",type:{name:"Stream"}}},C_={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:!0,serializedName:"comp",type:{name:"String"}}},vn={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:!0,xmlName:"Content-Length",type:{name:"Number"}}},b_={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:!0,xmlName:"Content-Type",type:{name:"String"}}},w_={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:!0,serializedName:"comp",type:{name:"String"}}},I_={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}},Nn={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:!0,serializedName:"restype",type:{name:"String"}}},ci={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",type:{name:"Dictionary",value:{type:{name:"String"}}}}},$H={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}},Ghe={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}},Hhe={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}},et={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}},We={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}},Je={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}},S_={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:!0,serializedName:"comp",type:{name:"String"}}},jH={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:!0,serializedName:"comp",type:{name:"String"}}},zhe={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:!0,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}},B_={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Vhe={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}},$he={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}},jhe={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Whe={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:!0,xmlName:"x-ms-source-container-name",type:{name:"String"}}},Jhe={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}},Po={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:!0,serializedName:"comp",type:{name:"String"}}},x_={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},v_={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}},N_={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}},__={parameterPath:"action",mapper:{defaultValue:"release",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},Md={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:!0,xmlName:"x-ms-lease-id",type:{name:"String"}}},R_={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},T_={parameterPath:"action",mapper:{defaultValue:"break",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},D_={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}},Q_={parameterPath:"action",mapper:{defaultValue:"change",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},k_={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:!0,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}},WH={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListBlobsIncludeItem",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["copy","deleted","metadata","snapshots","uncommittedblobs","versions","tags","immutabilitypolicy","legalhold","deletedwithversions"]}}}},collectionFormat:"CSV"},JH={parameterPath:["options","startFrom"],mapper:{serializedName:"startFrom",xmlName:"startFrom",type:{name:"String"}}},Yhe={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:!0,xmlName:"delimiter",type:{name:"String"}}},ki={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}},Tc={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}},zh={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}},Khe={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}},Xhe={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}},vr={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}},Nr={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}},_r={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}},It={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}},St={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}},at={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}},Zhe={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}},epe={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}},tpe={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:!0,serializedName:"comp",type:{name:"String"}}},rpe={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:!0,xmlName:"x-ms-expiry-option",type:{name:"String"}}},npe={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}},Dc={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}},Qc={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}},kc={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}},Pc={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}},Oc={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}},Lc={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}},YH={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Ra={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}},Ta={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}},ipe={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:!0,serializedName:"comp",type:{name:"String"}}},spe={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:!0,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}},tn={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}},ope={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Au={parameterPath:["options","tier"],mapper:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}},KH={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}},Fc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}},Mc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}},Uc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}},qc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}},P_={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}},Vh={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:!0,xmlName:"x-ms-copy-source",type:{name:"String"}}},Da={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}},ape={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}},Gc={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}},cpe={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:!0,serializedName:"x-ms-requires-sync",type:{name:"String"}}},mu={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}},gu={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}},O_={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}},yu={parameterPath:["options","fileRequestIntent"],mapper:{serializedName:"x-ms-file-request-intent",xmlName:"x-ms-file-request-intent",type:{name:"String"}}},lpe={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:!0,serializedName:"comp",type:{name:"String"}}},upe={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:!0,serializedName:"x-ms-copy-action",type:{name:"String"}}},dpe={parameterPath:"copyId",mapper:{serializedName:"copyid",required:!0,xmlName:"copyid",type:{name:"String"}}},fpe={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:!0,serializedName:"comp",type:{name:"String"}}},hpe={parameterPath:"tier",mapper:{serializedName:"x-ms-access-tier",required:!0,xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}},ppe={parameterPath:["options","queryRequest"],mapper:y3},Ape={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:!0,serializedName:"comp",type:{name:"String"}}},XH={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:!0,serializedName:"comp",type:{name:"String"}}},ZH={parameterPath:["options","blobModifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"x-ms-blob-if-modified-since",xmlName:"x-ms-blob-if-modified-since",type:{name:"DateTimeRfc1123"}}},e5={parameterPath:["options","blobModifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"x-ms-blob-if-unmodified-since",xmlName:"x-ms-blob-if-unmodified-since",type:{name:"DateTimeRfc1123"}}},t5={parameterPath:["options","blobModifiedAccessConditions","ifMatch"],mapper:{serializedName:"x-ms-blob-if-match",xmlName:"x-ms-blob-if-match",type:{name:"String"}}},r5={parameterPath:["options","blobModifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"x-ms-blob-if-none-match",xmlName:"x-ms-blob-if-none-match",type:{name:"String"}}},mpe={parameterPath:["options","tags"],mapper:b0},Oo={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}},Hc={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}},gpe={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},n5={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:!0,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}},i5={parameterPath:["options","blobSequenceNumber"],mapper:{defaultValue:0,serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}},$h={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},jh={parameterPath:"body",mapper:{serializedName:"body",required:!0,xmlName:"body",type:{name:"Stream"}}},Wh={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},L_={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:!0,serializedName:"comp",type:{name:"String"}}},s5={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:!0,serializedName:"x-ms-page-write",type:{name:"String"}}},F_={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}},M_={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}},U_={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}},ype={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:!0,serializedName:"x-ms-page-write",type:{name:"String"}}},og={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:!0,xmlName:"x-ms-copy-source",type:{name:"String"}}},Epe={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:!0,xmlName:"x-ms-source-range",type:{name:"String"}}},ag={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}},Cpe={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:!0,xmlName:"x-ms-range",type:{name:"String"}}},o5={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:!0,serializedName:"comp",type:{name:"String"}}},bpe={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}},wpe={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}},Ipe={parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:!0,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}},Spe={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Bpe={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},a5={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:!0,serializedName:"comp",type:{name:"String"}}},c5={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}},q_={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}},G_={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}},xpe={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:!0,serializedName:"comp",type:{name:"String"}}},l5={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},vpe={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}},u5={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:!0,serializedName:"comp",type:{name:"String"}}},d5={parameterPath:"blockId",mapper:{serializedName:"blockid",required:!0,xmlName:"blockid",type:{name:"String"}}},Npe={parameterPath:"blocks",mapper:m3},f5={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:!0,serializedName:"comp",type:{name:"String"}}},_pe={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:!0,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}};var H_=class{static{o(this,"ServiceImpl")}client;constructor(e){this.client=e}setProperties(e,r){return this.client.sendOperationRequest({blobServiceProperties:e,options:r},Xnt)}getProperties(e){return this.client.sendOperationRequest({options:e},Znt)}getStatistics(e){return this.client.sendOperationRequest({options:e},eit)}listContainersSegment(e){return this.client.sendOperationRequest({options:e},tit)}getUserDelegationKey(e,r){return this.client.sendOperationRequest({keyInfo:e,options:r},rit)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},nit)}submitBatch(e,r,n,i){return this.client.sendOperationRequest({contentLength:e,multipartContentType:r,body:n,options:i},iit)}filterBlobs(e){return this.client.sendOperationRequest({options:e},sit)}},Ud=js(Js,!0),Xnt={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:E3},default:{bodyMapper:Z,headersMapper:C3}},requestBody:Lhe,queryParameters:[w0,ko,te],urlParameters:[ee],headerParameters:[Nc,Qo,re,ne],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Ud},Znt={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:E0,headersMapper:b3},default:{bodyMapper:Z,headersMapper:w3}},queryParameters:[w0,ko,te],urlParameters:[ee],headerParameters:[re,ne,me],isXML:!0,serializer:Ud},eit={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:u3,headersMapper:I3},default:{bodyMapper:Z,headersMapper:S3}},queryParameters:[w0,te,Fhe],urlParameters:[ee],headerParameters:[re,ne,me],isXML:!0,serializer:Ud},tit={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:d3,headersMapper:B3},default:{bodyMapper:Z,headersMapper:x3}},queryParameters:[te,I0,S0,_c,Rc,Mhe],urlParameters:[ee],headerParameters:[re,ne,me],isXML:!0,serializer:Ud},rit={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:h3,headersMapper:v3},default:{bodyMapper:Z,headersMapper:N3}},requestBody:Uhe,queryParameters:[w0,te,qhe],urlParameters:[ee],headerParameters:[Nc,Qo,re,ne],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Ud},nit={path:"/",httpMethod:"GET",responses:{200:{headersMapper:_3},default:{bodyMapper:Z,headersMapper:R3}},queryParameters:[ko,te,sg],urlParameters:[ee],headerParameters:[re,ne,me],isXML:!0,serializer:Ud},iit={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:T3},default:{bodyMapper:Z,headersMapper:D3}},requestBody:E_,queryParameters:[te,C_],urlParameters:[ee],headerParameters:[Qo,re,ne,vn,b_],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Ud},sit={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:C0,headersMapper:Q3},default:{bodyMapper:Z,headersMapper:k3}},queryParameters:[te,_c,Rc,w_,I_],urlParameters:[ee],headerParameters:[re,ne,me],isXML:!0,serializer:Ud};var z_=class{static{o(this,"ContainerImpl")}client;constructor(e){this.client=e}create(e){return this.client.sendOperationRequest({options:e},oit)}getProperties(e){return this.client.sendOperationRequest({options:e},ait)}delete(e){return this.client.sendOperationRequest({options:e},cit)}setMetadata(e){return this.client.sendOperationRequest({options:e},lit)}getAccessPolicy(e){return this.client.sendOperationRequest({options:e},uit)}setAccessPolicy(e){return this.client.sendOperationRequest({options:e},dit)}restore(e){return this.client.sendOperationRequest({options:e},fit)}rename(e,r){return this.client.sendOperationRequest({sourceContainerName:e,options:r},hit)}submitBatch(e,r,n,i){return this.client.sendOperationRequest({contentLength:e,multipartContentType:r,body:n,options:i},pit)}filterBlobs(e){return this.client.sendOperationRequest({options:e},Ait)}acquireLease(e){return this.client.sendOperationRequest({options:e},mit)}releaseLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},git)}renewLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},yit)}breakLease(e){return this.client.sendOperationRequest({options:e},Eit)}changeLease(e,r,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:r,options:n},Cit)}listBlobFlatSegment(e){return this.client.sendOperationRequest({options:e},bit)}listBlobHierarchySegment(e,r){return this.client.sendOperationRequest({delimiter:e,options:r},wit)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},Iit)}},_n=js(Js,!0),oit={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:P3},default:{bodyMapper:Z,headersMapper:O3}},queryParameters:[te,Nn],urlParameters:[ee],headerParameters:[re,ne,me,ci,$H,Ghe,Hhe],isXML:!0,serializer:_n},ait={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:L3},default:{bodyMapper:Z,headersMapper:F3}},queryParameters:[te,Nn],urlParameters:[ee],headerParameters:[re,ne,me,et],isXML:!0,serializer:_n},cit={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:M3},default:{bodyMapper:Z,headersMapper:U3}},queryParameters:[te,Nn],urlParameters:[ee],headerParameters:[re,ne,me,et,We,Je],isXML:!0,serializer:_n},lit={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:q3},default:{bodyMapper:Z,headersMapper:G3}},queryParameters:[te,Nn,S_],urlParameters:[ee],headerParameters:[re,ne,me,ci,et,We],isXML:!0,serializer:_n},uit={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}},serializedName:"SignedIdentifiers",xmlName:"SignedIdentifiers",xmlIsWrapped:!0,xmlElementName:"SignedIdentifier"},headersMapper:H3},default:{bodyMapper:Z,headersMapper:z3}},queryParameters:[te,Nn,jH],urlParameters:[ee],headerParameters:[re,ne,me,et],isXML:!0,serializer:_n},dit={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:V3},default:{bodyMapper:Z,headersMapper:$3}},requestBody:zhe,queryParameters:[te,Nn,jH],urlParameters:[ee],headerParameters:[Nc,Qo,re,ne,$H,et,We,Je],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:_n},fit={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:j3},default:{bodyMapper:Z,headersMapper:W3}},queryParameters:[te,Nn,B_],urlParameters:[ee],headerParameters:[re,ne,me,Vhe,$he],isXML:!0,serializer:_n},hit={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:J3},default:{bodyMapper:Z,headersMapper:Y3}},queryParameters:[te,Nn,jhe],urlParameters:[ee],headerParameters:[re,ne,me,Whe,Jhe],isXML:!0,serializer:_n},pit={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:K3},default:{bodyMapper:Z,headersMapper:X3}},requestBody:E_,queryParameters:[te,C_,Nn],urlParameters:[ee],headerParameters:[Qo,re,ne,vn,b_],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:_n},Ait={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:C0,headersMapper:Z3},default:{bodyMapper:Z,headersMapper:eG}},queryParameters:[te,_c,Rc,w_,I_,Nn],urlParameters:[ee],headerParameters:[re,ne,me],isXML:!0,serializer:_n},mit={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:tG},default:{bodyMapper:Z,headersMapper:rG}},queryParameters:[te,Nn,Po],urlParameters:[ee],headerParameters:[re,ne,me,We,Je,x_,v_,N_],isXML:!0,serializer:_n},git={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:nG},default:{bodyMapper:Z,headersMapper:iG}},queryParameters:[te,Nn,Po],urlParameters:[ee],headerParameters:[re,ne,me,We,Je,__,Md],isXML:!0,serializer:_n},yit={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:sG},default:{bodyMapper:Z,headersMapper:oG}},queryParameters:[te,Nn,Po],urlParameters:[ee],headerParameters:[re,ne,me,We,Je,Md,R_],isXML:!0,serializer:_n},Eit={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:aG},default:{bodyMapper:Z,headersMapper:cG}},queryParameters:[te,Nn,Po],urlParameters:[ee],headerParameters:[re,ne,me,We,Je,T_,D_],isXML:!0,serializer:_n},Cit={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:lG},default:{bodyMapper:Z,headersMapper:uG}},queryParameters:[te,Nn,Po],urlParameters:[ee],headerParameters:[re,ne,me,We,Je,Md,Q_,k_],isXML:!0,serializer:_n},bit={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:p3,headersMapper:dG},default:{bodyMapper:Z,headersMapper:fG}},queryParameters:[te,I0,S0,_c,Rc,Nn,WH,JH],urlParameters:[ee],headerParameters:[re,ne,me],isXML:!0,serializer:_n},wit={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:A3,headersMapper:hG},default:{bodyMapper:Z,headersMapper:pG}},queryParameters:[te,I0,S0,_c,Rc,Nn,WH,JH,Yhe],urlParameters:[ee],headerParameters:[re,ne,me],isXML:!0,serializer:_n},Iit={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:AG},default:{bodyMapper:Z,headersMapper:mG}},queryParameters:[ko,te,sg],urlParameters:[ee],headerParameters:[re,ne,me],isXML:!0,serializer:_n};var V_=class{static{o(this,"BlobImpl")}client;constructor(e){this.client=e}download(e){return this.client.sendOperationRequest({options:e},Sit)}getProperties(e){return this.client.sendOperationRequest({options:e},Bit)}delete(e){return this.client.sendOperationRequest({options:e},xit)}undelete(e){return this.client.sendOperationRequest({options:e},vit)}setExpiry(e,r){return this.client.sendOperationRequest({expiryOptions:e,options:r},Nit)}setHttpHeaders(e){return this.client.sendOperationRequest({options:e},_it)}setImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},Rit)}deleteImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},Tit)}setLegalHold(e,r){return this.client.sendOperationRequest({legalHold:e,options:r},Dit)}setMetadata(e){return this.client.sendOperationRequest({options:e},Qit)}acquireLease(e){return this.client.sendOperationRequest({options:e},kit)}releaseLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},Pit)}renewLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},Oit)}changeLease(e,r,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:r,options:n},Lit)}breakLease(e){return this.client.sendOperationRequest({options:e},Fit)}createSnapshot(e){return this.client.sendOperationRequest({options:e},Mit)}startCopyFromURL(e,r){return this.client.sendOperationRequest({copySource:e,options:r},Uit)}copyFromURL(e,r){return this.client.sendOperationRequest({copySource:e,options:r},qit)}abortCopyFromURL(e,r){return this.client.sendOperationRequest({copyId:e,options:r},Git)}setTier(e,r){return this.client.sendOperationRequest({tier:e,options:r},Hit)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},zit)}query(e){return this.client.sendOperationRequest({options:e},Vit)}getTags(e){return this.client.sendOperationRequest({options:e},$it)}setTags(e){return this.client.sendOperationRequest({options:e},jit)}},fr=js(Js,!0),Sit={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:m_},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:m_},default:{bodyMapper:Z,headersMapper:gG}},queryParameters:[te,ki,Tc],urlParameters:[ee],headerParameters:[re,ne,me,et,We,Je,zh,Khe,Xhe,vr,Nr,_r,It,St,at],isXML:!0,serializer:fr},Bit={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:yG},default:{bodyMapper:Z,headersMapper:EG}},queryParameters:[te,ki,Tc],urlParameters:[ee],headerParameters:[re,ne,me,et,We,Je,vr,Nr,_r,It,St,at],isXML:!0,serializer:fr},xit={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:CG},default:{bodyMapper:Z,headersMapper:bG}},queryParameters:[te,ki,Tc,epe],urlParameters:[ee],headerParameters:[re,ne,me,et,We,Je,It,St,at,Zhe],isXML:!0,serializer:fr},vit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:wG},default:{bodyMapper:Z,headersMapper:IG}},queryParameters:[te,B_],urlParameters:[ee],headerParameters:[re,ne,me],isXML:!0,serializer:fr},Nit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:SG},default:{bodyMapper:Z,headersMapper:BG}},queryParameters:[te,tpe],urlParameters:[ee],headerParameters:[re,ne,me,rpe,npe],isXML:!0,serializer:fr},_it={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:xG},default:{bodyMapper:Z,headersMapper:vG}},queryParameters:[ko,te],urlParameters:[ee],headerParameters:[re,ne,me,et,We,Je,It,St,at,Dc,Qc,kc,Pc,Oc,Lc],isXML:!0,serializer:fr},Rit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:NG},default:{bodyMapper:Z,headersMapper:_G}},queryParameters:[te,ki,Tc,YH],urlParameters:[ee],headerParameters:[re,ne,me,Je,Ra,Ta],isXML:!0,serializer:fr},Tit={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:RG},default:{bodyMapper:Z,headersMapper:TG}},queryParameters:[te,ki,Tc,YH],urlParameters:[ee],headerParameters:[re,ne,me],isXML:!0,serializer:fr},Dit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:DG},default:{bodyMapper:Z,headersMapper:QG}},queryParameters:[te,ki,Tc,ipe],urlParameters:[ee],headerParameters:[re,ne,me,spe],isXML:!0,serializer:fr},Qit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:kG},default:{bodyMapper:Z,headersMapper:PG}},queryParameters:[te,S_],urlParameters:[ee],headerParameters:[re,ne,me,ci,et,We,Je,vr,Nr,_r,It,St,at,tn],isXML:!0,serializer:fr},kit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:OG},default:{bodyMapper:Z,headersMapper:LG}},queryParameters:[te,Po],urlParameters:[ee],headerParameters:[re,ne,me,We,Je,x_,v_,N_,It,St,at],isXML:!0,serializer:fr},Pit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:FG},default:{bodyMapper:Z,headersMapper:MG}},queryParameters:[te,Po],urlParameters:[ee],headerParameters:[re,ne,me,We,Je,__,Md,It,St,at],isXML:!0,serializer:fr},Oit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:UG},default:{bodyMapper:Z,headersMapper:qG}},queryParameters:[te,Po],urlParameters:[ee],headerParameters:[re,ne,me,We,Je,Md,R_,It,St,at],isXML:!0,serializer:fr},Lit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:GG},default:{bodyMapper:Z,headersMapper:HG}},queryParameters:[te,Po],urlParameters:[ee],headerParameters:[re,ne,me,We,Je,Md,Q_,k_,It,St,at],isXML:!0,serializer:fr},Fit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:zG},default:{bodyMapper:Z,headersMapper:VG}},queryParameters:[te,Po],urlParameters:[ee],headerParameters:[re,ne,me,We,Je,T_,D_,It,St,at],isXML:!0,serializer:fr},Mit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:$G},default:{bodyMapper:Z,headersMapper:jG}},queryParameters:[te,ope],urlParameters:[ee],headerParameters:[re,ne,me,ci,et,We,Je,vr,Nr,_r,It,St,at,tn],isXML:!0,serializer:fr},Uit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:WG},default:{bodyMapper:Z,headersMapper:JG}},queryParameters:[te],urlParameters:[ee],headerParameters:[re,ne,me,ci,et,We,Je,It,St,at,Ra,Ta,Au,KH,Fc,Mc,Uc,qc,P_,Vh,Da,ape,Gc],isXML:!0,serializer:fr},qit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:YG},default:{bodyMapper:Z,headersMapper:KG}},queryParameters:[te],urlParameters:[ee],headerParameters:[re,ne,me,ci,et,We,Je,It,St,at,Ra,Ta,tn,Au,Fc,Mc,Uc,qc,Vh,Da,Gc,cpe,mu,gu,O_,yu],isXML:!0,serializer:fr},Git={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:XG},default:{bodyMapper:Z,headersMapper:ZG}},queryParameters:[te,lpe,dpe],urlParameters:[ee],headerParameters:[re,ne,me,et,upe],isXML:!0,serializer:fr},Hit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:g_},202:{headersMapper:g_},default:{bodyMapper:Z,headersMapper:eH}},queryParameters:[te,ki,Tc,fpe],urlParameters:[ee],headerParameters:[re,ne,me,et,at,KH,hpe],isXML:!0,serializer:fr},zit={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:tH},default:{bodyMapper:Z,headersMapper:rH}},queryParameters:[ko,te,sg],urlParameters:[ee],headerParameters:[re,ne,me],isXML:!0,serializer:fr},Vit={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:y_},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:y_},default:{bodyMapper:Z,headersMapper:nH}},requestBody:ppe,queryParameters:[te,ki,Ape],urlParameters:[ee],headerParameters:[Nc,Qo,re,ne,et,We,Je,vr,Nr,_r,It,St,at],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:fr},$it={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:b0,headersMapper:iH},default:{bodyMapper:Z,headersMapper:sH}},queryParameters:[te,ki,Tc,XH],urlParameters:[ee],headerParameters:[re,ne,me,et,at,ZH,e5,t5,r5],isXML:!0,serializer:fr},jit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:oH},default:{bodyMapper:Z,headersMapper:aH}},requestBody:mpe,queryParameters:[te,Tc,XH],urlParameters:[ee],headerParameters:[Nc,Qo,re,ne,et,at,ZH,e5,t5,r5,Oo,Hc],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:fr};var $_=class{static{o(this,"PageBlobImpl")}client;constructor(e){this.client=e}create(e,r,n){return this.client.sendOperationRequest({contentLength:e,blobContentLength:r,options:n},Wit)}uploadPages(e,r,n){return this.client.sendOperationRequest({contentLength:e,body:r,options:n},Jit)}clearPages(e,r){return this.client.sendOperationRequest({contentLength:e,options:r},Yit)}uploadPagesFromURL(e,r,n,i,s){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:r,contentLength:n,range:i,options:s},Kit)}getPageRanges(e){return this.client.sendOperationRequest({options:e},Xit)}getPageRangesDiff(e){return this.client.sendOperationRequest({options:e},Zit)}resize(e,r){return this.client.sendOperationRequest({blobContentLength:e,options:r},est)}updateSequenceNumber(e,r){return this.client.sendOperationRequest({sequenceNumberAction:e,options:r},tst)}copyIncremental(e,r){return this.client.sendOperationRequest({copySource:e,options:r},rst)}},Eu=js(Js,!0),Wit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:cH},default:{bodyMapper:Z,headersMapper:lH}},queryParameters:[te],urlParameters:[ee],headerParameters:[re,ne,me,vn,ci,et,We,Je,vr,Nr,_r,It,St,at,Dc,Qc,kc,Pc,Oc,Lc,Ra,Ta,tn,Au,Da,Gc,gpe,n5,i5],isXML:!0,serializer:Eu},Jit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:uH},default:{bodyMapper:Z,headersMapper:dH}},requestBody:jh,queryParameters:[te,L_],urlParameters:[ee],headerParameters:[re,ne,vn,et,We,Je,zh,vr,Nr,_r,It,St,at,tn,Oo,Hc,$h,Wh,s5,F_,M_,U_],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Eu},Yit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:fH},default:{bodyMapper:Z,headersMapper:hH}},queryParameters:[te,L_],urlParameters:[ee],headerParameters:[re,ne,me,vn,et,We,Je,zh,vr,Nr,_r,It,St,at,tn,F_,M_,U_,ype],isXML:!0,serializer:Eu},Kit={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:pH},default:{bodyMapper:Z,headersMapper:AH}},queryParameters:[te,L_],urlParameters:[ee],headerParameters:[re,ne,me,vn,et,We,Je,vr,Nr,_r,It,St,at,tn,Fc,Mc,Uc,qc,mu,gu,yu,s5,F_,M_,U_,og,Epe,ag,Cpe],isXML:!0,serializer:Eu},Xit={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:A_,headersMapper:mH},default:{bodyMapper:Z,headersMapper:gH}},queryParameters:[te,_c,Rc,ki,o5],urlParameters:[ee],headerParameters:[re,ne,me,et,We,Je,zh,It,St,at],isXML:!0,serializer:Eu},Zit={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:A_,headersMapper:yH},default:{bodyMapper:Z,headersMapper:EH}},queryParameters:[te,_c,Rc,ki,o5,bpe],urlParameters:[ee],headerParameters:[re,ne,me,et,We,Je,zh,It,St,at,wpe],isXML:!0,serializer:Eu},est={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:CH},default:{bodyMapper:Z,headersMapper:bH}},queryParameters:[ko,te],urlParameters:[ee],headerParameters:[re,ne,me,et,We,Je,vr,Nr,_r,It,St,at,tn,n5],isXML:!0,serializer:Eu},tst={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:wH},default:{bodyMapper:Z,headersMapper:IH}},queryParameters:[ko,te],urlParameters:[ee],headerParameters:[re,ne,me,et,We,Je,It,St,at,i5,Ipe],isXML:!0,serializer:Eu},rst={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:SH},default:{bodyMapper:Z,headersMapper:BH}},queryParameters:[te,Spe],urlParameters:[ee],headerParameters:[re,ne,me,We,Je,It,St,at,Vh],isXML:!0,serializer:Eu};var j_=class{static{o(this,"AppendBlobImpl")}client;constructor(e){this.client=e}create(e,r){return this.client.sendOperationRequest({contentLength:e,options:r},nst)}appendBlock(e,r,n){return this.client.sendOperationRequest({contentLength:e,body:r,options:n},ist)}appendBlockFromUrl(e,r,n){return this.client.sendOperationRequest({sourceUrl:e,contentLength:r,options:n},sst)}seal(e){return this.client.sendOperationRequest({options:e},ost)}},W_=js(Js,!0),nst={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:xH},default:{bodyMapper:Z,headersMapper:vH}},queryParameters:[te],urlParameters:[ee],headerParameters:[re,ne,me,vn,ci,et,We,Je,vr,Nr,_r,It,St,at,Dc,Qc,kc,Pc,Oc,Lc,Ra,Ta,tn,Da,Gc,Bpe],isXML:!0,serializer:W_},ist={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:NH},default:{bodyMapper:Z,headersMapper:_H}},requestBody:jh,queryParameters:[te,a5],urlParameters:[ee],headerParameters:[re,ne,vn,et,We,Je,vr,Nr,_r,It,St,at,tn,Oo,Hc,$h,Wh,c5,q_],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:W_},sst={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:RH},default:{bodyMapper:Z,headersMapper:TH}},queryParameters:[te,a5],urlParameters:[ee],headerParameters:[re,ne,me,vn,et,We,Je,vr,Nr,_r,It,St,at,tn,Fc,Mc,Uc,qc,mu,gu,yu,Oo,og,ag,c5,q_,G_],isXML:!0,serializer:W_},ost={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:DH},default:{bodyMapper:Z,headersMapper:QH}},queryParameters:[te,xpe],urlParameters:[ee],headerParameters:[re,ne,me,et,We,Je,It,St,q_],isXML:!0,serializer:W_};var J_=class{static{o(this,"BlockBlobImpl")}client;constructor(e){this.client=e}upload(e,r,n){return this.client.sendOperationRequest({contentLength:e,body:r,options:n},ast)}putBlobFromUrl(e,r,n){return this.client.sendOperationRequest({contentLength:e,copySource:r,options:n},cst)}stageBlock(e,r,n,i){return this.client.sendOperationRequest({blockId:e,contentLength:r,body:n,options:i},lst)}stageBlockFromURL(e,r,n,i){return this.client.sendOperationRequest({blockId:e,contentLength:r,sourceUrl:n,options:i},ust)}commitBlockList(e,r){return this.client.sendOperationRequest({blocks:e,options:r},dst)}getBlockList(e,r){return this.client.sendOperationRequest({listType:e,options:r},fst)}},lg=js(Js,!0),ast={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:kH},default:{bodyMapper:Z,headersMapper:PH}},requestBody:jh,queryParameters:[te],urlParameters:[ee],headerParameters:[re,ne,vn,ci,et,We,Je,vr,Nr,_r,It,St,at,Dc,Qc,kc,Pc,Oc,Lc,Ra,Ta,tn,Au,Da,Gc,Oo,Hc,$h,Wh,l5],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:lg},cst={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:OH},default:{bodyMapper:Z,headersMapper:LH}},queryParameters:[te],urlParameters:[ee],headerParameters:[re,ne,me,vn,ci,et,We,Je,vr,Nr,_r,It,St,at,Dc,Qc,kc,Pc,Oc,Lc,tn,Au,Fc,Mc,Uc,qc,P_,Vh,Da,mu,gu,O_,yu,Oo,l5,vpe],isXML:!0,serializer:lg},lst={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:FH},default:{bodyMapper:Z,headersMapper:MH}},requestBody:jh,queryParameters:[te,u5,d5],urlParameters:[ee],headerParameters:[re,ne,vn,et,vr,Nr,_r,tn,Oo,Hc,$h,Wh],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:lg},ust={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:UH},default:{bodyMapper:Z,headersMapper:qH}},queryParameters:[te,u5,d5],urlParameters:[ee],headerParameters:[re,ne,me,vn,et,vr,Nr,_r,tn,Fc,Mc,Uc,qc,mu,gu,yu,og,ag,G_],isXML:!0,serializer:lg},dst={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:GH},default:{bodyMapper:Z,headersMapper:HH}},requestBody:Npe,queryParameters:[te,f5],urlParameters:[ee],headerParameters:[Nc,Qo,re,ne,ci,et,We,Je,vr,Nr,_r,It,St,at,Dc,Qc,kc,Pc,Oc,Lc,Ra,Ta,tn,Au,Da,Gc,Oo,Hc],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:lg},fst={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:g3,headersMapper:zH},default:{bodyMapper:Z,headersMapper:VH}},queryParameters:[te,ki,f5,_pe],urlParameters:[ee],headerParameters:[re,ne,me,et,at],isXML:!0,serializer:lg};var B0=class extends s0{static{o(this,"StorageClient")}url;version;constructor(e,r){if(e===void 0)throw new Error("'url' cannot be null");r||(r={});let n={requestContentType:"application/json; charset=utf-8"},i="azsdk-js-azure-storage-blob/12.30.0",s=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`,a={...n,...r,userAgentOptions:{userAgentPrefix:s},endpoint:r.endpoint??r.baseUri??"{url}"};super(a),this.url=e,this.version=r.version||"2026-02-06",this.service=new H_(this),this.container=new z_(this),this.blob=new V_(this),this.pageBlob=new $_(this),this.appendBlob=new j_(this),this.blockBlob=new J_(this)}service;container;blob;pageBlob;appendBlob;blockBlob};var x0=class extends B0{static{o(this,"StorageContextClient")}async sendOperationRequest(e,r){let n={...r};return(n.path==="/{containerName}"||n.path==="/{containerName}/{blob}")&&(n.path=""),super.sendOperationRequest(e,n)}};function Tpe(t){let e=new URL(t),r=e.pathname;return r=r||"/",r=pst(r),e.pathname=r,e.toString()}o(Tpe,"escapeURLPath");function hst(t){let e="";if(t.search("DevelopmentStorageProxyUri=")!==-1){let r=t.split(";");for(let n of r)n.trim().startsWith("DevelopmentStorageProxyUri=")&&(e=n.trim().match("DevelopmentStorageProxyUri=(.*)")[1])}return e}o(hst,"getProxyUriFromDevConnString");function Jh(t,e){let r=t.split(";");for(let n of r)if(n.trim().startsWith(e))return n.trim().match(e+"=(.*)")[1];return""}o(Jh,"getValueInConnString");function Yh(t){let e="";t.startsWith("UseDevelopmentStorage=true")&&(e=hst(t),t=xhe);let r=Jh(t,"BlobEndpoint");if(r=r.endsWith("/")?r.slice(0,-1):r,t.search("DefaultEndpointsProtocol=")!==-1&&t.search("AccountKey=")!==-1){let n="",i="",s=Buffer.from("accountKey","base64"),a="";if(i=Jh(t,"AccountName"),s=Buffer.from(Jh(t,"AccountKey"),"base64"),!r){n=Jh(t,"DefaultEndpointsProtocol");let c=n.toLowerCase();if(c!=="https"&&c!=="http")throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'");if(a=Jh(t,"EndpointSuffix"),!a)throw new Error("Invalid EndpointSuffix in the provided Connection String");r=`${n}://${i}.blob.${a}`}if(i){if(s.length===0)throw new Error("Invalid AccountKey in the provided Connection String")}else throw new Error("Invalid AccountName in the provided Connection String");return{kind:"AccountConnString",url:r,accountName:i,accountKey:s,proxyUri:e}}else{let n=Jh(t,"SharedAccessSignature"),i=Jh(t,"AccountName");if(i||(i=m5(r)),r){if(!n)throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}else throw new Error("Invalid BlobEndpoint in the provided SAS Connection String");return n.startsWith("?")&&(n=n.substring(1)),{kind:"SASConnString",url:r,accountName:i,accountSas:n}}}o(Yh,"extractConnectionStringParts");function pst(t){return encodeURIComponent(t).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}o(pst,"escape");function hn(t,e){let r=new URL(t),n=r.pathname;return n=n?n.endsWith("/")?`${n}${e}`:`${n}/${e}`:e,r.pathname=n,r.toString()}o(hn,"appendToURLPath");function ug(t,e,r){let n=new URL(t),i=encodeURIComponent(e),s=r?encodeURIComponent(r):void 0,a=n.search===""?"?":n.search,c=[];for(let l of a.slice(1).split("&"))if(l){let[u]=l.split("=",2);u!==i&&c.push(l)}return s&&c.push(`${i}=${s}`),n.search=c.length?`?${c.join("&")}`:"",n.toString()}o(ug,"setURLParameter");function h5(t,e){return new URL(t).searchParams.get(e)??void 0}o(h5,"getURLParameter");function Dpe(t){try{let e=new URL(t);return e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol}catch{return}}o(Dpe,"getURLScheme");function v0(t,e){let r=new URL(t),n=r.search;return n?n+="&"+e:n=e,r.search=n,r.toString()}o(v0,"appendToURLQuery");function kt(t,e=!0){let r=t.toISOString();return e?r.substring(0,r.length-1)+"0000Z":r.substring(0,r.length-5)+"Z"}o(kt,"truncatedISO8061Date");function Ast(t){return Qt?Buffer.from(t).toString("base64"):btoa(t)}o(Ast,"base64encode");function p5(t,e){t.length>42&&(t=t.slice(0,42));let s=t+mst(e.toString(),48-t.length,"0");return Ast(s)}o(p5,"generateBlockID");function mst(t,e,r=" "){return String.prototype.padStart?t.padStart(e,r):(r=r||" ",t.length>e?t:(e=e-t.length,e>r.length&&(r+=r.repeat(e/r.length)),r.slice(0,e)+t))}o(mst,"padStart");function A5(t,e){return t.toLocaleLowerCase()===e.toLocaleLowerCase()}o(A5,"iEqual");function m5(t){let e=new URL(t),r;try{return e.hostname.split(".")[1]==="blob"?r=e.hostname.split(".")[0]:Y_(e)?r=e.pathname.split("/")[1]:r="",r}catch{throw new Error("Unable to extract accountName with provided information.")}}o(m5,"getAccountNameFromUrl");function Y_(t){let e=t.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(e)||!!t.port&&The.includes(t.port)}o(Y_,"isIpEndpointStyle");function qd(t){if(t===void 0)return;let e=[];for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)){let n=t[r];e.push(`${encodeURIComponent(r)}=${encodeURIComponent(n)}`)}return e.join("&")}o(qd,"toBlobTagsString");function Qpe(t){if(t===void 0)return;let e={blobTagSet:[]};for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)){let n=t[r];e.blobTagSet.push({key:r,value:n})}return e}o(Qpe,"toBlobTags");function K_(t){if(t===void 0)return;let e={};for(let r of t.blobTagSet)e[r.key]=r.value;return e}o(K_,"toTags");function g5(t){if(t!==void 0)switch(t.kind){case"csv":return{format:{type:"delimited",delimitedTextConfiguration:{columnSeparator:t.columnSeparator||",",fieldQuote:t.fieldQuote||"",recordSeparator:t.recordSeparator,escapeChar:t.escapeCharacter||"",headersPresent:t.hasHeaders||!1}}};case"json":return{format:{type:"json",jsonTextConfiguration:{recordSeparator:t.recordSeparator}}};case"arrow":return{format:{type:"arrow",arrowConfiguration:{schema:t.schema}}};case"parquet":return{format:{type:"parquet"}};default:throw Error("Invalid BlobQueryTextConfiguration.")}}o(g5,"toQuerySerialization");function X_(t){if(!t||"policy-id"in t)return;let e=[];for(let r in t){let n=r.split("_"),i="or-";n[0].startsWith(i)&&(n[0]=n[0].substring(i.length));let s={ruleId:n[1],replicationStatus:t[r]},a=e.findIndex(c=>c.policyId===n[0]);a>-1?e[a].rules.push(s):e.push({policyId:n[0],rules:[s]})}return e}o(X_,"parseObjectReplicationRecord");function dg(t){return t?t.scheme+" "+t.value:void 0}o(dg,"httpAuthorizationToString");function*y5(t){let e=[],r=[];t.pageRange&&(e=t.pageRange),t.clearRange&&(r=t.clearRange);let n=0,i=0;for(;n0&&n.length>0&&e.push(`${r}=${n}`))}};function N0(t,e,r){return _0(t,e,r).sasQueryParameters}o(N0,"generateBlobSASQueryParameters");function _0(t,e,r){let n=t.version?t.version:h_,i=e instanceof xr?e:void 0,s;if(i===void 0&&r!==void 0&&(s=new d_(r,e)),i===void 0&&s===void 0)throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.");if(n>="2020-12-06")return i!==void 0?Est(t,i):n>="2025-07-05"?Ist(t,s):wst(t,s);if(n>="2018-11-09")return i!==void 0?yst(t,i):n>="2020-02-10"?bst(t,s):Cst(t,s);if(n>="2015-04-05"){if(i!==void 0)return gst(t,i);throw new RangeError("'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.")}throw new RangeError("'version' must be >= '2015-04-05'.")}o(_0,"generateBlobSASQueryParametersInternal");function gst(t,e){if(t=Xh(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c";t.blobName&&(r="b");let n;t.permissions&&(t.blobName?n=zc.parse(t.permissions.toString()).toString():n=Vc.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?kt(t.startsOn,!1):"",t.expiresOn?kt(t.expiresOn,!1):"",Kh(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Qa(t.ipRange):"",t.protocol?t.protocol:"",t.version,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(` +`),s=e.computeHMACSHA256(i);return{sasQueryParameters:new ka(t.version,s,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}o(gst,"generateBlobSASQueryParameters20150405");function yst(t,e){if(t=Xh(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=zc.parse(t.permissions.toString()).toString():i=Vc.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?kt(t.startsOn,!1):"",t.expiresOn?kt(t.expiresOn,!1):"",Kh(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Qa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(` +`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new ka(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}o(yst,"generateBlobSASQueryParameters20181109");function Est(t,e){if(t=Xh(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=zc.parse(t.permissions.toString()).toString():i=Vc.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?kt(t.startsOn,!1):"",t.expiresOn?kt(t.expiresOn,!1):"",Kh(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Qa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(` +`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new ka(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:s}}o(Est,"generateBlobSASQueryParameters20201206");function Cst(t,e){if(t=Xh(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=zc.parse(t.permissions.toString()).toString():i=Vc.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?kt(t.startsOn,!1):"",t.expiresOn?kt(t.expiresOn,!1):"",Kh(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?kt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?kt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Qa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(` +`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new ka(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:s}}o(Cst,"generateBlobSASQueryParametersUDK20181109");function bst(t,e){if(t=Xh(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=zc.parse(t.permissions.toString()).toString():i=Vc.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?kt(t.startsOn,!1):"",t.expiresOn?kt(t.expiresOn,!1):"",Kh(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?kt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?kt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Qa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(` +`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new ka(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:s}}o(bst,"generateBlobSASQueryParametersUDK20200210");function wst(t,e){if(t=Xh(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=zc.parse(t.permissions.toString()).toString():i=Vc.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?kt(t.startsOn,!1):"",t.expiresOn?kt(t.expiresOn,!1):"",Kh(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?kt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?kt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Qa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(` +`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new ka(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:s}}o(wst,"generateBlobSASQueryParametersUDK20201206");function Ist(t,e){if(t=Xh(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=zc.parse(t.permissions.toString()).toString():i=Vc.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?kt(t.startsOn,!1):"",t.expiresOn?kt(t.expiresOn,!1):"",Kh(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?kt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?kt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Qa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(` +`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new ka(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:s}}o(Ist,"generateBlobSASQueryParametersUDK20250705");function Kh(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}o(Kh,"getCanonicalName");function Xh(t){let e=t.version?t.version:h_;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}o(Xh,"SASSignatureValuesSanityCheckAndAutofill");var R0=class{static{o(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=Ym()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==_a||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==_a||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return ye.withSpan("BlobLeaseClient-acquireLease",r,async n=>xe(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==_a||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==_a||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return ye.withSpan("BlobLeaseClient-changeLease",r,async n=>{let i=xe(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,i})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==_a||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==_a||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return ye.withSpan("BlobLeaseClient-releaseLease",e,async r=>xe(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==_a||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==_a||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return ye.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions}))}async breakLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==_a||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==_a||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return ye.withSpan("BlobLeaseClient-breakLease",r,async n=>{let i={abortSignal:r.abortSignal,breakPeriod:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions};return xe(await this._containerOrBlobOperation.breakLease(i))})}};var Ppe=require("node:stream");var Z_=class extends Ppe.Readable{static{o(this,"RetriableReadableStream")}start;offset;end;getter;source;retries=0;maxRetryRequests;onProgress;options;constructor(e,r,n,i,s={}){super({highWaterMark:s.highWaterMark}),this.getter=r,this.source=e,this.start=n,this.offset=n,this.end=n+i-1,this.maxRetryRequests=s.maxRetryRequests&&s.maxRetryRequests>=0?s.maxRetryRequests:0,this.onProgress=s.onProgress,this.options=s,this.setSourceEventHandlers()}_read(){this.source.resume()}setSourceEventHandlers(){this.source.on("data",this.sourceDataHandler),this.source.on("end",this.sourceErrorOrEndHandler),this.source.on("error",this.sourceErrorOrEndHandler),this.source.on("aborted",this.sourceAbortedHandler)}removeSourceEventHandlers(){this.source.removeListener("data",this.sourceDataHandler),this.source.removeListener("end",this.sourceErrorOrEndHandler),this.source.removeListener("error",this.sourceErrorOrEndHandler),this.source.removeListener("aborted",this.sourceAbortedHandler)}sourceDataHandler=o(e=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=void 0,this.source.pause(),this.sourceErrorOrEndHandler(),this.source.destroy();return}this.offset+=e.length,this.onProgress&&this.onProgress({loadedBytes:this.offset-this.start}),this.push(e)||this.source.pause()},"sourceDataHandler");sourceAbortedHandler=o(()=>{let e=new Vs("The operation was aborted.");this.destroy(e)},"sourceAbortedHandler");sourceErrorOrEndHandler=o(e=>{if(e&&e.name==="AbortError"){this.destroy(e);return}this.removeSourceEventHandlers(),this.offset-1===this.end?this.push(null):this.offset<=this.end?this.retries{this.source=r,this.setSourceEventHandlers()}).catch(r=>{this.destroy(r)})):this.destroy(new Error(`Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: ${this.offset-1}, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${this.maxRetryRequests}`)):this.destroy(new Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset-1}`))},"sourceErrorOrEndHandler");_destroy(e,r){this.removeSourceEventHandlers(),this.source.destroy(),r(e===null?void 0:e)}};var eR=class{static{o(this,"BlobDownloadResponse")}get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return this.originalResponse.copyCompletedOn}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get tagCount(){return this.originalResponse.tagCount}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get lastAccessed(){return this.originalResponse.lastAccessed}get createdOn(){return this.originalResponse.createdOn}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get versionId(){return this.originalResponse.versionId}get isCurrentVersion(){return this.originalResponse.isCurrentVersion}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get objectReplicationDestinationPolicyId(){return this.originalResponse.objectReplicationDestinationPolicyId}get objectReplicationSourceProperties(){return this.originalResponse.objectReplicationSourceProperties}get isSealed(){return this.originalResponse.isSealed}get immutabilityPolicyExpiresOn(){return this.originalResponse.immutabilityPolicyExpiresOn}get immutabilityPolicyMode(){return this.originalResponse.immutabilityPolicyMode}get legalHold(){return this.originalResponse.legalHold}get contentAsBlob(){return this.originalResponse.blobBody}get readableStreamBody(){return Qt?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,r,n,i,s={}){this.originalResponse=e,this.blobDownloadStream=new Z_(this.originalResponse.readableStreamBody,r,n,i,s)}};var qpe=require("node:stream");var E5=new Uint8Array([79,98,106,1]),Ope="avro.codec",Lpe="avro.schema";var gr=class t{static{o(this,"AvroParser")}static async readFixedBytes(e,r,n={}){let i=await e.read(r,{abortSignal:n.abortSignal});if(i.length!==r)throw new Error("Hit stream end.");return i}static async readByte(e,r={}){return(await t.readFixedBytes(e,1,r))[0]}static async readZigZagLong(e,r={}){let n=0,i=0,s,a,c;do s=await t.readByte(e,r),a=s&128,n|=(s&127)<Number.MAX_SAFE_INTEGER)throw new Error("Integer overflow.");return l}return n>>1^-(n&1)}static async readLong(e,r={}){return t.readZigZagLong(e,r)}static async readInt(e,r={}){return t.readZigZagLong(e,r)}static async readNull(){return null}static async readBoolean(e,r={}){let n=await t.readByte(e,r);if(n===1)return!0;if(n===0)return!1;throw new Error("Byte was not a boolean.")}static async readFloat(e,r={}){let n=await t.readFixedBytes(e,4,r);return new DataView(n.buffer,n.byteOffset,n.byteLength).getFloat32(0,!0)}static async readDouble(e,r={}){let n=await t.readFixedBytes(e,8,r);return new DataView(n.buffer,n.byteOffset,n.byteLength).getFloat64(0,!0)}static async readBytes(e,r={}){let n=await t.readLong(e,r);if(n<0)throw new Error("Bytes size was negative.");return e.read(n,{abortSignal:r.abortSignal})}static async readString(e,r={}){let n=await t.readBytes(e,r);return new TextDecoder().decode(n)}static async readMapPair(e,r,n={}){let i=await t.readString(e,n),s=await r(e,n);return{key:i,value:s}}static async readMap(e,r,n={}){let i=o((c,l={})=>t.readMapPair(c,r,l),"readPairMethod"),s=await t.readArray(e,i,n),a={};for(let c of s)a[c.key]=c.value;return a}static async readArray(e,r,n={}){let i=[];for(let s=await t.readLong(e,n);s!==0;s=await t.readLong(e,n))for(s<0&&(await t.readLong(e,n),s=-s);s--;){let a=await r(e,n);i.push(a)}return i}},Zh;(function(t){t.RECORD="record",t.ENUM="enum",t.ARRAY="array",t.MAP="map",t.UNION="union",t.FIXED="fixed"})(Zh||(Zh={}));var Rn;(function(t){t.NULL="null",t.BOOLEAN="boolean",t.INT="int",t.LONG="long",t.FLOAT="float",t.DOUBLE="double",t.BYTES="bytes",t.STRING="string"})(Rn||(Rn={}));var Cu=class t{static{o(this,"AvroType")}static fromSchema(e){return typeof e=="string"?t.fromStringSchema(e):Array.isArray(e)?t.fromArraySchema(e):t.fromObjectSchema(e)}static fromStringSchema(e){switch(e){case Rn.NULL:case Rn.BOOLEAN:case Rn.INT:case Rn.LONG:case Rn.FLOAT:case Rn.DOUBLE:case Rn.BYTES:case Rn.STRING:return new C5(e);default:throw new Error(`Unexpected Avro type ${e}`)}}static fromArraySchema(e){return new w5(e.map(t.fromSchema))}static fromObjectSchema(e){let r=e.type;try{return t.fromStringSchema(r)}catch{}switch(r){case Zh.RECORD:if(e.aliases)throw new Error(`aliases currently is not supported, schema: ${e}`);if(!e.name)throw new Error(`Required attribute 'name' doesn't exist on schema: ${e}`);let n={};if(!e.fields)throw new Error(`Required attribute 'fields' doesn't exist on schema: ${e}`);for(let i of e.fields)n[i.name]=t.fromSchema(i.type);return new S5(n,e.name);case Zh.ENUM:if(e.aliases)throw new Error(`aliases currently is not supported, schema: ${e}`);if(!e.symbols)throw new Error(`Required attribute 'symbols' doesn't exist on schema: ${e}`);return new b5(e.symbols);case Zh.MAP:if(!e.values)throw new Error(`Required attribute 'values' doesn't exist on schema: ${e}`);return new I5(t.fromSchema(e.values));case Zh.ARRAY:case Zh.FIXED:default:throw new Error(`Unexpected Avro type ${r} in ${e}`)}}},C5=class extends Cu{static{o(this,"AvroPrimitiveType")}_primitive;constructor(e){super(),this._primitive=e}read(e,r={}){switch(this._primitive){case Rn.NULL:return gr.readNull();case Rn.BOOLEAN:return gr.readBoolean(e,r);case Rn.INT:return gr.readInt(e,r);case Rn.LONG:return gr.readLong(e,r);case Rn.FLOAT:return gr.readFloat(e,r);case Rn.DOUBLE:return gr.readDouble(e,r);case Rn.BYTES:return gr.readBytes(e,r);case Rn.STRING:return gr.readString(e,r);default:throw new Error("Unknown Avro Primitive")}}},b5=class extends Cu{static{o(this,"AvroEnumType")}_symbols;constructor(e){super(),this._symbols=e}async read(e,r={}){let n=await gr.readInt(e,r);return this._symbols[n]}},w5=class extends Cu{static{o(this,"AvroUnionType")}_types;constructor(e){super(),this._types=e}async read(e,r={}){let n=await gr.readInt(e,r);return this._types[n].read(e,r)}},I5=class extends Cu{static{o(this,"AvroMapType")}_itemType;constructor(e){super(),this._itemType=e}read(e,r={}){let n=o((i,s)=>this._itemType.read(i,s),"readItemMethod");return gr.readMap(e,n,r)}},S5=class extends Cu{static{o(this,"AvroRecordType")}_name;_fields;constructor(e,r){super(),this._fields=e,this._name=r}async read(e,r={}){let n={};n.$schema=this._name;for(let i in this._fields)Object.prototype.hasOwnProperty.call(this._fields,i)&&(n[i]=await this._fields[i].read(e,r));return n}};function B5(t,e){if(t===e)return!0;if(t==null||e==null||t.length!==e.length)return!1;for(let r=0;r0)for(let s=0;s0}async*parseObjects(e={}){for(this._initialized||await this.initialize(e);this.hasNext();){let r=await this._itemType.read(this._dataStream,{abortSignal:e.abortSignal});if(this._itemsRemainingInBlock--,this._objectIndex++,this._itemsRemainingInBlock===0){let n=await gr.readFixedBytes(this._dataStream,16,{abortSignal:e.abortSignal});if(this._blockOffset=this._initialBlockOffset+this._dataStream.position,this._objectIndex=0,!B5(this._syncMarker,n))throw new Error("Stream is not a valid Avro file.");try{this._itemsRemainingInBlock=await gr.readLong(this._dataStream,{abortSignal:e.abortSignal})}catch{this._itemsRemainingInBlock=0}this._itemsRemainingInBlock>0&&await gr.readLong(this._dataStream,{abortSignal:e.abortSignal})}yield r}}};var D0=class{static{o(this,"AvroReadable")}};var Upe=require("buffer");var Mpe=new Vs("Reading from the avro stream was aborted."),Q0=class extends D0{static{o(this,"AvroReadableFromStream")}_position;_readable;toUint8Array(e){return typeof e=="string"?Upe.Buffer.from(e):e}constructor(e){super(),this._readable=e,this._position=0}get position(){return this._position}async read(e,r={}){if(r.abortSignal?.aborted)throw Mpe;if(e<0)throw new Error(`size parameter should be positive: ${e}`);if(e===0)return new Uint8Array;if(!this._readable.readable)throw new Error("Stream no longer readable.");let n=this._readable.read(e);return n?(this._position+=n.length,this.toUint8Array(n)):new Promise((i,s)=>{let a=o(()=>{this._readable.removeListener("readable",c),this._readable.removeListener("error",l),this._readable.removeListener("end",l),this._readable.removeListener("close",l),r.abortSignal&&r.abortSignal.removeEventListener("abort",u)},"cleanUp"),c=o(()=>{let d=this._readable.read(e);d&&(this._position+=d.length,a(),i(this.toUint8Array(d)))},"readableCallback"),l=o(()=>{a(),s()},"rejectCallback"),u=o(()=>{a(),s(Mpe)},"abortHandler");this._readable.on("readable",c),this._readable.once("error",l),this._readable.once("end",l),this._readable.once("close",l),r.abortSignal&&r.abortSignal.addEventListener("abort",u)})}};var tR=class extends qpe.Readable{static{o(this,"BlobQuickQueryStream")}source;avroReader;avroIter;avroPaused=!0;onProgress;onError;constructor(e,r={}){super(),this.source=e,this.onProgress=r.onProgress,this.onError=r.onError,this.avroReader=new T0(new Q0(this.source)),this.avroIter=this.avroReader.parseObjects({abortSignal:r.abortSignal})}_read(){this.avroPaused&&this.readInternal().catch(e=>{this.emit("error",e)})}async readInternal(){this.avroPaused=!1;let e;do{if(e=await this.avroIter.next(),e.done)break;let r=e.value,n=r.$schema;if(typeof n!="string")throw Error("Missing schema in avro record.");switch(n){case"com.microsoft.azure.storage.queryBlobContents.resultData":{let i=r.data;if(!(i instanceof Uint8Array))throw Error("Invalid data in avro result record.");this.push(Buffer.from(i))||(this.avroPaused=!0)}break;case"com.microsoft.azure.storage.queryBlobContents.progress":{let i=r.bytesScanned;if(typeof i!="number")throw Error("Invalid bytesScanned in avro progress record.");this.onProgress&&this.onProgress({loadedBytes:i})}break;case"com.microsoft.azure.storage.queryBlobContents.end":if(this.onProgress){let i=r.totalBytes;if(typeof i!="number")throw Error("Invalid totalBytes in avro end record.");this.onProgress({loadedBytes:i})}this.push(null);break;case"com.microsoft.azure.storage.queryBlobContents.error":if(this.onError){let i=r.fatal;if(typeof i!="boolean")throw Error("Invalid fatal in avro error record.");let s=r.name;if(typeof s!="string")throw Error("Invalid name in avro error record.");let a=r.description;if(typeof a!="string")throw Error("Invalid description in avro error record.");let c=r.position;if(typeof c!="number")throw Error("Invalid position in avro error record.");this.onError({position:c,name:s,isFatal:i,description:a})}break;default:throw Error(`Unknown schema ${n} in avro progress record.`)}}while(!e.done&&!this.avroPaused)}};var rR=class{static{o(this,"BlobQueryResponse")}get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get blobBody(){}get readableStreamBody(){return Qt?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,r={}){this.originalResponse=e,this.blobDownloadStream=new tR(this.originalResponse.readableStreamBody,r)}};var x5;(function(t){t.Hot="Hot",t.Cool="Cool",t.Cold="Cold",t.Archive="Archive"})(x5||(x5={}));var v5;(function(t){t.P4="P4",t.P6="P6",t.P10="P10",t.P15="P15",t.P20="P20",t.P30="P30",t.P40="P40",t.P50="P50",t.P60="P60",t.P70="P70",t.P80="P80"})(v5||(v5={}));function Gd(t){if(t!==void 0)return t}o(Gd,"toAccessTier");function pn(t,e){if(t&&!e)throw new RangeError("Customer-provided encryption key must be used over HTTPS.");t&&!t.encryptionAlgorithm&&(t.encryptionAlgorithm=Bhe)}o(pn,"ensureCpkIfSpecified");var N5;(function(t){t.StorageOAuthScopes="https://storage.azure.com/.default",t.DiskComputeOAuthScopes="https://disk.compute.azure.com/.default"})(N5||(N5={}));function nR(t){let e=(t._response.parsedBody.pageRange||[]).map(n=>({offset:n.start,count:n.end-n.start})),r=(t._response.parsedBody.clearRange||[]).map(n=>({offset:n.start,count:n.end-n.start}));return{...t,pageRange:e,clearRange:r,_response:{...t._response,parsedBody:{pageRange:e,clearRange:r}}}}o(nR,"rangeResponseFromModel");var xAe=T(BAe(),1);var hR=class extends xAe.Poller{static{o(this,"BlobBeginCopyFromUrlPoller")}intervalInMs;constructor(e){let{blobClient:r,copySource:n,intervalInMs:i=15e3,onProgress:s,resumeFrom:a,startCopyFromURLOptions:c}=e,l;a&&(l=JSON.parse(a).state);let u=L0({...l,blobClient:r,copySource:n,startCopyFromURLOptions:c});super(u),typeof s=="function"&&this.onProgress(s),this.intervalInMs=i}delay(){return Jb(this.intervalInMs)}},Cot=o(async function(e={}){let r=this.state,{copyId:n}=r;return r.isCompleted?L0(r):n?(await r.blobClient.abortCopyFromURL(n,{abortSignal:e.abortSignal}),r.isCancelled=!0,L0(r)):(r.isCancelled=!0,L0(r))},"cancel"),bot=o(async function(e={}){let r=this.state,{blobClient:n,copySource:i,startCopyFromURLOptions:s}=r;if(r.isStarted){if(!r.isCompleted)try{let a=await r.blobClient.getProperties({abortSignal:e.abortSignal}),{copyStatus:c,copyProgress:l}=a,u=r.copyProgress;l&&(r.copyProgress=l),c==="pending"&&l!==u&&typeof e.fireProgress=="function"?e.fireProgress(r):c==="success"?(r.result=a,r.isCompleted=!0):c==="failed"&&(r.error=new Error(`Blob copy failed with reason: "${a.copyStatusDescription||"unknown"}"`),r.isCompleted=!0)}catch(a){r.error=a,r.isCompleted=!0}}else{r.isStarted=!0;let a=await n.startCopyFromURL(i,s);r.copyId=a.copyId,a.copyStatus==="success"&&(r.result=a,r.isCompleted=!0)}return L0(r)},"update"),wot=o(function(){return JSON.stringify({state:this.state},(e,r)=>{if(e!=="blobClient")return r})},"toString");function L0(t){return{state:{...t},cancel:Cot,toString:wot,update:bot}}o(L0,"makeBlobBeginCopyFromURLPollOperation");function us(t){if(t.offset<0)throw new RangeError("Range.offset cannot be smaller than 0.");if(t.count&&t.count<=0)throw new RangeError("Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.");return t.count?`bytes=${t.offset}-${t.offset+t.count-1}`:`bytes=${t.offset}-`}o(us,"rangeToString");var vAe=require("events");var F0;(function(t){t[t.Good=0]="Good",t[t.Error=1]="Error"})(F0||(F0={}));var M0=class{static{o(this,"Batch")}concurrency;actives=0;completed=0;offset=0;operations=[];state=F0.Good;emitter;constructor(e=5){if(e<1)throw new RangeError("concurrency must be larger than 0");this.concurrency=e,this.emitter=new vAe.EventEmitter}addOperation(e){this.operations.push(async()=>{try{this.actives++,await e(),this.actives--,this.completed++,this.parallelExecute()}catch(r){this.emitter.emit("error",r)}})}async do(){return this.operations.length===0?Promise.resolve():(this.parallelExecute(),new Promise((e,r)=>{this.emitter.on("finish",e),this.emitter.on("error",n=>{this.state=F0.Error,r(n)})}))}nextOperation(){return this.offset=this.operations.length){this.emitter.emit("finish");return}for(;this.actives{let u=setTimeout(()=>l(new Error("The operation cannot be completed in timeout.")),1e5);t.on("readable",()=>{if(s>=a){clearTimeout(u),c();return}let d=t.read();if(!d)return;typeof d=="string"&&(d=Buffer.from(d,i));let f=s+d.length>a?a-s:d.length;e.fill(d.slice(0,f),r+s,r+s+f),s+=f}),t.on("end",()=>{clearTimeout(u),s{clearTimeout(u),l(d)})})}o(_Ae,"streamToBuffer");async function RAe(t,e){return new Promise((r,n)=>{let i=pR.default.createWriteStream(e);t.on("error",s=>{n(s)}),i.on("error",s=>{n(s)}),i.on("close",r),t.pipe(i)})}o(RAe,"readStreamToLocalFile");var TAe=NAe.default.promisify(pR.default.stat),DAe=pR.default.createReadStream;var Pa=class t extends fg{static{o(this,"BlobClient")}blobContext;_name;_containerName;_versionId;_snapshot;get name(){return this._name}get containerName(){return this._containerName}constructor(e,r,n,i){i=i||{};let s,a;if(pu(r))a=e,s=r;else if(Qt&&r instanceof xr||r instanceof dr||$s(r))a=e,i=n,s=Gr(r,i);else if(!r&&typeof r!="string")a=e,n&&typeof n!="string"&&(i=n),s=Gr(new dr,i);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=Yh(e);if(u.kind==="AccountConnString")if(Qt){let d=new xr(u.accountName,u.accountKey);a=hn(hn(u.url,encodeURIComponent(c)),encodeURIComponent(l)),i.proxyOptions||(i.proxyOptions=Qd(u.proxyUri)),s=Gr(d,i)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=hn(hn(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,s=Gr(new dr,i);else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}else throw new Error("Expecting non-empty strings for containerName and blobName parameters");super(a,s),{blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl(),this.blobContext=this.storageClientContext.blob,this._snapshot=h5(this.url,hu.Parameters.SNAPSHOT),this._versionId=h5(this.url,hu.Parameters.VERSIONID)}withSnapshot(e){return new t(ug(this.url,hu.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}withVersion(e){return new t(ug(this.url,hu.Parameters.VERSIONID,e.length===0?void 0:e),this.pipeline)}getAppendBlobClient(){return new mR(this.url,this.pipeline)}getBlockBlobClient(){return new Ag(this.url,this.pipeline)}getPageBlobClient(){return new gR(this.url,this.pipeline)}async download(e=0,r,n={}){return n.conditions=n.conditions||{},n.conditions=n.conditions||{},pn(n.customerProvidedKey,this.isHttps),ye.withSpan("BlobClient-download",n,async i=>{let s=xe(await this.blobContext.download({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onDownloadProgress:Qt?void 0:n.onProgress},range:e===0&&!r?void 0:us({offset:e,count:r}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey,tracingOptions:i.tracingOptions})),a={...s,_response:s._response,objectReplicationDestinationPolicyId:s.objectReplicationPolicyId,objectReplicationSourceProperties:X_(s.objectReplicationRules)};if(!Qt)return a;if((n.maxRetryRequests===void 0||n.maxRetryRequests<0)&&(n.maxRetryRequests=5),s.contentLength===void 0)throw new RangeError("File download response doesn't contain valid content length header");if(!s.etag)throw new RangeError("File download response doesn't contain valid etag header");return new eR(a,async c=>{let l={leaseAccessConditions:n.conditions,modifiedAccessConditions:{ifMatch:n.conditions.ifMatch||s.etag,ifModifiedSince:n.conditions.ifModifiedSince,ifNoneMatch:n.conditions.ifNoneMatch,ifUnmodifiedSince:n.conditions.ifUnmodifiedSince,ifTags:n.conditions?.tagConditions},range:us({count:e+s.contentLength-c,offset:c}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey};return(await this.blobContext.download({abortSignal:n.abortSignal,...l})).readableStreamBody},e,s.contentLength,{maxRetryRequests:n.maxRetryRequests,onProgress:n.onProgress})})}async exists(e={}){return ye.withSpan("BlobClient-exists",e,async r=>{try{return pn(e.customerProvidedKey,this.isHttps),await this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,conditions:e.conditions,tracingOptions:r.tracingOptions}),!0}catch(n){if(n.statusCode===404)return!1;if(n.statusCode===409&&(n.details.errorCode===_he||n.details.errorCode===Rhe))return!0;throw n}})}async getProperties(e={}){return e.conditions=e.conditions||{},pn(e.customerProvidedKey,this.isHttps),ye.withSpan("BlobClient-getProperties",e,async r=>{let n=xe(await this.blobContext.getProperties({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,tracingOptions:r.tracingOptions}));return{...n,_response:n._response,objectReplicationDestinationPolicyId:n.objectReplicationPolicyId,objectReplicationSourceProperties:X_(n.objectReplicationRules)}})}async delete(e={}){return e.conditions=e.conditions||{},ye.withSpan("BlobClient-delete",e,async r=>xe(await this.blobContext.delete({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async deleteIfExists(e={}){return ye.withSpan("BlobClient-deleteIfExists",e,async r=>{try{let n=xe(await this.delete(r));return{succeeded:!0,...n,_response:n._response}}catch(n){if(n.details?.errorCode==="BlobNotFound")return{succeeded:!1,...n.response?.parsedHeaders,_response:n.response};throw n}})}async undelete(e={}){return ye.withSpan("BlobClient-undelete",e,async r=>xe(await this.blobContext.undelete({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async setHTTPHeaders(e,r={}){return r.conditions=r.conditions||{},pn(r.customerProvidedKey,this.isHttps),ye.withSpan("BlobClient-setHTTPHeaders",r,async n=>xe(await this.blobContext.setHttpHeaders({abortSignal:r.abortSignal,blobHttpHeaders:e,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}async setMetadata(e,r={}){return r.conditions=r.conditions||{},pn(r.customerProvidedKey,this.isHttps),ye.withSpan("BlobClient-setMetadata",r,async n=>xe(await this.blobContext.setMetadata({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,metadata:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:n.tracingOptions})))}async setTags(e,r={}){return ye.withSpan("BlobClient-setTags",r,async n=>xe(await this.blobContext.setTags({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},blobModifiedAccessConditions:r.conditions,tracingOptions:n.tracingOptions,tags:Qpe(e)})))}async getTags(e={}){return ye.withSpan("BlobClient-getTags",e,async r=>{let n=xe(await this.blobContext.getTags({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},blobModifiedAccessConditions:e.conditions,tracingOptions:r.tracingOptions}));return{...n,_response:n._response,tags:K_({blobTagSet:n.blobTagSet})||{}}})}getBlobLeaseClient(e){return new R0(this,e)}async createSnapshot(e={}){return e.conditions=e.conditions||{},pn(e.customerProvidedKey,this.isHttps),ye.withSpan("BlobClient-createSnapshot",e,async r=>xe(await this.blobContext.createSnapshot({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,tracingOptions:r.tracingOptions})))}async beginCopyFromURL(e,r={}){let n={abortCopyFromURL:o((...s)=>this.abortCopyFromURL(...s),"abortCopyFromURL"),getProperties:o((...s)=>this.getProperties(...s),"getProperties"),startCopyFromURL:o((...s)=>this.startCopyFromURL(...s),"startCopyFromURL")},i=new hR({blobClient:n,copySource:e,intervalInMs:r.intervalInMs,onProgress:r.onProgress,resumeFrom:r.resumeFrom,startCopyFromURLOptions:r});return await i.poll(),i}async abortCopyFromURL(e,r={}){return ye.withSpan("BlobClient-abortCopyFromURL",r,async n=>xe(await this.blobContext.abortCopyFromURL(e,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,tracingOptions:n.tracingOptions})))}async syncCopyFromURL(e,r={}){return r.conditions=r.conditions||{},r.sourceConditions=r.sourceConditions||{},ye.withSpan("BlobClient-syncCopyFromURL",r,async n=>xe(await this.blobContext.copyFromURL(e,{abortSignal:r.abortSignal,metadata:r.metadata,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:r.sourceConditions?.ifMatch,sourceIfModifiedSince:r.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:r.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:r.sourceConditions?.ifUnmodifiedSince},sourceContentMD5:r.sourceContentMD5,copySourceAuthorization:dg(r.sourceAuthorization),tier:Gd(r.tier),blobTagsString:qd(r.tags),immutabilityPolicyExpiry:r.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:r.immutabilityPolicy?.policyMode,legalHold:r.legalHold,encryptionScope:r.encryptionScope,copySourceTags:r.copySourceTags,fileRequestIntent:r.sourceShareTokenIntent,tracingOptions:n.tracingOptions})))}async setAccessTier(e,r={}){return ye.withSpan("BlobClient-setAccessTier",r,async n=>xe(await this.blobContext.setTier(Gd(e),{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},rehydratePriority:r.rehydratePriority,tracingOptions:n.tracingOptions})))}async downloadToBuffer(e,r,n,i={}){let s,a=0,c=0,l=i;e instanceof Buffer?(s=e,a=r||0,c=typeof n=="number"?n:0):(a=typeof e=="number"?e:0,c=typeof r=="number"?r:0,l=n||{});let u=l.blockSize??0;if(u<0)throw new RangeError("blockSize option must be >= 0");if(u===0&&(u=4194304),a<0)throw new RangeError("offset option must be >= 0");if(c&&c<=0)throw new RangeError("count option must be greater than 0");return l.conditions||(l.conditions={}),ye.withSpan("BlobClient-downloadToBuffer",l,async d=>{if(!c){let p=await this.getProperties({...l,tracingOptions:d.tracingOptions});if(c=p.contentLength-a,c<0)throw new RangeError(`offset ${a} shouldn't be larger than blob size ${p.contentLength}`)}if(!s)try{s=Buffer.alloc(c)}catch(p){throw new Error(`Unable to allocate the buffer of size: ${c}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile". ${p.message}`)}if(s.length{let m=a+c;p+u{let a=await this.download(r,n,{...i,tracingOptions:s.tracingOptions});return a.readableStreamBody&&await RAe(a.readableStreamBody,e),a.blobDownloadStream=void 0,a})}getBlobAndContainerNamesFromUrl(){let e,r;try{let n=new URL(this.url);if(n.host.split(".")[1]==="blob"){let i=n.pathname.match("/([^/]*)(/(.*))?");e=i[1],r=i[3]}else if(Y_(n)){let i=n.pathname.match("/([^/]*)/([^/]*)(/(.*))?");e=i[2],r=i[4]}else{let i=n.pathname.match("/([^/]*)(/(.*))?");e=i[1],r=i[3]}if(e=decodeURIComponent(e),r=decodeURIComponent(r),r=r.replace(/\\/g,"/"),!e)throw new Error("Provided containerName is invalid.");return{blobName:r,containerName:e}}catch{throw new Error("Unable to extract blobName and containerName with provided information.")}}async startCopyFromURL(e,r={}){return ye.withSpan("BlobClient-startCopyFromURL",r,async n=>(r.conditions=r.conditions||{},r.sourceConditions=r.sourceConditions||{},xe(await this.blobContext.startCopyFromURL(e,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:r.sourceConditions.ifMatch,sourceIfModifiedSince:r.sourceConditions.ifModifiedSince,sourceIfNoneMatch:r.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:r.sourceConditions.ifUnmodifiedSince,sourceIfTags:r.sourceConditions.tagConditions},immutabilityPolicyExpiry:r.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:r.immutabilityPolicy?.policyMode,legalHold:r.legalHold,rehydratePriority:r.rehydratePriority,tier:Gd(r.tier),blobTagsString:qd(r.tags),sealBlob:r.sealBlob,tracingOptions:n.tracingOptions}))))}generateSasUrl(e){return new Promise(r=>{if(!(this.credential instanceof xr))throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential");let n=N0({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).toString();r(v0(this.url,n))})}generateSasStringToSign(e){if(!(this.credential instanceof xr))throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential");return _0({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,r){return new Promise(n=>{let i=N0({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},r,this.accountName).toString();n(v0(this.url,i))})}generateUserDelegationSasStringToSign(e,r){return _0({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},r,this.accountName).stringToSign}async deleteImmutabilityPolicy(e={}){return ye.withSpan("BlobClient-deleteImmutabilityPolicy",e,async r=>xe(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:r.tracingOptions})))}async setImmutabilityPolicy(e,r={}){return ye.withSpan("BlobClient-setImmutabilityPolicy",r,async n=>xe(await this.blobContext.setImmutabilityPolicy({immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,tracingOptions:n.tracingOptions})))}async setLegalHold(e,r={}){return ye.withSpan("BlobClient-setLegalHold",r,async n=>xe(await this.blobContext.setLegalHold(e,{tracingOptions:n.tracingOptions})))}async getAccountInfo(e={}){return ye.withSpan("BlobClient-getAccountInfo",e,async r=>xe(await this.blobContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}},mR=class t extends Pa{static{o(this,"AppendBlobClient")}appendBlobContext;constructor(e,r,n,i){let s,a;if(i=i||{},pu(r))a=e,s=r;else if(Qt&&r instanceof xr||r instanceof dr||$s(r))a=e,i=n,s=Gr(r,i);else if(!r&&typeof r!="string")a=e,s=Gr(new dr,i);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=Yh(e);if(u.kind==="AccountConnString")if(Qt){let d=new xr(u.accountName,u.accountKey);a=hn(hn(u.url,encodeURIComponent(c)),encodeURIComponent(l)),i.proxyOptions||(i.proxyOptions=Qd(u.proxyUri)),s=Gr(d,i)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=hn(hn(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,s=Gr(new dr,i);else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}else throw new Error("Expecting non-empty strings for containerName and blobName parameters");super(a,s),this.appendBlobContext=this.storageClientContext.appendBlob}withSnapshot(e){return new t(ug(this.url,hu.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}async create(e={}){return e.conditions=e.conditions||{},pn(e.customerProvidedKey,this.isHttps),ye.withSpan("AppendBlobClient-create",e,async r=>xe(await this.appendBlobContext.create(0,{abortSignal:e.abortSignal,blobHttpHeaders:e.blobHTTPHeaders,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,immutabilityPolicyExpiry:e.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:e.immutabilityPolicy?.policyMode,legalHold:e.legalHold,blobTagsString:qd(e.tags),tracingOptions:r.tracingOptions})))}async createIfNotExists(e={}){let r={ifNoneMatch:a3};return ye.withSpan("AppendBlobClient-createIfNotExists",e,async n=>{try{let i=xe(await this.create({...n,conditions:r}));return{succeeded:!0,...i,_response:i._response}}catch(i){if(i.details?.errorCode==="BlobAlreadyExists")return{succeeded:!1,...i.response?.parsedHeaders,_response:i.response};throw i}})}async seal(e={}){return e.conditions=e.conditions||{},ye.withSpan("AppendBlobClient-seal",e,async r=>xe(await this.appendBlobContext.seal({abortSignal:e.abortSignal,appendPositionAccessConditions:e.conditions,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async appendBlock(e,r,n={}){return n.conditions=n.conditions||{},pn(n.customerProvidedKey,this.isHttps),ye.withSpan("AppendBlobClient-appendBlock",n,async i=>xe(await this.appendBlobContext.appendBlock(r,e,{abortSignal:n.abortSignal,appendPositionAccessConditions:n.conditions,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},transactionalContentMD5:n.transactionalContentMD5,transactionalContentCrc64:n.transactionalContentCrc64,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:i.tracingOptions})))}async appendBlockFromURL(e,r,n,i={}){return i.conditions=i.conditions||{},i.sourceConditions=i.sourceConditions||{},pn(i.customerProvidedKey,this.isHttps),ye.withSpan("AppendBlobClient-appendBlockFromURL",i,async s=>xe(await this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:i.abortSignal,sourceRange:us({offset:r,count:n}),sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,leaseAccessConditions:i.conditions,appendPositionAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:i.sourceConditions?.ifMatch,sourceIfModifiedSince:i.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:i.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:i.sourceConditions?.ifUnmodifiedSince},copySourceAuthorization:dg(i.sourceAuthorization),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,fileRequestIntent:i.sourceShareTokenIntent,tracingOptions:s.tracingOptions})))}},Ag=class t extends Pa{static{o(this,"BlockBlobClient")}_blobContext;blockBlobContext;constructor(e,r,n,i){let s,a;if(i=i||{},pu(r))a=e,s=r;else if(Qt&&r instanceof xr||r instanceof dr||$s(r))a=e,i=n,s=Gr(r,i);else if(!r&&typeof r!="string")a=e,n&&typeof n!="string"&&(i=n),s=Gr(new dr,i);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=Yh(e);if(u.kind==="AccountConnString")if(Qt){let d=new xr(u.accountName,u.accountKey);a=hn(hn(u.url,encodeURIComponent(c)),encodeURIComponent(l)),i.proxyOptions||(i.proxyOptions=Qd(u.proxyUri)),s=Gr(d,i)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=hn(hn(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,s=Gr(new dr,i);else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}else throw new Error("Expecting non-empty strings for containerName and blobName parameters");super(a,s),this.blockBlobContext=this.storageClientContext.blockBlob,this._blobContext=this.storageClientContext.blob}withSnapshot(e){return new t(ug(this.url,hu.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}async query(e,r={}){if(pn(r.customerProvidedKey,this.isHttps),!Qt)throw new Error("This operation currently is only supported in Node.js.");return ye.withSpan("BlockBlobClient-query",r,async n=>{let i=xe(await this._blobContext.query({abortSignal:r.abortSignal,queryRequest:{queryType:"SQL",expression:e,inputSerialization:g5(r.inputTextConfiguration),outputSerialization:g5(r.outputTextConfiguration)},leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},cpkInfo:r.customerProvidedKey,tracingOptions:n.tracingOptions}));return new rR(i,{abortSignal:r.abortSignal,onProgress:r.onProgress,onError:r.onError})})}async upload(e,r,n={}){return n.conditions=n.conditions||{},pn(n.customerProvidedKey,this.isHttps),ye.withSpan("BlockBlobClient-upload",n,async i=>xe(await this.blockBlobContext.upload(r,e,{abortSignal:n.abortSignal,blobHttpHeaders:n.blobHTTPHeaders,leaseAccessConditions:n.conditions,metadata:n.metadata,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,immutabilityPolicyExpiry:n.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:n.immutabilityPolicy?.policyMode,legalHold:n.legalHold,tier:Gd(n.tier),blobTagsString:qd(n.tags),tracingOptions:i.tracingOptions})))}async syncUploadFromURL(e,r={}){return r.conditions=r.conditions||{},pn(r.customerProvidedKey,this.isHttps),ye.withSpan("BlockBlobClient-syncUploadFromURL",r,async n=>xe(await this.blockBlobContext.putBlobFromUrl(0,e,{...r,blobHttpHeaders:r.blobHTTPHeaders,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:r.sourceConditions?.ifMatch,sourceIfModifiedSince:r.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:r.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:r.sourceConditions?.ifUnmodifiedSince,sourceIfTags:r.sourceConditions?.tagConditions},cpkInfo:r.customerProvidedKey,copySourceAuthorization:dg(r.sourceAuthorization),tier:Gd(r.tier),blobTagsString:qd(r.tags),copySourceTags:r.copySourceTags,fileRequestIntent:r.sourceShareTokenIntent,tracingOptions:n.tracingOptions})))}async stageBlock(e,r,n,i={}){return pn(i.customerProvidedKey,this.isHttps),ye.withSpan("BlockBlobClient-stageBlock",i,async s=>xe(await this.blockBlobContext.stageBlock(e,n,r,{abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,requestOptions:{onUploadProgress:i.onProgress},transactionalContentMD5:i.transactionalContentMD5,transactionalContentCrc64:i.transactionalContentCrc64,cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,tracingOptions:s.tracingOptions})))}async stageBlockFromURL(e,r,n=0,i,s={}){return pn(s.customerProvidedKey,this.isHttps),ye.withSpan("BlockBlobClient-stageBlockFromURL",s,async a=>xe(await this.blockBlobContext.stageBlockFromURL(e,0,r,{abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,sourceContentMD5:s.sourceContentMD5,sourceContentCrc64:s.sourceContentCrc64,sourceRange:n===0&&!i?void 0:us({offset:n,count:i}),cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,copySourceAuthorization:dg(s.sourceAuthorization),fileRequestIntent:s.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async commitBlockList(e,r={}){return r.conditions=r.conditions||{},pn(r.customerProvidedKey,this.isHttps),ye.withSpan("BlockBlobClient-commitBlockList",r,async n=>xe(await this.blockBlobContext.commitBlockList({latest:e},{abortSignal:r.abortSignal,blobHttpHeaders:r.blobHTTPHeaders,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,immutabilityPolicyExpiry:r.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:r.immutabilityPolicy?.policyMode,legalHold:r.legalHold,tier:Gd(r.tier),blobTagsString:qd(r.tags),tracingOptions:n.tracingOptions})))}async getBlockList(e,r={}){return ye.withSpan("BlockBlobClient-getBlockList",r,async n=>{let i=xe(await this.blockBlobContext.getBlockList(e,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return i.committedBlocks||(i.committedBlocks=[]),i.uncommittedBlocks||(i.uncommittedBlocks=[]),i})}async uploadData(e,r={}){return ye.withSpan("BlockBlobClient-uploadData",r,async n=>{if(Qt){let i;return e instanceof Buffer?i=e:e instanceof ArrayBuffer?i=Buffer.from(e):(e=e,i=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),this.uploadSeekableInternal((s,a)=>i.slice(s,s+a),i.byteLength,n)}else{let i=new Blob([e]);return this.uploadSeekableInternal((s,a)=>i.slice(s,s+a),i.size,n)}})}async uploadBrowserData(e,r={}){return ye.withSpan("BlockBlobClient-uploadBrowserData",r,async n=>{let i=new Blob([e]);return this.uploadSeekableInternal((s,a)=>i.slice(s,s+a),i.size,n)})}async uploadSeekableInternal(e,r,n={}){let i=n.blockSize??0;if(i<0||i>4194304e3)throw new RangeError(`blockSize option must be >= 0 and <= ${4194304e3}`);let s=n.maxSingleShotSize??268435456;if(s<0||s>268435456)throw new RangeError(`maxSingleShotSize option must be >= 0 and <= ${268435456}`);if(i===0){if(r>4194304e3*5e4)throw new RangeError(`${r} is too larger to upload to a block blob.`);r>s&&(i=Math.ceil(r/5e4),i<4194304&&(i=4194304))}return n.blobHTTPHeaders||(n.blobHTTPHeaders={}),n.conditions||(n.conditions={}),ye.withSpan("BlockBlobClient-uploadSeekableInternal",n,async a=>{if(r<=s)return xe(await this.upload(e(0,r),r,a));let c=Math.floor((r-1)/i)+1;if(c>5e4)throw new RangeError(`The buffer's size is too big or the BlockSize is too small;the number of blocks must be <= ${5e4}`);let l=[],u=Ym(),d=0,f=new M0(n.concurrency);for(let h=0;h{let p=p5(u,h),m=i*h,E=(h===c-1?r:m+i)-m;l.push(p),await this.stageBlock(p,e(m,E),E,{abortSignal:n.abortSignal,conditions:n.conditions,encryptionScope:n.encryptionScope,tracingOptions:a.tracingOptions}),d+=E,n.onProgress&&n.onProgress({loadedBytes:d})});return await f.do(),this.commitBlockList(l,a)})}async uploadFile(e,r={}){return ye.withSpan("BlockBlobClient-uploadFile",r,async n=>{let i=(await TAe(e)).size;return this.uploadSeekableInternal((s,a)=>()=>DAe(e,{autoClose:!0,end:a?s+a-1:1/0,start:s}),i,{...r,tracingOptions:n.tracingOptions})})}async uploadStream(e,r=8388608,n=5,i={}){return i.blobHTTPHeaders||(i.blobHTTPHeaders={}),i.conditions||(i.conditions={}),ye.withSpan("BlockBlobClient-uploadStream",i,async s=>{let a=0,c=Ym(),l=0,u=[];return await new s_(e,r,n,async(f,h)=>{let p=p5(c,a);u.push(p),a++,await this.stageBlock(p,f,h,{customerProvidedKey:i.customerProvidedKey,conditions:i.conditions,encryptionScope:i.encryptionScope,tracingOptions:s.tracingOptions}),l+=h,i.onProgress&&i.onProgress({loadedBytes:l})},Math.ceil(n/4*3)).do(),xe(await this.commitBlockList(u,{...i,tracingOptions:s.tracingOptions}))})}},gR=class t extends Pa{static{o(this,"PageBlobClient")}pageBlobContext;constructor(e,r,n,i){let s,a;if(i=i||{},pu(r))a=e,s=r;else if(Qt&&r instanceof xr||r instanceof dr||$s(r))a=e,i=n,s=Gr(r,i);else if(!r&&typeof r!="string")a=e,s=Gr(new dr,i);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=Yh(e);if(u.kind==="AccountConnString")if(Qt){let d=new xr(u.accountName,u.accountKey);a=hn(hn(u.url,encodeURIComponent(c)),encodeURIComponent(l)),i.proxyOptions||(i.proxyOptions=Qd(u.proxyUri)),s=Gr(d,i)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=hn(hn(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,s=Gr(new dr,i);else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}else throw new Error("Expecting non-empty strings for containerName and blobName parameters");super(a,s),this.pageBlobContext=this.storageClientContext.pageBlob}withSnapshot(e){return new t(ug(this.url,hu.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}async create(e,r={}){return r.conditions=r.conditions||{},pn(r.customerProvidedKey,this.isHttps),ye.withSpan("PageBlobClient-create",r,async n=>xe(await this.pageBlobContext.create(0,e,{abortSignal:r.abortSignal,blobHttpHeaders:r.blobHTTPHeaders,blobSequenceNumber:r.blobSequenceNumber,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,immutabilityPolicyExpiry:r.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:r.immutabilityPolicy?.policyMode,legalHold:r.legalHold,tier:Gd(r.tier),blobTagsString:qd(r.tags),tracingOptions:n.tracingOptions})))}async createIfNotExists(e,r={}){return ye.withSpan("PageBlobClient-createIfNotExists",r,async n=>{try{let i={ifNoneMatch:a3},s=xe(await this.create(e,{...r,conditions:i,tracingOptions:n.tracingOptions}));return{succeeded:!0,...s,_response:s._response}}catch(i){if(i.details?.errorCode==="BlobAlreadyExists")return{succeeded:!1,...i.response?.parsedHeaders,_response:i.response};throw i}})}async uploadPages(e,r,n,i={}){return i.conditions=i.conditions||{},pn(i.customerProvidedKey,this.isHttps),ye.withSpan("PageBlobClient-uploadPages",i,async s=>xe(await this.pageBlobContext.uploadPages(n,e,{abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},requestOptions:{onUploadProgress:i.onProgress},range:us({offset:r,count:n}),sequenceNumberAccessConditions:i.conditions,transactionalContentMD5:i.transactionalContentMD5,transactionalContentCrc64:i.transactionalContentCrc64,cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,tracingOptions:s.tracingOptions})))}async uploadPagesFromURL(e,r,n,i,s={}){return s.conditions=s.conditions||{},s.sourceConditions=s.sourceConditions||{},pn(s.customerProvidedKey,this.isHttps),ye.withSpan("PageBlobClient-uploadPagesFromURL",s,async a=>xe(await this.pageBlobContext.uploadPagesFromURL(e,us({offset:r,count:i}),0,us({offset:n,count:i}),{abortSignal:s.abortSignal,sourceContentMD5:s.sourceContentMD5,sourceContentCrc64:s.sourceContentCrc64,leaseAccessConditions:s.conditions,sequenceNumberAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:s.sourceConditions?.ifMatch,sourceIfModifiedSince:s.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:s.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:s.sourceConditions?.ifUnmodifiedSince},cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,copySourceAuthorization:dg(s.sourceAuthorization),fileRequestIntent:s.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async clearPages(e=0,r,n={}){return n.conditions=n.conditions||{},ye.withSpan("PageBlobClient-clearPages",n,async i=>xe(await this.pageBlobContext.clearPages(0,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:us({offset:e,count:r}),sequenceNumberAccessConditions:n.conditions,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:i.tracingOptions})))}async getPageRanges(e=0,r,n={}){return n.conditions=n.conditions||{},ye.withSpan("PageBlobClient-getPageRanges",n,async i=>{let s=xe(await this.pageBlobContext.getPageRanges({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:us({offset:e,count:r}),tracingOptions:i.tracingOptions}));return nR(s)})}async listPageRangesSegment(e=0,r,n,i={}){return ye.withSpan("PageBlobClient-getPageRangesSegment",i,async s=>xe(await this.pageBlobContext.getPageRanges({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},range:us({offset:e,count:r}),marker:n,maxPageSize:i.maxPageSize,tracingOptions:s.tracingOptions})))}async*listPageRangeItemSegments(e=0,r,n,i={}){let s;if(n||n===void 0)do s=await this.listPageRangesSegment(e,r,n,i),n=s.continuationToken,yield await s;while(n)}async*listPageRangeItems(e=0,r,n={}){let i;for await(let s of this.listPageRangeItemSegments(e,r,i,n))yield*y5(s)}listPageRanges(e=0,r,n={}){n.conditions=n.conditions||{};let i=this.listPageRangeItems(e,r,n);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:o((s={})=>this.listPageRangeItemSegments(e,r,s.continuationToken,{maxPageSize:s.maxPageSize,...n}),"byPage")}}async getPageRangesDiff(e,r,n,i={}){return i.conditions=i.conditions||{},ye.withSpan("PageBlobClient-getPageRangesDiff",i,async s=>{let a=xe(await this.pageBlobContext.getPageRangesDiff({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},prevsnapshot:n,range:us({offset:e,count:r}),tracingOptions:s.tracingOptions}));return nR(a)})}async listPageRangesDiffSegment(e,r,n,i,s={}){return ye.withSpan("PageBlobClient-getPageRangesDiffSegment",s,async a=>xe(await this.pageBlobContext.getPageRangesDiff({abortSignal:s?.abortSignal,leaseAccessConditions:s?.conditions,modifiedAccessConditions:{...s?.conditions,ifTags:s?.conditions?.tagConditions},prevsnapshot:n,range:us({offset:e,count:r}),marker:i,maxPageSize:s?.maxPageSize,tracingOptions:a.tracingOptions})))}async*listPageRangeDiffItemSegments(e,r,n,i,s){let a;if(i||i===void 0)do a=await this.listPageRangesDiffSegment(e,r,n,i,s),i=a.continuationToken,yield await a;while(i)}async*listPageRangeDiffItems(e,r,n,i){let s;for await(let a of this.listPageRangeDiffItemSegments(e,r,n,s,i))yield*y5(a)}listPageRangesDiff(e,r,n,i={}){i.conditions=i.conditions||{};let s=this.listPageRangeDiffItems(e,r,n,{...i});return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:o((a={})=>this.listPageRangeDiffItemSegments(e,r,n,a.continuationToken,{maxPageSize:a.maxPageSize,...i}),"byPage")}}async getPageRangesDiffForManagedDisks(e,r,n,i={}){return i.conditions=i.conditions||{},ye.withSpan("PageBlobClient-GetPageRangesDiffForManagedDisks",i,async s=>{let a=xe(await this.pageBlobContext.getPageRangesDiff({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},prevSnapshotUrl:n,range:us({offset:e,count:r}),tracingOptions:s.tracingOptions}));return nR(a)})}async resize(e,r={}){return r.conditions=r.conditions||{},ye.withSpan("PageBlobClient-resize",r,async n=>xe(await this.pageBlobContext.resize(e,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},encryptionScope:r.encryptionScope,tracingOptions:n.tracingOptions})))}async updateSequenceNumber(e,r,n={}){return n.conditions=n.conditions||{},ye.withSpan("PageBlobClient-updateSequenceNumber",n,async i=>xe(await this.pageBlobContext.updateSequenceNumber(e,{abortSignal:n.abortSignal,blobSequenceNumber:r,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:i.tracingOptions})))}async startCopyIncremental(e,r={}){return ye.withSpan("PageBlobClient-startCopyIncremental",r,async n=>xe(await this.pageBlobContext.copyIncremental(e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}};var QAe;(function(t){t[t.LOCKED=0]="LOCKED",t[t.UNLOCKED=1]="UNLOCKED"})(QAe||(QAe={}));var kAe;(function(t){t.AES256="AES256"})(kAe||(kAe={}));var yR=class extends Error{static{o(this,"InvalidResponseError")}constructor(e){super(e),this.name="InvalidResponseError"}};var mg=class extends Error{static{o(this,"NetworkError")}constructor(e){let r=`Unable to make request: ${e} +If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};mg.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var rp=class extends Error{static{o(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. +More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};rp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var U0=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var Qot=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},X5=class{static{o(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,i=(e/(1024*1024)/(n/1e3)).toFixed(1);D(`Sent ${e} of ${this.contentLength} (${r}%), ${i} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function PAe(t,e,r){return Qot(this,void 0,void 0,function*(){var n;let i=new Pa(t),s=i.getBlockBlobClient(),a=new X5((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),v(`BlobClient: ${i.name}:${i.accountName}:${i.containerName}`);let l=yield s.uploadFile(e,c);if(l._response.status>=400)throw new yR(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw Ge(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}o(PAe,"uploadCacheArchiveSDK");var LAe=T(require("buffer"),1),$c=T(require("fs"),1),FAe=T(require("stream"),1),MAe=T(require("util"),1);var ER=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function CR(t){return t?t>=200&&t<300:!1}o(CR,"isSuccessStatusCode");function kot(t){return t?t>=500:!0}o(kot,"isServerErrorStatusCode");function Pot(t){return t?[Br.BadGateway,Br.ServiceUnavailable,Br.GatewayTimeout].includes(t):!1}o(Pot,"isRetryableStatusCode");function Oot(t){return ER(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(Oot,"sleep");function OAe(t,e,r){return ER(this,arguments,void 0,function*(n,i,s,a=Hv,c=zv,l=void 0){let u="",d=1;for(;d<=a;){let f,h,p=!1;try{f=yield i()}catch(m){l&&(f=l(m)),p=!0,u=m.message}if(f&&(h=s(f),!kot(h)))return f;if(h&&(p=Pot(h),u=`Cache service responded with ${h}`),v(`${n} - Attempt ${d} of ${a} failed with error: ${u}`),!p){v(`${n} - Error is not retryable`);break}yield Oot(c),d++}throw Error(`${n} failed: ${u}`)})}o(OAe,"retry");function q0(t,e){return ER(this,arguments,void 0,function*(r,n,i=Hv,s=zv){return yield OAe(r,n,a=>a.statusCode,i,s,a=>{if(a instanceof yc)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(q0,"retryTypedResponse");function gg(t,e){return ER(this,arguments,void 0,function*(r,n,i=Hv,s=zv){return yield OAe(r,n,a=>a.message.statusCode,i,s)})}o(gg,"retryHttpClientResponse");var Lo=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function Lot(t,e){return Lo(this,void 0,void 0,function*(){yield MAe.promisify(FAe.pipeline)(t.message,e)})}o(Lot,"pipeResponseToStream");var bR=class{static{o(this,"DownloadProgress")}constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,v(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,i=(e/(1024*1024)/(n/1e3)).toFixed(1);D(`Received ${e} of ${this.contentLength} (${r}%), ${i} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function wR(t,e){return Lo(this,void 0,void 0,function*(){let r=$c.createWriteStream(e),n=new cu("actions/cache"),i=yield gg("downloadCache",()=>Lo(this,void 0,void 0,function*(){return n.get(t)}));i.message.socket.setTimeout(bU,()=>{i.message.destroy(),v(`Aborting download, socket timed out after ${bU} ms`)}),yield Lot(i,r);let s=i.message.headers["content-length"];if(s){let a=parseInt(s),c=gc(e);if(c!==a)throw new Error(`Incomplete download. Expected file size: ${a}, actual file size: ${c}`)}else v("Unable to validate download, no Content-Length header")})}o(wR,"downloadCacheHttpClient");function UAe(t,e,r){return Lo(this,void 0,void 0,function*(){var n;let i=yield $c.promises.open(e,"w"),s=new cu("actions/cache",void 0,{socketTimeout:r.timeoutInMs,keepAlive:!0});try{let c=(yield gg("downloadCacheMetadata",()=>Lo(this,void 0,void 0,function*(){return yield s.request("HEAD",t,null,{})}))).message.headers["content-length"];if(c==null)throw new Error("Content-Length not found on blob response");let l=parseInt(c);if(Number.isNaN(l))throw new Error(`Could not interpret Content-Length: ${l}`);let u=[],d=4*1024*1024;for(let C=0;CLo(this,void 0,void 0,function*(){return yield Fot(s,t,C,w)}),"promiseGetter")})}u.reverse();let f=0,h=0,p=new bR(l);p.startDisplayTimer();let m=p.onProgress(),A=[],E,y=o(()=>Lo(this,void 0,void 0,function*(){let C=yield Promise.race(Object.values(A));yield i.write(C.buffer,0,C.count,C.offset),f--,delete A[C.offset],h+=C.count,m({loadedBytes:h})}),"waitAndWrite");for(;E=u.pop();)A[E.offset]=E.promiseGetter(),f++,f>=((n=r.downloadConcurrency)!==null&&n!==void 0?n:10)&&(yield y());for(;f>0;)yield y()}finally{s.dispose(),yield i.close()}})}o(UAe,"downloadCacheHttpClientConcurrent");function Fot(t,e,r,n){return Lo(this,void 0,void 0,function*(){let s=0;for(;;)try{let c=yield GAe(3e4,Mot(t,e,r,n));if(typeof c=="string")throw new Error("downloadSegmentRetry failed due to timeout");return c}catch(a){if(s>=5)throw a;s++}})}o(Fot,"downloadSegmentRetry");function Mot(t,e,r,n){return Lo(this,void 0,void 0,function*(){let i=yield gg("downloadCachePart",()=>Lo(this,void 0,void 0,function*(){return yield t.get(e,{Range:`bytes=${r}-${r+n-1}`})}));if(!i.readBodyBuffer)throw new Error("Expected HttpClientResponse to implement readBodyBuffer");return{offset:r,count:n,buffer:yield i.readBodyBuffer()}})}o(Mot,"downloadSegment");function qAe(t,e,r){return Lo(this,void 0,void 0,function*(){var n;let i=new Ag(t,void 0,{retryOptions:{tryTimeoutInMs:r.timeoutInMs}}),a=(n=(yield i.getProperties()).contentLength)!==null&&n!==void 0?n:-1;if(a<0)v("Unable to determine content length, downloading file with http-client..."),yield wR(t,e);else{let c=Math.min(134217728,LAe.constants.MAX_LENGTH),l=new bR(a),u=$c.openSync(e,"w");try{l.startDisplayTimer();let d=new AbortController,f=d.signal;for(;!l.isDone();){let h=l.segmentOffset+l.segmentSize,p=Math.min(c,a-h);l.nextSegment(p);let m=yield GAe(r.segmentTimeoutInMs||36e5,i.downloadToBuffer(h,p,{abortSignal:f,concurrency:r.downloadConcurrency,onProgress:l.onProgress()}));if(m==="timeout")throw d.abort(),new Error("Aborting cache download as the download time exceeded the timeout.");Buffer.isBuffer(m)&&$c.writeFileSync(u,m)}}finally{l.stopDisplayTimer(),$c.closeSync(u)}}})}o(qAe,"downloadCacheStorageSDK");var GAe=o((t,e)=>Lo(void 0,void 0,void 0,function*(){let r,n=new Promise(i=>{r=setTimeout(()=>i("timeout"),t)});return Promise.race([e,n]).then(i=>(clearTimeout(r),i))}),"promiseWithTimeout");function Z5(t){let e={useAzureSdk:!1,uploadConcurrency:4,uploadChunkSize:33554432};return t&&(typeof t.useAzureSdk=="boolean"&&(e.useAzureSdk=t.useAzureSdk),typeof t.uploadConcurrency=="number"&&(e.uploadConcurrency=t.uploadConcurrency),typeof t.uploadChunkSize=="number"&&(e.uploadChunkSize=t.uploadChunkSize)),e.uploadConcurrency=isNaN(Number(process.env.CACHE_UPLOAD_CONCURRENCY))?e.uploadConcurrency:Math.min(32,Number(process.env.CACHE_UPLOAD_CONCURRENCY)),e.uploadChunkSize=isNaN(Number(process.env.CACHE_UPLOAD_CHUNK_SIZE))?e.uploadChunkSize:Math.min(128*1024*1024,Number(process.env.CACHE_UPLOAD_CHUNK_SIZE)*1024*1024),v(`Use Azure SDK: ${e.useAzureSdk}`),v(`Upload concurrency: ${e.uploadConcurrency}`),v(`Upload chunk size: ${e.uploadChunkSize}`),e}o(Z5,"getUploadOptions");function HAe(t){let e={useAzureSdk:!1,concurrentBlobDownloads:!0,downloadConcurrency:8,timeoutInMs:3e4,segmentTimeoutInMs:6e5,lookupOnly:!1};t&&(typeof t.useAzureSdk=="boolean"&&(e.useAzureSdk=t.useAzureSdk),typeof t.concurrentBlobDownloads=="boolean"&&(e.concurrentBlobDownloads=t.concurrentBlobDownloads),typeof t.downloadConcurrency=="number"&&(e.downloadConcurrency=t.downloadConcurrency),typeof t.timeoutInMs=="number"&&(e.timeoutInMs=t.timeoutInMs),typeof t.segmentTimeoutInMs=="number"&&(e.segmentTimeoutInMs=t.segmentTimeoutInMs),typeof t.lookupOnly=="boolean"&&(e.lookupOnly=t.lookupOnly));let r=process.env.SEGMENT_DOWNLOAD_TIMEOUT_MINS;return r&&!isNaN(Number(r))&&isFinite(Number(r))&&(e.segmentTimeoutInMs=Number(r)*60*1e3),v(`Use Azure SDK: ${e.useAzureSdk}`),v(`Download concurrency: ${e.downloadConcurrency}`),v(`Request timeout (ms): ${e.timeoutInMs}`),v(`Cache segment download timeout mins env var: ${process.env.SEGMENT_DOWNLOAD_TIMEOUT_MINS}`),v(`Segment download timeout (ms): ${e.segmentTimeoutInMs}`),v(`Lookup only: ${e.lookupOnly}`),e}o(HAe,"getDownloadOptions");function ez(){let e=new URL(process.env.GITHUB_SERVER_URL||"https://github.com").hostname.trimEnd().toUpperCase(),r=e==="GITHUB.COM",n=e.endsWith(".GHE.COM"),i=e.endsWith(".LOCALHOST");return!r&&!n&&!i}o(ez,"isGhes");function G0(){return ez()?"v1":process.env.ACTIONS_CACHE_SERVICE_V2?"v2":"v1"}o(G0,"getCacheServiceVersion");var zAe=["none","read","write","write-only"];function tz(){return(process.env.ACTIONS_CACHE_MODE||"").trim().toLowerCase()}o(tz,"getCacheMode");function VAe(t){return zAe.includes(t)?t==="read"||t==="write":!0}o(VAe,"isCacheReadable");function $Ae(t){return zAe.includes(t)?t==="write"||t==="write-only":!0}o($Ae,"isCacheWritable");function IR(){let t=G0();switch(t){case"v1":return process.env.ACTIONS_CACHE_URL||process.env.ACTIONS_RESULTS_URL||"";case"v2":return process.env.ACTIONS_RESULTS_URL||"";default:throw new Error(`Unsupported cache service version: ${t}`)}}o(IR,"getCacheServiceURL");var YAe=T(JAe(),1);function SR(){return`@actions/cache-${YAe.version}`}o(SR,"getUserAgentString");var ds=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function H0(t){let e=IR();if(!e)throw new Error("Cache Service Url not found, unable to restore cache.");let r=`${e}_apis/artifactcache/${t}`;return v(`Resource Url: ${r}`),r}o(H0,"getCacheApiUrl");function Got(t,e){return`${t};api-version=${e}`}o(Got,"createAcceptHeader");function Hot(){return{headers:{Accept:Got("application/json","6.0-preview.1")}}}o(Hot,"getRequestOptions");function rz(){let t=process.env.ACTIONS_RUNTIME_TOKEN||"",e=new Gm(t);return new cu(SR(),[e],Hot())}o(rz,"createHttpClient");function ZAe(t,e,r){return ds(this,void 0,void 0,function*(){var n;let i=rz(),s=qm(e,r?.compressionMethod,r?.enableCrossOsArchive),a=`cache?keys=${encodeURIComponent(t.join(","))}&version=${s}`,c=yield q0("getCacheEntry",()=>ds(this,void 0,void 0,function*(){return i.getJson(H0(a))}));if(c.statusCode===204)return Sh()&&(yield zot(t[0],i,s)),null;if(!CR(c.statusCode)){let d=(n=c.error)===null||n===void 0?void 0:n.message;throw d?.includes(Vv)?new Error(d):new Error(`Cache service responded with ${c.statusCode}`)}let l=c.result,u=l?.archiveLocation;if(!u)throw new Error("Cache not found.");return Os(u),v("Cache Result:"),v(JSON.stringify(l)),l})}o(ZAe,"getCacheEntry");function zot(t,e,r){return ds(this,void 0,void 0,function*(){let n=`caches?key=${encodeURIComponent(t)}`,i=yield q0("listCache",()=>ds(this,void 0,void 0,function*(){return e.getJson(H0(n))}));if(i.statusCode===200){let s=i.result,a=s?.totalCount;if(a&&a>0){v(`No matching cache found for cache key '${t}', version '${r} and scope ${process.env.GITHUB_REF}. There exist one or more cache(s) with similar key but they have different version or scope. See more info on cache matching here: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key +Other caches with similar key:`);for(let c of s?.artifactCaches||[])v(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}o(zot,"printCachesListForDiagnostics");function nz(t,e,r){return ds(this,void 0,void 0,function*(){let n=new XAe.URL(t),i=HAe(r);n.hostname.endsWith(".blob.core.windows.net")?i.useAzureSdk?yield qAe(t,e,i):i.concurrentBlobDownloads?yield UAe(t,e,i):yield wR(t,e):yield wR(t,e)})}o(nz,"downloadCache");function eme(t,e,r){return ds(this,void 0,void 0,function*(){let n=rz(),i=qm(e,r?.compressionMethod,r?.enableCrossOsArchive),s={key:t,version:i,cacheSize:r?.cacheSize};return yield q0("reserveCache",()=>ds(this,void 0,void 0,function*(){return n.postJson(H0("caches"),s)}))})}o(eme,"reserveCache");function KAe(t,e){return`bytes ${t}-${e}/*`}o(KAe,"getContentRange");function Vot(t,e,r,n,i){return ds(this,void 0,void 0,function*(){v(`Uploading chunk of size ${i-n+1} bytes at offset ${n} with content range: ${KAe(n,i)}`);let s={"Content-Type":"application/octet-stream","Content-Range":KAe(n,i)},a=yield gg(`uploadChunk (start: ${n}, end: ${i})`,()=>ds(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),s)}));if(!CR(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(Vot,"uploadChunk");function $ot(t,e,r,n){return ds(this,void 0,void 0,function*(){let i=gc(r),s=H0(`caches/${e.toString()}`),a=yg.openSync(r,"r"),c=Z5(n),l=BU("uploadConcurrency",c.uploadConcurrency),u=BU("uploadChunkSize",c.uploadChunkSize),d=[...new Array(l).keys()];v("Awaiting all uploads");let f=0;try{yield Promise.all(d.map(()=>ds(this,void 0,void 0,function*(){for(;fyg.createReadStream(r,{fd:a,start:p,end:m,autoClose:!1}).on("error",A=>{throw new Error(`Cache upload failed because file read failed with ${A.message}`)}),p,m)}})))}finally{yg.closeSync(a)}})}o($ot,"uploadFile");function jot(t,e,r){return ds(this,void 0,void 0,function*(){let n={size:r};return yield q0("commitCache",()=>ds(this,void 0,void 0,function*(){return t.postJson(H0(`caches/${e.toString()}`),n)}))})}o(jot,"commitCache");function iz(t,e,r,n){return ds(this,void 0,void 0,function*(){if(Z5(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield PAe(r,e,n)}else{let s=rz();v("Upload cache"),yield $ot(s,t,e,n),v("Commiting cache");let a=gc(e);D(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield jot(s,t,a);if(!CR(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);D("Cache saved successfully")}})}o(iz,"saveCache");var jme=T(Jz(),1),zr=T(nt(),1),Ks=T(nt(),1),ap=T(nt(),1),cp=T(nt(),1),lp=T(nt(),1);var Zz=T(nt(),1),eV=T(nt(),1),zme=T(nt(),1),Vme=T(nt(),1),$me=T(nt(),1);var Yz=T(nt(),1),Kz=T(nt(),1),qme=T(nt(),1),Gme=T(nt(),1),Hme=T(nt(),1);var Xz=class extends Hme.MessageType{static{o(this,"CacheScope$Type")}constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,Gme.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,qme.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.poslT,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,Vme.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,zme.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.posKc,"T")},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"version",kind:"scalar",T:9}])}create(e){let r={key:"",version:""};return globalThis.Object.defineProperty(r,cp.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,ap.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.posKc,"T")},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"size_bytes",kind:"scalar",T:3},{no:4,name:"version",kind:"scalar",T:9}])}create(e){let r={key:"",sizeBytes:"0",version:""};return globalThis.Object.defineProperty(r,cp.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,ap.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.posKc,"T")},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"restore_keys",kind:"scalar",repeat:2,T:9},{no:4,name:"version",kind:"scalar",T:9}])}create(e){let r={key:"",restoreKeys:[],version:""};return globalThis.Object.defineProperty(r,cp.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,ap.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.poslV.fromJson(i,{ignoreUnknownFields:!0}))}FinalizeCacheEntryUpload(e){let r=uV.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.CacheService","FinalizeCacheEntryUpload","application/json",r).then(i=>dV.fromJson(i,{ignoreUnknownFields:!0}))}GetCacheEntryDownloadURL(e){let r=fV.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.CacheService","GetCacheEntryDownloadURL","application/json",r).then(i=>hV.fromJson(i,{ignoreUnknownFields:!0}))}};function Wme(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Os(r),Os(encodeURIComponent(r)))}catch(e){v(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}o(Wme,"maskSigUrl");function Jme(t){if(typeof t!="object"||t===null){v("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&Wme(t.signed_upload_url),"signed_download_url"in t&&typeof t.signed_download_url=="string"&&Wme(t.signed_download_url)}o(Jme,"maskSecretUrls");var dT=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},pV=class{static{o(this,"CacheServiceClient")}constructor(e,r,n,i){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let s=bue();this.baseUrl=IR(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),i&&(this.retryMultiplier=i),this.httpClient=new cu(e,[new Gm(s)])}request(e,r,n,i){return dT(this,void 0,void 0,function*(){let s=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;v(`[Request] ${r} ${s}`);let a={"Content-Type":n};try{let{body:c}=yield this.retryableRequest(()=>dT(this,void 0,void 0,function*(){return this.httpClient.post(s,JSON.stringify(i),a)}));return c}catch(c){throw new Error(`Failed to ${r}: ${c.message}`)}})}retryableRequest(e){return dT(this,void 0,void 0,function*(){let r=0,n="",i="";for(;r0&&Ge(`You've hit a rate limit, your rate limit will reset in ${f} seconds`)}throw new U0(`Rate limited: ${n}`)}}catch(c){if(c instanceof SyntaxError&&v(`Raw Body: ${i}`),c instanceof rp||c instanceof U0)throw c;if(mg.isNetworkErrorCode(c?.code))throw new mg(c?.code);s=!0,n=c.message}if(!s)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let a=this.getExponentialRetryTimeMilliseconds(r);D(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${a} ms...`),yield this.sleep(a),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[Br.BadGateway,Br.GatewayTimeout,Br.InternalServerError,Br.ServiceUnavailable].includes(e):!1}sleep(e){return dT(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function AV(t){let e=new pV(SR(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new uT(e)}o(AV,"internalCacheTwirpClient");var fT=require("fs"),ps=T(require("path"),1);var Xc=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},$d=process.platform==="win32";function nlt(){return Xc(this,void 0,void 0,function*(){switch(process.platform){case"win32":{let t=yield Cue(),e=mue;if(t)return{path:t,type:Us.GNU};if((0,fT.existsSync)(e))return{path:e,type:Us.BSD};break}case"darwin":{let t=yield Gn("gtar",!1);return t?{path:t,type:Us.GNU}:{path:yield Gn("tar",!0),type:Us.BSD}}default:break}return{path:yield Gn("tar",!0),type:Us.GNU}})}o(nlt,"getTarPath");function ilt(t,e,r){return Xc(this,arguments,void 0,function*(n,i,s,a=""){let c=[`"${n.path}"`],l=_d(i),u="cache.tar",d=Kme(),f=n.type===Us.BSD&&i!==Ri.Gzip&&$d;switch(s){case"create":c.push("--posix","-cf",f?u:l.replace(new RegExp(`\\${ps.sep}`,"g"),"/"),"--exclude",f?u:l.replace(new RegExp(`\\${ps.sep}`,"g"),"/"),"-P","-C",d.replace(new RegExp(`\\${ps.sep}`,"g"),"/"),"--files-from",IU);break;case"extract":c.push("-xf",f?u:a.replace(new RegExp(`\\${ps.sep}`,"g"),"/"),"-P","-C",f?mV(d):d.replace(new RegExp(`\\${ps.sep}`,"g"),"/"));break;case"list":c.push("-tf",f?u:a.replace(new RegExp(`\\${ps.sep}`,"g"),"/"),"-P");break}if(n.type===Us.GNU)switch(process.platform){case"win32":c.push("--force-local");break;case"darwin":c.push("--delay-directory-restore");break}return c})}o(ilt,"getTarArgs");function Yme(t,e){return Xc(this,arguments,void 0,function*(r,n,i=""){let s,a=yield nlt(),c=yield ilt(a,r,n,i),l=n!=="create"?yield slt(a,r,i):yield olt(a,r),u=a.type===Us.BSD&&r!==Ri.Gzip&&$d;return u&&n!=="create"?s=[[...l].join(" "),[...c].join(" ")]:s=[[...c].join(" "),[...l].join(" ")],{commands:u?s:[s.join(" ")],requiresTempDirectory:u&&n!=="create"}})}o(Yme,"getCommands");function Kme(){var t;return(t=process.env.GITHUB_WORKSPACE)!==null&&t!==void 0?t:process.cwd()}o(Kme,"getWorkingDirectory");function mV(t){return`"${ps.resolve(t).replace(new RegExp(`\\${ps.sep}`,"g"),"/")}"`}o(mV,"quoteAbsolutePath");function slt(t,e,r){return Xc(this,void 0,void 0,function*(){let n=t.type===Us.BSD&&e!==Ri.Gzip&&$d;switch(e){case Ri.Zstd:return n?["zstd -d --long=30 --force -o",Mb,mV(r)]:["--use-compress-program",$d?'"zstd -d --long=30"':"unzstd --long=30"];case Ri.ZstdWithoutLong:return n?["zstd -d --force -o",Mb,mV(r)]:["--use-compress-program",$d?'"zstd -d"':"unzstd"];default:return["-z"]}})}o(slt,"getDecompressionProgram");function olt(t,e){return Xc(this,void 0,void 0,function*(){let r=_d(e),n=t.type===Us.BSD&&e!==Ri.Gzip&&$d;switch(e){case Ri.Zstd:return n?["zstd -T0 --long=30 --force -o",r.replace(new RegExp(`\\${ps.sep}`,"g"),"/"),Mb]:["--use-compress-program",$d?'"zstd -T0 --long=30"':"zstdmt --long=30"];case Ri.ZstdWithoutLong:return n?["zstd -T0 --force -o",r.replace(new RegExp(`\\${ps.sep}`,"g"),"/"),Mb]:["--use-compress-program",$d?'"zstd -T0"':"zstdmt"];default:return["-z"]}})}o(olt,"getCompressionProgram");function Xme(t,e){return Xc(this,void 0,void 0,function*(){for(let r of t)try{yield Fs(r,void 0,{cwd:e,env:Object.assign(Object.assign({},process.env),{MSYS:"winsymlinks:nativestrict"})})}catch(n){throw new Error(`${r.split(" ")[0]} failed with error: ${n?.message}`)}})}o(Xme,"execCommands");function Zme(t,e,r){return Xc(this,void 0,void 0,function*(){let{commands:n,requiresTempDirectory:i}=yield Yme(e,r,t),s=i?yield Rh():void 0;try{yield Xme(n,s)}finally{if(s)try{yield _m(s)}catch(a){v(`Failed to delete temporary tar directory: ${a}`)}}})}o(Zme,"execReadCommands");function iw(t,e){return Xc(this,void 0,void 0,function*(){yield Zme(t,e,"list")})}o(iw,"listTar");function gV(t,e){return Xc(this,void 0,void 0,function*(){let r=Kme();yield nu(r),yield Zme(t,e,"extract")})}o(gV,"extractTar");function yV(t,e,r){return Xc(this,void 0,void 0,function*(){(0,fT.writeFileSync)(ps.join(t,IU),e.join(` +`));let{commands:n}=yield Yme(r,"create");yield Xme(n,t)})}o(yV,"createTar");var kg=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},Fa=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},up=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},EV="cache write denied:",hT=class t extends up{static{o(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},ege=Vv,pT=class t extends Error{static{o(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},AT=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function tge(t){if(!t||t.length===0)throw new Fa("Path Validation Error: At least one directory or file path is required")}o(tge,"checkPaths");function CV(t){if(t.length>512)throw new Fa(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Fa(`Key Validation Error: ${t} cannot contain commas.`)}o(CV,"checkKey");function bV(){return G0()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(bV,"isFeatureAvailable");function rge(t,e,r,n){return kg(this,arguments,void 0,function*(i,s,a,c,l=!1){let u=G0();v(`Cache service version: ${u}`),tge(i);let d=tz();if(!VAe(d)){D(`Cache restore skipped: the effective cache-mode '${d}' does not permit reads.`),v(`Skipped restore for paths [${i.join(", ")}] with primary key '${s}'.`);return}return u==="v2"?yield clt(i,s,a,c,l):yield alt(i,s,a,c,l)})}o(rge,"restoreCache");function alt(t,e,r,n){return kg(this,arguments,void 0,function*(i,s,a,c,l=!1){var u;a=a||[];let d=[s,...a];if(v("Resolved Keys:"),v(JSON.stringify(d)),d.length>10)throw new Fa("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of d)CV(p);let f=yield qb(),h="";try{let p;try{p=yield ZAe(d,i,{compressionMethod:f,enableCrossOsArchive:l})}catch(A){let E=(u=A?.message)!==null&&u!==void 0?u:"";throw E.includes(ege)?new pT(E):A}if(!p?.archiveLocation)return;if(c?.lookupOnly)return D("Lookup only - skipping download"),p.cacheKey;h=sw.join(yield Rh(),_d(f)),v(`Archive Path: ${h}`),yield nz(p.archiveLocation,h,c),Sh()&&(yield iw(h,f));let m=gc(h);return D(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),yield gV(h,f),D("Cache restored successfully"),p.cacheKey}catch(p){let m=p;if(m.name===Fa.name)throw p;m instanceof yc&&typeof m.statusCode=="number"&&m.statusCode>=500?Sa(`Failed to restore: ${p.message}`):Ge(`Failed to restore: ${p.message}`)}finally{try{yield Ub(h)}catch(p){v(`Failed to delete archive: ${p}`)}}})}o(alt,"restoreCacheV1");function clt(t,e,r,n){return kg(this,arguments,void 0,function*(i,s,a,c,l=!1){var u;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let d=[s,...a];if(v("Resolved Keys:"),v(JSON.stringify(d)),d.length>10)throw new Fa("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of d)CV(h);let f="";try{let h=AV(),p=yield qb(),m={key:s,restoreKeys:a,version:qm(i,p,l)},A;try{A=yield h.GetCacheEntryDownloadURL(m)}catch(C){let w=(u=C?.message)!==null&&u!==void 0?u:"";throw w.includes(ege)?new pT(w):C}if(!A.ok){v(`Cache not found for version ${m.version} of keys: ${d.join(", ")}`);return}if(m.key!==A.matchedKey?D(`Cache hit for restore-key: ${A.matchedKey}`):D(`Cache hit for: ${A.matchedKey}`),c?.lookupOnly)return D("Lookup only - skipping download"),A.matchedKey;f=sw.join(yield Rh(),_d(p)),v(`Archive path: ${f}`),v(`Starting download of archive to: ${f}`),yield nz(A.signedDownloadUrl,f,c);let y=gc(f);return D(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),Sh()&&(yield iw(f,p)),yield gV(f,p),D("Cache restored successfully"),A.matchedKey}catch(h){let p=h;if(p.name===Fa.name)throw h;p instanceof yc&&typeof p.statusCode=="number"&&p.statusCode>=500?Sa(`Failed to restore: ${h.message}`):Ge(`Failed to restore: ${h.message}`)}finally{try{f&&(yield Ub(f))}catch(h){v(`Failed to delete archive: ${h}`)}}})}o(clt,"restoreCacheV2");function wV(t,e,r){return kg(this,arguments,void 0,function*(n,i,s,a=!1){let c=G0();v(`Cache service version: ${c}`),tge(n),CV(i);let l=tz();return $Ae(l)?c==="v2"?yield ult(n,i,s,a):yield llt(n,i,s,a):(D(`Cache save skipped: the effective cache-mode '${l}' does not permit writes.`),v(`Skipped save for paths [${n.join(", ")}] with key '${i}'.`),-1)})}o(wV,"saveCache");function llt(t,e,r){return kg(this,arguments,void 0,function*(n,i,s,a=!1){var c,l,u,d,f,h;let p=yield qb(),m=-1,A=yield SU(n);if(v("Cache Paths:"),v(`${JSON.stringify(A)}`),A.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let E=yield Rh(),y=sw.join(E,_d(p));v(`Archive Path: ${y}`);try{yield yV(E,A,p),Sh()&&(yield iw(y,p));let C=10*1024*1024*1024,w=gc(y);if(v(`File Size: ${w}`),w>C&&!ez())throw new Error(`Cache size of ~${Math.round(w/(1024*1024))} MB (${w} B) is over the 10GB limit, not saving cache.`);v("Reserving Cache");let B=yield eme(i,n,{compressionMethod:p,enableCrossOsArchive:a,cacheSize:w});if(!((c=B?.result)===null||c===void 0)&&c.cacheId)m=(l=B?.result)===null||l===void 0?void 0:l.cacheId;else{if(B?.statusCode===400)throw new Error((d=(u=B?.error)===null||u===void 0?void 0:u.message)!==null&&d!==void 0?d:`Cache size of ~${Math.round(w/(1024*1024))} MB (${w} B) is over the data cap limit, not saving cache.`);{let P=(f=B?.error)===null||f===void 0?void 0:f.message;throw P?.startsWith(EV)?new hT(`Unable to reserve cache with key ${i}. More details: ${P}`):new up(`Unable to reserve cache with key ${i}, another job may be creating this cache. More details: ${(h=B?.error)===null||h===void 0?void 0:h.message}`)}}v(`Saving Cache (ID: ${m})`),yield iz(m,y,"",s)}catch(C){let w=C;if(w.name===Fa.name)throw C;w.name===up.name?D(`Failed to save: ${w.message}`):w instanceof yc&&typeof w.statusCode=="number"&&w.statusCode>=500?Sa(`Failed to save: ${w.message}`):Ge(`Failed to save: ${w.message}`)}finally{try{yield Ub(y)}catch(C){v(`Failed to delete archive: ${C}`)}}return m})}o(llt,"saveCacheV1");function ult(t,e,r){return kg(this,arguments,void 0,function*(n,i,s,a=!1){var c;s=Object.assign(Object.assign({},s),{uploadChunkSize:64*1024*1024,uploadConcurrency:8,useAzureSdk:!0});let l=yield qb(),u=AV(),d=-1,f=yield SU(n);if(v("Cache Paths:"),v(`${JSON.stringify(f)}`),f.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let h=yield Rh(),p=sw.join(h,_d(l));v(`Archive Path: ${p}`);try{yield yV(h,f,l),Sh()&&(yield iw(p,l));let m=gc(p);v(`File Size: ${m}`),s.archiveSizeBytes=m,v("Reserving Cache");let A=qm(n,l,a),E={key:i,version:A},y;try{let B=yield u.CreateCacheEntry(E);if(!B.ok)throw B.message&&!B.message.startsWith(EV)&&Ge(`Cache reservation failed: ${B.message}`),new Error(B.message||"Response was not ok");y=B.signedUploadUrl}catch(B){v(`Failed to reserve cache: ${B}`);let P=(c=B?.message)!==null&&c!==void 0?c:"";throw P.startsWith(EV)?new hT(`Unable to reserve cache with key ${i}. More details: ${P}`):new up(`Unable to reserve cache with key ${i}, another job may be creating this cache.`)}v(`Attempting to upload cache located at: ${p}`),yield iz(d,p,y,s);let C={key:i,version:A,sizeBytes:`${m}`},w=yield u.FinalizeCacheEntryUpload(C);if(v(`FinalizeCacheEntryUploadResponse: ${w.ok}`),!w.ok)throw w.message?new AT(w.message):new Error(`Unable to finalize cache with key ${i}, another job may be finalizing this cache.`);d=parseInt(w.entryId)}catch(m){let A=m;if(A.name===Fa.name)throw m;A.name===up.name?D(`Failed to save: ${A.message}`):A.name===AT.name?Ge(A.message):A instanceof yc&&typeof A.statusCode=="number"&&A.statusCode>=500?Sa(`Failed to save: ${A.message}`):Ge(`Failed to save: ${A.message}`)}finally{try{yield Ub(p)}catch(m){v(`Failed to delete archive: ${m}`)}}return d})}o(ult,"saveCacheV2");var nge=T(require("util"),1);var Dn=class t{static{o(this,"Cache")}opts;ghaCacheKey;ghaNoCache;cacheDir;cachePath;static POST_CACHE_KEY="postCache";constructor(e){this.opts=e,this.ghaCacheKey=nge.format("%s-%s-%s",this.opts.htcName,this.opts.htcVersion,this.platform()),this.ghaNoCache=this.opts.ghaNoCache,this.cacheDir=SV.default.join(this.opts.baseCacheDir,this.opts.htcVersion,this.platform()),this.cachePath=SV.default.join(this.cacheDir,this.opts.cacheFile),ow.default.existsSync(this.cacheDir)||ow.default.mkdirSync(this.cacheDir,{recursive:!0})}async save(e,r){v(`Cache.save ${e}`);let n=this.copyToCache(e),i=await this.cacheToHostedToolCache();if(i&&v(`Cache.save cached to hosted tool cache ${i}`),!this.ghaNoCache&&bV())if(r)try{v(`Cache.save caching ${this.ghaCacheKey} to GitHub Actions cache`),await wV([this.cacheDir],this.ghaCacheKey)}catch(s){Ge(`Failed to save cache: ${s}`)}else v(`Cache.save sending ${this.ghaCacheKey} to post state`),Eo(t.POST_CACHE_KEY,JSON.stringify({dir:this.cacheDir,key:this.ghaCacheKey}));return n}async find(){try{let e=$ae(this.opts.htcName,this.opts.htcVersion,this.platform());if(e)return D(`Restored from hosted tool cache ${e}`),this.copyToCache(`${e}/${this.opts.cacheFile}`);if(!this.ghaNoCache&&bV()){if(v("GitHub Actions cache feature available"),await rge([this.cacheDir],this.ghaCacheKey)){if(D(`Restored ${this.ghaCacheKey} from GitHub Actions cache`),!ow.default.existsSync(this.cachePath))return Ge(`Cache file ${this.cachePath} does not exist`),"";let r=await this.cacheToHostedToolCache();return r&&D(`Cached to hosted tool cache ${r}`),this.cachePath}}else this.ghaNoCache?D("GitHub Actions cache disabled"):D("GitHub Actions cache feature not available")}catch(e){Ge(`Failed to restore cache: ${e}`)}return""}static async post(){let e=Gse(t.POST_CACHE_KEY);if(!e)return D("State not set"),Promise.resolve(void 0);let r;try{r=JSON.parse(e)}catch(n){throw new Error(`Failed to parse cache post state: ${n}`)}if(!r.dir||!r.key)throw new Error(`Invalid cache post state: ${e}`);try{D(`Caching ${r.key} to GitHub Actions cache`),await wV([r.dir],r.key)}catch(n){Ge(`Failed to save cache: ${n}`)}return r}copyToCache(e){return D(`Copying ${e} to ${this.cachePath}`),ow.default.copyFileSync(e,this.cachePath),this.cachePath}async cacheToHostedToolCache(){try{return await Vae(this.cacheDir,this.opts.htcName,this.opts.htcVersion,this.platform())}catch(e){D(`Failed to cache to hosted tool cache: ${e}`)}return""}platform(){let e=process.config.variables.arm_version;return`${IV.default.platform()}-${IV.default.arch()}${e?"v"+e:""}`}};var ige=!!process.env.STATE_isPost;ige||Eo("isPost","true");async function sge(t,e){if(ige)e&&await e(),await Sr("Post cache",async()=>{await Dn.post()});else try{await t()}catch(r){uv(r.message)}}o(sge,"run");var Jo=T(require("fs"),1),gs=T(require("path"),1),B0e=require("util");var x0e=T(Ma(),1);var NT=class t{static{o(this,"Git")}static protoRegexp=new RegExp("^[a-zA-Z0-9]+://");static supportedProtos={http:{},https:{},ssh:{},git:{}};static parseURL(e){let r=e.match(t.protoRegexp);if(r&&r.length>0){let n=r[0].toLowerCase();if(n=n.slice(0,n.lastIndexOf("://")),!(n in t.supportedProtos))throw new Error(`Invalid protocol: ${n}`);return t.fromURL(new URL(e))}throw new Error("Unknown protocol")}static fromURL(e){let r=new URL(e.toString());r.hash="";let n;return(e.username||e.password)&&(n={username:e.username,password:e.password,passwordSet:e.password!==""}),{scheme:e.protocol.slice(0,-1),user:n,host:`${e.hostname}${e.port?":"+e.port:""}`,path:e.pathname,fragment:t.splitGitFragment(e.hash),remote:r.toString()}}static splitGitFragment(e){if(e==="")return;let[r,n]=e.slice(1).split(":");return{ref:r,subdir:n}}static parseRef(e){let r={},n;if(e.startsWith("./")||e.startsWith("../"))throw new Error("Invalid argument");if(e.startsWith("github.com/"))r.indistinguishableFromLocal=!0,n=t.fromURL(new URL("https://"+e));else if(n=t.parseURL(e),["http","git"].includes(n.scheme)&&(r.unencryptedTCP=!0),["http","https"].includes(n.scheme)&&!n.path.endsWith(".git"))throw new Error("Invalid argument");r.remote=n.remote,r.indistinguishableFromLocal&&(r.remote=r.remote.split("://")[1]),n.fragment&&(r.commit=n.fragment.ref,r.subDir=n.fragment.subdir);let i=r.remote.split("/");return r.shortName=i[i.length-1].replace(".git",""),r}};var Y4=T(require("fs"),1),Ibe=T(require("os"),1),Iw=T(require("path"),1),Sbe=require("util"),Bbe=T(rEe(),1);var YV=T(require("fs"),1),bEe=T(require("os"),1),wEe=T(require("path"),1),IEe=T(CEe(),1);var ht=class t{static{o(this,"Context")}static _tmpDir=YV.default.mkdtempSync(wEe.default.join(t.ensureDirExists(process.env.RUNNER_TEMP||bEe.default.tmpdir()),"docker-actions-toolkit-"));static ensureDirExists(e){return YV.default.mkdirSync(e,{recursive:!0}),e}static tmpDir(){return t._tmpDir}static tmpName(e){return IEe.tmpNameSync(e)}};var Ie=class{static{o(this,"Exec")}static async exec(e,r,n){return v(`Exec.exec: ${e} ${r?.join(" ")}`),Fs(e,r,n)}static async getExecOutput(e,r,n){return v(`Exec.getExecOutput: ${e} ${r?.join(" ")}`),hb(e,r,n)}};var J4=T(require("crypto"),1),bbe=T(require("fs"),1),ww=T(require("path"),1),wbe=T($4(),1);var ct=class t extends Error{static{o(this,"CsvError")}constructor(e,r,n,...i){Array.isArray(r)&&(r=r.join(" ").trim()),super(r),Error.captureStackTrace!==void 0&&Error.captureStackTrace(this,t),this.code=e;for(let s of i)for(let a in s){let c=s[a];this[a]=Buffer.isBuffer(c)?c.toString(n.encoding):c==null?c:JSON.parse(JSON.stringify(c))}}};var bw=o(function(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)},"is_object");var A2=o(function(t){let e=[];for(let r=0,n=t.length;r=this.size&&(this.resize(),r>=this.size))throw Error("INVALID_BUFFER_STATE");let n=this.buf;this.buf=Buffer.allocUnsafe(this.size),e.copy(this.buf,0),n.copy(this.buf,e.length),this.length+=e.length}else{let r=this.length++;r===this.size&&this.resize();let n=this.clone();this.buf[0]=e,n.copy(this.buf,1,0,r)}}append(e){let r=this.length++;r===this.size&&this.resize(),this.buf[r]=e}clone(){return Buffer.from(this.buf.slice(0,this.length))}resize(){let e=this.length;this.size=this.size*2;let r=Buffer.allocUnsafe(this.size);this.buf.copy(r,0,0,e),this.buf=r}toString(e){return e?this.buf.toString(e,0,this.length):Uint8Array.prototype.slice.call(this.buf.slice(0,this.length))}toJSON(){return this.toString("utf8")}reset(){this.length=0}},W4=j4;var gbe=o(function(t){let e=[32,9,10,13,12,11,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288,65279].reduce((n,i)=>{let s=Buffer.from(String.fromCharCode(i),t.encoding);return i!==63&&s.length===1&&s[0]===63||n.push(s),n},[]),r=new Uint8Array(256);for(let n of e)r[n[0]]=1;return{bomSkipped:!1,bufBytesStart:0,castField:t.cast_function,commenting:!1,delimiterBufPrevious:void 0,delimiterDiscovered:!1,error:void 0,enabled:t.from_line===1,escaping:!1,escapeIsQuote:Buffer.isBuffer(t.escape)&&Buffer.isBuffer(t.quote)&&Buffer.compare(t.escape,t.quote)===0,expectedRecordLength:Array.isArray(t.columns)?t.columns.length:void 0,field:new W4(20),firstLineToHeaders:t.cast_first_line_to_header,needMoreDataSize:Math.max(t.comment!==null?t.comment.length:0,...t.delimiter?t.delimiter.map(n=>n.length):[],t.delimiter_auto?1:0,t.quote!==null?t.quote.length:0,...e.map(n=>n.length)),previousBuf:void 0,quoting:!1,stop:!1,rawBuffer:new W4(100),record:[],recordHasError:!1,record_length:0,recordDelimiterMaxLength:t.record_delimiter.length===0?0:Math.max(...t.record_delimiter.map(n=>n.length)),trimChars:[Buffer.from(" ",t.encoding)[0],Buffer.from(" ",t.encoding)[0]],wasQuoting:!1,wasRowDelimiter:!1,timchars:e,timcharFirstBytes:r}},"init_state");var ybe=o(function(t){return t.replace(/([A-Z])/g,function(e,r){return"_"+r.toLowerCase()})},"underscore");var Kg=o(function(t){let e={};for(let n in t)e[ybe(n)]=t[n];if(e.encoding===void 0||e.encoding===!0)e.encoding="utf8";else if(e.encoding===null||e.encoding===!1)e.encoding=null;else if(typeof e.encoding!="string"&&e.encoding!==null)throw new ct("CSV_INVALID_OPTION_ENCODING",["Invalid option encoding:","encoding must be a string or null to return a buffer,",`got ${JSON.stringify(e.encoding)}`],e);if(e.bom===void 0||e.bom===null||e.bom===!1)e.bom=!1;else if(e.bom!==!0)throw new ct("CSV_INVALID_OPTION_BOM",["Invalid option bom:","bom must be true,",`got ${JSON.stringify(e.bom)}`],e);if(e.cast_function=null,e.cast===void 0||e.cast===null||e.cast===!1||e.cast==="")e.cast=void 0;else if(typeof e.cast=="function")e.cast_function=e.cast,e.cast=!0;else if(e.cast!==!0)throw new ct("CSV_INVALID_OPTION_CAST",["Invalid option cast:","cast must be true or a function,",`got ${JSON.stringify(e.cast)}`],e);if(e.cast_date===void 0||e.cast_date===null||e.cast_date===!1||e.cast_date==="")e.cast_date=!1;else if(e.cast_date===!0)e.cast_date=function(n){let i=Date.parse(n);return isNaN(i)?n:new Date(i)};else if(typeof e.cast_date!="function")throw new ct("CSV_INVALID_OPTION_CAST_DATE",["Invalid option cast_date:","cast_date must be true or a function,",`got ${JSON.stringify(e.cast_date)}`],e);if(e.cast_first_line_to_header=void 0,e.columns===!0)e.cast_first_line_to_header=void 0;else if(typeof e.columns=="function")e.cast_first_line_to_header=e.columns,e.columns=!0;else if(Array.isArray(e.columns))e.columns=A2(e.columns);else if(e.columns===void 0||e.columns===null||e.columns===!1)e.columns=!1;else throw new ct("CSV_INVALID_OPTION_COLUMNS",["Invalid option columns:","expect an array, a function or true,",`got ${JSON.stringify(e.columns)}`],e);if(e.group_columns_by_name===void 0||e.group_columns_by_name===null||e.group_columns_by_name===!1)e.group_columns_by_name=!1;else{if(e.group_columns_by_name!==!0)throw new ct("CSV_INVALID_OPTION_GROUP_COLUMNS_BY_NAME",["Invalid option group_columns_by_name:","expect an boolean,",`got ${JSON.stringify(e.group_columns_by_name)}`],e);if(e.columns===!1)throw new ct("CSV_INVALID_OPTION_GROUP_COLUMNS_BY_NAME",["Invalid option group_columns_by_name:","the `columns` mode must be activated."],e)}if(e.comment===void 0||e.comment===null||e.comment===!1||e.comment==="")e.comment=null;else if(typeof e.comment=="string"&&(e.comment=Buffer.from(e.comment,e.encoding)),!Buffer.isBuffer(e.comment))throw new ct("CSV_INVALID_OPTION_COMMENT",["Invalid option comment:","comment must be a buffer or a string,",`got ${JSON.stringify(e.comment)}`],e);if(e.comment_no_infix===void 0||e.comment_no_infix===null||e.comment_no_infix===!1)e.comment_no_infix=!1;else if(e.comment_no_infix!==!0)throw new ct("CSV_INVALID_OPTION_COMMENT",["Invalid option comment_no_infix:","value must be a boolean,",`got ${JSON.stringify(e.comment_no_infix)}`],e);if(e.delimiter_auto===void 0||e.delimiter_auto===null||e.delimiter_auto===!1)e.delimiter_auto=!1;else if(e.delimiter_auto===!0)e.delimiter_auto={};else if(!bw(e.delimiter_auto))throw new ct("CSV_INVALID_OPTION_DELIMITER_AUTO",["Invalid option delimiter_auto:","delimiter_auto must be a boolean or a configuration object,",`got ${JSON.stringify(e.delimiter_auto)}`],e);if(e.delimiter_auto){if(e.delimiter_auto.preferred===void 0)e.delimiter_auto.preferred={44:1.8,9:1.8,59:1.6,32:1.6,58:1.5,46:1.4,47:1.4};else if(!bw(e.delimiter_auto.preferred))throw new ct("CSV_INVALID_OPTION_DELIMITER_AUTO",["Invalid option delimiter_auto:","preferred must be an object,",`got ${JSON.stringify(e.delimiter_auto.preferred)}`],e);if(e.delimiter_auto.score===void 0)e.delimiter_auto.score=(n,i)=>(n.total-n.std)*(i.preferred[n.char_code]||1);else if(typeof e.delimiter_auto.score!="function")throw new ct("CSV_INVALID_OPTION_DELIMITER_AUTO",["Invalid option delimiter_auto:","score must be a function,",`got ${JSON.stringify(e.delimiter_auto.score)}`],e);if(e.delimiter_auto.size===void 0)e.delimiter_auto.size=2048;else if(typeof e.delimiter_auto.size!="number")throw new ct("CSV_INVALID_OPTION_DELIMITER_AUTO",["Invalid option delimiter_auto:","size must be a number,",`got ${JSON.stringify(e.delimiter_auto.size)}`],e)}let r=JSON.stringify(e.delimiter);if(e.delimiter_auto!==!1&&(e.delimiter=[]),Array.isArray(e.delimiter)||((e.delimiter===void 0||e.delimiter===null||e.delimiter===!1)&&(e.delimiter=Buffer.from(",",e.encoding)),e.delimiter=[e.delimiter]),e.delimiter=e.delimiter.map(function(n){if(typeof n=="string"&&(n=Buffer.from(n,e.encoding)),!Buffer.isBuffer(n)||n.length===0)throw new ct("CSV_INVALID_OPTION_DELIMITER",["Invalid option delimiter:","delimiter must be a non empty string or buffer or array of string|buffer,",`got ${r}`],e);return n}),e.escape===void 0||e.escape===!0?e.escape=Buffer.from('"',e.encoding):typeof e.escape=="string"?e.escape=Buffer.from(e.escape,e.encoding):(e.escape===null||e.escape===!1)&&(e.escape=null),e.escape!==null&&!Buffer.isBuffer(e.escape))throw new Error(`Invalid Option: escape must be a buffer, a string or a boolean, got ${JSON.stringify(e.escape)}`);if(e.from===void 0||e.from===null)e.from=1;else if(typeof e.from=="string"&&/\d+/.test(e.from)&&(e.from=parseInt(e.from)),Number.isInteger(e.from)){if(e.from<0)throw new Error(`Invalid Option: from must be a positive integer, got ${JSON.stringify(t.from)}`)}else throw new Error(`Invalid Option: from must be an integer, got ${JSON.stringify(e.from)}`);if(e.from_line===void 0||e.from_line===null)e.from_line=1;else if(typeof e.from_line=="string"&&/\d+/.test(e.from_line)&&(e.from_line=parseInt(e.from_line)),Number.isInteger(e.from_line)){if(e.from_line<=0)throw new Error(`Invalid Option: from_line must be a positive integer greater than 0, got ${JSON.stringify(t.from_line)}`)}else throw new Error(`Invalid Option: from_line must be an integer, got ${JSON.stringify(t.from_line)}`);if(e.ignore_last_delimiters===void 0||e.ignore_last_delimiters===null)e.ignore_last_delimiters=!1;else if(typeof e.ignore_last_delimiters=="number")e.ignore_last_delimiters=Math.floor(e.ignore_last_delimiters),e.ignore_last_delimiters===0&&(e.ignore_last_delimiters=!1);else if(typeof e.ignore_last_delimiters!="boolean")throw new ct("CSV_INVALID_OPTION_IGNORE_LAST_DELIMITERS",["Invalid option `ignore_last_delimiters`:","the value must be a boolean value or an integer,",`got ${JSON.stringify(e.ignore_last_delimiters)}`],e);if(e.ignore_last_delimiters===!0&&e.columns===!1)throw new ct("CSV_IGNORE_LAST_DELIMITERS_REQUIRES_COLUMNS",["The option `ignore_last_delimiters`","requires the activation of the `columns` option"],e);if(e.info===void 0||e.info===null||e.info===!1)e.info=!1;else if(e.info!==!0)throw new Error(`Invalid Option: info must be true, got ${JSON.stringify(e.info)}`);if(e.max_record_size===void 0||e.max_record_size===null||e.max_record_size===!1)e.max_record_size=0;else if(!(Number.isInteger(e.max_record_size)&&e.max_record_size>=0))if(typeof e.max_record_size=="string"&&/\d+/.test(e.max_record_size))e.max_record_size=parseInt(e.max_record_size);else throw new Error(`Invalid Option: max_record_size must be a positive integer, got ${JSON.stringify(e.max_record_size)}`);if(e.objname===void 0||e.objname===null||e.objname===!1)e.objname=void 0;else if(Buffer.isBuffer(e.objname)){if(e.objname.length===0)throw new Error("Invalid Option: objname must be a non empty buffer");e.encoding===null||(e.objname=e.objname.toString(e.encoding))}else if(typeof e.objname=="string"){if(e.objname.length===0)throw new Error("Invalid Option: objname must be a non empty string")}else if(typeof e.objname!="number")throw new Error(`Invalid Option: objname must be a string or a buffer, got ${e.objname}`);if(e.objname!==void 0){if(typeof e.objname=="number"){if(e.columns!==!1)throw Error("Invalid Option: objname index cannot be combined with columns or be defined as a field")}else if(e.columns===!1)throw Error("Invalid Option: objname field must be combined with columns or be defined as an index")}if(e.on_record===void 0||e.on_record===null)e.on_record=void 0;else if(typeof e.on_record!="function")throw new ct("CSV_INVALID_OPTION_ON_RECORD",["Invalid option `on_record`:","expect a function,",`got ${JSON.stringify(e.on_record)}`],e);if(e.on_skip!==void 0&&e.on_skip!==null&&typeof e.on_skip!="function")throw new Error(`Invalid Option: on_skip must be a function, got ${JSON.stringify(e.on_skip)}`);if(e.quote===null||e.quote===!1||e.quote==="")e.quote=null;else if(e.quote===void 0||e.quote===!0?e.quote=Buffer.from('"',e.encoding):typeof e.quote=="string"&&(e.quote=Buffer.from(e.quote,e.encoding)),!Buffer.isBuffer(e.quote))throw new Error(`Invalid Option: quote must be a buffer or a string, got ${JSON.stringify(e.quote)}`);if(e.raw===void 0||e.raw===null||e.raw===!1)e.raw=!1;else if(e.raw!==!0)throw new Error(`Invalid Option: raw must be true, got ${JSON.stringify(e.raw)}`);if(e.record_delimiter===void 0)e.record_delimiter=[];else if(typeof e.record_delimiter=="string"||Buffer.isBuffer(e.record_delimiter)){if(e.record_delimiter.length===0)throw new ct("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a non empty string or buffer,",`got ${JSON.stringify(e.record_delimiter)}`],e);e.record_delimiter=[e.record_delimiter]}else if(!Array.isArray(e.record_delimiter))throw new ct("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a string, a buffer or array of string|buffer,",`got ${JSON.stringify(e.record_delimiter)}`],e);if(e.record_delimiter=e.record_delimiter.map(function(n,i){if(typeof n!="string"&&!Buffer.isBuffer(n))throw new ct("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a string, a buffer or array of string|buffer",`at index ${i},`,`got ${JSON.stringify(n)}`],e);if(n.length===0)throw new ct("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a non empty string or buffer",`at index ${i},`,`got ${JSON.stringify(n)}`],e);return typeof n=="string"&&(n=Buffer.from(n,e.encoding)),n}),typeof e.relax_column_count!="boolean")if(e.relax_column_count===void 0||e.relax_column_count===null)e.relax_column_count=!1;else throw new Error(`Invalid Option: relax_column_count must be a boolean, got ${JSON.stringify(e.relax_column_count)}`);if(typeof e.relax_column_count_less!="boolean")if(e.relax_column_count_less===void 0||e.relax_column_count_less===null)e.relax_column_count_less=!1;else throw new Error(`Invalid Option: relax_column_count_less must be a boolean, got ${JSON.stringify(e.relax_column_count_less)}`);if(typeof e.relax_column_count_more!="boolean")if(e.relax_column_count_more===void 0||e.relax_column_count_more===null)e.relax_column_count_more=!1;else throw new Error(`Invalid Option: relax_column_count_more must be a boolean, got ${JSON.stringify(e.relax_column_count_more)}`);if(typeof e.relax_quotes!="boolean")if(e.relax_quotes===void 0||e.relax_quotes===null)e.relax_quotes=!1;else throw new Error(`Invalid Option: relax_quotes must be a boolean, got ${JSON.stringify(e.relax_quotes)}`);if(typeof e.skip_empty_lines!="boolean")if(e.skip_empty_lines===void 0||e.skip_empty_lines===null)e.skip_empty_lines=!1;else throw new Error(`Invalid Option: skip_empty_lines must be a boolean, got ${JSON.stringify(e.skip_empty_lines)}`);if(typeof e.skip_records_with_empty_values!="boolean")if(e.skip_records_with_empty_values===void 0||e.skip_records_with_empty_values===null)e.skip_records_with_empty_values=!1;else throw new Error(`Invalid Option: skip_records_with_empty_values must be a boolean, got ${JSON.stringify(e.skip_records_with_empty_values)}`);if(typeof e.skip_records_with_error!="boolean")if(e.skip_records_with_error===void 0||e.skip_records_with_error===null)e.skip_records_with_error=!1;else throw new Error(`Invalid Option: skip_records_with_error must be a boolean, got ${JSON.stringify(e.skip_records_with_error)}`);if(e.rtrim===void 0||e.rtrim===null||e.rtrim===!1)e.rtrim=!1;else if(e.rtrim!==!0)throw new Error(`Invalid Option: rtrim must be a boolean, got ${JSON.stringify(e.rtrim)}`);if(e.ltrim===void 0||e.ltrim===null||e.ltrim===!1)e.ltrim=!1;else if(e.ltrim!==!0)throw new Error(`Invalid Option: ltrim must be a boolean, got ${JSON.stringify(e.ltrim)}`);if(e.trim===void 0||e.trim===null||e.trim===!1)e.trim=!1;else if(e.trim!==!0)throw new Error(`Invalid Option: trim must be a boolean, got ${JSON.stringify(e.trim)}`);if(e.trim===!0&&t.ltrim!==!1?e.ltrim=!0:e.ltrim!==!0&&(e.ltrim=!1),e.trim===!0&&t.rtrim!==!1?e.rtrim=!0:e.rtrim!==!0&&(e.rtrim=!1),e.to===void 0||e.to===null)e.to=-1;else if(e.to!==-1)if(typeof e.to=="string"&&/\d+/.test(e.to)&&(e.to=parseInt(e.to)),Number.isInteger(e.to)){if(e.to<=0)throw new Error(`Invalid Option: to must be a positive integer greater than 0, got ${JSON.stringify(t.to)}`)}else throw new Error(`Invalid Option: to must be an integer, got ${JSON.stringify(t.to)}`);if(e.to_line===void 0||e.to_line===null)e.to_line=-1;else if(e.to_line!==-1)if(typeof e.to_line=="string"&&/\d+/.test(e.to_line)&&(e.to_line=parseInt(e.to_line)),Number.isInteger(e.to_line)){if(e.to_line<=0)throw new Error(`Invalid Option: to_line must be a positive integer greater than 0, got ${JSON.stringify(t.to_line)}`)}else throw new Error(`Invalid Option: to_line must be an integer, got ${JSON.stringify(t.to_line)}`);return e},"normalize_options");var Ebe=o(function(t,e){e||({delimiter_auto:e}=Kg({delimiter_auto:!0})),typeof t=="string"&&(t=Buffer.from(t)),Buffer.isBuffer(t)&&(t=(i=>{let s=[],a=m2({delimiter:[]}),c=o(d=>s.push(d),"push"),l=o(()=>{},"close"),u=a.parse(i,!0,c,l);if(u!==void 0)throw u;return s})(t));let r=Array(127).fill().map(()=>({lines:[]}));t.map(([i],s)=>{for(let a=0,c=i.length;a{i.char_code=s,i.std=qAt(i.lines),i.total=i.lines.reduce((a,c)=>a+c,0),i.preferred=!!e.preferred[s],i.score=e.score(i,e)});let n=r.reduce((i,s)=>i.score>s.score?i:s,{});return String.fromCharCode(n.char_code)},"delimiter_discover"),qAt=o(function(t){let e=t.length;if(e===0)return 0;let r=t.reduce((n,i)=>n+i)/e;return Math.sqrt(t.map(n=>Math.pow(n-r,2)).reduce((n,i)=>n+i)/e)},"std");var Cbe=o(function(t){return t.every(e=>e==null||e.toString&&e.toString().trim()==="")},"isRecordEmpty"),GAt=13,HAt=10,Xg={utf8:Buffer.from([239,187,191]),utf16le:Buffer.from([255,254])},m2=o(function(t={}){let e={bytes:0,bytes_records:0,comment_lines:0,empty_lines:0,invalid_field_length:0,lines:1,records:0},r=Kg(t);return{info:e,original_options:t,options:r,state:gbe(r),__needMoreData:o(function(n,i,s){if(s)return!1;let{encoding:a,escape:c,quote:l}=this.options,{quoting:u,needMoreDataSize:d,recordDelimiterMaxLength:f}=this.state,h=i-n-1,p=Math.max(d,f===0?Buffer.from(`\r +`,a).length:f,u?(c===null?0:c.length)+l.length:0,u?l.length+f:0);return hu.size)this.options.delimiter=[Buffer.from(Ebe(fe,this.options.delimiter_auto))],this.state.previousBuf=fe,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=fe;return}}let{previousBuf:ue}=this.state,de;if(ue===void 0)if(n===void 0){a();return}else de=n;else ue!==void 0&&n===void 0?de=ue:de=Buffer.concat([ue,n]);if($===!1)if(c===!1)this.state.bomSkipped=!0;else if(de.length<3){if(i===!1){this.state.previousBuf=de;return}}else{for(let fe in Xg)if(Xg[fe].compare(de,0,Xg[fe].length)===0){let Tt=Xg[fe].length;this.state.bufBytesStart+=Tt,de=de.slice(Tt);let yt=Kg({...this.original_options,encoding:fe});for(let sr in yt)this.options[sr]=yt[sr];({comment:B,escape:P,quote:U}=this.options);break}this.state.bomSkipped=!0}let Se=de.length,K;for(K=0;Kw){this.state.stop=!0,a();return}this.state.quoting===!1&&N.length===0&&this.__autoDiscoverRecordDelimiter(de,K)&&(N=this.options.record_delimiter);let fe=de[K];if(m===!0&&V.append(fe),(fe===GAt||fe===HAt)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(P!==null&&this.state.quoting===!0&&this.__isEscape(de,K,fe)&&K+P.lengthXg[bi].equals(this.state.field.toString())?bi:!1).filter(Boolean)[0],Ji=this.__error(new ct("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(sr.column)} at line ${sr.lines}, value is ${JSON.stringify(this.state.field.toString(d))}`,or?`(${or} bom)`:void 0],this.options,sr,{field:this.state.field}));if(Ji!==void 0)return Ji}}else{this.state.quoting=!0,K+=U.length-1;continue}if(this.state.quoting===!1){let sr=this.__isRecordDelimiter(fe,de,K);if(sr!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=f){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),K+=sr-1;continue}if(y===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,K+=sr-1;continue}this.info.bytes=this.state.bufBytesStart+K;let bi=this.__onField();if(bi!==void 0)return bi;this.info.bytes=this.state.bufBytesStart+K+sr;let tc=this.__onRecord(s);if(tc!==void 0)return tc;if(C!==-1&&this.info.records>=C){this.state.stop=!0,a();return}}this.state.commenting=!1,K+=sr-1;continue}if(this.state.commenting)continue;if(B!==null&&(l===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(B,de,K,fe)!==0){this.state.commenting=!0;continue}let or=this.__isDelimiter(de,K,fe);if(or!==0){this.info.bytes=this.state.bufBytesStart+K;let Ji=this.__onField();if(Ji!==void 0)return Ji;K+=or-1;continue}}}if(this.state.commenting===!1&&p!==0&&this.state.record_length+this.state.field.length>p)return this.__error(new ct("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${p}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let Tt=h===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(de,K),yt=E===!1||this.state.wasQuoting===!1;if(Tt===!0&&yt===!0)this.state.field.append(fe);else{if(E===!0&&!this.__isCharTrimable(de,K))return this.__error(new ct("CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE",["Invalid Closing Quote:","found non trimable byte after quote",`at line ${this.info.lines}`],this.options,this.__infoField()));Tt===!1&&(K+=this.__isCharTrimable(de,K)-1);continue}}if(i===!0)if(this.state.quoting===!0){let fe=this.__error(new ct("CSV_QUOTE_NOT_CLOSED",["Quote Not Closed:",`the parsing is finished with an opening quote at line ${this.info.lines}`],this.options,this.__infoField()));if(fe!==void 0)return fe}else if(this.state.wasQuoting===!0||this.state.record.length!==0||this.state.field.length!==0){this.info.bytes=this.state.bufBytesStart+K;let fe=this.__onField();if(fe!==void 0)return fe;let Tt=this.__onRecord(s);if(Tt!==void 0)return Tt}else this.state.wasRowDelimiter===!0?this.info.empty_lines++:this.state.commenting===!0&&this.info.comment_lines++;else this.state.bufBytesStart+=K,this.state.previousBuf=de.slice(K);this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1)},"parse"),__onRecord:o(function(n){let{columns:i,group_columns_by_name:s,encoding:a,info:c,from:l,relax_column_count:u,relax_column_count_less:d,relax_column_count_more:f,raw:h,skip_records_with_empty_values:p}=this.options,{enabled:m,record:A}=this.state;if(m===!1)return this.__resetRecord();let E=A.length;if(i===!0){if(p===!0&&Cbe(A)){this.__resetRecord();return}return this.__firstLineToColumns(A)}if(i===!1&&this.info.records===0&&(this.state.expectedRecordLength=E),E!==this.state.expectedRecordLength){let y=i===!1?new ct("CSV_RECORD_INCONSISTENT_FIELDS_LENGTH",["Invalid Record Length:",`expect ${this.state.expectedRecordLength},`,`got ${E} on line ${this.info.lines}`],this.options,this.__infoField(),{record:A}):new ct("CSV_RECORD_INCONSISTENT_COLUMNS",["Invalid Record Length:",`columns length is ${i.length},`,`got ${E} on line ${this.info.lines}`],this.options,this.__infoField(),{record:A});if(u===!0||d===!0&&Ethis.state.expectedRecordLength)this.info.invalid_field_length++,this.state.error=y;else{let C=this.__error(y);if(C)return C}}if(p===!0&&Cbe(A)){this.__resetRecord();return}if(this.state.recordHasError===!0){this.__resetRecord(),this.state.recordHasError=!1;return}if(this.info.records++,l===1||this.info.records>=l){let{objname:y}=this.options;if(i!==!1){let C={};for(let w=0,B=A.length;w=0},"__isFloat"),__isQuote:o(function(n,i){let{quote:s}=this.options;if(s===null)return!1;let a=s.length;for(let c=0;cthis.state.record.length?n[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var eo=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=A2(e),i=o(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),s=o(()=>{},"close"),a=n.parse(t,!0,i,s);if(a!==void 0)throw a;return r},"parse");var Oe=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(Ms(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let i=eo(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let s of i)s.length==1?r?.ignoreComma?n.push(s[0]):n.push(...s[0].split(",")):r?.ignoreComma?n.push(s.join(",")):n.push(...s);return n.filter(s=>s).map(s=>r?.trimWhitespace===!1?s:s.trim())}static getInputNumber(e){let r=Ms(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let n=0;nsetTimeout(r,e*1e3))}static hash(e){return W4.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],i=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,i)).toFixed(2))+" "+n[i]}static generateRandomString(e=10){return W4.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return bbe.default.compile(e,r)(n)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let n=bw.default.resolve(e);return bw.default.resolve(r).startsWith(n.endsWith(bw.default.sep)?n:`${n}${bw.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),n=Math.floor(r/3600),i=Math.floor(r%3600/60),s=r%60,a=[];return n&&a.push(`${n}h`),i&&a.push(`${i}m`),(s||a.length===0)&&a.push(`${s}s`),a.join("")}};var Vr=class t{static{o(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||ww.default.join(wbe.default.homedir(),".docker")}static configFile(){let e=ww.default.join(t.configDir,"config.json");if(J4.default.existsSync(e))return JSON.parse(J4.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await Gn("docker",!0).then(e=>(v(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(v(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}catch{return!1}}static async exec(e,r){return Ie.exec("docker",e,t.execOptions(r))}static async getExecOutput(e,r){return Ie.getExecOutput("docker",e,t.execOptions(r))}static getErrorMessage(e){let r=(0,Ibe.stripVTControlCharacters)(e).split(/[\r\n]/);for(let n=r.length-1;n>=0;n--){let i=r[n].trim();if(i)return i}return"unknown error"}static execOptions(e){return e||(e={}),e.env?e.env.DOCKER_CONTENT_TRUST="false":e.env=Object.assign({},process.env,{DOCKER_CONTENT_TRUST:"false"}),e}static async context(e){let r=["context","inspect","--format","{{.Name}}"];return e&&r.push(e),await t.getExecOutput(r,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr);return n.stdout.trim()})}static async contextInspect(e){let r=["context","inspect","--format=json"];return e&&r.push(e),await t.getExecOutput(r,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr.trim());return JSON.parse(n.stdout.trim())[0]})}static async printVersion(){await t.exec(["version"])}static async printInfo(){await t.exec(["info"])}static parseRepoTag(e){let r,n=e.indexOf("@"),i=e.lastIndexOf(":");if(n>=0)r=n;else if(i>=0)r=i;else return{repository:e,tag:"latest"};let s=e.slice(r+1);return s.indexOf("/")===-1?{repository:e.slice(0,r),tag:s}:{repository:e,tag:"latest"}}static async pull(e,r,n){let i=[];if(n)try{await t.contextInspect(n),i.push("--context",n)}catch{i.push("--host",n)}let s=t.parseRepoTag(e),a=s.repository.replace(/[^a-zA-Z0-9.]+/g,"--"),c=s.tag.replace(/[^a-zA-Z0-9.]+/g,"--"),l=new Dn({htcName:a,htcVersion:c,baseCacheDir:ww.default.join(t.configDir,".cache","images",a),cacheFile:"image.tar"}),u;r&&(u=await l.find(),u&&(D(`Image found from cache in ${u}`),await t.getExecOutput([...i,"load","-i",u],{ignoreReturnCode:!0}).then(f=>{f.stderr.length>0&&f.exitCode!=0&&Ge(`Failed to load image from cache: ${t.getErrorMessage(f.stderr)}`)})));let d=!0;try{await t.pullWithRetry(e,i)}catch(f){if(d=!1,u)Ge(`Failed to pull image, using one from cache: ${f.message}`);else throw f}if(r&&d){let f=ww.default.join(ht.tmpDir(),`${Oe.hash(e)}.tar`);await t.getExecOutput([...i,"save","-o",f,e],{ignoreReturnCode:!0}).then(async h=>{if(h.stderr.length>0&&h.exitCode!=0)Ge(`Failed to save image: ${t.getErrorMessage(h.stderr)}`);else{let p=await l.save(f);D(`Image cached to ${p}`)}})}}static async pullWithRetry(e,r){await(0,Sbe.default)(async i=>{let s=await t.getExecOutput([...r,"pull",e],{ignoreReturnCode:!0});if(s.stderr.length>0&&s.exitCode!=0){let a=t.getErrorMessage(s.stderr);if(!t.isPullTransientError(a)){i(new Error(a));return}throw new Error(a)}},{retries:4,minTimeout:1e3,factor:2,onRetry:o((i,s)=>{v(`Docker pull failed, retrying (${s}/5)... -${i}`)},"onRetry")})}static isPullTransientError(e){return/Client\.Timeout exceeded|TLS handshake timeout|i\/o timeout|context deadline exceeded|request canceled|connection reset by peer|connection refused|connection timed out|temporary failure|unexpected EOF|\bEOF\b|server misbehaving/i.test(e)||/\b(500|502|503|504)\b/.test(e)||/\b(service unavailable|bad gateway|gateway timeout|internal server error)\b/i.test(e)}};var w0e=T(require("crypto"),1);var m2=require("fs"),Bbe=require("os");var Xg=class{static{o(this,"Context")}constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,m2.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,m2.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let i=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${i} does not exist${Bbe.EOL}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var Z4=T(_be(),1),Tbe=T(yh(),1);var ZAt=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function Dbe(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}o(Dbe,"getAuthString");function Qbe(t){return new Z4.HttpClient().getAgent(t)}o(Qbe,"getProxyAgent");function emt(t){return new Z4.HttpClient().getAgentDispatcher(t)}o(emt,"getProxyAgentDispatcher");function kbe(t){let e=emt(t);return o((n,i)=>ZAt(this,void 0,void 0,function*(){return(0,Tbe.fetch)(n,Object.assign(Object.assign({},i),{dispatcher:e}))}),"proxyFetch")}o(kbe,"getProxyFetch");function Pbe(){return process.env.GITHUB_API_URL||"https://api.github.com"}o(Pbe,"getApiBaseUrl");function e$(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let i=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(i)?t:`${t?`${t} `:""}${i}`}return t}o(e$,"getUserAgentWithOrchestrationId");function Yd(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:""}o(Yd,"getUserAgent");function I2(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((i,s)=>I2.bind(null,t,s,i,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((i,s)=>s.hook.bind(null,i,n),r)():r(n))}o(I2,"register");function Obe(t,e,r,n){let i=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=o((s,a)=>Promise.resolve().then(i.bind(null,a)).then(s.bind(null,a)),"hook")),e==="after"&&(n=o((s,a)=>{let c;return Promise.resolve().then(s.bind(null,a)).then(l=>(c=l,i(c,a))).then(()=>c)},"hook")),e==="error"&&(n=o((s,a)=>Promise.resolve().then(s.bind(null,a)).catch(c=>i(c,a)),"hook")),t.registry[r].push({hook:n,orig:i})}o(Obe,"addHook");function Lbe(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(i=>i.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}o(Lbe,"removeHook");var Fbe=Function.bind,Mbe=Fbe.bind(Fbe);function Ube(t,e,r){let n=Mbe(Lbe,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(i=>{let s=r?[e,i,r]:[e,i];t[i]=t.api[i]=Mbe(Obe,null).apply(null,s)})}o(Ube,"bindApi");function rmt(){let t=Symbol("Singular"),e={registry:{}},r=I2.bind(null,e,t);return Ube(r,e,t),r}o(rmt,"Singular");function nmt(){let t={registry:{}},e=I2.bind(null,t);return Ube(e,t),e}o(nmt,"Collection");var qbe={Singular:rmt,Collection:nmt};var imt="0.0.0-development",smt=`octokit-endpoint.js/${imt} ${Yd()}`,omt={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":smt},mediaType:{format:""}};function amt(t){return t?Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}):{}}o(amt,"lowercaseKeys");function cmt(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);if(e===null)return!0;let r=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(t)}o(cmt,"isPlainObject");function zbe(t,e){let r=Object.assign({},t);return Object.keys(e).forEach(n=>{cmt(e[n])?n in t?r[n]=zbe(t[n],e[n]):Object.assign(r,{[n]:e[n]}):Object.assign(r,{[n]:e[n]})}),r}o(zbe,"mergeDeep");function Gbe(t){for(let e in t)t[e]===void 0&&delete t[e];return t}o(Gbe,"removeUndefinedProperties");function r$(t,e,r){if(typeof e=="string"){let[i,s]=e.split(" ");r=Object.assign(s?{method:i,url:s}:{url:i},r)}else r=Object.assign({},e);r.headers=amt(r.headers),Gbe(r),Gbe(r.headers);let n=zbe(t||{},r);return r.url==="/graphql"&&(t&&t.mediaType.previews?.length&&(n.mediaType.previews=t.mediaType.previews.filter(i=>!n.mediaType.previews.includes(i)).concat(n.mediaType.previews)),n.mediaType.previews=(n.mediaType.previews||[]).map(i=>i.replace(/-preview/,""))),n}o(r$,"merge");function lmt(t,e){let r=/\?/.test(t)?"&":"?",n=Object.keys(e);return n.length===0?t:t+r+n.map(i=>i==="q"?"q="+e.q.split("+").map(encodeURIComponent).join("+"):`${i}=${encodeURIComponent(e[i])}`).join("&")}o(lmt,"addQueryParameters");var umt=/\{[^{}}]+\}/g;function dmt(t){return t.replace(/(?:^\W+)|(?:(?r.concat(n),[]):[]}o(fmt,"extractUrlVariableNames");function Hbe(t,e){let r={__proto__:null};for(let n of Object.keys(t))e.indexOf(n)===-1&&(r[n]=t[n]);return r}o(Hbe,"omit");function Vbe(t){return t.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}o(Vbe,"encodeReserved");function ey(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}o(ey,"encodeUnreserved");function Sw(t,e,r){return e=t==="+"||t==="#"?Vbe(e):ey(e),r?ey(r)+"="+e:e}o(Sw,"encodeValue");function Zg(t){return t!=null}o(Zg,"isDefined");function t$(t){return t===";"||t==="&"||t==="?"}o(t$,"isKeyOperator");function hmt(t,e,r,n){var i=t[r],s=[];if(Zg(i)&&i!=="")if(typeof i=="string"||typeof i=="number"||typeof i=="bigint"||typeof i=="boolean")i=i.toString(),n&&n!=="*"&&(i=i.substring(0,parseInt(n,10))),s.push(Sw(e,i,t$(e)?r:""));else if(n==="*")Array.isArray(i)?i.filter(Zg).forEach(function(a){s.push(Sw(e,a,t$(e)?r:""))}):Object.keys(i).forEach(function(a){Zg(i[a])&&s.push(Sw(e,i[a],a))});else{let a=[];Array.isArray(i)?i.filter(Zg).forEach(function(c){a.push(Sw(e,c))}):Object.keys(i).forEach(function(c){Zg(i[c])&&(a.push(ey(c)),a.push(Sw(e,i[c].toString())))}),t$(e)?s.push(ey(r)+"="+a.join(",")):a.length!==0&&s.push(a.join(","))}else e===";"?Zg(i)&&s.push(ey(r)):i===""&&(e==="&"||e==="?")?s.push(ey(r)+"="):i===""&&s.push("");return s}o(hmt,"getValues");function pmt(t){return{expand:Amt.bind(null,t)}}o(pmt,"parseUrl");function Amt(t,e){var r=["+","#",".","/",";","?","&"];return t=t.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(n,i,s){if(i){let c="",l=[];if(r.indexOf(i.charAt(0))!==-1&&(c=i.charAt(0),i=i.substr(1)),i.split(/,/g).forEach(function(u){var d=/([^:\*]*)(?::(\d+)|(\*))?/.exec(u);l.push(hmt(e,c,d[1],d[2]||d[3]))}),c&&c!=="+"){var a=",";return c==="?"?a="&":c!=="#"&&(a=c),(l.length!==0?c:"")+l.join(a)}else return l.join(",")}else return Vbe(s)}),t==="/"?t:t.replace(/\/$/,"")}o(Amt,"expand");function $be(t){let e=t.method.toUpperCase(),r=(t.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),n=Object.assign({},t.headers),i,s=Hbe(t,["method","baseUrl","url","headers","request","mediaType"]),a=fmt(r);r=pmt(r).expand(s),/^http/.test(r)||(r=t.baseUrl+r);let c=Object.keys(t).filter(d=>a.includes(d)).concat("baseUrl"),l=Hbe(s,c);if(!/application\/octet-stream/i.test(n.accept)&&(t.mediaType.format&&(n.accept=n.accept.split(/,/).map(d=>d.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${t.mediaType.format}`)).join(",")),r.endsWith("/graphql")&&t.mediaType.previews?.length)){let d=n.accept.match(/(?{let h=t.mediaType.format?`.${t.mediaType.format}`:"+json";return`application/vnd.github.${f}-preview${h}`}).join(",")}return["GET","HEAD"].includes(e)?r=lmt(r,l):"data"in l?i=l.data:Object.keys(l).length&&(i=l),!n["content-type"]&&typeof i<"u"&&(n["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(e)&&typeof i>"u"&&(i=""),Object.assign({method:e,url:r,headers:n},typeof i<"u"?{body:i}:null,t.request?{request:t.request}:null)}o($be,"parse");function mmt(t,e,r){return $be(r$(t,e,r))}o(mmt,"endpointWithDefaults");function jbe(t,e){let r=r$(t,e),n=mmt.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:jbe.bind(null,r),merge:r$.bind(null,r),parse:$be})}o(jbe,"withDefaults");var Wbe=jbe(null,omt);var a0e=T(Xbe(),1);var gmt=/^-?\d+$/,t0e=/^-?\d+n+$/,n$=JSON.stringify,Zbe=JSON.parse,ymt=/^-?\d+n$/,Emt=/([\[:])?"(-?\d+)n"($|([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,Cmt=/([\[:])?("-?\d+n+)n("$|"([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,r0e=o((t,e,r)=>"rawJSON"in JSON?n$(t,(a,c)=>typeof c=="bigint"?JSON.rawJSON(c.toString()):typeof e=="function"?e(a,c):(Array.isArray(e)&&e.includes(a),c),r):t?n$(t,(a,c)=>typeof c=="string"&&!!c.match(t0e)||typeof c=="bigint"?c.toString()+"n":typeof e=="function"?e(a,c):(Array.isArray(e)&&e.includes(a),c),r).replace(Emt,"$1$2$3").replace(Cmt,"$1$2$3"):n$(t,e,r),"JSONStringify"),bmt=o(()=>JSON.parse("1",(t,e,r)=>!!r&&r.source==="1"),"isContextSourceSupported"),wmt=o((t,e,r,n)=>typeof e=="string"&&e.match(ymt)?BigInt(e.slice(0,-1)):typeof e=="string"&&e.match(t0e)?e.slice(0,-1):typeof n!="function"?e:n(t,e,r),"convertMarkedBigIntsReviver"),Imt=o((t,e)=>JSON.parse(t,(r,n,i)=>{let s=typeof n=="number"&&(n>Number.MAX_SAFE_INTEGER||n{if(!t)return Zbe(t,e);if(bmt())return Imt(t,e);let r=t.replace(Smt,(n,i,s,a)=>{let c=n[0]==='"';if(c&&!!n.match(Bmt))return n.substring(0,n.length-1)+'n"';let u=s||a,d=i&&(i.lengthwmt(n,i,s,e))},"JSONParse");var Ep=class extends Error{static{o(this,"RequestError")}name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let i=Object.assign({},n.request);n.request.headers.authorization&&(i.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?"","noop");async function o0e(t){let e=t.request?.fetch||globalThis.fetch;if(!e)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");let r=t.request?.log||console,n=t.request?.parseSuccessResponseBody!==!1,i=Nmt(t.body)||Array.isArray(t.body)?r0e(t.body):t.body,s=Object.fromEntries(Object.entries(t.headers).map(([f,h])=>[f,String(h)])),a;try{a=await e(t.url,{method:t.method,body:i,redirect:t.request?.redirect,headers:s,signal:t.request?.signal,...t.body&&{duplex:"half"}})}catch(f){let h="Unknown Error";if(f instanceof Error){if(f.name==="AbortError")throw f.status=500,f;h=f.message,f.name==="TypeError"&&"cause"in f&&(f.cause instanceof Error?h=f.cause.message:typeof f.cause=="string"&&(h=f.cause))}let p=new Ep(h,500,{request:t});throw p.cause=f,p}let c=a.status,l=a.url,u={};for(let[f,h]of a.headers)u[f]=h;let d={url:l,status:c,headers:u,data:""};if("deprecation"in u){let f=u.link&&u.link.match(/<([^<>]+)>; rel="deprecation"/),h=f&&f.pop();r.warn(`[@octokit/request] "${t.method} ${t.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${h?`. See ${h}`:""}`)}if(c===204||c===205)return d;if(t.method==="HEAD"){if(c<400)return d;throw new Ep(a.statusText,c,{response:d,request:t})}if(c===304)throw d.data=await i$(a),new Ep("Not modified",c,{response:d,request:t});if(c>=400)throw d.data=await i$(a),new Ep(_mt(d.data),c,{response:d,request:t});return d.data=n?await i$(a):a.body,d}o(o0e,"fetchWrapper");async function i$(t){let e=t.headers.get("content-type");if(!e)return t.text().catch(s0e);let r=(0,a0e.safeParse)(e);if(Rmt(r)){let n="";try{return n=await t.text(),i0e(n)}catch{return n}}else return r.type.startsWith("text/")||r.parameters.charset?.toLowerCase()==="utf-8"?t.text().catch(s0e):t.arrayBuffer().catch(()=>new ArrayBuffer(0))}o(i$,"getResponseData");function Rmt(t){return t.type==="application/json"||t.type==="application/scim+json"}o(Rmt,"isJSONResponse");function _mt(t){if(typeof t=="string")return t;if(t instanceof ArrayBuffer)return"Unknown error";if("message"in t){let e="documentation_url"in t?` - ${t.documentation_url}`:"";return Array.isArray(t.errors)?`${t.message}: ${t.errors.map(r=>JSON.stringify(r)).join(", ")}${e}`:`${t.message}${e}`}return`Unknown error: ${JSON.stringify(t)}`}o(_mt,"toErrorMessage");function s$(t,e){let r=t.defaults(e);return Object.assign(o(function(i,s){let a=r.merge(i,s);if(!a.request||!a.request.hook)return o0e(r.parse(a));let c=o((l,u)=>o0e(r.parse(r.merge(l,u))),"request2");return Object.assign(c,{endpoint:r,defaults:s$.bind(null,r)}),a.request.hook(c,a)},"newApi"),{endpoint:r,defaults:s$.bind(null,r)})}o(s$,"withDefaults");var xw=s$(Wbe,vmt);var Tmt="0.0.0-development";function Dmt(t){return`Request failed due to following response errors: +`,s),Buffer.from("\r",s)];e:for(let c=0;cthis.state.record.length?n[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var eo=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=m2(e),i=o(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),s=o(()=>{},"close"),a=n.parse(t,!0,i,s);if(a!==void 0)throw a;return r},"parse");var Oe=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(Ms(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let i=eo(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let s of i)s.length==1?r?.ignoreComma?n.push(s[0]):n.push(...s[0].split(",")):r?.ignoreComma?n.push(s.join(",")):n.push(...s);return n.filter(s=>s).map(s=>r?.trimWhitespace===!1?s:s.trim())}static getInputNumber(e){let r=Ms(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let n=0;nsetTimeout(r,e*1e3))}static hash(e){return J4.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],i=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,i)).toFixed(2))+" "+n[i]}static generateRandomString(e=10){return J4.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return wbe.default.compile(e,r)(n)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let n=ww.default.resolve(e);return ww.default.resolve(r).startsWith(n.endsWith(ww.default.sep)?n:`${n}${ww.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),n=Math.floor(r/3600),i=Math.floor(r%3600/60),s=r%60,a=[];return n&&a.push(`${n}h`),i&&a.push(`${i}m`),(s||a.length===0)&&a.push(`${s}s`),a.join("")}};var Vr=class t{static{o(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||Iw.default.join(Ibe.default.homedir(),".docker")}static configFile(){let e=Iw.default.join(t.configDir,"config.json");if(Y4.default.existsSync(e))return JSON.parse(Y4.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await Gn("docker",!0).then(e=>(v(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(v(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}catch{return!1}}static async exec(e,r){return Ie.exec("docker",e,t.execOptions(r))}static async getExecOutput(e,r){return Ie.getExecOutput("docker",e,t.execOptions(r))}static getErrorMessage(e){let r=(0,Sbe.stripVTControlCharacters)(e).split(/[\r\n]/);for(let n=r.length-1;n>=0;n--){let i=r[n].trim();if(i)return i}return"unknown error"}static execOptions(e){return e||(e={}),e.env?e.env.DOCKER_CONTENT_TRUST="false":e.env=Object.assign({},process.env,{DOCKER_CONTENT_TRUST:"false"}),e}static async context(e){let r=["context","inspect","--format","{{.Name}}"];return e&&r.push(e),await t.getExecOutput(r,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr);return n.stdout.trim()})}static async contextInspect(e){let r=["context","inspect","--format=json"];return e&&r.push(e),await t.getExecOutput(r,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr.trim());return JSON.parse(n.stdout.trim())[0]})}static async printVersion(){await t.exec(["version"])}static async printInfo(){await t.exec(["info"])}static parseRepoTag(e){let r,n=e.indexOf("@"),i=e.lastIndexOf(":");if(n>=0)r=n;else if(i>=0)r=i;else return{repository:e,tag:"latest"};let s=e.slice(r+1);return s.indexOf("/")===-1?{repository:e.slice(0,r),tag:s}:{repository:e,tag:"latest"}}static async pull(e,r,n){let i=[];if(n)try{await t.contextInspect(n),i.push("--context",n)}catch{i.push("--host",n)}let s=t.parseRepoTag(e),a=s.repository.replace(/[^a-zA-Z0-9.]+/g,"--"),c=s.tag.replace(/[^a-zA-Z0-9.]+/g,"--"),l=new Dn({htcName:a,htcVersion:c,baseCacheDir:Iw.default.join(t.configDir,".cache","images",a),cacheFile:"image.tar"}),u;r&&(u=await l.find(),u&&(D(`Image found from cache in ${u}`),await t.getExecOutput([...i,"load","-i",u],{ignoreReturnCode:!0}).then(f=>{f.stderr.length>0&&f.exitCode!=0&&Ge(`Failed to load image from cache: ${t.getErrorMessage(f.stderr)}`)})));let d=!0;try{await t.pullWithRetry(e,i)}catch(f){if(d=!1,u)Ge(`Failed to pull image, using one from cache: ${f.message}`);else throw f}if(r&&d){let f=Iw.default.join(ht.tmpDir(),`${Oe.hash(e)}.tar`);await t.getExecOutput([...i,"save","-o",f,e],{ignoreReturnCode:!0}).then(async h=>{if(h.stderr.length>0&&h.exitCode!=0)Ge(`Failed to save image: ${t.getErrorMessage(h.stderr)}`);else{let p=await l.save(f);D(`Image cached to ${p}`)}})}}static async pullWithRetry(e,r){await(0,Bbe.default)(async i=>{let s=await t.getExecOutput([...r,"pull",e],{ignoreReturnCode:!0});if(s.stderr.length>0&&s.exitCode!=0){let a=t.getErrorMessage(s.stderr);if(!t.isPullTransientError(a)){i(new Error(a));return}throw new Error(a)}},{retries:4,minTimeout:1e3,factor:2,onRetry:o((i,s)=>{v(`Docker pull failed, retrying (${s}/5)... +${i}`)},"onRetry")})}static isPullTransientError(e){return/Client\.Timeout exceeded|TLS handshake timeout|i\/o timeout|context deadline exceeded|request canceled|connection reset by peer|connection refused|connection timed out|temporary failure|unexpected EOF|\bEOF\b|server misbehaving/i.test(e)||/\b(500|502|503|504)\b/.test(e)||/\b(service unavailable|bad gateway|gateway timeout|internal server error)\b/i.test(e)}};var I0e=T(require("crypto"),1);var g2=require("fs"),xbe=require("os");var Zg=class{static{o(this,"Context")}constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,g2.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,g2.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let i=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${i} does not exist${xbe.EOL}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var e$=T(Tbe(),1),Dbe=T(Eh(),1);var rmt=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function Qbe(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}o(Qbe,"getAuthString");function kbe(t){return new e$.HttpClient().getAgent(t)}o(kbe,"getProxyAgent");function nmt(t){return new e$.HttpClient().getAgentDispatcher(t)}o(nmt,"getProxyAgentDispatcher");function Pbe(t){let e=nmt(t);return o((n,i)=>rmt(this,void 0,void 0,function*(){return(0,Dbe.fetch)(n,Object.assign(Object.assign({},i),{dispatcher:e}))}),"proxyFetch")}o(Pbe,"getProxyFetch");function Obe(){return process.env.GITHUB_API_URL||"https://api.github.com"}o(Obe,"getApiBaseUrl");function t$(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let i=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(i)?t:`${t?`${t} `:""}${i}`}return t}o(t$,"getUserAgentWithOrchestrationId");function Kd(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:""}o(Kd,"getUserAgent");function S2(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((i,s)=>S2.bind(null,t,s,i,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((i,s)=>s.hook.bind(null,i,n),r)():r(n))}o(S2,"register");function Lbe(t,e,r,n){let i=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=o((s,a)=>Promise.resolve().then(i.bind(null,a)).then(s.bind(null,a)),"hook")),e==="after"&&(n=o((s,a)=>{let c;return Promise.resolve().then(s.bind(null,a)).then(l=>(c=l,i(c,a))).then(()=>c)},"hook")),e==="error"&&(n=o((s,a)=>Promise.resolve().then(s.bind(null,a)).catch(c=>i(c,a)),"hook")),t.registry[r].push({hook:n,orig:i})}o(Lbe,"addHook");function Fbe(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(i=>i.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}o(Fbe,"removeHook");var Mbe=Function.bind,Ube=Mbe.bind(Mbe);function qbe(t,e,r){let n=Ube(Fbe,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(i=>{let s=r?[e,i,r]:[e,i];t[i]=t.api[i]=Ube(Lbe,null).apply(null,s)})}o(qbe,"bindApi");function smt(){let t=Symbol("Singular"),e={registry:{}},r=S2.bind(null,e,t);return qbe(r,e,t),r}o(smt,"Singular");function omt(){let t={registry:{}},e=S2.bind(null,t);return qbe(e,t),e}o(omt,"Collection");var Gbe={Singular:smt,Collection:omt};var amt="0.0.0-development",cmt=`octokit-endpoint.js/${amt} ${Kd()}`,lmt={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":cmt},mediaType:{format:""}};function umt(t){return t?Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}):{}}o(umt,"lowercaseKeys");function dmt(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);if(e===null)return!0;let r=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(t)}o(dmt,"isPlainObject");function Vbe(t,e){let r=Object.assign({},t);return Object.keys(e).forEach(n=>{dmt(e[n])?n in t?r[n]=Vbe(t[n],e[n]):Object.assign(r,{[n]:e[n]}):Object.assign(r,{[n]:e[n]})}),r}o(Vbe,"mergeDeep");function Hbe(t){for(let e in t)t[e]===void 0&&delete t[e];return t}o(Hbe,"removeUndefinedProperties");function n$(t,e,r){if(typeof e=="string"){let[i,s]=e.split(" ");r=Object.assign(s?{method:i,url:s}:{url:i},r)}else r=Object.assign({},e);r.headers=umt(r.headers),Hbe(r),Hbe(r.headers);let n=Vbe(t||{},r);return r.url==="/graphql"&&(t&&t.mediaType.previews?.length&&(n.mediaType.previews=t.mediaType.previews.filter(i=>!n.mediaType.previews.includes(i)).concat(n.mediaType.previews)),n.mediaType.previews=(n.mediaType.previews||[]).map(i=>i.replace(/-preview/,""))),n}o(n$,"merge");function fmt(t,e){let r=/\?/.test(t)?"&":"?",n=Object.keys(e);return n.length===0?t:t+r+n.map(i=>i==="q"?"q="+e.q.split("+").map(encodeURIComponent).join("+"):`${i}=${encodeURIComponent(e[i])}`).join("&")}o(fmt,"addQueryParameters");var hmt=/\{[^{}}]+\}/g;function pmt(t){return t.replace(/(?:^\W+)|(?:(?r.concat(n),[]):[]}o(Amt,"extractUrlVariableNames");function zbe(t,e){let r={__proto__:null};for(let n of Object.keys(t))e.indexOf(n)===-1&&(r[n]=t[n]);return r}o(zbe,"omit");function $be(t){return t.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}o($be,"encodeReserved");function ty(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}o(ty,"encodeUnreserved");function Bw(t,e,r){return e=t==="+"||t==="#"?$be(e):ty(e),r?ty(r)+"="+e:e}o(Bw,"encodeValue");function ey(t){return t!=null}o(ey,"isDefined");function r$(t){return t===";"||t==="&"||t==="?"}o(r$,"isKeyOperator");function mmt(t,e,r,n){var i=t[r],s=[];if(ey(i)&&i!=="")if(typeof i=="string"||typeof i=="number"||typeof i=="bigint"||typeof i=="boolean")i=i.toString(),n&&n!=="*"&&(i=i.substring(0,parseInt(n,10))),s.push(Bw(e,i,r$(e)?r:""));else if(n==="*")Array.isArray(i)?i.filter(ey).forEach(function(a){s.push(Bw(e,a,r$(e)?r:""))}):Object.keys(i).forEach(function(a){ey(i[a])&&s.push(Bw(e,i[a],a))});else{let a=[];Array.isArray(i)?i.filter(ey).forEach(function(c){a.push(Bw(e,c))}):Object.keys(i).forEach(function(c){ey(i[c])&&(a.push(ty(c)),a.push(Bw(e,i[c].toString())))}),r$(e)?s.push(ty(r)+"="+a.join(",")):a.length!==0&&s.push(a.join(","))}else e===";"?ey(i)&&s.push(ty(r)):i===""&&(e==="&"||e==="?")?s.push(ty(r)+"="):i===""&&s.push("");return s}o(mmt,"getValues");function gmt(t){return{expand:ymt.bind(null,t)}}o(gmt,"parseUrl");function ymt(t,e){var r=["+","#",".","/",";","?","&"];return t=t.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(n,i,s){if(i){let c="",l=[];if(r.indexOf(i.charAt(0))!==-1&&(c=i.charAt(0),i=i.substr(1)),i.split(/,/g).forEach(function(u){var d=/([^:\*]*)(?::(\d+)|(\*))?/.exec(u);l.push(mmt(e,c,d[1],d[2]||d[3]))}),c&&c!=="+"){var a=",";return c==="?"?a="&":c!=="#"&&(a=c),(l.length!==0?c:"")+l.join(a)}else return l.join(",")}else return $be(s)}),t==="/"?t:t.replace(/\/$/,"")}o(ymt,"expand");function jbe(t){let e=t.method.toUpperCase(),r=(t.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),n=Object.assign({},t.headers),i,s=zbe(t,["method","baseUrl","url","headers","request","mediaType"]),a=Amt(r);r=gmt(r).expand(s),/^http/.test(r)||(r=t.baseUrl+r);let c=Object.keys(t).filter(d=>a.includes(d)).concat("baseUrl"),l=zbe(s,c);if(!/application\/octet-stream/i.test(n.accept)&&(t.mediaType.format&&(n.accept=n.accept.split(/,/).map(d=>d.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${t.mediaType.format}`)).join(",")),r.endsWith("/graphql")&&t.mediaType.previews?.length)){let d=n.accept.match(/(?{let h=t.mediaType.format?`.${t.mediaType.format}`:"+json";return`application/vnd.github.${f}-preview${h}`}).join(",")}return["GET","HEAD"].includes(e)?r=fmt(r,l):"data"in l?i=l.data:Object.keys(l).length&&(i=l),!n["content-type"]&&typeof i<"u"&&(n["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(e)&&typeof i>"u"&&(i=""),Object.assign({method:e,url:r,headers:n},typeof i<"u"?{body:i}:null,t.request?{request:t.request}:null)}o(jbe,"parse");function Emt(t,e,r){return jbe(n$(t,e,r))}o(Emt,"endpointWithDefaults");function Wbe(t,e){let r=n$(t,e),n=Emt.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:Wbe.bind(null,r),merge:n$.bind(null,r),parse:jbe})}o(Wbe,"withDefaults");var Jbe=Wbe(null,lmt);var c0e=T(Zbe(),1);var Cmt=/^-?\d+$/,r0e=/^-?\d+n+$/,i$=JSON.stringify,e0e=JSON.parse,bmt=/^-?\d+n$/,wmt=/([\[:])?"(-?\d+)n"($|([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,Imt=/([\[:])?("-?\d+n+)n("$|"([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,n0e=o((t,e,r)=>"rawJSON"in JSON?i$(t,(a,c)=>typeof c=="bigint"?JSON.rawJSON(c.toString()):typeof e=="function"?e(a,c):(Array.isArray(e)&&e.includes(a),c),r):t?i$(t,(a,c)=>typeof c=="string"&&!!c.match(r0e)||typeof c=="bigint"?c.toString()+"n":typeof e=="function"?e(a,c):(Array.isArray(e)&&e.includes(a),c),r).replace(wmt,"$1$2$3").replace(Imt,"$1$2$3"):i$(t,e,r),"JSONStringify"),Smt=o(()=>JSON.parse("1",(t,e,r)=>!!r&&r.source==="1"),"isContextSourceSupported"),Bmt=o((t,e,r,n)=>typeof e=="string"&&e.match(bmt)?BigInt(e.slice(0,-1)):typeof e=="string"&&e.match(r0e)?e.slice(0,-1):typeof n!="function"?e:n(t,e,r),"convertMarkedBigIntsReviver"),xmt=o((t,e)=>JSON.parse(t,(r,n,i)=>{let s=typeof n=="number"&&(n>Number.MAX_SAFE_INTEGER||n{if(!t)return e0e(t,e);if(Smt())return xmt(t,e);let r=t.replace(vmt,(n,i,s,a)=>{let c=n[0]==='"';if(c&&!!n.match(Nmt))return n.substring(0,n.length-1)+'n"';let u=s||a,d=i&&(i.lengthBmt(n,i,s,e))},"JSONParse");var Cp=class extends Error{static{o(this,"RequestError")}name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let i=Object.assign({},n.request);n.request.headers.authorization&&(i.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?"","noop");async function a0e(t){let e=t.request?.fetch||globalThis.fetch;if(!e)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");let r=t.request?.log||console,n=t.request?.parseSuccessResponseBody!==!1,i=Tmt(t.body)||Array.isArray(t.body)?n0e(t.body):t.body,s=Object.fromEntries(Object.entries(t.headers).map(([f,h])=>[f,String(h)])),a;try{a=await e(t.url,{method:t.method,body:i,redirect:t.request?.redirect,headers:s,signal:t.request?.signal,...t.body&&{duplex:"half"}})}catch(f){let h="Unknown Error";if(f instanceof Error){if(f.name==="AbortError")throw f.status=500,f;h=f.message,f.name==="TypeError"&&"cause"in f&&(f.cause instanceof Error?h=f.cause.message:typeof f.cause=="string"&&(h=f.cause))}let p=new Cp(h,500,{request:t});throw p.cause=f,p}let c=a.status,l=a.url,u={};for(let[f,h]of a.headers)u[f]=h;let d={url:l,status:c,headers:u,data:""};if("deprecation"in u){let f=u.link&&u.link.match(/<([^<>]+)>; rel="deprecation"/),h=f&&f.pop();r.warn(`[@octokit/request] "${t.method} ${t.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${h?`. See ${h}`:""}`)}if(c===204||c===205)return d;if(t.method==="HEAD"){if(c<400)return d;throw new Cp(a.statusText,c,{response:d,request:t})}if(c===304)throw d.data=await s$(a),new Cp("Not modified",c,{response:d,request:t});if(c>=400)throw d.data=await s$(a),new Cp(Qmt(d.data),c,{response:d,request:t});return d.data=n?await s$(a):a.body,d}o(a0e,"fetchWrapper");async function s$(t){let e=t.headers.get("content-type");if(!e)return t.text().catch(o0e);let r=(0,c0e.safeParse)(e);if(Dmt(r)){let n="";try{return n=await t.text(),s0e(n)}catch{return n}}else return r.type.startsWith("text/")||r.parameters.charset?.toLowerCase()==="utf-8"?t.text().catch(o0e):t.arrayBuffer().catch(()=>new ArrayBuffer(0))}o(s$,"getResponseData");function Dmt(t){return t.type==="application/json"||t.type==="application/scim+json"}o(Dmt,"isJSONResponse");function Qmt(t){if(typeof t=="string")return t;if(t instanceof ArrayBuffer)return"Unknown error";if("message"in t){let e="documentation_url"in t?` - ${t.documentation_url}`:"";return Array.isArray(t.errors)?`${t.message}: ${t.errors.map(r=>JSON.stringify(r)).join(", ")}${e}`:`${t.message}${e}`}return`Unknown error: ${JSON.stringify(t)}`}o(Qmt,"toErrorMessage");function o$(t,e){let r=t.defaults(e);return Object.assign(o(function(i,s){let a=r.merge(i,s);if(!a.request||!a.request.hook)return a0e(r.parse(a));let c=o((l,u)=>a0e(r.parse(r.merge(l,u))),"request2");return Object.assign(c,{endpoint:r,defaults:o$.bind(null,r)}),a.request.hook(c,a)},"newApi"),{endpoint:r,defaults:o$.bind(null,r)})}o(o$,"withDefaults");var vw=o$(Jbe,Rmt);var kmt="0.0.0-development";function Pmt(t){return`Request failed due to following response errors: `+t.errors.map(e=>` - ${e.message}`).join(` -`)}o(Dmt,"_buildMessageForResponseErrors");var Qmt=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(Dmt(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},kmt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Pmt=["query","method","url"],c0e=/\/api\/v3\/?$/;function Omt(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let a in r)if(Pmt.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,i=Object.keys(n).reduce((a,c)=>kmt.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),s=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return c0e.test(s)&&(i.url=s.replace(c0e,"/api/graphql")),t(i).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new Qmt(i,c,a.data)}return a.data.data})}o(Omt,"graphql");function o$(t,e){let r=t.defaults(e);return Object.assign(o((i,s)=>Omt(r,i,s),"newApi"),{defaults:o$.bind(null,r),endpoint:r.endpoint})}o(o$,"withDefaults");var WEr=o$(xw,{headers:{"user-agent":`octokit-graphql.js/${Tmt} ${Yd()}`},method:"POST",url:"/graphql"});function l0e(t){return o$(t,{method:"POST",url:"/graphql"})}o(l0e,"withCustomRequest");var a$="(?:[a-zA-Z0-9_-]+)",u0e="\\.",d0e=new RegExp(`^${a$}${u0e}${a$}${u0e}${a$}$`),Lmt=d0e.test.bind(d0e);async function Fmt(t){let e=Lmt(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}o(Fmt,"auth");function Mmt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(Mmt,"withAuthorizationPrefix");async function Umt(t,e,r,n){let i=e.endpoint.merge(r,n);return i.headers.authorization=Mmt(t),e(i)}o(Umt,"hook");var f0e=o(function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(Fmt.bind(null,e),{hook:Umt.bind(null,e)})},"createTokenAuth2");var c$="7.0.6";var h0e=o(()=>{},"noop"),qmt=console.warn.bind(console),Gmt=console.error.bind(console);function Hmt(t={}){return typeof t.debug!="function"&&(t.debug=h0e),typeof t.info!="function"&&(t.info=h0e),typeof t.warn!="function"&&(t.warn=qmt),typeof t.error!="function"&&(t.error=Gmt),t}o(Hmt,"createLogger");var p0e=`octokit-core.js/${c$} ${Yd()}`,v2=class{static{o(this,"Octokit")}static VERSION=c$;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}constructor(...n){let i=n[0]||{};if(typeof e=="function"){super(e(i));return}super(Object.assign({},e,i,i.userAgent&&e.userAgent?{userAgent:`${i.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{o(this,"NewOctokit")}static plugins=r.concat(e.filter(i=>!r.includes(i)))}}constructor(e={}){let r=new qbe.Collection,n={baseUrl:xw.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${p0e}`:p0e,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=xw.defaults(n),this.graphql=l0e(this.request).defaults(n),this.log=Hmt(e.log),this.hook=r,e.authStrategy){let{authStrategy:s,...a}=e,c=s(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let s=f0e(e.auth);r.wrap("request",s.hook),this.auth=s}let i=this.constructor;for(let s=0;s({async next(){if(!c)return{done:!0};try{let l=await i({method:s,url:c,headers:a}),u=Jmt(l);if(c=((u.headers.link||"").match(/<([^<>]+)>;\s*rel="next"/)||[])[1],!c&&"total_commits"in u.data){let d=new URL(u.url),f=d.searchParams,h=parseInt(f.get("page")||"1",10),p=parseInt(f.get("per_page")||"250",10);h*p{if(i.done)return e;let s=!1;function a(){s=!0}return o(a,"done"),e=e.concat(n?n(i.value,a):i.value.data),s?e:g0e(t,e,r,n)})}o(g0e,"gather");var CCr=Object.assign(m0e,{iterator:f$});function h$(t){return{paginate:Object.assign(m0e.bind(null,t),{iterator:f$.bind(null,t)})}}o(h$,"paginateRest");h$.VERSION=Wmt;var xCr=new Xg,p$=Pbe(),bp={baseUrl:p$,request:{agent:Qbe(p$),fetch:kbe(p$)}},y0e=v2.plugin(d$,h$).defaults(bp);function E0e(t,e){let r=Object.assign({},e||{}),n=Dbe(t,r);n&&(r.auth=n);let i=e$(r.userAgent);return i&&(r.userAgent=i),r}o(E0e,"getOctokitOptions");var Fi=new Xg;function Wo(t,e,...r){let n=y0e.plugin(...r);return new n(E0e(t,e))}o(Wo,"getOctokit");var Nw=T(require("http"),1),y$=T(require("https"),1);function A$(t){let e=t.protocol==="https:";if(Ymt(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new R2(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new R2(`http://${r}`)}else return}o(A$,"getProxyUrl");function Ymt(t){if(!t.hostname)return!1;let e=t.hostname;if(Kmt(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let i=[t.hostname.toUpperCase()];typeof n=="number"&&i.push(`${i[0]}:${n}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||i.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}o(Ymt,"checkBypass");function Kmt(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(Kmt,"isLoopbackAddress");var R2=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var Kd=T(_A(),1),C0e=T(yh(),1);var jr=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},ms;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(ms||(ms={}));var Mi;(function(t){t.Accept="accept",t.ContentType="content-type"})(Mi||(Mi={}));var xu;(function(t){t.ApplicationJson="application/json"})(xu||(xu={}));var Zmt=[ms.MovedPermanently,ms.ResourceMoved,ms.SeeOther,ms.TemporaryRedirect,ms.PermanentRedirect],egt=[ms.BadGateway,ms.ServiceUnavailable,ms.GatewayTimeout],tgt=["OPTIONS","GET","DELETE","HEAD"],rgt=10,ngt=5,m$=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}},g$=class{static{o(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return jr(this,void 0,void 0,function*(){return new Promise(e=>jr(this,void 0,void 0,function*(){let r=Buffer.alloc(0);this.message.on("data",n=>{r=Buffer.concat([r,n])}),this.message.on("end",()=>{e(r.toString())})}))})}readBodyBuffer(){return jr(this,void 0,void 0,function*(){return new Promise(e=>jr(this,void 0,void 0,function*(){let r=[];this.message.on("data",n=>{r.push(n)}),this.message.on("end",()=>{e(Buffer.concat(r))})}))})}};var _2=class{static{o(this,"HttpClient")}constructor(e,r,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=r||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,r){return jr(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,r||{})})}get(e,r){return jr(this,void 0,void 0,function*(){return this.request("GET",e,null,r||{})})}del(e,r){return jr(this,void 0,void 0,function*(){return this.request("DELETE",e,null,r||{})})}post(e,r,n){return jr(this,void 0,void 0,function*(){return this.request("POST",e,r,n||{})})}patch(e,r,n){return jr(this,void 0,void 0,function*(){return this.request("PATCH",e,r,n||{})})}put(e,r,n){return jr(this,void 0,void 0,function*(){return this.request("PUT",e,r,n||{})})}head(e,r){return jr(this,void 0,void 0,function*(){return this.request("HEAD",e,null,r||{})})}sendStream(e,r,n,i){return jr(this,void 0,void 0,function*(){return this.request(e,r,n,i)})}getJson(e){return jr(this,arguments,void 0,function*(r,n={}){n[Mi.Accept]=this._getExistingOrDefaultHeader(n,Mi.Accept,xu.ApplicationJson);let i=yield this.get(r,n);return this._processResponse(i,this.requestOptions)})}postJson(e,r){return jr(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[Mi.Accept]=this._getExistingOrDefaultHeader(s,Mi.Accept,xu.ApplicationJson),s[Mi.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,xu.ApplicationJson);let c=yield this.post(n,a,s);return this._processResponse(c,this.requestOptions)})}putJson(e,r){return jr(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[Mi.Accept]=this._getExistingOrDefaultHeader(s,Mi.Accept,xu.ApplicationJson),s[Mi.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,xu.ApplicationJson);let c=yield this.put(n,a,s);return this._processResponse(c,this.requestOptions)})}patchJson(e,r){return jr(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[Mi.Accept]=this._getExistingOrDefaultHeader(s,Mi.Accept,xu.ApplicationJson),s[Mi.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,xu.ApplicationJson);let c=yield this.patch(n,a,s);return this._processResponse(c,this.requestOptions)})}request(e,r,n,i){return jr(this,void 0,void 0,function*(){if(this._disposed)throw new Error("Client has already been disposed.");let s=new URL(r),a=this._prepareRequest(e,s,i),c=this._allowRetries&&tgt.includes(e)?this._maxRetries+1:1,l=0,u;do{if(u=yield this.requestRaw(a,n),u&&u.message&&u.message.statusCode===ms.Unauthorized){let f;for(let h of this.handlers)if(h.canHandleAuthentication(u)){f=h;break}return f?f.handleAuthentication(this,a,n):u}let d=this._maxRedirects;for(;u.message.statusCode&&Zmt.includes(u.message.statusCode)&&this._allowRedirects&&d>0;){let f=u.message.headers.location;if(!f)break;let h=new URL(f);if(s.protocol==="https:"&&s.protocol!==h.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield u.readBody(),h.hostname!==s.hostname)for(let p in i)p.toLowerCase()==="authorization"&&delete i[p];a=this._prepareRequest(e,h,i),u=yield this.requestRaw(a,n),d--}if(!u.message.statusCode||!egt.includes(u.message.statusCode))return u;l+=1,l{function s(a,c){a?i(a):c?n(c):i(new Error("Unknown error"))}o(s,"callbackForResult"),this.requestRawWithCallback(e,r,s)})})}requestRawWithCallback(e,r,n){typeof r=="string"&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8"));let i=!1;function s(l,u){i||(i=!0,n(l,u))}o(s,"handleResult");let a=e.httpModule.request(e.options,l=>{let u=new g$(l);s(void 0,u)}),c;a.on("socket",l=>{c=l}),a.setTimeout(this._socketTimeout||3*6e4,()=>{c&&c.end(),s(new Error(`Request timeout: ${e.options.path}`))}),a.on("error",function(l){s(l)}),r&&typeof r=="string"&&a.write(r,"utf8"),r&&typeof r!="string"?(r.on("close",function(){a.end()}),r.pipe(a)):a.end()}getAgent(e){let r=new URL(e);return this._getAgent(r)}getAgentDispatcher(e){let r=new URL(e),n=A$(r);if(n&&n.hostname)return this._getProxyAgentDispatcher(r,n)}_prepareRequest(e,r,n){let i={};i.parsedUrl=r;let s=i.parsedUrl.protocol==="https:";i.httpModule=s?y$:Nw;let a=s?443:80;if(i.options={},i.options.host=i.parsedUrl.hostname,i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):a,i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||""),i.options.method=e,i.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(i.options.headers["user-agent"]=this.userAgent),i.options.agent=this._getAgent(i.parsedUrl),this.handlers)for(let c of this.handlers)c.prepareRequest(i.options);return i}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},vw(this.requestOptions.headers),vw(e||{})):vw(e||{})}_getExistingOrDefaultHeader(e,r,n){let i;if(this.requestOptions&&this.requestOptions.headers){let a=vw(this.requestOptions.headers)[r];a&&(i=typeof a=="number"?a.toString():a)}let s=e[r];return s!==void 0?typeof s=="number"?s.toString():s:i!==void 0?i:n}_getExistingOrDefaultContentTypeHeader(e,r){let n;if(this.requestOptions&&this.requestOptions.headers){let s=vw(this.requestOptions.headers)[Mi.ContentType];s&&(typeof s=="number"?n=String(s):Array.isArray(s)?n=s.join(", "):n=s)}let i=e[Mi.ContentType];return i!==void 0?typeof i=="number"?String(i):Array.isArray(i)?i.join(", "):i:n!==void 0?n:r}_getAgent(e){let r,n=A$(e),i=n&&n.hostname;if(this._keepAlive&&i&&(r=this._proxyAgent),i||(r=this._agent),r)return r;let s=e.protocol==="https:",a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||Nw.globalAgent.maxSockets),n&&n.hostname){let c={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},l,u=n.protocol==="https:";s?l=u?Kd.httpsOverHttps:Kd.httpsOverHttp:l=u?Kd.httpOverHttps:Kd.httpOverHttp,r=l(c),this._proxyAgent=r}if(!r){let c={keepAlive:this._keepAlive,maxSockets:a};r=s?new y$.Agent(c):new Nw.Agent(c),this._agent=r}return s&&this._ignoreSslError&&(r.options=Object.assign(r.options||{},{rejectUnauthorized:!1})),r}_getProxyAgentDispatcher(e,r){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;let i=e.protocol==="https:";return n=new C0e.ProxyAgent(Object.assign({uri:r.href,pipelining:this._keepAlive?1:0},(r.username||r.password)&&{token:`Basic ${Buffer.from(`${r.username}:${r.password}`).toString("base64")}`})),this._proxyAgentDispatcher=n,i&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_getUserAgentWithOrchestrationId(e){let r=e||"actions/http-client",n=process.env.ACTIONS_ORCHESTRATION_ID;if(n){let i=n.replace(/[^a-z0-9_.-]/gi,"_");return`${r} actions_orchestration_id/${i}`}return r}_performExponentialBackoff(e){return jr(this,void 0,void 0,function*(){e=Math.min(rgt,e);let r=ngt*Math.pow(2,e);return new Promise(n=>setTimeout(()=>n(),r))})}_processResponse(e,r){return jr(this,void 0,void 0,function*(){return new Promise((n,i)=>jr(this,void 0,void 0,function*(){let s=e.message.statusCode||0,a={statusCode:s,result:null,headers:{}};s===ms.NotFound&&n(a);function c(d,f){if(typeof f=="string"){let h=new Date(f);if(!isNaN(h.valueOf()))return h}return f}o(c,"dateTimeDeserializer");let l,u;try{u=yield e.readBody(),u&&u.length>0&&(r&&r.deserializeDates?l=JSON.parse(u,c):l=JSON.parse(u),a.result=l),a.headers=e.message.headers}catch{}if(s>299){let d;l&&l.message?d=l.message:u&&u.length>0?d=u:d=`Failed request: (${s})`;let f=new m$(d,s);f.result=a.result,i(f)}else n(a)}))})}},vw=o(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys");var I0e=require("stream/consumers");var wp=class extends Error{static{o(this,"InvalidTokenError")}};wp.prototype.name="InvalidTokenError";function igt(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}o(igt,"b64DecodeUnicode");function sgt(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return igt(e)}catch{return atob(e)}}o(sgt,"base64UrlDecode");function T2(t,e){if(typeof t!="string")throw new wp("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new wp(`Invalid token specified: missing part #${r+1}`);let i;try{i=sgt(n)}catch(s){throw new wp(`Invalid token specified: invalid base64 for part #${r+1} (${s.message})`)}try{return JSON.parse(i)}catch(s){throw new wp(`Invalid token specified: invalid json for part #${r+1} (${s.message})`)}}o(T2,"jwtDecode");var D2=[1e3,3e3],ogt=new Set(["ECONNRESET","ETIMEDOUT","EAI_AGAIN","ECONNREFUSED","EPIPE","ERR_STREAM_PREMATURE_CLOSE"]),Ke=class t{static{o(this,"GitHub")}githubToken;octokit;constructor(e){this.githubToken=e?.token||process.env.GITHUB_TOKEN,this.octokit=Wo(`${this.githubToken}`)}repoData(){return this.octokit.rest.repos.get({...Fi.repo}).then(e=>e.data)}async releases(e,r){let n;try{n=await this.releasesRaw(e,r)}catch(i){if(!this.githubToken)throw i;n=await this.releasesRaw(e,r,this.githubToken)}return n}async releasesRaw(e,r,n){let i=`https://raw.githubusercontent.com/${r.owner}/${r.repo}/${r.ref}/${r.path}`,s=n?{Authorization:`token ${n}`}:void 0,a;for(let c=0;c<=D2.length;c++)try{let u=await new _2("docker-actions-toolkit").get(i,s),d=await(0,I0e.text)(u.message),f=u.message.statusCode||500;if(f>=400){let h=new Error(`Failed to get ${e} releases from ${i} with status code ${f}: ${d}`);throw h.statusCode=f,h}return JSON.parse(d)}catch(l){if(a=l instanceof Error?l:new Error(`${l}`),!t.isRetryableReleaseError(a)||c===D2.length)throw a;D(`${a.message}. Retrying (${c+1}/${D2.length})...`),await new Promise(u=>setTimeout(u,D2[c]))}throw a||new Error(`Failed to get ${e} releases from ${i}`)}static isRetryableReleaseError(e){let r=e.statusCode;if(r)return r===408||r===429||r>=500;let n=e.code,i=e.message.toLowerCase();return n&&ogt.has(n)||i.includes("socket hang up")||i.includes("read econnreset")}static get context(){return Fi}static get serverURL(){return process.env.GITHUB_SERVER_URL||"https://github.com"}static get apiURL(){return process.env.GITHUB_API_URL||"https://api.github.com"}static get isGHES(){let r=new URL(t.serverURL).hostname.trimEnd().toUpperCase(),n=r==="GITHUB.COM",i=r.endsWith(".GHE.COM"),s=r.endsWith(".LOCALHOST");return!n&&!i&&!s}static get repository(){return`${Fi.repo.owner}/${Fi.repo.repo}`}static get workspace(){return process.env.GITHUB_WORKSPACE||process.cwd()}static get runId(){return process.env.GITHUB_RUN_ID?+process.env.GITHUB_RUN_ID:Fi.runId}static get runAttempt(){return process.env.GITHUB_RUN_ATTEMPT?+process.env.GITHUB_RUN_ATTEMPT:1}static workflowRunURL(e){return`${t.serverURL}/${t.repository}/actions/runs/${t.runId}${e?`/attempts/${t.runAttempt}`:""}`}static get actionsRuntimeToken(){let e=process.env.ACTIONS_RUNTIME_TOKEN||"";return e?T2(e):void 0}static printUntrusted(e){let r=w0e.randomUUID();D(`::stop-commands::${r}`);try{D(e)}finally{D(`::${r}::`)}}static async printActionsRuntimeTokenACs(){let e;try{e=t.actionsRuntimeToken}catch(r){throw new Error(`Cannot parse GitHub Actions Runtime Token: ${r.message}`)}if(!e)throw new Error("ACTIONS_RUNTIME_TOKEN not set");try{JSON.parse(`${e.ac}`).forEach(r=>{let n;switch(r.Permission){case 1:n="read";break;case 2:n="write";break;case 3:n="read/write";break;default:n=`unimplemented (${r.Permission})`}D(`${r.Scope}: ${n}`)})}catch(r){throw new Error(`Cannot parse GitHub Actions Runtime Token ACs: ${r.message}`)}}};var pt=class t{static{o(this,"Buildx")}_version;_versionOnce;_standalone;static containerNamePrefix="buildx_buildkit_";constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}static get configDir(){return process.env.BUILDX_CONFIG||gs.default.join(Vr.configDir,"buildx")}static get refsDir(){return gs.default.join(t.configDir,"refs")}static get refsGroupDir(){return gs.default.join(t.refsDir,"__group__")}static get certsDir(){return gs.default.join(t.configDir,"certs")}async isStandalone(){let e=this._standalone??!await Vr.isAvailable();return v(`Buildx.isStandalone: ${e}`),e}async getCommand(e){let r=await this.isStandalone();return{command:r?"buildx":"docker",args:r?e:["buildx",...e]}}async isAvailable(){let e=await this.getCommand([]),r=await Ie.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(n=>n.stderr.length>0&&n.exitCode!=0?(v(`Buildx.isAvailable cmd err: ${n.stderr.trim()}`),!1):n.exitCode==0).catch(n=>(v(`Buildx.isAvailable error: ${n}`),!1));return v(`Buildx.isAvailable: ${r}`),r}async version(){if(this._versionOnce)return this._version;this._versionOnce=!0;let e=await this.getCommand(["version"]);return this._version=await Ie.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr.trim());return t.parseVersion(r.stdout.trim())}),this._version}async printVersion(){let e=await this.getCommand(["version"]);await Ie.exec(e.command,e.args,{failOnStdErr:!1})}static parseVersion(e){let r=/\sv?([0-9a-f]{7}|[0-9.]+)/.exec(e);if(!r)throw new Error("Cannot parse buildx version");return r[1]}static getErrorMessage(e){let r=(0,S0e.stripVTControlCharacters)(e).split(/[\r\n]/),n="";for(let i=r.length-1;i>=0;i--){let s=r[i].trim();if(s.startsWith("ERROR:"))return s.slice(6).trim()||"unknown error";n||=s}return n||"unknown error"}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return v("Buildx.versionSatisfies false: undefined version"),!1;let i=B0e.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return v(`Buildx.versionSatisfies ${n} statisfies ${e}: ${i}`),i}static resolveCertsDriverOpts(e,r,n){let i;try{i=new URL(r)}catch{return[]}if(i.protocol!="tcp:")return[];let s=[];if(Object.keys(n).length==0)return s;let a=i.hostname;if(i.port.length>0&&(a+=`-${i.port}`),n.cacert!==void 0){let c=gs.default.join(t.certsDir,`cacert_${a}.pem`);Jo.default.writeFileSync(c,n.cacert),s.push(`cacert=${c}`)}if(n.cert!==void 0){let c=gs.default.join(t.certsDir,`cert_${a}.pem`);Jo.default.writeFileSync(c,n.cert),s.push(`cert=${c}`)}if(n.key!==void 0){let c=gs.default.join(t.certsDir,`key_${a}.pem`);Jo.default.writeFileSync(c,n.key),s.push(`key=${c}`)}return e!="remote"?[]:s}static localState(e,r){let[n,i,s]=e.split("/");if(!n||!i||!s)throw new Error(`Invalid build reference: ${e}`);let a=gs.default.join(r||t.refsDir,n,i,s);if(!Jo.default.existsSync(a))throw new Error(`Local state not found in ${a}`);return t.fixLocalState(JSON.parse(Jo.default.readFileSync(a,"utf8")))}static fixLocalState(e){let r=o(function(a){let c=a.match(/(.*)(https?:\/{1,2}\S+|ssh:\/{1,2}\S+|git:\/{1,2}\S+)/i);if(c&&c.length==3){let l=c[1],u=c[2];return u.startsWith("https:/")&&!u.startsWith("https://")&&(u=u.replace("https:/","https://")),u.startsWith("http:/")&&!u.startsWith("http://")&&(u=u.replace("http:/","http://")),u.startsWith("ssh:/")&&!u.startsWith("ssh://")&&(u=u.replace("ssh:/","ssh://")),u.startsWith("git:/")&&!u.startsWith("git://")&&(u=u.replace("git:/","git://")),[u,l,!0]}return[a,"",!1]},"fnTrimToValidContext"),[n,i,s]=r(e.LocalPath);return s&&(e.LocalPath=n,e.DockerfilePath.indexOf(i)===0&&(e.DockerfilePath=e.DockerfilePath.substring(i.length))),e.LocalPath=e.LocalPath.endsWith("/-")?"-":e.LocalPath,e.DockerfilePath=e.DockerfilePath.endsWith("/-")?"-":e.DockerfilePath,e}static refs(e,r={}){let{dir:n,builderName:i,nodeName:s,since:a}=e,c=gs.default.resolve(n);if(e.builderName&&(c=gs.default.join(c,e.builderName)),e.nodeName&&(c=gs.default.join(c,e.nodeName)),!Jo.default.existsSync(c))return r;let l=Jo.default.readdirSync(c);for(let u of l){let d=gs.default.join(c,u),f=Jo.default.statSync(d);if(f.isDirectory()){let h={...e};if(i)s||(h.nodeName=u);else{if(u==="__group__")continue;h.builderName=u}t.refs(h,r)}else{if(a&&f.mtimeatob(A)).join(" "),h=atob(l.short).replace(/\s\(line \d+\)$/,"");l.url&&(h+=` -More info: ${l.url}`);let p=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,m=!1;for(let A of a)if(A.remote||A.path.endsWith(u)&&A.content===d){c.push({title:f,message:h,file:A.path,startLine:p}),m=!0;break}m||v(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${f}`)}return c}};var E$=T(require("fs"),1),C$=T(require("path"),1);var Q2=class t{static{o(this,"History")}buildx;constructor(e){this.buildx=e?.buildx||new pt}async getCommand(e){return await this.buildx.getCommand(["history",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getExportCommand(e){return await this.getCommand(["export",...e])}async inspect(e){let r=["--format","json"];e.builder&&r.push("--builder",e.builder),e.ref&&r.push(e.ref);let n=await this.getInspectCommand(r);return await Ie.getExecOutput(n.command,n.args,{ignoreReturnCode:!0,silent:!0}).then(i=>{if(i.stderr.length>0&&i.exitCode!=0)throw new Error(i.stderr.trim());return JSON.parse(i.stdout)})}async export(e){if(!await this.buildx.versionSatisfies(">=0.23.0"))throw new Error("Buildx >= 0.23.0 is required to export a build record");let r="",n="",i=[];for(let f of e.refs){let h=f.split("/");if(h.length!=3)throw new Error(`Invalid build ref: ${f}`);i.push(h[2]),r||(r=h[0]),n||(n=h[1])}if(i.length===0)throw new Error("No build refs provided");let s=C$.default.join(ht.tmpDir(),"export");D(`exporting build record to ${s}`),E$.default.mkdirSync(s,{recursive:!0}),await this.buildx.versionSatisfies("<0.24.0")&&await Oe.sleep(3);let a={};if(!e.noSummaries)for(let f of i)await this.inspect({ref:f,builder:r}).then(h=>{let p="";h.Error&&h.Status!=="canceled"&&(h.Error.Message?p=h.Error.Message:h.Error.Name&&h.Error.Logs&&(p=`=> ${h.Error.Name} -${h.Error.Logs}`)),a[f]={name:h.Name,status:h.Status,duration:Oe.formatDuration(h.Duration),numCachedSteps:h.NumCachedSteps,numTotalSteps:h.NumTotalSteps,numCompletedSteps:h.NumCompletedSteps,defaultPlatform:h.Platform?.[0],error:p}});let c=C$.default.join(s,`${t.exportFilename(i)}.dockerbuild`),l=["--builder",r,"--output",c,...i];await this.buildx.versionSatisfies(">=0.24.0")&&l.push("--finalize");let u=await this.getExportCommand(l);await Ie.getExecOutput(u.command,u.args);let d=E$.default.statSync(c);return{dockerbuildFilename:c,dockerbuildSize:d.size,builderName:r,nodeName:n,refs:i,summaries:a}}static exportFilename(e){let r=`${Ke.context.repo.owner}~${Ke.context.repo.repo}~${e[0].substring(0,6).toUpperCase()}`;return e.length>1&&(r+=`+${e.length-1}`),r}};var gQe=T(require("fs"),1),oJ=T(require("path"),1);var x0e=T(require("os"),1);function Ip(){return 8*1024*1024}o(Ip,"getUploadChunkSize");function k2(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(k2,"getRuntimeToken");function v0e(){let t=process.env.ACTIONS_RESULTS_URL;if(!t)throw new Error("Unable to get the ACTIONS_RESULTS_URL env variable");return new URL(t).origin}o(v0e,"getResultsServiceUrl");function ty(){let e=new URL(process.env.GITHUB_SERVER_URL||"https://github.com").hostname.trimEnd().toUpperCase(),r=e==="GITHUB.COM",n=e.endsWith(".GHE.COM"),i=e.endsWith(".LOCALHOST");return!r&&!n&&!i}o(ty,"isGhes");function N0e(){let t=process.env.GITHUB_WORKSPACE;if(!t)throw new Error("Unable to get the GITHUB_WORKSPACE env variable");return t}o(N0e,"getGitHubWorkspaceDir");function R0e(){let t=x0e.default.cpus().length,e=32;if(t>4){let n=16*t;e=n>300?300:n}let r=process.env.ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY;if(r){let n=parseInt(r);if(isNaN(n)||n<1)throw new Error("Invalid value set for ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY env variable");return nDate.parse("9999-12-31T23:59:59Z"))throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(e.nanos<0)throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");let i="Z";if(e.nanos>0){let s=(e.nanos+1e9).toString().substring(1);s.substring(3)==="000000"?i="."+s.substring(0,3)+"Z":s.substring(6)==="000"?i="."+s.substring(0,6)+"Z":i="."+s+"Z"}return new Date(n).toISOString().replace(".000Z",i)}internalJsonRead(e,r,n){if(typeof e!="string")throw new Error("Unable to parse Timestamp from JSON "+(0,k0e.typeofJsonValue)(e)+".");let i=e.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!i)throw new Error("Unable to parse Timestamp from JSON. Invalid format.");let s=Date.parse(i[1]+"-"+i[2]+"-"+i[3]+"T"+i[4]+":"+i[5]+":"+i[6]+(i[8]?i[8]:"Z"));if(Number.isNaN(s))throw new Error("Unable to parse Timestamp from JSON. Invalid value.");if(sDate.parse("9999-12-31T23:59:59Z"))throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");return n||(n=this.create()),n.seconds=ry.PbLong.from(s/1e3).toString(),n.nanos=0,i[7]&&(n.nanos=parseInt("1"+i[7]+"0".repeat(9-i[7].length))-1e9),n}create(e){let r={seconds:"0",nanos:0};return globalThis.Object.defineProperty(r,Q0e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,D0e.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.posto,"T")},{no:5,name:"version",kind:"scalar",T:5},{no:6,name:"mime_type",kind:"message",T:o(()=>nn,"T")}])}create(e){let r={workflowRunBackendId:"",workflowJobRunBackendId:"",name:"",version:0};return globalThis.Object.defineProperty(r,Ko.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Yo.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.posnn,"T")}])}create(e){let r={workflowRunBackendId:"",workflowJobRunBackendId:"",name:"",size:"0"};return globalThis.Object.defineProperty(r,Ko.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Yo.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.posnn,"T")},{no:4,name:"id_filter",kind:"message",T:o(()=>ny,"T")}])}create(e){let r={workflowRunBackendId:"",workflowJobRunBackendId:""};return globalThis.Object.defineProperty(r,Ko.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Yo.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.posk$,"T")}])}create(e){let r={artifacts:[]};return globalThis.Object.defineProperty(r,Ko.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Yo.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.posto,"T")},{no:7,name:"digest",kind:"message",T:o(()=>nn,"T")}])}create(e){let r={workflowRunBackendId:"",workflowJobRunBackendId:"",databaseId:"0",name:"",size:"0"};return globalThis.Object.defineProperty(r,Ko.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Yo.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.posj$.fromJson(i,{ignoreUnknownFields:!0}))}FinalizeArtifact(e){let r=W$.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.ArtifactService","FinalizeArtifact","application/json",r).then(i=>J$.fromJson(i,{ignoreUnknownFields:!0}))}ListArtifacts(e){let r=Y$.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.ArtifactService","ListArtifacts","application/json",r).then(i=>K$.fromJson(i,{ignoreUnknownFields:!0}))}GetSignedArtifactURL(e){let r=X$.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.ArtifactService","GetSignedArtifactURL","application/json",r).then(i=>Z$.fromJson(i,{ignoreUnknownFields:!0}))}DeleteArtifact(e){let r=e8.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.ArtifactService","DeleteArtifact","application/json",r).then(i=>t8.fromJson(i,{ignoreUnknownFields:!0}))}};function L0e(t){if(!t)return;let e=agt();e&&e"," Greater than >"],["|"," Vertical bar |"],["*"," Asterisk *"],["?"," Question mark ?"],["\r"," Carriage return \\r"],[` -`," Line feed \\n"]]),F0e=new Map([...r8,["\\"," Backslash \\"],["/"," Forward slash /"]]);function M0e(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of F0e)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r} +`)}o(Pmt,"_buildMessageForResponseErrors");var Omt=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(Pmt(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},Lmt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Fmt=["query","method","url"],l0e=/\/api\/v3\/?$/;function Mmt(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let a in r)if(Fmt.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,i=Object.keys(n).reduce((a,c)=>Lmt.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),s=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return l0e.test(s)&&(i.url=s.replace(l0e,"/api/graphql")),t(i).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new Omt(i,c,a.data)}return a.data.data})}o(Mmt,"graphql");function a$(t,e){let r=t.defaults(e);return Object.assign(o((i,s)=>Mmt(r,i,s),"newApi"),{defaults:a$.bind(null,r),endpoint:r.endpoint})}o(a$,"withDefaults");var XEr=a$(vw,{headers:{"user-agent":`octokit-graphql.js/${kmt} ${Kd()}`},method:"POST",url:"/graphql"});function u0e(t){return a$(t,{method:"POST",url:"/graphql"})}o(u0e,"withCustomRequest");var c$="(?:[a-zA-Z0-9_-]+)",d0e="\\.",f0e=new RegExp(`^${c$}${d0e}${c$}${d0e}${c$}$`),Umt=f0e.test.bind(f0e);async function qmt(t){let e=Umt(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}o(qmt,"auth");function Gmt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(Gmt,"withAuthorizationPrefix");async function Hmt(t,e,r,n){let i=e.endpoint.merge(r,n);return i.headers.authorization=Gmt(t),e(i)}o(Hmt,"hook");var h0e=o(function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(qmt.bind(null,e),{hook:Hmt.bind(null,e)})},"createTokenAuth2");var l$="7.0.6";var p0e=o(()=>{},"noop"),zmt=console.warn.bind(console),Vmt=console.error.bind(console);function $mt(t={}){return typeof t.debug!="function"&&(t.debug=p0e),typeof t.info!="function"&&(t.info=p0e),typeof t.warn!="function"&&(t.warn=zmt),typeof t.error!="function"&&(t.error=Vmt),t}o($mt,"createLogger");var A0e=`octokit-core.js/${l$} ${Kd()}`,N2=class{static{o(this,"Octokit")}static VERSION=l$;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}constructor(...n){let i=n[0]||{};if(typeof e=="function"){super(e(i));return}super(Object.assign({},e,i,i.userAgent&&e.userAgent?{userAgent:`${i.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{o(this,"NewOctokit")}static plugins=r.concat(e.filter(i=>!r.includes(i)))}}constructor(e={}){let r=new Gbe.Collection,n={baseUrl:vw.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${A0e}`:A0e,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=vw.defaults(n),this.graphql=u0e(this.request).defaults(n),this.log=$mt(e.log),this.hook=r,e.authStrategy){let{authStrategy:s,...a}=e,c=s(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let s=h0e(e.auth);r.wrap("request",s.hook),this.auth=s}let i=this.constructor;for(let s=0;s({async next(){if(!c)return{done:!0};try{let l=await i({method:s,url:c,headers:a}),u=Xmt(l);if(c=((u.headers.link||"").match(/<([^<>]+)>;\s*rel="next"/)||[])[1],!c&&"total_commits"in u.data){let d=new URL(u.url),f=d.searchParams,h=parseInt(f.get("page")||"1",10),p=parseInt(f.get("per_page")||"250",10);h*p{if(i.done)return e;let s=!1;function a(){s=!0}return o(a,"done"),e=e.concat(n?n(i.value,a):i.value.data),s?e:y0e(t,e,r,n)})}o(y0e,"gather");var SCr=Object.assign(g0e,{iterator:h$});function p$(t){return{paginate:Object.assign(g0e.bind(null,t),{iterator:h$.bind(null,t)})}}o(p$,"paginateRest");p$.VERSION=Kmt;var RCr=new Zg,A$=Obe(),wp={baseUrl:A$,request:{agent:kbe(A$),fetch:Pbe(A$)}},E0e=N2.plugin(f$,p$).defaults(wp);function C0e(t,e){let r=Object.assign({},e||{}),n=Qbe(t,r);n&&(r.auth=n);let i=t$(r.userAgent);return i&&(r.userAgent=i),r}o(C0e,"getOctokitOptions");var Fi=new Zg;function Wo(t,e,...r){let n=E0e.plugin(...r);return new n(C0e(t,e))}o(Wo,"getOctokit");var _w=T(require("http"),1),E$=T(require("https"),1);function m$(t){let e=t.protocol==="https:";if(Zmt(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new R2(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new R2(`http://${r}`)}else return}o(m$,"getProxyUrl");function Zmt(t){if(!t.hostname)return!1;let e=t.hostname;if(egt(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let i=[t.hostname.toUpperCase()];typeof n=="number"&&i.push(`${i[0]}:${n}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||i.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}o(Zmt,"checkBypass");function egt(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(egt,"isLoopbackAddress");var R2=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var Xd=T(TA(),1),b0e=T(Eh(),1);var jr=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},ms;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(ms||(ms={}));var Mi;(function(t){t.Accept="accept",t.ContentType="content-type"})(Mi||(Mi={}));var vu;(function(t){t.ApplicationJson="application/json"})(vu||(vu={}));var rgt=[ms.MovedPermanently,ms.ResourceMoved,ms.SeeOther,ms.TemporaryRedirect,ms.PermanentRedirect],ngt=[ms.BadGateway,ms.ServiceUnavailable,ms.GatewayTimeout],igt=["OPTIONS","GET","DELETE","HEAD"],sgt=10,ogt=5,g$=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}},y$=class{static{o(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return jr(this,void 0,void 0,function*(){return new Promise(e=>jr(this,void 0,void 0,function*(){let r=Buffer.alloc(0);this.message.on("data",n=>{r=Buffer.concat([r,n])}),this.message.on("end",()=>{e(r.toString())})}))})}readBodyBuffer(){return jr(this,void 0,void 0,function*(){return new Promise(e=>jr(this,void 0,void 0,function*(){let r=[];this.message.on("data",n=>{r.push(n)}),this.message.on("end",()=>{e(Buffer.concat(r))})}))})}};var T2=class{static{o(this,"HttpClient")}constructor(e,r,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=r||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,r){return jr(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,r||{})})}get(e,r){return jr(this,void 0,void 0,function*(){return this.request("GET",e,null,r||{})})}del(e,r){return jr(this,void 0,void 0,function*(){return this.request("DELETE",e,null,r||{})})}post(e,r,n){return jr(this,void 0,void 0,function*(){return this.request("POST",e,r,n||{})})}patch(e,r,n){return jr(this,void 0,void 0,function*(){return this.request("PATCH",e,r,n||{})})}put(e,r,n){return jr(this,void 0,void 0,function*(){return this.request("PUT",e,r,n||{})})}head(e,r){return jr(this,void 0,void 0,function*(){return this.request("HEAD",e,null,r||{})})}sendStream(e,r,n,i){return jr(this,void 0,void 0,function*(){return this.request(e,r,n,i)})}getJson(e){return jr(this,arguments,void 0,function*(r,n={}){n[Mi.Accept]=this._getExistingOrDefaultHeader(n,Mi.Accept,vu.ApplicationJson);let i=yield this.get(r,n);return this._processResponse(i,this.requestOptions)})}postJson(e,r){return jr(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[Mi.Accept]=this._getExistingOrDefaultHeader(s,Mi.Accept,vu.ApplicationJson),s[Mi.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,vu.ApplicationJson);let c=yield this.post(n,a,s);return this._processResponse(c,this.requestOptions)})}putJson(e,r){return jr(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[Mi.Accept]=this._getExistingOrDefaultHeader(s,Mi.Accept,vu.ApplicationJson),s[Mi.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,vu.ApplicationJson);let c=yield this.put(n,a,s);return this._processResponse(c,this.requestOptions)})}patchJson(e,r){return jr(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[Mi.Accept]=this._getExistingOrDefaultHeader(s,Mi.Accept,vu.ApplicationJson),s[Mi.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,vu.ApplicationJson);let c=yield this.patch(n,a,s);return this._processResponse(c,this.requestOptions)})}request(e,r,n,i){return jr(this,void 0,void 0,function*(){if(this._disposed)throw new Error("Client has already been disposed.");let s=new URL(r),a=this._prepareRequest(e,s,i),c=this._allowRetries&&igt.includes(e)?this._maxRetries+1:1,l=0,u;do{if(u=yield this.requestRaw(a,n),u&&u.message&&u.message.statusCode===ms.Unauthorized){let f;for(let h of this.handlers)if(h.canHandleAuthentication(u)){f=h;break}return f?f.handleAuthentication(this,a,n):u}let d=this._maxRedirects;for(;u.message.statusCode&&rgt.includes(u.message.statusCode)&&this._allowRedirects&&d>0;){let f=u.message.headers.location;if(!f)break;let h=new URL(f);if(s.protocol==="https:"&&s.protocol!==h.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield u.readBody(),h.hostname!==s.hostname)for(let p in i)p.toLowerCase()==="authorization"&&delete i[p];a=this._prepareRequest(e,h,i),u=yield this.requestRaw(a,n),d--}if(!u.message.statusCode||!ngt.includes(u.message.statusCode))return u;l+=1,l{function s(a,c){a?i(a):c?n(c):i(new Error("Unknown error"))}o(s,"callbackForResult"),this.requestRawWithCallback(e,r,s)})})}requestRawWithCallback(e,r,n){typeof r=="string"&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8"));let i=!1;function s(l,u){i||(i=!0,n(l,u))}o(s,"handleResult");let a=e.httpModule.request(e.options,l=>{let u=new y$(l);s(void 0,u)}),c;a.on("socket",l=>{c=l}),a.setTimeout(this._socketTimeout||3*6e4,()=>{c&&c.end(),s(new Error(`Request timeout: ${e.options.path}`))}),a.on("error",function(l){s(l)}),r&&typeof r=="string"&&a.write(r,"utf8"),r&&typeof r!="string"?(r.on("close",function(){a.end()}),r.pipe(a)):a.end()}getAgent(e){let r=new URL(e);return this._getAgent(r)}getAgentDispatcher(e){let r=new URL(e),n=m$(r);if(n&&n.hostname)return this._getProxyAgentDispatcher(r,n)}_prepareRequest(e,r,n){let i={};i.parsedUrl=r;let s=i.parsedUrl.protocol==="https:";i.httpModule=s?E$:_w;let a=s?443:80;if(i.options={},i.options.host=i.parsedUrl.hostname,i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):a,i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||""),i.options.method=e,i.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(i.options.headers["user-agent"]=this.userAgent),i.options.agent=this._getAgent(i.parsedUrl),this.handlers)for(let c of this.handlers)c.prepareRequest(i.options);return i}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},Nw(this.requestOptions.headers),Nw(e||{})):Nw(e||{})}_getExistingOrDefaultHeader(e,r,n){let i;if(this.requestOptions&&this.requestOptions.headers){let a=Nw(this.requestOptions.headers)[r];a&&(i=typeof a=="number"?a.toString():a)}let s=e[r];return s!==void 0?typeof s=="number"?s.toString():s:i!==void 0?i:n}_getExistingOrDefaultContentTypeHeader(e,r){let n;if(this.requestOptions&&this.requestOptions.headers){let s=Nw(this.requestOptions.headers)[Mi.ContentType];s&&(typeof s=="number"?n=String(s):Array.isArray(s)?n=s.join(", "):n=s)}let i=e[Mi.ContentType];return i!==void 0?typeof i=="number"?String(i):Array.isArray(i)?i.join(", "):i:n!==void 0?n:r}_getAgent(e){let r,n=m$(e),i=n&&n.hostname;if(this._keepAlive&&i&&(r=this._proxyAgent),i||(r=this._agent),r)return r;let s=e.protocol==="https:",a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||_w.globalAgent.maxSockets),n&&n.hostname){let c={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},l,u=n.protocol==="https:";s?l=u?Xd.httpsOverHttps:Xd.httpsOverHttp:l=u?Xd.httpOverHttps:Xd.httpOverHttp,r=l(c),this._proxyAgent=r}if(!r){let c={keepAlive:this._keepAlive,maxSockets:a};r=s?new E$.Agent(c):new _w.Agent(c),this._agent=r}return s&&this._ignoreSslError&&(r.options=Object.assign(r.options||{},{rejectUnauthorized:!1})),r}_getProxyAgentDispatcher(e,r){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;let i=e.protocol==="https:";return n=new b0e.ProxyAgent(Object.assign({uri:r.href,pipelining:this._keepAlive?1:0},(r.username||r.password)&&{token:`Basic ${Buffer.from(`${r.username}:${r.password}`).toString("base64")}`})),this._proxyAgentDispatcher=n,i&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_getUserAgentWithOrchestrationId(e){let r=e||"actions/http-client",n=process.env.ACTIONS_ORCHESTRATION_ID;if(n){let i=n.replace(/[^a-z0-9_.-]/gi,"_");return`${r} actions_orchestration_id/${i}`}return r}_performExponentialBackoff(e){return jr(this,void 0,void 0,function*(){e=Math.min(sgt,e);let r=ogt*Math.pow(2,e);return new Promise(n=>setTimeout(()=>n(),r))})}_processResponse(e,r){return jr(this,void 0,void 0,function*(){return new Promise((n,i)=>jr(this,void 0,void 0,function*(){let s=e.message.statusCode||0,a={statusCode:s,result:null,headers:{}};s===ms.NotFound&&n(a);function c(d,f){if(typeof f=="string"){let h=new Date(f);if(!isNaN(h.valueOf()))return h}return f}o(c,"dateTimeDeserializer");let l,u;try{u=yield e.readBody(),u&&u.length>0&&(r&&r.deserializeDates?l=JSON.parse(u,c):l=JSON.parse(u),a.result=l),a.headers=e.message.headers}catch{}if(s>299){let d;l&&l.message?d=l.message:u&&u.length>0?d=u:d=`Failed request: (${s})`;let f=new g$(d,s);f.result=a.result,i(f)}else n(a)}))})}},Nw=o(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys");var S0e=require("stream/consumers");var Ip=class extends Error{static{o(this,"InvalidTokenError")}};Ip.prototype.name="InvalidTokenError";function agt(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}o(agt,"b64DecodeUnicode");function cgt(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return agt(e)}catch{return atob(e)}}o(cgt,"base64UrlDecode");function D2(t,e){if(typeof t!="string")throw new Ip("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new Ip(`Invalid token specified: missing part #${r+1}`);let i;try{i=cgt(n)}catch(s){throw new Ip(`Invalid token specified: invalid base64 for part #${r+1} (${s.message})`)}try{return JSON.parse(i)}catch(s){throw new Ip(`Invalid token specified: invalid json for part #${r+1} (${s.message})`)}}o(D2,"jwtDecode");var Q2=[1e3,3e3],lgt=new Set(["ECONNRESET","ETIMEDOUT","EAI_AGAIN","ECONNREFUSED","EPIPE","ERR_STREAM_PREMATURE_CLOSE"]),Ke=class t{static{o(this,"GitHub")}githubToken;octokit;constructor(e){this.githubToken=e?.token||process.env.GITHUB_TOKEN,this.octokit=Wo(`${this.githubToken}`)}repoData(){return this.octokit.rest.repos.get({...Fi.repo}).then(e=>e.data)}async releases(e,r){let n;try{n=await this.releasesRaw(e,r)}catch(i){if(!this.githubToken)throw i;n=await this.releasesRaw(e,r,this.githubToken)}return n}async releasesRaw(e,r,n){let i=`https://raw.githubusercontent.com/${r.owner}/${r.repo}/${r.ref}/${r.path}`,s=n?{Authorization:`token ${n}`}:void 0,a;for(let c=0;c<=Q2.length;c++)try{let u=await new T2("docker-actions-toolkit").get(i,s),d=await(0,S0e.text)(u.message),f=u.message.statusCode||500;if(f>=400){let h=new Error(`Failed to get ${e} releases from ${i} with status code ${f}: ${d}`);throw h.statusCode=f,h}return JSON.parse(d)}catch(l){if(a=l instanceof Error?l:new Error(`${l}`),!t.isRetryableReleaseError(a)||c===Q2.length)throw a;D(`${a.message}. Retrying (${c+1}/${Q2.length})...`),await new Promise(u=>setTimeout(u,Q2[c]))}throw a||new Error(`Failed to get ${e} releases from ${i}`)}static isRetryableReleaseError(e){let r=e.statusCode;if(r)return r===408||r===429||r>=500;let n=e.code,i=e.message.toLowerCase();return n&&lgt.has(n)||i.includes("socket hang up")||i.includes("read econnreset")}static get context(){return Fi}static get serverURL(){return process.env.GITHUB_SERVER_URL||"https://github.com"}static get apiURL(){return process.env.GITHUB_API_URL||"https://api.github.com"}static get isGHES(){let r=new URL(t.serverURL).hostname.trimEnd().toUpperCase(),n=r==="GITHUB.COM",i=r.endsWith(".GHE.COM"),s=r.endsWith(".LOCALHOST");return!n&&!i&&!s}static get repository(){return`${Fi.repo.owner}/${Fi.repo.repo}`}static get workspace(){return process.env.GITHUB_WORKSPACE||process.cwd()}static get runId(){return process.env.GITHUB_RUN_ID?+process.env.GITHUB_RUN_ID:Fi.runId}static get runAttempt(){return process.env.GITHUB_RUN_ATTEMPT?+process.env.GITHUB_RUN_ATTEMPT:1}static workflowRunURL(e){return`${t.serverURL}/${t.repository}/actions/runs/${t.runId}${e?`/attempts/${t.runAttempt}`:""}`}static get actionsRuntimeToken(){let e=process.env.ACTIONS_RUNTIME_TOKEN||"";return e?D2(e):void 0}static printUntrusted(e){let r=I0e.randomUUID();D(`::stop-commands::${r}`);try{D(e)}finally{D(`::${r}::`)}}static async printActionsRuntimeTokenACs(){let e;try{e=t.actionsRuntimeToken}catch(r){throw new Error(`Cannot parse GitHub Actions Runtime Token: ${r.message}`)}if(!e)throw new Error("ACTIONS_RUNTIME_TOKEN not set");try{JSON.parse(`${e.ac}`).forEach(r=>{let n;switch(r.Permission){case 1:n="read";break;case 2:n="write";break;case 3:n="read/write";break;default:n=`unimplemented (${r.Permission})`}D(`${r.Scope}: ${n}`)})}catch(r){throw new Error(`Cannot parse GitHub Actions Runtime Token ACs: ${r.message}`)}}};var pt=class t{static{o(this,"Buildx")}_version;_versionOnce;_standalone;static containerNamePrefix="buildx_buildkit_";constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}static get configDir(){return process.env.BUILDX_CONFIG||gs.default.join(Vr.configDir,"buildx")}static get refsDir(){return gs.default.join(t.configDir,"refs")}static get refsGroupDir(){return gs.default.join(t.refsDir,"__group__")}static get certsDir(){return gs.default.join(t.configDir,"certs")}async isStandalone(){let e=this._standalone??!await Vr.isAvailable();return v(`Buildx.isStandalone: ${e}`),e}async getCommand(e){let r=await this.isStandalone();return{command:r?"buildx":"docker",args:r?e:["buildx",...e]}}async isAvailable(){let e=await this.getCommand([]),r=await Ie.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(n=>n.stderr.length>0&&n.exitCode!=0?(v(`Buildx.isAvailable cmd err: ${n.stderr.trim()}`),!1):n.exitCode==0).catch(n=>(v(`Buildx.isAvailable error: ${n}`),!1));return v(`Buildx.isAvailable: ${r}`),r}async version(){if(this._versionOnce)return this._version;this._versionOnce=!0;let e=await this.getCommand(["version"]);return this._version=await Ie.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr.trim());return t.parseVersion(r.stdout.trim())}),this._version}async printVersion(){let e=await this.getCommand(["version"]);await Ie.exec(e.command,e.args,{failOnStdErr:!1})}static parseVersion(e){let r=/\sv?([0-9a-f]{7}|[0-9.]+)/.exec(e);if(!r)throw new Error("Cannot parse buildx version");return r[1]}static getErrorMessage(e){let r=(0,B0e.stripVTControlCharacters)(e).split(/[\r\n]/),n="";for(let i=r.length-1;i>=0;i--){let s=r[i].trim();if(s.startsWith("ERROR:"))return s.slice(6).trim()||"unknown error";n||=s}return n||"unknown error"}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return v("Buildx.versionSatisfies false: undefined version"),!1;let i=x0e.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return v(`Buildx.versionSatisfies ${n} statisfies ${e}: ${i}`),i}static resolveCertsDriverOpts(e,r,n){let i;try{i=new URL(r)}catch{return[]}if(i.protocol!="tcp:")return[];let s=[];if(Object.keys(n).length==0)return s;let a=i.hostname;if(i.port.length>0&&(a+=`-${i.port}`),n.cacert!==void 0){let c=gs.default.join(t.certsDir,`cacert_${a}.pem`);Jo.default.writeFileSync(c,n.cacert),s.push(`cacert=${c}`)}if(n.cert!==void 0){let c=gs.default.join(t.certsDir,`cert_${a}.pem`);Jo.default.writeFileSync(c,n.cert),s.push(`cert=${c}`)}if(n.key!==void 0){let c=gs.default.join(t.certsDir,`key_${a}.pem`);Jo.default.writeFileSync(c,n.key),s.push(`key=${c}`)}return e!="remote"?[]:s}static localState(e,r){let[n,i,s]=e.split("/");if(!n||!i||!s)throw new Error(`Invalid build reference: ${e}`);let a=gs.default.join(r||t.refsDir,n,i,s);if(!Jo.default.existsSync(a))throw new Error(`Local state not found in ${a}`);return t.fixLocalState(JSON.parse(Jo.default.readFileSync(a,"utf8")))}static fixLocalState(e){let r=o(function(a){let c=a.match(/(.*)(https?:\/{1,2}\S+|ssh:\/{1,2}\S+|git:\/{1,2}\S+)/i);if(c&&c.length==3){let l=c[1],u=c[2];return u.startsWith("https:/")&&!u.startsWith("https://")&&(u=u.replace("https:/","https://")),u.startsWith("http:/")&&!u.startsWith("http://")&&(u=u.replace("http:/","http://")),u.startsWith("ssh:/")&&!u.startsWith("ssh://")&&(u=u.replace("ssh:/","ssh://")),u.startsWith("git:/")&&!u.startsWith("git://")&&(u=u.replace("git:/","git://")),[u,l,!0]}return[a,"",!1]},"fnTrimToValidContext"),[n,i,s]=r(e.LocalPath);return s&&(e.LocalPath=n,e.DockerfilePath.indexOf(i)===0&&(e.DockerfilePath=e.DockerfilePath.substring(i.length))),e.LocalPath=e.LocalPath.endsWith("/-")?"-":e.LocalPath,e.DockerfilePath=e.DockerfilePath.endsWith("/-")?"-":e.DockerfilePath,e}static refs(e,r={}){let{dir:n,builderName:i,nodeName:s,since:a}=e,c=gs.default.resolve(n);if(e.builderName&&(c=gs.default.join(c,e.builderName)),e.nodeName&&(c=gs.default.join(c,e.nodeName)),!Jo.default.existsSync(c))return r;let l=Jo.default.readdirSync(c);for(let u of l){let d=gs.default.join(c,u),f=Jo.default.statSync(d);if(f.isDirectory()){let h={...e};if(i)s||(h.nodeName=u);else{if(u==="__group__")continue;h.builderName=u}t.refs(h,r)}else{if(a&&f.mtimeatob(A)).join(" "),h=atob(l.short).replace(/\s\(line \d+\)$/,"");l.url&&(h+=` +More info: ${l.url}`);let p=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,m=!1;for(let A of a)if(A.remote||A.path.endsWith(u)&&A.content===d){c.push({title:f,message:h,file:A.path,startLine:p}),m=!0;break}m||v(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${f}`)}return c}};var C$=T(require("fs"),1),b$=T(require("path"),1);var k2=class t{static{o(this,"History")}buildx;constructor(e){this.buildx=e?.buildx||new pt}async getCommand(e){return await this.buildx.getCommand(["history",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getExportCommand(e){return await this.getCommand(["export",...e])}async inspect(e){let r=["--format","json"];e.builder&&r.push("--builder",e.builder),e.ref&&r.push(e.ref);let n=await this.getInspectCommand(r);return await Ie.getExecOutput(n.command,n.args,{ignoreReturnCode:!0,silent:!0}).then(i=>{if(i.stderr.length>0&&i.exitCode!=0)throw new Error(i.stderr.trim());return JSON.parse(i.stdout)})}async export(e){if(!await this.buildx.versionSatisfies(">=0.23.0"))throw new Error("Buildx >= 0.23.0 is required to export a build record");let r="",n="",i=[];for(let f of e.refs){let h=f.split("/");if(h.length!=3)throw new Error(`Invalid build ref: ${f}`);i.push(h[2]),r||(r=h[0]),n||(n=h[1])}if(i.length===0)throw new Error("No build refs provided");let s=b$.default.join(ht.tmpDir(),"export");D(`exporting build record to ${s}`),C$.default.mkdirSync(s,{recursive:!0}),await this.buildx.versionSatisfies("<0.24.0")&&await Oe.sleep(3);let a={};if(!e.noSummaries)for(let f of i)await this.inspect({ref:f,builder:r}).then(h=>{let p="";h.Error&&h.Status!=="canceled"&&(h.Error.Message?p=h.Error.Message:h.Error.Name&&h.Error.Logs&&(p=`=> ${h.Error.Name} +${h.Error.Logs}`)),a[f]={name:h.Name,status:h.Status,duration:Oe.formatDuration(h.Duration),numCachedSteps:h.NumCachedSteps,numTotalSteps:h.NumTotalSteps,numCompletedSteps:h.NumCompletedSteps,defaultPlatform:h.Platform?.[0],error:p}});let c=b$.default.join(s,`${t.exportFilename(i)}.dockerbuild`),l=["--builder",r,"--output",c,...i];await this.buildx.versionSatisfies(">=0.24.0")&&l.push("--finalize");let u=await this.getExportCommand(l);await Ie.getExecOutput(u.command,u.args);let d=C$.default.statSync(c);return{dockerbuildFilename:c,dockerbuildSize:d.size,builderName:r,nodeName:n,refs:i,summaries:a}}static exportFilename(e){let r=`${Ke.context.repo.owner}~${Ke.context.repo.repo}~${e[0].substring(0,6).toUpperCase()}`;return e.length>1&&(r+=`+${e.length-1}`),r}};var yQe=T(require("fs"),1),a6=T(require("path"),1);var v0e=T(require("os"),1);function Sp(){return 8*1024*1024}o(Sp,"getUploadChunkSize");function P2(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(P2,"getRuntimeToken");function N0e(){let t=process.env.ACTIONS_RESULTS_URL;if(!t)throw new Error("Unable to get the ACTIONS_RESULTS_URL env variable");return new URL(t).origin}o(N0e,"getResultsServiceUrl");function ry(){let e=new URL(process.env.GITHUB_SERVER_URL||"https://github.com").hostname.trimEnd().toUpperCase(),r=e==="GITHUB.COM",n=e.endsWith(".GHE.COM"),i=e.endsWith(".LOCALHOST");return!r&&!n&&!i}o(ry,"isGhes");function _0e(){let t=process.env.GITHUB_WORKSPACE;if(!t)throw new Error("Unable to get the GITHUB_WORKSPACE env variable");return t}o(_0e,"getGitHubWorkspaceDir");function R0e(){let t=v0e.default.cpus().length,e=32;if(t>4){let n=16*t;e=n>300?300:n}let r=process.env.ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY;if(r){let n=parseInt(r);if(isNaN(n)||n<1)throw new Error("Invalid value set for ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY env variable");return nDate.parse("9999-12-31T23:59:59Z"))throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(e.nanos<0)throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");let i="Z";if(e.nanos>0){let s=(e.nanos+1e9).toString().substring(1);s.substring(3)==="000000"?i="."+s.substring(0,3)+"Z":s.substring(6)==="000"?i="."+s.substring(0,6)+"Z":i="."+s+"Z"}return new Date(n).toISOString().replace(".000Z",i)}internalJsonRead(e,r,n){if(typeof e!="string")throw new Error("Unable to parse Timestamp from JSON "+(0,P0e.typeofJsonValue)(e)+".");let i=e.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!i)throw new Error("Unable to parse Timestamp from JSON. Invalid format.");let s=Date.parse(i[1]+"-"+i[2]+"-"+i[3]+"T"+i[4]+":"+i[5]+":"+i[6]+(i[8]?i[8]:"Z"));if(Number.isNaN(s))throw new Error("Unable to parse Timestamp from JSON. Invalid value.");if(sDate.parse("9999-12-31T23:59:59Z"))throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");return n||(n=this.create()),n.seconds=ny.PbLong.from(s/1e3).toString(),n.nanos=0,i[7]&&(n.nanos=parseInt("1"+i[7]+"0".repeat(9-i[7].length))-1e9),n}create(e){let r={seconds:"0",nanos:0};return globalThis.Object.defineProperty(r,k0e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Q0e.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.posto,"T")},{no:5,name:"version",kind:"scalar",T:5},{no:6,name:"mime_type",kind:"message",T:o(()=>nn,"T")}])}create(e){let r={workflowRunBackendId:"",workflowJobRunBackendId:"",name:"",version:0};return globalThis.Object.defineProperty(r,Ko.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Yo.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.posnn,"T")}])}create(e){let r={workflowRunBackendId:"",workflowJobRunBackendId:"",name:"",size:"0"};return globalThis.Object.defineProperty(r,Ko.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Yo.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.posnn,"T")},{no:4,name:"id_filter",kind:"message",T:o(()=>iy,"T")}])}create(e){let r={workflowRunBackendId:"",workflowJobRunBackendId:""};return globalThis.Object.defineProperty(r,Ko.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Yo.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.posP$,"T")}])}create(e){let r={artifacts:[]};return globalThis.Object.defineProperty(r,Ko.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Yo.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.posto,"T")},{no:7,name:"digest",kind:"message",T:o(()=>nn,"T")}])}create(e){let r={workflowRunBackendId:"",workflowJobRunBackendId:"",databaseId:"0",name:"",size:"0"};return globalThis.Object.defineProperty(r,Ko.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Yo.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.posW$.fromJson(i,{ignoreUnknownFields:!0}))}FinalizeArtifact(e){let r=J$.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.ArtifactService","FinalizeArtifact","application/json",r).then(i=>Y$.fromJson(i,{ignoreUnknownFields:!0}))}ListArtifacts(e){let r=K$.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.ArtifactService","ListArtifacts","application/json",r).then(i=>X$.fromJson(i,{ignoreUnknownFields:!0}))}GetSignedArtifactURL(e){let r=Z$.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.ArtifactService","GetSignedArtifactURL","application/json",r).then(i=>e8.fromJson(i,{ignoreUnknownFields:!0}))}DeleteArtifact(e){let r=t8.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.ArtifactService","DeleteArtifact","application/json",r).then(i=>r8.fromJson(i,{ignoreUnknownFields:!0}))}};function F0e(t){if(!t)return;let e=ugt();e&&e"," Greater than >"],["|"," Vertical bar |"],["*"," Asterisk *"],["?"," Question mark ?"],["\r"," Carriage return \\r"],[` +`," Line feed \\n"]]),M0e=new Map([...n8,["\\"," Backslash \\"],["/"," Forward slash /"]]);function U0e(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of M0e)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r} -Invalid characters include: ${Array.from(F0e.values()).toString()} +Invalid characters include: ${Array.from(M0e.values()).toString()} -These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);D("Artifact name is valid!")}o(M0e,"validateArtifactName");function n8(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of r8)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r} +These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);D("Artifact name is valid!")}o(U0e,"validateArtifactName");function i8(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of n8)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r} -Invalid characters include: ${Array.from(r8.values()).toString()} +Invalid characters include: ${Array.from(n8.values()).toString()} The following characters are not allowed in files that are uploaded due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems. - `)}o(n8,"validateFilePath");var Tw=T(require("http"),1),a8=T(require("https"),1);function i8(t){let e=t.protocol==="https:";if(cgt(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new O2(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new O2(`http://${r}`)}else return}o(i8,"getProxyUrl");function cgt(t){if(!t.hostname)return!1;let e=t.hostname;if(lgt(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let i=[t.hostname.toUpperCase()];typeof n=="number"&&i.push(`${i[0]}:${n}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||i.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}o(cgt,"checkBypass");function lgt(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(lgt,"isLoopbackAddress");var O2=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var Xd=T(_A(),1),U0e=T(yh(),1);var Wr=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},Cn;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(Cn||(Cn={}));var Ui;(function(t){t.Accept="accept",t.ContentType="content-type"})(Ui||(Ui={}));var vu;(function(t){t.ApplicationJson="application/json"})(vu||(vu={}));var dgt=[Cn.MovedPermanently,Cn.ResourceMoved,Cn.SeeOther,Cn.TemporaryRedirect,Cn.PermanentRedirect],fgt=[Cn.BadGateway,Cn.ServiceUnavailable,Cn.GatewayTimeout],hgt=["OPTIONS","GET","DELETE","HEAD"],pgt=10,Agt=5,s8=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}},o8=class{static{o(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return Wr(this,void 0,void 0,function*(){return new Promise(e=>Wr(this,void 0,void 0,function*(){let r=Buffer.alloc(0);this.message.on("data",n=>{r=Buffer.concat([r,n])}),this.message.on("end",()=>{e(r.toString())})}))})}readBodyBuffer(){return Wr(this,void 0,void 0,function*(){return new Promise(e=>Wr(this,void 0,void 0,function*(){let r=[];this.message.on("data",n=>{r.push(n)}),this.message.on("end",()=>{e(Buffer.concat(r))})}))})}};var iy=class{static{o(this,"HttpClient")}constructor(e,r,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=r||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,r){return Wr(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,r||{})})}get(e,r){return Wr(this,void 0,void 0,function*(){return this.request("GET",e,null,r||{})})}del(e,r){return Wr(this,void 0,void 0,function*(){return this.request("DELETE",e,null,r||{})})}post(e,r,n){return Wr(this,void 0,void 0,function*(){return this.request("POST",e,r,n||{})})}patch(e,r,n){return Wr(this,void 0,void 0,function*(){return this.request("PATCH",e,r,n||{})})}put(e,r,n){return Wr(this,void 0,void 0,function*(){return this.request("PUT",e,r,n||{})})}head(e,r){return Wr(this,void 0,void 0,function*(){return this.request("HEAD",e,null,r||{})})}sendStream(e,r,n,i){return Wr(this,void 0,void 0,function*(){return this.request(e,r,n,i)})}getJson(e){return Wr(this,arguments,void 0,function*(r,n={}){n[Ui.Accept]=this._getExistingOrDefaultHeader(n,Ui.Accept,vu.ApplicationJson);let i=yield this.get(r,n);return this._processResponse(i,this.requestOptions)})}postJson(e,r){return Wr(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[Ui.Accept]=this._getExistingOrDefaultHeader(s,Ui.Accept,vu.ApplicationJson),s[Ui.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,vu.ApplicationJson);let c=yield this.post(n,a,s);return this._processResponse(c,this.requestOptions)})}putJson(e,r){return Wr(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[Ui.Accept]=this._getExistingOrDefaultHeader(s,Ui.Accept,vu.ApplicationJson),s[Ui.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,vu.ApplicationJson);let c=yield this.put(n,a,s);return this._processResponse(c,this.requestOptions)})}patchJson(e,r){return Wr(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[Ui.Accept]=this._getExistingOrDefaultHeader(s,Ui.Accept,vu.ApplicationJson),s[Ui.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,vu.ApplicationJson);let c=yield this.patch(n,a,s);return this._processResponse(c,this.requestOptions)})}request(e,r,n,i){return Wr(this,void 0,void 0,function*(){if(this._disposed)throw new Error("Client has already been disposed.");let s=new URL(r),a=this._prepareRequest(e,s,i),c=this._allowRetries&&hgt.includes(e)?this._maxRetries+1:1,l=0,u;do{if(u=yield this.requestRaw(a,n),u&&u.message&&u.message.statusCode===Cn.Unauthorized){let f;for(let h of this.handlers)if(h.canHandleAuthentication(u)){f=h;break}return f?f.handleAuthentication(this,a,n):u}let d=this._maxRedirects;for(;u.message.statusCode&&dgt.includes(u.message.statusCode)&&this._allowRedirects&&d>0;){let f=u.message.headers.location;if(!f)break;let h=new URL(f);if(s.protocol==="https:"&&s.protocol!==h.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield u.readBody(),h.hostname!==s.hostname)for(let p in i)p.toLowerCase()==="authorization"&&delete i[p];a=this._prepareRequest(e,h,i),u=yield this.requestRaw(a,n),d--}if(!u.message.statusCode||!fgt.includes(u.message.statusCode))return u;l+=1,l{function s(a,c){a?i(a):c?n(c):i(new Error("Unknown error"))}o(s,"callbackForResult"),this.requestRawWithCallback(e,r,s)})})}requestRawWithCallback(e,r,n){typeof r=="string"&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8"));let i=!1;function s(l,u){i||(i=!0,n(l,u))}o(s,"handleResult");let a=e.httpModule.request(e.options,l=>{let u=new o8(l);s(void 0,u)}),c;a.on("socket",l=>{c=l}),a.setTimeout(this._socketTimeout||3*6e4,()=>{c&&c.end(),s(new Error(`Request timeout: ${e.options.path}`))}),a.on("error",function(l){s(l)}),r&&typeof r=="string"&&a.write(r,"utf8"),r&&typeof r!="string"?(r.on("close",function(){a.end()}),r.pipe(a)):a.end()}getAgent(e){let r=new URL(e);return this._getAgent(r)}getAgentDispatcher(e){let r=new URL(e),n=i8(r);if(n&&n.hostname)return this._getProxyAgentDispatcher(r,n)}_prepareRequest(e,r,n){let i={};i.parsedUrl=r;let s=i.parsedUrl.protocol==="https:";i.httpModule=s?a8:Tw;let a=s?443:80;if(i.options={},i.options.host=i.parsedUrl.hostname,i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):a,i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||""),i.options.method=e,i.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(i.options.headers["user-agent"]=this.userAgent),i.options.agent=this._getAgent(i.parsedUrl),this.handlers)for(let c of this.handlers)c.prepareRequest(i.options);return i}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},_w(this.requestOptions.headers),_w(e||{})):_w(e||{})}_getExistingOrDefaultHeader(e,r,n){let i;if(this.requestOptions&&this.requestOptions.headers){let a=_w(this.requestOptions.headers)[r];a&&(i=typeof a=="number"?a.toString():a)}let s=e[r];return s!==void 0?typeof s=="number"?s.toString():s:i!==void 0?i:n}_getExistingOrDefaultContentTypeHeader(e,r){let n;if(this.requestOptions&&this.requestOptions.headers){let s=_w(this.requestOptions.headers)[Ui.ContentType];s&&(typeof s=="number"?n=String(s):Array.isArray(s)?n=s.join(", "):n=s)}let i=e[Ui.ContentType];return i!==void 0?typeof i=="number"?String(i):Array.isArray(i)?i.join(", "):i:n!==void 0?n:r}_getAgent(e){let r,n=i8(e),i=n&&n.hostname;if(this._keepAlive&&i&&(r=this._proxyAgent),i||(r=this._agent),r)return r;let s=e.protocol==="https:",a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||Tw.globalAgent.maxSockets),n&&n.hostname){let c={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},l,u=n.protocol==="https:";s?l=u?Xd.httpsOverHttps:Xd.httpsOverHttp:l=u?Xd.httpOverHttps:Xd.httpOverHttp,r=l(c),this._proxyAgent=r}if(!r){let c={keepAlive:this._keepAlive,maxSockets:a};r=s?new a8.Agent(c):new Tw.Agent(c),this._agent=r}return s&&this._ignoreSslError&&(r.options=Object.assign(r.options||{},{rejectUnauthorized:!1})),r}_getProxyAgentDispatcher(e,r){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;let i=e.protocol==="https:";return n=new U0e.ProxyAgent(Object.assign({uri:r.href,pipelining:this._keepAlive?1:0},(r.username||r.password)&&{token:`Basic ${Buffer.from(`${r.username}:${r.password}`).toString("base64")}`})),this._proxyAgentDispatcher=n,i&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_getUserAgentWithOrchestrationId(e){let r=e||"actions/http-client",n=process.env.ACTIONS_ORCHESTRATION_ID;if(n){let i=n.replace(/[^a-z0-9_.-]/gi,"_");return`${r} actions_orchestration_id/${i}`}return r}_performExponentialBackoff(e){return Wr(this,void 0,void 0,function*(){e=Math.min(pgt,e);let r=Agt*Math.pow(2,e);return new Promise(n=>setTimeout(()=>n(),r))})}_processResponse(e,r){return Wr(this,void 0,void 0,function*(){return new Promise((n,i)=>Wr(this,void 0,void 0,function*(){let s=e.message.statusCode||0,a={statusCode:s,result:null,headers:{}};s===Cn.NotFound&&n(a);function c(d,f){if(typeof f=="string"){let h=new Date(f);if(!isNaN(h.valueOf()))return h}return f}o(c,"dateTimeDeserializer");let l,u;try{u=yield e.readBody(),u&&u.length>0&&(r&&r.deserializeDates?l=JSON.parse(u,c):l=JSON.parse(u),a.result=l),a.headers=e.message.headers}catch{}if(s>299){let d;l&&l.message?d=l.message:u&&u.length>0?d=u:d=`Failed request: (${s})`;let f=new s8(d,s);f.result=a.result,i(f)}else n(a)}))})}},_w=o(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys");var ggt=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};var L2=class{static{o(this,"BearerCredentialHandler")}constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization=`Bearer ${this.token}`}canHandleAuthentication(){return!1}handleAuthentication(){return ggt(this,void 0,void 0,function*(){throw new Error("not implemented")})}};var z0e=T(H0e(),1);function al(){return`@actions/artifact-${z0e.version}`}o(al,"getUserAgentString");var sy=class extends Error{static{o(this,"FilesNotFoundError")}constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},Ga=class extends Error{static{o(this,"InvalidResponseError")}constructor(e){super(e),this.name="InvalidResponseError"}},Nu=class extends Error{static{o(this,"ArtifactNotFoundError")}constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},Zd=class extends Error{static{o(this,"GHESNotSupportedError")}constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},Ru=class extends Error{static{o(this,"NetworkError")}constructor(e){let r=`Unable to make request: ${e} -If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};Ru.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Sp=class extends Error{static{o(this,"UsageError")}constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts. -More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Sp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var F2=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function cl(){let t=k2(),e=T2(t);if(!e.scp)throw F2;let r=e.scp.split(" ");if(r.length===0)throw F2;for(let n of r){let i=n.split(":");if(i?.[0]!=="Actions.Results")continue;if(i.length!==3)throw F2;let s={workflowRunBackendId:i[1],workflowJobRunBackendId:i[2]};return v(`Workflow Run Backend ID: ${s.workflowRunBackendId}`),v(`Workflow Job Run Backend ID: ${s.workflowJobRunBackendId}`),s}throw F2}o(cl,"getBackendIdsFromToken");function V0e(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Os(r),Os(encodeURIComponent(r)))}catch(e){v(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}o(V0e,"maskSigUrl");function $0e(t){if(typeof t!="object"||t===null){v("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&V0e(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&V0e(t.signed_url)}o($0e,"maskSecretUrls");var M2=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},c8=class{static{o(this,"ArtifactHttpClient")}constructor(e,r,n,i){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=8e3,this.retryMultiplier=1.5,this.retryTimeoutMilliseconds=12e4;let s=k2();this.baseUrl=v0e(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),i&&(this.retryMultiplier=i),this.httpClient=new iy(e,[new L2(s)])}request(e,r,n,i){return M2(this,void 0,void 0,function*(){let s=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;v(`[Request] ${r} ${s}`);let a={"Content-Type":n};try{let{body:c}=yield this.retryableRequest(()=>M2(this,void 0,void 0,function*(){return this.httpClient.post(s,JSON.stringify(i),a)}));return c}catch(c){throw new Error(`Failed to ${r}: ${c.message}`)}})}retryableRequest(e){return M2(this,void 0,void 0,function*(){let r=0,n="",i="",s=0;for(;rthis.retryTimeoutMilliseconds)throw new Error(`Retry wait of ${l} ms would exceed the maximum total retry wait of ${this.retryTimeoutMilliseconds} ms: ${n}`);D(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${l} ms...`),yield this.sleep(l),s+=l,r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[Cn.BadGateway,Cn.GatewayTimeout,Cn.InternalServerError,Cn.ServiceUnavailable,Cn.TooManyRequests].includes(e):!1}getRetryAfterSeconds(e){var r;let n=e.message.headers["retry-after"],i=(r=Array.isArray(n)?n[0]:n)===null||r===void 0?void 0:r.trim();if(i===void 0||!/^\d+$/.test(i))return;let s=parseInt(i,10);return!isNaN(s)&&s>0?s:void 0}sleep(e){return M2(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function ll(t){let e=new c8(al(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new P2(e)}o(ll,"internalArtifactTwirpClient");var ay=T(require("fs"),1);var oy=require("path");function j0e(t){if(!ay.existsSync(t))throw new Error(`The provided rootDirectory ${t} does not exist`);if(!ay.statSync(t).isDirectory())throw new Error(`The provided rootDirectory ${t} is not a valid directory`);D("Root directory input is valid!")}o(j0e,"validateRootDirectory");function W0e(t,e){let r=[];e=(0,oy.normalize)(e),e=(0,oy.resolve)(e);for(let n of t){let i=ay.lstatSync(n,{throwIfNoEntry:!1});if(!i)throw new Error(`File ${n} does not exist`);if(i.isDirectory()){let s=n.replace(e,"");n8(s),r.push({sourcePath:null,destinationPath:s,stats:i})}else{if(n=(0,oy.normalize)(n),n=(0,oy.resolve)(n),!n.startsWith(e))throw new Error(`The rootDirectory: ${e} is not a parent directory of the file: ${n}`);let s=n.replace(e,"");n8(s),r.push({sourcePath:n,destinationPath:s,stats:i})}}return r}o(W0e,"getUploadZipSpecification");var Y0e=T(require("crypto"),1),K0e=T(require("stream"),1);var J0e=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function X0e(t,e,r){return J0e(this,void 0,void 0,function*(){let n=0,i=Date.now(),s=new AbortController,a=o(E=>J0e(this,void 0,void 0,function*(){return new Promise((y,C)=>{let w=setInterval(()=>{Date.now()-i>E&&C(new Error("Upload progress stalled."))},E);s.signal.addEventListener("abort",()=>{clearInterval(w),y()})})}),"chunkTimer"),c=R0e(),l=Ip(),d=new Pa(t).getBlockBlobClient();v(`Uploading artifact to blob storage with maxConcurrency: ${c}, bufferSize: ${l}, contentType: ${r}`);let h={blobHTTPHeaders:{blobContentType:r},onProgress:o(E=>{D(`Uploaded bytes ${E.loadedBytes}`),n=E.loadedBytes,i=Date.now()},"uploadCallback"),abortSignal:s.signal},p,m=new K0e.PassThrough,A=Y0e.createHash("sha256");e.pipe(m),e.pipe(A).setEncoding("hex"),D("Beginning upload of artifact content to blob storage");try{yield Promise.race([d.uploadStream(m,l,c,h),a(_0e())])}catch(E){throw Ru.isNetworkErrorCode(E?.code)?new Ru(E?.code):E}finally{s.abort()}return D("Finished uploading artifact content to blob storage!"),A.end(),p=A.read(),D(`SHA256 digest of uploaded artifact is ${p}`),n===0&&Ge("No data was uploaded to blob storage. Reported upload byte count is 0."),{uploadSize:n,sha256Hash:p}})}o(X0e,"uploadToBlobStorage");var aDe=require("fs/promises"),cDe=T(nDe(),1);var iDe=T(require("stream"),1),WQ=T(require("fs"),1),sDe=require("fs/promises");var PDt=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},JI=class extends iDe.Transform{static{o(this,"WaterMarkedUploadStream")}constructor(e){super({highWaterMark:e})}_transform(e,r,n){n(null,e)}};function oDe(t){return PDt(this,void 0,void 0,function*(){v(`Creating raw file upload stream for: ${t}`);let e=Ip(),r=new JI(e),n=t;(yield WQ.promises.lstat(t)).isSymbolicLink()&&(n=yield(0,sDe.realpath)(t));let s=WQ.createReadStream(n,{highWaterMark:e});return s.on("error",a=>{Sa("An error has occurred while reading the file for upload"),Sa(String(a)),r.destroy(new Error("An error has occurred during file read for the artifact"))}),s.pipe(r),r})}o(oDe,"createRawFileUploadStream");var ODt=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},LDt=6;function lDe(t){return ODt(this,arguments,void 0,function*(e,r=LDt){v(`Creating Artifact archive with compressionLevel: ${r}`);let n=cDe.default.create("zip",{highWaterMark:Ip(),zlib:{level:r}});n.on("error",FDt),n.on("warning",MDt),n.on("finish",UDt),n.on("end",qDt);for(let a of e)if(a.sourcePath!==null){let c=a.sourcePath;a.stats.isSymbolicLink()&&(c=yield(0,aDe.realpath)(a.sourcePath)),n.file(c,{name:a.destinationPath})}else n.append("",{name:a.destinationPath});let i=Ip(),s=new JI(i);return v(`Zip write high watermark value ${s.writableHighWaterMark}`),v(`Zip read high watermark value ${s.readableHighWaterMark}`),n.pipe(s),n.finalize(),s})}o(lDe,"createZipUploadStream");var FDt=o(t=>{throw Sa("An error has occurred while creating the zip file for upload"),D(t),new Error("An error has occurred during zip creation for the artifact")},"zipErrorCallback"),MDt=o(t=>{t.code==="ENOENT"?(Ge("ENOENT warning during artifact zip creation. No such file or directory"),D(t)):(Ge(`A non-blocking warning has occurred during artifact zip creation: ${t.code}`),D(t))},"zipWarningCallback"),UDt=o(()=>{v("Zip stream for upload has finished.")},"zipFinishCallback"),qDt=o(()=>{v("Zip stream for upload has ended.")},"zipEndCallback");var uDe=T(require("path"),1);var GDt={".txt":"text/plain",".html":"text/html",".htm":"text/html",".css":"text/css",".csv":"text/csv",".xml":"text/xml",".md":"text/markdown",".js":"application/javascript",".mjs":"application/javascript",".json":"application/json",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".svg":"image/svg+xml",".webp":"image/webp",".ico":"image/x-icon",".bmp":"image/bmp",".tiff":"image/tiff",".tif":"image/tiff",".mp3":"audio/mpeg",".wav":"audio/wav",".ogg":"audio/ogg",".flac":"audio/flac",".mp4":"video/mp4",".webm":"video/webm",".avi":"video/x-msvideo",".mov":"video/quicktime",".pdf":"application/pdf",".doc":"application/msword",".docx":"application/vnd.openxmlformats-officedocument.wordprocessingml.document",".xls":"application/vnd.ms-excel",".xlsx":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",".ppt":"application/vnd.ms-powerpoint",".pptx":"application/vnd.openxmlformats-officedocument.presentationml.presentation",".zip":"application/zip",".tar":"application/x-tar",".gz":"application/gzip",".rar":"application/vnd.rar",".7z":"application/x-7z-compressed",".wasm":"application/wasm",".yaml":"application/x-yaml",".yml":"application/x-yaml",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf",".otf":"font/otf",".eot":"application/vnd.ms-fontobject"};function dDe(t){let e=uDe.extname(t).toLowerCase();return GDt[e]||"application/octet-stream"}o(dDe,"getMimeType");var HDt=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function pDe(t,e,r,n){return HDt(this,void 0,void 0,function*(){let i=`${t}.zip`;if(n?.skipArchive){if(e.length===0)throw new sy([]);if(e.length>1)throw new Error("skipArchive option is only supported when uploading a single file");if(!fDe.existsSync(e[0]))throw new sy(e);i=hDe.basename(e[0]),t=i}M0e(t),j0e(r);let s=[];if(!n?.skipArchive&&(s=W0e(e,r),s.length===0))throw new sy(s.flatMap(y=>y.sourcePath?[y.sourcePath]:[]));let a=dDe(i),c=cl(),l=ll(),u={workflowRunBackendId:c.workflowRunBackendId,workflowJobRunBackendId:c.workflowJobRunBackendId,name:t,mimeType:nn.create({value:a}),version:7},d=L0e(n?.retentionDays);d&&(u.expiresAt=d);let f=yield l.CreateArtifact(u);if(!f.ok)throw new Ga("CreateArtifact: response from backend was not ok");let h;n?.skipArchive?h=yield oDe(e[0]):h=yield lDe(s,n?.compressionLevel),D(`Uploading artifact: ${i}`);let p=yield X0e(f.signedUploadUrl,h,a),m={workflowRunBackendId:c.workflowRunBackendId,workflowJobRunBackendId:c.workflowJobRunBackendId,name:t,size:p.uploadSize?p.uploadSize.toString():"0"};p.sha256Hash&&(m.hash=nn.create({value:`sha256:${p.sha256Hash}`})),D("Finalizing artifact upload");let A=yield l.FinalizeArtifact(m);if(!A.ok)throw new Ga("FinalizeArtifact: response from backend was not ok");let E=BigInt(A.artifactId);return D(`Artifact ${t} successfully finalized. Artifact ID ${E}`),{size:p.uploadSize,digest:p.sha256Hash,id:Number(E)}})}o(pDe,"uploadArtifact");var nJ=T(require("fs/promises"),1),JDe=T(require("fs"),1),YDe=T(require("crypto"),1),KDe=T(require("stream"),1),YQ=T(require("path"),1);var XDe=T(WDe(),1);var nE=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},ZDe=o(t=>{let e=new URL(t);return e.search="",e.toString()},"scrubQueryParameters");function mQt(t){return nE(this,void 0,void 0,function*(){try{return yield nJ.default.access(t),!0}catch(e){if(e.code==="ENOENT")return!1;throw e}})}o(mQt,"exists");function eQe(t,e,r){return nE(this,void 0,void 0,function*(){let n=0;for(;n<5;)try{return yield gQt(t,e,{skipDecompress:r})}catch(i){n++,v(`Failed to download artifact after ${n} retries due to ${i.message}. Retrying in 5 seconds...`),yield new Promise(s=>setTimeout(s,5e3))}throw new Error(`Artifact download failed after ${n} retries.`)})}o(eQe,"streamExtract");function gQt(t,e){return nE(this,arguments,void 0,function*(r,n,i={}){let{timeout:s=30*1e3,skipDecompress:a=!1}=i,l=yield new iy(al()).get(r);if(l.message.statusCode!==200)throw new Error(`Unexpected HTTP response from blob storage: ${l.message.statusCode} ${l.message.statusMessage}`);let u=l.message.headers["content-type"]||"",d=u.split(";",1)[0].trim().toLowerCase(),h=new URL(r).pathname.toLowerCase().endsWith(".zip"),p=d==="application/zip"||d==="application/x-zip-compressed"||d==="application/zip-compressed"||h,m=l.message.headers["content-disposition"]||"",A="artifact",E=m.match(/filename\*\s*=\s*UTF-8''([^;\r\n]*)/i),y=m.match(/(?{let N=setTimeout(o(()=>{let W=new Error(`Blob storage chunk did not respond in ${s}ms`);l.message.destroy(W),P(W)},"timerFn"),s),$=o(W=>{v(`response.message: Artifact download failed: ${W.message}`),clearTimeout(N),P(W)},"onError"),Q=YDe.createHash("sha256").setEncoding("hex"),H=new KDe.PassThrough().on("data",()=>{N.refresh()}).on("error",$);l.message.pipe(H),H.pipe(Q);let V=o(()=>{clearTimeout(N),Q&&(Q.end(),w=Q.read(),D(`SHA256 digest of downloaded artifact is ${w}`)),B({sha256Digest:`sha256:${w}`})},"onClose");if(p&&!a)H.pipe(XDe.default.Extract({path:n})).on("close",V).on("error",$);else{let W=YQ.join(n,A),ue=JDe.createWriteStream(W);D(`Downloading raw file (non-zip) to: ${W}`),H.pipe(ue).on("close",V).on("error",$)}})})}o(gQt,"streamExtractExternal");function tQe(t,e,r,n,i){return nE(this,void 0,void 0,function*(){let s=yield nQe(i?.path),a=Wo(n),c=!1;D(`Downloading artifact '${t}' from '${e}/${r}'`);let{headers:l,status:u}=yield a.rest.actions.downloadArtifact({owner:e,repo:r,artifact_id:t,archive_format:"zip",request:{redirect:"manual"}});if(u!==302)throw new Error(`Unable to download artifact. Unexpected status: ${u}`);let{location:d}=l;if(!d)throw new Error("Unable to redirect to artifact download url");D(`Redirecting to blob download url: ${ZDe(d)}`);try{D(`Starting download of artifact to: ${s}`);let f=yield eQe(d,s,i?.skipDecompress);D("Artifact download completed successfully."),i?.expectedHash&&i?.expectedHash!==f.sha256Digest&&(c=!0,v(`Computed digest: ${f.sha256Digest}`),v(`Expected digest: ${i.expectedHash}`))}catch(f){throw new Error(`Unable to download and extract artifact: ${f.message}`)}return{downloadPath:s,digestMismatch:c}})}o(tQe,"downloadArtifactPublic");function rQe(t,e){return nE(this,void 0,void 0,function*(){let r=yield nQe(e?.path),n=ll(),i=!1,{workflowRunBackendId:s,workflowJobRunBackendId:a}=cl(),c={workflowRunBackendId:s,workflowJobRunBackendId:a,idFilter:ny.create({value:t.toString()})},{artifacts:l}=yield n.ListArtifacts(c);if(l.length===0)throw new Nu(`No artifacts found for ID: ${t} -Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);l.length>1&&Ge("Multiple artifacts found, defaulting to first.");let u={workflowRunBackendId:l[0].workflowRunBackendId,workflowJobRunBackendId:l[0].workflowJobRunBackendId,name:l[0].name},{signedUrl:d}=yield n.GetSignedArtifactURL(u);D(`Redirecting to blob download url: ${ZDe(d)}`);try{D(`Starting download of artifact to: ${r}`);let f=yield eQe(d,r,e?.skipDecompress);D("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==f.sha256Digest&&(i=!0,v(`Computed digest: ${f.sha256Digest}`),v(`Expected digest: ${e.expectedHash}`))}catch(f){throw new Error(`Unable to download and extract artifact: ${f.message}`)}return{downloadPath:r,digestMismatch:i}})}o(rQe,"downloadArtifactInternal");function nQe(){return nE(this,arguments,void 0,function*(t=N0e()){return(yield mQt(t))?v(`Artifact destination folder already exists: ${t}`):(v(`Artifact destination folder does not exist, creating: ${t}`),yield nJ.default.mkdir(t,{recursive:!0})),t})}o(nQe,"resolveOrCreateDirectory");var yQt=5,EQt=[400,401,403,404,422];function iE(t,e=yQt,r=EQt){var n;if(e<=0)return[{enabled:!1},t.request];let i={enabled:!0};r.length>0&&(i.doNotRetry=r);let s=Object.assign(Object.assign({},t.request),{retries:e});return v(`GitHub client configured with: (retries: ${s.retries}, retry-exempt-status-code: ${(n=i.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[i,s]}o(iE,"getRetryOptions");var iQe="6.0.0";function eA(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),i=t.request.endpoint.parse(r),s=i.url.replace(r.baseUrl,"");return e(r).then(a=>{let c=a.headers["x-github-request-id"];return t.log.info(`${i.method} ${s} - ${a.status} with id ${c} in ${Date.now()-n}ms`),a}).catch(a=>{let c=a.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${i.method} ${s} - ${a.status} with id ${c} in ${Date.now()-n}ms`),a})})}o(eA,"requestLog");eA.VERSION=iQe;var aQe=T(sQe(),1);var KQ=class extends Error{static{o(this,"RequestError")}name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let i=Object.assign({},n.request);n.request.headers.authorization&&(i.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?=400&&!t.doNotRetry.includes(r.status)){let i=n.request.retries!=null?n.request.retries:t.retries,s=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,i,s)}throw r}o(oQe,"errorRequest");async function wQt(t,e,r,n){let i=new aQe.default;return i.on("failed",function(s,a){let c=~~s.request.request?.retries,l=~~s.request.request?.retryAfter;if(n.request.retryCount=a.retryCount+1,c>a.retryCount)return l*t.retryAfterBaseValue}),i.schedule(IQt.bind(null,t,e,r),n)}o(wQt,"wrapRequest");async function IQt(t,e,r,n){let i=await r(n);if(i.data&&i.data.errors&&i.data.errors.length>0&&/Something went wrong while executing your query/.test(i.data.errors[0].message)){let s=new KQ(i.data.errors[0].message,500,{request:n,response:i});return oQe(t,e,s,n)}return i}o(IQt,"requestWithGraphqlErrorHandling");function tA(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry),n={retry:{retryRequest:o((i,s,a)=>(i.request.request=Object.assign({},i.request.request,{retries:s,retryAfter:a}),i),"retryRequest")}};return r.enabled&&(t.hook.error("request",oQe.bind(null,r,n)),t.hook.wrap("request",wQt.bind(null,r,n))),n}o(tA,"retry");tA.VERSION=CQt;var cQe=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function XQ(t,e,r,n,i){return cQe(this,void 0,void 0,function*(){var s;let[a,c]=iE(bp),l={log:void 0,userAgent:al(),previews:void 0,retry:a,request:c},d=yield Wo(i,l,tA,eA).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(d.status!==200)throw new Ga(`Invalid response from GitHub API: ${d.status} (${(s=d?.headers)===null||s===void 0?void 0:s["x-github-request-id"]})`);if(d.data.artifacts.length===0)throw new Nu(`Artifact not found for name: ${t} + `)}o(i8,"validateFilePath");var Dw=T(require("http"),1),c8=T(require("https"),1);function s8(t){let e=t.protocol==="https:";if(dgt(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new L2(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new L2(`http://${r}`)}else return}o(s8,"getProxyUrl");function dgt(t){if(!t.hostname)return!1;let e=t.hostname;if(fgt(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let i=[t.hostname.toUpperCase()];typeof n=="number"&&i.push(`${i[0]}:${n}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||i.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}o(dgt,"checkBypass");function fgt(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(fgt,"isLoopbackAddress");var L2=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var Zd=T(TA(),1),q0e=T(Eh(),1);var Wr=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},Cn;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(Cn||(Cn={}));var Ui;(function(t){t.Accept="accept",t.ContentType="content-type"})(Ui||(Ui={}));var Nu;(function(t){t.ApplicationJson="application/json"})(Nu||(Nu={}));var pgt=[Cn.MovedPermanently,Cn.ResourceMoved,Cn.SeeOther,Cn.TemporaryRedirect,Cn.PermanentRedirect],Agt=[Cn.BadGateway,Cn.ServiceUnavailable,Cn.GatewayTimeout],mgt=["OPTIONS","GET","DELETE","HEAD"],ggt=10,ygt=5,o8=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}},a8=class{static{o(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return Wr(this,void 0,void 0,function*(){return new Promise(e=>Wr(this,void 0,void 0,function*(){let r=Buffer.alloc(0);this.message.on("data",n=>{r=Buffer.concat([r,n])}),this.message.on("end",()=>{e(r.toString())})}))})}readBodyBuffer(){return Wr(this,void 0,void 0,function*(){return new Promise(e=>Wr(this,void 0,void 0,function*(){let r=[];this.message.on("data",n=>{r.push(n)}),this.message.on("end",()=>{e(Buffer.concat(r))})}))})}};var sy=class{static{o(this,"HttpClient")}constructor(e,r,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=r||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,r){return Wr(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,r||{})})}get(e,r){return Wr(this,void 0,void 0,function*(){return this.request("GET",e,null,r||{})})}del(e,r){return Wr(this,void 0,void 0,function*(){return this.request("DELETE",e,null,r||{})})}post(e,r,n){return Wr(this,void 0,void 0,function*(){return this.request("POST",e,r,n||{})})}patch(e,r,n){return Wr(this,void 0,void 0,function*(){return this.request("PATCH",e,r,n||{})})}put(e,r,n){return Wr(this,void 0,void 0,function*(){return this.request("PUT",e,r,n||{})})}head(e,r){return Wr(this,void 0,void 0,function*(){return this.request("HEAD",e,null,r||{})})}sendStream(e,r,n,i){return Wr(this,void 0,void 0,function*(){return this.request(e,r,n,i)})}getJson(e){return Wr(this,arguments,void 0,function*(r,n={}){n[Ui.Accept]=this._getExistingOrDefaultHeader(n,Ui.Accept,Nu.ApplicationJson);let i=yield this.get(r,n);return this._processResponse(i,this.requestOptions)})}postJson(e,r){return Wr(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[Ui.Accept]=this._getExistingOrDefaultHeader(s,Ui.Accept,Nu.ApplicationJson),s[Ui.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,Nu.ApplicationJson);let c=yield this.post(n,a,s);return this._processResponse(c,this.requestOptions)})}putJson(e,r){return Wr(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[Ui.Accept]=this._getExistingOrDefaultHeader(s,Ui.Accept,Nu.ApplicationJson),s[Ui.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,Nu.ApplicationJson);let c=yield this.put(n,a,s);return this._processResponse(c,this.requestOptions)})}patchJson(e,r){return Wr(this,arguments,void 0,function*(n,i,s={}){let a=JSON.stringify(i,null,2);s[Ui.Accept]=this._getExistingOrDefaultHeader(s,Ui.Accept,Nu.ApplicationJson),s[Ui.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,Nu.ApplicationJson);let c=yield this.patch(n,a,s);return this._processResponse(c,this.requestOptions)})}request(e,r,n,i){return Wr(this,void 0,void 0,function*(){if(this._disposed)throw new Error("Client has already been disposed.");let s=new URL(r),a=this._prepareRequest(e,s,i),c=this._allowRetries&&mgt.includes(e)?this._maxRetries+1:1,l=0,u;do{if(u=yield this.requestRaw(a,n),u&&u.message&&u.message.statusCode===Cn.Unauthorized){let f;for(let h of this.handlers)if(h.canHandleAuthentication(u)){f=h;break}return f?f.handleAuthentication(this,a,n):u}let d=this._maxRedirects;for(;u.message.statusCode&&pgt.includes(u.message.statusCode)&&this._allowRedirects&&d>0;){let f=u.message.headers.location;if(!f)break;let h=new URL(f);if(s.protocol==="https:"&&s.protocol!==h.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield u.readBody(),h.hostname!==s.hostname)for(let p in i)p.toLowerCase()==="authorization"&&delete i[p];a=this._prepareRequest(e,h,i),u=yield this.requestRaw(a,n),d--}if(!u.message.statusCode||!Agt.includes(u.message.statusCode))return u;l+=1,l{function s(a,c){a?i(a):c?n(c):i(new Error("Unknown error"))}o(s,"callbackForResult"),this.requestRawWithCallback(e,r,s)})})}requestRawWithCallback(e,r,n){typeof r=="string"&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8"));let i=!1;function s(l,u){i||(i=!0,n(l,u))}o(s,"handleResult");let a=e.httpModule.request(e.options,l=>{let u=new a8(l);s(void 0,u)}),c;a.on("socket",l=>{c=l}),a.setTimeout(this._socketTimeout||3*6e4,()=>{c&&c.end(),s(new Error(`Request timeout: ${e.options.path}`))}),a.on("error",function(l){s(l)}),r&&typeof r=="string"&&a.write(r,"utf8"),r&&typeof r!="string"?(r.on("close",function(){a.end()}),r.pipe(a)):a.end()}getAgent(e){let r=new URL(e);return this._getAgent(r)}getAgentDispatcher(e){let r=new URL(e),n=s8(r);if(n&&n.hostname)return this._getProxyAgentDispatcher(r,n)}_prepareRequest(e,r,n){let i={};i.parsedUrl=r;let s=i.parsedUrl.protocol==="https:";i.httpModule=s?c8:Dw;let a=s?443:80;if(i.options={},i.options.host=i.parsedUrl.hostname,i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):a,i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||""),i.options.method=e,i.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(i.options.headers["user-agent"]=this.userAgent),i.options.agent=this._getAgent(i.parsedUrl),this.handlers)for(let c of this.handlers)c.prepareRequest(i.options);return i}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},Tw(this.requestOptions.headers),Tw(e||{})):Tw(e||{})}_getExistingOrDefaultHeader(e,r,n){let i;if(this.requestOptions&&this.requestOptions.headers){let a=Tw(this.requestOptions.headers)[r];a&&(i=typeof a=="number"?a.toString():a)}let s=e[r];return s!==void 0?typeof s=="number"?s.toString():s:i!==void 0?i:n}_getExistingOrDefaultContentTypeHeader(e,r){let n;if(this.requestOptions&&this.requestOptions.headers){let s=Tw(this.requestOptions.headers)[Ui.ContentType];s&&(typeof s=="number"?n=String(s):Array.isArray(s)?n=s.join(", "):n=s)}let i=e[Ui.ContentType];return i!==void 0?typeof i=="number"?String(i):Array.isArray(i)?i.join(", "):i:n!==void 0?n:r}_getAgent(e){let r,n=s8(e),i=n&&n.hostname;if(this._keepAlive&&i&&(r=this._proxyAgent),i||(r=this._agent),r)return r;let s=e.protocol==="https:",a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||Dw.globalAgent.maxSockets),n&&n.hostname){let c={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},l,u=n.protocol==="https:";s?l=u?Zd.httpsOverHttps:Zd.httpsOverHttp:l=u?Zd.httpOverHttps:Zd.httpOverHttp,r=l(c),this._proxyAgent=r}if(!r){let c={keepAlive:this._keepAlive,maxSockets:a};r=s?new c8.Agent(c):new Dw.Agent(c),this._agent=r}return s&&this._ignoreSslError&&(r.options=Object.assign(r.options||{},{rejectUnauthorized:!1})),r}_getProxyAgentDispatcher(e,r){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;let i=e.protocol==="https:";return n=new q0e.ProxyAgent(Object.assign({uri:r.href,pipelining:this._keepAlive?1:0},(r.username||r.password)&&{token:`Basic ${Buffer.from(`${r.username}:${r.password}`).toString("base64")}`})),this._proxyAgentDispatcher=n,i&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_getUserAgentWithOrchestrationId(e){let r=e||"actions/http-client",n=process.env.ACTIONS_ORCHESTRATION_ID;if(n){let i=n.replace(/[^a-z0-9_.-]/gi,"_");return`${r} actions_orchestration_id/${i}`}return r}_performExponentialBackoff(e){return Wr(this,void 0,void 0,function*(){e=Math.min(ggt,e);let r=ygt*Math.pow(2,e);return new Promise(n=>setTimeout(()=>n(),r))})}_processResponse(e,r){return Wr(this,void 0,void 0,function*(){return new Promise((n,i)=>Wr(this,void 0,void 0,function*(){let s=e.message.statusCode||0,a={statusCode:s,result:null,headers:{}};s===Cn.NotFound&&n(a);function c(d,f){if(typeof f=="string"){let h=new Date(f);if(!isNaN(h.valueOf()))return h}return f}o(c,"dateTimeDeserializer");let l,u;try{u=yield e.readBody(),u&&u.length>0&&(r&&r.deserializeDates?l=JSON.parse(u,c):l=JSON.parse(u),a.result=l),a.headers=e.message.headers}catch{}if(s>299){let d;l&&l.message?d=l.message:u&&u.length>0?d=u:d=`Failed request: (${s})`;let f=new o8(d,s);f.result=a.result,i(f)}else n(a)}))})}},Tw=o(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys");var Cgt=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};var F2=class{static{o(this,"BearerCredentialHandler")}constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization=`Bearer ${this.token}`}canHandleAuthentication(){return!1}handleAuthentication(){return Cgt(this,void 0,void 0,function*(){throw new Error("not implemented")})}};var V0e=T(z0e(),1);function al(){return`@actions/artifact-${V0e.version}`}o(al,"getUserAgentString");var oy=class extends Error{static{o(this,"FilesNotFoundError")}constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},Ga=class extends Error{static{o(this,"InvalidResponseError")}constructor(e){super(e),this.name="InvalidResponseError"}},_u=class extends Error{static{o(this,"ArtifactNotFoundError")}constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},ef=class extends Error{static{o(this,"GHESNotSupportedError")}constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},Ru=class extends Error{static{o(this,"NetworkError")}constructor(e){let r=`Unable to make request: ${e} +If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};Ru.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Bp=class extends Error{static{o(this,"UsageError")}constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts. +More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Bp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var M2=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function cl(){let t=P2(),e=D2(t);if(!e.scp)throw M2;let r=e.scp.split(" ");if(r.length===0)throw M2;for(let n of r){let i=n.split(":");if(i?.[0]!=="Actions.Results")continue;if(i.length!==3)throw M2;let s={workflowRunBackendId:i[1],workflowJobRunBackendId:i[2]};return v(`Workflow Run Backend ID: ${s.workflowRunBackendId}`),v(`Workflow Job Run Backend ID: ${s.workflowJobRunBackendId}`),s}throw M2}o(cl,"getBackendIdsFromToken");function $0e(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Os(r),Os(encodeURIComponent(r)))}catch(e){v(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}o($0e,"maskSigUrl");function j0e(t){if(typeof t!="object"||t===null){v("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&$0e(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&$0e(t.signed_url)}o(j0e,"maskSecretUrls");var U2=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},l8=class{static{o(this,"ArtifactHttpClient")}constructor(e,r,n,i){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=8e3,this.retryMultiplier=1.5,this.retryTimeoutMilliseconds=12e4;let s=P2();this.baseUrl=N0e(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),i&&(this.retryMultiplier=i),this.httpClient=new sy(e,[new F2(s)])}request(e,r,n,i){return U2(this,void 0,void 0,function*(){let s=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;v(`[Request] ${r} ${s}`);let a={"Content-Type":n};try{let{body:c}=yield this.retryableRequest(()=>U2(this,void 0,void 0,function*(){return this.httpClient.post(s,JSON.stringify(i),a)}));return c}catch(c){throw new Error(`Failed to ${r}: ${c.message}`)}})}retryableRequest(e){return U2(this,void 0,void 0,function*(){let r=0,n="",i="",s=0;for(;rthis.retryTimeoutMilliseconds)throw new Error(`Retry wait of ${l} ms would exceed the maximum total retry wait of ${this.retryTimeoutMilliseconds} ms: ${n}`);D(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${l} ms...`),yield this.sleep(l),s+=l,r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[Cn.BadGateway,Cn.GatewayTimeout,Cn.InternalServerError,Cn.ServiceUnavailable,Cn.TooManyRequests].includes(e):!1}getRetryAfterSeconds(e){var r;let n=e.message.headers["retry-after"],i=(r=Array.isArray(n)?n[0]:n)===null||r===void 0?void 0:r.trim();if(i===void 0||!/^\d+$/.test(i))return;let s=parseInt(i,10);return!isNaN(s)&&s>0?s:void 0}sleep(e){return U2(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function ll(t){let e=new l8(al(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new O2(e)}o(ll,"internalArtifactTwirpClient");var cy=T(require("fs"),1);var ay=require("path");function W0e(t){if(!cy.existsSync(t))throw new Error(`The provided rootDirectory ${t} does not exist`);if(!cy.statSync(t).isDirectory())throw new Error(`The provided rootDirectory ${t} is not a valid directory`);D("Root directory input is valid!")}o(W0e,"validateRootDirectory");function J0e(t,e){let r=[];e=(0,ay.normalize)(e),e=(0,ay.resolve)(e);for(let n of t){let i=cy.lstatSync(n,{throwIfNoEntry:!1});if(!i)throw new Error(`File ${n} does not exist`);if(i.isDirectory()){let s=n.replace(e,"");i8(s),r.push({sourcePath:null,destinationPath:s,stats:i})}else{if(n=(0,ay.normalize)(n),n=(0,ay.resolve)(n),!n.startsWith(e))throw new Error(`The rootDirectory: ${e} is not a parent directory of the file: ${n}`);let s=n.replace(e,"");i8(s),r.push({sourcePath:n,destinationPath:s,stats:i})}}return r}o(J0e,"getUploadZipSpecification");var K0e=T(require("crypto"),1),X0e=T(require("stream"),1);var Y0e=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function Z0e(t,e,r){return Y0e(this,void 0,void 0,function*(){let n=0,i=Date.now(),s=new AbortController,a=o(E=>Y0e(this,void 0,void 0,function*(){return new Promise((y,C)=>{let w=setInterval(()=>{Date.now()-i>E&&C(new Error("Upload progress stalled."))},E);s.signal.addEventListener("abort",()=>{clearInterval(w),y()})})}),"chunkTimer"),c=R0e(),l=Sp(),d=new Pa(t).getBlockBlobClient();v(`Uploading artifact to blob storage with maxConcurrency: ${c}, bufferSize: ${l}, contentType: ${r}`);let h={blobHTTPHeaders:{blobContentType:r},onProgress:o(E=>{D(`Uploaded bytes ${E.loadedBytes}`),n=E.loadedBytes,i=Date.now()},"uploadCallback"),abortSignal:s.signal},p,m=new X0e.PassThrough,A=K0e.createHash("sha256");e.pipe(m),e.pipe(A).setEncoding("hex"),D("Beginning upload of artifact content to blob storage");try{yield Promise.race([d.uploadStream(m,l,c,h),a(T0e())])}catch(E){throw Ru.isNetworkErrorCode(E?.code)?new Ru(E?.code):E}finally{s.abort()}return D("Finished uploading artifact content to blob storage!"),A.end(),p=A.read(),D(`SHA256 digest of uploaded artifact is ${p}`),n===0&&Ge("No data was uploaded to blob storage. Reported upload byte count is 0."),{uploadSize:n,sha256Hash:p}})}o(Z0e,"uploadToBlobStorage");var cDe=require("fs/promises"),lDe=T(iDe(),1);var sDe=T(require("stream"),1),JQ=T(require("fs"),1),oDe=require("fs/promises");var FDt=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},YI=class extends sDe.Transform{static{o(this,"WaterMarkedUploadStream")}constructor(e){super({highWaterMark:e})}_transform(e,r,n){n(null,e)}};function aDe(t){return FDt(this,void 0,void 0,function*(){v(`Creating raw file upload stream for: ${t}`);let e=Sp(),r=new YI(e),n=t;(yield JQ.promises.lstat(t)).isSymbolicLink()&&(n=yield(0,oDe.realpath)(t));let s=JQ.createReadStream(n,{highWaterMark:e});return s.on("error",a=>{Sa("An error has occurred while reading the file for upload"),Sa(String(a)),r.destroy(new Error("An error has occurred during file read for the artifact"))}),s.pipe(r),r})}o(aDe,"createRawFileUploadStream");var MDt=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},UDt=6;function uDe(t){return MDt(this,arguments,void 0,function*(e,r=UDt){v(`Creating Artifact archive with compressionLevel: ${r}`);let n=lDe.default.create("zip",{highWaterMark:Sp(),zlib:{level:r}});n.on("error",qDt),n.on("warning",GDt),n.on("finish",HDt),n.on("end",zDt);for(let a of e)if(a.sourcePath!==null){let c=a.sourcePath;a.stats.isSymbolicLink()&&(c=yield(0,cDe.realpath)(a.sourcePath)),n.file(c,{name:a.destinationPath})}else n.append("",{name:a.destinationPath});let i=Sp(),s=new YI(i);return v(`Zip write high watermark value ${s.writableHighWaterMark}`),v(`Zip read high watermark value ${s.readableHighWaterMark}`),n.pipe(s),n.finalize(),s})}o(uDe,"createZipUploadStream");var qDt=o(t=>{throw Sa("An error has occurred while creating the zip file for upload"),D(t),new Error("An error has occurred during zip creation for the artifact")},"zipErrorCallback"),GDt=o(t=>{t.code==="ENOENT"?(Ge("ENOENT warning during artifact zip creation. No such file or directory"),D(t)):(Ge(`A non-blocking warning has occurred during artifact zip creation: ${t.code}`),D(t))},"zipWarningCallback"),HDt=o(()=>{v("Zip stream for upload has finished.")},"zipFinishCallback"),zDt=o(()=>{v("Zip stream for upload has ended.")},"zipEndCallback");var dDe=T(require("path"),1);var VDt={".txt":"text/plain",".html":"text/html",".htm":"text/html",".css":"text/css",".csv":"text/csv",".xml":"text/xml",".md":"text/markdown",".js":"application/javascript",".mjs":"application/javascript",".json":"application/json",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".svg":"image/svg+xml",".webp":"image/webp",".ico":"image/x-icon",".bmp":"image/bmp",".tiff":"image/tiff",".tif":"image/tiff",".mp3":"audio/mpeg",".wav":"audio/wav",".ogg":"audio/ogg",".flac":"audio/flac",".mp4":"video/mp4",".webm":"video/webm",".avi":"video/x-msvideo",".mov":"video/quicktime",".pdf":"application/pdf",".doc":"application/msword",".docx":"application/vnd.openxmlformats-officedocument.wordprocessingml.document",".xls":"application/vnd.ms-excel",".xlsx":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",".ppt":"application/vnd.ms-powerpoint",".pptx":"application/vnd.openxmlformats-officedocument.presentationml.presentation",".zip":"application/zip",".tar":"application/x-tar",".gz":"application/gzip",".rar":"application/vnd.rar",".7z":"application/x-7z-compressed",".wasm":"application/wasm",".yaml":"application/x-yaml",".yml":"application/x-yaml",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf",".otf":"font/otf",".eot":"application/vnd.ms-fontobject"};function fDe(t){let e=dDe.extname(t).toLowerCase();return VDt[e]||"application/octet-stream"}o(fDe,"getMimeType");var $Dt=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function ADe(t,e,r,n){return $Dt(this,void 0,void 0,function*(){let i=`${t}.zip`;if(n?.skipArchive){if(e.length===0)throw new oy([]);if(e.length>1)throw new Error("skipArchive option is only supported when uploading a single file");if(!hDe.existsSync(e[0]))throw new oy(e);i=pDe.basename(e[0]),t=i}U0e(t),W0e(r);let s=[];if(!n?.skipArchive&&(s=J0e(e,r),s.length===0))throw new oy(s.flatMap(y=>y.sourcePath?[y.sourcePath]:[]));let a=fDe(i),c=cl(),l=ll(),u={workflowRunBackendId:c.workflowRunBackendId,workflowJobRunBackendId:c.workflowJobRunBackendId,name:t,mimeType:nn.create({value:a}),version:7},d=F0e(n?.retentionDays);d&&(u.expiresAt=d);let f=yield l.CreateArtifact(u);if(!f.ok)throw new Ga("CreateArtifact: response from backend was not ok");let h;n?.skipArchive?h=yield aDe(e[0]):h=yield uDe(s,n?.compressionLevel),D(`Uploading artifact: ${i}`);let p=yield Z0e(f.signedUploadUrl,h,a),m={workflowRunBackendId:c.workflowRunBackendId,workflowJobRunBackendId:c.workflowJobRunBackendId,name:t,size:p.uploadSize?p.uploadSize.toString():"0"};p.sha256Hash&&(m.hash=nn.create({value:`sha256:${p.sha256Hash}`})),D("Finalizing artifact upload");let A=yield l.FinalizeArtifact(m);if(!A.ok)throw new Ga("FinalizeArtifact: response from backend was not ok");let E=BigInt(A.artifactId);return D(`Artifact ${t} successfully finalized. Artifact ID ${E}`),{size:p.uploadSize,digest:p.sha256Hash,id:Number(E)}})}o(ADe,"uploadArtifact");var i6=T(require("fs/promises"),1),YDe=T(require("fs"),1),KDe=T(require("crypto"),1),XDe=T(require("stream"),1),KQ=T(require("path"),1);var ZDe=T(JDe(),1);var iE=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},eQe=o(t=>{let e=new URL(t);return e.search="",e.toString()},"scrubQueryParameters");function EQt(t){return iE(this,void 0,void 0,function*(){try{return yield i6.default.access(t),!0}catch(e){if(e.code==="ENOENT")return!1;throw e}})}o(EQt,"exists");function tQe(t,e,r){return iE(this,void 0,void 0,function*(){let n=0;for(;n<5;)try{return yield CQt(t,e,{skipDecompress:r})}catch(i){n++,v(`Failed to download artifact after ${n} retries due to ${i.message}. Retrying in 5 seconds...`),yield new Promise(s=>setTimeout(s,5e3))}throw new Error(`Artifact download failed after ${n} retries.`)})}o(tQe,"streamExtract");function CQt(t,e){return iE(this,arguments,void 0,function*(r,n,i={}){let{timeout:s=30*1e3,skipDecompress:a=!1}=i,l=yield new sy(al()).get(r);if(l.message.statusCode!==200)throw new Error(`Unexpected HTTP response from blob storage: ${l.message.statusCode} ${l.message.statusMessage}`);let u=l.message.headers["content-type"]||"",d=u.split(";",1)[0].trim().toLowerCase(),h=new URL(r).pathname.toLowerCase().endsWith(".zip"),p=d==="application/zip"||d==="application/x-zip-compressed"||d==="application/zip-compressed"||h,m=l.message.headers["content-disposition"]||"",A="artifact",E=m.match(/filename\*\s*=\s*UTF-8''([^;\r\n]*)/i),y=m.match(/(?{let N=setTimeout(o(()=>{let W=new Error(`Blob storage chunk did not respond in ${s}ms`);l.message.destroy(W),P(W)},"timerFn"),s),$=o(W=>{v(`response.message: Artifact download failed: ${W.message}`),clearTimeout(N),P(W)},"onError"),Q=KDe.createHash("sha256").setEncoding("hex"),H=new XDe.PassThrough().on("data",()=>{N.refresh()}).on("error",$);l.message.pipe(H),H.pipe(Q);let V=o(()=>{clearTimeout(N),Q&&(Q.end(),w=Q.read(),D(`SHA256 digest of downloaded artifact is ${w}`)),B({sha256Digest:`sha256:${w}`})},"onClose");if(p&&!a)H.pipe(ZDe.default.Extract({path:n})).on("close",V).on("error",$);else{let W=KQ.join(n,A),ue=YDe.createWriteStream(W);D(`Downloading raw file (non-zip) to: ${W}`),H.pipe(ue).on("close",V).on("error",$)}})})}o(CQt,"streamExtractExternal");function rQe(t,e,r,n,i){return iE(this,void 0,void 0,function*(){let s=yield iQe(i?.path),a=Wo(n),c=!1;D(`Downloading artifact '${t}' from '${e}/${r}'`);let{headers:l,status:u}=yield a.rest.actions.downloadArtifact({owner:e,repo:r,artifact_id:t,archive_format:"zip",request:{redirect:"manual"}});if(u!==302)throw new Error(`Unable to download artifact. Unexpected status: ${u}`);let{location:d}=l;if(!d)throw new Error("Unable to redirect to artifact download url");D(`Redirecting to blob download url: ${eQe(d)}`);try{D(`Starting download of artifact to: ${s}`);let f=yield tQe(d,s,i?.skipDecompress);D("Artifact download completed successfully."),i?.expectedHash&&i?.expectedHash!==f.sha256Digest&&(c=!0,v(`Computed digest: ${f.sha256Digest}`),v(`Expected digest: ${i.expectedHash}`))}catch(f){throw new Error(`Unable to download and extract artifact: ${f.message}`)}return{downloadPath:s,digestMismatch:c}})}o(rQe,"downloadArtifactPublic");function nQe(t,e){return iE(this,void 0,void 0,function*(){let r=yield iQe(e?.path),n=ll(),i=!1,{workflowRunBackendId:s,workflowJobRunBackendId:a}=cl(),c={workflowRunBackendId:s,workflowJobRunBackendId:a,idFilter:iy.create({value:t.toString()})},{artifacts:l}=yield n.ListArtifacts(c);if(l.length===0)throw new _u(`No artifacts found for ID: ${t} +Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);l.length>1&&Ge("Multiple artifacts found, defaulting to first.");let u={workflowRunBackendId:l[0].workflowRunBackendId,workflowJobRunBackendId:l[0].workflowJobRunBackendId,name:l[0].name},{signedUrl:d}=yield n.GetSignedArtifactURL(u);D(`Redirecting to blob download url: ${eQe(d)}`);try{D(`Starting download of artifact to: ${r}`);let f=yield tQe(d,r,e?.skipDecompress);D("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==f.sha256Digest&&(i=!0,v(`Computed digest: ${f.sha256Digest}`),v(`Expected digest: ${e.expectedHash}`))}catch(f){throw new Error(`Unable to download and extract artifact: ${f.message}`)}return{downloadPath:r,digestMismatch:i}})}o(nQe,"downloadArtifactInternal");function iQe(){return iE(this,arguments,void 0,function*(t=_0e()){return(yield EQt(t))?v(`Artifact destination folder already exists: ${t}`):(v(`Artifact destination folder does not exist, creating: ${t}`),yield i6.default.mkdir(t,{recursive:!0})),t})}o(iQe,"resolveOrCreateDirectory");var bQt=5,wQt=[400,401,403,404,422];function sE(t,e=bQt,r=wQt){var n;if(e<=0)return[{enabled:!1},t.request];let i={enabled:!0};r.length>0&&(i.doNotRetry=r);let s=Object.assign(Object.assign({},t.request),{retries:e});return v(`GitHub client configured with: (retries: ${s.retries}, retry-exempt-status-code: ${(n=i.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[i,s]}o(sE,"getRetryOptions");var sQe="6.0.0";function tA(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),i=t.request.endpoint.parse(r),s=i.url.replace(r.baseUrl,"");return e(r).then(a=>{let c=a.headers["x-github-request-id"];return t.log.info(`${i.method} ${s} - ${a.status} with id ${c} in ${Date.now()-n}ms`),a}).catch(a=>{let c=a.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${i.method} ${s} - ${a.status} with id ${c} in ${Date.now()-n}ms`),a})})}o(tA,"requestLog");tA.VERSION=sQe;var cQe=T(oQe(),1);var XQ=class extends Error{static{o(this,"RequestError")}name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let i=Object.assign({},n.request);n.request.headers.authorization&&(i.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?=400&&!t.doNotRetry.includes(r.status)){let i=n.request.retries!=null?n.request.retries:t.retries,s=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,i,s)}throw r}o(aQe,"errorRequest");async function BQt(t,e,r,n){let i=new cQe.default;return i.on("failed",function(s,a){let c=~~s.request.request?.retries,l=~~s.request.request?.retryAfter;if(n.request.retryCount=a.retryCount+1,c>a.retryCount)return l*t.retryAfterBaseValue}),i.schedule(xQt.bind(null,t,e,r),n)}o(BQt,"wrapRequest");async function xQt(t,e,r,n){let i=await r(n);if(i.data&&i.data.errors&&i.data.errors.length>0&&/Something went wrong while executing your query/.test(i.data.errors[0].message)){let s=new XQ(i.data.errors[0].message,500,{request:n,response:i});return aQe(t,e,s,n)}return i}o(xQt,"requestWithGraphqlErrorHandling");function rA(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry),n={retry:{retryRequest:o((i,s,a)=>(i.request.request=Object.assign({},i.request.request,{retries:s,retryAfter:a}),i),"retryRequest")}};return r.enabled&&(t.hook.error("request",aQe.bind(null,r,n)),t.hook.wrap("request",BQt.bind(null,r,n))),n}o(rA,"retry");rA.VERSION=IQt;var lQe=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function ZQ(t,e,r,n,i){return lQe(this,void 0,void 0,function*(){var s;let[a,c]=sE(wp),l={log:void 0,userAgent:al(),previews:void 0,retry:a,request:c},d=yield Wo(i,l,rA,tA).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(d.status!==200)throw new Ga(`Invalid response from GitHub API: ${d.status} (${(s=d?.headers)===null||s===void 0?void 0:s["x-github-request-id"]})`);if(d.data.artifacts.length===0)throw new _u(`Artifact not found for name: ${t} Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact. - For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let f=d.data.artifacts[0];return d.data.artifacts.length>1&&(f=d.data.artifacts.sort((h,p)=>p.id-h.id)[0],v(`More than one artifact found for a single name, returning newest (id: ${f.id})`)),{artifact:{name:f.name,id:f.id,size:f.size_in_bytes,createdAt:f.created_at?new Date(f.created_at):void 0,digest:f.digest}}})}o(XQ,"getArtifactPublic");function lQe(t){return cQe(this,void 0,void 0,function*(){var e;let r=ll(),{workflowRunBackendId:n,workflowJobRunBackendId:i}=cl(),s={workflowRunBackendId:n,workflowJobRunBackendId:i,nameFilter:nn.create({value:t})},a=yield r.ListArtifacts(s);if(a.artifacts.length===0)throw new Nu(`Artifact not found for name: ${t} + For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let f=d.data.artifacts[0];return d.data.artifacts.length>1&&(f=d.data.artifacts.sort((h,p)=>p.id-h.id)[0],v(`More than one artifact found for a single name, returning newest (id: ${f.id})`)),{artifact:{name:f.name,id:f.id,size:f.size_in_bytes,createdAt:f.created_at?new Date(f.created_at):void 0,digest:f.digest}}})}o(ZQ,"getArtifactPublic");function uQe(t){return lQe(this,void 0,void 0,function*(){var e;let r=ll(),{workflowRunBackendId:n,workflowJobRunBackendId:i}=cl(),s={workflowRunBackendId:n,workflowJobRunBackendId:i,nameFilter:nn.create({value:t})},a=yield r.ListArtifacts(s);if(a.artifacts.length===0)throw new _u(`Artifact not found for name: ${t} Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact. - For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let c=a.artifacts[0];return a.artifacts.length>1&&(c=a.artifacts.sort((l,u)=>Number(u.databaseId)-Number(l.databaseId))[0],v(`More than one artifact found for a single name, returning newest (id: ${c.databaseId})`)),{artifact:{name:c.name,id:Number(c.databaseId),size:Number(c.size),createdAt:c.createdAt?to.toDate(c.createdAt):void 0,digest:(e=c.digest)===null||e===void 0?void 0:e.value}}})}o(lQe,"getArtifactInternal");var uQe=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function dQe(t,e,r,n,i){return uQe(this,void 0,void 0,function*(){var s;let[a,c]=iE(bp),l={log:void 0,userAgent:al(),previews:void 0,retry:a,request:c},u=Wo(i,l,tA,eA),d=yield XQ(t,e,r,n,i),f=yield u.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:d.artifact.id});if(f.status!==204)throw new Ga(`Invalid response from GitHub API: ${f.status} (${(s=f?.headers)===null||s===void 0?void 0:s["x-github-request-id"]})`);return{id:d.artifact.id}})}o(dQe,"deleteArtifactPublic");function fQe(t){return uQe(this,void 0,void 0,function*(){let e=ll(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=cl(),i={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:nn.create({value:t})},s=yield e.ListArtifacts(i);if(s.artifacts.length===0)throw new Nu(`Artifact not found for name: ${t}`);let a=s.artifacts[0];s.artifacts.length>1&&(a=s.artifacts.sort((u,d)=>Number(d.databaseId)-Number(u.databaseId))[0],v(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`));let c={workflowRunBackendId:a.workflowRunBackendId,workflowJobRunBackendId:a.workflowJobRunBackendId,name:a.name},l=yield e.DeleteArtifact(c);return D(`Artifact '${t}' (ID: ${l.artifactId}) deleted`),{id:Number(l.artifactId)}})}o(fQe,"deleteArtifactInternal");var hQe=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},ZQ=T0e(),e1=100,SQt=Math.ceil(ZQ/e1);function pQe(t,e,r,n){return hQe(this,arguments,void 0,function*(i,s,a,c,l=!1){D(`Fetching artifact list for workflow run ${i} in repository ${s}/${a}`);let u=[],[d,f]=iE(bp),h={log:void 0,userAgent:al(),previews:void 0,retry:d,request:f},p=Wo(c,h,tA,eA),m=1,{data:A}=yield p.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:s,repo:a,run_id:i,per_page:e1,page:m}),E=Math.ceil(A.total_count/e1),y=A.total_count;y>ZQ&&(Ge(`Workflow run ${i} has ${y} artifacts, exceeding the limit of ${ZQ}. Results will be incomplete as only the first ${ZQ} artifacts will be returned`),E=SQt);for(let C of A.artifacts)u.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?new Date(C.created_at):void 0,digest:C.digest});for(m++,m;m<=E;m++){v(`Fetching page ${m} of artifact list`);let{data:C}=yield p.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:s,repo:a,run_id:i,per_page:e1,page:m});for(let w of C.artifacts)u.push({name:w.name,id:w.id,size:w.size_in_bytes,createdAt:w.created_at?new Date(w.created_at):void 0,digest:w.digest})}return l&&(u=mQe(u)),D(`Found ${u.length} artifact(s)`),{artifacts:u}})}o(pQe,"listArtifactsPublic");function AQe(){return hQe(this,arguments,void 0,function*(t=!1){let e=ll(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=cl(),i={workflowRunBackendId:r,workflowJobRunBackendId:n},a=(yield e.ListArtifacts(i)).artifacts.map(c=>{var l;return{name:c.name,id:Number(c.databaseId),size:Number(c.size),createdAt:c.createdAt?to.toDate(c.createdAt):void 0,digest:(l=c.digest)===null||l===void 0?void 0:l.value}});return t&&(a=mQe(a)),D(`Found ${a.length} artifact(s)`),{artifacts:a}})}o(AQe,"listArtifactsInternal");function mQe(t){t.sort((n,i)=>i.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}o(mQe,"filterLatest");var eS=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},BQt=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i1&&(c=a.artifacts.sort((l,u)=>Number(u.databaseId)-Number(l.databaseId))[0],v(`More than one artifact found for a single name, returning newest (id: ${c.databaseId})`)),{artifact:{name:c.name,id:Number(c.databaseId),size:Number(c.size),createdAt:c.createdAt?to.toDate(c.createdAt):void 0,digest:(e=c.digest)===null||e===void 0?void 0:e.value}}})}o(uQe,"getArtifactInternal");var dQe=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function fQe(t,e,r,n,i){return dQe(this,void 0,void 0,function*(){var s;let[a,c]=sE(wp),l={log:void 0,userAgent:al(),previews:void 0,retry:a,request:c},u=Wo(i,l,rA,tA),d=yield ZQ(t,e,r,n,i),f=yield u.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:d.artifact.id});if(f.status!==204)throw new Ga(`Invalid response from GitHub API: ${f.status} (${(s=f?.headers)===null||s===void 0?void 0:s["x-github-request-id"]})`);return{id:d.artifact.id}})}o(fQe,"deleteArtifactPublic");function hQe(t){return dQe(this,void 0,void 0,function*(){let e=ll(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=cl(),i={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:nn.create({value:t})},s=yield e.ListArtifacts(i);if(s.artifacts.length===0)throw new _u(`Artifact not found for name: ${t}`);let a=s.artifacts[0];s.artifacts.length>1&&(a=s.artifacts.sort((u,d)=>Number(d.databaseId)-Number(u.databaseId))[0],v(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`));let c={workflowRunBackendId:a.workflowRunBackendId,workflowJobRunBackendId:a.workflowJobRunBackendId,name:a.name},l=yield e.DeleteArtifact(c);return D(`Artifact '${t}' (ID: ${l.artifactId}) deleted`),{id:Number(l.artifactId)}})}o(hQe,"deleteArtifactInternal");var pQe=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},e1=D0e(),t1=100,vQt=Math.ceil(e1/t1);function AQe(t,e,r,n){return pQe(this,arguments,void 0,function*(i,s,a,c,l=!1){D(`Fetching artifact list for workflow run ${i} in repository ${s}/${a}`);let u=[],[d,f]=sE(wp),h={log:void 0,userAgent:al(),previews:void 0,retry:d,request:f},p=Wo(c,h,rA,tA),m=1,{data:A}=yield p.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:s,repo:a,run_id:i,per_page:t1,page:m}),E=Math.ceil(A.total_count/t1),y=A.total_count;y>e1&&(Ge(`Workflow run ${i} has ${y} artifacts, exceeding the limit of ${e1}. Results will be incomplete as only the first ${e1} artifacts will be returned`),E=vQt);for(let C of A.artifacts)u.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?new Date(C.created_at):void 0,digest:C.digest});for(m++,m;m<=E;m++){v(`Fetching page ${m} of artifact list`);let{data:C}=yield p.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:s,repo:a,run_id:i,per_page:t1,page:m});for(let w of C.artifacts)u.push({name:w.name,id:w.id,size:w.size_in_bytes,createdAt:w.created_at?new Date(w.created_at):void 0,digest:w.digest})}return l&&(u=gQe(u)),D(`Found ${u.length} artifact(s)`),{artifacts:u}})}o(AQe,"listArtifactsPublic");function mQe(){return pQe(this,arguments,void 0,function*(t=!1){let e=ll(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=cl(),i={workflowRunBackendId:r,workflowJobRunBackendId:n},a=(yield e.ListArtifacts(i)).artifacts.map(c=>{var l;return{name:c.name,id:Number(c.databaseId),size:Number(c.size),createdAt:c.createdAt?to.toDate(c.createdAt):void 0,digest:(l=c.digest)===null||l===void 0?void 0:l.value}});return t&&(a=gQe(a)),D(`Found ${a.length} artifact(s)`),{artifacts:a}})}o(mQe,"listArtifactsInternal");function gQe(t){t.sort((n,i)=>i.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}o(gQe,"filterLatest");var tS=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},NQt=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,oE=new Map([[" ","Tab"],[` -`,"NewLine"],["!","excl"],['"',"quot"],["#","num"],["$","dollar"],["%","percnt"],["&","amp"],["'","apos"],["(","lpar"],[")","rpar"],["*","ast"],["+","plus"],[",","comma"],[".","period"],["/","sol"],[":","colon"],[";","semi"],["<","lt"],["<\u20D2","nvlt"],["=","equals"],["=\u20E5","bne"],[">","gt"],[">\u20D2","nvgt"],["?","quest"],["@","commat"],["[","lsqb"],["]","rsqb"],["^","Hat"],["_","lowbar"],["`","grave"],["fj","fjlig"],["{","lcub"],["|","vert"],["}","rcub"],["\xA0","nbsp"],["\xA1","iexcl"],["\xA2","cent"],["\xA3","pound"],["\xA4","curren"],["\xA5","yen"],["\xA6","brvbar"],["\xA7","sect"],["\xA8","die"],["\xA9","copy"],["\xAA","ordf"],["\xAB","laquo"],["\xAC","not"],["\xAD","shy"],["\xAE","reg"],["\xAF","macr"],["\xB0","deg"],["\xB1","pm"],["\xB2","sup2"],["\xB3","sup3"],["\xB4","acute"],["\xB5","micro"],["\xB6","para"],["\xB7","middot"],["\xB8","cedil"],["\xB9","sup1"],["\xBA","ordm"],["\xBB","raquo"],["\xBC","frac14"],["\xBD","half"],["\xBE","frac34"],["\xBF","iquest"],["\xC0","Agrave"],["\xC1","Aacute"],["\xC2","Acirc"],["\xC3","Atilde"],["\xC4","Auml"],["\xC5","angst"],["\xC6","AElig"],["\xC7","Ccedil"],["\xC8","Egrave"],["\xC9","Eacute"],["\xCA","Ecirc"],["\xCB","Euml"],["\xCC","Igrave"],["\xCD","Iacute"],["\xCE","Icirc"],["\xCF","Iuml"],["\xD0","ETH"],["\xD1","Ntilde"],["\xD2","Ograve"],["\xD3","Oacute"],["\xD4","Ocirc"],["\xD5","Otilde"],["\xD6","Ouml"],["\xD7","times"],["\xD8","Oslash"],["\xD9","Ugrave"],["\xDA","Uacute"],["\xDB","Ucirc"],["\xDC","Uuml"],["\xDD","Yacute"],["\xDE","THORN"],["\xDF","szlig"],["\xE0","agrave"],["\xE1","aacute"],["\xE2","acirc"],["\xE3","atilde"],["\xE4","auml"],["\xE5","aring"],["\xE6","aelig"],["\xE7","ccedil"],["\xE8","egrave"],["\xE9","eacute"],["\xEA","ecirc"],["\xEB","euml"],["\xEC","igrave"],["\xED","iacute"],["\xEE","icirc"],["\xEF","iuml"],["\xF0","eth"],["\xF1","ntilde"],["\xF2","ograve"],["\xF3","oacute"],["\xF4","ocirc"],["\xF5","otilde"],["\xF6","ouml"],["\xF7","div"],["\xF8","oslash"],["\xF9","ugrave"],["\xFA","uacute"],["\xFB","ucirc"],["\xFC","uuml"],["\xFD","yacute"],["\xFE","thorn"],["\xFF","yuml"],["\u0100","Amacr"],["\u0101","amacr"],["\u0102","Abreve"],["\u0103","abreve"],["\u0104","Aogon"],["\u0105","aogon"],["\u0106","Cacute"],["\u0107","cacute"],["\u0108","Ccirc"],["\u0109","ccirc"],["\u010A","Cdot"],["\u010B","cdot"],["\u010C","Ccaron"],["\u010D","ccaron"],["\u010E","Dcaron"],["\u010F","dcaron"],["\u0110","Dstrok"],["\u0111","dstrok"],["\u0112","Emacr"],["\u0113","emacr"],["\u0116","Edot"],["\u0117","edot"],["\u0118","Eogon"],["\u0119","eogon"],["\u011A","Ecaron"],["\u011B","ecaron"],["\u011C","Gcirc"],["\u011D","gcirc"],["\u011E","Gbreve"],["\u011F","gbreve"],["\u0120","Gdot"],["\u0121","gdot"],["\u0122","Gcedil"],["\u0124","Hcirc"],["\u0125","hcirc"],["\u0126","Hstrok"],["\u0127","hstrok"],["\u0128","Itilde"],["\u0129","itilde"],["\u012A","Imacr"],["\u012B","imacr"],["\u012E","Iogon"],["\u012F","iogon"],["\u0130","Idot"],["\u0131","imath"],["\u0132","IJlig"],["\u0133","ijlig"],["\u0134","Jcirc"],["\u0135","jcirc"],["\u0136","Kcedil"],["\u0137","kcedil"],["\u0138","kgreen"],["\u0139","Lacute"],["\u013A","lacute"],["\u013B","Lcedil"],["\u013C","lcedil"],["\u013D","Lcaron"],["\u013E","lcaron"],["\u013F","Lmidot"],["\u0140","lmidot"],["\u0141","Lstrok"],["\u0142","lstrok"],["\u0143","Nacute"],["\u0144","nacute"],["\u0145","Ncedil"],["\u0146","ncedil"],["\u0147","Ncaron"],["\u0148","ncaron"],["\u0149","napos"],["\u014A","ENG"],["\u014B","eng"],["\u014C","Omacr"],["\u014D","omacr"],["\u0150","Odblac"],["\u0151","odblac"],["\u0152","OElig"],["\u0153","oelig"],["\u0154","Racute"],["\u0155","racute"],["\u0156","Rcedil"],["\u0157","rcedil"],["\u0158","Rcaron"],["\u0159","rcaron"],["\u015A","Sacute"],["\u015B","sacute"],["\u015C","Scirc"],["\u015D","scirc"],["\u015E","Scedil"],["\u015F","scedil"],["\u0160","Scaron"],["\u0161","scaron"],["\u0162","Tcedil"],["\u0163","tcedil"],["\u0164","Tcaron"],["\u0165","tcaron"],["\u0166","Tstrok"],["\u0167","tstrok"],["\u0168","Utilde"],["\u0169","utilde"],["\u016A","Umacr"],["\u016B","umacr"],["\u016C","Ubreve"],["\u016D","ubreve"],["\u016E","Uring"],["\u016F","uring"],["\u0170","Udblac"],["\u0171","udblac"],["\u0172","Uogon"],["\u0173","uogon"],["\u0174","Wcirc"],["\u0175","wcirc"],["\u0176","Ycirc"],["\u0177","ycirc"],["\u0178","Yuml"],["\u0179","Zacute"],["\u017A","zacute"],["\u017B","Zdot"],["\u017C","zdot"],["\u017D","Zcaron"],["\u017E","zcaron"],["\u0192","fnof"],["\u01B5","imped"],["\u01F5","gacute"],["\u0237","jmath"],["\u02C6","circ"],["\u02C7","caron"],["\u02D8","breve"],["\u02D9","dot"],["\u02DA","ring"],["\u02DB","ogon"],["\u02DC","tilde"],["\u02DD","dblac"],["\u0311","DownBreve"],["\u0391","Alpha"],["\u0392","Beta"],["\u0393","Gamma"],["\u0394","Delta"],["\u0395","Epsilon"],["\u0396","Zeta"],["\u0397","Eta"],["\u0398","Theta"],["\u0399","Iota"],["\u039A","Kappa"],["\u039B","Lambda"],["\u039C","Mu"],["\u039D","Nu"],["\u039E","Xi"],["\u039F","Omicron"],["\u03A0","Pi"],["\u03A1","Rho"],["\u03A3","Sigma"],["\u03A4","Tau"],["\u03A5","Upsilon"],["\u03A6","Phi"],["\u03A7","Chi"],["\u03A8","Psi"],["\u03A9","ohm"],["\u03B1","alpha"],["\u03B2","beta"],["\u03B3","gamma"],["\u03B4","delta"],["\u03B5","epsi"],["\u03B6","zeta"],["\u03B7","eta"],["\u03B8","theta"],["\u03B9","iota"],["\u03BA","kappa"],["\u03BB","lambda"],["\u03BC","mu"],["\u03BD","nu"],["\u03BE","xi"],["\u03BF","omicron"],["\u03C0","pi"],["\u03C1","rho"],["\u03C2","sigmaf"],["\u03C3","sigma"],["\u03C4","tau"],["\u03C5","upsi"],["\u03C6","phi"],["\u03C7","chi"],["\u03C8","psi"],["\u03C9","omega"],["\u03D1","thetav"],["\u03D2","Upsi"],["\u03D5","phiv"],["\u03D6","piv"],["\u03DC","Gammad"],["\u03DD","gammad"],["\u03F0","kappav"],["\u03F1","rhov"],["\u03F5","epsiv"],["\u03F6","bepsi"],["\u0401","IOcy"],["\u0402","DJcy"],["\u0403","GJcy"],["\u0404","Jukcy"],["\u0405","DScy"],["\u0406","Iukcy"],["\u0407","YIcy"],["\u0408","Jsercy"],["\u0409","LJcy"],["\u040A","NJcy"],["\u040B","TSHcy"],["\u040C","KJcy"],["\u040E","Ubrcy"],["\u040F","DZcy"],["\u0410","Acy"],["\u0411","Bcy"],["\u0412","Vcy"],["\u0413","Gcy"],["\u0414","Dcy"],["\u0415","IEcy"],["\u0416","ZHcy"],["\u0417","Zcy"],["\u0418","Icy"],["\u0419","Jcy"],["\u041A","Kcy"],["\u041B","Lcy"],["\u041C","Mcy"],["\u041D","Ncy"],["\u041E","Ocy"],["\u041F","Pcy"],["\u0420","Rcy"],["\u0421","Scy"],["\u0422","Tcy"],["\u0423","Ucy"],["\u0424","Fcy"],["\u0425","KHcy"],["\u0426","TScy"],["\u0427","CHcy"],["\u0428","SHcy"],["\u0429","SHCHcy"],["\u042A","HARDcy"],["\u042B","Ycy"],["\u042C","SOFTcy"],["\u042D","Ecy"],["\u042E","YUcy"],["\u042F","YAcy"],["\u0430","acy"],["\u0431","bcy"],["\u0432","vcy"],["\u0433","gcy"],["\u0434","dcy"],["\u0435","iecy"],["\u0436","zhcy"],["\u0437","zcy"],["\u0438","icy"],["\u0439","jcy"],["\u043A","kcy"],["\u043B","lcy"],["\u043C","mcy"],["\u043D","ncy"],["\u043E","ocy"],["\u043F","pcy"],["\u0440","rcy"],["\u0441","scy"],["\u0442","tcy"],["\u0443","ucy"],["\u0444","fcy"],["\u0445","khcy"],["\u0446","tscy"],["\u0447","chcy"],["\u0448","shcy"],["\u0449","shchcy"],["\u044A","hardcy"],["\u044B","ycy"],["\u044C","softcy"],["\u044D","ecy"],["\u044E","yucy"],["\u044F","yacy"],["\u0451","iocy"],["\u0452","djcy"],["\u0453","gjcy"],["\u0454","jukcy"],["\u0455","dscy"],["\u0456","iukcy"],["\u0457","yicy"],["\u0458","jsercy"],["\u0459","ljcy"],["\u045A","njcy"],["\u045B","tshcy"],["\u045C","kjcy"],["\u045E","ubrcy"],["\u045F","dzcy"],["\u2002","ensp"],["\u2003","emsp"],["\u2004","emsp13"],["\u2005","emsp14"],["\u2007","numsp"],["\u2008","puncsp"],["\u2009","thinsp"],["\u200A","hairsp"],["\u200B","ZeroWidthSpace"],["\u200C","zwnj"],["\u200D","zwj"],["\u200E","lrm"],["\u200F","rlm"],["\u2010","dash"],["\u2013","ndash"],["\u2014","mdash"],["\u2015","horbar"],["\u2016","Vert"],["\u2018","lsquo"],["\u2019","rsquo"],["\u201A","sbquo"],["\u201C","ldquo"],["\u201D","rdquo"],["\u201E","bdquo"],["\u2020","dagger"],["\u2021","Dagger"],["\u2022","bull"],["\u2025","nldr"],["\u2026","mldr"],["\u2030","permil"],["\u2031","pertenk"],["\u2032","prime"],["\u2033","Prime"],["\u2034","tprime"],["\u2035","bprime"],["\u2039","lsaquo"],["\u203A","rsaquo"],["\u203E","oline"],["\u2041","caret"],["\u2043","hybull"],["\u2044","frasl"],["\u204F","bsemi"],["\u2057","qprime"],["\u205F","MediumSpace"],["\u205F\u200A","ThickSpace"],["\u2060","NoBreak"],["\u2061","af"],["\u2062","it"],["\u2063","ic"],["\u20AC","euro"],["\u20DB","tdot"],["\u20DC","DotDot"],["\u2102","Copf"],["\u2105","incare"],["\u210A","gscr"],["\u210B","Hscr"],["\u210C","Hfr"],["\u210D","Hopf"],["\u210E","planckh"],["\u210F","hbar"],["\u2110","Iscr"],["\u2111","Im"],["\u2112","Lscr"],["\u2113","ell"],["\u2115","Nopf"],["\u2116","numero"],["\u2117","copysr"],["\u2118","wp"],["\u2119","Popf"],["\u211A","Qopf"],["\u211B","Rscr"],["\u211C","Re"],["\u211D","Ropf"],["\u211E","rx"],["\u2122","trade"],["\u2124","Zopf"],["\u2127","mho"],["\u2128","Zfr"],["\u2129","iiota"],["\u212C","Bscr"],["\u212D","Cfr"],["\u212F","escr"],["\u2130","Escr"],["\u2131","Fscr"],["\u2133","Mscr"],["\u2134","oscr"],["\u2135","aleph"],["\u2136","beth"],["\u2137","gimel"],["\u2138","daleth"],["\u2145","DD"],["\u2146","dd"],["\u2147","ee"],["\u2148","ii"],["\u2153","frac13"],["\u2154","frac23"],["\u2155","frac15"],["\u2156","frac25"],["\u2157","frac35"],["\u2158","frac45"],["\u2159","frac16"],["\u215A","frac56"],["\u215B","frac18"],["\u215C","frac38"],["\u215D","frac58"],["\u215E","frac78"],["\u2190","larr"],["\u2191","uarr"],["\u2192","rarr"],["\u2193","darr"],["\u2194","harr"],["\u2195","varr"],["\u2196","nwarr"],["\u2197","nearr"],["\u2198","searr"],["\u2199","swarr"],["\u219A","nlarr"],["\u219B","nrarr"],["\u219D","rarrw"],["\u219D\u0338","nrarrw"],["\u219E","Larr"],["\u219F","Uarr"],["\u21A0","Rarr"],["\u21A1","Darr"],["\u21A2","larrtl"],["\u21A3","rarrtl"],["\u21A4","mapstoleft"],["\u21A5","mapstoup"],["\u21A6","map"],["\u21A7","mapstodown"],["\u21A9","larrhk"],["\u21AA","rarrhk"],["\u21AB","larrlp"],["\u21AC","rarrlp"],["\u21AD","harrw"],["\u21AE","nharr"],["\u21B0","lsh"],["\u21B1","rsh"],["\u21B2","ldsh"],["\u21B3","rdsh"],["\u21B5","crarr"],["\u21B6","cularr"],["\u21B7","curarr"],["\u21BA","olarr"],["\u21BB","orarr"],["\u21BC","lharu"],["\u21BD","lhard"],["\u21BE","uharr"],["\u21BF","uharl"],["\u21C0","rharu"],["\u21C1","rhard"],["\u21C2","dharr"],["\u21C3","dharl"],["\u21C4","rlarr"],["\u21C5","udarr"],["\u21C6","lrarr"],["\u21C7","llarr"],["\u21C8","uuarr"],["\u21C9","rrarr"],["\u21CA","ddarr"],["\u21CB","lrhar"],["\u21CC","rlhar"],["\u21CD","nlArr"],["\u21CE","nhArr"],["\u21CF","nrArr"],["\u21D0","lArr"],["\u21D1","uArr"],["\u21D2","rArr"],["\u21D3","dArr"],["\u21D4","iff"],["\u21D5","vArr"],["\u21D6","nwArr"],["\u21D7","neArr"],["\u21D8","seArr"],["\u21D9","swArr"],["\u21DA","lAarr"],["\u21DB","rAarr"],["\u21DD","zigrarr"],["\u21E4","larrb"],["\u21E5","rarrb"],["\u21F5","duarr"],["\u21FD","loarr"],["\u21FE","roarr"],["\u21FF","hoarr"],["\u2200","forall"],["\u2201","comp"],["\u2202","part"],["\u2202\u0338","npart"],["\u2203","exist"],["\u2204","nexist"],["\u2205","empty"],["\u2207","Del"],["\u2208","in"],["\u2209","notin"],["\u220B","ni"],["\u220C","notni"],["\u220F","prod"],["\u2210","coprod"],["\u2211","sum"],["\u2212","minus"],["\u2213","mp"],["\u2214","plusdo"],["\u2216","setmn"],["\u2217","lowast"],["\u2218","compfn"],["\u221A","Sqrt"],["\u221D","prop"],["\u221E","infin"],["\u221F","angrt"],["\u2220","ang"],["\u2220\u20D2","nang"],["\u2221","angmsd"],["\u2222","angsph"],["\u2223","mid"],["\u2224","nmid"],["\u2225","par"],["\u2226","npar"],["\u2227","and"],["\u2228","or"],["\u2229","cap"],["\u2229\uFE00","caps"],["\u222A","cup"],["\u222A\uFE00","cups"],["\u222B","int"],["\u222C","Int"],["\u222D","tint"],["\u222E","oint"],["\u222F","Conint"],["\u2230","Cconint"],["\u2231","cwint"],["\u2232","cwconint"],["\u2233","awconint"],["\u2234","there4"],["\u2235","becaus"],["\u2236","ratio"],["\u2237","Colon"],["\u2238","minusd"],["\u223A","mDDot"],["\u223B","homtht"],["\u223C","sim"],["\u223C\u20D2","nvsim"],["\u223D","bsim"],["\u223D\u0331","race"],["\u223E","ac"],["\u223E\u0333","acE"],["\u223F","acd"],["\u2240","wr"],["\u2241","nsim"],["\u2242","esim"],["\u2242\u0338","nesim"],["\u2243","sime"],["\u2244","nsime"],["\u2245","cong"],["\u2246","simne"],["\u2247","ncong"],["\u2248","ap"],["\u2249","nap"],["\u224A","ape"],["\u224B","apid"],["\u224B\u0338","napid"],["\u224C","bcong"],["\u224D","CupCap"],["\u224D\u20D2","nvap"],["\u224E","bump"],["\u224E\u0338","nbump"],["\u224F","bumpe"],["\u224F\u0338","nbumpe"],["\u2250","doteq"],["\u2250\u0338","nedot"],["\u2251","eDot"],["\u2252","efDot"],["\u2253","erDot"],["\u2254","colone"],["\u2255","ecolon"],["\u2256","ecir"],["\u2257","cire"],["\u2259","wedgeq"],["\u225A","veeeq"],["\u225C","trie"],["\u225F","equest"],["\u2260","ne"],["\u2261","equiv"],["\u2261\u20E5","bnequiv"],["\u2262","nequiv"],["\u2264","le"],["\u2264\u20D2","nvle"],["\u2265","ge"],["\u2265\u20D2","nvge"],["\u2266","lE"],["\u2266\u0338","nlE"],["\u2267","gE"],["\u2267\u0338","ngE"],["\u2268","lnE"],["\u2268\uFE00","lvnE"],["\u2269","gnE"],["\u2269\uFE00","gvnE"],["\u226A","ll"],["\u226A\u0338","nLtv"],["\u226A\u20D2","nLt"],["\u226B","gg"],["\u226B\u0338","nGtv"],["\u226B\u20D2","nGt"],["\u226C","twixt"],["\u226D","NotCupCap"],["\u226E","nlt"],["\u226F","ngt"],["\u2270","nle"],["\u2271","nge"],["\u2272","lsim"],["\u2273","gsim"],["\u2274","nlsim"],["\u2275","ngsim"],["\u2276","lg"],["\u2277","gl"],["\u2278","ntlg"],["\u2279","ntgl"],["\u227A","pr"],["\u227B","sc"],["\u227C","prcue"],["\u227D","sccue"],["\u227E","prsim"],["\u227F","scsim"],["\u227F\u0338","NotSucceedsTilde"],["\u2280","npr"],["\u2281","nsc"],["\u2282","sub"],["\u2282\u20D2","vnsub"],["\u2283","sup"],["\u2283\u20D2","vnsup"],["\u2284","nsub"],["\u2285","nsup"],["\u2286","sube"],["\u2287","supe"],["\u2288","nsube"],["\u2289","nsupe"],["\u228A","subne"],["\u228A\uFE00","vsubne"],["\u228B","supne"],["\u228B\uFE00","vsupne"],["\u228D","cupdot"],["\u228E","uplus"],["\u228F","sqsub"],["\u228F\u0338","NotSquareSubset"],["\u2290","sqsup"],["\u2290\u0338","NotSquareSuperset"],["\u2291","sqsube"],["\u2292","sqsupe"],["\u2293","sqcap"],["\u2293\uFE00","sqcaps"],["\u2294","sqcup"],["\u2294\uFE00","sqcups"],["\u2295","oplus"],["\u2296","ominus"],["\u2297","otimes"],["\u2298","osol"],["\u2299","odot"],["\u229A","ocir"],["\u229B","oast"],["\u229D","odash"],["\u229E","plusb"],["\u229F","minusb"],["\u22A0","timesb"],["\u22A1","sdotb"],["\u22A2","vdash"],["\u22A3","dashv"],["\u22A4","top"],["\u22A5","bot"],["\u22A7","models"],["\u22A8","vDash"],["\u22A9","Vdash"],["\u22AA","Vvdash"],["\u22AB","VDash"],["\u22AC","nvdash"],["\u22AD","nvDash"],["\u22AE","nVdash"],["\u22AF","nVDash"],["\u22B0","prurel"],["\u22B2","vltri"],["\u22B3","vrtri"],["\u22B4","ltrie"],["\u22B4\u20D2","nvltrie"],["\u22B5","rtrie"],["\u22B5\u20D2","nvrtrie"],["\u22B6","origof"],["\u22B7","imof"],["\u22B8","mumap"],["\u22B9","hercon"],["\u22BA","intcal"],["\u22BB","veebar"],["\u22BD","barvee"],["\u22BE","angrtvb"],["\u22BF","lrtri"],["\u22C0","Wedge"],["\u22C1","Vee"],["\u22C2","xcap"],["\u22C3","xcup"],["\u22C4","diam"],["\u22C5","sdot"],["\u22C6","Star"],["\u22C7","divonx"],["\u22C8","bowtie"],["\u22C9","ltimes"],["\u22CA","rtimes"],["\u22CB","lthree"],["\u22CC","rthree"],["\u22CD","bsime"],["\u22CE","cuvee"],["\u22CF","cuwed"],["\u22D0","Sub"],["\u22D1","Sup"],["\u22D2","Cap"],["\u22D3","Cup"],["\u22D4","fork"],["\u22D5","epar"],["\u22D6","ltdot"],["\u22D7","gtdot"],["\u22D8","Ll"],["\u22D8\u0338","nLl"],["\u22D9","Gg"],["\u22D9\u0338","nGg"],["\u22DA","leg"],["\u22DA\uFE00","lesg"],["\u22DB","gel"],["\u22DB\uFE00","gesl"],["\u22DE","cuepr"],["\u22DF","cuesc"],["\u22E0","nprcue"],["\u22E1","nsccue"],["\u22E2","nsqsube"],["\u22E3","nsqsupe"],["\u22E6","lnsim"],["\u22E7","gnsim"],["\u22E8","prnsim"],["\u22E9","scnsim"],["\u22EA","nltri"],["\u22EB","nrtri"],["\u22EC","nltrie"],["\u22ED","nrtrie"],["\u22EE","vellip"],["\u22EF","ctdot"],["\u22F0","utdot"],["\u22F1","dtdot"],["\u22F2","disin"],["\u22F3","isinsv"],["\u22F4","isins"],["\u22F5","isindot"],["\u22F5\u0338","notindot"],["\u22F6","notinvc"],["\u22F7","notinvb"],["\u22F9","isinE"],["\u22F9\u0338","notinE"],["\u22FA","nisd"],["\u22FB","xnis"],["\u22FC","nis"],["\u22FD","notnivc"],["\u22FE","notnivb"],["\u2305","barwed"],["\u2306","Barwed"],["\u2308","lceil"],["\u2309","rceil"],["\u230A","lfloor"],["\u230B","rfloor"],["\u230C","drcrop"],["\u230D","dlcrop"],["\u230E","urcrop"],["\u230F","ulcrop"],["\u2310","bnot"],["\u2312","profline"],["\u2313","profsurf"],["\u2315","telrec"],["\u2316","target"],["\u231C","ulcorn"],["\u231D","urcorn"],["\u231E","dlcorn"],["\u231F","drcorn"],["\u2322","frown"],["\u2323","smile"],["\u232D","cylcty"],["\u232E","profalar"],["\u2336","topbot"],["\u233D","ovbar"],["\u233F","solbar"],["\u237C","angzarr"],["\u23B0","lmoust"],["\u23B1","rmoust"],["\u23B4","tbrk"],["\u23B5","bbrk"],["\u23B6","bbrktbrk"],["\u23DC","OverParenthesis"],["\u23DD","UnderParenthesis"],["\u23DE","OverBrace"],["\u23DF","UnderBrace"],["\u23E2","trpezium"],["\u23E7","elinters"],["\u2423","blank"],["\u24C8","oS"],["\u2500","boxh"],["\u2502","boxv"],["\u250C","boxdr"],["\u2510","boxdl"],["\u2514","boxur"],["\u2518","boxul"],["\u251C","boxvr"],["\u2524","boxvl"],["\u252C","boxhd"],["\u2534","boxhu"],["\u253C","boxvh"],["\u2550","boxH"],["\u2551","boxV"],["\u2552","boxdR"],["\u2553","boxDr"],["\u2554","boxDR"],["\u2555","boxdL"],["\u2556","boxDl"],["\u2557","boxDL"],["\u2558","boxuR"],["\u2559","boxUr"],["\u255A","boxUR"],["\u255B","boxuL"],["\u255C","boxUl"],["\u255D","boxUL"],["\u255E","boxvR"],["\u255F","boxVr"],["\u2560","boxVR"],["\u2561","boxvL"],["\u2562","boxVl"],["\u2563","boxVL"],["\u2564","boxHd"],["\u2565","boxhD"],["\u2566","boxHD"],["\u2567","boxHu"],["\u2568","boxhU"],["\u2569","boxHU"],["\u256A","boxvH"],["\u256B","boxVh"],["\u256C","boxVH"],["\u2580","uhblk"],["\u2584","lhblk"],["\u2588","block"],["\u2591","blk14"],["\u2592","blk12"],["\u2593","blk34"],["\u25A1","squ"],["\u25AA","squf"],["\u25AB","EmptyVerySmallSquare"],["\u25AD","rect"],["\u25AE","marker"],["\u25B1","fltns"],["\u25B3","xutri"],["\u25B4","utrif"],["\u25B5","utri"],["\u25B8","rtrif"],["\u25B9","rtri"],["\u25BD","xdtri"],["\u25BE","dtrif"],["\u25BF","dtri"],["\u25C2","ltrif"],["\u25C3","ltri"],["\u25CA","loz"],["\u25CB","cir"],["\u25EC","tridot"],["\u25EF","xcirc"],["\u25F8","ultri"],["\u25F9","urtri"],["\u25FA","lltri"],["\u25FB","EmptySmallSquare"],["\u25FC","FilledSmallSquare"],["\u2605","starf"],["\u2606","star"],["\u260E","phone"],["\u2640","female"],["\u2642","male"],["\u2660","spades"],["\u2663","clubs"],["\u2665","hearts"],["\u2666","diams"],["\u266A","sung"],["\u266D","flat"],["\u266E","natur"],["\u266F","sharp"],["\u2713","check"],["\u2717","cross"],["\u2720","malt"],["\u2736","sext"],["\u2758","VerticalSeparator"],["\u2772","lbbrk"],["\u2773","rbbrk"],["\u27C8","bsolhsub"],["\u27C9","suphsol"],["\u27E6","lobrk"],["\u27E7","robrk"],["\u27E8","lang"],["\u27E9","rang"],["\u27EA","Lang"],["\u27EB","Rang"],["\u27EC","loang"],["\u27ED","roang"],["\u27F5","xlarr"],["\u27F6","xrarr"],["\u27F7","xharr"],["\u27F8","xlArr"],["\u27F9","xrArr"],["\u27FA","xhArr"],["\u27FC","xmap"],["\u27FF","dzigrarr"],["\u2902","nvlArr"],["\u2903","nvrArr"],["\u2904","nvHarr"],["\u2905","Map"],["\u290C","lbarr"],["\u290D","rbarr"],["\u290E","lBarr"],["\u290F","rBarr"],["\u2910","RBarr"],["\u2911","DDotrahd"],["\u2912","UpArrowBar"],["\u2913","DownArrowBar"],["\u2916","Rarrtl"],["\u2919","latail"],["\u291A","ratail"],["\u291B","lAtail"],["\u291C","rAtail"],["\u291D","larrfs"],["\u291E","rarrfs"],["\u291F","larrbfs"],["\u2920","rarrbfs"],["\u2923","nwarhk"],["\u2924","nearhk"],["\u2925","searhk"],["\u2926","swarhk"],["\u2927","nwnear"],["\u2928","toea"],["\u2929","tosa"],["\u292A","swnwar"],["\u2933","rarrc"],["\u2933\u0338","nrarrc"],["\u2935","cudarrr"],["\u2936","ldca"],["\u2937","rdca"],["\u2938","cudarrl"],["\u2939","larrpl"],["\u293C","curarrm"],["\u293D","cularrp"],["\u2945","rarrpl"],["\u2948","harrcir"],["\u2949","Uarrocir"],["\u294A","lurdshar"],["\u294B","ldrushar"],["\u294E","LeftRightVector"],["\u294F","RightUpDownVector"],["\u2950","DownLeftRightVector"],["\u2951","LeftUpDownVector"],["\u2952","LeftVectorBar"],["\u2953","RightVectorBar"],["\u2954","RightUpVectorBar"],["\u2955","RightDownVectorBar"],["\u2956","DownLeftVectorBar"],["\u2957","DownRightVectorBar"],["\u2958","LeftUpVectorBar"],["\u2959","LeftDownVectorBar"],["\u295A","LeftTeeVector"],["\u295B","RightTeeVector"],["\u295C","RightUpTeeVector"],["\u295D","RightDownTeeVector"],["\u295E","DownLeftTeeVector"],["\u295F","DownRightTeeVector"],["\u2960","LeftUpTeeVector"],["\u2961","LeftDownTeeVector"],["\u2962","lHar"],["\u2963","uHar"],["\u2964","rHar"],["\u2965","dHar"],["\u2966","luruhar"],["\u2967","ldrdhar"],["\u2968","ruluhar"],["\u2969","rdldhar"],["\u296A","lharul"],["\u296B","llhard"],["\u296C","rharul"],["\u296D","lrhard"],["\u296E","udhar"],["\u296F","duhar"],["\u2970","RoundImplies"],["\u2971","erarr"],["\u2972","simrarr"],["\u2973","larrsim"],["\u2974","rarrsim"],["\u2975","rarrap"],["\u2976","ltlarr"],["\u2978","gtrarr"],["\u2979","subrarr"],["\u297B","suplarr"],["\u297C","lfisht"],["\u297D","rfisht"],["\u297E","ufisht"],["\u297F","dfisht"],["\u2985","lopar"],["\u2986","ropar"],["\u298B","lbrke"],["\u298C","rbrke"],["\u298D","lbrkslu"],["\u298E","rbrksld"],["\u298F","lbrksld"],["\u2990","rbrkslu"],["\u2991","langd"],["\u2992","rangd"],["\u2993","lparlt"],["\u2994","rpargt"],["\u2995","gtlPar"],["\u2996","ltrPar"],["\u299A","vzigzag"],["\u299C","vangrt"],["\u299D","angrtvbd"],["\u29A4","ange"],["\u29A5","range"],["\u29A6","dwangle"],["\u29A7","uwangle"],["\u29A8","angmsdaa"],["\u29A9","angmsdab"],["\u29AA","angmsdac"],["\u29AB","angmsdad"],["\u29AC","angmsdae"],["\u29AD","angmsdaf"],["\u29AE","angmsdag"],["\u29AF","angmsdah"],["\u29B0","bemptyv"],["\u29B1","demptyv"],["\u29B2","cemptyv"],["\u29B3","raemptyv"],["\u29B4","laemptyv"],["\u29B5","ohbar"],["\u29B6","omid"],["\u29B7","opar"],["\u29B9","operp"],["\u29BB","olcross"],["\u29BC","odsold"],["\u29BE","olcir"],["\u29BF","ofcir"],["\u29C0","olt"],["\u29C1","ogt"],["\u29C2","cirscir"],["\u29C3","cirE"],["\u29C4","solb"],["\u29C5","bsolb"],["\u29C9","boxbox"],["\u29CD","trisb"],["\u29CE","rtriltri"],["\u29CF","LeftTriangleBar"],["\u29CF\u0338","NotLeftTriangleBar"],["\u29D0","RightTriangleBar"],["\u29D0\u0338","NotRightTriangleBar"],["\u29DC","iinfin"],["\u29DD","infintie"],["\u29DE","nvinfin"],["\u29E3","eparsl"],["\u29E4","smeparsl"],["\u29E5","eqvparsl"],["\u29EB","lozf"],["\u29F4","RuleDelayed"],["\u29F6","dsol"],["\u2A00","xodot"],["\u2A01","xoplus"],["\u2A02","xotime"],["\u2A04","xuplus"],["\u2A06","xsqcup"],["\u2A0C","qint"],["\u2A0D","fpartint"],["\u2A10","cirfnint"],["\u2A11","awint"],["\u2A12","rppolint"],["\u2A13","scpolint"],["\u2A14","npolint"],["\u2A15","pointint"],["\u2A16","quatint"],["\u2A17","intlarhk"],["\u2A22","pluscir"],["\u2A23","plusacir"],["\u2A24","simplus"],["\u2A25","plusdu"],["\u2A26","plussim"],["\u2A27","plustwo"],["\u2A29","mcomma"],["\u2A2A","minusdu"],["\u2A2D","loplus"],["\u2A2E","roplus"],["\u2A2F","Cross"],["\u2A30","timesd"],["\u2A31","timesbar"],["\u2A33","smashp"],["\u2A34","lotimes"],["\u2A35","rotimes"],["\u2A36","otimesas"],["\u2A37","Otimes"],["\u2A38","odiv"],["\u2A39","triplus"],["\u2A3A","triminus"],["\u2A3B","tritime"],["\u2A3C","iprod"],["\u2A3F","amalg"],["\u2A40","capdot"],["\u2A42","ncup"],["\u2A43","ncap"],["\u2A44","capand"],["\u2A45","cupor"],["\u2A46","cupcap"],["\u2A47","capcup"],["\u2A48","cupbrcap"],["\u2A49","capbrcup"],["\u2A4A","cupcup"],["\u2A4B","capcap"],["\u2A4C","ccups"],["\u2A4D","ccaps"],["\u2A50","ccupssm"],["\u2A53","And"],["\u2A54","Or"],["\u2A55","andand"],["\u2A56","oror"],["\u2A57","orslope"],["\u2A58","andslope"],["\u2A5A","andv"],["\u2A5B","orv"],["\u2A5C","andd"],["\u2A5D","ord"],["\u2A5F","wedbar"],["\u2A66","sdote"],["\u2A6A","simdot"],["\u2A6D","congdot"],["\u2A6D\u0338","ncongdot"],["\u2A6E","easter"],["\u2A6F","apacir"],["\u2A70","apE"],["\u2A70\u0338","napE"],["\u2A71","eplus"],["\u2A72","pluse"],["\u2A73","Esim"],["\u2A74","Colone"],["\u2A75","Equal"],["\u2A77","eDDot"],["\u2A78","equivDD"],["\u2A79","ltcir"],["\u2A7A","gtcir"],["\u2A7B","ltquest"],["\u2A7C","gtquest"],["\u2A7D","les"],["\u2A7D\u0338","nles"],["\u2A7E","ges"],["\u2A7E\u0338","nges"],["\u2A7F","lesdot"],["\u2A80","gesdot"],["\u2A81","lesdoto"],["\u2A82","gesdoto"],["\u2A83","lesdotor"],["\u2A84","gesdotol"],["\u2A85","lap"],["\u2A86","gap"],["\u2A87","lne"],["\u2A88","gne"],["\u2A89","lnap"],["\u2A8A","gnap"],["\u2A8B","lEg"],["\u2A8C","gEl"],["\u2A8D","lsime"],["\u2A8E","gsime"],["\u2A8F","lsimg"],["\u2A90","gsiml"],["\u2A91","lgE"],["\u2A92","glE"],["\u2A93","lesges"],["\u2A94","gesles"],["\u2A95","els"],["\u2A96","egs"],["\u2A97","elsdot"],["\u2A98","egsdot"],["\u2A99","el"],["\u2A9A","eg"],["\u2A9D","siml"],["\u2A9E","simg"],["\u2A9F","simlE"],["\u2AA0","simgE"],["\u2AA1","LessLess"],["\u2AA1\u0338","NotNestedLessLess"],["\u2AA2","GreaterGreater"],["\u2AA2\u0338","NotNestedGreaterGreater"],["\u2AA4","glj"],["\u2AA5","gla"],["\u2AA6","ltcc"],["\u2AA7","gtcc"],["\u2AA8","lescc"],["\u2AA9","gescc"],["\u2AAA","smt"],["\u2AAB","lat"],["\u2AAC","smte"],["\u2AAC\uFE00","smtes"],["\u2AAD","late"],["\u2AAD\uFE00","lates"],["\u2AAE","bumpE"],["\u2AAF","pre"],["\u2AAF\u0338","npre"],["\u2AB0","sce"],["\u2AB0\u0338","nsce"],["\u2AB3","prE"],["\u2AB4","scE"],["\u2AB5","prnE"],["\u2AB6","scnE"],["\u2AB7","prap"],["\u2AB8","scap"],["\u2AB9","prnap"],["\u2ABA","scnap"],["\u2ABB","Pr"],["\u2ABC","Sc"],["\u2ABD","subdot"],["\u2ABE","supdot"],["\u2ABF","subplus"],["\u2AC0","supplus"],["\u2AC1","submult"],["\u2AC2","supmult"],["\u2AC3","subedot"],["\u2AC4","supedot"],["\u2AC5","subE"],["\u2AC5\u0338","nsubE"],["\u2AC6","supE"],["\u2AC6\u0338","nsupE"],["\u2AC7","subsim"],["\u2AC8","supsim"],["\u2ACB","subnE"],["\u2ACB\uFE00","vsubnE"],["\u2ACC","supnE"],["\u2ACC\uFE00","vsupnE"],["\u2ACF","csub"],["\u2AD0","csup"],["\u2AD1","csube"],["\u2AD2","csupe"],["\u2AD3","subsup"],["\u2AD4","supsub"],["\u2AD5","subsub"],["\u2AD6","supsup"],["\u2AD7","suphsub"],["\u2AD8","supdsub"],["\u2AD9","forkv"],["\u2ADA","topfork"],["\u2ADB","mlcp"],["\u2AE4","Dashv"],["\u2AE6","Vdashl"],["\u2AE7","Barv"],["\u2AE8","vBar"],["\u2AE9","vBarv"],["\u2AEB","Vbar"],["\u2AEC","Not"],["\u2AED","bNot"],["\u2AEE","rnmid"],["\u2AEF","cirmid"],["\u2AF0","midcir"],["\u2AF1","topcir"],["\u2AF2","nhpar"],["\u2AF3","parsim"],["\u2AFD","parsl"],["\u2AFD\u20E5","nparsl"],["\u{1D49C}","Ascr"],["\u{1D49E}","Cscr"],["\u{1D49F}","Dscr"],["\u{1D4A2}","Gscr"],["\u{1D4A5}","Jscr"],["\u{1D4A6}","Kscr"],["\u{1D4A9}","Nscr"],["\u{1D4AA}","Oscr"],["\u{1D4AB}","Pscr"],["\u{1D4AC}","Qscr"],["\u{1D4AE}","Sscr"],["\u{1D4AF}","Tscr"],["\u{1D4B0}","Uscr"],["\u{1D4B1}","Vscr"],["\u{1D4B2}","Wscr"],["\u{1D4B3}","Xscr"],["\u{1D4B4}","Yscr"],["\u{1D4B5}","Zscr"],["\u{1D4B6}","ascr"],["\u{1D4B7}","bscr"],["\u{1D4B8}","cscr"],["\u{1D4B9}","dscr"],["\u{1D4BB}","fscr"],["\u{1D4BD}","hscr"],["\u{1D4BE}","iscr"],["\u{1D4BF}","jscr"],["\u{1D4C0}","kscr"],["\u{1D4C1}","lscr"],["\u{1D4C2}","mscr"],["\u{1D4C3}","nscr"],["\u{1D4C5}","pscr"],["\u{1D4C6}","qscr"],["\u{1D4C7}","rscr"],["\u{1D4C8}","sscr"],["\u{1D4C9}","tscr"],["\u{1D4CA}","uscr"],["\u{1D4CB}","vscr"],["\u{1D4CC}","wscr"],["\u{1D4CD}","xscr"],["\u{1D4CE}","yscr"],["\u{1D4CF}","zscr"],["\u{1D504}","Afr"],["\u{1D505}","Bfr"],["\u{1D507}","Dfr"],["\u{1D508}","Efr"],["\u{1D509}","Ffr"],["\u{1D50A}","Gfr"],["\u{1D50D}","Jfr"],["\u{1D50E}","Kfr"],["\u{1D50F}","Lfr"],["\u{1D510}","Mfr"],["\u{1D511}","Nfr"],["\u{1D512}","Ofr"],["\u{1D513}","Pfr"],["\u{1D514}","Qfr"],["\u{1D516}","Sfr"],["\u{1D517}","Tfr"],["\u{1D518}","Ufr"],["\u{1D519}","Vfr"],["\u{1D51A}","Wfr"],["\u{1D51B}","Xfr"],["\u{1D51C}","Yfr"],["\u{1D51E}","afr"],["\u{1D51F}","bfr"],["\u{1D520}","cfr"],["\u{1D521}","dfr"],["\u{1D522}","efr"],["\u{1D523}","ffr"],["\u{1D524}","gfr"],["\u{1D525}","hfr"],["\u{1D526}","ifr"],["\u{1D527}","jfr"],["\u{1D528}","kfr"],["\u{1D529}","lfr"],["\u{1D52A}","mfr"],["\u{1D52B}","nfr"],["\u{1D52C}","ofr"],["\u{1D52D}","pfr"],["\u{1D52E}","qfr"],["\u{1D52F}","rfr"],["\u{1D530}","sfr"],["\u{1D531}","tfr"],["\u{1D532}","ufr"],["\u{1D533}","vfr"],["\u{1D534}","wfr"],["\u{1D535}","xfr"],["\u{1D536}","yfr"],["\u{1D537}","zfr"],["\u{1D538}","Aopf"],["\u{1D539}","Bopf"],["\u{1D53B}","Dopf"],["\u{1D53C}","Eopf"],["\u{1D53D}","Fopf"],["\u{1D53E}","Gopf"],["\u{1D540}","Iopf"],["\u{1D541}","Jopf"],["\u{1D542}","Kopf"],["\u{1D543}","Lopf"],["\u{1D544}","Mopf"],["\u{1D546}","Oopf"],["\u{1D54A}","Sopf"],["\u{1D54B}","Topf"],["\u{1D54C}","Uopf"],["\u{1D54D}","Vopf"],["\u{1D54E}","Wopf"],["\u{1D54F}","Xopf"],["\u{1D550}","Yopf"],["\u{1D552}","aopf"],["\u{1D553}","bopf"],["\u{1D554}","copf"],["\u{1D555}","dopf"],["\u{1D556}","eopf"],["\u{1D557}","fopf"],["\u{1D558}","gopf"],["\u{1D559}","hopf"],["\u{1D55A}","iopf"],["\u{1D55B}","jopf"],["\u{1D55C}","kopf"],["\u{1D55D}","lopf"],["\u{1D55E}","mopf"],["\u{1D55F}","nopf"],["\u{1D560}","oopf"],["\u{1D561}","popf"],["\u{1D562}","qopf"],["\u{1D563}","ropf"],["\u{1D564}","sopf"],["\u{1D565}","topf"],["\u{1D566}","uopf"],["\u{1D567}","vopf"],["\u{1D568}","wopf"],["\u{1D569}","xopf"],["\u{1D56A}","yopf"],["\u{1D56B}","zopf"],["\uFB00","fflig"],["\uFB01","filig"],["\uFB02","fllig"],["\uFB03","ffilig"],["\uFB04","ffllig"]]),bQe=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,wQe=/&(CounterClockwiseContourIntegral|ClockwiseContourIntegral|DoubleLongLeftRightArrow|NotNestedGreaterGreater|DiacriticalDoubleAcute|NotSquareSupersetEqual|CloseCurlyDoubleQuote|DoubleContourIntegral|FilledVerySmallSquare|NegativeVeryThinSpace|NotPrecedesSlantEqual|NotRightTriangleEqual|NotSucceedsSlantEqual|CapitalDifferentialD|DoubleLeftRightArrow|DoubleLongRightArrow|EmptyVerySmallSquare|NestedGreaterGreater|NotDoubleVerticalBar|NotGreaterSlantEqual|NotLeftTriangleEqual|NotSquareSubsetEqual|OpenCurlyDoubleQuote|ReverseUpEquilibrium|DoubleLongLeftArrow|DownLeftRightVector|LeftArrowRightArrow|NegativeMediumSpace|NotGreaterFullEqual|NotRightTriangleBar|RightArrowLeftArrow|SquareSupersetEqual|leftrightsquigarrow|DownRightTeeVector|DownRightVectorBar|LongLeftRightArrow|Longleftrightarrow|NegativeThickSpace|NotLeftTriangleBar|PrecedesSlantEqual|ReverseEquilibrium|RightDoubleBracket|RightDownTeeVector|RightDownVectorBar|RightTriangleEqual|SquareIntersection|SucceedsSlantEqual|blacktriangleright|longleftrightarrow|DoubleUpDownArrow|DoubleVerticalBar|DownLeftTeeVector|DownLeftVectorBar|FilledSmallSquare|GreaterSlantEqual|LeftDoubleBracket|LeftDownTeeVector|LeftDownVectorBar|LeftTriangleEqual|NegativeThinSpace|NotGreaterGreater|NotLessSlantEqual|NotNestedLessLess|NotReverseElement|NotSquareSuperset|NotTildeFullEqual|RightAngleBracket|RightUpDownVector|SquareSubsetEqual|VerticalSeparator|blacktriangledown|blacktriangleleft|leftrightharpoons|rightleftharpoons|twoheadrightarrow|DiacriticalAcute|DiacriticalGrave|DiacriticalTilde|DoubleRightArrow|DownArrowUpArrow|EmptySmallSquare|GreaterEqualLess|GreaterFullEqual|LeftAngleBracket|LeftUpDownVector|LessEqualGreater|NonBreakingSpace|NotPrecedesEqual|NotRightTriangle|NotSucceedsEqual|NotSucceedsTilde|NotSupersetEqual|RightTriangleBar|RightUpTeeVector|RightUpVectorBar|UnderParenthesis|UpArrowDownArrow|circlearrowright|downharpoonright|ntrianglerighteq|rightharpoondown|rightrightarrows|twoheadleftarrow|vartriangleright|CloseCurlyQuote|ContourIntegral|DoubleDownArrow|DoubleLeftArrow|DownRightVector|LeftRightVector|LeftTriangleBar|LeftUpTeeVector|LeftUpVectorBar|LowerRightArrow|NotGreaterEqual|NotGreaterTilde|NotHumpDownHump|NotLeftTriangle|NotSquareSubset|OverParenthesis|RightDownVector|ShortRightArrow|UpperRightArrow|bigtriangledown|circlearrowleft|curvearrowright|downharpoonleft|leftharpoondown|leftrightarrows|nLeftrightarrow|nleftrightarrow|ntrianglelefteq|rightleftarrows|rightsquigarrow|rightthreetimes|straightepsilon|trianglerighteq|vartriangleleft|DiacriticalDot|DoubleRightTee|DownLeftVector|GreaterGreater|HorizontalLine|InvisibleComma|InvisibleTimes|LeftDownVector|LeftRightArrow|Leftrightarrow|LessSlantEqual|LongRightArrow|Longrightarrow|LowerLeftArrow|NestedLessLess|NotGreaterLess|NotLessGreater|NotSubsetEqual|NotVerticalBar|OpenCurlyQuote|ReverseElement|RightTeeVector|RightVectorBar|ShortDownArrow|ShortLeftArrow|SquareSuperset|TildeFullEqual|UpperLeftArrow|ZeroWidthSpace|curvearrowleft|doublebarwedge|downdownarrows|hookrightarrow|leftleftarrows|leftrightarrow|leftthreetimes|longrightarrow|looparrowright|nshortparallel|ntriangleright|rightarrowtail|rightharpoonup|trianglelefteq|upharpoonright|ApplyFunction|DifferentialD|DoubleLeftTee|DoubleUpArrow|LeftTeeVector|LeftVectorBar|LessFullEqual|LongLeftArrow|Longleftarrow|NotEqualTilde|NotTildeEqual|NotTildeTilde|Poincareplane|PrecedesEqual|PrecedesTilde|RightArrowBar|RightTeeArrow|RightTriangle|RightUpVector|SucceedsEqual|SucceedsTilde|SupersetEqual|UpEquilibrium|VerticalTilde|VeryThinSpace|bigtriangleup|blacktriangle|divideontimes|fallingdotseq|hookleftarrow|leftarrowtail|leftharpoonup|longleftarrow|looparrowleft|measuredangle|ntriangleleft|shortparallel|smallsetminus|triangleright|upharpoonleft|varsubsetneqq|varsupsetneqq|DownArrowBar|DownTeeArrow|ExponentialE|GreaterEqual|GreaterTilde|HilbertSpace|HumpDownHump|Intersection|LeftArrowBar|LeftTeeArrow|LeftTriangle|LeftUpVector|NotCongruent|NotHumpEqual|NotLessEqual|NotLessTilde|Proportional|RightCeiling|RoundImplies|ShortUpArrow|SquareSubset|UnderBracket|VerticalLine|blacklozenge|exponentiale|risingdotseq|triangledown|triangleleft|varsubsetneq|varsupsetneq|CircleMinus|CircleTimes|Equilibrium|GreaterLess|LeftCeiling|LessGreater|MediumSpace|NotLessLess|NotPrecedes|NotSucceeds|NotSuperset|OverBracket|RightVector|Rrightarrow|RuleDelayed|SmallCircle|SquareUnion|SubsetEqual|UpDownArrow|Updownarrow|VerticalBar|backepsilon|blacksquare|circledcirc|circleddash|curlyeqprec|curlyeqsucc|diamondsuit|eqslantless|expectation|nRightarrow|nrightarrow|preccurlyeq|precnapprox|quaternions|straightphi|succcurlyeq|succnapprox|thickapprox|updownarrow|Bernoullis|CirclePlus|EqualTilde|Fouriertrf|ImaginaryI|Laplacetrf|LeftVector|Lleftarrow|NotElement|NotGreater|Proportion|RightArrow|RightFloor|Rightarrow|ThickSpace|TildeEqual|TildeTilde|UnderBrace|UpArrowBar|UpTeeArrow|circledast|complement|curlywedge|eqslantgtr|gtreqqless|lessapprox|lesseqqgtr|lmoustache|longmapsto|mapstodown|mapstoleft|nLeftarrow|nleftarrow|nsubseteqq|nsupseteqq|precapprox|rightarrow|rmoustache|sqsubseteq|sqsupseteq|subsetneqq|succapprox|supsetneqq|upuparrows|varepsilon|varnothing|Backslash|CenterDot|CircleDot|Congruent|Coproduct|DoubleDot|DownArrow|DownBreve|Downarrow|HumpEqual|LeftArrow|LeftFloor|Leftarrow|LessTilde|Mellintrf|MinusPlus|NotCupCap|NotExists|NotSubset|OverBrace|PlusMinus|Therefore|ThinSpace|TripleDot|UnionPlus|backprime|backsimeq|bigotimes|centerdot|checkmark|complexes|dotsquare|downarrow|gtrapprox|gtreqless|gvertneqq|heartsuit|leftarrow|lesseqgtr|lvertneqq|ngeqslant|nleqslant|nparallel|nshortmid|nsubseteq|nsupseteq|pitchfork|rationals|spadesuit|subseteqq|subsetneq|supseteqq|supsetneq|therefore|triangleq|varpropto|DDotrahd|DotEqual|Integral|LessLess|NotEqual|NotTilde|PartialD|Precedes|RightTee|Succeeds|SuchThat|Superset|Uarrocir|UnderBar|andslope|angmsdaa|angmsdab|angmsdac|angmsdad|angmsdae|angmsdaf|angmsdag|angmsdah|angrtvbd|approxeq|awconint|backcong|barwedge|bbrktbrk|bigoplus|bigsqcup|biguplus|bigwedge|boxminus|boxtimes|bsolhsub|capbrcup|circledR|circledS|cirfnint|clubsuit|cupbrcap|curlyvee|cwconint|doteqdot|dotminus|drbkarow|dzigrarr|elinters|emptyset|eqvparsl|fpartint|geqslant|gesdotol|gnapprox|hksearow|hkswarow|imagline|imagpart|infintie|integers|intercal|intlarhk|laemptyv|ldrushar|leqslant|lesdotor|llcorner|lnapprox|lrcorner|lurdshar|mapstoup|multimap|naturals|ncongdot|notindot|otimesas|parallel|plusacir|pointint|precneqq|precnsim|profalar|profline|profsurf|raemptyv|realpart|rppolint|rtriltri|scpolint|setminus|shortmid|smeparsl|sqsubset|sqsupset|subseteq|succneqq|succnsim|supseteq|thetasym|thicksim|timesbar|triangle|triminus|trpezium|ulcorner|urcorner|varkappa|varsigma|vartheta|Because|Cayleys|Cconint|Cedilla|Diamond|DownTee|Element|Epsilon|Implies|LeftTee|NewLine|NoBreak|NotLess|Omicron|OverBar|Product|UpArrow|Uparrow|Upsilon|alefsym|angrtvb|angzarr|asympeq|backsim|because|bemptyv|between|bigcirc|bigodot|bigstar|bnequiv|boxplus|ccupssm|cemptyv|cirscir|coloneq|congdot|cudarrl|cudarrr|cularrp|curarrm|dbkarow|ddagger|ddotseq|demptyv|diamond|digamma|dotplus|dwangle|epsilon|eqcolon|equivDD|gesdoto|gtquest|gtrless|harrcir|intprod|isindot|larrbfs|larrsim|lbrksld|lbrkslu|ldrdhar|lesdoto|lessdot|lessgtr|lesssim|lotimes|lozenge|ltquest|luruhar|maltese|minusdu|napprox|natural|nearrow|nexists|notinva|notinvb|notinvc|notniva|notnivb|notnivc|npolint|npreceq|nsqsube|nsqsupe|nsubset|nsucceq|nsupset|nvinfin|nvltrie|nvrtrie|nwarrow|olcross|omicron|orderof|orslope|pertenk|planckh|pluscir|plussim|plustwo|precsim|quatint|questeq|rarrbfs|rarrsim|rbrksld|rbrkslu|rdldhar|realine|rotimes|ruluhar|searrow|simplus|simrarr|subedot|submult|subplus|subrarr|succsim|supdsub|supedot|suphsol|suphsub|suplarr|supmult|supplus|swarrow|topfork|triplus|tritime|uparrow|upsilon|uwangle|vzigzag|zigrarr|Aacute|Abreve|Agrave|Assign|Atilde|Barwed|Bumpeq|Cacute|Ccaron|Ccedil|Colone|Conint|CupCap|Dagger|Dcaron|DotDot|Dstrok|Eacute|Ecaron|Egrave|Exists|ForAll|Gammad|Gbreve|Gcedil|HARDcy|Hstrok|Iacute|Igrave|Itilde|Jsercy|Kcedil|Lacute|Lambda|Lcaron|Lcedil|Lmidot|Lstrok|Nacute|Ncaron|Ncedil|Ntilde|Oacute|Odblac|Ograve|Oslash|Otilde|Otimes|Racute|Rarrtl|Rcaron|Rcedil|SHCHcy|SOFTcy|Sacute|Scaron|Scedil|Square|Subset|Supset|Tcaron|Tcedil|Tstrok|Uacute|Ubreve|Udblac|Ugrave|Utilde|Vdashl|Verbar|Vvdash|Yacute|Zacute|Zcaron|aacute|abreve|agrave|andand|angmsd|angsph|apacir|approx|atilde|barvee|barwed|becaus|bernou|bigcap|bigcup|bigvee|bkarow|bottom|bowtie|boxbox|bprime|brvbar|bullet|bumpeq|cacute|capand|capcap|capcup|capdot|ccaron|ccedil|circeq|cirmid|colone|commat|compfn|conint|coprod|copysr|cularr|cupcap|cupcup|cupdot|curarr|curren|cylcty|dagger|daleth|dcaron|dfisht|divide|divonx|dlcorn|dlcrop|dollar|drcorn|drcrop|dstrok|eacute|easter|ecaron|ecolon|egrave|egsdot|elsdot|emptyv|emsp13|emsp14|eparsl|eqcirc|equals|equest|female|ffilig|ffllig|forall|frac12|frac13|frac14|frac15|frac16|frac18|frac23|frac25|frac34|frac35|frac38|frac45|frac56|frac58|frac78|gacute|gammad|gbreve|gesdot|gesles|gtlPar|gtrarr|gtrdot|gtrsim|hairsp|hamilt|hardcy|hearts|hellip|hercon|homtht|horbar|hslash|hstrok|hybull|hyphen|iacute|igrave|iiiint|iinfin|incare|inodot|intcal|iquest|isinsv|itilde|jsercy|kappav|kcedil|kgreen|lAtail|lacute|lagran|lambda|langle|larrfs|larrhk|larrlp|larrpl|larrtl|latail|lbrace|lbrack|lcaron|lcedil|ldquor|lesdot|lesges|lfisht|lfloor|lharul|llhard|lmidot|lmoust|loplus|lowast|lowbar|lparlt|lrhard|lsaquo|lsquor|lstrok|lthree|ltimes|ltlarr|ltrPar|mapsto|marker|mcomma|midast|midcir|middot|minusb|minusd|mnplus|models|mstpos|nVDash|nVdash|nacute|nbumpe|ncaron|ncedil|nearhk|nequiv|nesear|nexist|nltrie|notinE|nparsl|nprcue|nrarrc|nrarrw|nrtrie|nsccue|nsimeq|ntilde|numero|nvDash|nvHarr|nvdash|nvlArr|nvrArr|nwarhk|nwnear|oacute|odblac|odsold|ograve|ominus|origof|oslash|otilde|otimes|parsim|percnt|period|permil|phmmat|planck|plankv|plusdo|plusdu|plusmn|preceq|primes|prnsim|propto|prurel|puncsp|qprime|rAtail|racute|rangle|rarrap|rarrfs|rarrhk|rarrlp|rarrpl|rarrtl|ratail|rbrace|rbrack|rcaron|rcedil|rdquor|rfisht|rfloor|rharul|rmoust|roplus|rpargt|rsaquo|rsquor|rthree|rtimes|sacute|scaron|scedil|scnsim|searhk|seswar|sfrown|shchcy|sigmaf|sigmav|simdot|smashp|softcy|solbar|spades|sqcaps|sqcups|sqsube|sqsupe|square|squarf|ssetmn|ssmile|sstarf|subdot|subset|subsim|subsub|subsup|succeq|supdot|supset|supsim|supsub|supsup|swarhk|swnwar|target|tcaron|tcedil|telrec|there4|thetav|thinsp|thksim|timesb|timesd|topbot|topcir|tprime|tridot|tstrok|uacute|ubreve|udblac|ufisht|ugrave|ulcorn|ulcrop|urcorn|urcrop|utilde|vangrt|varphi|varrho|veebar|vellip|verbar|vsubnE|vsubne|vsupnE|vsupne|wedbar|wedgeq|weierp|wreath|xoplus|xotime|xsqcup|xuplus|xwedge|yacute|zacute|zcaron|zeetrf|AElig|Acirc|Alpha|Amacr|Aogon|Aring|Breve|Ccirc|Colon|Cross|Dashv|Delta|Ecirc|Emacr|Eogon|Equal|Gamma|Gcirc|Hacek|Hcirc|IJlig|Icirc|Imacr|Iogon|Iukcy|Jcirc|Jukcy|Kappa|OElig|Ocirc|Omacr|Omega|Prime|RBarr|Scirc|Sigma|THORN|TRADE|TSHcy|Theta|Tilde|Ubrcy|Ucirc|Umacr|Union|Uogon|UpTee|Uring|VDash|Vdash|Wcirc|Wedge|Ycirc|acirc|acute|aelig|aleph|alpha|amacr|amalg|angle|angrt|angst|aogon|aring|asymp|awint|bcong|bdquo|bepsi|blank|blk12|blk14|blk34|block|boxDL|boxDR|boxDl|boxDr|boxHD|boxHU|boxHd|boxHu|boxUL|boxUR|boxUl|boxUr|boxVH|boxVL|boxVR|boxVh|boxVl|boxVr|boxdL|boxdR|boxdl|boxdr|boxhD|boxhU|boxhd|boxhu|boxuL|boxuR|boxul|boxur|boxvH|boxvL|boxvR|boxvh|boxvl|boxvr|breve|bsemi|bsime|bsolb|bumpE|bumpe|caret|caron|ccaps|ccirc|ccups|cedil|check|clubs|colon|comma|crarr|cross|csube|csupe|ctdot|cuepr|cuesc|cupor|cuvee|cuwed|cwint|dashv|dblac|ddarr|delta|dharl|dharr|diams|disin|doteq|dtdot|dtrif|duarr|duhar|eDDot|ecirc|efDot|emacr|empty|eogon|eplus|epsiv|eqsim|equiv|erDot|erarr|esdot|exist|fflig|filig|fjlig|fllig|fltns|forkv|frasl|frown|gamma|gcirc|gescc|gimel|gneqq|gnsim|grave|gsime|gsiml|gtcir|gtdot|harrw|hcirc|hoarr|icirc|iexcl|iiint|iiota|ijlig|imacr|image|imath|imped|infin|iogon|iprod|isinE|isins|isinv|iukcy|jcirc|jmath|jukcy|kappa|lAarr|lBarr|langd|laquo|larrb|lates|lbarr|lbbrk|lbrke|lceil|ldquo|lescc|lhard|lharu|lhblk|llarr|lltri|lneqq|lnsim|loang|loarr|lobrk|lopar|lrarr|lrhar|lrtri|lsime|lsimg|lsquo|ltcir|ltdot|ltrie|ltrif|mDDot|mdash|micro|minus|mumap|nabla|napid|napos|natur|nbump|ncong|ndash|neArr|nearr|nedot|nesim|ngeqq|ngsim|nhArr|nharr|nhpar|nlArr|nlarr|nleqq|nless|nlsim|nltri|notin|notni|npart|nprec|nrArr|nrarr|nrtri|nsime|nsmid|nspar|nsubE|nsube|nsucc|nsupE|nsupe|numsp|nvsim|nwArr|nwarr|ocirc|odash|oelig|ofcir|ohbar|olarr|olcir|oline|omacr|omega|operp|oplus|orarr|order|ovbar|parsl|phone|plusb|pluse|pound|prcue|prime|prnap|prsim|quest|rAarr|rBarr|radic|rangd|range|raquo|rarrb|rarrc|rarrw|ratio|rbarr|rbbrk|rbrke|rceil|rdquo|reals|rhard|rharu|rlarr|rlhar|rnmid|roang|roarr|robrk|ropar|rrarr|rsquo|rtrie|rtrif|sbquo|sccue|scirc|scnap|scsim|sdotb|sdote|seArr|searr|setmn|sharp|sigma|simeq|simgE|simlE|simne|slarr|smile|smtes|sqcap|sqcup|sqsub|sqsup|srarr|starf|strns|subnE|subne|supnE|supne|swArr|swarr|szlig|theta|thkap|thorn|tilde|times|trade|trisb|tshcy|twixt|ubrcy|ucirc|udarr|udhar|uharl|uharr|uhblk|ultri|umacr|uogon|uplus|upsih|uring|urtri|utdot|utrif|uuarr|vBarv|vDash|varpi|vdash|veeeq|vltri|vnsub|vnsup|vprop|vrtri|wcirc|wedge|xcirc|xdtri|xhArr|xharr|xlArr|xlarr|xodot|xrArr|xrarr|xutri|ycirc|Aopf|Ascr|Auml|Barv|Beta|Bopf|Bscr|CHcy|COPY|Cdot|Copf|Cscr|DJcy|DScy|DZcy|Darr|Dopf|Dscr|Edot|Eopf|Escr|Esim|Euml|Fopf|Fscr|GJcy|Gdot|Gopf|Gscr|Hopf|Hscr|IEcy|IOcy|Idot|Iopf|Iota|Iscr|Iuml|Jopf|Jscr|KHcy|KJcy|Kopf|Kscr|LJcy|Lang|Larr|Lopf|Lscr|Mopf|Mscr|NJcy|Nopf|Nscr|Oopf|Oscr|Ouml|Popf|Pscr|QUOT|Qopf|Qscr|Rang|Rarr|Ropf|Rscr|SHcy|Sopf|Sqrt|Sscr|Star|TScy|Topf|Tscr|Uarr|Uopf|Upsi|Uscr|Uuml|Vbar|Vert|Vopf|Vscr|Wopf|Wscr|Xopf|Xscr|YAcy|YIcy|YUcy|Yopf|Yscr|Yuml|ZHcy|Zdot|Zeta|Zopf|Zscr|andd|andv|ange|aopf|apid|apos|ascr|auml|bNot|bbrk|beta|beth|bnot|bopf|boxH|boxV|boxh|boxv|bscr|bsim|bsol|bull|bump|caps|cdot|cent|chcy|cirE|circ|cire|comp|cong|copf|copy|cscr|csub|csup|cups|dArr|dHar|darr|dash|diam|djcy|dopf|dscr|dscy|dsol|dtri|dzcy|eDot|ecir|edot|emsp|ensp|eopf|epar|epsi|escr|esim|euml|euro|excl|flat|fnof|fopf|fork|fscr|gdot|geqq|gesl|gjcy|gnap|gneq|gopf|gscr|gsim|gtcc|gvnE|hArr|half|harr|hbar|hopf|hscr|iecy|imof|iocy|iopf|iota|iscr|isin|iuml|jopf|jscr|khcy|kjcy|kopf|kscr|lArr|lHar|lang|larr|late|lcub|ldca|ldsh|leqq|lesg|ljcy|lnap|lneq|lopf|lozf|lpar|lscr|lsim|lsqb|ltcc|ltri|lvnE|macr|male|malt|mlcp|mldr|mopf|mscr|nGtv|nLtv|nang|napE|nbsp|ncap|ncup|ngeq|nges|ngtr|nisd|njcy|nldr|nleq|nles|nmid|nopf|npar|npre|nsce|nscr|nsim|nsub|nsup|ntgl|ntlg|nvap|nvge|nvgt|nvle|nvlt|oast|ocir|odiv|odot|ogon|oint|omid|oopf|opar|ordf|ordm|oror|oscr|osol|ouml|para|part|perp|phiv|plus|popf|prap|prec|prnE|prod|prop|pscr|qint|qopf|qscr|quot|rArr|rHar|race|rang|rarr|rcub|rdca|rdsh|real|rect|rhov|ring|ropf|rpar|rscr|rsqb|rtri|scap|scnE|sdot|sect|semi|sext|shcy|sime|simg|siml|smid|smte|solb|sopf|spar|squf|sscr|star|subE|sube|succ|sung|sup1|sup2|sup3|supE|supe|tbrk|tdot|tint|toea|topf|tosa|trie|tscr|tscy|uArr|uHar|uarr|uopf|upsi|uscr|utri|uuml|vArr|vBar|varr|vert|vopf|vscr|wopf|wscr|xcap|xcup|xmap|xnis|xopf|xscr|xvee|yacy|yicy|yopf|yscr|yucy|yuml|zdot|zeta|zhcy|zopf|zscr|zwnj|AMP|Acy|Afr|And|Bcy|Bfr|Cap|Cfr|Chi|Cup|Dcy|Del|Dfr|Dot|ENG|ETH|Ecy|Efr|Eta|Fcy|Ffr|Gcy|Gfr|Hat|Hfr|Icy|Ifr|Int|Jcy|Jfr|Kcy|Kfr|Lcy|Lfr|Lsh|Map|Mcy|Mfr|Ncy|Nfr|Not|Ocy|Ofr|Pcy|Pfr|Phi|Psi|Qfr|REG|Rcy|Rfr|Rho|Rsh|Scy|Sfr|Sub|Sum|Sup|Tab|Tau|Tcy|Tfr|Ucy|Ufr|Vcy|Vee|Vfr|Wfr|Xfr|Ycy|Yfr|Zcy|Zfr|acE|acd|acy|afr|amp|and|ang|apE|ape|ast|bcy|bfr|bne|bot|cap|cfr|chi|cir|cup|dcy|deg|dfr|die|div|dot|ecy|efr|egs|ell|els|eng|eta|eth|fcy|ffr|gEl|gap|gcy|gel|geq|ges|gfr|ggg|glE|gla|glj|gnE|gne|hfr|icy|iff|ifr|int|jcy|jfr|kcy|kfr|lEg|lap|lat|lcy|leg|leq|les|lfr|lgE|lnE|lne|loz|lrm|lsh|map|mcy|mfr|mho|mid|nGg|nGt|nLl|nLt|nap|ncy|nfr|ngE|nge|ngt|nis|niv|nlE|nle|nlt|not|npr|nsc|num|ocy|ofr|ogt|ohm|olt|ord|orv|par|pcy|pfr|phi|piv|prE|pre|psi|qfr|rcy|reg|rfr|rho|rlm|rsh|scE|sce|scy|sfr|shy|sim|smt|sol|squ|sub|sum|sup|tau|tcy|tfr|top|ucy|ufr|uml|vcy|vee|vfr|wfr|xfr|ycy|yen|yfr|zcy|zfr|zwj|DD|GT|Gg|Gt|Im|LT|Ll|Lt|Mu|Nu|Or|Pi|Pr|Re|Sc|Xi|ac|af|ap|dd|ee|eg|el|gE|ge|gg|gl|gt|ic|ii|in|it|lE|le|lg|ll|lt|mp|mu|ne|ni|nu|oS|or|pi|pm|pr|rx|sc|wp|wr|xi);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,IQe=new Map([["AElig","\xC6"],["AMP","&"],["Aacute","\xC1"],["Abreve","\u0102"],["Acirc","\xC2"],["Acy","\u0410"],["Afr","\u{1D504}"],["Agrave","\xC0"],["Alpha","\u0391"],["Amacr","\u0100"],["And","\u2A53"],["Aogon","\u0104"],["Aopf","\u{1D538}"],["ApplyFunction","\u2061"],["Aring","\xC5"],["Ascr","\u{1D49C}"],["Assign","\u2254"],["Atilde","\xC3"],["Auml","\xC4"],["Backslash","\u2216"],["Barv","\u2AE7"],["Barwed","\u2306"],["Bcy","\u0411"],["Because","\u2235"],["Bernoullis","\u212C"],["Beta","\u0392"],["Bfr","\u{1D505}"],["Bopf","\u{1D539}"],["Breve","\u02D8"],["Bscr","\u212C"],["Bumpeq","\u224E"],["CHcy","\u0427"],["COPY","\xA9"],["Cacute","\u0106"],["Cap","\u22D2"],["CapitalDifferentialD","\u2145"],["Cayleys","\u212D"],["Ccaron","\u010C"],["Ccedil","\xC7"],["Ccirc","\u0108"],["Cconint","\u2230"],["Cdot","\u010A"],["Cedilla","\xB8"],["CenterDot","\xB7"],["Cfr","\u212D"],["Chi","\u03A7"],["CircleDot","\u2299"],["CircleMinus","\u2296"],["CirclePlus","\u2295"],["CircleTimes","\u2297"],["ClockwiseContourIntegral","\u2232"],["CloseCurlyDoubleQuote","\u201D"],["CloseCurlyQuote","\u2019"],["Colon","\u2237"],["Colone","\u2A74"],["Congruent","\u2261"],["Conint","\u222F"],["ContourIntegral","\u222E"],["Copf","\u2102"],["Coproduct","\u2210"],["CounterClockwiseContourIntegral","\u2233"],["Cross","\u2A2F"],["Cscr","\u{1D49E}"],["Cup","\u22D3"],["CupCap","\u224D"],["DD","\u2145"],["DDotrahd","\u2911"],["DJcy","\u0402"],["DScy","\u0405"],["DZcy","\u040F"],["Dagger","\u2021"],["Darr","\u21A1"],["Dashv","\u2AE4"],["Dcaron","\u010E"],["Dcy","\u0414"],["Del","\u2207"],["Delta","\u0394"],["Dfr","\u{1D507}"],["DiacriticalAcute","\xB4"],["DiacriticalDot","\u02D9"],["DiacriticalDoubleAcute","\u02DD"],["DiacriticalGrave","`"],["DiacriticalTilde","\u02DC"],["Diamond","\u22C4"],["DifferentialD","\u2146"],["Dopf","\u{1D53B}"],["Dot","\xA8"],["DotDot","\u20DC"],["DotEqual","\u2250"],["DoubleContourIntegral","\u222F"],["DoubleDot","\xA8"],["DoubleDownArrow","\u21D3"],["DoubleLeftArrow","\u21D0"],["DoubleLeftRightArrow","\u21D4"],["DoubleLeftTee","\u2AE4"],["DoubleLongLeftArrow","\u27F8"],["DoubleLongLeftRightArrow","\u27FA"],["DoubleLongRightArrow","\u27F9"],["DoubleRightArrow","\u21D2"],["DoubleRightTee","\u22A8"],["DoubleUpArrow","\u21D1"],["DoubleUpDownArrow","\u21D5"],["DoubleVerticalBar","\u2225"],["DownArrow","\u2193"],["DownArrowBar","\u2913"],["DownArrowUpArrow","\u21F5"],["DownBreve","\u0311"],["DownLeftRightVector","\u2950"],["DownLeftTeeVector","\u295E"],["DownLeftVector","\u21BD"],["DownLeftVectorBar","\u2956"],["DownRightTeeVector","\u295F"],["DownRightVector","\u21C1"],["DownRightVectorBar","\u2957"],["DownTee","\u22A4"],["DownTeeArrow","\u21A7"],["Downarrow","\u21D3"],["Dscr","\u{1D49F}"],["Dstrok","\u0110"],["ENG","\u014A"],["ETH","\xD0"],["Eacute","\xC9"],["Ecaron","\u011A"],["Ecirc","\xCA"],["Ecy","\u042D"],["Edot","\u0116"],["Efr","\u{1D508}"],["Egrave","\xC8"],["Element","\u2208"],["Emacr","\u0112"],["EmptySmallSquare","\u25FB"],["EmptyVerySmallSquare","\u25AB"],["Eogon","\u0118"],["Eopf","\u{1D53C}"],["Epsilon","\u0395"],["Equal","\u2A75"],["EqualTilde","\u2242"],["Equilibrium","\u21CC"],["Escr","\u2130"],["Esim","\u2A73"],["Eta","\u0397"],["Euml","\xCB"],["Exists","\u2203"],["ExponentialE","\u2147"],["Fcy","\u0424"],["Ffr","\u{1D509}"],["FilledSmallSquare","\u25FC"],["FilledVerySmallSquare","\u25AA"],["Fopf","\u{1D53D}"],["ForAll","\u2200"],["Fouriertrf","\u2131"],["Fscr","\u2131"],["GJcy","\u0403"],["GT",">"],["Gamma","\u0393"],["Gammad","\u03DC"],["Gbreve","\u011E"],["Gcedil","\u0122"],["Gcirc","\u011C"],["Gcy","\u0413"],["Gdot","\u0120"],["Gfr","\u{1D50A}"],["Gg","\u22D9"],["Gopf","\u{1D53E}"],["GreaterEqual","\u2265"],["GreaterEqualLess","\u22DB"],["GreaterFullEqual","\u2267"],["GreaterGreater","\u2AA2"],["GreaterLess","\u2277"],["GreaterSlantEqual","\u2A7E"],["GreaterTilde","\u2273"],["Gscr","\u{1D4A2}"],["Gt","\u226B"],["HARDcy","\u042A"],["Hacek","\u02C7"],["Hat","^"],["Hcirc","\u0124"],["Hfr","\u210C"],["HilbertSpace","\u210B"],["Hopf","\u210D"],["HorizontalLine","\u2500"],["Hscr","\u210B"],["Hstrok","\u0126"],["HumpDownHump","\u224E"],["HumpEqual","\u224F"],["IEcy","\u0415"],["IJlig","\u0132"],["IOcy","\u0401"],["Iacute","\xCD"],["Icirc","\xCE"],["Icy","\u0418"],["Idot","\u0130"],["Ifr","\u2111"],["Igrave","\xCC"],["Im","\u2111"],["Imacr","\u012A"],["ImaginaryI","\u2148"],["Implies","\u21D2"],["Int","\u222C"],["Integral","\u222B"],["Intersection","\u22C2"],["InvisibleComma","\u2063"],["InvisibleTimes","\u2062"],["Iogon","\u012E"],["Iopf","\u{1D540}"],["Iota","\u0399"],["Iscr","\u2110"],["Itilde","\u0128"],["Iukcy","\u0406"],["Iuml","\xCF"],["Jcirc","\u0134"],["Jcy","\u0419"],["Jfr","\u{1D50D}"],["Jopf","\u{1D541}"],["Jscr","\u{1D4A5}"],["Jsercy","\u0408"],["Jukcy","\u0404"],["KHcy","\u0425"],["KJcy","\u040C"],["Kappa","\u039A"],["Kcedil","\u0136"],["Kcy","\u041A"],["Kfr","\u{1D50E}"],["Kopf","\u{1D542}"],["Kscr","\u{1D4A6}"],["LJcy","\u0409"],["LT","<"],["Lacute","\u0139"],["Lambda","\u039B"],["Lang","\u27EA"],["Laplacetrf","\u2112"],["Larr","\u219E"],["Lcaron","\u013D"],["Lcedil","\u013B"],["Lcy","\u041B"],["LeftAngleBracket","\u27E8"],["LeftArrow","\u2190"],["LeftArrowBar","\u21E4"],["LeftArrowRightArrow","\u21C6"],["LeftCeiling","\u2308"],["LeftDoubleBracket","\u27E6"],["LeftDownTeeVector","\u2961"],["LeftDownVector","\u21C3"],["LeftDownVectorBar","\u2959"],["LeftFloor","\u230A"],["LeftRightArrow","\u2194"],["LeftRightVector","\u294E"],["LeftTee","\u22A3"],["LeftTeeArrow","\u21A4"],["LeftTeeVector","\u295A"],["LeftTriangle","\u22B2"],["LeftTriangleBar","\u29CF"],["LeftTriangleEqual","\u22B4"],["LeftUpDownVector","\u2951"],["LeftUpTeeVector","\u2960"],["LeftUpVector","\u21BF"],["LeftUpVectorBar","\u2958"],["LeftVector","\u21BC"],["LeftVectorBar","\u2952"],["Leftarrow","\u21D0"],["Leftrightarrow","\u21D4"],["LessEqualGreater","\u22DA"],["LessFullEqual","\u2266"],["LessGreater","\u2276"],["LessLess","\u2AA1"],["LessSlantEqual","\u2A7D"],["LessTilde","\u2272"],["Lfr","\u{1D50F}"],["Ll","\u22D8"],["Lleftarrow","\u21DA"],["Lmidot","\u013F"],["LongLeftArrow","\u27F5"],["LongLeftRightArrow","\u27F7"],["LongRightArrow","\u27F6"],["Longleftarrow","\u27F8"],["Longleftrightarrow","\u27FA"],["Longrightarrow","\u27F9"],["Lopf","\u{1D543}"],["LowerLeftArrow","\u2199"],["LowerRightArrow","\u2198"],["Lscr","\u2112"],["Lsh","\u21B0"],["Lstrok","\u0141"],["Lt","\u226A"],["Map","\u2905"],["Mcy","\u041C"],["MediumSpace","\u205F"],["Mellintrf","\u2133"],["Mfr","\u{1D510}"],["MinusPlus","\u2213"],["Mopf","\u{1D544}"],["Mscr","\u2133"],["Mu","\u039C"],["NJcy","\u040A"],["Nacute","\u0143"],["Ncaron","\u0147"],["Ncedil","\u0145"],["Ncy","\u041D"],["NegativeMediumSpace","\u200B"],["NegativeThickSpace","\u200B"],["NegativeThinSpace","\u200B"],["NegativeVeryThinSpace","\u200B"],["NestedGreaterGreater","\u226B"],["NestedLessLess","\u226A"],["NewLine",` -`],["Nfr","\u{1D511}"],["NoBreak","\u2060"],["NonBreakingSpace","\xA0"],["Nopf","\u2115"],["Not","\u2AEC"],["NotCongruent","\u2262"],["NotCupCap","\u226D"],["NotDoubleVerticalBar","\u2226"],["NotElement","\u2209"],["NotEqual","\u2260"],["NotEqualTilde","\u2242\u0338"],["NotExists","\u2204"],["NotGreater","\u226F"],["NotGreaterEqual","\u2271"],["NotGreaterFullEqual","\u2267\u0338"],["NotGreaterGreater","\u226B\u0338"],["NotGreaterLess","\u2279"],["NotGreaterSlantEqual","\u2A7E\u0338"],["NotGreaterTilde","\u2275"],["NotHumpDownHump","\u224E\u0338"],["NotHumpEqual","\u224F\u0338"],["NotLeftTriangle","\u22EA"],["NotLeftTriangleBar","\u29CF\u0338"],["NotLeftTriangleEqual","\u22EC"],["NotLess","\u226E"],["NotLessEqual","\u2270"],["NotLessGreater","\u2278"],["NotLessLess","\u226A\u0338"],["NotLessSlantEqual","\u2A7D\u0338"],["NotLessTilde","\u2274"],["NotNestedGreaterGreater","\u2AA2\u0338"],["NotNestedLessLess","\u2AA1\u0338"],["NotPrecedes","\u2280"],["NotPrecedesEqual","\u2AAF\u0338"],["NotPrecedesSlantEqual","\u22E0"],["NotReverseElement","\u220C"],["NotRightTriangle","\u22EB"],["NotRightTriangleBar","\u29D0\u0338"],["NotRightTriangleEqual","\u22ED"],["NotSquareSubset","\u228F\u0338"],["NotSquareSubsetEqual","\u22E2"],["NotSquareSuperset","\u2290\u0338"],["NotSquareSupersetEqual","\u22E3"],["NotSubset","\u2282\u20D2"],["NotSubsetEqual","\u2288"],["NotSucceeds","\u2281"],["NotSucceedsEqual","\u2AB0\u0338"],["NotSucceedsSlantEqual","\u22E1"],["NotSucceedsTilde","\u227F\u0338"],["NotSuperset","\u2283\u20D2"],["NotSupersetEqual","\u2289"],["NotTilde","\u2241"],["NotTildeEqual","\u2244"],["NotTildeFullEqual","\u2247"],["NotTildeTilde","\u2249"],["NotVerticalBar","\u2224"],["Nscr","\u{1D4A9}"],["Ntilde","\xD1"],["Nu","\u039D"],["OElig","\u0152"],["Oacute","\xD3"],["Ocirc","\xD4"],["Ocy","\u041E"],["Odblac","\u0150"],["Ofr","\u{1D512}"],["Ograve","\xD2"],["Omacr","\u014C"],["Omega","\u03A9"],["Omicron","\u039F"],["Oopf","\u{1D546}"],["OpenCurlyDoubleQuote","\u201C"],["OpenCurlyQuote","\u2018"],["Or","\u2A54"],["Oscr","\u{1D4AA}"],["Oslash","\xD8"],["Otilde","\xD5"],["Otimes","\u2A37"],["Ouml","\xD6"],["OverBar","\u203E"],["OverBrace","\u23DE"],["OverBracket","\u23B4"],["OverParenthesis","\u23DC"],["PartialD","\u2202"],["Pcy","\u041F"],["Pfr","\u{1D513}"],["Phi","\u03A6"],["Pi","\u03A0"],["PlusMinus","\xB1"],["Poincareplane","\u210C"],["Popf","\u2119"],["Pr","\u2ABB"],["Precedes","\u227A"],["PrecedesEqual","\u2AAF"],["PrecedesSlantEqual","\u227C"],["PrecedesTilde","\u227E"],["Prime","\u2033"],["Product","\u220F"],["Proportion","\u2237"],["Proportional","\u221D"],["Pscr","\u{1D4AB}"],["Psi","\u03A8"],["QUOT",'"'],["Qfr","\u{1D514}"],["Qopf","\u211A"],["Qscr","\u{1D4AC}"],["RBarr","\u2910"],["REG","\xAE"],["Racute","\u0154"],["Rang","\u27EB"],["Rarr","\u21A0"],["Rarrtl","\u2916"],["Rcaron","\u0158"],["Rcedil","\u0156"],["Rcy","\u0420"],["Re","\u211C"],["ReverseElement","\u220B"],["ReverseEquilibrium","\u21CB"],["ReverseUpEquilibrium","\u296F"],["Rfr","\u211C"],["Rho","\u03A1"],["RightAngleBracket","\u27E9"],["RightArrow","\u2192"],["RightArrowBar","\u21E5"],["RightArrowLeftArrow","\u21C4"],["RightCeiling","\u2309"],["RightDoubleBracket","\u27E7"],["RightDownTeeVector","\u295D"],["RightDownVector","\u21C2"],["RightDownVectorBar","\u2955"],["RightFloor","\u230B"],["RightTee","\u22A2"],["RightTeeArrow","\u21A6"],["RightTeeVector","\u295B"],["RightTriangle","\u22B3"],["RightTriangleBar","\u29D0"],["RightTriangleEqual","\u22B5"],["RightUpDownVector","\u294F"],["RightUpTeeVector","\u295C"],["RightUpVector","\u21BE"],["RightUpVectorBar","\u2954"],["RightVector","\u21C0"],["RightVectorBar","\u2953"],["Rightarrow","\u21D2"],["Ropf","\u211D"],["RoundImplies","\u2970"],["Rrightarrow","\u21DB"],["Rscr","\u211B"],["Rsh","\u21B1"],["RuleDelayed","\u29F4"],["SHCHcy","\u0429"],["SHcy","\u0428"],["SOFTcy","\u042C"],["Sacute","\u015A"],["Sc","\u2ABC"],["Scaron","\u0160"],["Scedil","\u015E"],["Scirc","\u015C"],["Scy","\u0421"],["Sfr","\u{1D516}"],["ShortDownArrow","\u2193"],["ShortLeftArrow","\u2190"],["ShortRightArrow","\u2192"],["ShortUpArrow","\u2191"],["Sigma","\u03A3"],["SmallCircle","\u2218"],["Sopf","\u{1D54A}"],["Sqrt","\u221A"],["Square","\u25A1"],["SquareIntersection","\u2293"],["SquareSubset","\u228F"],["SquareSubsetEqual","\u2291"],["SquareSuperset","\u2290"],["SquareSupersetEqual","\u2292"],["SquareUnion","\u2294"],["Sscr","\u{1D4AE}"],["Star","\u22C6"],["Sub","\u22D0"],["Subset","\u22D0"],["SubsetEqual","\u2286"],["Succeeds","\u227B"],["SucceedsEqual","\u2AB0"],["SucceedsSlantEqual","\u227D"],["SucceedsTilde","\u227F"],["SuchThat","\u220B"],["Sum","\u2211"],["Sup","\u22D1"],["Superset","\u2283"],["SupersetEqual","\u2287"],["Supset","\u22D1"],["THORN","\xDE"],["TRADE","\u2122"],["TSHcy","\u040B"],["TScy","\u0426"],["Tab"," "],["Tau","\u03A4"],["Tcaron","\u0164"],["Tcedil","\u0162"],["Tcy","\u0422"],["Tfr","\u{1D517}"],["Therefore","\u2234"],["Theta","\u0398"],["ThickSpace","\u205F\u200A"],["ThinSpace","\u2009"],["Tilde","\u223C"],["TildeEqual","\u2243"],["TildeFullEqual","\u2245"],["TildeTilde","\u2248"],["Topf","\u{1D54B}"],["TripleDot","\u20DB"],["Tscr","\u{1D4AF}"],["Tstrok","\u0166"],["Uacute","\xDA"],["Uarr","\u219F"],["Uarrocir","\u2949"],["Ubrcy","\u040E"],["Ubreve","\u016C"],["Ucirc","\xDB"],["Ucy","\u0423"],["Udblac","\u0170"],["Ufr","\u{1D518}"],["Ugrave","\xD9"],["Umacr","\u016A"],["UnderBar","_"],["UnderBrace","\u23DF"],["UnderBracket","\u23B5"],["UnderParenthesis","\u23DD"],["Union","\u22C3"],["UnionPlus","\u228E"],["Uogon","\u0172"],["Uopf","\u{1D54C}"],["UpArrow","\u2191"],["UpArrowBar","\u2912"],["UpArrowDownArrow","\u21C5"],["UpDownArrow","\u2195"],["UpEquilibrium","\u296E"],["UpTee","\u22A5"],["UpTeeArrow","\u21A5"],["Uparrow","\u21D1"],["Updownarrow","\u21D5"],["UpperLeftArrow","\u2196"],["UpperRightArrow","\u2197"],["Upsi","\u03D2"],["Upsilon","\u03A5"],["Uring","\u016E"],["Uscr","\u{1D4B0}"],["Utilde","\u0168"],["Uuml","\xDC"],["VDash","\u22AB"],["Vbar","\u2AEB"],["Vcy","\u0412"],["Vdash","\u22A9"],["Vdashl","\u2AE6"],["Vee","\u22C1"],["Verbar","\u2016"],["Vert","\u2016"],["VerticalBar","\u2223"],["VerticalLine","|"],["VerticalSeparator","\u2758"],["VerticalTilde","\u2240"],["VeryThinSpace","\u200A"],["Vfr","\u{1D519}"],["Vopf","\u{1D54D}"],["Vscr","\u{1D4B1}"],["Vvdash","\u22AA"],["Wcirc","\u0174"],["Wedge","\u22C0"],["Wfr","\u{1D51A}"],["Wopf","\u{1D54E}"],["Wscr","\u{1D4B2}"],["Xfr","\u{1D51B}"],["Xi","\u039E"],["Xopf","\u{1D54F}"],["Xscr","\u{1D4B3}"],["YAcy","\u042F"],["YIcy","\u0407"],["YUcy","\u042E"],["Yacute","\xDD"],["Ycirc","\u0176"],["Ycy","\u042B"],["Yfr","\u{1D51C}"],["Yopf","\u{1D550}"],["Yscr","\u{1D4B4}"],["Yuml","\u0178"],["ZHcy","\u0416"],["Zacute","\u0179"],["Zcaron","\u017D"],["Zcy","\u0417"],["Zdot","\u017B"],["ZeroWidthSpace","\u200B"],["Zeta","\u0396"],["Zfr","\u2128"],["Zopf","\u2124"],["Zscr","\u{1D4B5}"],["aacute","\xE1"],["abreve","\u0103"],["ac","\u223E"],["acE","\u223E\u0333"],["acd","\u223F"],["acirc","\xE2"],["acute","\xB4"],["acy","\u0430"],["aelig","\xE6"],["af","\u2061"],["afr","\u{1D51E}"],["agrave","\xE0"],["alefsym","\u2135"],["aleph","\u2135"],["alpha","\u03B1"],["amacr","\u0101"],["amalg","\u2A3F"],["amp","&"],["and","\u2227"],["andand","\u2A55"],["andd","\u2A5C"],["andslope","\u2A58"],["andv","\u2A5A"],["ang","\u2220"],["ange","\u29A4"],["angle","\u2220"],["angmsd","\u2221"],["angmsdaa","\u29A8"],["angmsdab","\u29A9"],["angmsdac","\u29AA"],["angmsdad","\u29AB"],["angmsdae","\u29AC"],["angmsdaf","\u29AD"],["angmsdag","\u29AE"],["angmsdah","\u29AF"],["angrt","\u221F"],["angrtvb","\u22BE"],["angrtvbd","\u299D"],["angsph","\u2222"],["angst","\xC5"],["angzarr","\u237C"],["aogon","\u0105"],["aopf","\u{1D552}"],["ap","\u2248"],["apE","\u2A70"],["apacir","\u2A6F"],["ape","\u224A"],["apid","\u224B"],["apos","'"],["approx","\u2248"],["approxeq","\u224A"],["aring","\xE5"],["ascr","\u{1D4B6}"],["ast","*"],["asymp","\u2248"],["asympeq","\u224D"],["atilde","\xE3"],["auml","\xE4"],["awconint","\u2233"],["awint","\u2A11"],["bNot","\u2AED"],["backcong","\u224C"],["backepsilon","\u03F6"],["backprime","\u2035"],["backsim","\u223D"],["backsimeq","\u22CD"],["barvee","\u22BD"],["barwed","\u2305"],["barwedge","\u2305"],["bbrk","\u23B5"],["bbrktbrk","\u23B6"],["bcong","\u224C"],["bcy","\u0431"],["bdquo","\u201E"],["becaus","\u2235"],["because","\u2235"],["bemptyv","\u29B0"],["bepsi","\u03F6"],["bernou","\u212C"],["beta","\u03B2"],["beth","\u2136"],["between","\u226C"],["bfr","\u{1D51F}"],["bigcap","\u22C2"],["bigcirc","\u25EF"],["bigcup","\u22C3"],["bigodot","\u2A00"],["bigoplus","\u2A01"],["bigotimes","\u2A02"],["bigsqcup","\u2A06"],["bigstar","\u2605"],["bigtriangledown","\u25BD"],["bigtriangleup","\u25B3"],["biguplus","\u2A04"],["bigvee","\u22C1"],["bigwedge","\u22C0"],["bkarow","\u290D"],["blacklozenge","\u29EB"],["blacksquare","\u25AA"],["blacktriangle","\u25B4"],["blacktriangledown","\u25BE"],["blacktriangleleft","\u25C2"],["blacktriangleright","\u25B8"],["blank","\u2423"],["blk12","\u2592"],["blk14","\u2591"],["blk34","\u2593"],["block","\u2588"],["bne","=\u20E5"],["bnequiv","\u2261\u20E5"],["bnot","\u2310"],["bopf","\u{1D553}"],["bot","\u22A5"],["bottom","\u22A5"],["bowtie","\u22C8"],["boxDL","\u2557"],["boxDR","\u2554"],["boxDl","\u2556"],["boxDr","\u2553"],["boxH","\u2550"],["boxHD","\u2566"],["boxHU","\u2569"],["boxHd","\u2564"],["boxHu","\u2567"],["boxUL","\u255D"],["boxUR","\u255A"],["boxUl","\u255C"],["boxUr","\u2559"],["boxV","\u2551"],["boxVH","\u256C"],["boxVL","\u2563"],["boxVR","\u2560"],["boxVh","\u256B"],["boxVl","\u2562"],["boxVr","\u255F"],["boxbox","\u29C9"],["boxdL","\u2555"],["boxdR","\u2552"],["boxdl","\u2510"],["boxdr","\u250C"],["boxh","\u2500"],["boxhD","\u2565"],["boxhU","\u2568"],["boxhd","\u252C"],["boxhu","\u2534"],["boxminus","\u229F"],["boxplus","\u229E"],["boxtimes","\u22A0"],["boxuL","\u255B"],["boxuR","\u2558"],["boxul","\u2518"],["boxur","\u2514"],["boxv","\u2502"],["boxvH","\u256A"],["boxvL","\u2561"],["boxvR","\u255E"],["boxvh","\u253C"],["boxvl","\u2524"],["boxvr","\u251C"],["bprime","\u2035"],["breve","\u02D8"],["brvbar","\xA6"],["bscr","\u{1D4B7}"],["bsemi","\u204F"],["bsim","\u223D"],["bsime","\u22CD"],["bsol","\\"],["bsolb","\u29C5"],["bsolhsub","\u27C8"],["bull","\u2022"],["bullet","\u2022"],["bump","\u224E"],["bumpE","\u2AAE"],["bumpe","\u224F"],["bumpeq","\u224F"],["cacute","\u0107"],["cap","\u2229"],["capand","\u2A44"],["capbrcup","\u2A49"],["capcap","\u2A4B"],["capcup","\u2A47"],["capdot","\u2A40"],["caps","\u2229\uFE00"],["caret","\u2041"],["caron","\u02C7"],["ccaps","\u2A4D"],["ccaron","\u010D"],["ccedil","\xE7"],["ccirc","\u0109"],["ccups","\u2A4C"],["ccupssm","\u2A50"],["cdot","\u010B"],["cedil","\xB8"],["cemptyv","\u29B2"],["cent","\xA2"],["centerdot","\xB7"],["cfr","\u{1D520}"],["chcy","\u0447"],["check","\u2713"],["checkmark","\u2713"],["chi","\u03C7"],["cir","\u25CB"],["cirE","\u29C3"],["circ","\u02C6"],["circeq","\u2257"],["circlearrowleft","\u21BA"],["circlearrowright","\u21BB"],["circledR","\xAE"],["circledS","\u24C8"],["circledast","\u229B"],["circledcirc","\u229A"],["circleddash","\u229D"],["cire","\u2257"],["cirfnint","\u2A10"],["cirmid","\u2AEF"],["cirscir","\u29C2"],["clubs","\u2663"],["clubsuit","\u2663"],["colon",":"],["colone","\u2254"],["coloneq","\u2254"],["comma",","],["commat","@"],["comp","\u2201"],["compfn","\u2218"],["complement","\u2201"],["complexes","\u2102"],["cong","\u2245"],["congdot","\u2A6D"],["conint","\u222E"],["copf","\u{1D554}"],["coprod","\u2210"],["copy","\xA9"],["copysr","\u2117"],["crarr","\u21B5"],["cross","\u2717"],["cscr","\u{1D4B8}"],["csub","\u2ACF"],["csube","\u2AD1"],["csup","\u2AD0"],["csupe","\u2AD2"],["ctdot","\u22EF"],["cudarrl","\u2938"],["cudarrr","\u2935"],["cuepr","\u22DE"],["cuesc","\u22DF"],["cularr","\u21B6"],["cularrp","\u293D"],["cup","\u222A"],["cupbrcap","\u2A48"],["cupcap","\u2A46"],["cupcup","\u2A4A"],["cupdot","\u228D"],["cupor","\u2A45"],["cups","\u222A\uFE00"],["curarr","\u21B7"],["curarrm","\u293C"],["curlyeqprec","\u22DE"],["curlyeqsucc","\u22DF"],["curlyvee","\u22CE"],["curlywedge","\u22CF"],["curren","\xA4"],["curvearrowleft","\u21B6"],["curvearrowright","\u21B7"],["cuvee","\u22CE"],["cuwed","\u22CF"],["cwconint","\u2232"],["cwint","\u2231"],["cylcty","\u232D"],["dArr","\u21D3"],["dHar","\u2965"],["dagger","\u2020"],["daleth","\u2138"],["darr","\u2193"],["dash","\u2010"],["dashv","\u22A3"],["dbkarow","\u290F"],["dblac","\u02DD"],["dcaron","\u010F"],["dcy","\u0434"],["dd","\u2146"],["ddagger","\u2021"],["ddarr","\u21CA"],["ddotseq","\u2A77"],["deg","\xB0"],["delta","\u03B4"],["demptyv","\u29B1"],["dfisht","\u297F"],["dfr","\u{1D521}"],["dharl","\u21C3"],["dharr","\u21C2"],["diam","\u22C4"],["diamond","\u22C4"],["diamondsuit","\u2666"],["diams","\u2666"],["die","\xA8"],["digamma","\u03DD"],["disin","\u22F2"],["div","\xF7"],["divide","\xF7"],["divideontimes","\u22C7"],["divonx","\u22C7"],["djcy","\u0452"],["dlcorn","\u231E"],["dlcrop","\u230D"],["dollar","$"],["dopf","\u{1D555}"],["dot","\u02D9"],["doteq","\u2250"],["doteqdot","\u2251"],["dotminus","\u2238"],["dotplus","\u2214"],["dotsquare","\u22A1"],["doublebarwedge","\u2306"],["downarrow","\u2193"],["downdownarrows","\u21CA"],["downharpoonleft","\u21C3"],["downharpoonright","\u21C2"],["drbkarow","\u2910"],["drcorn","\u231F"],["drcrop","\u230C"],["dscr","\u{1D4B9}"],["dscy","\u0455"],["dsol","\u29F6"],["dstrok","\u0111"],["dtdot","\u22F1"],["dtri","\u25BF"],["dtrif","\u25BE"],["duarr","\u21F5"],["duhar","\u296F"],["dwangle","\u29A6"],["dzcy","\u045F"],["dzigrarr","\u27FF"],["eDDot","\u2A77"],["eDot","\u2251"],["eacute","\xE9"],["easter","\u2A6E"],["ecaron","\u011B"],["ecir","\u2256"],["ecirc","\xEA"],["ecolon","\u2255"],["ecy","\u044D"],["edot","\u0117"],["ee","\u2147"],["efDot","\u2252"],["efr","\u{1D522}"],["eg","\u2A9A"],["egrave","\xE8"],["egs","\u2A96"],["egsdot","\u2A98"],["el","\u2A99"],["elinters","\u23E7"],["ell","\u2113"],["els","\u2A95"],["elsdot","\u2A97"],["emacr","\u0113"],["empty","\u2205"],["emptyset","\u2205"],["emptyv","\u2205"],["emsp","\u2003"],["emsp13","\u2004"],["emsp14","\u2005"],["eng","\u014B"],["ensp","\u2002"],["eogon","\u0119"],["eopf","\u{1D556}"],["epar","\u22D5"],["eparsl","\u29E3"],["eplus","\u2A71"],["epsi","\u03B5"],["epsilon","\u03B5"],["epsiv","\u03F5"],["eqcirc","\u2256"],["eqcolon","\u2255"],["eqsim","\u2242"],["eqslantgtr","\u2A96"],["eqslantless","\u2A95"],["equals","="],["equest","\u225F"],["equiv","\u2261"],["equivDD","\u2A78"],["eqvparsl","\u29E5"],["erDot","\u2253"],["erarr","\u2971"],["escr","\u212F"],["esdot","\u2250"],["esim","\u2242"],["eta","\u03B7"],["eth","\xF0"],["euml","\xEB"],["euro","\u20AC"],["excl","!"],["exist","\u2203"],["expectation","\u2130"],["exponentiale","\u2147"],["fallingdotseq","\u2252"],["fcy","\u0444"],["female","\u2640"],["ffilig","\uFB03"],["fflig","\uFB00"],["ffllig","\uFB04"],["ffr","\u{1D523}"],["filig","\uFB01"],["fjlig","fj"],["flat","\u266D"],["fllig","\uFB02"],["fltns","\u25B1"],["fnof","\u0192"],["fopf","\u{1D557}"],["forall","\u2200"],["fork","\u22D4"],["forkv","\u2AD9"],["fpartint","\u2A0D"],["frac12","\xBD"],["frac13","\u2153"],["frac14","\xBC"],["frac15","\u2155"],["frac16","\u2159"],["frac18","\u215B"],["frac23","\u2154"],["frac25","\u2156"],["frac34","\xBE"],["frac35","\u2157"],["frac38","\u215C"],["frac45","\u2158"],["frac56","\u215A"],["frac58","\u215D"],["frac78","\u215E"],["frasl","\u2044"],["frown","\u2322"],["fscr","\u{1D4BB}"],["gE","\u2267"],["gEl","\u2A8C"],["gacute","\u01F5"],["gamma","\u03B3"],["gammad","\u03DD"],["gap","\u2A86"],["gbreve","\u011F"],["gcirc","\u011D"],["gcy","\u0433"],["gdot","\u0121"],["ge","\u2265"],["gel","\u22DB"],["geq","\u2265"],["geqq","\u2267"],["geqslant","\u2A7E"],["ges","\u2A7E"],["gescc","\u2AA9"],["gesdot","\u2A80"],["gesdoto","\u2A82"],["gesdotol","\u2A84"],["gesl","\u22DB\uFE00"],["gesles","\u2A94"],["gfr","\u{1D524}"],["gg","\u226B"],["ggg","\u22D9"],["gimel","\u2137"],["gjcy","\u0453"],["gl","\u2277"],["glE","\u2A92"],["gla","\u2AA5"],["glj","\u2AA4"],["gnE","\u2269"],["gnap","\u2A8A"],["gnapprox","\u2A8A"],["gne","\u2A88"],["gneq","\u2A88"],["gneqq","\u2269"],["gnsim","\u22E7"],["gopf","\u{1D558}"],["grave","`"],["gscr","\u210A"],["gsim","\u2273"],["gsime","\u2A8E"],["gsiml","\u2A90"],["gt",">"],["gtcc","\u2AA7"],["gtcir","\u2A7A"],["gtdot","\u22D7"],["gtlPar","\u2995"],["gtquest","\u2A7C"],["gtrapprox","\u2A86"],["gtrarr","\u2978"],["gtrdot","\u22D7"],["gtreqless","\u22DB"],["gtreqqless","\u2A8C"],["gtrless","\u2277"],["gtrsim","\u2273"],["gvertneqq","\u2269\uFE00"],["gvnE","\u2269\uFE00"],["hArr","\u21D4"],["hairsp","\u200A"],["half","\xBD"],["hamilt","\u210B"],["hardcy","\u044A"],["harr","\u2194"],["harrcir","\u2948"],["harrw","\u21AD"],["hbar","\u210F"],["hcirc","\u0125"],["hearts","\u2665"],["heartsuit","\u2665"],["hellip","\u2026"],["hercon","\u22B9"],["hfr","\u{1D525}"],["hksearow","\u2925"],["hkswarow","\u2926"],["hoarr","\u21FF"],["homtht","\u223B"],["hookleftarrow","\u21A9"],["hookrightarrow","\u21AA"],["hopf","\u{1D559}"],["horbar","\u2015"],["hscr","\u{1D4BD}"],["hslash","\u210F"],["hstrok","\u0127"],["hybull","\u2043"],["hyphen","\u2010"],["iacute","\xED"],["ic","\u2063"],["icirc","\xEE"],["icy","\u0438"],["iecy","\u0435"],["iexcl","\xA1"],["iff","\u21D4"],["ifr","\u{1D526}"],["igrave","\xEC"],["ii","\u2148"],["iiiint","\u2A0C"],["iiint","\u222D"],["iinfin","\u29DC"],["iiota","\u2129"],["ijlig","\u0133"],["imacr","\u012B"],["image","\u2111"],["imagline","\u2110"],["imagpart","\u2111"],["imath","\u0131"],["imof","\u22B7"],["imped","\u01B5"],["in","\u2208"],["incare","\u2105"],["infin","\u221E"],["infintie","\u29DD"],["inodot","\u0131"],["int","\u222B"],["intcal","\u22BA"],["integers","\u2124"],["intercal","\u22BA"],["intlarhk","\u2A17"],["intprod","\u2A3C"],["iocy","\u0451"],["iogon","\u012F"],["iopf","\u{1D55A}"],["iota","\u03B9"],["iprod","\u2A3C"],["iquest","\xBF"],["iscr","\u{1D4BE}"],["isin","\u2208"],["isinE","\u22F9"],["isindot","\u22F5"],["isins","\u22F4"],["isinsv","\u22F3"],["isinv","\u2208"],["it","\u2062"],["itilde","\u0129"],["iukcy","\u0456"],["iuml","\xEF"],["jcirc","\u0135"],["jcy","\u0439"],["jfr","\u{1D527}"],["jmath","\u0237"],["jopf","\u{1D55B}"],["jscr","\u{1D4BF}"],["jsercy","\u0458"],["jukcy","\u0454"],["kappa","\u03BA"],["kappav","\u03F0"],["kcedil","\u0137"],["kcy","\u043A"],["kfr","\u{1D528}"],["kgreen","\u0138"],["khcy","\u0445"],["kjcy","\u045C"],["kopf","\u{1D55C}"],["kscr","\u{1D4C0}"],["lAarr","\u21DA"],["lArr","\u21D0"],["lAtail","\u291B"],["lBarr","\u290E"],["lE","\u2266"],["lEg","\u2A8B"],["lHar","\u2962"],["lacute","\u013A"],["laemptyv","\u29B4"],["lagran","\u2112"],["lambda","\u03BB"],["lang","\u27E8"],["langd","\u2991"],["langle","\u27E8"],["lap","\u2A85"],["laquo","\xAB"],["larr","\u2190"],["larrb","\u21E4"],["larrbfs","\u291F"],["larrfs","\u291D"],["larrhk","\u21A9"],["larrlp","\u21AB"],["larrpl","\u2939"],["larrsim","\u2973"],["larrtl","\u21A2"],["lat","\u2AAB"],["latail","\u2919"],["late","\u2AAD"],["lates","\u2AAD\uFE00"],["lbarr","\u290C"],["lbbrk","\u2772"],["lbrace","{"],["lbrack","["],["lbrke","\u298B"],["lbrksld","\u298F"],["lbrkslu","\u298D"],["lcaron","\u013E"],["lcedil","\u013C"],["lceil","\u2308"],["lcub","{"],["lcy","\u043B"],["ldca","\u2936"],["ldquo","\u201C"],["ldquor","\u201E"],["ldrdhar","\u2967"],["ldrushar","\u294B"],["ldsh","\u21B2"],["le","\u2264"],["leftarrow","\u2190"],["leftarrowtail","\u21A2"],["leftharpoondown","\u21BD"],["leftharpoonup","\u21BC"],["leftleftarrows","\u21C7"],["leftrightarrow","\u2194"],["leftrightarrows","\u21C6"],["leftrightharpoons","\u21CB"],["leftrightsquigarrow","\u21AD"],["leftthreetimes","\u22CB"],["leg","\u22DA"],["leq","\u2264"],["leqq","\u2266"],["leqslant","\u2A7D"],["les","\u2A7D"],["lescc","\u2AA8"],["lesdot","\u2A7F"],["lesdoto","\u2A81"],["lesdotor","\u2A83"],["lesg","\u22DA\uFE00"],["lesges","\u2A93"],["lessapprox","\u2A85"],["lessdot","\u22D6"],["lesseqgtr","\u22DA"],["lesseqqgtr","\u2A8B"],["lessgtr","\u2276"],["lesssim","\u2272"],["lfisht","\u297C"],["lfloor","\u230A"],["lfr","\u{1D529}"],["lg","\u2276"],["lgE","\u2A91"],["lhard","\u21BD"],["lharu","\u21BC"],["lharul","\u296A"],["lhblk","\u2584"],["ljcy","\u0459"],["ll","\u226A"],["llarr","\u21C7"],["llcorner","\u231E"],["llhard","\u296B"],["lltri","\u25FA"],["lmidot","\u0140"],["lmoust","\u23B0"],["lmoustache","\u23B0"],["lnE","\u2268"],["lnap","\u2A89"],["lnapprox","\u2A89"],["lne","\u2A87"],["lneq","\u2A87"],["lneqq","\u2268"],["lnsim","\u22E6"],["loang","\u27EC"],["loarr","\u21FD"],["lobrk","\u27E6"],["longleftarrow","\u27F5"],["longleftrightarrow","\u27F7"],["longmapsto","\u27FC"],["longrightarrow","\u27F6"],["looparrowleft","\u21AB"],["looparrowright","\u21AC"],["lopar","\u2985"],["lopf","\u{1D55D}"],["loplus","\u2A2D"],["lotimes","\u2A34"],["lowast","\u2217"],["lowbar","_"],["loz","\u25CA"],["lozenge","\u25CA"],["lozf","\u29EB"],["lpar","("],["lparlt","\u2993"],["lrarr","\u21C6"],["lrcorner","\u231F"],["lrhar","\u21CB"],["lrhard","\u296D"],["lrm","\u200E"],["lrtri","\u22BF"],["lsaquo","\u2039"],["lscr","\u{1D4C1}"],["lsh","\u21B0"],["lsim","\u2272"],["lsime","\u2A8D"],["lsimg","\u2A8F"],["lsqb","["],["lsquo","\u2018"],["lsquor","\u201A"],["lstrok","\u0142"],["lt","<"],["ltcc","\u2AA6"],["ltcir","\u2A79"],["ltdot","\u22D6"],["lthree","\u22CB"],["ltimes","\u22C9"],["ltlarr","\u2976"],["ltquest","\u2A7B"],["ltrPar","\u2996"],["ltri","\u25C3"],["ltrie","\u22B4"],["ltrif","\u25C2"],["lurdshar","\u294A"],["luruhar","\u2966"],["lvertneqq","\u2268\uFE00"],["lvnE","\u2268\uFE00"],["mDDot","\u223A"],["macr","\xAF"],["male","\u2642"],["malt","\u2720"],["maltese","\u2720"],["map","\u21A6"],["mapsto","\u21A6"],["mapstodown","\u21A7"],["mapstoleft","\u21A4"],["mapstoup","\u21A5"],["marker","\u25AE"],["mcomma","\u2A29"],["mcy","\u043C"],["mdash","\u2014"],["measuredangle","\u2221"],["mfr","\u{1D52A}"],["mho","\u2127"],["micro","\xB5"],["mid","\u2223"],["midast","*"],["midcir","\u2AF0"],["middot","\xB7"],["minus","\u2212"],["minusb","\u229F"],["minusd","\u2238"],["minusdu","\u2A2A"],["mlcp","\u2ADB"],["mldr","\u2026"],["mnplus","\u2213"],["models","\u22A7"],["mopf","\u{1D55E}"],["mp","\u2213"],["mscr","\u{1D4C2}"],["mstpos","\u223E"],["mu","\u03BC"],["multimap","\u22B8"],["mumap","\u22B8"],["nGg","\u22D9\u0338"],["nGt","\u226B\u20D2"],["nGtv","\u226B\u0338"],["nLeftarrow","\u21CD"],["nLeftrightarrow","\u21CE"],["nLl","\u22D8\u0338"],["nLt","\u226A\u20D2"],["nLtv","\u226A\u0338"],["nRightarrow","\u21CF"],["nVDash","\u22AF"],["nVdash","\u22AE"],["nabla","\u2207"],["nacute","\u0144"],["nang","\u2220\u20D2"],["nap","\u2249"],["napE","\u2A70\u0338"],["napid","\u224B\u0338"],["napos","\u0149"],["napprox","\u2249"],["natur","\u266E"],["natural","\u266E"],["naturals","\u2115"],["nbsp","\xA0"],["nbump","\u224E\u0338"],["nbumpe","\u224F\u0338"],["ncap","\u2A43"],["ncaron","\u0148"],["ncedil","\u0146"],["ncong","\u2247"],["ncongdot","\u2A6D\u0338"],["ncup","\u2A42"],["ncy","\u043D"],["ndash","\u2013"],["ne","\u2260"],["neArr","\u21D7"],["nearhk","\u2924"],["nearr","\u2197"],["nearrow","\u2197"],["nedot","\u2250\u0338"],["nequiv","\u2262"],["nesear","\u2928"],["nesim","\u2242\u0338"],["nexist","\u2204"],["nexists","\u2204"],["nfr","\u{1D52B}"],["ngE","\u2267\u0338"],["nge","\u2271"],["ngeq","\u2271"],["ngeqq","\u2267\u0338"],["ngeqslant","\u2A7E\u0338"],["nges","\u2A7E\u0338"],["ngsim","\u2275"],["ngt","\u226F"],["ngtr","\u226F"],["nhArr","\u21CE"],["nharr","\u21AE"],["nhpar","\u2AF2"],["ni","\u220B"],["nis","\u22FC"],["nisd","\u22FA"],["niv","\u220B"],["njcy","\u045A"],["nlArr","\u21CD"],["nlE","\u2266\u0338"],["nlarr","\u219A"],["nldr","\u2025"],["nle","\u2270"],["nleftarrow","\u219A"],["nleftrightarrow","\u21AE"],["nleq","\u2270"],["nleqq","\u2266\u0338"],["nleqslant","\u2A7D\u0338"],["nles","\u2A7D\u0338"],["nless","\u226E"],["nlsim","\u2274"],["nlt","\u226E"],["nltri","\u22EA"],["nltrie","\u22EC"],["nmid","\u2224"],["nopf","\u{1D55F}"],["not","\xAC"],["notin","\u2209"],["notinE","\u22F9\u0338"],["notindot","\u22F5\u0338"],["notinva","\u2209"],["notinvb","\u22F7"],["notinvc","\u22F6"],["notni","\u220C"],["notniva","\u220C"],["notnivb","\u22FE"],["notnivc","\u22FD"],["npar","\u2226"],["nparallel","\u2226"],["nparsl","\u2AFD\u20E5"],["npart","\u2202\u0338"],["npolint","\u2A14"],["npr","\u2280"],["nprcue","\u22E0"],["npre","\u2AAF\u0338"],["nprec","\u2280"],["npreceq","\u2AAF\u0338"],["nrArr","\u21CF"],["nrarr","\u219B"],["nrarrc","\u2933\u0338"],["nrarrw","\u219D\u0338"],["nrightarrow","\u219B"],["nrtri","\u22EB"],["nrtrie","\u22ED"],["nsc","\u2281"],["nsccue","\u22E1"],["nsce","\u2AB0\u0338"],["nscr","\u{1D4C3}"],["nshortmid","\u2224"],["nshortparallel","\u2226"],["nsim","\u2241"],["nsime","\u2244"],["nsimeq","\u2244"],["nsmid","\u2224"],["nspar","\u2226"],["nsqsube","\u22E2"],["nsqsupe","\u22E3"],["nsub","\u2284"],["nsubE","\u2AC5\u0338"],["nsube","\u2288"],["nsubset","\u2282\u20D2"],["nsubseteq","\u2288"],["nsubseteqq","\u2AC5\u0338"],["nsucc","\u2281"],["nsucceq","\u2AB0\u0338"],["nsup","\u2285"],["nsupE","\u2AC6\u0338"],["nsupe","\u2289"],["nsupset","\u2283\u20D2"],["nsupseteq","\u2289"],["nsupseteqq","\u2AC6\u0338"],["ntgl","\u2279"],["ntilde","\xF1"],["ntlg","\u2278"],["ntriangleleft","\u22EA"],["ntrianglelefteq","\u22EC"],["ntriangleright","\u22EB"],["ntrianglerighteq","\u22ED"],["nu","\u03BD"],["num","#"],["numero","\u2116"],["numsp","\u2007"],["nvDash","\u22AD"],["nvHarr","\u2904"],["nvap","\u224D\u20D2"],["nvdash","\u22AC"],["nvge","\u2265\u20D2"],["nvgt",">\u20D2"],["nvinfin","\u29DE"],["nvlArr","\u2902"],["nvle","\u2264\u20D2"],["nvlt","<\u20D2"],["nvltrie","\u22B4\u20D2"],["nvrArr","\u2903"],["nvrtrie","\u22B5\u20D2"],["nvsim","\u223C\u20D2"],["nwArr","\u21D6"],["nwarhk","\u2923"],["nwarr","\u2196"],["nwarrow","\u2196"],["nwnear","\u2927"],["oS","\u24C8"],["oacute","\xF3"],["oast","\u229B"],["ocir","\u229A"],["ocirc","\xF4"],["ocy","\u043E"],["odash","\u229D"],["odblac","\u0151"],["odiv","\u2A38"],["odot","\u2299"],["odsold","\u29BC"],["oelig","\u0153"],["ofcir","\u29BF"],["ofr","\u{1D52C}"],["ogon","\u02DB"],["ograve","\xF2"],["ogt","\u29C1"],["ohbar","\u29B5"],["ohm","\u03A9"],["oint","\u222E"],["olarr","\u21BA"],["olcir","\u29BE"],["olcross","\u29BB"],["oline","\u203E"],["olt","\u29C0"],["omacr","\u014D"],["omega","\u03C9"],["omicron","\u03BF"],["omid","\u29B6"],["ominus","\u2296"],["oopf","\u{1D560}"],["opar","\u29B7"],["operp","\u29B9"],["oplus","\u2295"],["or","\u2228"],["orarr","\u21BB"],["ord","\u2A5D"],["order","\u2134"],["orderof","\u2134"],["ordf","\xAA"],["ordm","\xBA"],["origof","\u22B6"],["oror","\u2A56"],["orslope","\u2A57"],["orv","\u2A5B"],["oscr","\u2134"],["oslash","\xF8"],["osol","\u2298"],["otilde","\xF5"],["otimes","\u2297"],["otimesas","\u2A36"],["ouml","\xF6"],["ovbar","\u233D"],["par","\u2225"],["para","\xB6"],["parallel","\u2225"],["parsim","\u2AF3"],["parsl","\u2AFD"],["part","\u2202"],["pcy","\u043F"],["percnt","%"],["period","."],["permil","\u2030"],["perp","\u22A5"],["pertenk","\u2031"],["pfr","\u{1D52D}"],["phi","\u03C6"],["phiv","\u03D5"],["phmmat","\u2133"],["phone","\u260E"],["pi","\u03C0"],["pitchfork","\u22D4"],["piv","\u03D6"],["planck","\u210F"],["planckh","\u210E"],["plankv","\u210F"],["plus","+"],["plusacir","\u2A23"],["plusb","\u229E"],["pluscir","\u2A22"],["plusdo","\u2214"],["plusdu","\u2A25"],["pluse","\u2A72"],["plusmn","\xB1"],["plussim","\u2A26"],["plustwo","\u2A27"],["pm","\xB1"],["pointint","\u2A15"],["popf","\u{1D561}"],["pound","\xA3"],["pr","\u227A"],["prE","\u2AB3"],["prap","\u2AB7"],["prcue","\u227C"],["pre","\u2AAF"],["prec","\u227A"],["precapprox","\u2AB7"],["preccurlyeq","\u227C"],["preceq","\u2AAF"],["precnapprox","\u2AB9"],["precneqq","\u2AB5"],["precnsim","\u22E8"],["precsim","\u227E"],["prime","\u2032"],["primes","\u2119"],["prnE","\u2AB5"],["prnap","\u2AB9"],["prnsim","\u22E8"],["prod","\u220F"],["profalar","\u232E"],["profline","\u2312"],["profsurf","\u2313"],["prop","\u221D"],["propto","\u221D"],["prsim","\u227E"],["prurel","\u22B0"],["pscr","\u{1D4C5}"],["psi","\u03C8"],["puncsp","\u2008"],["qfr","\u{1D52E}"],["qint","\u2A0C"],["qopf","\u{1D562}"],["qprime","\u2057"],["qscr","\u{1D4C6}"],["quaternions","\u210D"],["quatint","\u2A16"],["quest","?"],["questeq","\u225F"],["quot",'"'],["rAarr","\u21DB"],["rArr","\u21D2"],["rAtail","\u291C"],["rBarr","\u290F"],["rHar","\u2964"],["race","\u223D\u0331"],["racute","\u0155"],["radic","\u221A"],["raemptyv","\u29B3"],["rang","\u27E9"],["rangd","\u2992"],["range","\u29A5"],["rangle","\u27E9"],["raquo","\xBB"],["rarr","\u2192"],["rarrap","\u2975"],["rarrb","\u21E5"],["rarrbfs","\u2920"],["rarrc","\u2933"],["rarrfs","\u291E"],["rarrhk","\u21AA"],["rarrlp","\u21AC"],["rarrpl","\u2945"],["rarrsim","\u2974"],["rarrtl","\u21A3"],["rarrw","\u219D"],["ratail","\u291A"],["ratio","\u2236"],["rationals","\u211A"],["rbarr","\u290D"],["rbbrk","\u2773"],["rbrace","}"],["rbrack","]"],["rbrke","\u298C"],["rbrksld","\u298E"],["rbrkslu","\u2990"],["rcaron","\u0159"],["rcedil","\u0157"],["rceil","\u2309"],["rcub","}"],["rcy","\u0440"],["rdca","\u2937"],["rdldhar","\u2969"],["rdquo","\u201D"],["rdquor","\u201D"],["rdsh","\u21B3"],["real","\u211C"],["realine","\u211B"],["realpart","\u211C"],["reals","\u211D"],["rect","\u25AD"],["reg","\xAE"],["rfisht","\u297D"],["rfloor","\u230B"],["rfr","\u{1D52F}"],["rhard","\u21C1"],["rharu","\u21C0"],["rharul","\u296C"],["rho","\u03C1"],["rhov","\u03F1"],["rightarrow","\u2192"],["rightarrowtail","\u21A3"],["rightharpoondown","\u21C1"],["rightharpoonup","\u21C0"],["rightleftarrows","\u21C4"],["rightleftharpoons","\u21CC"],["rightrightarrows","\u21C9"],["rightsquigarrow","\u219D"],["rightthreetimes","\u22CC"],["ring","\u02DA"],["risingdotseq","\u2253"],["rlarr","\u21C4"],["rlhar","\u21CC"],["rlm","\u200F"],["rmoust","\u23B1"],["rmoustache","\u23B1"],["rnmid","\u2AEE"],["roang","\u27ED"],["roarr","\u21FE"],["robrk","\u27E7"],["ropar","\u2986"],["ropf","\u{1D563}"],["roplus","\u2A2E"],["rotimes","\u2A35"],["rpar",")"],["rpargt","\u2994"],["rppolint","\u2A12"],["rrarr","\u21C9"],["rsaquo","\u203A"],["rscr","\u{1D4C7}"],["rsh","\u21B1"],["rsqb","]"],["rsquo","\u2019"],["rsquor","\u2019"],["rthree","\u22CC"],["rtimes","\u22CA"],["rtri","\u25B9"],["rtrie","\u22B5"],["rtrif","\u25B8"],["rtriltri","\u29CE"],["ruluhar","\u2968"],["rx","\u211E"],["sacute","\u015B"],["sbquo","\u201A"],["sc","\u227B"],["scE","\u2AB4"],["scap","\u2AB8"],["scaron","\u0161"],["sccue","\u227D"],["sce","\u2AB0"],["scedil","\u015F"],["scirc","\u015D"],["scnE","\u2AB6"],["scnap","\u2ABA"],["scnsim","\u22E9"],["scpolint","\u2A13"],["scsim","\u227F"],["scy","\u0441"],["sdot","\u22C5"],["sdotb","\u22A1"],["sdote","\u2A66"],["seArr","\u21D8"],["searhk","\u2925"],["searr","\u2198"],["searrow","\u2198"],["sect","\xA7"],["semi",";"],["seswar","\u2929"],["setminus","\u2216"],["setmn","\u2216"],["sext","\u2736"],["sfr","\u{1D530}"],["sfrown","\u2322"],["sharp","\u266F"],["shchcy","\u0449"],["shcy","\u0448"],["shortmid","\u2223"],["shortparallel","\u2225"],["shy","\xAD"],["sigma","\u03C3"],["sigmaf","\u03C2"],["sigmav","\u03C2"],["sim","\u223C"],["simdot","\u2A6A"],["sime","\u2243"],["simeq","\u2243"],["simg","\u2A9E"],["simgE","\u2AA0"],["siml","\u2A9D"],["simlE","\u2A9F"],["simne","\u2246"],["simplus","\u2A24"],["simrarr","\u2972"],["slarr","\u2190"],["smallsetminus","\u2216"],["smashp","\u2A33"],["smeparsl","\u29E4"],["smid","\u2223"],["smile","\u2323"],["smt","\u2AAA"],["smte","\u2AAC"],["smtes","\u2AAC\uFE00"],["softcy","\u044C"],["sol","/"],["solb","\u29C4"],["solbar","\u233F"],["sopf","\u{1D564}"],["spades","\u2660"],["spadesuit","\u2660"],["spar","\u2225"],["sqcap","\u2293"],["sqcaps","\u2293\uFE00"],["sqcup","\u2294"],["sqcups","\u2294\uFE00"],["sqsub","\u228F"],["sqsube","\u2291"],["sqsubset","\u228F"],["sqsubseteq","\u2291"],["sqsup","\u2290"],["sqsupe","\u2292"],["sqsupset","\u2290"],["sqsupseteq","\u2292"],["squ","\u25A1"],["square","\u25A1"],["squarf","\u25AA"],["squf","\u25AA"],["srarr","\u2192"],["sscr","\u{1D4C8}"],["ssetmn","\u2216"],["ssmile","\u2323"],["sstarf","\u22C6"],["star","\u2606"],["starf","\u2605"],["straightepsilon","\u03F5"],["straightphi","\u03D5"],["strns","\xAF"],["sub","\u2282"],["subE","\u2AC5"],["subdot","\u2ABD"],["sube","\u2286"],["subedot","\u2AC3"],["submult","\u2AC1"],["subnE","\u2ACB"],["subne","\u228A"],["subplus","\u2ABF"],["subrarr","\u2979"],["subset","\u2282"],["subseteq","\u2286"],["subseteqq","\u2AC5"],["subsetneq","\u228A"],["subsetneqq","\u2ACB"],["subsim","\u2AC7"],["subsub","\u2AD5"],["subsup","\u2AD3"],["succ","\u227B"],["succapprox","\u2AB8"],["succcurlyeq","\u227D"],["succeq","\u2AB0"],["succnapprox","\u2ABA"],["succneqq","\u2AB6"],["succnsim","\u22E9"],["succsim","\u227F"],["sum","\u2211"],["sung","\u266A"],["sup","\u2283"],["sup1","\xB9"],["sup2","\xB2"],["sup3","\xB3"],["supE","\u2AC6"],["supdot","\u2ABE"],["supdsub","\u2AD8"],["supe","\u2287"],["supedot","\u2AC4"],["suphsol","\u27C9"],["suphsub","\u2AD7"],["suplarr","\u297B"],["supmult","\u2AC2"],["supnE","\u2ACC"],["supne","\u228B"],["supplus","\u2AC0"],["supset","\u2283"],["supseteq","\u2287"],["supseteqq","\u2AC6"],["supsetneq","\u228B"],["supsetneqq","\u2ACC"],["supsim","\u2AC8"],["supsub","\u2AD4"],["supsup","\u2AD6"],["swArr","\u21D9"],["swarhk","\u2926"],["swarr","\u2199"],["swarrow","\u2199"],["swnwar","\u292A"],["szlig","\xDF"],["target","\u2316"],["tau","\u03C4"],["tbrk","\u23B4"],["tcaron","\u0165"],["tcedil","\u0163"],["tcy","\u0442"],["tdot","\u20DB"],["telrec","\u2315"],["tfr","\u{1D531}"],["there4","\u2234"],["therefore","\u2234"],["theta","\u03B8"],["thetasym","\u03D1"],["thetav","\u03D1"],["thickapprox","\u2248"],["thicksim","\u223C"],["thinsp","\u2009"],["thkap","\u2248"],["thksim","\u223C"],["thorn","\xFE"],["tilde","\u02DC"],["times","\xD7"],["timesb","\u22A0"],["timesbar","\u2A31"],["timesd","\u2A30"],["tint","\u222D"],["toea","\u2928"],["top","\u22A4"],["topbot","\u2336"],["topcir","\u2AF1"],["topf","\u{1D565}"],["topfork","\u2ADA"],["tosa","\u2929"],["tprime","\u2034"],["trade","\u2122"],["triangle","\u25B5"],["triangledown","\u25BF"],["triangleleft","\u25C3"],["trianglelefteq","\u22B4"],["triangleq","\u225C"],["triangleright","\u25B9"],["trianglerighteq","\u22B5"],["tridot","\u25EC"],["trie","\u225C"],["triminus","\u2A3A"],["triplus","\u2A39"],["trisb","\u29CD"],["tritime","\u2A3B"],["trpezium","\u23E2"],["tscr","\u{1D4C9}"],["tscy","\u0446"],["tshcy","\u045B"],["tstrok","\u0167"],["twixt","\u226C"],["twoheadleftarrow","\u219E"],["twoheadrightarrow","\u21A0"],["uArr","\u21D1"],["uHar","\u2963"],["uacute","\xFA"],["uarr","\u2191"],["ubrcy","\u045E"],["ubreve","\u016D"],["ucirc","\xFB"],["ucy","\u0443"],["udarr","\u21C5"],["udblac","\u0171"],["udhar","\u296E"],["ufisht","\u297E"],["ufr","\u{1D532}"],["ugrave","\xF9"],["uharl","\u21BF"],["uharr","\u21BE"],["uhblk","\u2580"],["ulcorn","\u231C"],["ulcorner","\u231C"],["ulcrop","\u230F"],["ultri","\u25F8"],["umacr","\u016B"],["uml","\xA8"],["uogon","\u0173"],["uopf","\u{1D566}"],["uparrow","\u2191"],["updownarrow","\u2195"],["upharpoonleft","\u21BF"],["upharpoonright","\u21BE"],["uplus","\u228E"],["upsi","\u03C5"],["upsih","\u03D2"],["upsilon","\u03C5"],["upuparrows","\u21C8"],["urcorn","\u231D"],["urcorner","\u231D"],["urcrop","\u230E"],["uring","\u016F"],["urtri","\u25F9"],["uscr","\u{1D4CA}"],["utdot","\u22F0"],["utilde","\u0169"],["utri","\u25B5"],["utrif","\u25B4"],["uuarr","\u21C8"],["uuml","\xFC"],["uwangle","\u29A7"],["vArr","\u21D5"],["vBar","\u2AE8"],["vBarv","\u2AE9"],["vDash","\u22A8"],["vangrt","\u299C"],["varepsilon","\u03F5"],["varkappa","\u03F0"],["varnothing","\u2205"],["varphi","\u03D5"],["varpi","\u03D6"],["varpropto","\u221D"],["varr","\u2195"],["varrho","\u03F1"],["varsigma","\u03C2"],["varsubsetneq","\u228A\uFE00"],["varsubsetneqq","\u2ACB\uFE00"],["varsupsetneq","\u228B\uFE00"],["varsupsetneqq","\u2ACC\uFE00"],["vartheta","\u03D1"],["vartriangleleft","\u22B2"],["vartriangleright","\u22B3"],["vcy","\u0432"],["vdash","\u22A2"],["vee","\u2228"],["veebar","\u22BB"],["veeeq","\u225A"],["vellip","\u22EE"],["verbar","|"],["vert","|"],["vfr","\u{1D533}"],["vltri","\u22B2"],["vnsub","\u2282\u20D2"],["vnsup","\u2283\u20D2"],["vopf","\u{1D567}"],["vprop","\u221D"],["vrtri","\u22B3"],["vscr","\u{1D4CB}"],["vsubnE","\u2ACB\uFE00"],["vsubne","\u228A\uFE00"],["vsupnE","\u2ACC\uFE00"],["vsupne","\u228B\uFE00"],["vzigzag","\u299A"],["wcirc","\u0175"],["wedbar","\u2A5F"],["wedge","\u2227"],["wedgeq","\u2259"],["weierp","\u2118"],["wfr","\u{1D534}"],["wopf","\u{1D568}"],["wp","\u2118"],["wr","\u2240"],["wreath","\u2240"],["wscr","\u{1D4CC}"],["xcap","\u22C2"],["xcirc","\u25EF"],["xcup","\u22C3"],["xdtri","\u25BD"],["xfr","\u{1D535}"],["xhArr","\u27FA"],["xharr","\u27F7"],["xi","\u03BE"],["xlArr","\u27F8"],["xlarr","\u27F5"],["xmap","\u27FC"],["xnis","\u22FB"],["xodot","\u2A00"],["xopf","\u{1D569}"],["xoplus","\u2A01"],["xotime","\u2A02"],["xrArr","\u27F9"],["xrarr","\u27F6"],["xscr","\u{1D4CD}"],["xsqcup","\u2A06"],["xuplus","\u2A04"],["xutri","\u25B3"],["xvee","\u22C1"],["xwedge","\u22C0"],["yacute","\xFD"],["yacy","\u044F"],["ycirc","\u0177"],["ycy","\u044B"],["yen","\xA5"],["yfr","\u{1D536}"],["yicy","\u0457"],["yopf","\u{1D56A}"],["yscr","\u{1D4CE}"],["yucy","\u044E"],["yuml","\xFF"],["zacute","\u017A"],["zcaron","\u017E"],["zcy","\u0437"],["zdot","\u017C"],["zeetrf","\u2128"],["zeta","\u03B6"],["zfr","\u{1D537}"],["zhcy","\u0436"],["zigrarr","\u21DD"],["zopf","\u{1D56B}"],["zscr","\u{1D4CF}"],["zwj","\u200D"],["zwnj","\u200C"]]),SQe=new Map([["AElig","\xC6"],["AMP","&"],["Aacute","\xC1"],["Acirc","\xC2"],["Agrave","\xC0"],["Aring","\xC5"],["Atilde","\xC3"],["Auml","\xC4"],["COPY","\xA9"],["Ccedil","\xC7"],["ETH","\xD0"],["Eacute","\xC9"],["Ecirc","\xCA"],["Egrave","\xC8"],["Euml","\xCB"],["GT",">"],["Iacute","\xCD"],["Icirc","\xCE"],["Igrave","\xCC"],["Iuml","\xCF"],["LT","<"],["Ntilde","\xD1"],["Oacute","\xD3"],["Ocirc","\xD4"],["Ograve","\xD2"],["Oslash","\xD8"],["Otilde","\xD5"],["Ouml","\xD6"],["QUOT",'"'],["REG","\xAE"],["THORN","\xDE"],["Uacute","\xDA"],["Ucirc","\xDB"],["Ugrave","\xD9"],["Uuml","\xDC"],["Yacute","\xDD"],["aacute","\xE1"],["acirc","\xE2"],["acute","\xB4"],["aelig","\xE6"],["agrave","\xE0"],["amp","&"],["aring","\xE5"],["atilde","\xE3"],["auml","\xE4"],["brvbar","\xA6"],["ccedil","\xE7"],["cedil","\xB8"],["cent","\xA2"],["copy","\xA9"],["curren","\xA4"],["deg","\xB0"],["divide","\xF7"],["eacute","\xE9"],["ecirc","\xEA"],["egrave","\xE8"],["eth","\xF0"],["euml","\xEB"],["frac12","\xBD"],["frac14","\xBC"],["frac34","\xBE"],["gt",">"],["iacute","\xED"],["icirc","\xEE"],["iexcl","\xA1"],["igrave","\xEC"],["iquest","\xBF"],["iuml","\xEF"],["laquo","\xAB"],["lt","<"],["macr","\xAF"],["micro","\xB5"],["middot","\xB7"],["nbsp","\xA0"],["not","\xAC"],["ntilde","\xF1"],["oacute","\xF3"],["ocirc","\xF4"],["ograve","\xF2"],["ordf","\xAA"],["ordm","\xBA"],["oslash","\xF8"],["otilde","\xF5"],["ouml","\xF6"],["para","\xB6"],["plusmn","\xB1"],["pound","\xA3"],["quot",'"'],["raquo","\xBB"],["reg","\xAE"],["sect","\xA7"],["shy","\xAD"],["sup1","\xB9"],["sup2","\xB2"],["sup3","\xB3"],["szlig","\xDF"],["thorn","\xFE"],["times","\xD7"],["uacute","\xFA"],["ucirc","\xFB"],["ugrave","\xF9"],["uml","\xA8"],["uuml","\xFC"],["yacute","\xFD"],["yen","\xA5"],["yuml","\xFF"]]),cJ=new Map([[0,"\uFFFD"],[128,"\u20AC"],[130,"\u201A"],[131,"\u0192"],[132,"\u201E"],[133,"\u2026"],[134,"\u2020"],[135,"\u2021"],[136,"\u02C6"],[137,"\u2030"],[138,"\u0160"],[139,"\u2039"],[140,"\u0152"],[142,"\u017D"],[145,"\u2018"],[146,"\u2019"],[147,"\u201C"],[148,"\u201D"],[149,"\u2022"],[150,"\u2013"],[151,"\u2014"],[152,"\u02DC"],[153,"\u2122"],[154,"\u0161"],[155,"\u203A"],[156,"\u0153"],[158,"\u017E"],[159,"\u0178"]]),BQe=new Set([1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]);var xQe=/["&'<>`]/g;var xQt=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,vQt=o((t,e)=>Object.hasOwn(t,e),"has"),NQe=o((t,e)=>{if(!t)return e;let r={};for(let n in e)r[n]=vQt(t,n)?t[n]:e[n];return r},"merge"),wl=o(t=>{throw new Error(`Parse error: ${t}`)},"parseError"),vQe=o((t,e)=>t>=55296&&t<=57343||t>1114111?(e&&wl("character reference outside the permissible Unicode range"),"\uFFFD"):cJ.has(t)?(e&&wl("disallowed character reference"),cJ.get(t)):(e&&BQe.has(t)&&wl("disallowed character reference"),String.fromCodePoint(t)),"codePointToSymbol"),NQt=o(t=>`&#x${t.toString(16).toUpperCase()};`,"hexEscape"),RQt=o(t=>`&#${t};`,"decEscape"),tS=o((t,e)=>{e=NQe(e,tS.options),e.strict&&bQe.test(t)&&wl("forbidden code point");let n=e.encodeEverything,i=e.useNamedReferences,s=e.allowUnsafeSymbols,a=e.decimal?RQt:NQt,c=o(l=>a(l.charCodeAt(0)),"escapeBmpSymbol");return n?(t=t.replace(EQe,l=>i&&oE.has(l)?`&${oE.get(l)};`:c(l)),i&&(t=t.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒").replace(/fj/g,"fj")),i&&(t=t.replace(aJ,l=>`&${oE.get(l)};`))):i?(s||(t=t.replace(xQe,l=>`&${oE.get(l)};`)),t=t.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒"),t=t.replace(aJ,l=>`&${oE.get(l)};`)):s||(t=t.replace(xQe,c)),t.replace(yQe,l=>{let u=l.charCodeAt(0),d=l.charCodeAt(1),f=(u-55296)*1024+d-56320+65536;return a(f)}).replace(CQe,c)},"encode");tS.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var RQe=o((t,e)=>{e=NQe(e,RQe.options);let r=e.strict;return r&&xQt.test(t)&&wl("malformed character reference"),t.replace(wQe,(n,i,s,a,c,l,u,d)=>{if(i)return IQe.get(i);if(s){let f=s,h=a;return h&&e.isAttributeValue?(r&&h=="="&&wl("`&` did not start a character reference"),n):(r&&wl("named character reference was not terminated by a semicolon"),SQe.get(f)+(h||""))}return c?(r&&!l&&wl("character reference was not terminated by a semicolon"),vQe(parseInt(c,10),r)):u?(r&&!d&&wl("character reference was not terminated by a semicolon"),vQe(parseInt(u,16),r)):(r&&wl("named character reference was not recognized"),n)})},"decode");RQe.options={isAttributeValue:!1,strict:!1};var _t=Symbol("NOT_RESOLVED");function gi(t,e){return{tagName:t,nodeKind:"scalar",implicit:e.implicit??!1,matchByTagPrefix:e.matchByTagPrefix??!1,implicitFirstChars:e.implicitFirstChars??null,resolve:e.resolve,identify:e.identify,represent:e.represent??(r=>String(r)),representTagName:e.representTagName??(()=>t)}}o(gi,"defineScalarTag");function CJ(t,e){let r=e.finalize===void 0;return{tagName:t,nodeKind:"sequence",implicit:!1,matchByTagPrefix:e.matchByTagPrefix??!1,create:e.create,addItem:e.addItem,finalize:e.finalize??(n=>n),carrierIsResult:r,identify:e.identify,represent:e.represent??(n=>n),representTagName:e.representTagName??(()=>t)}}o(CJ,"defineSequenceTag");function i1(t,e){let r=e.finalize===void 0;return{tagName:t,nodeKind:"mapping",implicit:!1,matchByTagPrefix:e.matchByTagPrefix??!1,create:e.create,addPair:e.addPair,has:e.has,keys:e.keys,get:e.get,finalize:e.finalize??(n=>n),carrierIsResult:r,identify:e.identify,represent:e.represent??(n=>n),representTagName:e.representTagName??(()=>t)}}o(i1,"defineMappingTag");var TQt=gi("tag:yaml.org,2002:str",{resolve:o(t=>t,"resolve"),identify:o(t=>typeof t=="string","identify")}),DQt=["","~","null","Null","NULL"],QQt=gi("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:o(t=>DQt.indexOf(t)!==-1?null:_t,"resolve"),identify:o(t=>t===null,"identify"),represent:o(()=>"null","represent")}),kQt=gi("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["n"],resolve:o((t,e)=>t==="null"||e&&t===""?null:_t,"resolve"),identify:o(t=>t===null,"identify"),represent:o(()=>"null","represent")}),PQt=["","~","null","Null","NULL"],OQt=gi("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:o(t=>PQt.indexOf(t)!==-1?null:_t,"resolve"),identify:o(t=>t===null,"identify"),represent:o(()=>"null","represent")}),LQt=["true","True","TRUE"],FQt=["false","False","FALSE"],MQt=gi("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","T","f","F"],resolve:o(t=>LQt.indexOf(t)!==-1?!0:FQt.indexOf(t)!==-1?!1:_t,"resolve"),identify:o(t=>Object.prototype.toString.call(t)==="[object Boolean]","identify"),represent:o(t=>t?"true":"false","represent")}),UQt=["true"],qQt=["false"],GQt=gi("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","f"],resolve:o(t=>UQt.indexOf(t)!==-1?!0:qQt.indexOf(t)!==-1?!1:_t,"resolve"),identify:o(t=>Object.prototype.toString.call(t)==="[object Boolean]","identify"),represent:o(t=>t?"true":"false","represent")}),HQt=["true","True","TRUE","y","Y","yes","Yes","YES","on","On","ON"],zQt=["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"],VQt=gi("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["y","Y","n","N","t","T","f","F","o","O"],resolve:o(t=>HQt.indexOf(t)!==-1?!0:zQt.indexOf(t)!==-1?!1:_t,"resolve"),identify:o(t=>Object.prototype.toString.call(t)==="[object Boolean]","identify"),represent:o(t=>t?"true":"false","represent")}),$Qt=new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"),jQt=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function WQt(t){let e=t,r=1;return(e[0]==="-"||e[0]==="+")&&(e[0]==="-"&&(r=-1),e=e.slice(1)),e.startsWith("0b")?r*parseInt(e.slice(2),2):e.startsWith("0o")?r*parseInt(e.slice(2),8):e.startsWith("0x")?r*parseInt(e.slice(2),16):r*parseInt(e,10)}o(WQt,"parseYamlInteger$2");function JQt(t,e){if(e){if(!jQt.test(t))return _t}else if(!$Qt.test(t))return _t;let r=WQt(t);return Number.isFinite(r)?r:_t}o(JQt,"resolveYamlInteger$2");var FQe=gi("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:JQt,identify:o(t=>Number.isInteger(t)&&!Object.is(t,-0)&&t.toString(10).indexOf("e")<0,"identify"),represent:o(t=>t.toString(10),"represent")}),YQt=new RegExp("^-?(?:0|[1-9][0-9]*)$"),KQt=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function XQt(t){let e=t,r=1;return(e[0]==="-"||e[0]==="+")&&(e[0]==="-"&&(r=-1),e=e.slice(1)),e.startsWith("0b")?r*parseInt(e.slice(2),2):e.startsWith("0o")?r*parseInt(e.slice(2),8):e.startsWith("0x")?r*parseInt(e.slice(2),16):r*parseInt(e,10)}o(XQt,"parseYamlInteger$1");function ZQt(t,e){if(e){if(!KQt.test(t))return _t}else if(!YQt.test(t))return _t;let r=XQt(t);return Number.isFinite(r)?r:_t}o(ZQt,"resolveYamlInteger$1");var e1t=gi("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:ZQt,identify:o(t=>Number.isInteger(t)&&!Object.is(t,-0)&&t.toString(10).indexOf("e")<0,"identify"),represent:o(t=>t.toString(10),"represent")}),t1t=new RegExp("^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$");function r1t(t){let e=t.replace(/_/g,""),r=1;if((e[0]==="-"||e[0]==="+")&&(e[0]==="-"&&(r=-1),e=e.slice(1)),e.startsWith("0b"))return r*parseInt(e.slice(2),2);if(e.startsWith("0x"))return r*parseInt(e.slice(2),16);if(e.includes(":")){let n=0;for(let i of e.split(":"))n=n*60+Number(i);return r*n}return e!=="0"&&e[0]==="0"?r*parseInt(e,8):r*parseInt(e,10)}o(r1t,"parseYamlInteger");function n1t(t){if(!t1t.test(t))return _t;let e=r1t(t);return Number.isFinite(e)?e:_t}o(n1t,"resolveYamlInteger");var fJ=gi("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:n1t,identify:o(t=>Number.isInteger(t)&&!Object.is(t,-0)&&t.toString(10).indexOf("e")<0,"identify"),represent:o(t=>t.toString(10),"represent")}),i1t=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),s1t=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function o1t(t){if(!i1t.test(t))return _t;let e=t.toLowerCase(),r=e[0]==="-"?-1:1;if("+-".includes(e[0])&&(e=e.slice(1)),e===".inf")return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(e===".nan")return NaN;let n=r*parseFloat(e);return Number.isFinite(n)||s1t.test(t)?n:_t}o(o1t,"resolveYamlFloat$2");function a1t(t){if(isNaN(t))return".nan";if(t===Number.POSITIVE_INFINITY)return".inf";if(t===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(t,-0))return"-0.0";let e=t.toString(10);return/^[-+]?[0-9]+e/.test(e)?e.replace("e",".e"):e}o(a1t,"representYamlFloat$2");var MQe=gi("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:o1t,identify:o(t=>typeof t=="number"&&(!Number.isInteger(t)||Object.is(t,-0)||t.toString(10).indexOf("e")>=0),"identify"),represent:a1t}),c1t=new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"),l1t=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function u1t(t,e){if(e){if(!l1t.test(t))return _t;let n=t.toLowerCase(),i=n[0]==="-"?-1:1;if("+-".includes(n[0])&&(n=n.slice(1)),n===".inf")return i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(n===".nan")return NaN;let s=i*parseFloat(n);return Number.isFinite(s)?s:_t}if(!c1t.test(t))return _t;let r=Number(t);return Number.isFinite(r)?r:_t}o(u1t,"resolveYamlFloat$1");function d1t(t){if(isNaN(t))return".nan";if(t===Number.POSITIVE_INFINITY)return".inf";if(t===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(t,-0))return"-0.0";let e=t.toString(10);return/^[-+]?[0-9]+e/.test(e)?e.replace("e",".e"):e}o(d1t,"representYamlFloat$1");var f1t=gi("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:u1t,identify:o(t=>typeof t=="number"&&(!Number.isInteger(t)||Object.is(t,-0)||t.toString(10).indexOf("e")>=0),"identify"),represent:d1t}),h1t=new RegExp("^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),p1t=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function A1t(t){if(!h1t.test(t))return _t;let e=t.toLowerCase().replace(/_/g,""),r=e[0]==="-"?-1:1;if("+-".includes(e[0])&&(e=e.slice(1)),e===".inf")return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(e===".nan")return NaN;let n=0;if(e.includes(":")){for(let i of e.split(":"))n=n*60+Number(i);n*=r}else n=r*parseFloat(e);return Number.isFinite(n)||p1t.test(t)?n:_t}o(A1t,"resolveYamlFloat");function m1t(t){if(isNaN(t))return".nan";if(t===Number.POSITIVE_INFINITY)return".inf";if(t===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(t,-0))return"-0.0";let e=t.toString(10);return/^[-+]?[0-9]+e/.test(e)?e.replace("e",".e"):e}o(m1t,"representYamlFloat");var hJ=gi("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:A1t,identify:o(t=>typeof t=="number"&&(!Number.isInteger(t)||Object.is(t,-0)||t.toString(10).indexOf("e")>=0),"identify"),represent:m1t}),g1t=gi("tag:yaml.org,2002:merge",{implicit:!0,implicitFirstChars:["<"],resolve:o((t,e)=>t==="<<"||e&&t===""?"<<":_t,"resolve"),identify:o(()=>!1,"identify")}),y1t=/^[A-Za-z0-9+/]*={0,2}$/;function E1t(t){let e=t.replace(/\s/g,"");if(e.length%4!==0||!y1t.test(e))return _t;let r=atob(e),n=new Uint8Array(r.length);for(let i=0;iObject.prototype.toString.call(t)==="[object Uint8Array]","identify"),represent:C1t}),w1t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),I1t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function _Qe(t,e,r,n=0,i=0,s=0,a=0){let c=new Date(Date.UTC(t,e,r,n,i,s,a));return c.setUTCFullYear(t,e,r),c}o(_Qe,"makeUtcDate");function S1t(t){let e=w1t.exec(t);if(e===null&&(e=I1t.exec(t)),e===null)return _t;let r=+e[1],n=+e[2]-1,i=+e[3];if(!e[4]){let d=_Qe(r,n,i);return d.getUTCFullYear()!==r||d.getUTCMonth()!==n||d.getUTCDate()!==i?_t:d}let s=+e[4],a=+e[5],c=+e[6],l=0;if(s>23||a>59||c>59)return _t;if(e[7]){let d=e[7].slice(0,3);for(;d.length<3;)d+="0";l=+d}let u=_Qe(r,n,i,s,a,c,l);if(u.getUTCFullYear()!==r||u.getUTCMonth()!==n||u.getUTCDate()!==i)return _t;if(e[9]){let d=+e[10],f=+(e[11]||0);if(d>23||f>59)return _t;let h=(d*60+f)*6e4;u.setTime(u.getTime()-(e[9]==="-"?-h:h))}return u}o(S1t,"resolveYamlTimestamp");var B1t=gi("tag:yaml.org,2002:timestamp",{implicit:!0,implicitFirstChars:[..."0123456789"],resolve:S1t,identify:o(t=>t instanceof Date,"identify"),represent:o(t=>t.toISOString(),"represent")}),x1t=CJ("tag:yaml.org,2002:seq",{create:o(()=>[],"create"),addItem:o((t,e)=>{t.push(e)},"addItem"),identify:Array.isArray});function s1(t){if(t===null||typeof t!="object"||Array.isArray(t))return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}o(s1,"isPlainObject");function v1t(t,e){let r={};for(let n of e)t[n]!==void 0&&(r[n]=t[n]);return r}o(v1t,"pick");var N1t=CJ("tag:yaml.org,2002:omap",{create:o(()=>({list:[],seen:new Set}),"create"),addItem:o((t,e)=>{let r;if(e instanceof Map){if(e.size!==1)return"cannot resolve an ordered map item";r=e.keys().next().value}else if(s1(e)){let n=Object.keys(e);if(n.length!==1)return"cannot resolve an ordered map item";r=n[0]}else return"cannot resolve an ordered map item";return t.seen.has(r)?"duplicate key in ordered map":(t.seen.add(r),t.list.push(e),"")},"addItem"),finalize:o(t=>t.list,"finalize"),identify:o(()=>!1,"identify")}),R1t=CJ("tag:yaml.org,2002:pairs",{create:o(()=>[],"create"),addItem:o((t,e)=>{if(e instanceof Map)return e.size!==1?"cannot resolve a pairs item":(t.push(e.entries().next().value),"");if(Object.prototype.toString.call(e)!=="[object Object]")return"cannot resolve a pairs item";let r=e,n=Object.keys(r);return n.length!==1?"cannot resolve a pairs item":(t.push([n[0],r[n[0]]]),"")},"addItem"),identify:o(()=>!1,"identify")}),_1t=i1("tag:yaml.org,2002:map",{create:o(()=>({}),"create"),identify:s1,represent:o(t=>{let e=new Map;for(let r of Object.keys(t))e.set(r,t[r]);return e},"represent"),addPair:o((t,e,r)=>{if(e!==null&&typeof e=="object")return"object-based map does not support complex keys";let n=String(e);return n==="__proto__"?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,""},"addPair"),has:o((t,e)=>e!==null&&typeof e=="object"?!1:Object.prototype.hasOwnProperty.call(t,String(e)),"has"),keys:o(t=>Object.keys(t),"keys"),get:o((t,e)=>{let r=String(e);return Object.prototype.hasOwnProperty.call(t,r)?t[r]:null},"get")}),T1t=i1("tag:yaml.org,2002:set",{create:o(()=>new Set,"create"),identify:o(t=>t instanceof Set,"identify"),represent:o(t=>{let e=new Map;for(let r of t)e.set(r,null);return e},"represent"),addPair:o((t,e,r)=>r!==null?"cannot resolve a set item":(t.add(e),""),"addPair"),has:o((t,e)=>t.has(e),"has"),keys:o(t=>t.keys(),"keys"),get:o(()=>null,"get")});function D1t(){return{scalar:Object.create(null),sequence:Object.create(null),mapping:Object.create(null)}}o(D1t,"createTagDefinitionMap");function Q1t(){return{scalar:[],sequence:[],mapping:[]}}o(Q1t,"createTagDefinitionListMap");function k1t(t){let e=[];for(let r of t){let n=e.length;for(let i=0;id.implicitFirstChars===null),c=new Set;for(let d of n)if(d.implicitFirstChars!==null)for(let f of d.implicitFirstChars)c.add(f);let l=new Map;for(let d of c)l.set(d,n.filter(f=>f.implicitFirstChars===null||f.implicitFirstChars.indexOf(d)!==-1));let u=i.scalar["tag:yaml.org,2002:str"];if(!u)throw new Error("schema does not define the default scalar tag (tag:yaml.org,2002:str)");this.tags=r,this.implicitScalarTags=n,this.implicitScalarByFirstChar=l,this.implicitScalarAnyFirstChar=a,this.defaultScalarTag=u,this.defaultSequenceTag=i.sequence["tag:yaml.org,2002:seq"],this.defaultMappingTag=i.mapping["tag:yaml.org,2002:map"],this.exact=i,this.prefix=s}lookupScalarTag(e){let r=this.exact.scalar[e];if(r)return r;for(let n of this.prefix.scalar)if(e.startsWith(n.tagName))return n}lookupSequenceTag(e){let r=this.exact.sequence[e];if(r)return r;for(let n of this.prefix.sequence)if(e.startsWith(n.tagName))return n}lookupMappingTag(e){let r=this.exact.mapping[e];if(r)return r;for(let n of this.prefix.mapping)if(e.startsWith(n.tagName))return n}resolveImplicitScalarTag(e){let r=this.implicitScalarByFirstChar.get(e.charAt(0))??this.implicitScalarAnyFirstChar;for(let i of r){let s=i.resolve(e,!1,i.tagName);if(s!==_t)return{value:s,tag:i}}let n=this.defaultScalarTag;return{value:n.resolve(e,!1,n.tagName),tag:n}}withTags(...e){let r=[];for(let n of e)r=r.concat(n);return new UQe([...this.tags,...r])}},bJ=new o1([TQt,x1t,_1t]),T_r=new o1([...bJ.tags,kQt,GQt,e1t,f1t]),P1t=new o1([...bJ.tags,QQt,MQt,FQe,MQe]),O1t=new o1([...bJ.tags,OQt,VQt,fJ,hJ,B1t,g1t,b1t,N1t,R1t,T1t]),L1t=O1t.withTags({...fJ,resolve:o((t,e,r)=>{let n=fJ.resolve(t,e,r);return n===_t?FQe.resolve(t,e,r):n},"resolve")},{...hJ,resolve:o((t,e,r)=>{let n=hJ.resolve(t,e,r);return n===_t?MQe.resolve(t,e,r):n},"resolve")}),D_r=i1("tag:yaml.org,2002:map",{create:o(()=>new Map,"create"),addPair:o((t,e,r)=>(t.set(e,r),""),"addPair"),has:o((t,e)=>t.has(e),"has"),keys:o(t=>t.keys(),"keys"),get:o((t,e)=>t.get(e),"get"),identify:o(t=>t instanceof Map||s1(t),"identify"),represent:o(t=>{if(t instanceof Map)return t;let e=new Map,r=t;for(let n of Object.keys(r))e.set(n,r[n]);return e},"represent")});function TQe(t){if(Array.isArray(t)){let e=Array.prototype.slice.call(t);for(let r=0;r({}),"create"),identify:s1,represent:o(t=>{let e=new Map;for(let r of Object.keys(t))e.set(r,t[r]);return e},"represent"),addPair:o((t,e,r)=>{let n=TQe(e);return n===null?"nested arrays are not supported inside keys":(n==="__proto__"?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,"")},"addPair"),has:o((t,e)=>{let r=TQe(e);return r!==null&&Object.prototype.hasOwnProperty.call(t,r)},"has"),keys:o(t=>Object.keys(t),"keys"),get:o((t,e)=>{let r=String(e);return Object.prototype.hasOwnProperty.call(t,r)?t[r]:null},"get")}),F1t={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function lJ(t,e,r,n,i){let s="",a="",c=Math.floor(i/2)-1;return n-e>c&&(s=" ... ",e=n-c+s.length),r-n>c&&(a=" ...",r=n+c-a.length),{str:s+t.slice(e,r).replace(/\t/g,"\u2192")+a,pos:n-e+s.length}}o(lJ,"getLine");function uJ(t,e){return" ".repeat(Math.max(e-t.length,0))+t}o(uJ,"padStart");function M1t(t,e){if(!t.buffer)return null;let r={...F1t,...e},n=/\r?\n|\r|\0/g,i=[0],s=[],a,c=-1;for(;a=n.exec(t.buffer);)s.push(a.index),i.push(a.index+a[0].length),t.position<=a.index&&c<0&&(c=i.length-2);c<0&&(c=i.length-1);let l="",u=Math.min(t.line+r.linesAfter,s.length).toString().length,d=r.maxLength-(r.indent+u+3);for(let h=1;h<=r.linesBefore&&!(c-h<0);h++){let p=lJ(t.buffer,i[c-h],s[c-h],t.position-(i[c]-i[c-h]),d);l=`${" ".repeat(r.indent)}${uJ((t.line-h+1).toString(),u)} | ${p.str} -${l}`}let f=lJ(t.buffer,i[c],s[c],t.position,d);l+=`${" ".repeat(r.indent)}${uJ((t.line+1).toString(),u)} | ${f.str} +If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var IRr=new oE;var r1=class{static{o(this,"GitHubArtifact")}static async upload(e){if(Ke.isGHES)throw new Error("@actions/artifact v2.0.0+ is currently not supported on GHES.");let r=a6.default.basename(e.filename),n=new oE;D(`Uploading ${r} as an artifact`);let i=a6.default.dirname(e.filename),s=await n.uploadArtifact(r,[e.filename],i,{retentionDays:e.retentionDays,skipArchive:!0});if(!s.id)throw new Ga("Cannot upload artifact");let a=s.size??yQe.default.statSync(e.filename).size,c=`${Ke.workflowRunURL()}/artifacts/${s.id}`;return D(`Artifact download URL: ${c}`),{id:s.id,filename:r,digest:s.digest||"",size:a,url:c}}};var EQe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,CQe=/[\x01-\x7F]/g,bQe=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,c6=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,aE=new Map([[" ","Tab"],[` +`,"NewLine"],["!","excl"],['"',"quot"],["#","num"],["$","dollar"],["%","percnt"],["&","amp"],["'","apos"],["(","lpar"],[")","rpar"],["*","ast"],["+","plus"],[",","comma"],[".","period"],["/","sol"],[":","colon"],[";","semi"],["<","lt"],["<\u20D2","nvlt"],["=","equals"],["=\u20E5","bne"],[">","gt"],[">\u20D2","nvgt"],["?","quest"],["@","commat"],["[","lsqb"],["]","rsqb"],["^","Hat"],["_","lowbar"],["`","grave"],["fj","fjlig"],["{","lcub"],["|","vert"],["}","rcub"],["\xA0","nbsp"],["\xA1","iexcl"],["\xA2","cent"],["\xA3","pound"],["\xA4","curren"],["\xA5","yen"],["\xA6","brvbar"],["\xA7","sect"],["\xA8","die"],["\xA9","copy"],["\xAA","ordf"],["\xAB","laquo"],["\xAC","not"],["\xAD","shy"],["\xAE","reg"],["\xAF","macr"],["\xB0","deg"],["\xB1","pm"],["\xB2","sup2"],["\xB3","sup3"],["\xB4","acute"],["\xB5","micro"],["\xB6","para"],["\xB7","middot"],["\xB8","cedil"],["\xB9","sup1"],["\xBA","ordm"],["\xBB","raquo"],["\xBC","frac14"],["\xBD","half"],["\xBE","frac34"],["\xBF","iquest"],["\xC0","Agrave"],["\xC1","Aacute"],["\xC2","Acirc"],["\xC3","Atilde"],["\xC4","Auml"],["\xC5","angst"],["\xC6","AElig"],["\xC7","Ccedil"],["\xC8","Egrave"],["\xC9","Eacute"],["\xCA","Ecirc"],["\xCB","Euml"],["\xCC","Igrave"],["\xCD","Iacute"],["\xCE","Icirc"],["\xCF","Iuml"],["\xD0","ETH"],["\xD1","Ntilde"],["\xD2","Ograve"],["\xD3","Oacute"],["\xD4","Ocirc"],["\xD5","Otilde"],["\xD6","Ouml"],["\xD7","times"],["\xD8","Oslash"],["\xD9","Ugrave"],["\xDA","Uacute"],["\xDB","Ucirc"],["\xDC","Uuml"],["\xDD","Yacute"],["\xDE","THORN"],["\xDF","szlig"],["\xE0","agrave"],["\xE1","aacute"],["\xE2","acirc"],["\xE3","atilde"],["\xE4","auml"],["\xE5","aring"],["\xE6","aelig"],["\xE7","ccedil"],["\xE8","egrave"],["\xE9","eacute"],["\xEA","ecirc"],["\xEB","euml"],["\xEC","igrave"],["\xED","iacute"],["\xEE","icirc"],["\xEF","iuml"],["\xF0","eth"],["\xF1","ntilde"],["\xF2","ograve"],["\xF3","oacute"],["\xF4","ocirc"],["\xF5","otilde"],["\xF6","ouml"],["\xF7","div"],["\xF8","oslash"],["\xF9","ugrave"],["\xFA","uacute"],["\xFB","ucirc"],["\xFC","uuml"],["\xFD","yacute"],["\xFE","thorn"],["\xFF","yuml"],["\u0100","Amacr"],["\u0101","amacr"],["\u0102","Abreve"],["\u0103","abreve"],["\u0104","Aogon"],["\u0105","aogon"],["\u0106","Cacute"],["\u0107","cacute"],["\u0108","Ccirc"],["\u0109","ccirc"],["\u010A","Cdot"],["\u010B","cdot"],["\u010C","Ccaron"],["\u010D","ccaron"],["\u010E","Dcaron"],["\u010F","dcaron"],["\u0110","Dstrok"],["\u0111","dstrok"],["\u0112","Emacr"],["\u0113","emacr"],["\u0116","Edot"],["\u0117","edot"],["\u0118","Eogon"],["\u0119","eogon"],["\u011A","Ecaron"],["\u011B","ecaron"],["\u011C","Gcirc"],["\u011D","gcirc"],["\u011E","Gbreve"],["\u011F","gbreve"],["\u0120","Gdot"],["\u0121","gdot"],["\u0122","Gcedil"],["\u0124","Hcirc"],["\u0125","hcirc"],["\u0126","Hstrok"],["\u0127","hstrok"],["\u0128","Itilde"],["\u0129","itilde"],["\u012A","Imacr"],["\u012B","imacr"],["\u012E","Iogon"],["\u012F","iogon"],["\u0130","Idot"],["\u0131","imath"],["\u0132","IJlig"],["\u0133","ijlig"],["\u0134","Jcirc"],["\u0135","jcirc"],["\u0136","Kcedil"],["\u0137","kcedil"],["\u0138","kgreen"],["\u0139","Lacute"],["\u013A","lacute"],["\u013B","Lcedil"],["\u013C","lcedil"],["\u013D","Lcaron"],["\u013E","lcaron"],["\u013F","Lmidot"],["\u0140","lmidot"],["\u0141","Lstrok"],["\u0142","lstrok"],["\u0143","Nacute"],["\u0144","nacute"],["\u0145","Ncedil"],["\u0146","ncedil"],["\u0147","Ncaron"],["\u0148","ncaron"],["\u0149","napos"],["\u014A","ENG"],["\u014B","eng"],["\u014C","Omacr"],["\u014D","omacr"],["\u0150","Odblac"],["\u0151","odblac"],["\u0152","OElig"],["\u0153","oelig"],["\u0154","Racute"],["\u0155","racute"],["\u0156","Rcedil"],["\u0157","rcedil"],["\u0158","Rcaron"],["\u0159","rcaron"],["\u015A","Sacute"],["\u015B","sacute"],["\u015C","Scirc"],["\u015D","scirc"],["\u015E","Scedil"],["\u015F","scedil"],["\u0160","Scaron"],["\u0161","scaron"],["\u0162","Tcedil"],["\u0163","tcedil"],["\u0164","Tcaron"],["\u0165","tcaron"],["\u0166","Tstrok"],["\u0167","tstrok"],["\u0168","Utilde"],["\u0169","utilde"],["\u016A","Umacr"],["\u016B","umacr"],["\u016C","Ubreve"],["\u016D","ubreve"],["\u016E","Uring"],["\u016F","uring"],["\u0170","Udblac"],["\u0171","udblac"],["\u0172","Uogon"],["\u0173","uogon"],["\u0174","Wcirc"],["\u0175","wcirc"],["\u0176","Ycirc"],["\u0177","ycirc"],["\u0178","Yuml"],["\u0179","Zacute"],["\u017A","zacute"],["\u017B","Zdot"],["\u017C","zdot"],["\u017D","Zcaron"],["\u017E","zcaron"],["\u0192","fnof"],["\u01B5","imped"],["\u01F5","gacute"],["\u0237","jmath"],["\u02C6","circ"],["\u02C7","caron"],["\u02D8","breve"],["\u02D9","dot"],["\u02DA","ring"],["\u02DB","ogon"],["\u02DC","tilde"],["\u02DD","dblac"],["\u0311","DownBreve"],["\u0391","Alpha"],["\u0392","Beta"],["\u0393","Gamma"],["\u0394","Delta"],["\u0395","Epsilon"],["\u0396","Zeta"],["\u0397","Eta"],["\u0398","Theta"],["\u0399","Iota"],["\u039A","Kappa"],["\u039B","Lambda"],["\u039C","Mu"],["\u039D","Nu"],["\u039E","Xi"],["\u039F","Omicron"],["\u03A0","Pi"],["\u03A1","Rho"],["\u03A3","Sigma"],["\u03A4","Tau"],["\u03A5","Upsilon"],["\u03A6","Phi"],["\u03A7","Chi"],["\u03A8","Psi"],["\u03A9","ohm"],["\u03B1","alpha"],["\u03B2","beta"],["\u03B3","gamma"],["\u03B4","delta"],["\u03B5","epsi"],["\u03B6","zeta"],["\u03B7","eta"],["\u03B8","theta"],["\u03B9","iota"],["\u03BA","kappa"],["\u03BB","lambda"],["\u03BC","mu"],["\u03BD","nu"],["\u03BE","xi"],["\u03BF","omicron"],["\u03C0","pi"],["\u03C1","rho"],["\u03C2","sigmaf"],["\u03C3","sigma"],["\u03C4","tau"],["\u03C5","upsi"],["\u03C6","phi"],["\u03C7","chi"],["\u03C8","psi"],["\u03C9","omega"],["\u03D1","thetav"],["\u03D2","Upsi"],["\u03D5","phiv"],["\u03D6","piv"],["\u03DC","Gammad"],["\u03DD","gammad"],["\u03F0","kappav"],["\u03F1","rhov"],["\u03F5","epsiv"],["\u03F6","bepsi"],["\u0401","IOcy"],["\u0402","DJcy"],["\u0403","GJcy"],["\u0404","Jukcy"],["\u0405","DScy"],["\u0406","Iukcy"],["\u0407","YIcy"],["\u0408","Jsercy"],["\u0409","LJcy"],["\u040A","NJcy"],["\u040B","TSHcy"],["\u040C","KJcy"],["\u040E","Ubrcy"],["\u040F","DZcy"],["\u0410","Acy"],["\u0411","Bcy"],["\u0412","Vcy"],["\u0413","Gcy"],["\u0414","Dcy"],["\u0415","IEcy"],["\u0416","ZHcy"],["\u0417","Zcy"],["\u0418","Icy"],["\u0419","Jcy"],["\u041A","Kcy"],["\u041B","Lcy"],["\u041C","Mcy"],["\u041D","Ncy"],["\u041E","Ocy"],["\u041F","Pcy"],["\u0420","Rcy"],["\u0421","Scy"],["\u0422","Tcy"],["\u0423","Ucy"],["\u0424","Fcy"],["\u0425","KHcy"],["\u0426","TScy"],["\u0427","CHcy"],["\u0428","SHcy"],["\u0429","SHCHcy"],["\u042A","HARDcy"],["\u042B","Ycy"],["\u042C","SOFTcy"],["\u042D","Ecy"],["\u042E","YUcy"],["\u042F","YAcy"],["\u0430","acy"],["\u0431","bcy"],["\u0432","vcy"],["\u0433","gcy"],["\u0434","dcy"],["\u0435","iecy"],["\u0436","zhcy"],["\u0437","zcy"],["\u0438","icy"],["\u0439","jcy"],["\u043A","kcy"],["\u043B","lcy"],["\u043C","mcy"],["\u043D","ncy"],["\u043E","ocy"],["\u043F","pcy"],["\u0440","rcy"],["\u0441","scy"],["\u0442","tcy"],["\u0443","ucy"],["\u0444","fcy"],["\u0445","khcy"],["\u0446","tscy"],["\u0447","chcy"],["\u0448","shcy"],["\u0449","shchcy"],["\u044A","hardcy"],["\u044B","ycy"],["\u044C","softcy"],["\u044D","ecy"],["\u044E","yucy"],["\u044F","yacy"],["\u0451","iocy"],["\u0452","djcy"],["\u0453","gjcy"],["\u0454","jukcy"],["\u0455","dscy"],["\u0456","iukcy"],["\u0457","yicy"],["\u0458","jsercy"],["\u0459","ljcy"],["\u045A","njcy"],["\u045B","tshcy"],["\u045C","kjcy"],["\u045E","ubrcy"],["\u045F","dzcy"],["\u2002","ensp"],["\u2003","emsp"],["\u2004","emsp13"],["\u2005","emsp14"],["\u2007","numsp"],["\u2008","puncsp"],["\u2009","thinsp"],["\u200A","hairsp"],["\u200B","ZeroWidthSpace"],["\u200C","zwnj"],["\u200D","zwj"],["\u200E","lrm"],["\u200F","rlm"],["\u2010","dash"],["\u2013","ndash"],["\u2014","mdash"],["\u2015","horbar"],["\u2016","Vert"],["\u2018","lsquo"],["\u2019","rsquo"],["\u201A","sbquo"],["\u201C","ldquo"],["\u201D","rdquo"],["\u201E","bdquo"],["\u2020","dagger"],["\u2021","Dagger"],["\u2022","bull"],["\u2025","nldr"],["\u2026","mldr"],["\u2030","permil"],["\u2031","pertenk"],["\u2032","prime"],["\u2033","Prime"],["\u2034","tprime"],["\u2035","bprime"],["\u2039","lsaquo"],["\u203A","rsaquo"],["\u203E","oline"],["\u2041","caret"],["\u2043","hybull"],["\u2044","frasl"],["\u204F","bsemi"],["\u2057","qprime"],["\u205F","MediumSpace"],["\u205F\u200A","ThickSpace"],["\u2060","NoBreak"],["\u2061","af"],["\u2062","it"],["\u2063","ic"],["\u20AC","euro"],["\u20DB","tdot"],["\u20DC","DotDot"],["\u2102","Copf"],["\u2105","incare"],["\u210A","gscr"],["\u210B","Hscr"],["\u210C","Hfr"],["\u210D","Hopf"],["\u210E","planckh"],["\u210F","hbar"],["\u2110","Iscr"],["\u2111","Im"],["\u2112","Lscr"],["\u2113","ell"],["\u2115","Nopf"],["\u2116","numero"],["\u2117","copysr"],["\u2118","wp"],["\u2119","Popf"],["\u211A","Qopf"],["\u211B","Rscr"],["\u211C","Re"],["\u211D","Ropf"],["\u211E","rx"],["\u2122","trade"],["\u2124","Zopf"],["\u2127","mho"],["\u2128","Zfr"],["\u2129","iiota"],["\u212C","Bscr"],["\u212D","Cfr"],["\u212F","escr"],["\u2130","Escr"],["\u2131","Fscr"],["\u2133","Mscr"],["\u2134","oscr"],["\u2135","aleph"],["\u2136","beth"],["\u2137","gimel"],["\u2138","daleth"],["\u2145","DD"],["\u2146","dd"],["\u2147","ee"],["\u2148","ii"],["\u2153","frac13"],["\u2154","frac23"],["\u2155","frac15"],["\u2156","frac25"],["\u2157","frac35"],["\u2158","frac45"],["\u2159","frac16"],["\u215A","frac56"],["\u215B","frac18"],["\u215C","frac38"],["\u215D","frac58"],["\u215E","frac78"],["\u2190","larr"],["\u2191","uarr"],["\u2192","rarr"],["\u2193","darr"],["\u2194","harr"],["\u2195","varr"],["\u2196","nwarr"],["\u2197","nearr"],["\u2198","searr"],["\u2199","swarr"],["\u219A","nlarr"],["\u219B","nrarr"],["\u219D","rarrw"],["\u219D\u0338","nrarrw"],["\u219E","Larr"],["\u219F","Uarr"],["\u21A0","Rarr"],["\u21A1","Darr"],["\u21A2","larrtl"],["\u21A3","rarrtl"],["\u21A4","mapstoleft"],["\u21A5","mapstoup"],["\u21A6","map"],["\u21A7","mapstodown"],["\u21A9","larrhk"],["\u21AA","rarrhk"],["\u21AB","larrlp"],["\u21AC","rarrlp"],["\u21AD","harrw"],["\u21AE","nharr"],["\u21B0","lsh"],["\u21B1","rsh"],["\u21B2","ldsh"],["\u21B3","rdsh"],["\u21B5","crarr"],["\u21B6","cularr"],["\u21B7","curarr"],["\u21BA","olarr"],["\u21BB","orarr"],["\u21BC","lharu"],["\u21BD","lhard"],["\u21BE","uharr"],["\u21BF","uharl"],["\u21C0","rharu"],["\u21C1","rhard"],["\u21C2","dharr"],["\u21C3","dharl"],["\u21C4","rlarr"],["\u21C5","udarr"],["\u21C6","lrarr"],["\u21C7","llarr"],["\u21C8","uuarr"],["\u21C9","rrarr"],["\u21CA","ddarr"],["\u21CB","lrhar"],["\u21CC","rlhar"],["\u21CD","nlArr"],["\u21CE","nhArr"],["\u21CF","nrArr"],["\u21D0","lArr"],["\u21D1","uArr"],["\u21D2","rArr"],["\u21D3","dArr"],["\u21D4","iff"],["\u21D5","vArr"],["\u21D6","nwArr"],["\u21D7","neArr"],["\u21D8","seArr"],["\u21D9","swArr"],["\u21DA","lAarr"],["\u21DB","rAarr"],["\u21DD","zigrarr"],["\u21E4","larrb"],["\u21E5","rarrb"],["\u21F5","duarr"],["\u21FD","loarr"],["\u21FE","roarr"],["\u21FF","hoarr"],["\u2200","forall"],["\u2201","comp"],["\u2202","part"],["\u2202\u0338","npart"],["\u2203","exist"],["\u2204","nexist"],["\u2205","empty"],["\u2207","Del"],["\u2208","in"],["\u2209","notin"],["\u220B","ni"],["\u220C","notni"],["\u220F","prod"],["\u2210","coprod"],["\u2211","sum"],["\u2212","minus"],["\u2213","mp"],["\u2214","plusdo"],["\u2216","setmn"],["\u2217","lowast"],["\u2218","compfn"],["\u221A","Sqrt"],["\u221D","prop"],["\u221E","infin"],["\u221F","angrt"],["\u2220","ang"],["\u2220\u20D2","nang"],["\u2221","angmsd"],["\u2222","angsph"],["\u2223","mid"],["\u2224","nmid"],["\u2225","par"],["\u2226","npar"],["\u2227","and"],["\u2228","or"],["\u2229","cap"],["\u2229\uFE00","caps"],["\u222A","cup"],["\u222A\uFE00","cups"],["\u222B","int"],["\u222C","Int"],["\u222D","tint"],["\u222E","oint"],["\u222F","Conint"],["\u2230","Cconint"],["\u2231","cwint"],["\u2232","cwconint"],["\u2233","awconint"],["\u2234","there4"],["\u2235","becaus"],["\u2236","ratio"],["\u2237","Colon"],["\u2238","minusd"],["\u223A","mDDot"],["\u223B","homtht"],["\u223C","sim"],["\u223C\u20D2","nvsim"],["\u223D","bsim"],["\u223D\u0331","race"],["\u223E","ac"],["\u223E\u0333","acE"],["\u223F","acd"],["\u2240","wr"],["\u2241","nsim"],["\u2242","esim"],["\u2242\u0338","nesim"],["\u2243","sime"],["\u2244","nsime"],["\u2245","cong"],["\u2246","simne"],["\u2247","ncong"],["\u2248","ap"],["\u2249","nap"],["\u224A","ape"],["\u224B","apid"],["\u224B\u0338","napid"],["\u224C","bcong"],["\u224D","CupCap"],["\u224D\u20D2","nvap"],["\u224E","bump"],["\u224E\u0338","nbump"],["\u224F","bumpe"],["\u224F\u0338","nbumpe"],["\u2250","doteq"],["\u2250\u0338","nedot"],["\u2251","eDot"],["\u2252","efDot"],["\u2253","erDot"],["\u2254","colone"],["\u2255","ecolon"],["\u2256","ecir"],["\u2257","cire"],["\u2259","wedgeq"],["\u225A","veeeq"],["\u225C","trie"],["\u225F","equest"],["\u2260","ne"],["\u2261","equiv"],["\u2261\u20E5","bnequiv"],["\u2262","nequiv"],["\u2264","le"],["\u2264\u20D2","nvle"],["\u2265","ge"],["\u2265\u20D2","nvge"],["\u2266","lE"],["\u2266\u0338","nlE"],["\u2267","gE"],["\u2267\u0338","ngE"],["\u2268","lnE"],["\u2268\uFE00","lvnE"],["\u2269","gnE"],["\u2269\uFE00","gvnE"],["\u226A","ll"],["\u226A\u0338","nLtv"],["\u226A\u20D2","nLt"],["\u226B","gg"],["\u226B\u0338","nGtv"],["\u226B\u20D2","nGt"],["\u226C","twixt"],["\u226D","NotCupCap"],["\u226E","nlt"],["\u226F","ngt"],["\u2270","nle"],["\u2271","nge"],["\u2272","lsim"],["\u2273","gsim"],["\u2274","nlsim"],["\u2275","ngsim"],["\u2276","lg"],["\u2277","gl"],["\u2278","ntlg"],["\u2279","ntgl"],["\u227A","pr"],["\u227B","sc"],["\u227C","prcue"],["\u227D","sccue"],["\u227E","prsim"],["\u227F","scsim"],["\u227F\u0338","NotSucceedsTilde"],["\u2280","npr"],["\u2281","nsc"],["\u2282","sub"],["\u2282\u20D2","vnsub"],["\u2283","sup"],["\u2283\u20D2","vnsup"],["\u2284","nsub"],["\u2285","nsup"],["\u2286","sube"],["\u2287","supe"],["\u2288","nsube"],["\u2289","nsupe"],["\u228A","subne"],["\u228A\uFE00","vsubne"],["\u228B","supne"],["\u228B\uFE00","vsupne"],["\u228D","cupdot"],["\u228E","uplus"],["\u228F","sqsub"],["\u228F\u0338","NotSquareSubset"],["\u2290","sqsup"],["\u2290\u0338","NotSquareSuperset"],["\u2291","sqsube"],["\u2292","sqsupe"],["\u2293","sqcap"],["\u2293\uFE00","sqcaps"],["\u2294","sqcup"],["\u2294\uFE00","sqcups"],["\u2295","oplus"],["\u2296","ominus"],["\u2297","otimes"],["\u2298","osol"],["\u2299","odot"],["\u229A","ocir"],["\u229B","oast"],["\u229D","odash"],["\u229E","plusb"],["\u229F","minusb"],["\u22A0","timesb"],["\u22A1","sdotb"],["\u22A2","vdash"],["\u22A3","dashv"],["\u22A4","top"],["\u22A5","bot"],["\u22A7","models"],["\u22A8","vDash"],["\u22A9","Vdash"],["\u22AA","Vvdash"],["\u22AB","VDash"],["\u22AC","nvdash"],["\u22AD","nvDash"],["\u22AE","nVdash"],["\u22AF","nVDash"],["\u22B0","prurel"],["\u22B2","vltri"],["\u22B3","vrtri"],["\u22B4","ltrie"],["\u22B4\u20D2","nvltrie"],["\u22B5","rtrie"],["\u22B5\u20D2","nvrtrie"],["\u22B6","origof"],["\u22B7","imof"],["\u22B8","mumap"],["\u22B9","hercon"],["\u22BA","intcal"],["\u22BB","veebar"],["\u22BD","barvee"],["\u22BE","angrtvb"],["\u22BF","lrtri"],["\u22C0","Wedge"],["\u22C1","Vee"],["\u22C2","xcap"],["\u22C3","xcup"],["\u22C4","diam"],["\u22C5","sdot"],["\u22C6","Star"],["\u22C7","divonx"],["\u22C8","bowtie"],["\u22C9","ltimes"],["\u22CA","rtimes"],["\u22CB","lthree"],["\u22CC","rthree"],["\u22CD","bsime"],["\u22CE","cuvee"],["\u22CF","cuwed"],["\u22D0","Sub"],["\u22D1","Sup"],["\u22D2","Cap"],["\u22D3","Cup"],["\u22D4","fork"],["\u22D5","epar"],["\u22D6","ltdot"],["\u22D7","gtdot"],["\u22D8","Ll"],["\u22D8\u0338","nLl"],["\u22D9","Gg"],["\u22D9\u0338","nGg"],["\u22DA","leg"],["\u22DA\uFE00","lesg"],["\u22DB","gel"],["\u22DB\uFE00","gesl"],["\u22DE","cuepr"],["\u22DF","cuesc"],["\u22E0","nprcue"],["\u22E1","nsccue"],["\u22E2","nsqsube"],["\u22E3","nsqsupe"],["\u22E6","lnsim"],["\u22E7","gnsim"],["\u22E8","prnsim"],["\u22E9","scnsim"],["\u22EA","nltri"],["\u22EB","nrtri"],["\u22EC","nltrie"],["\u22ED","nrtrie"],["\u22EE","vellip"],["\u22EF","ctdot"],["\u22F0","utdot"],["\u22F1","dtdot"],["\u22F2","disin"],["\u22F3","isinsv"],["\u22F4","isins"],["\u22F5","isindot"],["\u22F5\u0338","notindot"],["\u22F6","notinvc"],["\u22F7","notinvb"],["\u22F9","isinE"],["\u22F9\u0338","notinE"],["\u22FA","nisd"],["\u22FB","xnis"],["\u22FC","nis"],["\u22FD","notnivc"],["\u22FE","notnivb"],["\u2305","barwed"],["\u2306","Barwed"],["\u2308","lceil"],["\u2309","rceil"],["\u230A","lfloor"],["\u230B","rfloor"],["\u230C","drcrop"],["\u230D","dlcrop"],["\u230E","urcrop"],["\u230F","ulcrop"],["\u2310","bnot"],["\u2312","profline"],["\u2313","profsurf"],["\u2315","telrec"],["\u2316","target"],["\u231C","ulcorn"],["\u231D","urcorn"],["\u231E","dlcorn"],["\u231F","drcorn"],["\u2322","frown"],["\u2323","smile"],["\u232D","cylcty"],["\u232E","profalar"],["\u2336","topbot"],["\u233D","ovbar"],["\u233F","solbar"],["\u237C","angzarr"],["\u23B0","lmoust"],["\u23B1","rmoust"],["\u23B4","tbrk"],["\u23B5","bbrk"],["\u23B6","bbrktbrk"],["\u23DC","OverParenthesis"],["\u23DD","UnderParenthesis"],["\u23DE","OverBrace"],["\u23DF","UnderBrace"],["\u23E2","trpezium"],["\u23E7","elinters"],["\u2423","blank"],["\u24C8","oS"],["\u2500","boxh"],["\u2502","boxv"],["\u250C","boxdr"],["\u2510","boxdl"],["\u2514","boxur"],["\u2518","boxul"],["\u251C","boxvr"],["\u2524","boxvl"],["\u252C","boxhd"],["\u2534","boxhu"],["\u253C","boxvh"],["\u2550","boxH"],["\u2551","boxV"],["\u2552","boxdR"],["\u2553","boxDr"],["\u2554","boxDR"],["\u2555","boxdL"],["\u2556","boxDl"],["\u2557","boxDL"],["\u2558","boxuR"],["\u2559","boxUr"],["\u255A","boxUR"],["\u255B","boxuL"],["\u255C","boxUl"],["\u255D","boxUL"],["\u255E","boxvR"],["\u255F","boxVr"],["\u2560","boxVR"],["\u2561","boxvL"],["\u2562","boxVl"],["\u2563","boxVL"],["\u2564","boxHd"],["\u2565","boxhD"],["\u2566","boxHD"],["\u2567","boxHu"],["\u2568","boxhU"],["\u2569","boxHU"],["\u256A","boxvH"],["\u256B","boxVh"],["\u256C","boxVH"],["\u2580","uhblk"],["\u2584","lhblk"],["\u2588","block"],["\u2591","blk14"],["\u2592","blk12"],["\u2593","blk34"],["\u25A1","squ"],["\u25AA","squf"],["\u25AB","EmptyVerySmallSquare"],["\u25AD","rect"],["\u25AE","marker"],["\u25B1","fltns"],["\u25B3","xutri"],["\u25B4","utrif"],["\u25B5","utri"],["\u25B8","rtrif"],["\u25B9","rtri"],["\u25BD","xdtri"],["\u25BE","dtrif"],["\u25BF","dtri"],["\u25C2","ltrif"],["\u25C3","ltri"],["\u25CA","loz"],["\u25CB","cir"],["\u25EC","tridot"],["\u25EF","xcirc"],["\u25F8","ultri"],["\u25F9","urtri"],["\u25FA","lltri"],["\u25FB","EmptySmallSquare"],["\u25FC","FilledSmallSquare"],["\u2605","starf"],["\u2606","star"],["\u260E","phone"],["\u2640","female"],["\u2642","male"],["\u2660","spades"],["\u2663","clubs"],["\u2665","hearts"],["\u2666","diams"],["\u266A","sung"],["\u266D","flat"],["\u266E","natur"],["\u266F","sharp"],["\u2713","check"],["\u2717","cross"],["\u2720","malt"],["\u2736","sext"],["\u2758","VerticalSeparator"],["\u2772","lbbrk"],["\u2773","rbbrk"],["\u27C8","bsolhsub"],["\u27C9","suphsol"],["\u27E6","lobrk"],["\u27E7","robrk"],["\u27E8","lang"],["\u27E9","rang"],["\u27EA","Lang"],["\u27EB","Rang"],["\u27EC","loang"],["\u27ED","roang"],["\u27F5","xlarr"],["\u27F6","xrarr"],["\u27F7","xharr"],["\u27F8","xlArr"],["\u27F9","xrArr"],["\u27FA","xhArr"],["\u27FC","xmap"],["\u27FF","dzigrarr"],["\u2902","nvlArr"],["\u2903","nvrArr"],["\u2904","nvHarr"],["\u2905","Map"],["\u290C","lbarr"],["\u290D","rbarr"],["\u290E","lBarr"],["\u290F","rBarr"],["\u2910","RBarr"],["\u2911","DDotrahd"],["\u2912","UpArrowBar"],["\u2913","DownArrowBar"],["\u2916","Rarrtl"],["\u2919","latail"],["\u291A","ratail"],["\u291B","lAtail"],["\u291C","rAtail"],["\u291D","larrfs"],["\u291E","rarrfs"],["\u291F","larrbfs"],["\u2920","rarrbfs"],["\u2923","nwarhk"],["\u2924","nearhk"],["\u2925","searhk"],["\u2926","swarhk"],["\u2927","nwnear"],["\u2928","toea"],["\u2929","tosa"],["\u292A","swnwar"],["\u2933","rarrc"],["\u2933\u0338","nrarrc"],["\u2935","cudarrr"],["\u2936","ldca"],["\u2937","rdca"],["\u2938","cudarrl"],["\u2939","larrpl"],["\u293C","curarrm"],["\u293D","cularrp"],["\u2945","rarrpl"],["\u2948","harrcir"],["\u2949","Uarrocir"],["\u294A","lurdshar"],["\u294B","ldrushar"],["\u294E","LeftRightVector"],["\u294F","RightUpDownVector"],["\u2950","DownLeftRightVector"],["\u2951","LeftUpDownVector"],["\u2952","LeftVectorBar"],["\u2953","RightVectorBar"],["\u2954","RightUpVectorBar"],["\u2955","RightDownVectorBar"],["\u2956","DownLeftVectorBar"],["\u2957","DownRightVectorBar"],["\u2958","LeftUpVectorBar"],["\u2959","LeftDownVectorBar"],["\u295A","LeftTeeVector"],["\u295B","RightTeeVector"],["\u295C","RightUpTeeVector"],["\u295D","RightDownTeeVector"],["\u295E","DownLeftTeeVector"],["\u295F","DownRightTeeVector"],["\u2960","LeftUpTeeVector"],["\u2961","LeftDownTeeVector"],["\u2962","lHar"],["\u2963","uHar"],["\u2964","rHar"],["\u2965","dHar"],["\u2966","luruhar"],["\u2967","ldrdhar"],["\u2968","ruluhar"],["\u2969","rdldhar"],["\u296A","lharul"],["\u296B","llhard"],["\u296C","rharul"],["\u296D","lrhard"],["\u296E","udhar"],["\u296F","duhar"],["\u2970","RoundImplies"],["\u2971","erarr"],["\u2972","simrarr"],["\u2973","larrsim"],["\u2974","rarrsim"],["\u2975","rarrap"],["\u2976","ltlarr"],["\u2978","gtrarr"],["\u2979","subrarr"],["\u297B","suplarr"],["\u297C","lfisht"],["\u297D","rfisht"],["\u297E","ufisht"],["\u297F","dfisht"],["\u2985","lopar"],["\u2986","ropar"],["\u298B","lbrke"],["\u298C","rbrke"],["\u298D","lbrkslu"],["\u298E","rbrksld"],["\u298F","lbrksld"],["\u2990","rbrkslu"],["\u2991","langd"],["\u2992","rangd"],["\u2993","lparlt"],["\u2994","rpargt"],["\u2995","gtlPar"],["\u2996","ltrPar"],["\u299A","vzigzag"],["\u299C","vangrt"],["\u299D","angrtvbd"],["\u29A4","ange"],["\u29A5","range"],["\u29A6","dwangle"],["\u29A7","uwangle"],["\u29A8","angmsdaa"],["\u29A9","angmsdab"],["\u29AA","angmsdac"],["\u29AB","angmsdad"],["\u29AC","angmsdae"],["\u29AD","angmsdaf"],["\u29AE","angmsdag"],["\u29AF","angmsdah"],["\u29B0","bemptyv"],["\u29B1","demptyv"],["\u29B2","cemptyv"],["\u29B3","raemptyv"],["\u29B4","laemptyv"],["\u29B5","ohbar"],["\u29B6","omid"],["\u29B7","opar"],["\u29B9","operp"],["\u29BB","olcross"],["\u29BC","odsold"],["\u29BE","olcir"],["\u29BF","ofcir"],["\u29C0","olt"],["\u29C1","ogt"],["\u29C2","cirscir"],["\u29C3","cirE"],["\u29C4","solb"],["\u29C5","bsolb"],["\u29C9","boxbox"],["\u29CD","trisb"],["\u29CE","rtriltri"],["\u29CF","LeftTriangleBar"],["\u29CF\u0338","NotLeftTriangleBar"],["\u29D0","RightTriangleBar"],["\u29D0\u0338","NotRightTriangleBar"],["\u29DC","iinfin"],["\u29DD","infintie"],["\u29DE","nvinfin"],["\u29E3","eparsl"],["\u29E4","smeparsl"],["\u29E5","eqvparsl"],["\u29EB","lozf"],["\u29F4","RuleDelayed"],["\u29F6","dsol"],["\u2A00","xodot"],["\u2A01","xoplus"],["\u2A02","xotime"],["\u2A04","xuplus"],["\u2A06","xsqcup"],["\u2A0C","qint"],["\u2A0D","fpartint"],["\u2A10","cirfnint"],["\u2A11","awint"],["\u2A12","rppolint"],["\u2A13","scpolint"],["\u2A14","npolint"],["\u2A15","pointint"],["\u2A16","quatint"],["\u2A17","intlarhk"],["\u2A22","pluscir"],["\u2A23","plusacir"],["\u2A24","simplus"],["\u2A25","plusdu"],["\u2A26","plussim"],["\u2A27","plustwo"],["\u2A29","mcomma"],["\u2A2A","minusdu"],["\u2A2D","loplus"],["\u2A2E","roplus"],["\u2A2F","Cross"],["\u2A30","timesd"],["\u2A31","timesbar"],["\u2A33","smashp"],["\u2A34","lotimes"],["\u2A35","rotimes"],["\u2A36","otimesas"],["\u2A37","Otimes"],["\u2A38","odiv"],["\u2A39","triplus"],["\u2A3A","triminus"],["\u2A3B","tritime"],["\u2A3C","iprod"],["\u2A3F","amalg"],["\u2A40","capdot"],["\u2A42","ncup"],["\u2A43","ncap"],["\u2A44","capand"],["\u2A45","cupor"],["\u2A46","cupcap"],["\u2A47","capcup"],["\u2A48","cupbrcap"],["\u2A49","capbrcup"],["\u2A4A","cupcup"],["\u2A4B","capcap"],["\u2A4C","ccups"],["\u2A4D","ccaps"],["\u2A50","ccupssm"],["\u2A53","And"],["\u2A54","Or"],["\u2A55","andand"],["\u2A56","oror"],["\u2A57","orslope"],["\u2A58","andslope"],["\u2A5A","andv"],["\u2A5B","orv"],["\u2A5C","andd"],["\u2A5D","ord"],["\u2A5F","wedbar"],["\u2A66","sdote"],["\u2A6A","simdot"],["\u2A6D","congdot"],["\u2A6D\u0338","ncongdot"],["\u2A6E","easter"],["\u2A6F","apacir"],["\u2A70","apE"],["\u2A70\u0338","napE"],["\u2A71","eplus"],["\u2A72","pluse"],["\u2A73","Esim"],["\u2A74","Colone"],["\u2A75","Equal"],["\u2A77","eDDot"],["\u2A78","equivDD"],["\u2A79","ltcir"],["\u2A7A","gtcir"],["\u2A7B","ltquest"],["\u2A7C","gtquest"],["\u2A7D","les"],["\u2A7D\u0338","nles"],["\u2A7E","ges"],["\u2A7E\u0338","nges"],["\u2A7F","lesdot"],["\u2A80","gesdot"],["\u2A81","lesdoto"],["\u2A82","gesdoto"],["\u2A83","lesdotor"],["\u2A84","gesdotol"],["\u2A85","lap"],["\u2A86","gap"],["\u2A87","lne"],["\u2A88","gne"],["\u2A89","lnap"],["\u2A8A","gnap"],["\u2A8B","lEg"],["\u2A8C","gEl"],["\u2A8D","lsime"],["\u2A8E","gsime"],["\u2A8F","lsimg"],["\u2A90","gsiml"],["\u2A91","lgE"],["\u2A92","glE"],["\u2A93","lesges"],["\u2A94","gesles"],["\u2A95","els"],["\u2A96","egs"],["\u2A97","elsdot"],["\u2A98","egsdot"],["\u2A99","el"],["\u2A9A","eg"],["\u2A9D","siml"],["\u2A9E","simg"],["\u2A9F","simlE"],["\u2AA0","simgE"],["\u2AA1","LessLess"],["\u2AA1\u0338","NotNestedLessLess"],["\u2AA2","GreaterGreater"],["\u2AA2\u0338","NotNestedGreaterGreater"],["\u2AA4","glj"],["\u2AA5","gla"],["\u2AA6","ltcc"],["\u2AA7","gtcc"],["\u2AA8","lescc"],["\u2AA9","gescc"],["\u2AAA","smt"],["\u2AAB","lat"],["\u2AAC","smte"],["\u2AAC\uFE00","smtes"],["\u2AAD","late"],["\u2AAD\uFE00","lates"],["\u2AAE","bumpE"],["\u2AAF","pre"],["\u2AAF\u0338","npre"],["\u2AB0","sce"],["\u2AB0\u0338","nsce"],["\u2AB3","prE"],["\u2AB4","scE"],["\u2AB5","prnE"],["\u2AB6","scnE"],["\u2AB7","prap"],["\u2AB8","scap"],["\u2AB9","prnap"],["\u2ABA","scnap"],["\u2ABB","Pr"],["\u2ABC","Sc"],["\u2ABD","subdot"],["\u2ABE","supdot"],["\u2ABF","subplus"],["\u2AC0","supplus"],["\u2AC1","submult"],["\u2AC2","supmult"],["\u2AC3","subedot"],["\u2AC4","supedot"],["\u2AC5","subE"],["\u2AC5\u0338","nsubE"],["\u2AC6","supE"],["\u2AC6\u0338","nsupE"],["\u2AC7","subsim"],["\u2AC8","supsim"],["\u2ACB","subnE"],["\u2ACB\uFE00","vsubnE"],["\u2ACC","supnE"],["\u2ACC\uFE00","vsupnE"],["\u2ACF","csub"],["\u2AD0","csup"],["\u2AD1","csube"],["\u2AD2","csupe"],["\u2AD3","subsup"],["\u2AD4","supsub"],["\u2AD5","subsub"],["\u2AD6","supsup"],["\u2AD7","suphsub"],["\u2AD8","supdsub"],["\u2AD9","forkv"],["\u2ADA","topfork"],["\u2ADB","mlcp"],["\u2AE4","Dashv"],["\u2AE6","Vdashl"],["\u2AE7","Barv"],["\u2AE8","vBar"],["\u2AE9","vBarv"],["\u2AEB","Vbar"],["\u2AEC","Not"],["\u2AED","bNot"],["\u2AEE","rnmid"],["\u2AEF","cirmid"],["\u2AF0","midcir"],["\u2AF1","topcir"],["\u2AF2","nhpar"],["\u2AF3","parsim"],["\u2AFD","parsl"],["\u2AFD\u20E5","nparsl"],["\u{1D49C}","Ascr"],["\u{1D49E}","Cscr"],["\u{1D49F}","Dscr"],["\u{1D4A2}","Gscr"],["\u{1D4A5}","Jscr"],["\u{1D4A6}","Kscr"],["\u{1D4A9}","Nscr"],["\u{1D4AA}","Oscr"],["\u{1D4AB}","Pscr"],["\u{1D4AC}","Qscr"],["\u{1D4AE}","Sscr"],["\u{1D4AF}","Tscr"],["\u{1D4B0}","Uscr"],["\u{1D4B1}","Vscr"],["\u{1D4B2}","Wscr"],["\u{1D4B3}","Xscr"],["\u{1D4B4}","Yscr"],["\u{1D4B5}","Zscr"],["\u{1D4B6}","ascr"],["\u{1D4B7}","bscr"],["\u{1D4B8}","cscr"],["\u{1D4B9}","dscr"],["\u{1D4BB}","fscr"],["\u{1D4BD}","hscr"],["\u{1D4BE}","iscr"],["\u{1D4BF}","jscr"],["\u{1D4C0}","kscr"],["\u{1D4C1}","lscr"],["\u{1D4C2}","mscr"],["\u{1D4C3}","nscr"],["\u{1D4C5}","pscr"],["\u{1D4C6}","qscr"],["\u{1D4C7}","rscr"],["\u{1D4C8}","sscr"],["\u{1D4C9}","tscr"],["\u{1D4CA}","uscr"],["\u{1D4CB}","vscr"],["\u{1D4CC}","wscr"],["\u{1D4CD}","xscr"],["\u{1D4CE}","yscr"],["\u{1D4CF}","zscr"],["\u{1D504}","Afr"],["\u{1D505}","Bfr"],["\u{1D507}","Dfr"],["\u{1D508}","Efr"],["\u{1D509}","Ffr"],["\u{1D50A}","Gfr"],["\u{1D50D}","Jfr"],["\u{1D50E}","Kfr"],["\u{1D50F}","Lfr"],["\u{1D510}","Mfr"],["\u{1D511}","Nfr"],["\u{1D512}","Ofr"],["\u{1D513}","Pfr"],["\u{1D514}","Qfr"],["\u{1D516}","Sfr"],["\u{1D517}","Tfr"],["\u{1D518}","Ufr"],["\u{1D519}","Vfr"],["\u{1D51A}","Wfr"],["\u{1D51B}","Xfr"],["\u{1D51C}","Yfr"],["\u{1D51E}","afr"],["\u{1D51F}","bfr"],["\u{1D520}","cfr"],["\u{1D521}","dfr"],["\u{1D522}","efr"],["\u{1D523}","ffr"],["\u{1D524}","gfr"],["\u{1D525}","hfr"],["\u{1D526}","ifr"],["\u{1D527}","jfr"],["\u{1D528}","kfr"],["\u{1D529}","lfr"],["\u{1D52A}","mfr"],["\u{1D52B}","nfr"],["\u{1D52C}","ofr"],["\u{1D52D}","pfr"],["\u{1D52E}","qfr"],["\u{1D52F}","rfr"],["\u{1D530}","sfr"],["\u{1D531}","tfr"],["\u{1D532}","ufr"],["\u{1D533}","vfr"],["\u{1D534}","wfr"],["\u{1D535}","xfr"],["\u{1D536}","yfr"],["\u{1D537}","zfr"],["\u{1D538}","Aopf"],["\u{1D539}","Bopf"],["\u{1D53B}","Dopf"],["\u{1D53C}","Eopf"],["\u{1D53D}","Fopf"],["\u{1D53E}","Gopf"],["\u{1D540}","Iopf"],["\u{1D541}","Jopf"],["\u{1D542}","Kopf"],["\u{1D543}","Lopf"],["\u{1D544}","Mopf"],["\u{1D546}","Oopf"],["\u{1D54A}","Sopf"],["\u{1D54B}","Topf"],["\u{1D54C}","Uopf"],["\u{1D54D}","Vopf"],["\u{1D54E}","Wopf"],["\u{1D54F}","Xopf"],["\u{1D550}","Yopf"],["\u{1D552}","aopf"],["\u{1D553}","bopf"],["\u{1D554}","copf"],["\u{1D555}","dopf"],["\u{1D556}","eopf"],["\u{1D557}","fopf"],["\u{1D558}","gopf"],["\u{1D559}","hopf"],["\u{1D55A}","iopf"],["\u{1D55B}","jopf"],["\u{1D55C}","kopf"],["\u{1D55D}","lopf"],["\u{1D55E}","mopf"],["\u{1D55F}","nopf"],["\u{1D560}","oopf"],["\u{1D561}","popf"],["\u{1D562}","qopf"],["\u{1D563}","ropf"],["\u{1D564}","sopf"],["\u{1D565}","topf"],["\u{1D566}","uopf"],["\u{1D567}","vopf"],["\u{1D568}","wopf"],["\u{1D569}","xopf"],["\u{1D56A}","yopf"],["\u{1D56B}","zopf"],["\uFB00","fflig"],["\uFB01","filig"],["\uFB02","fllig"],["\uFB03","ffilig"],["\uFB04","ffllig"]]),wQe=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,IQe=/&(CounterClockwiseContourIntegral|ClockwiseContourIntegral|DoubleLongLeftRightArrow|NotNestedGreaterGreater|DiacriticalDoubleAcute|NotSquareSupersetEqual|CloseCurlyDoubleQuote|DoubleContourIntegral|FilledVerySmallSquare|NegativeVeryThinSpace|NotPrecedesSlantEqual|NotRightTriangleEqual|NotSucceedsSlantEqual|CapitalDifferentialD|DoubleLeftRightArrow|DoubleLongRightArrow|EmptyVerySmallSquare|NestedGreaterGreater|NotDoubleVerticalBar|NotGreaterSlantEqual|NotLeftTriangleEqual|NotSquareSubsetEqual|OpenCurlyDoubleQuote|ReverseUpEquilibrium|DoubleLongLeftArrow|DownLeftRightVector|LeftArrowRightArrow|NegativeMediumSpace|NotGreaterFullEqual|NotRightTriangleBar|RightArrowLeftArrow|SquareSupersetEqual|leftrightsquigarrow|DownRightTeeVector|DownRightVectorBar|LongLeftRightArrow|Longleftrightarrow|NegativeThickSpace|NotLeftTriangleBar|PrecedesSlantEqual|ReverseEquilibrium|RightDoubleBracket|RightDownTeeVector|RightDownVectorBar|RightTriangleEqual|SquareIntersection|SucceedsSlantEqual|blacktriangleright|longleftrightarrow|DoubleUpDownArrow|DoubleVerticalBar|DownLeftTeeVector|DownLeftVectorBar|FilledSmallSquare|GreaterSlantEqual|LeftDoubleBracket|LeftDownTeeVector|LeftDownVectorBar|LeftTriangleEqual|NegativeThinSpace|NotGreaterGreater|NotLessSlantEqual|NotNestedLessLess|NotReverseElement|NotSquareSuperset|NotTildeFullEqual|RightAngleBracket|RightUpDownVector|SquareSubsetEqual|VerticalSeparator|blacktriangledown|blacktriangleleft|leftrightharpoons|rightleftharpoons|twoheadrightarrow|DiacriticalAcute|DiacriticalGrave|DiacriticalTilde|DoubleRightArrow|DownArrowUpArrow|EmptySmallSquare|GreaterEqualLess|GreaterFullEqual|LeftAngleBracket|LeftUpDownVector|LessEqualGreater|NonBreakingSpace|NotPrecedesEqual|NotRightTriangle|NotSucceedsEqual|NotSucceedsTilde|NotSupersetEqual|RightTriangleBar|RightUpTeeVector|RightUpVectorBar|UnderParenthesis|UpArrowDownArrow|circlearrowright|downharpoonright|ntrianglerighteq|rightharpoondown|rightrightarrows|twoheadleftarrow|vartriangleright|CloseCurlyQuote|ContourIntegral|DoubleDownArrow|DoubleLeftArrow|DownRightVector|LeftRightVector|LeftTriangleBar|LeftUpTeeVector|LeftUpVectorBar|LowerRightArrow|NotGreaterEqual|NotGreaterTilde|NotHumpDownHump|NotLeftTriangle|NotSquareSubset|OverParenthesis|RightDownVector|ShortRightArrow|UpperRightArrow|bigtriangledown|circlearrowleft|curvearrowright|downharpoonleft|leftharpoondown|leftrightarrows|nLeftrightarrow|nleftrightarrow|ntrianglelefteq|rightleftarrows|rightsquigarrow|rightthreetimes|straightepsilon|trianglerighteq|vartriangleleft|DiacriticalDot|DoubleRightTee|DownLeftVector|GreaterGreater|HorizontalLine|InvisibleComma|InvisibleTimes|LeftDownVector|LeftRightArrow|Leftrightarrow|LessSlantEqual|LongRightArrow|Longrightarrow|LowerLeftArrow|NestedLessLess|NotGreaterLess|NotLessGreater|NotSubsetEqual|NotVerticalBar|OpenCurlyQuote|ReverseElement|RightTeeVector|RightVectorBar|ShortDownArrow|ShortLeftArrow|SquareSuperset|TildeFullEqual|UpperLeftArrow|ZeroWidthSpace|curvearrowleft|doublebarwedge|downdownarrows|hookrightarrow|leftleftarrows|leftrightarrow|leftthreetimes|longrightarrow|looparrowright|nshortparallel|ntriangleright|rightarrowtail|rightharpoonup|trianglelefteq|upharpoonright|ApplyFunction|DifferentialD|DoubleLeftTee|DoubleUpArrow|LeftTeeVector|LeftVectorBar|LessFullEqual|LongLeftArrow|Longleftarrow|NotEqualTilde|NotTildeEqual|NotTildeTilde|Poincareplane|PrecedesEqual|PrecedesTilde|RightArrowBar|RightTeeArrow|RightTriangle|RightUpVector|SucceedsEqual|SucceedsTilde|SupersetEqual|UpEquilibrium|VerticalTilde|VeryThinSpace|bigtriangleup|blacktriangle|divideontimes|fallingdotseq|hookleftarrow|leftarrowtail|leftharpoonup|longleftarrow|looparrowleft|measuredangle|ntriangleleft|shortparallel|smallsetminus|triangleright|upharpoonleft|varsubsetneqq|varsupsetneqq|DownArrowBar|DownTeeArrow|ExponentialE|GreaterEqual|GreaterTilde|HilbertSpace|HumpDownHump|Intersection|LeftArrowBar|LeftTeeArrow|LeftTriangle|LeftUpVector|NotCongruent|NotHumpEqual|NotLessEqual|NotLessTilde|Proportional|RightCeiling|RoundImplies|ShortUpArrow|SquareSubset|UnderBracket|VerticalLine|blacklozenge|exponentiale|risingdotseq|triangledown|triangleleft|varsubsetneq|varsupsetneq|CircleMinus|CircleTimes|Equilibrium|GreaterLess|LeftCeiling|LessGreater|MediumSpace|NotLessLess|NotPrecedes|NotSucceeds|NotSuperset|OverBracket|RightVector|Rrightarrow|RuleDelayed|SmallCircle|SquareUnion|SubsetEqual|UpDownArrow|Updownarrow|VerticalBar|backepsilon|blacksquare|circledcirc|circleddash|curlyeqprec|curlyeqsucc|diamondsuit|eqslantless|expectation|nRightarrow|nrightarrow|preccurlyeq|precnapprox|quaternions|straightphi|succcurlyeq|succnapprox|thickapprox|updownarrow|Bernoullis|CirclePlus|EqualTilde|Fouriertrf|ImaginaryI|Laplacetrf|LeftVector|Lleftarrow|NotElement|NotGreater|Proportion|RightArrow|RightFloor|Rightarrow|ThickSpace|TildeEqual|TildeTilde|UnderBrace|UpArrowBar|UpTeeArrow|circledast|complement|curlywedge|eqslantgtr|gtreqqless|lessapprox|lesseqqgtr|lmoustache|longmapsto|mapstodown|mapstoleft|nLeftarrow|nleftarrow|nsubseteqq|nsupseteqq|precapprox|rightarrow|rmoustache|sqsubseteq|sqsupseteq|subsetneqq|succapprox|supsetneqq|upuparrows|varepsilon|varnothing|Backslash|CenterDot|CircleDot|Congruent|Coproduct|DoubleDot|DownArrow|DownBreve|Downarrow|HumpEqual|LeftArrow|LeftFloor|Leftarrow|LessTilde|Mellintrf|MinusPlus|NotCupCap|NotExists|NotSubset|OverBrace|PlusMinus|Therefore|ThinSpace|TripleDot|UnionPlus|backprime|backsimeq|bigotimes|centerdot|checkmark|complexes|dotsquare|downarrow|gtrapprox|gtreqless|gvertneqq|heartsuit|leftarrow|lesseqgtr|lvertneqq|ngeqslant|nleqslant|nparallel|nshortmid|nsubseteq|nsupseteq|pitchfork|rationals|spadesuit|subseteqq|subsetneq|supseteqq|supsetneq|therefore|triangleq|varpropto|DDotrahd|DotEqual|Integral|LessLess|NotEqual|NotTilde|PartialD|Precedes|RightTee|Succeeds|SuchThat|Superset|Uarrocir|UnderBar|andslope|angmsdaa|angmsdab|angmsdac|angmsdad|angmsdae|angmsdaf|angmsdag|angmsdah|angrtvbd|approxeq|awconint|backcong|barwedge|bbrktbrk|bigoplus|bigsqcup|biguplus|bigwedge|boxminus|boxtimes|bsolhsub|capbrcup|circledR|circledS|cirfnint|clubsuit|cupbrcap|curlyvee|cwconint|doteqdot|dotminus|drbkarow|dzigrarr|elinters|emptyset|eqvparsl|fpartint|geqslant|gesdotol|gnapprox|hksearow|hkswarow|imagline|imagpart|infintie|integers|intercal|intlarhk|laemptyv|ldrushar|leqslant|lesdotor|llcorner|lnapprox|lrcorner|lurdshar|mapstoup|multimap|naturals|ncongdot|notindot|otimesas|parallel|plusacir|pointint|precneqq|precnsim|profalar|profline|profsurf|raemptyv|realpart|rppolint|rtriltri|scpolint|setminus|shortmid|smeparsl|sqsubset|sqsupset|subseteq|succneqq|succnsim|supseteq|thetasym|thicksim|timesbar|triangle|triminus|trpezium|ulcorner|urcorner|varkappa|varsigma|vartheta|Because|Cayleys|Cconint|Cedilla|Diamond|DownTee|Element|Epsilon|Implies|LeftTee|NewLine|NoBreak|NotLess|Omicron|OverBar|Product|UpArrow|Uparrow|Upsilon|alefsym|angrtvb|angzarr|asympeq|backsim|because|bemptyv|between|bigcirc|bigodot|bigstar|bnequiv|boxplus|ccupssm|cemptyv|cirscir|coloneq|congdot|cudarrl|cudarrr|cularrp|curarrm|dbkarow|ddagger|ddotseq|demptyv|diamond|digamma|dotplus|dwangle|epsilon|eqcolon|equivDD|gesdoto|gtquest|gtrless|harrcir|intprod|isindot|larrbfs|larrsim|lbrksld|lbrkslu|ldrdhar|lesdoto|lessdot|lessgtr|lesssim|lotimes|lozenge|ltquest|luruhar|maltese|minusdu|napprox|natural|nearrow|nexists|notinva|notinvb|notinvc|notniva|notnivb|notnivc|npolint|npreceq|nsqsube|nsqsupe|nsubset|nsucceq|nsupset|nvinfin|nvltrie|nvrtrie|nwarrow|olcross|omicron|orderof|orslope|pertenk|planckh|pluscir|plussim|plustwo|precsim|quatint|questeq|rarrbfs|rarrsim|rbrksld|rbrkslu|rdldhar|realine|rotimes|ruluhar|searrow|simplus|simrarr|subedot|submult|subplus|subrarr|succsim|supdsub|supedot|suphsol|suphsub|suplarr|supmult|supplus|swarrow|topfork|triplus|tritime|uparrow|upsilon|uwangle|vzigzag|zigrarr|Aacute|Abreve|Agrave|Assign|Atilde|Barwed|Bumpeq|Cacute|Ccaron|Ccedil|Colone|Conint|CupCap|Dagger|Dcaron|DotDot|Dstrok|Eacute|Ecaron|Egrave|Exists|ForAll|Gammad|Gbreve|Gcedil|HARDcy|Hstrok|Iacute|Igrave|Itilde|Jsercy|Kcedil|Lacute|Lambda|Lcaron|Lcedil|Lmidot|Lstrok|Nacute|Ncaron|Ncedil|Ntilde|Oacute|Odblac|Ograve|Oslash|Otilde|Otimes|Racute|Rarrtl|Rcaron|Rcedil|SHCHcy|SOFTcy|Sacute|Scaron|Scedil|Square|Subset|Supset|Tcaron|Tcedil|Tstrok|Uacute|Ubreve|Udblac|Ugrave|Utilde|Vdashl|Verbar|Vvdash|Yacute|Zacute|Zcaron|aacute|abreve|agrave|andand|angmsd|angsph|apacir|approx|atilde|barvee|barwed|becaus|bernou|bigcap|bigcup|bigvee|bkarow|bottom|bowtie|boxbox|bprime|brvbar|bullet|bumpeq|cacute|capand|capcap|capcup|capdot|ccaron|ccedil|circeq|cirmid|colone|commat|compfn|conint|coprod|copysr|cularr|cupcap|cupcup|cupdot|curarr|curren|cylcty|dagger|daleth|dcaron|dfisht|divide|divonx|dlcorn|dlcrop|dollar|drcorn|drcrop|dstrok|eacute|easter|ecaron|ecolon|egrave|egsdot|elsdot|emptyv|emsp13|emsp14|eparsl|eqcirc|equals|equest|female|ffilig|ffllig|forall|frac12|frac13|frac14|frac15|frac16|frac18|frac23|frac25|frac34|frac35|frac38|frac45|frac56|frac58|frac78|gacute|gammad|gbreve|gesdot|gesles|gtlPar|gtrarr|gtrdot|gtrsim|hairsp|hamilt|hardcy|hearts|hellip|hercon|homtht|horbar|hslash|hstrok|hybull|hyphen|iacute|igrave|iiiint|iinfin|incare|inodot|intcal|iquest|isinsv|itilde|jsercy|kappav|kcedil|kgreen|lAtail|lacute|lagran|lambda|langle|larrfs|larrhk|larrlp|larrpl|larrtl|latail|lbrace|lbrack|lcaron|lcedil|ldquor|lesdot|lesges|lfisht|lfloor|lharul|llhard|lmidot|lmoust|loplus|lowast|lowbar|lparlt|lrhard|lsaquo|lsquor|lstrok|lthree|ltimes|ltlarr|ltrPar|mapsto|marker|mcomma|midast|midcir|middot|minusb|minusd|mnplus|models|mstpos|nVDash|nVdash|nacute|nbumpe|ncaron|ncedil|nearhk|nequiv|nesear|nexist|nltrie|notinE|nparsl|nprcue|nrarrc|nrarrw|nrtrie|nsccue|nsimeq|ntilde|numero|nvDash|nvHarr|nvdash|nvlArr|nvrArr|nwarhk|nwnear|oacute|odblac|odsold|ograve|ominus|origof|oslash|otilde|otimes|parsim|percnt|period|permil|phmmat|planck|plankv|plusdo|plusdu|plusmn|preceq|primes|prnsim|propto|prurel|puncsp|qprime|rAtail|racute|rangle|rarrap|rarrfs|rarrhk|rarrlp|rarrpl|rarrtl|ratail|rbrace|rbrack|rcaron|rcedil|rdquor|rfisht|rfloor|rharul|rmoust|roplus|rpargt|rsaquo|rsquor|rthree|rtimes|sacute|scaron|scedil|scnsim|searhk|seswar|sfrown|shchcy|sigmaf|sigmav|simdot|smashp|softcy|solbar|spades|sqcaps|sqcups|sqsube|sqsupe|square|squarf|ssetmn|ssmile|sstarf|subdot|subset|subsim|subsub|subsup|succeq|supdot|supset|supsim|supsub|supsup|swarhk|swnwar|target|tcaron|tcedil|telrec|there4|thetav|thinsp|thksim|timesb|timesd|topbot|topcir|tprime|tridot|tstrok|uacute|ubreve|udblac|ufisht|ugrave|ulcorn|ulcrop|urcorn|urcrop|utilde|vangrt|varphi|varrho|veebar|vellip|verbar|vsubnE|vsubne|vsupnE|vsupne|wedbar|wedgeq|weierp|wreath|xoplus|xotime|xsqcup|xuplus|xwedge|yacute|zacute|zcaron|zeetrf|AElig|Acirc|Alpha|Amacr|Aogon|Aring|Breve|Ccirc|Colon|Cross|Dashv|Delta|Ecirc|Emacr|Eogon|Equal|Gamma|Gcirc|Hacek|Hcirc|IJlig|Icirc|Imacr|Iogon|Iukcy|Jcirc|Jukcy|Kappa|OElig|Ocirc|Omacr|Omega|Prime|RBarr|Scirc|Sigma|THORN|TRADE|TSHcy|Theta|Tilde|Ubrcy|Ucirc|Umacr|Union|Uogon|UpTee|Uring|VDash|Vdash|Wcirc|Wedge|Ycirc|acirc|acute|aelig|aleph|alpha|amacr|amalg|angle|angrt|angst|aogon|aring|asymp|awint|bcong|bdquo|bepsi|blank|blk12|blk14|blk34|block|boxDL|boxDR|boxDl|boxDr|boxHD|boxHU|boxHd|boxHu|boxUL|boxUR|boxUl|boxUr|boxVH|boxVL|boxVR|boxVh|boxVl|boxVr|boxdL|boxdR|boxdl|boxdr|boxhD|boxhU|boxhd|boxhu|boxuL|boxuR|boxul|boxur|boxvH|boxvL|boxvR|boxvh|boxvl|boxvr|breve|bsemi|bsime|bsolb|bumpE|bumpe|caret|caron|ccaps|ccirc|ccups|cedil|check|clubs|colon|comma|crarr|cross|csube|csupe|ctdot|cuepr|cuesc|cupor|cuvee|cuwed|cwint|dashv|dblac|ddarr|delta|dharl|dharr|diams|disin|doteq|dtdot|dtrif|duarr|duhar|eDDot|ecirc|efDot|emacr|empty|eogon|eplus|epsiv|eqsim|equiv|erDot|erarr|esdot|exist|fflig|filig|fjlig|fllig|fltns|forkv|frasl|frown|gamma|gcirc|gescc|gimel|gneqq|gnsim|grave|gsime|gsiml|gtcir|gtdot|harrw|hcirc|hoarr|icirc|iexcl|iiint|iiota|ijlig|imacr|image|imath|imped|infin|iogon|iprod|isinE|isins|isinv|iukcy|jcirc|jmath|jukcy|kappa|lAarr|lBarr|langd|laquo|larrb|lates|lbarr|lbbrk|lbrke|lceil|ldquo|lescc|lhard|lharu|lhblk|llarr|lltri|lneqq|lnsim|loang|loarr|lobrk|lopar|lrarr|lrhar|lrtri|lsime|lsimg|lsquo|ltcir|ltdot|ltrie|ltrif|mDDot|mdash|micro|minus|mumap|nabla|napid|napos|natur|nbump|ncong|ndash|neArr|nearr|nedot|nesim|ngeqq|ngsim|nhArr|nharr|nhpar|nlArr|nlarr|nleqq|nless|nlsim|nltri|notin|notni|npart|nprec|nrArr|nrarr|nrtri|nsime|nsmid|nspar|nsubE|nsube|nsucc|nsupE|nsupe|numsp|nvsim|nwArr|nwarr|ocirc|odash|oelig|ofcir|ohbar|olarr|olcir|oline|omacr|omega|operp|oplus|orarr|order|ovbar|parsl|phone|plusb|pluse|pound|prcue|prime|prnap|prsim|quest|rAarr|rBarr|radic|rangd|range|raquo|rarrb|rarrc|rarrw|ratio|rbarr|rbbrk|rbrke|rceil|rdquo|reals|rhard|rharu|rlarr|rlhar|rnmid|roang|roarr|robrk|ropar|rrarr|rsquo|rtrie|rtrif|sbquo|sccue|scirc|scnap|scsim|sdotb|sdote|seArr|searr|setmn|sharp|sigma|simeq|simgE|simlE|simne|slarr|smile|smtes|sqcap|sqcup|sqsub|sqsup|srarr|starf|strns|subnE|subne|supnE|supne|swArr|swarr|szlig|theta|thkap|thorn|tilde|times|trade|trisb|tshcy|twixt|ubrcy|ucirc|udarr|udhar|uharl|uharr|uhblk|ultri|umacr|uogon|uplus|upsih|uring|urtri|utdot|utrif|uuarr|vBarv|vDash|varpi|vdash|veeeq|vltri|vnsub|vnsup|vprop|vrtri|wcirc|wedge|xcirc|xdtri|xhArr|xharr|xlArr|xlarr|xodot|xrArr|xrarr|xutri|ycirc|Aopf|Ascr|Auml|Barv|Beta|Bopf|Bscr|CHcy|COPY|Cdot|Copf|Cscr|DJcy|DScy|DZcy|Darr|Dopf|Dscr|Edot|Eopf|Escr|Esim|Euml|Fopf|Fscr|GJcy|Gdot|Gopf|Gscr|Hopf|Hscr|IEcy|IOcy|Idot|Iopf|Iota|Iscr|Iuml|Jopf|Jscr|KHcy|KJcy|Kopf|Kscr|LJcy|Lang|Larr|Lopf|Lscr|Mopf|Mscr|NJcy|Nopf|Nscr|Oopf|Oscr|Ouml|Popf|Pscr|QUOT|Qopf|Qscr|Rang|Rarr|Ropf|Rscr|SHcy|Sopf|Sqrt|Sscr|Star|TScy|Topf|Tscr|Uarr|Uopf|Upsi|Uscr|Uuml|Vbar|Vert|Vopf|Vscr|Wopf|Wscr|Xopf|Xscr|YAcy|YIcy|YUcy|Yopf|Yscr|Yuml|ZHcy|Zdot|Zeta|Zopf|Zscr|andd|andv|ange|aopf|apid|apos|ascr|auml|bNot|bbrk|beta|beth|bnot|bopf|boxH|boxV|boxh|boxv|bscr|bsim|bsol|bull|bump|caps|cdot|cent|chcy|cirE|circ|cire|comp|cong|copf|copy|cscr|csub|csup|cups|dArr|dHar|darr|dash|diam|djcy|dopf|dscr|dscy|dsol|dtri|dzcy|eDot|ecir|edot|emsp|ensp|eopf|epar|epsi|escr|esim|euml|euro|excl|flat|fnof|fopf|fork|fscr|gdot|geqq|gesl|gjcy|gnap|gneq|gopf|gscr|gsim|gtcc|gvnE|hArr|half|harr|hbar|hopf|hscr|iecy|imof|iocy|iopf|iota|iscr|isin|iuml|jopf|jscr|khcy|kjcy|kopf|kscr|lArr|lHar|lang|larr|late|lcub|ldca|ldsh|leqq|lesg|ljcy|lnap|lneq|lopf|lozf|lpar|lscr|lsim|lsqb|ltcc|ltri|lvnE|macr|male|malt|mlcp|mldr|mopf|mscr|nGtv|nLtv|nang|napE|nbsp|ncap|ncup|ngeq|nges|ngtr|nisd|njcy|nldr|nleq|nles|nmid|nopf|npar|npre|nsce|nscr|nsim|nsub|nsup|ntgl|ntlg|nvap|nvge|nvgt|nvle|nvlt|oast|ocir|odiv|odot|ogon|oint|omid|oopf|opar|ordf|ordm|oror|oscr|osol|ouml|para|part|perp|phiv|plus|popf|prap|prec|prnE|prod|prop|pscr|qint|qopf|qscr|quot|rArr|rHar|race|rang|rarr|rcub|rdca|rdsh|real|rect|rhov|ring|ropf|rpar|rscr|rsqb|rtri|scap|scnE|sdot|sect|semi|sext|shcy|sime|simg|siml|smid|smte|solb|sopf|spar|squf|sscr|star|subE|sube|succ|sung|sup1|sup2|sup3|supE|supe|tbrk|tdot|tint|toea|topf|tosa|trie|tscr|tscy|uArr|uHar|uarr|uopf|upsi|uscr|utri|uuml|vArr|vBar|varr|vert|vopf|vscr|wopf|wscr|xcap|xcup|xmap|xnis|xopf|xscr|xvee|yacy|yicy|yopf|yscr|yucy|y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|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,SQe=new Map([["AElig","\xC6"],["AMP","&"],["Aacute","\xC1"],["Abreve","\u0102"],["Acirc","\xC2"],["Acy","\u0410"],["Afr","\u{1D504}"],["Agrave","\xC0"],["Alpha","\u0391"],["Amacr","\u0100"],["And","\u2A53"],["Aogon","\u0104"],["Aopf","\u{1D538}"],["ApplyFunction","\u2061"],["Aring","\xC5"],["Ascr","\u{1D49C}"],["Assign","\u2254"],["Atilde","\xC3"],["Auml","\xC4"],["Backslash","\u2216"],["Barv","\u2AE7"],["Barwed","\u2306"],["Bcy","\u0411"],["Because","\u2235"],["Bernoullis","\u212C"],["Beta","\u0392"],["Bfr","\u{1D505}"],["Bopf","\u{1D539}"],["Breve","\u02D8"],["Bscr","\u212C"],["Bumpeq","\u224E"],["CHcy","\u0427"],["COPY","\xA9"],["Cacute","\u0106"],["Cap","\u22D2"],["CapitalDifferentialD","\u2145"],["Cayleys","\u212D"],["Ccaron","\u010C"],["Ccedil","\xC7"],["Ccirc","\u0108"],["Cconint","\u2230"],["Cdot","\u010A"],["Cedilla","\xB8"],["CenterDot","\xB7"],["Cfr","\u212D"],["Chi","\u03A7"],["CircleDot","\u2299"],["CircleMinus","\u2296"],["CirclePlus","\u2295"],["CircleTimes","\u2297"],["ClockwiseContourIntegral","\u2232"],["CloseCurlyDoubleQuote","\u201D"],["CloseCurlyQuote","\u2019"],["Colon","\u2237"],["Colone","\u2A74"],["Congruent","\u2261"],["Conint","\u222F"],["ContourIntegral","\u222E"],["Copf","\u2102"],["Coproduct","\u2210"],["CounterClockwiseContourIntegral","\u2233"],["Cross","\u2A2F"],["Cscr","\u{1D49E}"],["Cup","\u22D3"],["CupCap","\u224D"],["DD","\u2145"],["DDotrahd","\u2911"],["DJcy","\u0402"],["DScy","\u0405"],["DZcy","\u040F"],["Dagger","\u2021"],["Darr","\u21A1"],["Dashv","\u2AE4"],["Dcaron","\u010E"],["Dcy","\u0414"],["Del","\u2207"],["Delta","\u0394"],["Dfr","\u{1D507}"],["DiacriticalAcute","\xB4"],["DiacriticalDot","\u02D9"],["DiacriticalDoubleAcute","\u02DD"],["DiacriticalGrave","`"],["DiacriticalTilde","\u02DC"],["Diamond","\u22C4"],["DifferentialD","\u2146"],["Dopf","\u{1D53B}"],["Dot","\xA8"],["DotDot","\u20DC"],["DotEqual","\u2250"],["DoubleContourIntegral","\u222F"],["DoubleDot","\xA8"],["DoubleDownArrow","\u21D3"],["DoubleLeftArrow","\u21D0"],["DoubleLeftRightArrow","\u21D4"],["DoubleLeftTee","\u2AE4"],["DoubleLongLeftArrow","\u27F8"],["DoubleLongLeftRightArrow","\u27FA"],["DoubleLongRightArrow","\u27F9"],["DoubleRightArrow","\u21D2"],["DoubleRightTee","\u22A8"],["DoubleUpArrow","\u21D1"],["DoubleUpDownArrow","\u21D5"],["DoubleVerticalBar","\u2225"],["DownArrow","\u2193"],["DownArrowBar","\u2913"],["DownArrowUpArrow","\u21F5"],["DownBreve","\u0311"],["DownLeftRightVector","\u2950"],["DownLeftTeeVector","\u295E"],["DownLeftVector","\u21BD"],["DownLeftVectorBar","\u2956"],["DownRightTeeVector","\u295F"],["DownRightVector","\u21C1"],["DownRightVectorBar","\u2957"],["DownTee","\u22A4"],["DownTeeArrow","\u21A7"],["Downarrow","\u21D3"],["Dscr","\u{1D49F}"],["Dstrok","\u0110"],["ENG","\u014A"],["ETH","\xD0"],["Eacute","\xC9"],["Ecaron","\u011A"],["Ecirc","\xCA"],["Ecy","\u042D"],["Edot","\u0116"],["Efr","\u{1D508}"],["Egrave","\xC8"],["Element","\u2208"],["Emacr","\u0112"],["EmptySmallSquare","\u25FB"],["EmptyVerySmallSquare","\u25AB"],["Eogon","\u0118"],["Eopf","\u{1D53C}"],["Epsilon","\u0395"],["Equal","\u2A75"],["EqualTilde","\u2242"],["Equilibrium","\u21CC"],["Escr","\u2130"],["Esim","\u2A73"],["Eta","\u0397"],["Euml","\xCB"],["Exists","\u2203"],["ExponentialE","\u2147"],["Fcy","\u0424"],["Ffr","\u{1D509}"],["FilledSmallSquare","\u25FC"],["FilledVerySmallSquare","\u25AA"],["Fopf","\u{1D53D}"],["ForAll","\u2200"],["Fouriertrf","\u2131"],["Fscr","\u2131"],["GJcy","\u0403"],["GT",">"],["Gamma","\u0393"],["Gammad","\u03DC"],["Gbreve","\u011E"],["Gcedil","\u0122"],["Gcirc","\u011C"],["Gcy","\u0413"],["Gdot","\u0120"],["Gfr","\u{1D50A}"],["Gg","\u22D9"],["Gopf","\u{1D53E}"],["GreaterEqual","\u2265"],["GreaterEqualLess","\u22DB"],["GreaterFullEqual","\u2267"],["GreaterGreater","\u2AA2"],["GreaterLess","\u2277"],["GreaterSlantEqual","\u2A7E"],["GreaterTilde","\u2273"],["Gscr","\u{1D4A2}"],["Gt","\u226B"],["HARDcy","\u042A"],["Hacek","\u02C7"],["Hat","^"],["Hcirc","\u0124"],["Hfr","\u210C"],["HilbertSpace","\u210B"],["Hopf","\u210D"],["HorizontalLine","\u2500"],["Hscr","\u210B"],["Hstrok","\u0126"],["HumpDownHump","\u224E"],["HumpEqual","\u224F"],["IEcy","\u0415"],["IJlig","\u0132"],["IOcy","\u0401"],["Iacute","\xCD"],["Icirc","\xCE"],["Icy","\u0418"],["Idot","\u0130"],["Ifr","\u2111"],["Igrave","\xCC"],["Im","\u2111"],["Imacr","\u012A"],["ImaginaryI","\u2148"],["Implies","\u21D2"],["Int","\u222C"],["Integral","\u222B"],["Intersection","\u22C2"],["InvisibleComma","\u2063"],["InvisibleTimes","\u2062"],["Iogon","\u012E"],["Iopf","\u{1D540}"],["Iota","\u0399"],["Iscr","\u2110"],["Itilde","\u0128"],["Iukcy","\u0406"],["Iuml","\xCF"],["Jcirc","\u0134"],["Jcy","\u0419"],["Jfr","\u{1D50D}"],["Jopf","\u{1D541}"],["Jscr","\u{1D4A5}"],["Jsercy","\u0408"],["Jukcy","\u0404"],["KHcy","\u0425"],["KJcy","\u040C"],["Kappa","\u039A"],["Kcedil","\u0136"],["Kcy","\u041A"],["Kfr","\u{1D50E}"],["Kopf","\u{1D542}"],["Kscr","\u{1D4A6}"],["LJcy","\u0409"],["LT","<"],["Lacute","\u0139"],["Lambda","\u039B"],["Lang","\u27EA"],["Laplacetrf","\u2112"],["Larr","\u219E"],["Lcaron","\u013D"],["Lcedil","\u013B"],["Lcy","\u041B"],["LeftAngleBracket","\u27E8"],["LeftArrow","\u2190"],["LeftArrowBar","\u21E4"],["LeftArrowRightArrow","\u21C6"],["LeftCeiling","\u2308"],["LeftDoubleBracket","\u27E6"],["LeftDownTeeVector","\u2961"],["LeftDownVector","\u21C3"],["LeftDownVectorBar","\u2959"],["LeftFloor","\u230A"],["LeftRightArrow","\u2194"],["LeftRightVector","\u294E"],["LeftTee","\u22A3"],["LeftTeeArrow","\u21A4"],["LeftTeeVector","\u295A"],["LeftTriangle","\u22B2"],["LeftTriangleBar","\u29CF"],["LeftTriangleEqual","\u22B4"],["LeftUpDownVector","\u2951"],["LeftUpTeeVector","\u2960"],["LeftUpVector","\u21BF"],["LeftUpVectorBar","\u2958"],["LeftVector","\u21BC"],["LeftVectorBar","\u2952"],["Leftarrow","\u21D0"],["Leftrightarrow","\u21D4"],["LessEqualGreater","\u22DA"],["LessFullEqual","\u2266"],["LessGreater","\u2276"],["LessLess","\u2AA1"],["LessSlantEqual","\u2A7D"],["LessTilde","\u2272"],["Lfr","\u{1D50F}"],["Ll","\u22D8"],["Lleftarrow","\u21DA"],["Lmidot","\u013F"],["LongLeftArrow","\u27F5"],["LongLeftRightArrow","\u27F7"],["LongRightArrow","\u27F6"],["Longleftarrow","\u27F8"],["Longleftrightarrow","\u27FA"],["Longrightarrow","\u27F9"],["Lopf","\u{1D543}"],["LowerLeftArrow","\u2199"],["LowerRightArrow","\u2198"],["Lscr","\u2112"],["Lsh","\u21B0"],["Lstrok","\u0141"],["Lt","\u226A"],["Map","\u2905"],["Mcy","\u041C"],["MediumSpace","\u205F"],["Mellintrf","\u2133"],["Mfr","\u{1D510}"],["MinusPlus","\u2213"],["Mopf","\u{1D544}"],["Mscr","\u2133"],["Mu","\u039C"],["NJcy","\u040A"],["Nacute","\u0143"],["Ncaron","\u0147"],["Ncedil","\u0145"],["Ncy","\u041D"],["NegativeMediumSpace","\u200B"],["NegativeThickSpace","\u200B"],["NegativeThinSpace","\u200B"],["NegativeVeryThinSpace","\u200B"],["NestedGreaterGreater","\u226B"],["NestedLessLess","\u226A"],["NewLine",` +`],["Nfr","\u{1D511}"],["NoBreak","\u2060"],["NonBreakingSpace","\xA0"],["Nopf","\u2115"],["Not","\u2AEC"],["NotCongruent","\u2262"],["NotCupCap","\u226D"],["NotDoubleVerticalBar","\u2226"],["NotElement","\u2209"],["NotEqual","\u2260"],["NotEqualTilde","\u2242\u0338"],["NotExists","\u2204"],["NotGreater","\u226F"],["NotGreaterEqual","\u2271"],["NotGreaterFullEqual","\u2267\u0338"],["NotGreaterGreater","\u226B\u0338"],["NotGreaterLess","\u2279"],["NotGreaterSlantEqual","\u2A7E\u0338"],["NotGreaterTilde","\u2275"],["NotHumpDownHump","\u224E\u0338"],["NotHumpEqual","\u224F\u0338"],["NotLeftTriangle","\u22EA"],["NotLeftTriangleBar","\u29CF\u0338"],["NotLeftTriangleEqual","\u22EC"],["NotLess","\u226E"],["NotLessEqual","\u2270"],["NotLessGreater","\u2278"],["NotLessLess","\u226A\u0338"],["NotLessSlantEqual","\u2A7D\u0338"],["NotLessTilde","\u2274"],["NotNestedGreaterGreater","\u2AA2\u0338"],["NotNestedLessLess","\u2AA1\u0338"],["NotPrecedes","\u2280"],["NotPrecedesEqual","\u2AAF\u0338"],["NotPrecedesSlantEqual","\u22E0"],["NotReverseElement","\u220C"],["NotRightTriangle","\u22EB"],["NotRightTriangleBar","\u29D0\u0338"],["NotRightTriangleEqual","\u22ED"],["NotSquareSubset","\u228F\u0338"],["NotSquareSubsetEqual","\u22E2"],["NotSquareSuperset","\u2290\u0338"],["NotSquareSupersetEqual","\u22E3"],["NotSubset","\u2282\u20D2"],["NotSubsetEqual","\u2288"],["NotSucceeds","\u2281"],["NotSucceedsEqual","\u2AB0\u0338"],["NotSucceedsSlantEqual","\u22E1"],["NotSucceedsTilde","\u227F\u0338"],["NotSuperset","\u2283\u20D2"],["NotSupersetEqual","\u2289"],["NotTilde","\u2241"],["NotTildeEqual","\u2244"],["NotTildeFullEqual","\u2247"],["NotTildeTilde","\u2249"],["NotVerticalBar","\u2224"],["Nscr","\u{1D4A9}"],["Ntilde","\xD1"],["Nu","\u039D"],["OElig","\u0152"],["Oacute","\xD3"],["Ocirc","\xD4"],["Ocy","\u041E"],["Odblac","\u0150"],["Ofr","\u{1D512}"],["Ograve","\xD2"],["Omacr","\u014C"],["Omega","\u03A9"],["Omicron","\u039F"],["Oopf","\u{1D546}"],["OpenCurlyDoubleQuote","\u201C"],["OpenCurlyQuote","\u2018"],["Or","\u2A54"],["Oscr","\u{1D4AA}"],["Oslash","\xD8"],["Otilde","\xD5"],["Otimes","\u2A37"],["Ouml","\xD6"],["OverBar","\u203E"],["OverBrace","\u23DE"],["OverBracket","\u23B4"],["OverParenthesis","\u23DC"],["PartialD","\u2202"],["Pcy","\u041F"],["Pfr","\u{1D513}"],["Phi","\u03A6"],["Pi","\u03A0"],["PlusMinus","\xB1"],["Poincareplane","\u210C"],["Popf","\u2119"],["Pr","\u2ABB"],["Precedes","\u227A"],["PrecedesEqual","\u2AAF"],["PrecedesSlantEqual","\u227C"],["PrecedesTilde","\u227E"],["Prime","\u2033"],["Product","\u220F"],["Proportion","\u2237"],["Proportional","\u221D"],["Pscr","\u{1D4AB}"],["Psi","\u03A8"],["QUOT",'"'],["Qfr","\u{1D514}"],["Qopf","\u211A"],["Qscr","\u{1D4AC}"],["RBarr","\u2910"],["REG","\xAE"],["Racute","\u0154"],["Rang","\u27EB"],["Rarr","\u21A0"],["Rarrtl","\u2916"],["Rcaron","\u0158"],["Rcedil","\u0156"],["Rcy","\u0420"],["Re","\u211C"],["ReverseElement","\u220B"],["ReverseEquilibrium","\u21CB"],["ReverseUpEquilibrium","\u296F"],["Rfr","\u211C"],["Rho","\u03A1"],["RightAngleBracket","\u27E9"],["RightArrow","\u2192"],["RightArrowBar","\u21E5"],["RightArrowLeftArrow","\u21C4"],["RightCeiling","\u2309"],["RightDoubleBracket","\u27E7"],["RightDownTeeVector","\u295D"],["RightDownVector","\u21C2"],["RightDownVectorBar","\u2955"],["RightFloor","\u230B"],["RightTee","\u22A2"],["RightTeeArrow","\u21A6"],["RightTeeVector","\u295B"],["RightTriangle","\u22B3"],["RightTriangleBar","\u29D0"],["RightTriangleEqual","\u22B5"],["RightUpDownVector","\u294F"],["RightUpTeeVector","\u295C"],["RightUpVector","\u21BE"],["RightUpVectorBar","\u2954"],["RightVector","\u21C0"],["RightVectorBar","\u2953"],["Rightarrow","\u21D2"],["Ropf","\u211D"],["RoundImplies","\u2970"],["Rrightarrow","\u21DB"],["Rscr","\u211B"],["Rsh","\u21B1"],["RuleDelayed","\u29F4"],["SHCHcy","\u0429"],["SHcy","\u0428"],["SOFTcy","\u042C"],["Sacute","\u015A"],["Sc","\u2ABC"],["Scaron","\u0160"],["Scedil","\u015E"],["Scirc","\u015C"],["Scy","\u0421"],["Sfr","\u{1D516}"],["ShortDownArrow","\u2193"],["ShortLeftArrow","\u2190"],["ShortRightArrow","\u2192"],["ShortUpArrow","\u2191"],["Sigma","\u03A3"],["SmallCircle","\u2218"],["Sopf","\u{1D54A}"],["Sqrt","\u221A"],["Square","\u25A1"],["SquareIntersection","\u2293"],["SquareSubset","\u228F"],["SquareSubsetEqual","\u2291"],["SquareSuperset","\u2290"],["SquareSupersetEqual","\u2292"],["SquareUnion","\u2294"],["Sscr","\u{1D4AE}"],["Star","\u22C6"],["Sub","\u22D0"],["Subset","\u22D0"],["SubsetEqual","\u2286"],["Succeeds","\u227B"],["SucceedsEqual","\u2AB0"],["SucceedsSlantEqual","\u227D"],["SucceedsTilde","\u227F"],["SuchThat","\u220B"],["Sum","\u2211"],["Sup","\u22D1"],["Superset","\u2283"],["SupersetEqual","\u2287"],["Supset","\u22D1"],["THORN","\xDE"],["TRADE","\u2122"],["TSHcy","\u040B"],["TScy","\u0426"],["Tab"," "],["Tau","\u03A4"],["Tcaron","\u0164"],["Tcedil","\u0162"],["Tcy","\u0422"],["Tfr","\u{1D517}"],["Therefore","\u2234"],["Theta","\u0398"],["ThickSpace","\u205F\u200A"],["ThinSpace","\u2009"],["Tilde","\u223C"],["TildeEqual","\u2243"],["TildeFullEqual","\u2245"],["TildeTilde","\u2248"],["Topf","\u{1D54B}"],["TripleDot","\u20DB"],["Tscr","\u{1D4AF}"],["Tstrok","\u0166"],["Uacute","\xDA"],["Uarr","\u219F"],["Uarrocir","\u2949"],["Ubrcy","\u040E"],["Ubreve","\u016C"],["Ucirc","\xDB"],["Ucy","\u0423"],["Udblac","\u0170"],["Ufr","\u{1D518}"],["Ugrave","\xD9"],["Umacr","\u016A"],["UnderBar","_"],["UnderBrace","\u23DF"],["UnderBracket","\u23B5"],["UnderParenthesis","\u23DD"],["Union","\u22C3"],["UnionPlus","\u228E"],["Uogon","\u0172"],["Uopf","\u{1D54C}"],["UpArrow","\u2191"],["UpArrowBar","\u2912"],["UpArrowDownArrow","\u21C5"],["UpDownArrow","\u2195"],["UpEquilibrium","\u296E"],["UpTee","\u22A5"],["UpTeeArrow","\u21A5"],["Uparrow","\u21D1"],["Updownarrow","\u21D5"],["UpperLeftArrow","\u2196"],["UpperRightArrow","\u2197"],["Upsi","\u03D2"],["Upsilon","\u03A5"],["Uring","\u016E"],["Uscr","\u{1D4B0}"],["Utilde","\u0168"],["Uuml","\xDC"],["VDash","\u22AB"],["Vbar","\u2AEB"],["Vcy","\u0412"],["Vdash","\u22A9"],["Vdashl","\u2AE6"],["Vee","\u22C1"],["Verbar","\u2016"],["Vert","\u2016"],["VerticalBar","\u2223"],["VerticalLine","|"],["VerticalSeparator","\u2758"],["VerticalTilde","\u2240"],["VeryThinSpace","\u200A"],["Vfr","\u{1D519}"],["Vopf","\u{1D54D}"],["Vscr","\u{1D4B1}"],["Vvdash","\u22AA"],["Wcirc","\u0174"],["Wedge","\u22C0"],["Wfr","\u{1D51A}"],["Wopf","\u{1D54E}"],["Wscr","\u{1D4B2}"],["Xfr","\u{1D51B}"],["Xi","\u039E"],["Xopf","\u{1D54F}"],["Xscr","\u{1D4B3}"],["YAcy","\u042F"],["YIcy","\u0407"],["YUcy","\u042E"],["Yacute","\xDD"],["Ycirc","\u0176"],["Ycy","\u042B"],["Yfr","\u{1D51C}"],["Yopf","\u{1D550}"],["Yscr","\u{1D4B4}"],["Yuml","\u0178"],["ZHcy","\u0416"],["Zacute","\u0179"],["Zcaron","\u017D"],["Zcy","\u0417"],["Zdot","\u017B"],["ZeroWidthSpace","\u200B"],["Zeta","\u0396"],["Zfr","\u2128"],["Zopf","\u2124"],["Zscr","\u{1D4B5}"],["aacute","\xE1"],["abreve","\u0103"],["ac","\u223E"],["acE","\u223E\u0333"],["acd","\u223F"],["acirc","\xE2"],["acute","\xB4"],["acy","\u0430"],["aelig","\xE6"],["af","\u2061"],["afr","\u{1D51E}"],["agrave","\xE0"],["alefsym","\u2135"],["aleph","\u2135"],["alpha","\u03B1"],["amacr","\u0101"],["amalg","\u2A3F"],["amp","&"],["and","\u2227"],["andand","\u2A55"],["andd","\u2A5C"],["andslope","\u2A58"],["andv","\u2A5A"],["ang","\u2220"],["ange","\u29A4"],["angle","\u2220"],["angmsd","\u2221"],["angmsdaa","\u29A8"],["angmsdab","\u29A9"],["angmsdac","\u29AA"],["angmsdad","\u29AB"],["angmsdae","\u29AC"],["angmsdaf","\u29AD"],["angmsdag","\u29AE"],["angmsdah","\u29AF"],["angrt","\u221F"],["angrtvb","\u22BE"],["angrtvbd","\u299D"],["angsph","\u2222"],["angst","\xC5"],["angzarr","\u237C"],["aogon","\u0105"],["aopf","\u{1D552}"],["ap","\u2248"],["apE","\u2A70"],["apacir","\u2A6F"],["ape","\u224A"],["apid","\u224B"],["apos","'"],["approx","\u2248"],["approxeq","\u224A"],["aring","\xE5"],["ascr","\u{1D4B6}"],["ast","*"],["asymp","\u2248"],["asympeq","\u224D"],["atilde","\xE3"],["auml","\xE4"],["awconint","\u2233"],["awint","\u2A11"],["bNot","\u2AED"],["backcong","\u224C"],["backepsilon","\u03F6"],["backprime","\u2035"],["backsim","\u223D"],["backsimeq","\u22CD"],["barvee","\u22BD"],["barwed","\u2305"],["barwedge","\u2305"],["bbrk","\u23B5"],["bbrktbrk","\u23B6"],["bcong","\u224C"],["bcy","\u0431"],["bdquo","\u201E"],["becaus","\u2235"],["because","\u2235"],["bemptyv","\u29B0"],["bepsi","\u03F6"],["bernou","\u212C"],["beta","\u03B2"],["beth","\u2136"],["between","\u226C"],["bfr","\u{1D51F}"],["bigcap","\u22C2"],["bigcirc","\u25EF"],["bigcup","\u22C3"],["bigodot","\u2A00"],["bigoplus","\u2A01"],["bigotimes","\u2A02"],["bigsqcup","\u2A06"],["bigstar","\u2605"],["bigtriangledown","\u25BD"],["bigtriangleup","\u25B3"],["biguplus","\u2A04"],["bigvee","\u22C1"],["bigwedge","\u22C0"],["bkarow","\u290D"],["blacklozenge","\u29EB"],["blacksquare","\u25AA"],["blacktriangle","\u25B4"],["blacktriangledown","\u25BE"],["blacktriangleleft","\u25C2"],["blacktriangleright","\u25B8"],["blank","\u2423"],["blk12","\u2592"],["blk14","\u2591"],["blk34","\u2593"],["block","\u2588"],["bne","=\u20E5"],["bnequiv","\u2261\u20E5"],["bnot","\u2310"],["bopf","\u{1D553}"],["bot","\u22A5"],["bottom","\u22A5"],["bowtie","\u22C8"],["boxDL","\u2557"],["boxDR","\u2554"],["boxDl","\u2556"],["boxDr","\u2553"],["boxH","\u2550"],["boxHD","\u2566"],["boxHU","\u2569"],["boxHd","\u2564"],["boxHu","\u2567"],["boxUL","\u255D"],["boxUR","\u255A"],["boxUl","\u255C"],["boxUr","\u2559"],["boxV","\u2551"],["boxVH","\u256C"],["boxVL","\u2563"],["boxVR","\u2560"],["boxVh","\u256B"],["boxVl","\u2562"],["boxVr","\u255F"],["boxbox","\u29C9"],["boxdL","\u2555"],["boxdR","\u2552"],["boxdl","\u2510"],["boxdr","\u250C"],["boxh","\u2500"],["boxhD","\u2565"],["boxhU","\u2568"],["boxhd","\u252C"],["boxhu","\u2534"],["boxminus","\u229F"],["boxplus","\u229E"],["boxtimes","\u22A0"],["boxuL","\u255B"],["boxuR","\u2558"],["boxul","\u2518"],["boxur","\u2514"],["boxv","\u2502"],["boxvH","\u256A"],["boxvL","\u2561"],["boxvR","\u255E"],["boxvh","\u253C"],["boxvl","\u2524"],["boxvr","\u251C"],["bprime","\u2035"],["breve","\u02D8"],["brvbar","\xA6"],["bscr","\u{1D4B7}"],["bsemi","\u204F"],["bsim","\u223D"],["bsime","\u22CD"],["bsol","\\"],["bsolb","\u29C5"],["bsolhsub","\u27C8"],["bull","\u2022"],["bullet","\u2022"],["bump","\u224E"],["bumpE","\u2AAE"],["bumpe","\u224F"],["bumpeq","\u224F"],["cacute","\u0107"],["cap","\u2229"],["capand","\u2A44"],["capbrcup","\u2A49"],["capcap","\u2A4B"],["capcup","\u2A47"],["capdot","\u2A40"],["caps","\u2229\uFE00"],["caret","\u2041"],["caron","\u02C7"],["ccaps","\u2A4D"],["ccaron","\u010D"],["ccedil","\xE7"],["ccirc","\u0109"],["ccups","\u2A4C"],["ccupssm","\u2A50"],["cdot","\u010B"],["cedil","\xB8"],["cemptyv","\u29B2"],["cent","\xA2"],["centerdot","\xB7"],["cfr","\u{1D520}"],["chcy","\u0447"],["check","\u2713"],["checkmark","\u2713"],["chi","\u03C7"],["cir","\u25CB"],["cirE","\u29C3"],["circ","\u02C6"],["circeq","\u2257"],["circlearrowleft","\u21BA"],["circlearrowright","\u21BB"],["circledR","\xAE"],["circledS","\u24C8"],["circledast","\u229B"],["circledcirc","\u229A"],["circleddash","\u229D"],["cire","\u2257"],["cirfnint","\u2A10"],["cirmid","\u2AEF"],["cirscir","\u29C2"],["clubs","\u2663"],["clubsuit","\u2663"],["colon",":"],["colone","\u2254"],["coloneq","\u2254"],["comma",","],["commat","@"],["comp","\u2201"],["compfn","\u2218"],["complement","\u2201"],["complexes","\u2102"],["cong","\u2245"],["congdot","\u2A6D"],["conint","\u222E"],["copf","\u{1D554}"],["coprod","\u2210"],["copy","\xA9"],["copysr","\u2117"],["crarr","\u21B5"],["cross","\u2717"],["cscr","\u{1D4B8}"],["csub","\u2ACF"],["csube","\u2AD1"],["csup","\u2AD0"],["csupe","\u2AD2"],["ctdot","\u22EF"],["cudarrl","\u2938"],["cudarrr","\u2935"],["cuepr","\u22DE"],["cuesc","\u22DF"],["cularr","\u21B6"],["cularrp","\u293D"],["cup","\u222A"],["cupbrcap","\u2A48"],["cupcap","\u2A46"],["cupcup","\u2A4A"],["cupdot","\u228D"],["cupor","\u2A45"],["cups","\u222A\uFE00"],["curarr","\u21B7"],["curarrm","\u293C"],["curlyeqprec","\u22DE"],["curlyeqsucc","\u22DF"],["curlyvee","\u22CE"],["curlywedge","\u22CF"],["curren","\xA4"],["curvearrowleft","\u21B6"],["curvearrowright","\u21B7"],["cuvee","\u22CE"],["cuwed","\u22CF"],["cwconint","\u2232"],["cwint","\u2231"],["cylcty","\u232D"],["dArr","\u21D3"],["dHar","\u2965"],["dagger","\u2020"],["daleth","\u2138"],["darr","\u2193"],["dash","\u2010"],["dashv","\u22A3"],["dbkarow","\u290F"],["dblac","\u02DD"],["dcaron","\u010F"],["dcy","\u0434"],["dd","\u2146"],["ddagger","\u2021"],["ddarr","\u21CA"],["ddotseq","\u2A77"],["deg","\xB0"],["delta","\u03B4"],["demptyv","\u29B1"],["dfisht","\u297F"],["dfr","\u{1D521}"],["dharl","\u21C3"],["dharr","\u21C2"],["diam","\u22C4"],["diamond","\u22C4"],["diamondsuit","\u2666"],["diams","\u2666"],["die","\xA8"],["digamma","\u03DD"],["disin","\u22F2"],["div","\xF7"],["divide","\xF7"],["divideontimes","\u22C7"],["divonx","\u22C7"],["djcy","\u0452"],["dlcorn","\u231E"],["dlcrop","\u230D"],["dollar","$"],["dopf","\u{1D555}"],["dot","\u02D9"],["doteq","\u2250"],["doteqdot","\u2251"],["dotminus","\u2238"],["dotplus","\u2214"],["dotsquare","\u22A1"],["doublebarwedge","\u2306"],["downarrow","\u2193"],["downdownarrows","\u21CA"],["downharpoonleft","\u21C3"],["downharpoonright","\u21C2"],["drbkarow","\u2910"],["drcorn","\u231F"],["drcrop","\u230C"],["dscr","\u{1D4B9}"],["dscy","\u0455"],["dsol","\u29F6"],["dstrok","\u0111"],["dtdot","\u22F1"],["dtri","\u25BF"],["dtrif","\u25BE"],["duarr","\u21F5"],["duhar","\u296F"],["dwangle","\u29A6"],["dzcy","\u045F"],["dzigrarr","\u27FF"],["eDDot","\u2A77"],["eDot","\u2251"],["eacute","\xE9"],["easter","\u2A6E"],["ecaron","\u011B"],["ecir","\u2256"],["ecirc","\xEA"],["ecolon","\u2255"],["ecy","\u044D"],["edot","\u0117"],["ee","\u2147"],["efDot","\u2252"],["efr","\u{1D522}"],["eg","\u2A9A"],["egrave","\xE8"],["egs","\u2A96"],["egsdot","\u2A98"],["el","\u2A99"],["elinters","\u23E7"],["ell","\u2113"],["els","\u2A95"],["elsdot","\u2A97"],["emacr","\u0113"],["empty","\u2205"],["emptyset","\u2205"],["emptyv","\u2205"],["emsp","\u2003"],["emsp13","\u2004"],["emsp14","\u2005"],["eng","\u014B"],["ensp","\u2002"],["eogon","\u0119"],["eopf","\u{1D556}"],["epar","\u22D5"],["eparsl","\u29E3"],["eplus","\u2A71"],["epsi","\u03B5"],["epsilon","\u03B5"],["epsiv","\u03F5"],["eqcirc","\u2256"],["eqcolon","\u2255"],["eqsim","\u2242"],["eqslantgtr","\u2A96"],["eqslantless","\u2A95"],["equals","="],["equest","\u225F"],["equiv","\u2261"],["equivDD","\u2A78"],["eqvparsl","\u29E5"],["erDot","\u2253"],["erarr","\u2971"],["escr","\u212F"],["esdot","\u2250"],["esim","\u2242"],["eta","\u03B7"],["eth","\xF0"],["euml","\xEB"],["euro","\u20AC"],["excl","!"],["exist","\u2203"],["expectation","\u2130"],["exponentiale","\u2147"],["fallingdotseq","\u2252"],["fcy","\u0444"],["female","\u2640"],["ffilig","\uFB03"],["fflig","\uFB00"],["ffllig","\uFB04"],["ffr","\u{1D523}"],["filig","\uFB01"],["fjlig","fj"],["flat","\u266D"],["fllig","\uFB02"],["fltns","\u25B1"],["fnof","\u0192"],["fopf","\u{1D557}"],["forall","\u2200"],["fork","\u22D4"],["forkv","\u2AD9"],["fpartint","\u2A0D"],["frac12","\xBD"],["frac13","\u2153"],["frac14","\xBC"],["frac15","\u2155"],["frac16","\u2159"],["frac18","\u215B"],["frac23","\u2154"],["frac25","\u2156"],["frac34","\xBE"],["frac35","\u2157"],["frac38","\u215C"],["frac45","\u2158"],["frac56","\u215A"],["frac58","\u215D"],["frac78","\u215E"],["frasl","\u2044"],["frown","\u2322"],["fscr","\u{1D4BB}"],["gE","\u2267"],["gEl","\u2A8C"],["gacute","\u01F5"],["gamma","\u03B3"],["gammad","\u03DD"],["gap","\u2A86"],["gbreve","\u011F"],["gcirc","\u011D"],["gcy","\u0433"],["gdot","\u0121"],["ge","\u2265"],["gel","\u22DB"],["geq","\u2265"],["geqq","\u2267"],["geqslant","\u2A7E"],["ges","\u2A7E"],["gescc","\u2AA9"],["gesdot","\u2A80"],["gesdoto","\u2A82"],["gesdotol","\u2A84"],["gesl","\u22DB\uFE00"],["gesles","\u2A94"],["gfr","\u{1D524}"],["gg","\u226B"],["ggg","\u22D9"],["gimel","\u2137"],["gjcy","\u0453"],["gl","\u2277"],["glE","\u2A92"],["gla","\u2AA5"],["glj","\u2AA4"],["gnE","\u2269"],["gnap","\u2A8A"],["gnapprox","\u2A8A"],["gne","\u2A88"],["gneq","\u2A88"],["gneqq","\u2269"],["gnsim","\u22E7"],["gopf","\u{1D558}"],["grave","`"],["gscr","\u210A"],["gsim","\u2273"],["gsime","\u2A8E"],["gsiml","\u2A90"],["gt",">"],["gtcc","\u2AA7"],["gtcir","\u2A7A"],["gtdot","\u22D7"],["gtlPar","\u2995"],["gtquest","\u2A7C"],["gtrapprox","\u2A86"],["gtrarr","\u2978"],["gtrdot","\u22D7"],["gtreqless","\u22DB"],["gtreqqless","\u2A8C"],["gtrless","\u2277"],["gtrsim","\u2273"],["gvertneqq","\u2269\uFE00"],["gvnE","\u2269\uFE00"],["hArr","\u21D4"],["hairsp","\u200A"],["half","\xBD"],["hamilt","\u210B"],["hardcy","\u044A"],["harr","\u2194"],["harrcir","\u2948"],["harrw","\u21AD"],["hbar","\u210F"],["hcirc","\u0125"],["hearts","\u2665"],["heartsuit","\u2665"],["hellip","\u2026"],["hercon","\u22B9"],["hfr","\u{1D525}"],["hksearow","\u2925"],["hkswarow","\u2926"],["hoarr","\u21FF"],["homtht","\u223B"],["hookleftarrow","\u21A9"],["hookrightarrow","\u21AA"],["hopf","\u{1D559}"],["horbar","\u2015"],["hscr","\u{1D4BD}"],["hslash","\u210F"],["hstrok","\u0127"],["hybull","\u2043"],["hyphen","\u2010"],["iacute","\xED"],["ic","\u2063"],["icirc","\xEE"],["icy","\u0438"],["iecy","\u0435"],["iexcl","\xA1"],["iff","\u21D4"],["ifr","\u{1D526}"],["igrave","\xEC"],["ii","\u2148"],["iiiint","\u2A0C"],["iiint","\u222D"],["iinfin","\u29DC"],["iiota","\u2129"],["ijlig","\u0133"],["imacr","\u012B"],["image","\u2111"],["imagline","\u2110"],["imagpart","\u2111"],["imath","\u0131"],["imof","\u22B7"],["imped","\u01B5"],["in","\u2208"],["incare","\u2105"],["infin","\u221E"],["infintie","\u29DD"],["inodot","\u0131"],["int","\u222B"],["intcal","\u22BA"],["integers","\u2124"],["intercal","\u22BA"],["intlarhk","\u2A17"],["intprod","\u2A3C"],["iocy","\u0451"],["iogon","\u012F"],["iopf","\u{1D55A}"],["iota","\u03B9"],["iprod","\u2A3C"],["iquest","\xBF"],["iscr","\u{1D4BE}"],["isin","\u2208"],["isinE","\u22F9"],["isindot","\u22F5"],["isins","\u22F4"],["isinsv","\u22F3"],["isinv","\u2208"],["it","\u2062"],["itilde","\u0129"],["iukcy","\u0456"],["iuml","\xEF"],["jcirc","\u0135"],["jcy","\u0439"],["jfr","\u{1D527}"],["jmath","\u0237"],["jopf","\u{1D55B}"],["jscr","\u{1D4BF}"],["jsercy","\u0458"],["jukcy","\u0454"],["kappa","\u03BA"],["kappav","\u03F0"],["kcedil","\u0137"],["kcy","\u043A"],["kfr","\u{1D528}"],["kgreen","\u0138"],["khcy","\u0445"],["kjcy","\u045C"],["kopf","\u{1D55C}"],["kscr","\u{1D4C0}"],["lAarr","\u21DA"],["lArr","\u21D0"],["lAtail","\u291B"],["lBarr","\u290E"],["lE","\u2266"],["lEg","\u2A8B"],["lHar","\u2962"],["lacute","\u013A"],["laemptyv","\u29B4"],["lagran","\u2112"],["lambda","\u03BB"],["lang","\u27E8"],["langd","\u2991"],["langle","\u27E8"],["lap","\u2A85"],["laquo","\xAB"],["larr","\u2190"],["larrb","\u21E4"],["larrbfs","\u291F"],["larrfs","\u291D"],["larrhk","\u21A9"],["larrlp","\u21AB"],["larrpl","\u2939"],["larrsim","\u2973"],["larrtl","\u21A2"],["lat","\u2AAB"],["latail","\u2919"],["late","\u2AAD"],["lates","\u2AAD\uFE00"],["lbarr","\u290C"],["lbbrk","\u2772"],["lbrace","{"],["lbrack","["],["lbrke","\u298B"],["lbrksld","\u298F"],["lbrkslu","\u298D"],["lcaron","\u013E"],["lcedil","\u013C"],["lceil","\u2308"],["lcub","{"],["lcy","\u043B"],["ldca","\u2936"],["ldquo","\u201C"],["ldquor","\u201E"],["ldrdhar","\u2967"],["ldrushar","\u294B"],["ldsh","\u21B2"],["le","\u2264"],["leftarrow","\u2190"],["leftarrowtail","\u21A2"],["leftharpoondown","\u21BD"],["leftharpoonup","\u21BC"],["leftleftarrows","\u21C7"],["leftrightarrow","\u2194"],["leftrightarrows","\u21C6"],["leftrightharpoons","\u21CB"],["leftrightsquigarrow","\u21AD"],["leftthreetimes","\u22CB"],["leg","\u22DA"],["leq","\u2264"],["leqq","\u2266"],["leqslant","\u2A7D"],["les","\u2A7D"],["lescc","\u2AA8"],["lesdot","\u2A7F"],["lesdoto","\u2A81"],["lesdotor","\u2A83"],["lesg","\u22DA\uFE00"],["lesges","\u2A93"],["lessapprox","\u2A85"],["lessdot","\u22D6"],["lesseqgtr","\u22DA"],["lesseqqgtr","\u2A8B"],["lessgtr","\u2276"],["lesssim","\u2272"],["lfisht","\u297C"],["lfloor","\u230A"],["lfr","\u{1D529}"],["lg","\u2276"],["lgE","\u2A91"],["lhard","\u21BD"],["lharu","\u21BC"],["lharul","\u296A"],["lhblk","\u2584"],["ljcy","\u0459"],["ll","\u226A"],["llarr","\u21C7"],["llcorner","\u231E"],["llhard","\u296B"],["lltri","\u25FA"],["lmidot","\u0140"],["lmoust","\u23B0"],["lmoustache","\u23B0"],["lnE","\u2268"],["lnap","\u2A89"],["lnapprox","\u2A89"],["lne","\u2A87"],["lneq","\u2A87"],["lneqq","\u2268"],["lnsim","\u22E6"],["loang","\u27EC"],["loarr","\u21FD"],["lobrk","\u27E6"],["longleftarrow","\u27F5"],["longleftrightarrow","\u27F7"],["longmapsto","\u27FC"],["longrightarrow","\u27F6"],["looparrowleft","\u21AB"],["looparrowright","\u21AC"],["lopar","\u2985"],["lopf","\u{1D55D}"],["loplus","\u2A2D"],["lotimes","\u2A34"],["lowast","\u2217"],["lowbar","_"],["loz","\u25CA"],["lozenge","\u25CA"],["lozf","\u29EB"],["lpar","("],["lparlt","\u2993"],["lrarr","\u21C6"],["lrcorner","\u231F"],["lrhar","\u21CB"],["lrhard","\u296D"],["lrm","\u200E"],["lrtri","\u22BF"],["lsaquo","\u2039"],["lscr","\u{1D4C1}"],["lsh","\u21B0"],["lsim","\u2272"],["lsime","\u2A8D"],["lsimg","\u2A8F"],["lsqb","["],["lsquo","\u2018"],["lsquor","\u201A"],["lstrok","\u0142"],["lt","<"],["ltcc","\u2AA6"],["ltcir","\u2A79"],["ltdot","\u22D6"],["lthree","\u22CB"],["ltimes","\u22C9"],["ltlarr","\u2976"],["ltquest","\u2A7B"],["ltrPar","\u2996"],["ltri","\u25C3"],["ltrie","\u22B4"],["ltrif","\u25C2"],["lurdshar","\u294A"],["luruhar","\u2966"],["lvertneqq","\u2268\uFE00"],["lvnE","\u2268\uFE00"],["mDDot","\u223A"],["macr","\xAF"],["male","\u2642"],["malt","\u2720"],["maltese","\u2720"],["map","\u21A6"],["mapsto","\u21A6"],["mapstodown","\u21A7"],["mapstoleft","\u21A4"],["mapstoup","\u21A5"],["marker","\u25AE"],["mcomma","\u2A29"],["mcy","\u043C"],["mdash","\u2014"],["measuredangle","\u2221"],["mfr","\u{1D52A}"],["mho","\u2127"],["micro","\xB5"],["mid","\u2223"],["midast","*"],["midcir","\u2AF0"],["middot","\xB7"],["minus","\u2212"],["minusb","\u229F"],["minusd","\u2238"],["minusdu","\u2A2A"],["mlcp","\u2ADB"],["mldr","\u2026"],["mnplus","\u2213"],["models","\u22A7"],["mopf","\u{1D55E}"],["mp","\u2213"],["mscr","\u{1D4C2}"],["mstpos","\u223E"],["mu","\u03BC"],["multimap","\u22B8"],["mumap","\u22B8"],["nGg","\u22D9\u0338"],["nGt","\u226B\u20D2"],["nGtv","\u226B\u0338"],["nLeftarrow","\u21CD"],["nLeftrightarrow","\u21CE"],["nLl","\u22D8\u0338"],["nLt","\u226A\u20D2"],["nLtv","\u226A\u0338"],["nRightarrow","\u21CF"],["nVDash","\u22AF"],["nVdash","\u22AE"],["nabla","\u2207"],["nacute","\u0144"],["nang","\u2220\u20D2"],["nap","\u2249"],["napE","\u2A70\u0338"],["napid","\u224B\u0338"],["napos","\u0149"],["napprox","\u2249"],["natur","\u266E"],["natural","\u266E"],["naturals","\u2115"],["nbsp","\xA0"],["nbump","\u224E\u0338"],["nbumpe","\u224F\u0338"],["ncap","\u2A43"],["ncaron","\u0148"],["ncedil","\u0146"],["ncong","\u2247"],["ncongdot","\u2A6D\u0338"],["ncup","\u2A42"],["ncy","\u043D"],["ndash","\u2013"],["ne","\u2260"],["neArr","\u21D7"],["nearhk","\u2924"],["nearr","\u2197"],["nearrow","\u2197"],["nedot","\u2250\u0338"],["nequiv","\u2262"],["nesear","\u2928"],["nesim","\u2242\u0338"],["nexist","\u2204"],["nexists","\u2204"],["nfr","\u{1D52B}"],["ngE","\u2267\u0338"],["nge","\u2271"],["ngeq","\u2271"],["ngeqq","\u2267\u0338"],["ngeqslant","\u2A7E\u0338"],["nges","\u2A7E\u0338"],["ngsim","\u2275"],["ngt","\u226F"],["ngtr","\u226F"],["nhArr","\u21CE"],["nharr","\u21AE"],["nhpar","\u2AF2"],["ni","\u220B"],["nis","\u22FC"],["nisd","\u22FA"],["niv","\u220B"],["njcy","\u045A"],["nlArr","\u21CD"],["nlE","\u2266\u0338"],["nlarr","\u219A"],["nldr","\u2025"],["nle","\u2270"],["nleftarrow","\u219A"],["nleftrightarrow","\u21AE"],["nleq","\u2270"],["nleqq","\u2266\u0338"],["nleqslant","\u2A7D\u0338"],["nles","\u2A7D\u0338"],["nless","\u226E"],["nlsim","\u2274"],["nlt","\u226E"],["nltri","\u22EA"],["nltrie","\u22EC"],["nmid","\u2224"],["nopf","\u{1D55F}"],["not","\xAC"],["notin","\u2209"],["notinE","\u22F9\u0338"],["notindot","\u22F5\u0338"],["notinva","\u2209"],["notinvb","\u22F7"],["notinvc","\u22F6"],["notni","\u220C"],["notniva","\u220C"],["notnivb","\u22FE"],["notnivc","\u22FD"],["npar","\u2226"],["nparallel","\u2226"],["nparsl","\u2AFD\u20E5"],["npart","\u2202\u0338"],["npolint","\u2A14"],["npr","\u2280"],["nprcue","\u22E0"],["npre","\u2AAF\u0338"],["nprec","\u2280"],["npreceq","\u2AAF\u0338"],["nrArr","\u21CF"],["nrarr","\u219B"],["nrarrc","\u2933\u0338"],["nrarrw","\u219D\u0338"],["nrightarrow","\u219B"],["nrtri","\u22EB"],["nrtrie","\u22ED"],["nsc","\u2281"],["nsccue","\u22E1"],["nsce","\u2AB0\u0338"],["nscr","\u{1D4C3}"],["nshortmid","\u2224"],["nshortparallel","\u2226"],["nsim","\u2241"],["nsime","\u2244"],["nsimeq","\u2244"],["nsmid","\u2224"],["nspar","\u2226"],["nsqsube","\u22E2"],["nsqsupe","\u22E3"],["nsub","\u2284"],["nsubE","\u2AC5\u0338"],["nsube","\u2288"],["nsubset","\u2282\u20D2"],["nsubseteq","\u2288"],["nsubseteqq","\u2AC5\u0338"],["nsucc","\u2281"],["nsucceq","\u2AB0\u0338"],["nsup","\u2285"],["nsupE","\u2AC6\u0338"],["nsupe","\u2289"],["nsupset","\u2283\u20D2"],["nsupseteq","\u2289"],["nsupseteqq","\u2AC6\u0338"],["ntgl","\u2279"],["ntilde","\xF1"],["ntlg","\u2278"],["ntriangleleft","\u22EA"],["ntrianglelefteq","\u22EC"],["ntriangleright","\u22EB"],["ntrianglerighteq","\u22ED"],["nu","\u03BD"],["num","#"],["numero","\u2116"],["numsp","\u2007"],["nvDash","\u22AD"],["nvHarr","\u2904"],["nvap","\u224D\u20D2"],["nvdash","\u22AC"],["nvge","\u2265\u20D2"],["nvgt",">\u20D2"],["nvinfin","\u29DE"],["nvlArr","\u2902"],["nvle","\u2264\u20D2"],["nvlt","<\u20D2"],["nvltrie","\u22B4\u20D2"],["nvrArr","\u2903"],["nvrtrie","\u22B5\u20D2"],["nvsim","\u223C\u20D2"],["nwArr","\u21D6"],["nwarhk","\u2923"],["nwarr","\u2196"],["nwarrow","\u2196"],["nwnear","\u2927"],["oS","\u24C8"],["oacute","\xF3"],["oast","\u229B"],["ocir","\u229A"],["ocirc","\xF4"],["ocy","\u043E"],["odash","\u229D"],["odblac","\u0151"],["odiv","\u2A38"],["odot","\u2299"],["odsold","\u29BC"],["oelig","\u0153"],["ofcir","\u29BF"],["ofr","\u{1D52C}"],["ogon","\u02DB"],["ograve","\xF2"],["ogt","\u29C1"],["ohbar","\u29B5"],["ohm","\u03A9"],["oint","\u222E"],["olarr","\u21BA"],["olcir","\u29BE"],["olcross","\u29BB"],["oline","\u203E"],["olt","\u29C0"],["omacr","\u014D"],["omega","\u03C9"],["omicron","\u03BF"],["omid","\u29B6"],["ominus","\u2296"],["oopf","\u{1D560}"],["opar","\u29B7"],["operp","\u29B9"],["oplus","\u2295"],["or","\u2228"],["orarr","\u21BB"],["ord","\u2A5D"],["order","\u2134"],["orderof","\u2134"],["ordf","\xAA"],["ordm","\xBA"],["origof","\u22B6"],["oror","\u2A56"],["orslope","\u2A57"],["orv","\u2A5B"],["oscr","\u2134"],["oslash","\xF8"],["osol","\u2298"],["otilde","\xF5"],["otimes","\u2297"],["otimesas","\u2A36"],["ouml","\xF6"],["ovbar","\u233D"],["par","\u2225"],["para","\xB6"],["parallel","\u2225"],["parsim","\u2AF3"],["parsl","\u2AFD"],["part","\u2202"],["pcy","\u043F"],["percnt","%"],["period","."],["permil","\u2030"],["perp","\u22A5"],["pertenk","\u2031"],["pfr","\u{1D52D}"],["phi","\u03C6"],["phiv","\u03D5"],["phmmat","\u2133"],["phone","\u260E"],["pi","\u03C0"],["pitchfork","\u22D4"],["piv","\u03D6"],["planck","\u210F"],["planckh","\u210E"],["plankv","\u210F"],["plus","+"],["plusacir","\u2A23"],["plusb","\u229E"],["pluscir","\u2A22"],["plusdo","\u2214"],["plusdu","\u2A25"],["pluse","\u2A72"],["plusmn","\xB1"],["plussim","\u2A26"],["plustwo","\u2A27"],["pm","\xB1"],["pointint","\u2A15"],["popf","\u{1D561}"],["pound","\xA3"],["pr","\u227A"],["prE","\u2AB3"],["prap","\u2AB7"],["prcue","\u227C"],["pre","\u2AAF"],["prec","\u227A"],["precapprox","\u2AB7"],["preccurlyeq","\u227C"],["preceq","\u2AAF"],["precnapprox","\u2AB9"],["precneqq","\u2AB5"],["precnsim","\u22E8"],["precsim","\u227E"],["prime","\u2032"],["primes","\u2119"],["prnE","\u2AB5"],["prnap","\u2AB9"],["prnsim","\u22E8"],["prod","\u220F"],["profalar","\u232E"],["profline","\u2312"],["profsurf","\u2313"],["prop","\u221D"],["propto","\u221D"],["prsim","\u227E"],["prurel","\u22B0"],["pscr","\u{1D4C5}"],["psi","\u03C8"],["puncsp","\u2008"],["qfr","\u{1D52E}"],["qint","\u2A0C"],["qopf","\u{1D562}"],["qprime","\u2057"],["qscr","\u{1D4C6}"],["quaternions","\u210D"],["quatint","\u2A16"],["quest","?"],["questeq","\u225F"],["quot",'"'],["rAarr","\u21DB"],["rArr","\u21D2"],["rAtail","\u291C"],["rBarr","\u290F"],["rHar","\u2964"],["race","\u223D\u0331"],["racute","\u0155"],["radic","\u221A"],["raemptyv","\u29B3"],["rang","\u27E9"],["rangd","\u2992"],["range","\u29A5"],["rangle","\u27E9"],["raquo","\xBB"],["rarr","\u2192"],["rarrap","\u2975"],["rarrb","\u21E5"],["rarrbfs","\u2920"],["rarrc","\u2933"],["rarrfs","\u291E"],["rarrhk","\u21AA"],["rarrlp","\u21AC"],["rarrpl","\u2945"],["rarrsim","\u2974"],["rarrtl","\u21A3"],["rarrw","\u219D"],["ratail","\u291A"],["ratio","\u2236"],["rationals","\u211A"],["rbarr","\u290D"],["rbbrk","\u2773"],["rbrace","}"],["rbrack","]"],["rbrke","\u298C"],["rbrksld","\u298E"],["rbrkslu","\u2990"],["rcaron","\u0159"],["rcedil","\u0157"],["rceil","\u2309"],["rcub","}"],["rcy","\u0440"],["rdca","\u2937"],["rdldhar","\u2969"],["rdquo","\u201D"],["rdquor","\u201D"],["rdsh","\u21B3"],["real","\u211C"],["realine","\u211B"],["realpart","\u211C"],["reals","\u211D"],["rect","\u25AD"],["reg","\xAE"],["rfisht","\u297D"],["rfloor","\u230B"],["rfr","\u{1D52F}"],["rhard","\u21C1"],["rharu","\u21C0"],["rharul","\u296C"],["rho","\u03C1"],["rhov","\u03F1"],["rightarrow","\u2192"],["rightarrowtail","\u21A3"],["rightharpoondown","\u21C1"],["rightharpoonup","\u21C0"],["rightleftarrows","\u21C4"],["rightleftharpoons","\u21CC"],["rightrightarrows","\u21C9"],["rightsquigarrow","\u219D"],["rightthreetimes","\u22CC"],["ring","\u02DA"],["risingdotseq","\u2253"],["rlarr","\u21C4"],["rlhar","\u21CC"],["rlm","\u200F"],["rmoust","\u23B1"],["rmoustache","\u23B1"],["rnmid","\u2AEE"],["roang","\u27ED"],["roarr","\u21FE"],["robrk","\u27E7"],["ropar","\u2986"],["ropf","\u{1D563}"],["roplus","\u2A2E"],["rotimes","\u2A35"],["rpar",")"],["rpargt","\u2994"],["rppolint","\u2A12"],["rrarr","\u21C9"],["rsaquo","\u203A"],["rscr","\u{1D4C7}"],["rsh","\u21B1"],["rsqb","]"],["rsquo","\u2019"],["rsquor","\u2019"],["rthree","\u22CC"],["rtimes","\u22CA"],["rtri","\u25B9"],["rtrie","\u22B5"],["rtrif","\u25B8"],["rtriltri","\u29CE"],["ruluhar","\u2968"],["rx","\u211E"],["sacute","\u015B"],["sbquo","\u201A"],["sc","\u227B"],["scE","\u2AB4"],["scap","\u2AB8"],["scaron","\u0161"],["sccue","\u227D"],["sce","\u2AB0"],["scedil","\u015F"],["scirc","\u015D"],["scnE","\u2AB6"],["scnap","\u2ABA"],["scnsim","\u22E9"],["scpolint","\u2A13"],["scsim","\u227F"],["scy","\u0441"],["sdot","\u22C5"],["sdotb","\u22A1"],["sdote","\u2A66"],["seArr","\u21D8"],["searhk","\u2925"],["searr","\u2198"],["searrow","\u2198"],["sect","\xA7"],["semi",";"],["seswar","\u2929"],["setminus","\u2216"],["setmn","\u2216"],["sext","\u2736"],["sfr","\u{1D530}"],["sfrown","\u2322"],["sharp","\u266F"],["shchcy","\u0449"],["shcy","\u0448"],["shortmid","\u2223"],["shortparallel","\u2225"],["shy","\xAD"],["sigma","\u03C3"],["sigmaf","\u03C2"],["sigmav","\u03C2"],["sim","\u223C"],["simdot","\u2A6A"],["sime","\u2243"],["simeq","\u2243"],["simg","\u2A9E"],["simgE","\u2AA0"],["siml","\u2A9D"],["simlE","\u2A9F"],["simne","\u2246"],["simplus","\u2A24"],["simrarr","\u2972"],["slarr","\u2190"],["smallsetminus","\u2216"],["smashp","\u2A33"],["smeparsl","\u29E4"],["smid","\u2223"],["smile","\u2323"],["smt","\u2AAA"],["smte","\u2AAC"],["smtes","\u2AAC\uFE00"],["softcy","\u044C"],["sol","/"],["solb","\u29C4"],["solbar","\u233F"],["sopf","\u{1D564}"],["spades","\u2660"],["spadesuit","\u2660"],["spar","\u2225"],["sqcap","\u2293"],["sqcaps","\u2293\uFE00"],["sqcup","\u2294"],["sqcups","\u2294\uFE00"],["sqsub","\u228F"],["sqsube","\u2291"],["sqsubset","\u228F"],["sqsubseteq","\u2291"],["sqsup","\u2290"],["sqsupe","\u2292"],["sqsupset","\u2290"],["sqsupseteq","\u2292"],["squ","\u25A1"],["square","\u25A1"],["squarf","\u25AA"],["squf","\u25AA"],["srarr","\u2192"],["sscr","\u{1D4C8}"],["ssetmn","\u2216"],["ssmile","\u2323"],["sstarf","\u22C6"],["star","\u2606"],["starf","\u2605"],["straightepsilon","\u03F5"],["straightphi","\u03D5"],["strns","\xAF"],["sub","\u2282"],["subE","\u2AC5"],["subdot","\u2ABD"],["sube","\u2286"],["subedot","\u2AC3"],["submult","\u2AC1"],["subnE","\u2ACB"],["subne","\u228A"],["subplus","\u2ABF"],["subrarr","\u2979"],["subset","\u2282"],["subseteq","\u2286"],["subseteqq","\u2AC5"],["subsetneq","\u228A"],["subsetneqq","\u2ACB"],["subsim","\u2AC7"],["subsub","\u2AD5"],["subsup","\u2AD3"],["succ","\u227B"],["succapprox","\u2AB8"],["succcurlyeq","\u227D"],["succeq","\u2AB0"],["succnapprox","\u2ABA"],["succneqq","\u2AB6"],["succnsim","\u22E9"],["succsim","\u227F"],["sum","\u2211"],["sung","\u266A"],["sup","\u2283"],["sup1","\xB9"],["sup2","\xB2"],["sup3","\xB3"],["supE","\u2AC6"],["supdot","\u2ABE"],["supdsub","\u2AD8"],["supe","\u2287"],["supedot","\u2AC4"],["suphsol","\u27C9"],["suphsub","\u2AD7"],["suplarr","\u297B"],["supmult","\u2AC2"],["supnE","\u2ACC"],["supne","\u228B"],["supplus","\u2AC0"],["supset","\u2283"],["supseteq","\u2287"],["supseteqq","\u2AC6"],["supsetneq","\u228B"],["supsetneqq","\u2ACC"],["supsim","\u2AC8"],["supsub","\u2AD4"],["supsup","\u2AD6"],["swArr","\u21D9"],["swarhk","\u2926"],["swarr","\u2199"],["swarrow","\u2199"],["swnwar","\u292A"],["szlig","\xDF"],["target","\u2316"],["tau","\u03C4"],["tbrk","\u23B4"],["tcaron","\u0165"],["tcedil","\u0163"],["tcy","\u0442"],["tdot","\u20DB"],["telrec","\u2315"],["tfr","\u{1D531}"],["there4","\u2234"],["therefore","\u2234"],["theta","\u03B8"],["thetasym","\u03D1"],["thetav","\u03D1"],["thickapprox","\u2248"],["thicksim","\u223C"],["thinsp","\u2009"],["thkap","\u2248"],["thksim","\u223C"],["thorn","\xFE"],["tilde","\u02DC"],["times","\xD7"],["timesb","\u22A0"],["timesbar","\u2A31"],["timesd","\u2A30"],["tint","\u222D"],["toea","\u2928"],["top","\u22A4"],["topbot","\u2336"],["topcir","\u2AF1"],["topf","\u{1D565}"],["topfork","\u2ADA"],["tosa","\u2929"],["tprime","\u2034"],["trade","\u2122"],["triangle","\u25B5"],["triangledown","\u25BF"],["triangleleft","\u25C3"],["trianglelefteq","\u22B4"],["triangleq","\u225C"],["triangleright","\u25B9"],["trianglerighteq","\u22B5"],["tridot","\u25EC"],["trie","\u225C"],["triminus","\u2A3A"],["triplus","\u2A39"],["trisb","\u29CD"],["tritime","\u2A3B"],["trpezium","\u23E2"],["tscr","\u{1D4C9}"],["tscy","\u0446"],["tshcy","\u045B"],["tstrok","\u0167"],["twixt","\u226C"],["twoheadleftarrow","\u219E"],["twoheadrightarrow","\u21A0"],["uArr","\u21D1"],["uHar","\u2963"],["uacute","\xFA"],["uarr","\u2191"],["ubrcy","\u045E"],["ubreve","\u016D"],["ucirc","\xFB"],["ucy","\u0443"],["udarr","\u21C5"],["udblac","\u0171"],["udhar","\u296E"],["ufisht","\u297E"],["ufr","\u{1D532}"],["ugrave","\xF9"],["uharl","\u21BF"],["uharr","\u21BE"],["uhblk","\u2580"],["ulcorn","\u231C"],["ulcorner","\u231C"],["ulcrop","\u230F"],["ultri","\u25F8"],["umacr","\u016B"],["uml","\xA8"],["uogon","\u0173"],["uopf","\u{1D566}"],["uparrow","\u2191"],["updownarrow","\u2195"],["upharpoonleft","\u21BF"],["upharpoonright","\u21BE"],["uplus","\u228E"],["upsi","\u03C5"],["upsih","\u03D2"],["upsilon","\u03C5"],["upuparrows","\u21C8"],["urcorn","\u231D"],["urcorner","\u231D"],["urcrop","\u230E"],["uring","\u016F"],["urtri","\u25F9"],["uscr","\u{1D4CA}"],["utdot","\u22F0"],["utilde","\u0169"],["utri","\u25B5"],["utrif","\u25B4"],["uuarr","\u21C8"],["uuml","\xFC"],["uwangle","\u29A7"],["vArr","\u21D5"],["vBar","\u2AE8"],["vBarv","\u2AE9"],["vDash","\u22A8"],["vangrt","\u299C"],["varepsilon","\u03F5"],["varkappa","\u03F0"],["varnothing","\u2205"],["varphi","\u03D5"],["varpi","\u03D6"],["varpropto","\u221D"],["varr","\u2195"],["varrho","\u03F1"],["varsigma","\u03C2"],["varsubsetneq","\u228A\uFE00"],["varsubsetneqq","\u2ACB\uFE00"],["varsupsetneq","\u228B\uFE00"],["varsupsetneqq","\u2ACC\uFE00"],["vartheta","\u03D1"],["vartriangleleft","\u22B2"],["vartriangleright","\u22B3"],["vcy","\u0432"],["vdash","\u22A2"],["vee","\u2228"],["veebar","\u22BB"],["veeeq","\u225A"],["vellip","\u22EE"],["verbar","|"],["vert","|"],["vfr","\u{1D533}"],["vltri","\u22B2"],["vnsub","\u2282\u20D2"],["vnsup","\u2283\u20D2"],["vopf","\u{1D567}"],["vprop","\u221D"],["vrtri","\u22B3"],["vscr","\u{1D4CB}"],["vsubnE","\u2ACB\uFE00"],["vsubne","\u228A\uFE00"],["vsupnE","\u2ACC\uFE00"],["vsupne","\u228B\uFE00"],["vzigzag","\u299A"],["wcirc","\u0175"],["wedbar","\u2A5F"],["wedge","\u2227"],["wedgeq","\u2259"],["weierp","\u2118"],["wfr","\u{1D534}"],["wopf","\u{1D568}"],["wp","\u2118"],["wr","\u2240"],["wreath","\u2240"],["wscr","\u{1D4CC}"],["xcap","\u22C2"],["xcirc","\u25EF"],["xcup","\u22C3"],["xdtri","\u25BD"],["xfr","\u{1D535}"],["xhArr","\u27FA"],["xharr","\u27F7"],["xi","\u03BE"],["xlArr","\u27F8"],["xlarr","\u27F5"],["xmap","\u27FC"],["xnis","\u22FB"],["xodot","\u2A00"],["xopf","\u{1D569}"],["xoplus","\u2A01"],["xotime","\u2A02"],["xrArr","\u27F9"],["xrarr","\u27F6"],["xscr","\u{1D4CD}"],["xsqcup","\u2A06"],["xuplus","\u2A04"],["xutri","\u25B3"],["xvee","\u22C1"],["xwedge","\u22C0"],["yacute","\xFD"],["yacy","\u044F"],["ycirc","\u0177"],["ycy","\u044B"],["yen","\xA5"],["yfr","\u{1D536}"],["yicy","\u0457"],["yopf","\u{1D56A}"],["yscr","\u{1D4CE}"],["yucy","\u044E"],["yuml","\xFF"],["zacute","\u017A"],["zcaron","\u017E"],["zcy","\u0437"],["zdot","\u017C"],["zeetrf","\u2128"],["zeta","\u03B6"],["zfr","\u{1D537}"],["zhcy","\u0436"],["zigrarr","\u21DD"],["zopf","\u{1D56B}"],["zscr","\u{1D4CF}"],["zwj","\u200D"],["zwnj","\u200C"]]),BQe=new Map([["AElig","\xC6"],["AMP","&"],["Aacute","\xC1"],["Acirc","\xC2"],["Agrave","\xC0"],["Aring","\xC5"],["Atilde","\xC3"],["Auml","\xC4"],["COPY","\xA9"],["Ccedil","\xC7"],["ETH","\xD0"],["Eacute","\xC9"],["Ecirc","\xCA"],["Egrave","\xC8"],["Euml","\xCB"],["GT",">"],["Iacute","\xCD"],["Icirc","\xCE"],["Igrave","\xCC"],["Iuml","\xCF"],["LT","<"],["Ntilde","\xD1"],["Oacute","\xD3"],["Ocirc","\xD4"],["Ograve","\xD2"],["Oslash","\xD8"],["Otilde","\xD5"],["Ouml","\xD6"],["QUOT",'"'],["REG","\xAE"],["THORN","\xDE"],["Uacute","\xDA"],["Ucirc","\xDB"],["Ugrave","\xD9"],["Uuml","\xDC"],["Yacute","\xDD"],["aacute","\xE1"],["acirc","\xE2"],["acute","\xB4"],["aelig","\xE6"],["agrave","\xE0"],["amp","&"],["aring","\xE5"],["atilde","\xE3"],["auml","\xE4"],["brvbar","\xA6"],["ccedil","\xE7"],["cedil","\xB8"],["cent","\xA2"],["copy","\xA9"],["curren","\xA4"],["deg","\xB0"],["divide","\xF7"],["eacute","\xE9"],["ecirc","\xEA"],["egrave","\xE8"],["eth","\xF0"],["euml","\xEB"],["frac12","\xBD"],["frac14","\xBC"],["frac34","\xBE"],["gt",">"],["iacute","\xED"],["icirc","\xEE"],["iexcl","\xA1"],["igrave","\xEC"],["iquest","\xBF"],["iuml","\xEF"],["laquo","\xAB"],["lt","<"],["macr","\xAF"],["micro","\xB5"],["middot","\xB7"],["nbsp","\xA0"],["not","\xAC"],["ntilde","\xF1"],["oacute","\xF3"],["ocirc","\xF4"],["ograve","\xF2"],["ordf","\xAA"],["ordm","\xBA"],["oslash","\xF8"],["otilde","\xF5"],["ouml","\xF6"],["para","\xB6"],["plusmn","\xB1"],["pound","\xA3"],["quot",'"'],["raquo","\xBB"],["reg","\xAE"],["sect","\xA7"],["shy","\xAD"],["sup1","\xB9"],["sup2","\xB2"],["sup3","\xB3"],["szlig","\xDF"],["thorn","\xFE"],["times","\xD7"],["uacute","\xFA"],["ucirc","\xFB"],["ugrave","\xF9"],["uml","\xA8"],["uuml","\xFC"],["yacute","\xFD"],["yen","\xA5"],["yuml","\xFF"]]),l6=new Map([[0,"\uFFFD"],[128,"\u20AC"],[130,"\u201A"],[131,"\u0192"],[132,"\u201E"],[133,"\u2026"],[134,"\u2020"],[135,"\u2021"],[136,"\u02C6"],[137,"\u2030"],[138,"\u0160"],[139,"\u2039"],[140,"\u0152"],[142,"\u017D"],[145,"\u2018"],[146,"\u2019"],[147,"\u201C"],[148,"\u201D"],[149,"\u2022"],[150,"\u2013"],[151,"\u2014"],[152,"\u02DC"],[153,"\u2122"],[154,"\u0161"],[155,"\u203A"],[156,"\u0153"],[158,"\u017E"],[159,"\u0178"]]),xQe=new Set([1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]);var vQe=/["&'<>`]/g;var _Qt=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,RQt=o((t,e)=>Object.hasOwn(t,e),"has"),_Qe=o((t,e)=>{if(!t)return e;let r={};for(let n in e)r[n]=RQt(t,n)?t[n]:e[n];return r},"merge"),wl=o(t=>{throw new Error(`Parse error: ${t}`)},"parseError"),NQe=o((t,e)=>t>=55296&&t<=57343||t>1114111?(e&&wl("character reference outside the permissible Unicode range"),"\uFFFD"):l6.has(t)?(e&&wl("disallowed character reference"),l6.get(t)):(e&&xQe.has(t)&&wl("disallowed character reference"),String.fromCodePoint(t)),"codePointToSymbol"),TQt=o(t=>`&#x${t.toString(16).toUpperCase()};`,"hexEscape"),DQt=o(t=>`&#${t};`,"decEscape"),rS=o((t,e)=>{e=_Qe(e,rS.options),e.strict&&wQe.test(t)&&wl("forbidden code point");let n=e.encodeEverything,i=e.useNamedReferences,s=e.allowUnsafeSymbols,a=e.decimal?DQt:TQt,c=o(l=>a(l.charCodeAt(0)),"escapeBmpSymbol");return n?(t=t.replace(CQe,l=>i&&aE.has(l)?`&${aE.get(l)};`:c(l)),i&&(t=t.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒").replace(/fj/g,"fj")),i&&(t=t.replace(c6,l=>`&${aE.get(l)};`))):i?(s||(t=t.replace(vQe,l=>`&${aE.get(l)};`)),t=t.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒"),t=t.replace(c6,l=>`&${aE.get(l)};`)):s||(t=t.replace(vQe,c)),t.replace(EQe,l=>{let u=l.charCodeAt(0),d=l.charCodeAt(1),f=(u-55296)*1024+d-56320+65536;return a(f)}).replace(bQe,c)},"encode");rS.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var RQe=o((t,e)=>{e=_Qe(e,RQe.options);let r=e.strict;return r&&_Qt.test(t)&&wl("malformed character reference"),t.replace(IQe,(n,i,s,a,c,l,u,d)=>{if(i)return SQe.get(i);if(s){let f=s,h=a;return h&&e.isAttributeValue?(r&&h=="="&&wl("`&` did not start a character reference"),n):(r&&wl("named character reference was not terminated by a semicolon"),BQe.get(f)+(h||""))}return c?(r&&!l&&wl("character reference was not terminated by a semicolon"),NQe(parseInt(c,10),r)):u?(r&&!d&&wl("character reference was not terminated by a semicolon"),NQe(parseInt(u,16),r)):(r&&wl("named character reference was not recognized"),n)})},"decode");RQe.options={isAttributeValue:!1,strict:!1};var Rt=Symbol("NOT_RESOLVED");function gi(t,e){return{tagName:t,nodeKind:"scalar",implicit:e.implicit??!1,matchByTagPrefix:e.matchByTagPrefix??!1,implicitFirstChars:e.implicitFirstChars??null,resolve:e.resolve,identify:e.identify,represent:e.represent??(r=>String(r)),representTagName:e.representTagName??(()=>t)}}o(gi,"defineScalarTag");function b6(t,e){let r=e.finalize===void 0;return{tagName:t,nodeKind:"sequence",implicit:!1,matchByTagPrefix:e.matchByTagPrefix??!1,create:e.create,addItem:e.addItem,finalize:e.finalize??(n=>n),carrierIsResult:r,identify:e.identify,represent:e.represent??(n=>n),representTagName:e.representTagName??(()=>t)}}o(b6,"defineSequenceTag");function s1(t,e){let r=e.finalize===void 0;return{tagName:t,nodeKind:"mapping",implicit:!1,matchByTagPrefix:e.matchByTagPrefix??!1,create:e.create,addPair:e.addPair,has:e.has,keys:e.keys,get:e.get,finalize:e.finalize??(n=>n),carrierIsResult:r,identify:e.identify,represent:e.represent??(n=>n),representTagName:e.representTagName??(()=>t)}}o(s1,"defineMappingTag");var kQt=gi("tag:yaml.org,2002:str",{resolve:o(t=>t,"resolve"),identify:o(t=>typeof t=="string","identify")}),PQt=["","~","null","Null","NULL"],OQt=gi("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:o(t=>PQt.indexOf(t)!==-1?null:Rt,"resolve"),identify:o(t=>t===null,"identify"),represent:o(()=>"null","represent")}),LQt=gi("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["n"],resolve:o((t,e)=>t==="null"||e&&t===""?null:Rt,"resolve"),identify:o(t=>t===null,"identify"),represent:o(()=>"null","represent")}),FQt=["","~","null","Null","NULL"],MQt=gi("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:o(t=>FQt.indexOf(t)!==-1?null:Rt,"resolve"),identify:o(t=>t===null,"identify"),represent:o(()=>"null","represent")}),UQt=["true","True","TRUE"],qQt=["false","False","FALSE"],GQt=gi("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","T","f","F"],resolve:o(t=>UQt.indexOf(t)!==-1?!0:qQt.indexOf(t)!==-1?!1:Rt,"resolve"),identify:o(t=>Object.prototype.toString.call(t)==="[object Boolean]","identify"),represent:o(t=>t?"true":"false","represent")}),HQt=["true"],zQt=["false"],VQt=gi("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","f"],resolve:o(t=>HQt.indexOf(t)!==-1?!0:zQt.indexOf(t)!==-1?!1:Rt,"resolve"),identify:o(t=>Object.prototype.toString.call(t)==="[object Boolean]","identify"),represent:o(t=>t?"true":"false","represent")}),$Qt=["true","True","TRUE","y","Y","yes","Yes","YES","on","On","ON"],jQt=["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"],WQt=gi("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["y","Y","n","N","t","T","f","F","o","O"],resolve:o(t=>$Qt.indexOf(t)!==-1?!0:jQt.indexOf(t)!==-1?!1:Rt,"resolve"),identify:o(t=>Object.prototype.toString.call(t)==="[object Boolean]","identify"),represent:o(t=>t?"true":"false","represent")}),JQt=new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"),YQt=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function KQt(t){let e=t,r=1;return(e[0]==="-"||e[0]==="+")&&(e[0]==="-"&&(r=-1),e=e.slice(1)),e.startsWith("0b")?r*parseInt(e.slice(2),2):e.startsWith("0o")?r*parseInt(e.slice(2),8):e.startsWith("0x")?r*parseInt(e.slice(2),16):r*parseInt(e,10)}o(KQt,"parseYamlInteger$2");function XQt(t,e){if(e){if(!YQt.test(t))return Rt}else if(!JQt.test(t))return Rt;let r=KQt(t);return Number.isFinite(r)?r:Rt}o(XQt,"resolveYamlInteger$2");var UQe=gi("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:XQt,identify:o(t=>Number.isInteger(t)&&!Object.is(t,-0)&&t.toString(10).indexOf("e")<0,"identify"),represent:o(t=>t.toString(10),"represent")}),ZQt=new RegExp("^-?(?:0|[1-9][0-9]*)$"),e1t=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function t1t(t){let e=t,r=1;return(e[0]==="-"||e[0]==="+")&&(e[0]==="-"&&(r=-1),e=e.slice(1)),e.startsWith("0b")?r*parseInt(e.slice(2),2):e.startsWith("0o")?r*parseInt(e.slice(2),8):e.startsWith("0x")?r*parseInt(e.slice(2),16):r*parseInt(e,10)}o(t1t,"parseYamlInteger$1");function r1t(t,e){if(e){if(!e1t.test(t))return Rt}else if(!ZQt.test(t))return Rt;let r=t1t(t);return Number.isFinite(r)?r:Rt}o(r1t,"resolveYamlInteger$1");var n1t=gi("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:r1t,identify:o(t=>Number.isInteger(t)&&!Object.is(t,-0)&&t.toString(10).indexOf("e")<0,"identify"),represent:o(t=>t.toString(10),"represent")}),i1t=new RegExp("^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$");function s1t(t){let e=t.replace(/_/g,""),r=1;if((e[0]==="-"||e[0]==="+")&&(e[0]==="-"&&(r=-1),e=e.slice(1)),e.startsWith("0b"))return r*parseInt(e.slice(2),2);if(e.startsWith("0x"))return r*parseInt(e.slice(2),16);if(e.includes(":")){let n=0;for(let i of e.split(":"))n=n*60+Number(i);return r*n}return e!=="0"&&e[0]==="0"?r*parseInt(e,8):r*parseInt(e,10)}o(s1t,"parseYamlInteger");function o1t(t){if(!i1t.test(t))return Rt;let e=s1t(t);return Number.isFinite(e)?e:Rt}o(o1t,"resolveYamlInteger");var h6=gi("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:o1t,identify:o(t=>Number.isInteger(t)&&!Object.is(t,-0)&&t.toString(10).indexOf("e")<0,"identify"),represent:o(t=>t.toString(10),"represent")}),a1t=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),c1t=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function l1t(t){if(!a1t.test(t))return Rt;let e=t.toLowerCase(),r=e[0]==="-"?-1:1;if("+-".includes(e[0])&&(e=e.slice(1)),e===".inf")return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(e===".nan")return NaN;let n=r*parseFloat(e);return Number.isFinite(n)||c1t.test(t)?n:Rt}o(l1t,"resolveYamlFloat$2");function u1t(t){if(isNaN(t))return".nan";if(t===Number.POSITIVE_INFINITY)return".inf";if(t===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(t,-0))return"-0.0";let e=t.toString(10);return/^[-+]?[0-9]+e/.test(e)?e.replace("e",".e"):e}o(u1t,"representYamlFloat$2");var qQe=gi("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:l1t,identify:o(t=>typeof t=="number"&&(!Number.isInteger(t)||Object.is(t,-0)||t.toString(10).indexOf("e")>=0),"identify"),represent:u1t}),d1t=new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"),f1t=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function h1t(t,e){if(e){if(!f1t.test(t))return Rt;let n=t.toLowerCase(),i=n[0]==="-"?-1:1;if("+-".includes(n[0])&&(n=n.slice(1)),n===".inf")return i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(n===".nan")return NaN;let s=i*parseFloat(n);return Number.isFinite(s)?s:Rt}if(!d1t.test(t))return Rt;let r=Number(t);return Number.isFinite(r)?r:Rt}o(h1t,"resolveYamlFloat$1");function p1t(t){if(isNaN(t))return".nan";if(t===Number.POSITIVE_INFINITY)return".inf";if(t===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(t,-0))return"-0.0";let e=t.toString(10);return/^[-+]?[0-9]+e/.test(e)?e.replace("e",".e"):e}o(p1t,"representYamlFloat$1");var A1t=gi("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:h1t,identify:o(t=>typeof t=="number"&&(!Number.isInteger(t)||Object.is(t,-0)||t.toString(10).indexOf("e")>=0),"identify"),represent:p1t}),m1t=new RegExp("^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),g1t=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function y1t(t){if(!m1t.test(t))return Rt;let e=t.toLowerCase().replace(/_/g,""),r=e[0]==="-"?-1:1;if("+-".includes(e[0])&&(e=e.slice(1)),e===".inf")return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(e===".nan")return NaN;let n=0;if(e.includes(":")){for(let i of e.split(":"))n=n*60+Number(i);n*=r}else n=r*parseFloat(e);return Number.isFinite(n)||g1t.test(t)?n:Rt}o(y1t,"resolveYamlFloat");function E1t(t){if(isNaN(t))return".nan";if(t===Number.POSITIVE_INFINITY)return".inf";if(t===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(t,-0))return"-0.0";let e=t.toString(10);return/^[-+]?[0-9]+e/.test(e)?e.replace("e",".e"):e}o(E1t,"representYamlFloat");var p6=gi("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:y1t,identify:o(t=>typeof t=="number"&&(!Number.isInteger(t)||Object.is(t,-0)||t.toString(10).indexOf("e")>=0),"identify"),represent:E1t}),C1t=gi("tag:yaml.org,2002:merge",{implicit:!0,implicitFirstChars:["<"],resolve:o((t,e)=>t==="<<"||e&&t===""?"<<":Rt,"resolve"),identify:o(()=>!1,"identify")}),b1t=/^[A-Za-z0-9+/]*={0,2}$/;function w1t(t){let e=t.replace(/\s/g,"");if(e.length%4!==0||!b1t.test(e))return Rt;let r=atob(e),n=new Uint8Array(r.length);for(let i=0;iObject.prototype.toString.call(t)==="[object Uint8Array]","identify"),represent:I1t}),B1t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),x1t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function TQe(t,e,r,n=0,i=0,s=0,a=0){let c=new Date(Date.UTC(t,e,r,n,i,s,a));return c.setUTCFullYear(t,e,r),c}o(TQe,"makeUtcDate");function v1t(t){let e=B1t.exec(t);if(e===null&&(e=x1t.exec(t)),e===null)return Rt;let r=+e[1],n=+e[2]-1,i=+e[3];if(!e[4]){let d=TQe(r,n,i);return d.getUTCFullYear()!==r||d.getUTCMonth()!==n||d.getUTCDate()!==i?Rt:d}let s=+e[4],a=+e[5],c=+e[6],l=0;if(s>23||a>59||c>59)return Rt;if(e[7]){let d=e[7].slice(0,3);for(;d.length<3;)d+="0";l=+d}let u=TQe(r,n,i,s,a,c,l);if(u.getUTCFullYear()!==r||u.getUTCMonth()!==n||u.getUTCDate()!==i)return Rt;if(e[9]){let d=+e[10],f=+(e[11]||0);if(d>23||f>59)return Rt;let h=(d*60+f)*6e4;u.setTime(u.getTime()-(e[9]==="-"?-h:h))}return u}o(v1t,"resolveYamlTimestamp");var N1t=gi("tag:yaml.org,2002:timestamp",{implicit:!0,implicitFirstChars:[..."0123456789"],resolve:v1t,identify:o(t=>t instanceof Date,"identify"),represent:o(t=>t.toISOString(),"represent")}),_1t=b6("tag:yaml.org,2002:seq",{create:o(()=>[],"create"),addItem:o((t,e)=>{t.push(e)},"addItem"),identify:Array.isArray});function o1(t){if(t===null||typeof t!="object"||Array.isArray(t))return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}o(o1,"isPlainObject");function R1t(t,e){let r={};for(let n of e)t[n]!==void 0&&(r[n]=t[n]);return r}o(R1t,"pick");var T1t=b6("tag:yaml.org,2002:omap",{create:o(()=>({list:[],seen:new Set}),"create"),addItem:o((t,e)=>{let r;if(e instanceof Map){if(e.size!==1)return"cannot resolve an ordered map item";r=e.keys().next().value}else if(o1(e)){let n=Object.keys(e);if(n.length!==1)return"cannot resolve an ordered map item";r=n[0]}else return"cannot resolve an ordered map item";return t.seen.has(r)?"duplicate key in ordered map":(t.seen.add(r),t.list.push(e),"")},"addItem"),finalize:o(t=>t.list,"finalize"),identify:o(()=>!1,"identify")}),D1t=b6("tag:yaml.org,2002:pairs",{create:o(()=>[],"create"),addItem:o((t,e)=>{if(e instanceof Map)return e.size!==1?"cannot resolve a pairs item":(t.push(e.entries().next().value),"");if(Object.prototype.toString.call(e)!=="[object Object]")return"cannot resolve a pairs item";let r=e,n=Object.keys(r);return n.length!==1?"cannot resolve a pairs item":(t.push([n[0],r[n[0]]]),"")},"addItem"),identify:o(()=>!1,"identify")}),Q1t=s1("tag:yaml.org,2002:map",{create:o(()=>({}),"create"),identify:o1,represent:o(t=>{let e=new Map;for(let r of Object.keys(t))e.set(r,t[r]);return e},"represent"),addPair:o((t,e,r)=>{if(e!==null&&typeof e=="object")return"object-based map does not support complex keys";let n=String(e);return n==="__proto__"?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,""},"addPair"),has:o((t,e)=>e!==null&&typeof e=="object"?!1:Object.prototype.hasOwnProperty.call(t,String(e)),"has"),keys:o(t=>Object.keys(t),"keys"),get:o((t,e)=>{let r=String(e);return Object.prototype.hasOwnProperty.call(t,r)?t[r]:null},"get")}),k1t=s1("tag:yaml.org,2002:set",{create:o(()=>new Set,"create"),identify:o(t=>t instanceof Set,"identify"),represent:o(t=>{let e=new Map;for(let r of t)e.set(r,null);return e},"represent"),addPair:o((t,e,r)=>r!==null?"cannot resolve a set item":(t.add(e),""),"addPair"),has:o((t,e)=>t.has(e),"has"),keys:o(t=>t.keys(),"keys"),get:o(()=>null,"get")});function P1t(){return{scalar:Object.create(null),sequence:Object.create(null),mapping:Object.create(null)}}o(P1t,"createTagDefinitionMap");function O1t(){return{scalar:[],sequence:[],mapping:[]}}o(O1t,"createTagDefinitionListMap");function L1t(t){let e=[];for(let r of t){let n=e.length;for(let i=0;id.implicitFirstChars===null),c=new Set;for(let d of n)if(d.implicitFirstChars!==null)for(let f of d.implicitFirstChars)c.add(f);let l=new Map;for(let d of c)l.set(d,n.filter(f=>f.implicitFirstChars===null||f.implicitFirstChars.indexOf(d)!==-1));let u=i.scalar["tag:yaml.org,2002:str"];if(!u)throw new Error("schema does not define the default scalar tag (tag:yaml.org,2002:str)");this.tags=r,this.implicitScalarTags=n,this.implicitScalarByFirstChar=l,this.implicitScalarAnyFirstChar=a,this.defaultScalarTag=u,this.defaultSequenceTag=i.sequence["tag:yaml.org,2002:seq"],this.defaultMappingTag=i.mapping["tag:yaml.org,2002:map"],this.exact=i,this.prefix=s}lookupScalarTag(e){let r=this.exact.scalar[e];if(r)return r;for(let n of this.prefix.scalar)if(e.startsWith(n.tagName))return n}lookupSequenceTag(e){let r=this.exact.sequence[e];if(r)return r;for(let n of this.prefix.sequence)if(e.startsWith(n.tagName))return n}lookupMappingTag(e){let r=this.exact.mapping[e];if(r)return r;for(let n of this.prefix.mapping)if(e.startsWith(n.tagName))return n}resolveImplicitScalarTag(e){let r=this.implicitScalarByFirstChar.get(e.charAt(0))??this.implicitScalarAnyFirstChar;for(let i of r){let s=i.resolve(e,!1,i.tagName);if(s!==Rt)return{value:s,tag:i}}let n=this.defaultScalarTag;return{value:n.resolve(e,!1,n.tagName),tag:n}}withTags(...e){let r=[];for(let n of e)r=r.concat(n);return new GQe([...this.tags,...r])}},w6=new a1([kQt,_1t,Q1t]),PRr=new a1([...w6.tags,LQt,VQt,n1t,A1t]),F1t=new a1([...w6.tags,OQt,GQt,UQe,qQe]),M1t=new a1([...w6.tags,MQt,WQt,h6,p6,N1t,C1t,S1t,T1t,D1t,k1t]),U1t=M1t.withTags({...h6,resolve:o((t,e,r)=>{let n=h6.resolve(t,e,r);return n===Rt?UQe.resolve(t,e,r):n},"resolve")},{...p6,resolve:o((t,e,r)=>{let n=p6.resolve(t,e,r);return n===Rt?qQe.resolve(t,e,r):n},"resolve")}),ORr=s1("tag:yaml.org,2002:map",{create:o(()=>new Map,"create"),addPair:o((t,e,r)=>(t.set(e,r),""),"addPair"),has:o((t,e)=>t.has(e),"has"),keys:o(t=>t.keys(),"keys"),get:o((t,e)=>t.get(e),"get"),identify:o(t=>t instanceof Map||o1(t),"identify"),represent:o(t=>{if(t instanceof Map)return t;let e=new Map,r=t;for(let n of Object.keys(r))e.set(n,r[n]);return e},"represent")});function DQe(t){if(Array.isArray(t)){let e=Array.prototype.slice.call(t);for(let r=0;r({}),"create"),identify:o1,represent:o(t=>{let e=new Map;for(let r of Object.keys(t))e.set(r,t[r]);return e},"represent"),addPair:o((t,e,r)=>{let n=DQe(e);return n===null?"nested arrays are not supported inside keys":(n==="__proto__"?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,"")},"addPair"),has:o((t,e)=>{let r=DQe(e);return r!==null&&Object.prototype.hasOwnProperty.call(t,r)},"has"),keys:o(t=>Object.keys(t),"keys"),get:o((t,e)=>{let r=String(e);return Object.prototype.hasOwnProperty.call(t,r)?t[r]:null},"get")}),q1t={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function u6(t,e,r,n,i){let s="",a="",c=Math.floor(i/2)-1;return n-e>c&&(s=" ... ",e=n-c+s.length),r-n>c&&(a=" ...",r=n+c-a.length),{str:s+t.slice(e,r).replace(/\t/g,"\u2192")+a,pos:n-e+s.length}}o(u6,"getLine");function d6(t,e){return" ".repeat(Math.max(e-t.length,0))+t}o(d6,"padStart");function G1t(t,e){if(!t.buffer)return null;let r={...q1t,...e},n=/\r?\n|\r|\0/g,i=[0],s=[],a,c=-1;for(;a=n.exec(t.buffer);)s.push(a.index),i.push(a.index+a[0].length),t.position<=a.index&&c<0&&(c=i.length-2);c<0&&(c=i.length-1);let l="",u=Math.min(t.line+r.linesAfter,s.length).toString().length,d=r.maxLength-(r.indent+u+3);for(let h=1;h<=r.linesBefore&&!(c-h<0);h++){let p=u6(t.buffer,i[c-h],s[c-h],t.position-(i[c]-i[c-h]),d);l=`${" ".repeat(r.indent)}${d6((t.line-h+1).toString(),u)} | ${p.str} +${l}`}let f=u6(t.buffer,i[c],s[c],t.position,d);l+=`${" ".repeat(r.indent)}${d6((t.line+1).toString(),u)} | ${f.str} `,l+=`${"-".repeat(r.indent+u+3+f.pos)}^ -`;for(let h=1;h<=r.linesAfter&&!(c+h>=s.length);h++){let p=lJ(t.buffer,i[c+h],s[c+h],t.position-(i[c]-i[c+h]),d);l+=`${" ".repeat(r.indent)}${uJ((t.line+h+1).toString(),u)} | ${p.str} -`}return l.replace(/\n$/,"")}o(M1t,"makeSnippet");function DQe(t,e){let r="";return t.mark?(t.mark.name&&(r+=`in "${t.mark.name}" `),r+=`(${t.mark.line+1}:${t.mark.column+1})`,!e&&t.mark.snippet&&(r+=` - -${t.mark.snippet}`),`${t.reason} ${r}`):t.reason}o(DQe,"formatError");var U1t=class qQe extends Error{static{o(this,"YAMLException")}reason;mark;constructor(e,r){super(),this.name="YAMLException",this.reason=e,this.mark=r,this.message=DQe(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${DQe(this,e)}`}static throwAt(e,r,n,i=""){let s=0,a=0;for(let l=0;l`}o(GQe,"tagNameShort");var H1t={filename:"",schema:P1t,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};var pJ=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,HQe=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,P_r=new RegExp(`^(?:${pJ})*$`),O_r=new RegExp(`^(?:${HQe})+$`),L_r=new RegExp(`^(?:!(?:${pJ})*|${HQe}(?:${pJ})*)$`),z1t={filename:"",maxDepth:100};var F_r={...z1t,...H1t};var rA=Symbol("INVALID");function V1t(t){let e=new Set([t.defaultScalarTag,t.defaultSequenceTag,t.defaultMappingTag].filter(s=>s!==void 0)),r=t.implicitScalarTags,n=t.tags.filter(s=>!(s.nodeKind==="scalar"&&s.implicit)&&!e.has(s)),i=t.tags.filter(s=>e.has(s));return[...r.map(s=>({tag:s,implicitTag:!0})),...n.map(s=>({tag:s,implicitTag:!1})),...i.map(s=>({tag:s,implicitTag:!0}))]}o(V1t,"buildRepresentTypes");function $1t(t,e){for(let r=0,n=t.representTypes.length;ri&&u[0]!==" "&&/ [^ \t]/.test(u)&&(a=!0),l===-1)break;s=l+1}a?t.style=rt.FOLDED_BLOCK:r&&(t.style=rt.LITERAL_BLOCK)}o(Z1t,"tryLongOrMultilineAsBlock");function ekt(t){t.style===rt.PLAIN&&!a1(t.allowedStylesMask,rt.PLAIN)&&(t.style=VQe(t))}o(ekt,"quoteInvalidPlain");function tkt(t){a1(t.allowedStylesMask,t.style)||(t.style=rt.DOUBLE_QUOTED)}o(tkt,"fallbackToDoubleQuoted");function rS(t,e){return t|1<'\"%@`]",skt="[,\\[\\]{}]",AJ=c1,mJ=`(?:(?!${skt})${c1})`,okt=`(?:(?:(?!${WQe})${c1})|[?:-](?=${AJ}))`,akt=`(?:(?:(?!${WQe})${c1})|[?:-](?=${mJ}))`,JQe=`(?:(?:(?![:#])${AJ})|:(?=${AJ}))#*`,YQe=`(?:(?:(?![:#])${mJ})|:(?=${mJ}))#*`,KQe=`(?:${IJ}*${JQe})*`,XQe=`(?:${IJ}*${YQe})*`,ZQe=`${okt}#*${KQe}`,e1e=`${akt}#*${XQe}`,ckt=ZQe,lkt=e1e,ukt=`\\n+${JQe}${KQe}`,dkt=`\\n+${YQe}${XQe}`,fkt=`${ZQe}(?:${ukt})*`,hkt=`${e1e}(?:${dkt})*`,pkt=new RegExp(`^(?:${fkt})$`,"u"),Akt=new RegExp(`^(?:${hkt})$`,"u"),mkt=new RegExp(`^(?:${ckt})$`,"u"),gkt=new RegExp(`^(?:${lkt})$`,"u"),ykt=new RegExp(`^(?:${jQe})*$`,"u"),Ekt=new RegExp(`^(?:${jQe}|\\n)*$`,"u"),Ckt=new RegExp(`^(?:${$Qe}|\\n)*$`,"u"),bkt=/^(?:---|\.\.\.)(?=$|[ \t\n\r])/,SJ=/^(?:---|\.\.\.)(?=$|[ \t\n\r])/m;function wkt(t){let e=t.node.value;if(e!==""){if(!(t.isKey?t.flowOnly?gkt:mkt:t.flowOnly?Akt:pkt).test(e)||t.shiftOfFirstLine===0&&bkt.test(e))return!1;if(t.shiftOfContent===0){let n=e.indexOf(` -`);if(n!==-1){let i=e.slice(n+1);if(SJ.test(i))return!1}}}let r=t.presenterOptions.schema.resolveImplicitScalarTag(e).tag.tagName;return!(!t.node.tagged&&r!==t.node.tag||!t.node.tagged&&e==="="&&r===t.presenterOptions.schema.defaultScalarTag.tagName)}o(wkt,"canUsePlain");function Ikt(t){let e=t.node.value;if(!(t.isKey?ykt:Ekt).test(e)||/[ \t]\n|\n[ \t]/.test(e))return!1;if(!t.isKey&&t.shiftOfContent===0){let r=e.indexOf(` -`);if(r!==-1&&SJ.test(e.slice(r+1)))return!1}return!0}o(Ikt,"canUseSingleQuoted");function Skt(t){if(t.flowOnly||!Ckt.test(t.node.value))return!1;let e=t.shiftOfContent-t.shiftOfParent;return!(e<1||e>9&&/^\n* /.test(t.node.value)||t.shiftOfContent===0&&SJ.test(t.node.value))}o(Skt,"canUseBlock");function Bkt(t){let e=rS(0,rt.DOUBLE_QUOTED);wkt(t)&&(e=rS(e,rt.PLAIN)),Ikt(t)&&(e=rS(e,rt.SINGLE_QUOTED)),Skt(t)&&(e=rS(rS(e,rt.LITERAL_BLOCK),rt.FOLDED_BLOCK)),t.allowedStylesMask=e}o(Bkt,"detectAllowedStyles");function xkt(t){switch(t.style){case rt.PLAIN:return vkt(t);case rt.SINGLE_QUOTED:return Nkt(t);case rt.LITERAL_BLOCK:return Rkt(t);case rt.FOLDED_BLOCK:return _kt(t);case rt.DOUBLE_QUOTED:return Tkt(t)}}o(xkt,"renderScalar");function vkt(t){return t1e(t.node.value,t.shiftOfContent)}o(vkt,"renderPlain");function Nkt(t){return`'${t1e(t.node.value,t.shiftOfContent).replace(/'/g,"''")}'`}o(Nkt,"renderSingleQuoted");function Rkt(t){let e=t.node.value;return"|"+n1e(e,t.shiftOfParent,t.shiftOfContent)+i1e(r1e(e,t.shiftOfContent))}o(Rkt,"renderLiteralBlock");function _kt(t){let e=t.node.value,r=t.presenterOptions.lineWidth,n=1/0;return r!==-1&&(n=Math.max(Math.min(r,40),r-t.shiftOfContent)),">"+n1e(e,t.shiftOfParent,t.shiftOfContent)+i1e(r1e(Qkt(e,n),t.shiftOfContent))}o(_kt,"renderFoldedBlock");function Tkt(t){return`"${Okt(t.node.value)}"`}o(Tkt,"renderDoubleQuoted");function t1e(t,e){let r=t.indexOf(` +`;for(let h=1;h<=r.linesAfter&&!(c+h>=s.length);h++){let p=u6(t.buffer,i[c+h],s[c+h],t.position-(i[c]-i[c+h]),d);l+=`${" ".repeat(r.indent)}${d6((t.line+h+1).toString(),u)} | ${p.str} +`}return l.replace(/\n$/,"")}o(G1t,"makeSnippet");function QQe(t,e){let r="";return t.mark?(t.mark.name&&(r+=`in "${t.mark.name}" `),r+=`(${t.mark.line+1}:${t.mark.column+1})`,!e&&t.mark.snippet&&(r+=` + +${t.mark.snippet}`),`${t.reason} ${r}`):t.reason}o(QQe,"formatError");var H1t=class HQe extends Error{static{o(this,"YAMLException")}reason;mark;constructor(e,r){super(),this.name="YAMLException",this.reason=e,this.mark=r,this.message=QQe(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${QQe(this,e)}`}static throwAt(e,r,n,i=""){let s=0,a=0;for(let l=0;l>4]+PQe[t&15]}o(Il,"percentByte");function f6(t,e){let r=e?zQe:$1t,n="";for(let i=0;i=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||r.includes(t[i])){n+=t[i];continue}s>=55296&&s<=56319&&(s=65536+((s&1023)<<10)+(t.charCodeAt(++i)&1023)),s<128?n+=Il(s):s<2048?n+=Il(192|s>>6)+Il(128|s&63):s<65536?n+=Il(224|s>>12)+Il(128|s>>6&63)+Il(128|s&63):n+=Il(240|s>>18)+Il(128|s>>12&63)+Il(128|s>>6&63)+Il(128|s&63)}return n}o(f6,"tagPercentEncode");function VQe(t){let e=t;return e.charCodeAt(0)===33?(e=e.slice(1),`!${f6(e,!0)}`):e.slice(0,18)==="tag:yaml.org,2002:"?`!!${f6(e.slice(18),!0)}`:`!<${f6(e,!1)}>`}o(VQe,"tagNameShort");var j1t={filename:"",schema:F1t,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};var A6=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,$Qe=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,MRr=new RegExp(`^(?:${A6})*$`),URr=new RegExp(`^(?:${$Qe})+$`),qRr=new RegExp(`^(?:!(?:${A6})*|${$Qe}(?:${A6})*)$`),W1t={filename:"",maxDepth:100};var GRr={...W1t,...j1t};var nA=Symbol("INVALID");function J1t(t){let e=new Set([t.defaultScalarTag,t.defaultSequenceTag,t.defaultMappingTag].filter(s=>s!==void 0)),r=t.implicitScalarTags,n=t.tags.filter(s=>!(s.nodeKind==="scalar"&&s.implicit)&&!e.has(s)),i=t.tags.filter(s=>e.has(s));return[...r.map(s=>({tag:s,implicitTag:!0})),...n.map(s=>({tag:s,implicitTag:!1})),...i.map(s=>({tag:s,implicitTag:!0}))]}o(J1t,"buildRepresentTypes");function Y1t(t,e){for(let r=0,n=t.representTypes.length;ri&&u[0]!==" "&&/ [^ \t]/.test(u)&&(a=!0),l===-1)break;s=l+1}a?t.style=rt.FOLDED_BLOCK:r&&(t.style=rt.LITERAL_BLOCK)}o(nkt,"tryLongOrMultilineAsBlock");function ikt(t){t.style===rt.PLAIN&&!c1(t.allowedStylesMask,rt.PLAIN)&&(t.style=WQe(t))}o(ikt,"quoteInvalidPlain");function skt(t){c1(t.allowedStylesMask,t.style)||(t.style=rt.DOUBLE_QUOTED)}o(skt,"fallbackToDoubleQuoted");function nS(t,e){return t|1<'\"%@`]",lkt="[,\\[\\]{}]",m6=l1,g6=`(?:(?!${lkt})${l1})`,ukt=`(?:(?:(?!${KQe})${l1})|[?:-](?=${m6}))`,dkt=`(?:(?:(?!${KQe})${l1})|[?:-](?=${g6}))`,XQe=`(?:(?:(?![:#])${m6})|:(?=${m6}))#*`,ZQe=`(?:(?:(?![:#])${g6})|:(?=${g6}))#*`,e1e=`(?:${S6}*${XQe})*`,t1e=`(?:${S6}*${ZQe})*`,r1e=`${ukt}#*${e1e}`,n1e=`${dkt}#*${t1e}`,fkt=r1e,hkt=n1e,pkt=`\\n+${XQe}${e1e}`,Akt=`\\n+${ZQe}${t1e}`,mkt=`${r1e}(?:${pkt})*`,gkt=`${n1e}(?:${Akt})*`,ykt=new RegExp(`^(?:${mkt})$`,"u"),Ekt=new RegExp(`^(?:${gkt})$`,"u"),Ckt=new RegExp(`^(?:${fkt})$`,"u"),bkt=new RegExp(`^(?:${hkt})$`,"u"),wkt=new RegExp(`^(?:${YQe})*$`,"u"),Ikt=new RegExp(`^(?:${YQe}|\\n)*$`,"u"),Skt=new RegExp(`^(?:${JQe}|\\n)*$`,"u"),Bkt=/^(?:---|\.\.\.)(?=$|[ \t\n\r])/,B6=/^(?:---|\.\.\.)(?=$|[ \t\n\r])/m;function xkt(t){let e=t.node.value;if(e!==""){if(!(t.isKey?t.flowOnly?bkt:Ckt:t.flowOnly?Ekt:ykt).test(e)||t.shiftOfFirstLine===0&&Bkt.test(e))return!1;if(t.shiftOfContent===0){let n=e.indexOf(` +`);if(n!==-1){let i=e.slice(n+1);if(B6.test(i))return!1}}}let r=t.presenterOptions.schema.resolveImplicitScalarTag(e).tag.tagName;return!(!t.node.tagged&&r!==t.node.tag||!t.node.tagged&&e==="="&&r===t.presenterOptions.schema.defaultScalarTag.tagName)}o(xkt,"canUsePlain");function vkt(t){let e=t.node.value;if(!(t.isKey?wkt:Ikt).test(e)||/[ \t]\n|\n[ \t]/.test(e))return!1;if(!t.isKey&&t.shiftOfContent===0){let r=e.indexOf(` +`);if(r!==-1&&B6.test(e.slice(r+1)))return!1}return!0}o(vkt,"canUseSingleQuoted");function Nkt(t){if(t.flowOnly||!Skt.test(t.node.value))return!1;let e=t.shiftOfContent-t.shiftOfParent;return!(e<1||e>9&&/^\n* /.test(t.node.value)||t.shiftOfContent===0&&B6.test(t.node.value))}o(Nkt,"canUseBlock");function _kt(t){let e=nS(0,rt.DOUBLE_QUOTED);xkt(t)&&(e=nS(e,rt.PLAIN)),vkt(t)&&(e=nS(e,rt.SINGLE_QUOTED)),Nkt(t)&&(e=nS(nS(e,rt.LITERAL_BLOCK),rt.FOLDED_BLOCK)),t.allowedStylesMask=e}o(_kt,"detectAllowedStyles");function Rkt(t){switch(t.style){case rt.PLAIN:return Tkt(t);case rt.SINGLE_QUOTED:return Dkt(t);case rt.LITERAL_BLOCK:return Qkt(t);case rt.FOLDED_BLOCK:return kkt(t);case rt.DOUBLE_QUOTED:return Pkt(t)}}o(Rkt,"renderScalar");function Tkt(t){return i1e(t.node.value,t.shiftOfContent)}o(Tkt,"renderPlain");function Dkt(t){return`'${i1e(t.node.value,t.shiftOfContent).replace(/'/g,"''")}'`}o(Dkt,"renderSingleQuoted");function Qkt(t){let e=t.node.value;return"|"+o1e(e,t.shiftOfParent,t.shiftOfContent)+a1e(s1e(e,t.shiftOfContent))}o(Qkt,"renderLiteralBlock");function kkt(t){let e=t.node.value,r=t.presenterOptions.lineWidth,n=1/0;return r!==-1&&(n=Math.max(Math.min(r,40),r-t.shiftOfContent)),">"+o1e(e,t.shiftOfParent,t.shiftOfContent)+a1e(s1e(Lkt(e,n),t.shiftOfContent))}o(kkt,"renderFoldedBlock");function Pkt(t){return`"${Ukt(t.node.value)}"`}o(Pkt,"renderDoubleQuoted");function i1e(t,e){let r=t.indexOf(` `);if(r===-1)return t;let n=" ".repeat(e),i=t.slice(0,r),s=/(\n+)([^\n]*)/g;s.lastIndex=r;let a;for(;a=s.exec(t);){let c=a[1].length,l=a[2];i+=` -`.repeat(c+1)+n+l}return i}o(t1e,"encodeFlowBreaks");function r1e(t,e){let r=" ".repeat(e),n=0,i="",s=t.length;for(;ne&&(s=a>i?a:c,l+=` +`}o(o1e,"blockHeader");function a1e(t){return t[t.length-1]===` +`?t.slice(0,-1):t}o(a1e,"dropEndingNewline");function y6(t){return t===" "||t===" "}o(y6,"isMoreIndented");function FQe(t,e){if(t===""||y6(t[0]))return t;let r=/ [^ \t]/g,n,i=0,s,a=0,c=0,l="";for(;n=r.exec(t);)c=n.index,c-i>e&&(s=a>i?a:c,l+=` ${t.slice(i,s)}`,i=s+1),a=c;return l+=` `,t.length-i>e&&a>i?l+=`${t.slice(i,a)} -${t.slice(a+1)}`:l+=t.slice(i),l.slice(1)}o(OQe,"foldLine");function Qkt(t,e){let r=/(\n+)([^\n]*)/g,n=t.indexOf(` -`);n===-1&&(n=t.length),r.lastIndex=n;let i=OQe(t.slice(0,n),e),s=t[0]===` -`||gJ(t[0]),a,c;for(;c=r.exec(t);){let l=c[1],u=c[2];a=u!==""&&gJ(u[0]),i+=l+(!s&&!a&&u!==""?` -`:"")+OQe(u,e),s=a}return i}o(Qkt,"foldBlockScalar");var kkt=/["\\\x00-\x1F\x7F-\xA0\u2028\u2029\uD800-\uDFFF\uFEFF\uFFFE\uFFFF]/gu;function Pkt(t){switch(t){case"\0":return"\\0";case"\x07":return"\\a";case"\b":return"\\b";case" ":return"\\t";case` -`:return"\\n";case"\v":return"\\v";case"\f":return"\\f";case"\r":return"\\r";case"\x1B":return"\\e";case'"':return'\\"';case"\\":return"\\\\";case"\x85":return"\\N";case"\xA0":return"\\_";case"\u2028":return"\\L";case"\u2029":return"\\P"}let e=t.charCodeAt(0),r=e.toString(16).toUpperCase();return e<=255?`\\x${"0".repeat(2-r.length)}${r}`:`\\u${"0".repeat(4-r.length)}${r}`}o(Pkt,"escapeCharacter");function Okt(t){return t.replace(kkt,Pkt)}o(Okt,"escapeString");var n1=10,BJ={indent:2,seqNoIndent:!1,seqInlineFirst:!0,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:"single",forceQuotes:!1,scalarStyleRules:Object.keys(PQe).map(t=>Reflect.get(PQe,t)),tagBeforeAnchor:!1};function Lkt(t){return t.tagged?t.tag:GQe(t.tag)}o(Lkt,"nodeTagShort");function Fkt(t){let e={...BJ,...t};return e.flowSkipColonSpace&&(e.quoteFlowKeys=!0),{...e,defaultScalarTagName:e.schema.defaultScalarTag.tagName,openEnded:!1}}o(Fkt,"createPresenterState");function yJ(t,e){return` -${" ".repeat(t.indent*e)}`}o(yJ,"generateNextLine");function Mkt(t,e,r,n,i,s){return{node:e,parent:r,level:n,isKey:i,flowOnly:s,shiftOfParent:n===0?-1:t.indent*(n-1),shiftOfContent:t.indent*Math.max(1,n),shiftOfFirstLine:n===0?0:t.indent*n,presenterOptions:t,allowedStylesMask:0,style:e.style}}o(Mkt,"scalarLayout");function Ukt(t,e,r){let n="";for(let s=0,a=r.items.length;s0&&(n+=`,${t.flowSkipCommaSpace?"":" "}`),n+=c}let i=t.flowBracketPadding&&r.items.length>0?" ":"";return`[${i}${n}${i}]`}o(Ukt,"writeFlowSequence");function LQe(t,e,r,n){let i="";for(let s=0,a=r.items.length;s1024&&/^[\s\S]{1025}/u.test(h),A=d||p||m;A&&(h&&n1===h.charCodeAt(0)?c+="?":c+="? "),c+=h,A&&(c+=yJ(t,e));let E=Hu(t,e+1,u,r,{block:!0,compact:A,isblockseq:A&&!EJ(t,u,e+1)}).text,y=l.kind==="scalar"&&f.noBody&&(l.tagged||l.anchor!==void 0),C=!A&&(l.kind==="alias"||y)?" ":"";E===""||n1===E.charCodeAt(0)?c+=`${C}:`:c+=`${C}: `,c+=E,i+=c}return i}o(Gkt,"writeBlockMapping");function EJ(t,e,r){return e.kind==="alias"?!0:e.tagged||e.anchor!==void 0||t.indent<2&&r>0}o(EJ,"cannotBeCompact");function Hu(t,e,r,n,i){if(r.kind==="alias")return t.openEnded=!1,{text:`*${r.anchor}`,noBody:!1};let{block:s=!1,iskey:a=!1,isblockseq:c=!1}=i,l=i.compact??!1,u=r.anchor!==void 0;EJ(t,r,e)&&(l=!1);let d,f=r.tagged,h=s&&(r.kind==="mapping"||r.kind==="sequence")&&r.style===Sf.BLOCK&&r.items.length!==0;if(r.kind==="mapping")h?d=Gkt(t,e,r,l):d=qkt(t,e,r);else if(r.kind==="sequence")h?t.seqNoIndent&&!c&&e>0?d=LQe(t,e-1,r,l):d=LQe(t,e,r,l):d=Ukt(t,e,r);else{let A=Mkt(t,r,n,e,a,!s);Bkt(A);for(let E of t.scalarStyleRules)E(A);d=xkt(A),t.openEnded=(A.style===rt.LITERAL_BLOCK||A.style===rt.FOLDED_BLOCK)&&(r.value===` +${t.slice(a+1)}`:l+=t.slice(i),l.slice(1)}o(FQe,"foldLine");function Lkt(t,e){let r=/(\n+)([^\n]*)/g,n=t.indexOf(` +`);n===-1&&(n=t.length),r.lastIndex=n;let i=FQe(t.slice(0,n),e),s=t[0]===` +`||y6(t[0]),a,c;for(;c=r.exec(t);){let l=c[1],u=c[2];a=u!==""&&y6(u[0]),i+=l+(!s&&!a&&u!==""?` +`:"")+FQe(u,e),s=a}return i}o(Lkt,"foldBlockScalar");var Fkt=/["\\\x00-\x1F\x7F-\xA0\u2028\u2029\uD800-\uDFFF\uFEFF\uFFFE\uFFFF]/gu;function Mkt(t){switch(t){case"\0":return"\\0";case"\x07":return"\\a";case"\b":return"\\b";case" ":return"\\t";case` +`:return"\\n";case"\v":return"\\v";case"\f":return"\\f";case"\r":return"\\r";case"\x1B":return"\\e";case'"':return'\\"';case"\\":return"\\\\";case"\x85":return"\\N";case"\xA0":return"\\_";case"\u2028":return"\\L";case"\u2029":return"\\P"}let e=t.charCodeAt(0),r=e.toString(16).toUpperCase();return e<=255?`\\x${"0".repeat(2-r.length)}${r}`:`\\u${"0".repeat(4-r.length)}${r}`}o(Mkt,"escapeCharacter");function Ukt(t){return t.replace(Fkt,Mkt)}o(Ukt,"escapeString");var i1=10,x6={indent:2,seqNoIndent:!1,seqInlineFirst:!0,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:"single",forceQuotes:!1,scalarStyleRules:Object.keys(LQe).map(t=>Reflect.get(LQe,t)),tagBeforeAnchor:!1};function qkt(t){return t.tagged?t.tag:VQe(t.tag)}o(qkt,"nodeTagShort");function Gkt(t){let e={...x6,...t};return e.flowSkipColonSpace&&(e.quoteFlowKeys=!0),{...e,defaultScalarTagName:e.schema.defaultScalarTag.tagName,openEnded:!1}}o(Gkt,"createPresenterState");function E6(t,e){return` +${" ".repeat(t.indent*e)}`}o(E6,"generateNextLine");function Hkt(t,e,r,n,i,s){return{node:e,parent:r,level:n,isKey:i,flowOnly:s,shiftOfParent:n===0?-1:t.indent*(n-1),shiftOfContent:t.indent*Math.max(1,n),shiftOfFirstLine:n===0?0:t.indent*n,presenterOptions:t,allowedStylesMask:0,style:e.style}}o(Hkt,"scalarLayout");function zkt(t,e,r){let n="";for(let s=0,a=r.items.length;s0&&(n+=`,${t.flowSkipCommaSpace?"":" "}`),n+=c}let i=t.flowBracketPadding&&r.items.length>0?" ":"";return`[${i}${n}${i}]`}o(zkt,"writeFlowSequence");function MQe(t,e,r,n){let i="";for(let s=0,a=r.items.length;s1024&&/^[\s\S]{1025}/u.test(h),A=d||p||m;A&&(h&&i1===h.charCodeAt(0)?c+="?":c+="? "),c+=h,A&&(c+=E6(t,e));let E=zu(t,e+1,u,r,{block:!0,compact:A,isblockseq:A&&!C6(t,u,e+1)}).text,y=l.kind==="scalar"&&f.noBody&&(l.tagged||l.anchor!==void 0),C=!A&&(l.kind==="alias"||y)?" ":"";E===""||i1===E.charCodeAt(0)?c+=`${C}:`:c+=`${C}: `,c+=E,i+=c}return i}o($kt,"writeBlockMapping");function C6(t,e,r){return e.kind==="alias"?!0:e.tagged||e.anchor!==void 0||t.indent<2&&r>0}o(C6,"cannotBeCompact");function zu(t,e,r,n,i){if(r.kind==="alias")return t.openEnded=!1,{text:`*${r.anchor}`,noBody:!1};let{block:s=!1,iskey:a=!1,isblockseq:c=!1}=i,l=i.compact??!1,u=r.anchor!==void 0;C6(t,r,e)&&(l=!1);let d,f=r.tagged,h=s&&(r.kind==="mapping"||r.kind==="sequence")&&r.style===Bf.BLOCK&&r.items.length!==0;if(r.kind==="mapping")h?d=$kt(t,e,r,l):d=Vkt(t,e,r);else if(r.kind==="sequence")h?t.seqNoIndent&&!c&&e>0?d=MQe(t,e-1,r,l):d=MQe(t,e,r,l):d=zkt(t,e,r);else{let A=Hkt(t,r,n,e,a,!s);_kt(A);for(let E of t.scalarStyleRules)E(A);d=Rkt(A),t.openEnded=(A.style===rt.LITERAL_BLOCK||A.style===rt.FOLDED_BLOCK)&&(r.value===` `||r.value.endsWith(` -`)),f=r.tagged||d===""&&A.flowOnly&&n?.kind==="sequence"&&!u||A.style!==rt.PLAIN&&r.tag!==t.defaultScalarTagName}(r.kind==="mapping"||r.kind==="sequence")&&!h&&(t.openEnded=!1),h&&l&&e>0&&t.indent>2&&(d=`${" ".repeat(t.indent-2)}${d}`);let p=d==="",m=d;if(f||u){let A=[],E=f?Lkt(r):null,y=u?`&${r.anchor}`:null;t.tagBeforeAnchor?(E!==null&&A.push(E),y!==null&&A.push(y)):(y!==null&&A.push(y),E!==null&&A.push(E));let C=d===""||d.charCodeAt(0)===n1?"":" ";m=`${A.join(" ")}${C}${d}`}return{text:m,noBody:p}}o(Hu,"writeNode");function Hkt(t){return(t.kind==="sequence"||t.kind==="mapping")&&t.style===Sf.BLOCK&&t.items.length!==0&&!t.tagged&&t.anchor===void 0}o(Hkt,"rootStartsOwnLine");function zkt(t){let e="";for(let r of t.directives){if(r.kind==="yaml"){e+=`%YAML ${r.version} +`)),f=r.tagged||d===""&&A.flowOnly&&n?.kind==="sequence"&&!u||A.style!==rt.PLAIN&&r.tag!==t.defaultScalarTagName}(r.kind==="mapping"||r.kind==="sequence")&&!h&&(t.openEnded=!1),h&&l&&e>0&&t.indent>2&&(d=`${" ".repeat(t.indent-2)}${d}`);let p=d==="",m=d;if(f||u){let A=[],E=f?qkt(r):null,y=u?`&${r.anchor}`:null;t.tagBeforeAnchor?(E!==null&&A.push(E),y!==null&&A.push(y)):(y!==null&&A.push(y),E!==null&&A.push(E));let C=d===""||d.charCodeAt(0)===i1?"":" ";m=`${A.join(" ")}${C}${d}`}return{text:m,noBody:p}}o(zu,"writeNode");function jkt(t){return(t.kind==="sequence"||t.kind==="mapping")&&t.style===Bf.BLOCK&&t.items.length!==0&&!t.tagged&&t.anchor===void 0}o(jkt,"rootStartsOwnLine");function Wkt(t){let e="";for(let r of t.directives){if(r.kind==="yaml"){e+=`%YAML ${r.version} `;continue}let{handle:n,prefix:i}=r;e+=`%TAG ${n} ${i} -`}return e}o(zkt,"writeDocumentDirectives");function Vkt(t,e){let r=Fkt(e),n="",i=!1;for(let s=0;s0&&!i;if(n+=c,a.contents===null)u&&(n+=`--- -`);else if(u){let d=Hu(r,0,a.contents,null,{block:!0,compact:!0}).text,f=d===""?"":l||Hkt(a.contents)?` +`}return e}o(Wkt,"writeDocumentDirectives");function Jkt(t,e){let r=Gkt(e),n="",i=!1;for(let s=0;s0&&!i;if(n+=c,a.contents===null)u&&(n+=`--- +`);else if(u){let d=zu(r,0,a.contents,null,{block:!0,compact:!0}).text,f=d===""?"":l||jkt(a.contents)?` `:" ";n+=`---${f}${d} -`}else n+=Hu(r,0,a.contents,null,{block:!0,compact:!0}).text+` +`}else n+=zu(r,0,a.contents,null,{block:!0,compact:!0}).text+` `;i=a.explicitEnd||r.openEnded,i&&(n+=`... -`)}return n}o(Vkt,"present");var $kt={...BJ,schema:L1t,skipInvalid:!1,noRefs:!1,flowLevel:-1,sortKeys:!1,transform:o(()=>{},"transform")};function jkt(t,e){let r=String(t),n=String(e);return rn?1:0}o(jkt,"defaultCompareFn");function s1e(t,e={}){let r={...$kt,...e},n=j1t(t,r.schema,{noRefs:r.noRefs,skipInvalid:r.skipInvalid});if(r.flowLevel>=0&&kQe(n,(i,s)=>{if(!(s.depth{s.kind==="mapping"&&s.items.sort((a,c)=>i(a.key.kind==="scalar"?a.key.value:"",c.key.kind==="scalar"?c.key.value:""))})}return r.transform(n),Vkt(n,{...v1t(r,Object.keys(BJ)),schema:r.schema})}o(s1e,"dump");var M_r=aE.DOCUMENT,U_r=aE.SEQUENCE,q_r=aE.MAPPING,G_r=aE.SCALAR,H_r=aE.ALIAS,z_r=aE.POP,V_r=rt.PLAIN,$_r=rt.SINGLE_QUOTED,j_r=rt.DOUBLE_QUOTED,W_r=rt.LITERAL_BLOCK,J_r=rt.FOLDED_BLOCK,Y_r=Sf.BLOCK,K_r=Sf.FLOW,X_r=wJ.CLIP,Z_r=wJ.STRIP,eTr=wJ.KEEP;var o1e=T(require("os"),1);var l1=class t{static{o(this,"GitHubSummary")}static async writeBuildSummary(e){let r=o(function(l,u,d=!1){return`${l}`+(d?o1e.default.EOL:"")},"addLink"),n=e.exportRes.refs.length,i=n>0?e.exportRes.refs?.[0]:void 0,s=i?e.exportRes.summaries?.[i]:void 0,a=e.driver==="cloud"&&e.endpoint?e.endpoint?.replace(/^cloud:\/\//,"").split("/")[0]:void 0,c=YF.addHeading("Docker Build summary",2);if(a&&n===1&&i&&s){let l=t.formatDBCBuildURL(a,i,s.defaultPlatform);c.addRaw("

").addRaw("For a detailed look at the build, you can check the results at:").addRaw("

").addRaw("

").addRaw(`:whale: ${r(`${l}`,l)}`).addRaw("

")}if(e.uploadRes){let l=`./${Ke.runId}/${e.uploadRes.url.split("/").slice(-2).join("/")}`;a&&n===1?c.addRaw("

").addRaw("You can also download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("

"):c.addRaw("

").addRaw("For a detailed look at the build, download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("

"),c.addRaw("

").addRaw(`:arrow_down: ${r(`${Oe.stringToUnicodeEntities(e.uploadRes.filename)}`,l)} (${Oe.formatFileSize(e.uploadRes.size)} - includes ${n} build record${n>1?"s":""})`).addRaw("

")}else e.exportRes.summaries&&c.addRaw("

").addRaw("The following table provides a brief summary of your build.").addBreak().addRaw("For a detailed look at the build, including timing, dependencies, results, logs, traces, and other information, consider enabling the export of the build record so you can import it into Docker Desktop's Builds view. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("

");if(c.addRaw("

").addRaw("Find this useful? ").addRaw(r("Let us know","https://docs.docker.com/feedback/gha-build-summary")).addRaw("

"),e.exportRes.summaries){c.addRaw("

");let l=[[{header:!0,data:"ID"},{header:!0,data:"Name"},{header:!0,data:"Status"},{header:!0,data:"Cached"},{header:!0,data:"Duration"},...a&&n>1?[{header:!0,data:"Build result URL"}]:[]]],u;for(let d in e.exportRes.summaries)if(Object.prototype.hasOwnProperty.call(e.exportRes.summaries,d)){let f=e.exportRes.summaries[d];l.push([{data:`${d.substring(0,6).toUpperCase()}`},{data:`${Oe.stringToUnicodeEntities(f.name)}`},{data:`${f.status==="completed"?":white_check_mark:":f.status==="canceled"?":no_entry_sign:":":x:"} ${f.status}`},{data:`${f.numCachedSteps>0?Math.round(f.numCachedSteps/f.numTotalSteps*100):0}%`},{data:f.duration},...a&&n>1?[{data:r(":whale: Open",t.formatDBCBuildURL(a,d,f.defaultPlatform))}]:[]]),f.error&&(u=f.error)}c.addTable([...l]),c.addRaw("

"),u&&(c.addRaw("
"),Oe.countLines(u)>10?c.addRaw("
Error").addCodeBlock(tS(u),"text").addRaw("
"):c.addRaw("Error").addBreak().addRaw("

").addCodeBlock(tS(u),"text").addRaw("

"),c.addRaw("
"))}e.inputs&&c.addRaw("
Build inputs").addCodeBlock(s1e(e.inputs,{indent:2,lineWidth:-1}),"yaml").addRaw("
"),e.bakeDefinition&&c.addRaw("
Bake definition").addCodeBlock(JSON.stringify(e.bakeDefinition,null,2),"json").addRaw("
"),D("Writing summary"),await c.addSeparator().write()}static formatDBCBuildURL(e,r,n){return`https://app.docker.com/build/accounts/${e}/builds/${(n??"linux/amd64").replace("/","-")}/${r}`}};var nA=T(require("fs"),1),xJ=T(require("path"),1);var zu=class t{static{o(this,"Build")}buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new pt,this.iidFilename=`build-iidfile-${Oe.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${Oe.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),n=e?.attrs||{},i=Object.entries(n).filter(([p])=>!r.has(p)),s=Oe.parseBoolOrDefault(n["fetch-by-commit"]),a=e?.ref||n.ref||Fi.ref;a.startsWith("refs/")?a.startsWith("refs/pull/")&&Oe.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(a=a.replace(/\/merge$/g,"/head")):a=`refs/heads/${a}`;let c=`${Ke.serverURL}/${Fi.repo.owner}/${Fi.repo.repo}.git`,l=e?.checksum||n.checksum,u=e?.subdir||n.subdir,d=e?.format;if(!d){if(d="fragment",i.length>0)d="query";else if(Oe.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{await this.buildx.versionSatisfies(">=0.29.0")&&(d="query")}catch{}}let f=Fi.sha||a;a.startsWith("refs/pull/")&&a.endsWith("/head")&&(f=typeof Fi.payload.pull_request?.head?.sha=="string"?Fi.payload.pull_request.head.sha:a);let h=l||f;if(d==="query"){let p=[`ref=${s||l?a:h}`],m=s?h:l;m&&p.push(`checksum=${m}`),u&&u!=="."&&p.push(`subdir=${u}`);for(let[A,E]of i)p.push(`${A}=${E}`);return`${c}?${p.join("&")}`}return`${c}#${h}${u&&u!=="."?`:${u}`:""}`}getImageIDFilePath(){return xJ.default.join(ht.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(nA.default.existsSync(e))return nA.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return xJ.default.join(ht.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!nA.default.existsSync(e))return;let r=nA.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRef(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.ref"in e)return e["buildx.build.ref"]}resolveProvenance(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.provenance"in e)return e["buildx.build.provenance"]}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}resolveDigest(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"containerimage.digest"in e)return e["containerimage.digest"]}static resolveSecretString(e){let[r,n]=t.resolveSecret(e,{redact:!0});return`id=${r},src=${n}`}static resolveSecretFile(e){let[r,n]=t.resolveSecret(e,{asFile:!0});return`id=${r},src=${n}`}static resolveSecretEnv(e){let[r,n]=t.parseSecretKvp(e);return`id=${r},env=${n}`}static resolveSecret(e,r){let[n,i]=t.parseSecretKvp(e,r?.redact);if(r?.asFile){if(!nA.default.existsSync(i))throw new Error(`secret file ${i} not found`);return[n,i]}let s=ht.tmpName({tmpdir:ht.tmpDir()});return nA.default.writeFileSync(s,i),[n,s]}static getProvenanceInput(e){let r=Ms(e);if(!r)return r;try{return wh(e)?`builder-id=${Ke.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${Ke.workflowRunURL(!0)}`;let r=eo(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of r)if(n.toString().split(/(?<=^[^=]+?)=/).map(s=>s.trim())[0]=="builder-id")return e;return`${e},builder-id=${Ke.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let n="registry",i="",s="",a=eo(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let c of a){let l=c.toString().split(/(?<=^[^=]+?)=/).map(u=>u.trim());l[0]==="type"?n=l[1]:l[0]==="repository"?i=l[1]:l[0]==="ghtoken"&&(s=l[1])}return n==="gha"&&(i||(e=`${e},repository=${Ke.repository}`),!s&&r&&(e=`${e},ghtoken=${r}`)),e}static hasLocalExporter(e){return t.hasExporterType("local",e)}static hasTarExporter(e){return t.hasExporterType("tar",e)}static hasDockerExporter(e,r){return r||t.hasExporterType("docker",e)}static hasExporterType(e,r){let n=eo(r.join(` -`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let i of n){if(i.length==1&&!i[0].startsWith("type="))return e=="local";for(let[s,a]of i.map(c=>c.split("=").map(l=>l.trim())))if(s=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let n=eo(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let i of n)for(let[s,a]of i.map(c=>c.split("=").map(l=>l.trim())))if(s=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=eo(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),n=[];for(let i of r)for(let s of i)try{let a=Oe.parseBool(s);n.push(`disabled=${!a}`)}catch{n.push(s)}return n.join(",")}static hasGitAuthTokenSecret(e,r){for(let n of e){if(r&&n.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(n.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let n=e.indexOf("="),i=e.substring(0,n),s=e.substring(n+1);if(i.length==0||s.length==0)throw new Error(`${e} is not a valid secret`);return r&&Os(s),[i,s]}};var vJ=T(require("fs"),1),a1e=T(require("path"),1);var cE=class t{static{o(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new pt,this.metadataFilename=`bake-metadata-${Oe.generateRandomString()}.json`}getMetadataFilePath(){return a1e.default.join(ht.tmpDir(),this.metadataFilename)}static resolveContextTargets(e,r){let n=e.target||{},i=Object.keys(n);if(i.length===0)throw new Error("Bake definition does not contain any targets");if(!Object.prototype.hasOwnProperty.call(n,r))throw new Error(`Unable to resolve ${r} target, found: ${i.join(", ")}`);let s=new Set([r]),a=[r];for(;a.length>0;){let c=a.pop();for(let l of Object.values(n[c].contexts||{})){let u=l.match(/^target:(.+)$/)?.[1];if(!(!u||s.has(u))){if(!Object.prototype.hasOwnProperty.call(n,u))throw new Error(`Target ${c} uses unknown named context target ${u}`);s.add(u),a.push(u)}}}return[...s]}resolveMetadata(){let e=this.getMetadataFilePath();if(!vJ.default.existsSync(e))return;let r=vJ.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let n in e)"buildx.build.ref"in e[n]&&r.push(e[n]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let n=["bake"],i,s=[],a=[...e.files||[],e.source];if(a){for(let l of a.map(u=>u?u.trim():""))if(l.length!=0){if(!Oe.isValidRef(l)){s.push(l);continue}if(i)throw new Error("Only one remote bake definition can be defined");i=l}}i&&n.push(i);for(let l of s)n.push("--file",l);if(e.overrides)for(let l of e.overrides)n.push("--set",l);if(e.vars)for(let l of e.vars)n.push("--var",l);if(e.allow)for(let l of e.allow)n.push("--allow",l);e.call&&n.push("--call",e.call),e.load&&n.push("--load"),e.noCache&&n.push("--no-cache"),e.provenance&&n.push("--provenance",e.provenance),e.push&&n.push("--push"),e.sbom&&n.push("--sbom",e.sbom);let c=await this.buildx.getCommand([...n,"--print",...e.targets||[]]);return await Ie.getExecOutput(c.command,c.args,r).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(`cannot parse bake definitions: ${pt.getErrorMessage(l.stderr)}`);return t.parseDefinition(l.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let n in r.target){let i=r.target[n];i.attest&&Array.isArray(i.attest)&&(i.attest=i.attest.map(s=>t.parseAttestEntry(s))),i["cache-from"]&&Array.isArray(i["cache-from"])&&(i["cache-from"]=i["cache-from"].map(s=>t.parseCacheEntry(s))),i["cache-to"]&&Array.isArray(i["cache-to"])&&(i["cache-to"]=i["cache-to"].map(s=>t.parseCacheEntry(s))),i.output&&Array.isArray(i.output)&&(i.output=i.output.map(s=>t.parseExportEntry(s))),i.secret&&Array.isArray(i.secret)&&(i.secret=i.secret.map(s=>t.parseSecretEntry(s))),i.ssh&&Array.isArray(i.ssh)&&(i.ssh=i.ssh.map(s=>t.parseSSHEntry(s)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},n=eo(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let i of n){let[s,a]=i.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(s){case"type":r.type=a;break;case"disabled":r.disabled=Oe.parseBool(a);break;default:r[s]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},n=eo(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&!n[0].includes("="))return r.type="registry",r.ref=n[0],r;for(let i of n){let[s,a]=i.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());s==="type"?r.type=a:r[s]=a}return r}static parseExportEntry(e){if(typeof e!="string")return e;let r={type:""},n=eo(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&n[0]===e&&!e.startsWith("type="))return e!=="-"?(r.type="local",r.dest=e,r):(r.type="tar",r.dest=e,r);for(let i of n){let[s,a]=i.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());s==="type"?r.type=a:r[s]=a}return r}static parseSecretEntry(e){if(typeof e!="string")return e;let r={},n=eo(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0],i="";for(let s of n){let[a,c]=s.toString().split(/(?<=^[^=]+?)=/).map(l=>l.trim());switch(a){case"type":i=c;break;case"id":r.id=c;break;case"source":case"src":r.src=c;break;case"env":r.env=c;break}}return i==="env"&&!r.env&&(r.env=r.src,r.src=void 0),r}static parseSSHEntry(e){if(typeof e!="string")return e;let r={},[n,i]=e.split("=",2);return r.id=n,i&&(r.paths=i.split(",")),r}static hasLocalExporter(e){return t.hasExporterType("local",t.exporters(e))}static hasTarExporter(e){return t.hasExporterType("tar",t.exporters(e))}static hasDockerExporter(e,r){return r||t.hasExporterType("docker",t.exporters(e))}static hasExporterType(e,r){for(let n of r)if(n.type==e)return!0;return!1}static exporters(e){let r=new Array;for(let n in e.target){let i=e.target[n];if(i.output)for(let s of i.output)r.push(t.parseExportEntry(s))}return r}static hasGitAuthTokenSecret(e){for(let r in e.target){let n=e.target[r];if(n.secret){for(let i of n.secret)if(t.parseSecretEntry(i).id==="GIT_AUTH_TOKEN")return!0}}return!1}static hasProvenanceAttestation(e){return t.hasAttestationType("provenance",t.attestations(e))}static hasSBOMAttestation(e){return t.hasAttestationType("sbom",t.attestations(e))}static hasAttestationType(e,r){for(let n of r)if(n.type==e)return!0;return!1}static attestations(e){let r=new Array;for(let n in e.target){let i=e.target[n];if(i.attest)for(let s of i.attest)r.push(t.parseAttestEntry(s))}return r}};var Ku=T(require("fs"),1),Ol=T(require("os"),1),qf=T(require("path"),1);var HE=T(Ma(),1),tK=T(require("util"),1);var lE=class t{static{o(this,"Git")}static async context(e){let r={...Fi};return r.ref=await t.ref(e),r.sha=await t.fullCommit(e),r}static async isInsideWorkTree(e){return await t.exec(["rev-parse","--is-inside-work-tree"],e).then(r=>r==="true").catch(()=>!1)}static async remoteSha(e,r,n){let i=e.match(/github.com\/([^/]+)\/([^/]+?)(?:\.git)?(\/|$)/);if(n&&i){Os(n);let s=Wo(n,{baseUrl:Ke.apiURL}),[a,c]=i.slice(1,3);try{return(await s.rest.repos.listCommits({owner:a,repo:c,sha:r,per_page:1})).data[0].sha}catch(l){throw new Error(`Cannot find remote ref for ${e}#${r}: ${l.message}`)}}return await t.exec(["ls-remote",e,r]).then(s=>{let[a]=s.split(/[\s\t]/);if(a.length==0)throw new Error(`Cannot find remote ref for ${e}#${r}`);return a})}static async remoteURL(e){return await t.exec(["remote","get-url","origin"],e).then(r=>r.length==0?t.exec(["remote","get-url","upstream"],e).then(n=>{if(n.length==0)throw new Error("Cannot find remote URL for origin or upstream");return n}):r)}static async ref(e){return await t.isHeadDetached(e)?await t.getDetachedRef(e):await t.exec(["symbolic-ref","HEAD"],e)}static async fullCommit(e){return await t.exec(["show","--format=%H","HEAD","--quiet","--"],e)}static async shortCommit(e){return await t.exec(["show","--format=%h","HEAD","--quiet","--"],e)}static async commitCount(e){return Number(await t.exec(["rev-list","--count","HEAD","--"],e))}static async tag(e){return await t.exec(["tag","--points-at","HEAD","--sort","-version:creatordate"],e).then(r=>r.length==0?t.exec(["describe","--tags","--abbrev=0"],e):r.split(` +`)}return n}o(Jkt,"present");var Ykt={...x6,schema:U1t,skipInvalid:!1,noRefs:!1,flowLevel:-1,sortKeys:!1,transform:o(()=>{},"transform")};function Kkt(t,e){let r=String(t),n=String(e);return rn?1:0}o(Kkt,"defaultCompareFn");function c1e(t,e={}){let r={...Ykt,...e},n=K1t(t,r.schema,{noRefs:r.noRefs,skipInvalid:r.skipInvalid});if(r.flowLevel>=0&&OQe(n,(i,s)=>{if(!(s.depth{s.kind==="mapping"&&s.items.sort((a,c)=>i(a.key.kind==="scalar"?a.key.value:"",c.key.kind==="scalar"?c.key.value:""))})}return r.transform(n),Jkt(n,{...R1t(r,Object.keys(x6)),schema:r.schema})}o(c1e,"dump");var HRr=cE.DOCUMENT,zRr=cE.SEQUENCE,VRr=cE.MAPPING,$Rr=cE.SCALAR,jRr=cE.ALIAS,WRr=cE.POP,JRr=rt.PLAIN,YRr=rt.SINGLE_QUOTED,KRr=rt.DOUBLE_QUOTED,XRr=rt.LITERAL_BLOCK,ZRr=rt.FOLDED_BLOCK,eTr=Bf.BLOCK,tTr=Bf.FLOW,rTr=I6.CLIP,nTr=I6.STRIP,iTr=I6.KEEP;var l1e=T(require("os"),1);var u1=class t{static{o(this,"GitHubSummary")}static async writeBuildSummary(e){let r=o(function(l,u,d=!1){return`${l}`+(d?l1e.default.EOL:"")},"addLink"),n=e.exportRes.refs.length,i=n>0?e.exportRes.refs?.[0]:void 0,s=i?e.exportRes.summaries?.[i]:void 0,a=e.driver==="cloud"&&e.endpoint?e.endpoint?.replace(/^cloud:\/\//,"").split("/")[0]:void 0,c=KF.addHeading("Docker Build summary",2);if(a&&n===1&&i&&s){let l=t.formatDBCBuildURL(a,i,s.defaultPlatform);c.addRaw("

").addRaw("For a detailed look at the build, you can check the results at:").addRaw("

").addRaw("

").addRaw(`:whale: ${r(`${l}`,l)}`).addRaw("

")}if(e.uploadRes){let l=`./${Ke.runId}/${e.uploadRes.url.split("/").slice(-2).join("/")}`;a&&n===1?c.addRaw("

").addRaw("You can also download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("

"):c.addRaw("

").addRaw("For a detailed look at the build, download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("

"),c.addRaw("

").addRaw(`:arrow_down: ${r(`${Oe.stringToUnicodeEntities(e.uploadRes.filename)}`,l)} (${Oe.formatFileSize(e.uploadRes.size)} - includes ${n} build record${n>1?"s":""})`).addRaw("

")}else e.exportRes.summaries&&c.addRaw("

").addRaw("The following table provides a brief summary of your build.").addBreak().addRaw("For a detailed look at the build, including timing, dependencies, results, logs, traces, and other information, consider enabling the export of the build record so you can import it into Docker Desktop's Builds view. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("

");if(c.addRaw("

").addRaw("Find this useful? ").addRaw(r("Let us know","https://docs.docker.com/feedback/gha-build-summary")).addRaw("

"),e.exportRes.summaries){c.addRaw("

");let l=[[{header:!0,data:"ID"},{header:!0,data:"Name"},{header:!0,data:"Status"},{header:!0,data:"Cached"},{header:!0,data:"Duration"},...a&&n>1?[{header:!0,data:"Build result URL"}]:[]]],u;for(let d in e.exportRes.summaries)if(Object.prototype.hasOwnProperty.call(e.exportRes.summaries,d)){let f=e.exportRes.summaries[d];l.push([{data:`${d.substring(0,6).toUpperCase()}`},{data:`${Oe.stringToUnicodeEntities(f.name)}`},{data:`${f.status==="completed"?":white_check_mark:":f.status==="canceled"?":no_entry_sign:":":x:"} ${f.status}`},{data:`${f.numCachedSteps>0?Math.round(f.numCachedSteps/f.numTotalSteps*100):0}%`},{data:f.duration},...a&&n>1?[{data:r(":whale: Open",t.formatDBCBuildURL(a,d,f.defaultPlatform))}]:[]]),f.error&&(u=f.error)}c.addTable([...l]),c.addRaw("

"),u&&(c.addRaw("
"),Oe.countLines(u)>10?c.addRaw("
Error").addCodeBlock(rS(u),"text").addRaw("
"):c.addRaw("Error").addBreak().addRaw("

").addCodeBlock(rS(u),"text").addRaw("

"),c.addRaw("
"))}e.inputs&&c.addRaw("
Build inputs").addCodeBlock(c1e(e.inputs,{indent:2,lineWidth:-1}),"yaml").addRaw("
"),e.bakeDefinition&&c.addRaw("
Bake definition").addCodeBlock(JSON.stringify(e.bakeDefinition,null,2),"json").addRaw("
"),D("Writing summary"),await c.addSeparator().write()}static formatDBCBuildURL(e,r,n){return`https://app.docker.com/build/accounts/${e}/builds/${(n??"linux/amd64").replace("/","-")}/${r}`}};var iA=T(require("fs"),1),v6=T(require("path"),1);var Vu=class t{static{o(this,"Build")}buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new pt,this.iidFilename=`build-iidfile-${Oe.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${Oe.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),n=e?.attrs||{},i=Object.entries(n).filter(([p])=>!r.has(p)),s=Oe.parseBoolOrDefault(n["fetch-by-commit"]),a=e?.ref||n.ref||Fi.ref;a.startsWith("refs/")?a.startsWith("refs/pull/")&&Oe.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(a=a.replace(/\/merge$/g,"/head")):a=`refs/heads/${a}`;let c=`${Ke.serverURL}/${Fi.repo.owner}/${Fi.repo.repo}.git`,l=e?.checksum||n.checksum,u=e?.subdir||n.subdir,d=e?.format;if(!d){if(d="fragment",i.length>0)d="query";else if(Oe.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{await this.buildx.versionSatisfies(">=0.29.0")&&(d="query")}catch{}}let f=Fi.sha||a;a.startsWith("refs/pull/")&&a.endsWith("/head")&&(f=typeof Fi.payload.pull_request?.head?.sha=="string"?Fi.payload.pull_request.head.sha:a);let h=l||f;if(d==="query"){let p=[`ref=${s||l?a:h}`],m=s?h:l;m&&p.push(`checksum=${m}`),u&&u!=="."&&p.push(`subdir=${u}`);for(let[A,E]of i)p.push(`${A}=${E}`);return`${c}?${p.join("&")}`}return`${c}#${h}${u&&u!=="."?`:${u}`:""}`}getImageIDFilePath(){return v6.default.join(ht.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(iA.default.existsSync(e))return iA.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return v6.default.join(ht.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!iA.default.existsSync(e))return;let r=iA.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRef(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.ref"in e)return e["buildx.build.ref"]}resolveProvenance(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.provenance"in e)return e["buildx.build.provenance"]}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}resolveDigest(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"containerimage.digest"in e)return e["containerimage.digest"]}static resolveSecretString(e){let[r,n]=t.resolveSecret(e,{redact:!0});return`id=${r},src=${n}`}static resolveSecretFile(e){let[r,n]=t.resolveSecret(e,{asFile:!0});return`id=${r},src=${n}`}static resolveSecretEnv(e){let[r,n]=t.parseSecretKvp(e);return`id=${r},env=${n}`}static resolveSecret(e,r){let[n,i]=t.parseSecretKvp(e,r?.redact);if(r?.asFile){if(!iA.default.existsSync(i))throw new Error(`secret file ${i} not found`);return[n,i]}let s=ht.tmpName({tmpdir:ht.tmpDir()});return iA.default.writeFileSync(s,i),[n,s]}static getProvenanceInput(e){let r=Ms(e);if(!r)return r;try{return Ih(e)?`builder-id=${Ke.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${Ke.workflowRunURL(!0)}`;let r=eo(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of r)if(n.toString().split(/(?<=^[^=]+?)=/).map(s=>s.trim())[0]=="builder-id")return e;return`${e},builder-id=${Ke.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let n="registry",i="",s="",a=eo(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let c of a){let l=c.toString().split(/(?<=^[^=]+?)=/).map(u=>u.trim());l[0]==="type"?n=l[1]:l[0]==="repository"?i=l[1]:l[0]==="ghtoken"&&(s=l[1])}return n==="gha"&&(i||(e=`${e},repository=${Ke.repository}`),!s&&r&&(e=`${e},ghtoken=${r}`)),e}static hasLocalExporter(e){return t.hasExporterType("local",e)}static hasTarExporter(e){return t.hasExporterType("tar",e)}static hasDockerExporter(e,r){return r||t.hasExporterType("docker",e)}static hasExporterType(e,r){let n=eo(r.join(` +`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let i of n){if(i.length==1&&!i[0].startsWith("type="))return e=="local";for(let[s,a]of i.map(c=>c.split("=").map(l=>l.trim())))if(s=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let n=eo(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let i of n)for(let[s,a]of i.map(c=>c.split("=").map(l=>l.trim())))if(s=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=eo(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),n=[];for(let i of r)for(let s of i)try{let a=Oe.parseBool(s);n.push(`disabled=${!a}`)}catch{n.push(s)}return n.join(",")}static hasGitAuthTokenSecret(e,r){for(let n of e){if(r&&n.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(n.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let n=e.indexOf("="),i=e.substring(0,n),s=e.substring(n+1);if(i.length==0||s.length==0)throw new Error(`${e} is not a valid secret`);return r&&Os(s),[i,s]}};var N6=T(require("fs"),1),u1e=T(require("path"),1);var lE=class t{static{o(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new pt,this.metadataFilename=`bake-metadata-${Oe.generateRandomString()}.json`}getMetadataFilePath(){return u1e.default.join(ht.tmpDir(),this.metadataFilename)}static resolveContextTargets(e,r){let n=e.target||{},i=Object.keys(n);if(i.length===0)throw new Error("Bake definition does not contain any targets");if(!Object.prototype.hasOwnProperty.call(n,r))throw new Error(`Unable to resolve ${r} target, found: ${i.join(", ")}`);let s=new Set([r]),a=[r];for(;a.length>0;){let c=a.pop();for(let l of Object.values(n[c].contexts||{})){let u=l.match(/^target:(.+)$/)?.[1];if(!(!u||s.has(u))){if(!Object.prototype.hasOwnProperty.call(n,u))throw new Error(`Target ${c} uses unknown named context target ${u}`);s.add(u),a.push(u)}}}return[...s]}resolveMetadata(){let e=this.getMetadataFilePath();if(!N6.default.existsSync(e))return;let r=N6.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let n in e)"buildx.build.ref"in e[n]&&r.push(e[n]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let n=["bake"],i,s=[],a=[...e.files||[],e.source];if(a){for(let l of a.map(u=>u?u.trim():""))if(l.length!=0){if(!Oe.isValidRef(l)){s.push(l);continue}if(i)throw new Error("Only one remote bake definition can be defined");i=l}}i&&n.push(i);for(let l of s)n.push("--file",l);if(e.overrides)for(let l of e.overrides)n.push("--set",l);if(e.vars)for(let l of e.vars)n.push("--var",l);if(e.allow)for(let l of e.allow)n.push("--allow",l);e.call&&n.push("--call",e.call),e.load&&n.push("--load"),e.noCache&&n.push("--no-cache"),e.provenance&&n.push("--provenance",e.provenance),e.push&&n.push("--push"),e.sbom&&n.push("--sbom",e.sbom);let c=await this.buildx.getCommand([...n,"--print",...e.targets||[]]);return await Ie.getExecOutput(c.command,c.args,r).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(`cannot parse bake definitions: ${pt.getErrorMessage(l.stderr)}`);return t.parseDefinition(l.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let n in r.target){let i=r.target[n];i.attest&&Array.isArray(i.attest)&&(i.attest=i.attest.map(s=>t.parseAttestEntry(s))),i["cache-from"]&&Array.isArray(i["cache-from"])&&(i["cache-from"]=i["cache-from"].map(s=>t.parseCacheEntry(s))),i["cache-to"]&&Array.isArray(i["cache-to"])&&(i["cache-to"]=i["cache-to"].map(s=>t.parseCacheEntry(s))),i.output&&Array.isArray(i.output)&&(i.output=i.output.map(s=>t.parseExportEntry(s))),i.secret&&Array.isArray(i.secret)&&(i.secret=i.secret.map(s=>t.parseSecretEntry(s))),i.ssh&&Array.isArray(i.ssh)&&(i.ssh=i.ssh.map(s=>t.parseSSHEntry(s)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},n=eo(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let i of n){let[s,a]=i.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(s){case"type":r.type=a;break;case"disabled":r.disabled=Oe.parseBool(a);break;default:r[s]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},n=eo(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&!n[0].includes("="))return r.type="registry",r.ref=n[0],r;for(let i of n){let[s,a]=i.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());s==="type"?r.type=a:r[s]=a}return r}static parseExportEntry(e){if(typeof e!="string")return e;let r={type:""},n=eo(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&n[0]===e&&!e.startsWith("type="))return e!=="-"?(r.type="local",r.dest=e,r):(r.type="tar",r.dest=e,r);for(let i of n){let[s,a]=i.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());s==="type"?r.type=a:r[s]=a}return r}static parseSecretEntry(e){if(typeof e!="string")return e;let r={},n=eo(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0],i="";for(let s of n){let[a,c]=s.toString().split(/(?<=^[^=]+?)=/).map(l=>l.trim());switch(a){case"type":i=c;break;case"id":r.id=c;break;case"source":case"src":r.src=c;break;case"env":r.env=c;break}}return i==="env"&&!r.env&&(r.env=r.src,r.src=void 0),r}static parseSSHEntry(e){if(typeof e!="string")return e;let r={},[n,i]=e.split("=",2);return r.id=n,i&&(r.paths=i.split(",")),r}static hasLocalExporter(e){return t.hasExporterType("local",t.exporters(e))}static hasTarExporter(e){return t.hasExporterType("tar",t.exporters(e))}static hasDockerExporter(e,r){return r||t.hasExporterType("docker",t.exporters(e))}static hasExporterType(e,r){for(let n of r)if(n.type==e)return!0;return!1}static exporters(e){let r=new Array;for(let n in e.target){let i=e.target[n];if(i.output)for(let s of i.output)r.push(t.parseExportEntry(s))}return r}static hasGitAuthTokenSecret(e){for(let r in e.target){let n=e.target[r];if(n.secret){for(let i of n.secret)if(t.parseSecretEntry(i).id==="GIT_AUTH_TOKEN")return!0}}return!1}static hasProvenanceAttestation(e){return t.hasAttestationType("provenance",t.attestations(e))}static hasSBOMAttestation(e){return t.hasAttestationType("sbom",t.attestations(e))}static hasAttestationType(e,r){for(let n of r)if(n.type==e)return!0;return!1}static attestations(e){let r=new Array;for(let n in e.target){let i=e.target[n];if(i.attest)for(let s of i.attest)r.push(t.parseAttestEntry(s))}return r}};var Xu=T(require("fs"),1),Ll=T(require("os"),1),Gf=T(require("path"),1);var zE=T(Ma(),1),rK=T(require("util"),1);var uE=class t{static{o(this,"Git")}static async context(e){let r={...Fi};return r.ref=await t.ref(e),r.sha=await t.fullCommit(e),r}static async isInsideWorkTree(e){return await t.exec(["rev-parse","--is-inside-work-tree"],e).then(r=>r==="true").catch(()=>!1)}static async remoteSha(e,r,n){let i=e.match(/github.com\/([^/]+)\/([^/]+?)(?:\.git)?(\/|$)/);if(n&&i){Os(n);let s=Wo(n,{baseUrl:Ke.apiURL}),[a,c]=i.slice(1,3);try{return(await s.rest.repos.listCommits({owner:a,repo:c,sha:r,per_page:1})).data[0].sha}catch(l){throw new Error(`Cannot find remote ref for ${e}#${r}: ${l.message}`)}}return await t.exec(["ls-remote",e,r]).then(s=>{let[a]=s.split(/[\s\t]/);if(a.length==0)throw new Error(`Cannot find remote ref for ${e}#${r}`);return a})}static async remoteURL(e){return await t.exec(["remote","get-url","origin"],e).then(r=>r.length==0?t.exec(["remote","get-url","upstream"],e).then(n=>{if(n.length==0)throw new Error("Cannot find remote URL for origin or upstream");return n}):r)}static async ref(e){return await t.isHeadDetached(e)?await t.getDetachedRef(e):await t.exec(["symbolic-ref","HEAD"],e)}static async fullCommit(e){return await t.exec(["show","--format=%H","HEAD","--quiet","--"],e)}static async shortCommit(e){return await t.exec(["show","--format=%h","HEAD","--quiet","--"],e)}static async commitCount(e){return Number(await t.exec(["rev-list","--count","HEAD","--"],e))}static async tag(e){return await t.exec(["tag","--points-at","HEAD","--sort","-version:creatordate"],e).then(r=>r.length==0?t.exec(["describe","--tags","--abbrev=0"],e):r.split(` `)[0])}static async isHeadDetached(e){return await t.exec(["branch","--show-current"],e).then(r=>r.length==0)}static async getDetachedRef(e){let r=await t.exec(["show","-s","--pretty=%D"],e);v(`detached HEAD ref: ${r}`);let n=r.replace(/^grafted, /,"").trim();if(n==="HEAD")return await t.inferRefFromHead(e);let i=n.match(/^HEAD, (.*)$/);if(!i||!i[1])throw new Error(`Cannot find detached HEAD ref in "${r}"`);let s=i[1].trim();if(s.startsWith("tag: "))return await t.findDetachedTagRef(s,r,e);if(s.match(/^pull\/\d+\/(head|merge)$/))return`refs/${s}`;let c=s.match(/^[^/]+\/[^/]+, (.+)$/);if(c)return`refs/heads/${c[1].trim()}`;let l=s.match(/^[^/]+\/(.+)$/);if(l)return`refs/heads/${l[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${r}"`)}static async exec(e=[],r){return await Ie.getExecOutput("git",e,{cwd:r,ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr);return n.stdout.trim()})}static async inferRefFromHead(e){let r=await t.findContainingRef("refs/heads/",e);if(r)return r;let n=await t.findContainingRef("refs/remotes/",e);if(n){let a=n.match(/^refs\/remotes\/[^/]+\/(.+)$/);return a?`refs/heads/${a[1]}`:n}let i=await t.exec(["tag","--contains","HEAD"],e),[s]=i.split(` `).map(a=>a.trim()).filter(a=>a.length>0);return s?`refs/tags/${s}`:""}static async findDetachedTagRef(e,r,n){let s=(await t.exec(["for-each-ref","--format=%(refname)","--points-at","HEAD","refs/tags/"],n)).split(` `).map(a=>a.trim()).filter(a=>a.length>0).sort((a,c)=>c.length-a.length);for(let a of s){let c=`tag: ${a.slice(10)}`;if(e===c||e.startsWith(`${c}, `))return a}if(s.length===1)return s[0];throw new Error(`Cannot find detached tag ref in "${r}"`)}static async findContainingRef(e,r){let n=await t.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e],r),[i]=n.split(` -`).map(s=>s.trim()).filter(s=>s.length>0);return i}static async commitDate(e,r){return new Date(await t.exec(["show","-s",'--format="%ci"',e],r))}};var IOe=require("crypto"),kl=T(require("fs"),1),Pl=T(require("path"),1);var qE=T(PJ(),1),SOe=T(Y6(),1),GE=T(yOe(),1);var COe=require("util");var ZY=T(PJ(),1);var bOe=T(Ma(),1);var EOe="application/vnd.oci.empty.v1+json";var Ss=class{static{o(this,"Cosign")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await Ie.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(v(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(v(`Cosign.isAvailable error: ${r}`),!1));return v(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await Ie.getExecOutput(this.binPath,["version","--json"],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.stderr.length>0&&e.exitCode!=0)throw new Error(e.stderr.trim());return JSON.parse(e.stdout.trim()).gitVersion}),this._version)}async printVersion(){await Ie.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}static getErrorMessage(e){let r=(0,COe.stripVTControlCharacters)(e).split(/[\r\n]/);for(let n=r.length-1;n>=0;n--){let i=r[n].trim();if(i)return i}return"unknown error"}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return v("Cosign.versionSatisfies false: undefined version"),!1;let i=bOe.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return v(`Cosign.versionSatisfies ${n} statisfies ${e}: ${i}`),i}static parseCommandOutput(e){let r,n,i,s;for(let a of e.split(/\r?\n/)){let c=a.trim();if(!c.startsWith("{")||!c.endsWith("}"))continue;let l;try{l=JSON.parse(c)}catch{continue}if(l&&Array.isArray(l.errors)&&l.errors.length>0&&(s=l.errors),!r&&l&&Array.isArray(l.manifests)&&l.manifests.length>0){let u=l.manifests[0];u?.artifactType===ZY.BUNDLE_V03_MEDIA_TYPE&&typeof u.digest=="string"?r=u.digest:u?.artifactType===EOe&&typeof u.digest=="string"&&(n=u.digest)}if(!i&&l&&l.mediaType===ZY.BUNDLE_V03_MEDIA_TYPE&&(i=l),i&&(r||n)){s=void 0;break}}return{bundle:i,signatureManifestDigest:r||n,errors:s}}};var eK=T(require("fs"),1);var Gk=class t{static{o(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new pt}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getCreateCommand(e){return await this.getCommand(["create",...e])}async inspectImage(e){return await this.inspect(e,"{{json .Image}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"config"),r;throw new Error("Unexpected output format")})}async inspectManifest(e){return await this.inspect(e,"{{json .Manifest}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"manifests"),r;throw new Error("Unexpected output format")})}async attestationDescriptors(e){let r=await this.inspectManifest(e);if(typeof r!="object"||r===null||!("manifests"in r)||!Array.isArray(r.manifests))throw new Error(`No descriptor found for ${e.name}`);let n=r.manifests.filter(a=>a.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return n;let i=e.platform,s=new Map;for(let a of r.manifests)a.digest&&s.set(a.digest,a);return n.filter(a=>{let c=a.annotations?.["vnd.docker.reference.digest"];if(!c)return!1;let l=s.get(c);return l?l.platform?.os===i.os&&l.platform?.architecture===i.architecture&&(l.platform?.variant??"")===(i.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}static toIndexAnnotation(e){let r=e.indexOf("="),n=r===-1?e:e.substring(0,r),i=r===-1?"":e.substring(r),s=n.indexOf(":");if(s!==-1){let a=n.substring(0,s),c=n.substring(s+1);if(a.split(",").map(u=>u.replace(/\[.*\]$/,"")).some(u=>["manifest","index","manifest-descriptor","index-descriptor"].includes(u)))return`index:${c}${i}`}return`index:${e}`}async create(e){let r=[],n=ht.tmpName({tmpdir:ht.tmpDir(),template:"imagetools-metadata-XXXXXX"}),i=[],s=[];for(let c of e.sources){if(c.startsWith("cwd://")){let l=c.substring(6);l.length>0&&i.push(l);continue}s.push(c)}if(e.tags)for(let c of e.tags)r.push("--tag",c);if(e.platforms)for(let c of e.platforms)r.push("--platform",c);if(e.annotations)for(let c of e.annotations)r.push("--annotation",c);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",n);for(let c of i)r.push("--file",c);for(let c of s)r.push(c);let a=await this.getCreateCommand(r);if(e.skipExec){D(`[command]${a.command} ${a.args.join(" ")}`),D("Skipped create command");return}return await Ie.getExecOutput(a.command,a.args,{ignoreReturnCode:!0,silent:e.silent}).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)throw new Error(c.stderr.trim());if(!e.dryRun){if(!eK.default.existsSync(n))return;let l=eK.default.readFileSync(n,{encoding:"utf-8"}).trim();if(l===""||l==="null")return;let u=JSON.parse(l),d=u["containerimage.descriptor"];return d?{digest:u["containerimage.digest"]||d.digest,descriptor:d,imageNames:u["image.name"]?u["image.name"].split(",").map(f=>f.trim()):[]}:void 0}})}async inspect(e,r,n){let i=await this.getInspectCommand([e.name,"--format",r]);if(!e.retryOnManifestUnknown)return await this.execInspect(i.command,i.args,n);let s=e.retryLimit??15,a;for(let c=0;csetTimeout(u,Math.pow(2,c)*100))}throw a??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,n){return await Ie.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(i=>{if(i.stderr.length>0&&i.exitCode!=0)throw new Error(i.stderr.trim());return n(JSON.parse(i.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown)/i.test(e)||/:\s*not found$/i.test(e)}};var UE="https://search.sigstore.dev";var wOe="slsaprovenance1",Uf=class t{static{o(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new Ss,this.imageTools=e?.imageTools||new Gk}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},i=await this.cosignSigningConfigArgs(n);for(let s of e.imageNames){let a=await this.imageTools.attestationDigests({name:`${s}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let c of a){let l=`${s}@${c}`;await Sr(`Signing attestation manifest ${l}`,async()=>{let u=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1",...await this.bundleFormatArgs(),...i];D(`[command]${this.cosign.binPath} ${[...u,l].join(" ")}`);let d=await Ie.getExecOutput(this.cosign.binPath,["--verbose",...u,l],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),f=Ss.parseCommandOutput(d.stderr.trim());if(d.exitCode!=0)if(f.errors&&f.errors.length>0){let p=f.errors.map(m=>`- [${m.code}] ${m.message} : ${m.detail}`).join(` +`).map(s=>s.trim()).filter(s=>s.length>0);return i}static async commitDate(e,r){return new Date(await t.exec(["show","-s",'--format="%ci"',e],r))}};var xOe=require("crypto"),Pl=T(require("fs"),1),Ol=T(require("path"),1);var GE=T(O6(),1),vOe=T(KJ(),1),HE=T(bOe(),1);var IOe=require("util");var eK=T(O6(),1);var SOe=T(Ma(),1);var wOe="application/vnd.oci.empty.v1+json";var Ss=class{static{o(this,"Cosign")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await Ie.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(v(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(v(`Cosign.isAvailable error: ${r}`),!1));return v(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await Ie.getExecOutput(this.binPath,["version","--json"],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.stderr.length>0&&e.exitCode!=0)throw new Error(e.stderr.trim());return JSON.parse(e.stdout.trim()).gitVersion}),this._version)}async printVersion(){await Ie.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}static getErrorMessage(e){let r=(0,IOe.stripVTControlCharacters)(e).split(/[\r\n]/);for(let n=r.length-1;n>=0;n--){let i=r[n].trim();if(i)return i}return"unknown error"}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return v("Cosign.versionSatisfies false: undefined version"),!1;let i=SOe.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return v(`Cosign.versionSatisfies ${n} statisfies ${e}: ${i}`),i}static parseCommandOutput(e){let r,n,i,s;for(let a of e.split(/\r?\n/)){let c=a.trim();if(!c.startsWith("{")||!c.endsWith("}"))continue;let l;try{l=JSON.parse(c)}catch{continue}if(l&&Array.isArray(l.errors)&&l.errors.length>0&&(s=l.errors),!r&&l&&Array.isArray(l.manifests)&&l.manifests.length>0){let u=l.manifests[0];u?.artifactType===eK.BUNDLE_V03_MEDIA_TYPE&&typeof u.digest=="string"?r=u.digest:u?.artifactType===wOe&&typeof u.digest=="string"&&(n=u.digest)}if(!i&&l&&l.mediaType===eK.BUNDLE_V03_MEDIA_TYPE&&(i=l),i&&(r||n)){s=void 0;break}}return{bundle:i,signatureManifestDigest:r||n,errors:s}}};var tK=T(require("fs"),1);var Hk=class t{static{o(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new pt}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getCreateCommand(e){return await this.getCommand(["create",...e])}async inspectImage(e){return await this.inspect(e,"{{json .Image}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"config"),r;throw new Error("Unexpected output format")})}async inspectManifest(e){return await this.inspect(e,"{{json .Manifest}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"manifests"),r;throw new Error("Unexpected output format")})}async attestationDescriptors(e){let r=await this.inspectManifest(e);if(typeof r!="object"||r===null||!("manifests"in r)||!Array.isArray(r.manifests))throw new Error(`No descriptor found for ${e.name}`);let n=r.manifests.filter(a=>a.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return n;let i=e.platform,s=new Map;for(let a of r.manifests)a.digest&&s.set(a.digest,a);return n.filter(a=>{let c=a.annotations?.["vnd.docker.reference.digest"];if(!c)return!1;let l=s.get(c);return l?l.platform?.os===i.os&&l.platform?.architecture===i.architecture&&(l.platform?.variant??"")===(i.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}static toIndexAnnotation(e){let r=e.indexOf("="),n=r===-1?e:e.substring(0,r),i=r===-1?"":e.substring(r),s=n.indexOf(":");if(s!==-1){let a=n.substring(0,s),c=n.substring(s+1);if(a.split(",").map(u=>u.replace(/\[.*\]$/,"")).some(u=>["manifest","index","manifest-descriptor","index-descriptor"].includes(u)))return`index:${c}${i}`}return`index:${e}`}async create(e){let r=[],n=ht.tmpName({tmpdir:ht.tmpDir(),template:"imagetools-metadata-XXXXXX"}),i=[],s=[];for(let c of e.sources){if(c.startsWith("cwd://")){let l=c.substring(6);l.length>0&&i.push(l);continue}s.push(c)}if(e.tags)for(let c of e.tags)r.push("--tag",c);if(e.platforms)for(let c of e.platforms)r.push("--platform",c);if(e.annotations)for(let c of e.annotations)r.push("--annotation",c);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",n);for(let c of i)r.push("--file",c);for(let c of s)r.push(c);let a=await this.getCreateCommand(r);if(e.skipExec){D(`[command]${a.command} ${a.args.join(" ")}`),D("Skipped create command");return}return await Ie.getExecOutput(a.command,a.args,{ignoreReturnCode:!0,silent:e.silent}).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)throw new Error(c.stderr.trim());if(!e.dryRun){if(!tK.default.existsSync(n))return;let l=tK.default.readFileSync(n,{encoding:"utf-8"}).trim();if(l===""||l==="null")return;let u=JSON.parse(l),d=u["containerimage.descriptor"];return d?{digest:u["containerimage.digest"]||d.digest,descriptor:d,imageNames:u["image.name"]?u["image.name"].split(",").map(f=>f.trim()):[]}:void 0}})}async inspect(e,r,n){let i=await this.getInspectCommand([e.name,"--format",r]);if(!e.retryOnManifestUnknown)return await this.execInspect(i.command,i.args,n);let s=e.retryLimit??15,a;for(let c=0;csetTimeout(u,Math.pow(2,c)*100))}throw a??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,n){return await Ie.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(i=>{if(i.stderr.length>0&&i.exitCode!=0)throw new Error(i.stderr.trim());return n(JSON.parse(i.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown)/i.test(e)||/:\s*not found$/i.test(e)}};var qE="https://search.sigstore.dev";var BOe="slsaprovenance1",qf=class t{static{o(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new Ss,this.imageTools=e?.imageTools||new Hk}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},i=await this.cosignSigningConfigArgs(n);for(let s of e.imageNames){let a=await this.imageTools.attestationDigests({name:`${s}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let c of a){let l=`${s}@${c}`;await Sr(`Signing attestation manifest ${l}`,async()=>{let u=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1",...await this.bundleFormatArgs(),...i];D(`[command]${this.cosign.binPath} ${[...u,l].join(" ")}`);let d=await Ie.getExecOutput(this.cosign.binPath,["--verbose",...u,l],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),f=Ss.parseCommandOutput(d.stderr.trim());if(d.exitCode!=0)if(f.errors&&f.errors.length>0){let p=f.errors.map(m=>`- [${m.code}] ${m.message} : ${m.detail}`).join(` `);throw new Error(`Cosign sign command failed with errors: -${p}`)}else throw new Error(`Cosign sign command failed with: ${Ss.getErrorMessage(d.stderr)}`);let h=t.parseBundle((0,qE.bundleFromJSON)(f.bundle));h.tlogID&&await this.logTransparencyUpload(h.tlogID,n),D(`Signature manifest pushed: https://oci.dag.dev/?referrers=${l}`),r[l]={...h,imageName:s}})}}}catch(n){throw new Error(`Signing BuildKit attestation manifests failed: ${n.message}`)}return r}async verifySignedManifests(e,r){let n={};for(let[i,s]of Object.entries(e))await Sr(`Verifying signature of ${i}`,async()=>{let a=await this.verifyImageAttestation(i,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!s.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});D(`Signature manifest verified: https://oci.dag.dev/?image=${s.imageName}@${a.signatureManifestDigest}`),n[i]=a});return n}async verifyImageAttestations(e,r){let n={},i=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(i.length===0)throw new Error(`No attestation manifests found for ${e}`);let s=e.split(":",1)[0];for(let a of i){let c=`${s}@${a}`,l=await this.verifyImageAttestation(c,r);D(`Signature manifest verified: https://oci.dag.dev/?image=${s}@${l.signatureManifestDigest}`),n[c]=l}return n}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let n=["verify","--experimental-oci11",...await this.bundleFormatArgs(),"--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&n.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){D(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);let a=await Ie.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(a.exitCode!==0)throw new Error(`Cosign verify command failed with: ${Ss.getErrorMessage(a.stderr)}`);let c=Ss.parseCommandOutput(a.stderr.trim());return{cosignArgs:n,signatureManifestDigest:c.signatureManifestDigest}}let i=r.retryLimit??15,s;D(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);for(let a=0;a0){let u=l.errors.map(d=>`- [${d.code}] ${d.message} : ${d.detail}`).join(` +${p}`)}else throw new Error(`Cosign sign command failed with: ${Ss.getErrorMessage(d.stderr)}`);let h=t.parseBundle((0,GE.bundleFromJSON)(f.bundle));h.tlogID&&await this.logTransparencyUpload(h.tlogID,n),D(`Signature manifest pushed: https://oci.dag.dev/?referrers=${l}`),r[l]={...h,imageName:s}})}}}catch(n){throw new Error(`Signing BuildKit attestation manifests failed: ${n.message}`)}return r}async verifySignedManifests(e,r){let n={};for(let[i,s]of Object.entries(e))await Sr(`Verifying signature of ${i}`,async()=>{let a=await this.verifyImageAttestation(i,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!s.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});D(`Signature manifest verified: https://oci.dag.dev/?image=${s.imageName}@${a.signatureManifestDigest}`),n[i]=a});return n}async verifyImageAttestations(e,r){let n={},i=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(i.length===0)throw new Error(`No attestation manifests found for ${e}`);let s=e.split(":",1)[0];for(let a of i){let c=`${s}@${a}`,l=await this.verifyImageAttestation(c,r);D(`Signature manifest verified: https://oci.dag.dev/?image=${s}@${l.signatureManifestDigest}`),n[c]=l}return n}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let n=["verify","--experimental-oci11",...await this.bundleFormatArgs(),"--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&n.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){D(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);let a=await Ie.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(a.exitCode!==0)throw new Error(`Cosign verify command failed with: ${Ss.getErrorMessage(a.stderr)}`);let c=Ss.parseCommandOutput(a.stderr.trim());return{cosignArgs:n,signatureManifestDigest:c.signatureManifestDigest}}let i=r.retryLimit??15,s;D(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);for(let a=0;a0){let u=l.errors.map(d=>`- [${d.code}] ${d.message} : ${d.detail}`).join(` `);if(s=new Error(`Cosign verify command failed with errors: ${u}`),l.errors.some(d=>d.code==="MANIFEST_UNKNOWN"))D(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${a+1}/${i}... -${u}`),await new Promise(d=>setTimeout(d,Math.pow(2,a)*100));else throw s}else throw new Error(`Cosign verify command failed with: ${Ss.getErrorMessage(c.stderr)}`)}throw s}async signProvenanceBlobs(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign provenance blobs");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},i=await this.cosignSigningConfigArgs(n),s=t.getProvenanceBlobs(e);for(let a of Object.keys(s))await Sr(`Signing ${a}`,async()=>{let c=s[a],l=Pl.default.join(Pl.default.dirname(a),`${e.name??"provenance"}.sigstore.json`),u=t.getProvenanceSubjects(c);if(u.length===0){Ge(`No subjects found in provenance ${a}, skip signing.`);return}let d=Pl.default.join(Pl.default.dirname(a),u[0].name),f=["attest-blob","--yes","--oidc-provider","github-actions",...await this.bundleFormatArgs(),"--statement",a,"--type",wOe,"--bundle",l,...i];D(`[command]${this.cosign.binPath} ${[...f,d].join(" ")}`);let h=await Ie.getExecOutput(this.cosign.binPath,["--verbose",...f,d],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),p=Ss.parseCommandOutput(h.stderr.trim());if(h.exitCode!=0)if(p.errors&&p.errors.length>0){let A=p.errors.map(E=>`- [${E.code}] ${E.message} : ${E.detail}`).join(` +${u}`),await new Promise(d=>setTimeout(d,Math.pow(2,a)*100));else throw s}else throw new Error(`Cosign verify command failed with: ${Ss.getErrorMessage(c.stderr)}`)}throw s}async signProvenanceBlobs(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign provenance blobs");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},i=await this.cosignSigningConfigArgs(n),s=t.getProvenanceBlobs(e);for(let a of Object.keys(s))await Sr(`Signing ${a}`,async()=>{let c=s[a],l=Ol.default.join(Ol.default.dirname(a),`${e.name??"provenance"}.sigstore.json`),u=t.getProvenanceSubjects(c);if(u.length===0){Ge(`No subjects found in provenance ${a}, skip signing.`);return}let d=Ol.default.join(Ol.default.dirname(a),u[0].name),f=["attest-blob","--yes","--oidc-provider","github-actions",...await this.bundleFormatArgs(),"--statement",a,"--type",BOe,"--bundle",l,...i];D(`[command]${this.cosign.binPath} ${[...f,d].join(" ")}`);let h=await Ie.getExecOutput(this.cosign.binPath,["--verbose",...f,d],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),p=Ss.parseCommandOutput(h.stderr.trim());if(h.exitCode!=0)if(p.errors&&p.errors.length>0){let A=p.errors.map(E=>`- [${E.code}] ${E.message} : ${E.detail}`).join(` `);throw new Error(`Cosign attest-blob command failed with errors: -${A}`)}else throw new Error(`Cosign attest-blob command failed with: ${Ss.getErrorMessage(h.stderr)}`);let m=t.parseBundle((0,qE.bundleFromJSON)(JSON.parse(kl.default.readFileSync(l,{encoding:"utf-8"}))));D("Provenance blob signed for:");for(let A of u){let[E,y]=Object.entries(A.digest)[0]||[];D(` - ${A.name} (${E}:${y})`)}m.tlogID&&await this.logTransparencyUpload(m.tlogID,n),D(`Sigstore bundle written to: ${l}`),r[a]={...m,bundlePath:l,subjects:u}})}catch(n){throw new Error(`Signing BuildKit provenance blobs failed: ${n.message}`)}return r}async verifySignedArtifacts(e,r){let n={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[i,s]of Object.entries(e)){let a=Pl.default.dirname(i);await Sr(`Verifying signature bundle ${s.bundlePath}`,async()=>{for(let c of s.subjects){let l=Pl.default.join(a,c.name);D(`Verifying signed artifact ${l}`);let u=["verify-blob-attestation",...await this.bundleFormatArgs(),"--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??wOe];(r.noTransparencyLog||!s.tlogID)&&u.push("--use-signed-timestamps","--insecure-ignore-tlog");let d=await Ie.getExecOutput(this.cosign.binPath,[...u,"--bundle",s.bundlePath,l],{ignoreReturnCode:!0});if(d.stderr.length>0&&d.exitCode!=0)throw new Error(d.stderr);n[l]={bundlePath:s.bundlePath,cosignArgs:u}}})}return n}async verifyArtifact(e,r,n){D("Verifying keyless verification bundle signature");let i=JSON.parse(kl.default.readFileSync(r,"utf-8")),s=(0,qE.bundleFromJSON)(i);D("Fetching Sigstore TUF trusted root metadata");let a=await SOe.getTrustedRoot({retry:{retries:5}}),c=(0,GE.toTrustMaterial)(a);try{D("Verifying artifact signature");let l=(0,GE.toSignedEntity)(s,kl.default.readFileSync(e)),u=t.parseCertificate(s),d=s.verificationMaterial.tlogEntries,f=d.length>0?d[0].logIndex:void 0,p=new GE.Verifier(c).verify(l,{subjectAlternativeName:n?.subjectAlternativeName,extensions:n?.issuer?{issuer:n.issuer}:void 0});return v(`Sigstore.verifyArtifact signer: ${JSON.stringify(p)}`),{payload:i,certificate:u.toString(),tlogID:f}}catch(l){throw new Error(`Failed to verify artifact signature: ${l}`)}}static noTransparencyLog(e){return e??Ke.context.payload.repository?.private??!1}async cosignSigningConfigArgs(e){let r=[],n=t.noTransparencyLog(e.noTransparencyLog);if(D(`Upload to transparency log: ${n?"disabled":"enabled"}`),await this.cosign.versionSatisfies(">=3.0.4")){let i=await this.useRekorV2(e);await Sr("Creating Sigstore protobuf signing config",async()=>{let s=ht.tmpName({template:"signing-config-XXXXXX.json",tmpdir:ht.tmpDir()}),a=["signing-config","create",i?"--with-default-rekor-v2=true":"--with-default-services=true",`--out=${s}`];n&&a.push("--no-default-rekor=true"),await Ie.exec(this.cosign.binPath,a,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),D(JSON.stringify(JSON.parse(kl.default.readFileSync(s,{encoding:"utf-8"})),null,2)),r.push(`--signing-config=${s}`)})}else r.push("--use-signing-config"),n&&r.push("--tlog-upload=false");return r}async logTransparencyUpload(e,r){if(await this.useRekorV2(r)){D(`Attestation signature uploaded to Rekor v2 transparency log with index ${e}`);return}D(`Attestation signature uploaded to Rekor transparency log: ${UE}?logIndex=${e}`)}async useRekorV2(e){return e.rekorV2===!0&&!t.noTransparencyLog(e.noTransparencyLog)&&await this.cosign.versionSatisfies(">=3.1.1")}static getProvenanceBlobs(e){let r=Pl.default.join(e.localExportDir,"provenance.json");if(kl.default.existsSync(r))return{[r]:kl.default.readFileSync(r)};let n=kl.default.readdirSync(e.localExportDir,{withFileTypes:!0}),i=n.filter(s=>s.isDirectory());if(i.length>0&&i.length===n.length&&i.every(s=>kl.default.existsSync(Pl.default.join(e.localExportDir,s.name,"provenance.json")))){let s={};for(let a of i){let c=Pl.default.join(e.localExportDir,a.name,"provenance.json");s[c]=kl.default.readFileSync(c)}return s}throw new Error(`No valid provenance.json found in ${e.localExportDir}`)}static getProvenanceSubjects(e){return JSON.parse(e.toString()).subject.map(n=>({name:n.name,digest:n.digest}))}static parseBundle(e){let r=t.parseCertificate(e),n=e.verificationMaterial.tlogEntries,i=n.length>0?n[0].logIndex:void 0;return{payload:(0,qE.bundleToJSON)(e),certificate:r.toString(),tlogID:i}}static parseCertificate(e){let r;switch(e.verificationMaterial.content.$case){case"x509CertificateChain":r=e.verificationMaterial.content.x509CertificateChain.certificates[0].rawBytes;break;case"certificate":r=e.verificationMaterial.content.certificate.rawBytes;break;default:throw new Error("Bundle must contain an x509 certificate")}return new IOe.X509Certificate(r)}async bundleFormatArgs(){return await this.cosign.versionSatisfies(">=3.1.1")?[]:["--new-bundle-format"]}};var Hk=class t{static{o(this,"Install")}standalone;githubToken;sigstore;constructor(e){this.standalone=e?.standalone,this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.sigstore=e?.sigstore||new Uf}async download(e){let r=await t.getDownloadVersion(e.version);v(`Install.download version: ${r.version}`);let n=await t.getRelease(r,this.githubToken);v(`Install.download release tag name: ${n.tag_name}`);let i=await this.vspec(n.tag_name);v(`Install.download vspec: ${i}`);let s=HE.clean(i)||"";if(!HE.valid(s))throw new Error(`Invalid Buildx version "${i}".`);let a=new Dn({htcName:r.key!="official"?`buildx-dl-bin-${r.key}`:"buildx-dl-bin",htcVersion:i,baseCacheDir:qf.default.join(pt.configDir,".bin"),cacheFile:Ol.default.platform()=="win32"?"docker-buildx.exe":"docker-buildx",ghaNoCache:e.ghaNoCache}),c=await a.find();if(!e.disableHtc&&c)return D(`Buildx binary found in ${c}`),c;let l=tK.format(r.downloadURL,i,this.filename(i));D(`Downloading ${l}`);let u=await Io(l,void 0,this.githubToken);v(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&HE.satisfies(i,">=0.31.0-0",{includePrerelease:!0})&&await this.verifySignature(u,l);let d=await a.save(u,e.skipState);return D(`Cached to ${d}`),d}async build(e,r){let n=await this.vspec(e);v(`Install.build vspec: ${n}`);let i=new Dn({htcName:"buildx-build-bin",htcVersion:n,baseCacheDir:qf.default.join(pt.configDir,".bin"),cacheFile:Ol.default.platform()=="win32"?"docker-buildx.exe":"docker-buildx",ghaNoCache:r}),s=await i.find();if(s)return D(`Buildx binary found in ${s}`),s;let a=qf.default.join(ht.tmpDir(),"buildx-build-cache"),c=await this.buildCommand(e,a),l=await Ie.getExecOutput(c.command,c.args,{ignoreReturnCode:!0}).then(d=>{if(d.stderr.length>0&&d.exitCode!=0)throw new Error(`build failed with: ${pt.getErrorMessage(d.stderr)}`);return`${a}/buildx`}),u=await i.save(l);return D(`Cached to ${u}`),u}async installStandalone(e,r){D("Standalone mode"),r=r||ht.tmpDir();let n=qf.default.join(r,"buildx-bin-standalone");Ku.default.existsSync(n)||Ku.default.mkdirSync(n,{recursive:!0});let i=Ol.default.platform()=="win32"?"buildx.exe":"buildx",s=qf.default.join(n,i);return Ku.default.copyFileSync(e,s),D("Fixing perms"),Ku.default.chmodSync(s,"0755"),hc(n),D("Added Buildx to PATH"),D(`Binary path: ${s}`),s}async installPlugin(e,r){D("Docker plugin mode"),r=r||Vr.configDir;let n=qf.default.join(r,"cli-plugins");Ku.default.existsSync(n)||Ku.default.mkdirSync(n,{recursive:!0});let i=Ol.default.platform()=="win32"?"docker-buildx.exe":"docker-buildx",s=qf.default.join(n,i);return Ku.default.copyFileSync(e,s),D("Fixing perms"),Ku.default.chmodSync(s,"0755"),D(`Plugin path: ${s}`),s}async buildCommand(e,r){let n=await new pt({standalone:!0}).isAvailable(),i=await new pt({standalone:!1}).isAvailable(),s=!1;if(await this.isStandalone()&&n)v("Install.buildCommand: Buildx standalone found, build with it"),s=!0;else if(!await this.isStandalone()&&i)v("Install.buildCommand: Buildx plugin found, build with it"),s=!1;else if(n)v("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),s=!0;else if(i)v("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),s=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let a=["build","--target","binaries","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&a.push("--secret","id=GIT_AUTH_TOKEN"),a.push(e),await new pt({standalone:s}).getCommand(a)}async isStandalone(){let e=this.standalone??!await Vr.isAvailable();return v(`Install.isStandalone: ${e}`),e}async verifySignature(e,r){let n=`${r.replace(/\.exe$/,"")}.sigstore.json`;D(`Downloading keyless verification bundle at ${n}`);let i;try{i=await Io(n,void 0,this.githubToken),v(`Install.verifySignature bundlePath: ${i}`)}catch(a){if(a.message&&a.message.statusCode===ms.NotFound){D(`No signature bundle found at ${n}, skipping verification`);return}throw a}let s=await this.sigstore.verifyArtifact(e,i,{subjectAlternativeName:/^https:\/\/github\.com\/docker\/(github-builder-experimental|github-builder)\/\.github\/workflows\/bake\.yml.*$/,issuer:"https://token.actions.githubusercontent.com"});D(`Buildx binary signature verified! ${s.tlogID?`${UE}?logIndex=${s.tlogID}`:""}`)}filename(e){let r;switch(Ol.default.arch()){case"x64":{r="amd64";break}case"ppc64":{r="ppc64le";break}case"arm":{let s=process.config.variables.arm_version;r=s?"arm-v"+s:"arm";break}default:{r=Ol.default.arch();break}}let n=Ol.default.platform()=="win32"?"windows":Ol.default.platform(),i=Ol.default.platform()=="win32"?".exe":"";return tK.format("buildx-v%s.%s-%s%s",e,n,r,i)}async vspec(e){if(!Oe.isValidRef(e)){let u=e.replace(/^v+|v+$/g,"");return D(`Use ${u} version spec cache key for ${e}`),u}let[r,n]=e.split("#");n.length==0&&(n="master");let i;n.match(/^[0-9a-fA-F]{40}$/)?i=n:i=await lE.remoteSha(r,n,process.env.GIT_AUTH_TOKEN);let[s,a]=r.substring(19).split("/"),c=`${s}/${Oe.trimSuffix(a,".git")}/${i}`,l=Oe.hash(c);return D(`Use ${l} version spec cache key for ${c}`),l}static async getDownloadVersion(e){let[r,n]=e.split(":");switch(n||(n=r,r="official"),r==="lab"&&(r="cloud"),r){case"official":return{key:r,version:n,downloadURL:"https://github.com/docker/buildx/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/buildx-releases.json"}};case"cloud":return{key:r,version:n,downloadURL:"https://github.com/docker/buildx-desktop/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/buildx-lab-releases.json"}};default:throw new Error(`Cannot find buildx version for ${e}`)}}static async getRelease(e,r){let i=await new Ke({token:r}).releases("Buildx",e.contentOpts);if(!i[e.version])throw new Error(`Cannot find Buildx release ${e.version} in releases JSON`);return i[e.version]}};var zE=class t{static{o(this,"Builder")}buildx;constructor(e){this.buildx=e?.buildx||new pt}async exists(e){let r=await this.buildx.getCommand(["inspect",e]),n=await Ie.getExecOutput(r.command,r.args,{ignoreReturnCode:!0,silent:!0}).then(i=>i.stderr.length>0&&i.exitCode!=0?(v(`Builder.exists cmd err: ${i.stderr.trim()}`),!1):i.exitCode==0).catch(i=>(v(`Builder.exists error: ${i}`),!1));return v(`Builder.exists: ${n}`),n}async inspect(e){let r=Object.assign({},process.env,{DEBUG:"1"}),n=["inspect"];e&&n.push(e);let i=await this.buildx.getCommand(n);return await Ie.getExecOutput(i.command,i.args,{ignoreReturnCode:!0,silent:!0,env:r}).then(s=>{if(s.stderr.length>0&&s.exitCode!=0)throw new Error(s.stderr.trim());return t.parseInspect(s.stdout)})}static parseInspect(e){let r={nodes:[]},n,i={},s,a,c;for(let l of e.trim().split(` +${A}`)}else throw new Error(`Cosign attest-blob command failed with: ${Ss.getErrorMessage(h.stderr)}`);let m=t.parseBundle((0,GE.bundleFromJSON)(JSON.parse(Pl.default.readFileSync(l,{encoding:"utf-8"}))));D("Provenance blob signed for:");for(let A of u){let[E,y]=Object.entries(A.digest)[0]||[];D(` - ${A.name} (${E}:${y})`)}m.tlogID&&await this.logTransparencyUpload(m.tlogID,n),D(`Sigstore bundle written to: ${l}`),r[a]={...m,bundlePath:l,subjects:u}})}catch(n){throw new Error(`Signing BuildKit provenance blobs failed: ${n.message}`)}return r}async verifySignedArtifacts(e,r){let n={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[i,s]of Object.entries(e)){let a=Ol.default.dirname(i);await Sr(`Verifying signature bundle ${s.bundlePath}`,async()=>{for(let c of s.subjects){let l=Ol.default.join(a,c.name);D(`Verifying signed artifact ${l}`);let u=["verify-blob-attestation",...await this.bundleFormatArgs(),"--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??BOe];(r.noTransparencyLog||!s.tlogID)&&u.push("--use-signed-timestamps","--insecure-ignore-tlog");let d=await Ie.getExecOutput(this.cosign.binPath,[...u,"--bundle",s.bundlePath,l],{ignoreReturnCode:!0});if(d.stderr.length>0&&d.exitCode!=0)throw new Error(d.stderr);n[l]={bundlePath:s.bundlePath,cosignArgs:u}}})}return n}async verifyArtifact(e,r,n){D("Verifying keyless verification bundle signature");let i=JSON.parse(Pl.default.readFileSync(r,"utf-8")),s=(0,GE.bundleFromJSON)(i);D("Fetching Sigstore TUF trusted root metadata");let a=await vOe.getTrustedRoot({retry:{retries:5}}),c=(0,HE.toTrustMaterial)(a);try{D("Verifying artifact signature");let l=(0,HE.toSignedEntity)(s,Pl.default.readFileSync(e)),u=t.parseCertificate(s),d=s.verificationMaterial.tlogEntries,f=d.length>0?d[0].logIndex:void 0,p=new HE.Verifier(c).verify(l,{subjectAlternativeName:n?.subjectAlternativeName,extensions:n?.issuer?{issuer:n.issuer}:void 0});return v(`Sigstore.verifyArtifact signer: ${JSON.stringify(p)}`),{payload:i,certificate:u.toString(),tlogID:f}}catch(l){throw new Error(`Failed to verify artifact signature: ${l}`)}}static noTransparencyLog(e){return e??Ke.context.payload.repository?.private??!1}async cosignSigningConfigArgs(e){let r=[],n=t.noTransparencyLog(e.noTransparencyLog);if(D(`Upload to transparency log: ${n?"disabled":"enabled"}`),await this.cosign.versionSatisfies(">=3.0.4")){let i=await this.useRekorV2(e);await Sr("Creating Sigstore protobuf signing config",async()=>{let s=ht.tmpName({template:"signing-config-XXXXXX.json",tmpdir:ht.tmpDir()}),a=["signing-config","create",i?"--with-default-rekor-v2=true":"--with-default-services=true",`--out=${s}`];n&&a.push("--no-default-rekor=true"),await Ie.exec(this.cosign.binPath,a,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),D(JSON.stringify(JSON.parse(Pl.default.readFileSync(s,{encoding:"utf-8"})),null,2)),r.push(`--signing-config=${s}`)})}else r.push("--use-signing-config"),n&&r.push("--tlog-upload=false");return r}async logTransparencyUpload(e,r){if(await this.useRekorV2(r)){D(`Attestation signature uploaded to Rekor v2 transparency log with index ${e}`);return}D(`Attestation signature uploaded to Rekor transparency log: ${qE}?logIndex=${e}`)}async useRekorV2(e){return e.rekorV2===!0&&!t.noTransparencyLog(e.noTransparencyLog)&&await this.cosign.versionSatisfies(">=3.1.1")}static getProvenanceBlobs(e){let r=Ol.default.join(e.localExportDir,"provenance.json");if(Pl.default.existsSync(r))return{[r]:Pl.default.readFileSync(r)};let n=Pl.default.readdirSync(e.localExportDir,{withFileTypes:!0}),i=n.filter(s=>s.isDirectory());if(i.length>0&&i.length===n.length&&i.every(s=>Pl.default.existsSync(Ol.default.join(e.localExportDir,s.name,"provenance.json")))){let s={};for(let a of i){let c=Ol.default.join(e.localExportDir,a.name,"provenance.json");s[c]=Pl.default.readFileSync(c)}return s}throw new Error(`No valid provenance.json found in ${e.localExportDir}`)}static getProvenanceSubjects(e){return JSON.parse(e.toString()).subject.map(n=>({name:n.name,digest:n.digest}))}static parseBundle(e){let r=t.parseCertificate(e),n=e.verificationMaterial.tlogEntries,i=n.length>0?n[0].logIndex:void 0;return{payload:(0,GE.bundleToJSON)(e),certificate:r.toString(),tlogID:i}}static parseCertificate(e){let r;switch(e.verificationMaterial.content.$case){case"x509CertificateChain":r=e.verificationMaterial.content.x509CertificateChain.certificates[0].rawBytes;break;case"certificate":r=e.verificationMaterial.content.certificate.rawBytes;break;default:throw new Error("Bundle must contain an x509 certificate")}return new xOe.X509Certificate(r)}async bundleFormatArgs(){return await this.cosign.versionSatisfies(">=3.1.1")?[]:["--new-bundle-format"]}};var zk=class t{static{o(this,"Install")}standalone;githubToken;sigstore;constructor(e){this.standalone=e?.standalone,this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.sigstore=e?.sigstore||new qf}async download(e){let r=await t.getDownloadVersion(e.version);v(`Install.download version: ${r.version}`);let n=await t.getRelease(r,this.githubToken);v(`Install.download release tag name: ${n.tag_name}`);let i=await this.vspec(n.tag_name);v(`Install.download vspec: ${i}`);let s=zE.clean(i)||"";if(!zE.valid(s))throw new Error(`Invalid Buildx version "${i}".`);let a=new Dn({htcName:r.key!="official"?`buildx-dl-bin-${r.key}`:"buildx-dl-bin",htcVersion:i,baseCacheDir:Gf.default.join(pt.configDir,".bin"),cacheFile:Ll.default.platform()=="win32"?"docker-buildx.exe":"docker-buildx",ghaNoCache:e.ghaNoCache}),c=await a.find();if(!e.disableHtc&&c)return D(`Buildx binary found in ${c}`),c;let l=rK.format(r.downloadURL,i,this.filename(i));D(`Downloading ${l}`);let u=await Io(l,void 0,this.githubToken);v(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&zE.satisfies(i,">=0.31.0-0",{includePrerelease:!0})&&await this.verifySignature(u,l);let d=await a.save(u,e.skipState);return D(`Cached to ${d}`),d}async build(e,r){let n=await this.vspec(e);v(`Install.build vspec: ${n}`);let i=new Dn({htcName:"buildx-build-bin",htcVersion:n,baseCacheDir:Gf.default.join(pt.configDir,".bin"),cacheFile:Ll.default.platform()=="win32"?"docker-buildx.exe":"docker-buildx",ghaNoCache:r}),s=await i.find();if(s)return D(`Buildx binary found in ${s}`),s;let a=Gf.default.join(ht.tmpDir(),"buildx-build-cache"),c=await this.buildCommand(e,a),l=await Ie.getExecOutput(c.command,c.args,{ignoreReturnCode:!0}).then(d=>{if(d.stderr.length>0&&d.exitCode!=0)throw new Error(`build failed with: ${pt.getErrorMessage(d.stderr)}`);return`${a}/buildx`}),u=await i.save(l);return D(`Cached to ${u}`),u}async installStandalone(e,r){D("Standalone mode"),r=r||ht.tmpDir();let n=Gf.default.join(r,"buildx-bin-standalone");Xu.default.existsSync(n)||Xu.default.mkdirSync(n,{recursive:!0});let i=Ll.default.platform()=="win32"?"buildx.exe":"buildx",s=Gf.default.join(n,i);return Xu.default.copyFileSync(e,s),D("Fixing perms"),Xu.default.chmodSync(s,"0755"),hc(n),D("Added Buildx to PATH"),D(`Binary path: ${s}`),s}async installPlugin(e,r){D("Docker plugin mode"),r=r||Vr.configDir;let n=Gf.default.join(r,"cli-plugins");Xu.default.existsSync(n)||Xu.default.mkdirSync(n,{recursive:!0});let i=Ll.default.platform()=="win32"?"docker-buildx.exe":"docker-buildx",s=Gf.default.join(n,i);return Xu.default.copyFileSync(e,s),D("Fixing perms"),Xu.default.chmodSync(s,"0755"),D(`Plugin path: ${s}`),s}async buildCommand(e,r){let n=await new pt({standalone:!0}).isAvailable(),i=await new pt({standalone:!1}).isAvailable(),s=!1;if(await this.isStandalone()&&n)v("Install.buildCommand: Buildx standalone found, build with it"),s=!0;else if(!await this.isStandalone()&&i)v("Install.buildCommand: Buildx plugin found, build with it"),s=!1;else if(n)v("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),s=!0;else if(i)v("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),s=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let a=["build","--target","binaries","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&a.push("--secret","id=GIT_AUTH_TOKEN"),a.push(e),await new pt({standalone:s}).getCommand(a)}async isStandalone(){let e=this.standalone??!await Vr.isAvailable();return v(`Install.isStandalone: ${e}`),e}async verifySignature(e,r){let n=`${r.replace(/\.exe$/,"")}.sigstore.json`;D(`Downloading keyless verification bundle at ${n}`);let i;try{i=await Io(n,void 0,this.githubToken),v(`Install.verifySignature bundlePath: ${i}`)}catch(a){if(a.message&&a.message.statusCode===ms.NotFound){D(`No signature bundle found at ${n}, skipping verification`);return}throw a}let s=await this.sigstore.verifyArtifact(e,i,{subjectAlternativeName:/^https:\/\/github\.com\/docker\/(github-builder-experimental|github-builder)\/\.github\/workflows\/bake\.yml.*$/,issuer:"https://token.actions.githubusercontent.com"});D(`Buildx binary signature verified! ${s.tlogID?`${qE}?logIndex=${s.tlogID}`:""}`)}filename(e){let r;switch(Ll.default.arch()){case"x64":{r="amd64";break}case"ppc64":{r="ppc64le";break}case"arm":{let s=process.config.variables.arm_version;r=s?"arm-v"+s:"arm";break}default:{r=Ll.default.arch();break}}let n=Ll.default.platform()=="win32"?"windows":Ll.default.platform(),i=Ll.default.platform()=="win32"?".exe":"";return rK.format("buildx-v%s.%s-%s%s",e,n,r,i)}async vspec(e){if(!Oe.isValidRef(e)){let u=e.replace(/^v+|v+$/g,"");return D(`Use ${u} version spec cache key for ${e}`),u}let[r,n]=e.split("#");n.length==0&&(n="master");let i;n.match(/^[0-9a-fA-F]{40}$/)?i=n:i=await uE.remoteSha(r,n,process.env.GIT_AUTH_TOKEN);let[s,a]=r.substring(19).split("/"),c=`${s}/${Oe.trimSuffix(a,".git")}/${i}`,l=Oe.hash(c);return D(`Use ${l} version spec cache key for ${c}`),l}static async getDownloadVersion(e){let[r,n]=e.split(":");switch(n||(n=r,r="official"),r==="lab"&&(r="cloud"),r){case"official":return{key:r,version:n,downloadURL:"https://github.com/docker/buildx/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/buildx-releases.json"}};case"cloud":return{key:r,version:n,downloadURL:"https://github.com/docker/buildx-desktop/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/buildx-lab-releases.json"}};default:throw new Error(`Cannot find buildx version for ${e}`)}}static async getRelease(e,r){let i=await new Ke({token:r}).releases("Buildx",e.contentOpts);if(!i[e.version])throw new Error(`Cannot find Buildx release ${e.version} in releases JSON`);return i[e.version]}};var VE=class t{static{o(this,"Builder")}buildx;constructor(e){this.buildx=e?.buildx||new pt}async exists(e){let r=await this.buildx.getCommand(["inspect",e]),n=await Ie.getExecOutput(r.command,r.args,{ignoreReturnCode:!0,silent:!0}).then(i=>i.stderr.length>0&&i.exitCode!=0?(v(`Builder.exists cmd err: ${i.stderr.trim()}`),!1):i.exitCode==0).catch(i=>(v(`Builder.exists error: ${i}`),!1));return v(`Builder.exists: ${n}`),n}async inspect(e){let r=Object.assign({},process.env,{DEBUG:"1"}),n=["inspect"];e&&n.push(e);let i=await this.buildx.getCommand(n);return await Ie.getExecOutput(i.command,i.args,{ignoreReturnCode:!0,silent:!0,env:r}).then(s=>{if(s.stderr.length>0&&s.exitCode!=0)throw new Error(s.stderr.trim());return t.parseInspect(s.stdout)})}static parseInspect(e){let r={nodes:[]},n,i={},s,a,c;for(let l of e.trim().split(` `)){let[u,...d]=l.split(":"),f=u.toLowerCase(),h=d.map(p=>p.trim()).join(":");if(u.length!=0)switch(!0){case f=="name":n=void 0,r.name==null?r.name=h:(s&&i.gcPolicy&&(i.gcPolicy.push(s),s=void 0),i.name&&r.nodes.push(i),i={name:h});break;case f=="driver":n=void 0,r.driver=h;break;case f=="last activity":n=void 0,r.lastActivity=new Date(h);break;case f=="endpoint":n=void 0,i.endpoint=h;break;case f=="driver options":n=void 0,i["driver-opts"]=(h.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(p=>p.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case f=="status":n=void 0,i.status=h;break;case f=="buildkit daemon flags":case f=="flags":n=void 0,i["buildkitd-flags"]=h;break;case f=="buildkit version":case f=="buildkit":n=void 0,i.buildkit=h;break;case f=="platforms":{if(n=void 0,!h)break;let p=[];if(h.includes("*"))for(let m of h.split(", "))m.includes("*")&&p.push(m.replace(/\*/g,""));else p=h.split(", ");i.platforms=p.join(",");break}case f=="features":n="features",i.features={};break;case f=="labels":n="label",i.labels={};break;case f=="devices":n="devices",i.devices=i.devices||[];break;case f.startsWith("gc policy rule#"):n="gcpolicy",i.gcPolicy&&s&&(i.gcPolicy.push(s),s=void 0);break;case f.startsWith("file#"):n="file",c=u.split("#")[1],i.files=i.files||{},i.files[c]="";break;default:switch(n&&n!=="devices"&&i.devices&&a&&(i.devices.push(a),a=void 0),n||""){case"features":{i.features=i.features||{},i.features[u.trim()]=!!h;break}case"label":{i.labels=i.labels||{},i.labels[u.trim()]=h;break}case"devices":{switch(f.trim()){case"name":{i.devices&&a&&i.devices.push(a),a={},a.name=h;break}case"on-demand":{a&&h&&(a.onDemand=h=="true");break}case"automatically allowed":{a&&h&&(a.autoAllow=h=="true");break}case"annotations":{a&&(a.annotations=a.annotations||{});break}default:a&&a.annotations&&(a.annotations[u.trim()]=h)}break}case"gcpolicy":{switch(i.gcPolicy=i.gcPolicy||[],s=s||{},f.trim()){case"all":{s.all=h=="true";break}case"filters":{h&&(s.filter=h.split(","));break}case"keep duration":{s.keepDuration=h;break}case"keep bytes":{s.keepBytes=h;break}case"reserved space":{s.reservedSpace=h;break}case"max used space":{s.maxUsedSpace=h;break}case"min free space":{s.minFreeSpace=h;break}}break}case"file":{c&&i.files&&(i.files[c].length>0&&(i.files[c]+=` -`),i.files[c]+=l.replace(/^\s>\s?/,""));break}}}}return a&&i.devices&&i.devices.push(a),s&&i.gcPolicy&&i.gcPolicy.push(s),i.name&&r.nodes.push(i),r}};var BOe=T(Ma(),1);var zk=T(require("fs"),1);var Vk=class{static{o(this,"Config")}resolveFromString(e){return this.resolve(e,!1)}resolveFromFile(e){return this.resolve(e,!0)}resolve(e,r){if(r){if(!zk.default.existsSync(e))throw new Error(`config file ${e} not found`);e=zk.default.readFileSync(e,{encoding:"utf-8"})}let n=ht.tmpName({tmpdir:ht.tmpDir()});return zk.default.writeFileSync(n,e),n}};var $k=class{static{o(this,"BuildKit")}buildx;config;constructor(e){this.config=new Vk,this.buildx=e?.buildx||new pt}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){Ge(r)}return e.buildkit}async getVersionWithinImage(e){return v(`BuildKit.getVersionWithinImage nodeName: ${e}`),Vr.getExecOutput(["inspect","--format","{{.Config.Image}}",`${pt.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return v(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),Vr.getExecOutput(["run","--rm",r.stdout.trim(),"--version"],{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.exitCode==0&&n.stdout.length>0)return`${r.stdout.trim()} => ${n.stdout.trim()}`;if(n.stderr.length>0)throw new Error(r.stderr.trim());return n.stdout.trim()});if(r.stderr.length>0)throw new Error(r.stderr.trim());return r.stdout.trim()})}async versionSatisfies(e,r,n){n||(n=await new zE({buildx:this.buildx}).inspect(e));for(let i of n.nodes){let s=i.buildkit;if(v(`BuildKit.versionSatisfies ${s}: ${r}`),!s)try{s=await this.getVersionWithinImage(i.name||"")}catch{return v(`BuildKit.versionSatisfies ${i.name}: can't get version`),!1}if(v(`BuildKit.versionSatisfies ${i.name}: version ${s}`),n.driver=="docker"&&!s.endsWith("-moby")||!BOe.satisfies(s.replace(/-moby$/,""),r))return!1}return!0}};var jk=class t{static{o(this,"Compose")}_version;_versionOnce;_standalone;constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}async isStandalone(){let e=this._standalone??!await Vr.isAvailable();return v(`Compose.isStandalone: ${e}`),e}async getCommand(e){let r=await this.isStandalone();return{command:r?"compose":"docker",args:r?e:["compose",...e]}}async isAvailable(){let e=await this.getCommand([]),r=await Ie.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(n=>n.stderr.length>0&&n.exitCode!=0?(v(`Compose.isAvailable cmd err: ${n.stderr.trim()}`),!1):n.exitCode==0).catch(n=>(v(`Compose.isAvailable error: ${n}`),!1));return v(`Compose.isAvailable: ${r}`),r}async version(){if(this._versionOnce)return this._version;this._versionOnce=!0;let e=await this.getCommand(["version"]);return this._version=await Ie.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr.trim());return t.parseVersion(r.stdout.trim())}),this._version}async printVersion(){let e=await this.getCommand(["version"]);await Ie.exec(e.command,e.args,{failOnStdErr:!1})}static parseVersion(e){let r=/\sv?([0-9a-f]{7}|[0-9.]+)/.exec(e);if(!r)throw new Error("Cannot parse compose version");return r[1]}};var Xu=T(require("fs"),1),Ll=T(require("os"),1),VE=T(require("path"),1);var Jk=T(Ma(),1),rK=T(require("util"),1);var Wk=class t{static{o(this,"Install")}standalone;githubToken;constructor(e){this.standalone=e?.standalone,this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let n=await t.getDownloadVersion(e);v(`Install.download version: ${n.version}`);let i=await t.getRelease(n,this.githubToken);v(`Install.download release tag name: ${i.tag_name}`);let s=await this.vspec(i.tag_name);v(`Install.download vspec: ${s}`);let a=Jk.clean(s)||"";if(!Jk.valid(a))throw new Error(`Invalid Compose version "${s}".`);let c=new Dn({htcName:n.key!="official"?`compose-dl-bin-${n.key}`:"compose-dl-bin",htcVersion:s,baseCacheDir:VE.default.join(Ll.default.homedir(),".bin","docker-compose"),cacheFile:Ll.default.platform()=="win32"?"docker-compose.exe":"docker-compose",ghaNoCache:r}),l=await c.find();if(l)return D(`Compose binary found in ${l}`),l;let u=rK.format(n.downloadURL,s,this.filename());D(`Downloading ${u}`);let d=await Io(u,void 0,this.githubToken);v(`Install.download htcDownloadPath: ${d}`);let f=await c.save(d);return D(`Cached to ${f}`),f}async installStandalone(e,r){D("Standalone mode"),r=r||ht.tmpDir();let n=VE.default.join(r,"compose-bin-standalone");Xu.default.existsSync(n)||Xu.default.mkdirSync(n,{recursive:!0});let i=Ll.default.platform()=="win32"?"compose.exe":"compose",s=VE.default.join(n,i);return Xu.default.copyFileSync(e,s),D("Fixing perms"),Xu.default.chmodSync(s,"0755"),hc(n),D("Added Compose to PATH"),D(`Binary path: ${s}`),s}async installPlugin(e,r){D("Docker plugin mode"),r=r||Vr.configDir;let n=VE.default.join(r,"cli-plugins");Xu.default.existsSync(n)||Xu.default.mkdirSync(n,{recursive:!0});let i=Ll.default.platform()=="win32"?"docker-compose.exe":"docker-compose",s=VE.default.join(n,i);return Xu.default.copyFileSync(e,s),D("Fixing perms"),Xu.default.chmodSync(s,"0755"),D(`Plugin path: ${s}`),s}async isStandalone(){let e=this.standalone??!await Vr.isAvailable();return v(`Install.isStandalone: ${e}`),e}filename(){let e;switch(Ll.default.arch()){case"x64":{e="x86_64";break}case"ppc64":{e="ppc64le";break}case"arm":{let i=process.config.variables.arm_version;e=i?"armv"+i:"arm";break}case"arm64":{e="aarch64";break}default:{e=Ll.default.arch();break}}let r=Ll.default.platform()=="win32"?"windows":Ll.default.platform(),n=Ll.default.platform()=="win32"?".exe":"";return rK.format("docker-compose-%s-%s%s",r,e,n)}async vspec(e){let r=e.replace(/^v+|v+$/g,"");return D(`Use ${r} version spec cache key for ${e}`),r}static async getDownloadVersion(e){let[r,n]=e.split(":");switch(n||(n=r,r="official"),r){case"official":return{key:r,version:n,downloadURL:"https://github.com/docker/compose/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/compose-releases.json"}};case"cloud":return{key:r,version:n,downloadURL:"https://github.com/docker/compose-desktop/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/compose-lab-releases.json"}};default:throw new Error(`Cannot find compose version for ${e}`)}}static async getRelease(e,r){let i=await new Ke({token:r}).releases("Compose",e.contentOpts);if(!i[e.version])throw new Error(`Cannot find Compose release ${e.version} in releases JSON`);return i[e.version]}};var RS=T(require("fs"),1),Za=T(require("os"),1),$E=T(require("path"),1);var jE=T(Ma(),1),nK=T(require("util"),1);var xOe=` +`),i.files[c]+=l.replace(/^\s>\s?/,""));break}}}}return a&&i.devices&&i.devices.push(a),s&&i.gcPolicy&&i.gcPolicy.push(s),i.name&&r.nodes.push(i),r}};var NOe=T(Ma(),1);var Vk=T(require("fs"),1);var $k=class{static{o(this,"Config")}resolveFromString(e){return this.resolve(e,!1)}resolveFromFile(e){return this.resolve(e,!0)}resolve(e,r){if(r){if(!Vk.default.existsSync(e))throw new Error(`config file ${e} not found`);e=Vk.default.readFileSync(e,{encoding:"utf-8"})}let n=ht.tmpName({tmpdir:ht.tmpDir()});return Vk.default.writeFileSync(n,e),n}};var jk=class{static{o(this,"BuildKit")}buildx;config;constructor(e){this.config=new $k,this.buildx=e?.buildx||new pt}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){Ge(r)}return e.buildkit}async getVersionWithinImage(e){return v(`BuildKit.getVersionWithinImage nodeName: ${e}`),Vr.getExecOutput(["inspect","--format","{{.Config.Image}}",`${pt.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return v(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),Vr.getExecOutput(["run","--rm",r.stdout.trim(),"--version"],{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.exitCode==0&&n.stdout.length>0)return`${r.stdout.trim()} => ${n.stdout.trim()}`;if(n.stderr.length>0)throw new Error(r.stderr.trim());return n.stdout.trim()});if(r.stderr.length>0)throw new Error(r.stderr.trim());return r.stdout.trim()})}async versionSatisfies(e,r,n){n||(n=await new VE({buildx:this.buildx}).inspect(e));for(let i of n.nodes){let s=i.buildkit;if(v(`BuildKit.versionSatisfies ${s}: ${r}`),!s)try{s=await this.getVersionWithinImage(i.name||"")}catch{return v(`BuildKit.versionSatisfies ${i.name}: can't get version`),!1}if(v(`BuildKit.versionSatisfies ${i.name}: version ${s}`),n.driver=="docker"&&!s.endsWith("-moby")||!NOe.satisfies(s.replace(/-moby$/,""),r))return!1}return!0}};var Wk=class t{static{o(this,"Compose")}_version;_versionOnce;_standalone;constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}async isStandalone(){let e=this._standalone??!await Vr.isAvailable();return v(`Compose.isStandalone: ${e}`),e}async getCommand(e){let r=await this.isStandalone();return{command:r?"compose":"docker",args:r?e:["compose",...e]}}async isAvailable(){let e=await this.getCommand([]),r=await Ie.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(n=>n.stderr.length>0&&n.exitCode!=0?(v(`Compose.isAvailable cmd err: ${n.stderr.trim()}`),!1):n.exitCode==0).catch(n=>(v(`Compose.isAvailable error: ${n}`),!1));return v(`Compose.isAvailable: ${r}`),r}async version(){if(this._versionOnce)return this._version;this._versionOnce=!0;let e=await this.getCommand(["version"]);return this._version=await Ie.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr.trim());return t.parseVersion(r.stdout.trim())}),this._version}async printVersion(){let e=await this.getCommand(["version"]);await Ie.exec(e.command,e.args,{failOnStdErr:!1})}static parseVersion(e){let r=/\sv?([0-9a-f]{7}|[0-9.]+)/.exec(e);if(!r)throw new Error("Cannot parse compose version");return r[1]}};var Zu=T(require("fs"),1),Fl=T(require("os"),1),$E=T(require("path"),1);var Yk=T(Ma(),1),nK=T(require("util"),1);var Jk=class t{static{o(this,"Install")}standalone;githubToken;constructor(e){this.standalone=e?.standalone,this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let n=await t.getDownloadVersion(e);v(`Install.download version: ${n.version}`);let i=await t.getRelease(n,this.githubToken);v(`Install.download release tag name: ${i.tag_name}`);let s=await this.vspec(i.tag_name);v(`Install.download vspec: ${s}`);let a=Yk.clean(s)||"";if(!Yk.valid(a))throw new Error(`Invalid Compose version "${s}".`);let c=new Dn({htcName:n.key!="official"?`compose-dl-bin-${n.key}`:"compose-dl-bin",htcVersion:s,baseCacheDir:$E.default.join(Fl.default.homedir(),".bin","docker-compose"),cacheFile:Fl.default.platform()=="win32"?"docker-compose.exe":"docker-compose",ghaNoCache:r}),l=await c.find();if(l)return D(`Compose binary found in ${l}`),l;let u=nK.format(n.downloadURL,s,this.filename());D(`Downloading ${u}`);let d=await Io(u,void 0,this.githubToken);v(`Install.download htcDownloadPath: ${d}`);let f=await c.save(d);return D(`Cached to ${f}`),f}async installStandalone(e,r){D("Standalone mode"),r=r||ht.tmpDir();let n=$E.default.join(r,"compose-bin-standalone");Zu.default.existsSync(n)||Zu.default.mkdirSync(n,{recursive:!0});let i=Fl.default.platform()=="win32"?"compose.exe":"compose",s=$E.default.join(n,i);return Zu.default.copyFileSync(e,s),D("Fixing perms"),Zu.default.chmodSync(s,"0755"),hc(n),D("Added Compose to PATH"),D(`Binary path: ${s}`),s}async installPlugin(e,r){D("Docker plugin mode"),r=r||Vr.configDir;let n=$E.default.join(r,"cli-plugins");Zu.default.existsSync(n)||Zu.default.mkdirSync(n,{recursive:!0});let i=Fl.default.platform()=="win32"?"docker-compose.exe":"docker-compose",s=$E.default.join(n,i);return Zu.default.copyFileSync(e,s),D("Fixing perms"),Zu.default.chmodSync(s,"0755"),D(`Plugin path: ${s}`),s}async isStandalone(){let e=this.standalone??!await Vr.isAvailable();return v(`Install.isStandalone: ${e}`),e}filename(){let e;switch(Fl.default.arch()){case"x64":{e="x86_64";break}case"ppc64":{e="ppc64le";break}case"arm":{let i=process.config.variables.arm_version;e=i?"armv"+i:"arm";break}case"arm64":{e="aarch64";break}default:{e=Fl.default.arch();break}}let r=Fl.default.platform()=="win32"?"windows":Fl.default.platform(),n=Fl.default.platform()=="win32"?".exe":"";return nK.format("docker-compose-%s-%s%s",r,e,n)}async vspec(e){let r=e.replace(/^v+|v+$/g,"");return D(`Use ${r} version spec cache key for ${e}`),r}static async getDownloadVersion(e){let[r,n]=e.split(":");switch(n||(n=r,r="official"),r){case"official":return{key:r,version:n,downloadURL:"https://github.com/docker/compose/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/compose-releases.json"}};case"cloud":return{key:r,version:n,downloadURL:"https://github.com/docker/compose-desktop/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/compose-lab-releases.json"}};default:throw new Error(`Cannot find compose version for ${e}`)}}static async getRelease(e,r){let i=await new Ke({token:r}).releases("Compose",e.contentOpts);if(!i[e.version])throw new Error(`Cannot find Compose release ${e.version} in releases JSON`);return i[e.version]}};var RS=T(require("fs"),1),Za=T(require("os"),1),jE=T(require("path"),1);var WE=T(Ma(),1),iK=T(require("util"),1);var _Oe=` # syntax=docker/dockerfile:1 ARG GO_VERSION="1.24" @@ -289,8 +289,8 @@ EOT FROM scratch COPY --from=builder /out / -`;var Yk=class t{static{o(this,"Install")}githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new pt,this.sigstore=e?.sigstore||new Uf}async download(e){let r=await t.getDownloadVersion(e.version);v(`Install.download version: ${r.version}`);let n=await t.getRelease(r,this.githubToken);v(`Install.download release tag name: ${n.tag_name}`);let i=await this.vspec(n.tag_name);v(`Install.download vspec: ${i}`);let s=jE.clean(i)||"";if(!jE.valid(s))throw new Error(`Invalid Cosign version "${i}".`);let a=new Dn({htcName:"cosign-dl-bin",htcVersion:i,baseCacheDir:$E.default.join(Za.default.homedir(),".bin"),cacheFile:Za.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),c=await a.find();if(c)return D(`Cosign binary found in ${c}`),c;let l=nK.format(r.downloadURL,i,this.filename());D(`Downloading ${l}`);let u=await Io(l,void 0,this.githubToken);v(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&jE.satisfies(i,">=3.0.1")&&await this.verifySignature(u,l);let d=await a.save(u,e.skipState);return D(`Cached to ${d}`),d}async build(e,r,n){let i=await this.vspec(e);v(`Install.build vspec: ${i}`);let s=new Dn({htcName:"cosign-build-bin",htcVersion:i,baseCacheDir:$E.default.join(Za.default.homedir(),".bin"),cacheFile:Za.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),a=await s.find();if(a)return D(`Cosign binary found in ${a}`),a;let c=$E.default.join(ht.tmpDir(),"cosign-build-cache"),l=await this.buildCommand(e,c),u=await Ie.getExecOutput(l.command,l.args,{ignoreReturnCode:!0,input:Buffer.from(xOe)}).then(f=>{if(f.stderr.length>0&&f.exitCode!=0)throw new Error(`build failed with: ${pt.getErrorMessage(f.stderr)}`);return`${c}/cosign`}),d=await s.save(u,n);return D(`Cached to ${d}`),d}async install(e,r){r=r||ht.tmpDir();let n=$E.default.join(r,"cosign-bin");RS.default.existsSync(n)||RS.default.mkdirSync(n,{recursive:!0});let i=Za.default.platform()=="win32"?"cosign.exe":"cosign",s=$E.default.join(n,i);return RS.default.copyFileSync(e,s),D("Fixing perms"),RS.default.chmodSync(s,"0755"),hc(n),D("Added Cosign to PATH"),D(`Binary path: ${s}`),s}async buildCommand(e,r){let n=await new pt({standalone:!0}).isAvailable(),i=await new pt({standalone:!1}).isAvailable(),s=!1;if(await this.buildx.isStandalone()&&n)v("Install.buildCommand: Buildx standalone found, build with it"),s=!0;else if(!await this.buildx.isStandalone()&&i)v("Install.buildCommand: Buildx plugin found, build with it"),s=!1;else if(n)v("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),s=!0;else if(i)v("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),s=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let a=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&a.push("--secret","id=GIT_AUTH_TOKEN"),a.push("-f-",e),await new pt({standalone:s}).getCommand(a)}async verifySignature(e,r){let n=`${r}.sigstore.json`;D(`Downloading keyless verification bundle at ${n}`);let i=await Io(n,void 0,this.githubToken);v(`Install.verifySignature bundlePath: ${i}`);let s=await this.sigstore.verifyArtifact(e,i,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});D(`Cosign binary signature verified! ${s.tlogID?`${UE}?logIndex=${s.tlogID}`:""}`)}filename(){let e;switch(Za.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=Za.default.arch();break}}let r=Za.default.platform()=="win32"?"windows":Za.default.platform(),n=Za.default.platform()=="win32"?".exe":"";return nK.format("cosign-%s-%s%s",r,e,n)}async vspec(e){if(!Oe.isValidRef(e)){let u=e.replace(/^v+|v+$/g,"");return D(`Use ${u} version spec cache key for ${e}`),u}let[r,n]=e.split("#");n.length==0&&(n="master");let i;n.match(/^[0-9a-fA-F]{40}$/)?i=n:i=await lE.remoteSha(r,n,process.env.GIT_AUTH_TOKEN);let[s,a]=r.substring(19).split("/"),c=`${s}/${Oe.trimSuffix(a,".git")}/${i}`,l=Oe.hash(c);return D(`Use ${l} version spec cache key for ${c}`),l}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/sigstore/cosign/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/cosign-releases.json"}}}static async getRelease(e,r){let i=await new Ke({token:r}).releases("Cosign",e.contentOpts);if(!i[e.version])throw new Error(`Cannot find Cosign release ${e.version} in releases JSON`);return i[e.version]}};var vOe=T(Ma(),1);var Kk=class{static{o(this,"Regctl")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"regctl",this._version="",this._versionOnce=!1}async blobGet(e){return await Ie.getExecOutput(this.binPath,["blob","get",e.repository,e.digest],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr.trim());return r.stdout})}async manifestGet(e){return await Ie.getExecOutput(this.binPath,["manifest","get",e.image,`--platform=${e.platform??"local"}`,"--format={{json .}}"],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr.trim());return JSON.parse(r.stdout.trim())})}async isAvailable(){let e=await Ie.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(v(`Regctl.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(v(`Regctl.isAvailable error: ${r}`),!1));return v(`Regctl.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await Ie.getExecOutput(this.binPath,["version","--format","{{.VCSTag}}"],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.stderr.length>0&&e.exitCode!=0)throw new Error(e.stderr.trim());return e.stdout.trim()}),this._version)}async printVersion(){await Ie.exec(this.binPath,["version"],{failOnStdErr:!1})}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return v("Regctl.versionSatisfies false: undefined version"),!1;let i=vOe.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return v(`Regctl.versionSatisfies ${n} statisfies ${e}: ${i}`),i}};var _S=T(require("fs"),1),Zu=T(require("os"),1),Xk=T(require("path"),1);var eP=T(Ma(),1),iK=T(require("util"),1);var Zk=class t{static{o(this,"Install")}githubToken;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let n=await t.getDownloadVersion(e);v(`Install.download version: ${n.version}`);let i=await t.getRelease(n,this.githubToken);v(`Install.download release tag name: ${i.tag_name}`);let s=await this.vspec(i.tag_name);v(`Install.download vspec: ${s}`);let a=eP.clean(s)||"";if(!eP.valid(a))throw new Error(`Invalid regclient version "${s}".`);let c=new Dn({htcName:"regctl-dl-bin",htcVersion:s,baseCacheDir:Xk.default.join(Zu.default.homedir(),".bin"),cacheFile:Zu.default.platform()=="win32"?"regctl.exe":"regctl",ghaNoCache:r}),l=await c.find();if(l)return D(`regctl binary found in ${l}`),l;let u=iK.format(n.downloadURL,s,this.filename());D(`Downloading ${u}`);let d=await Io(u,void 0,this.githubToken);v(`Install.download htcDownloadPath: ${d}`);let f=await c.save(d);return D(`Cached to ${f}`),f}async install(e,r){r=r||ht.tmpDir();let n=Xk.default.join(r,"regctl-bin");_S.default.existsSync(n)||_S.default.mkdirSync(n,{recursive:!0});let i=Zu.default.platform()=="win32"?"regctl.exe":"regctl",s=Xk.default.join(n,i);return _S.default.copyFileSync(e,s),D("Fixing perms"),_S.default.chmodSync(s,"0755"),hc(n),D("Added regctl to PATH"),D(`Binary path: ${s}`),s}filename(){let e;switch(Zu.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}case"arm":{let i=process.config.variables.arm_version;e=i?"armv"+i:"arm";break}default:{e=Zu.default.arch();break}}let r=Zu.default.platform()=="win32"?"windows":Zu.default.platform(),n=Zu.default.platform()=="win32"?".exe":"";return iK.format("regctl-%s-%s%s",r,e,n)}async vspec(e){let r=e.replace(/^v+|v+$/g,"");return D(`Use ${r} version spec cache key for ${e}`),r}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/regclient/regclient/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/regclient-releases.json"}}}static async getRelease(e,r){let i=await new Ke({token:r}).releases("regclient",e.contentOpts);if(!i[e.version])throw new Error(`Cannot find regclient release ${e.version} in releases JSON`);return i[e.version]}};var NOe=T(Ma(),1);var tP=class{static{o(this,"Undock")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"undock",this._version="",this._versionOnce=!1}async run(e){if(!e.source)throw new Error("source is required");if(!e.dist)throw new Error("dist is required");let r=[];e.logLevel&&r.push(`--log-level=${e.logLevel}`),e.logCaller&&r.push("--log-caller"),e.cacheDir&&r.push(`--cachedir=${e.cacheDir}`),e.platform&&r.push(`--platform=${e.platform}`),e.all&&r.push("--all"),e.include&&e.include.forEach(n=>{r.push(`--include=${n}`)}),e.insecure&&r.push("--insecure"),e.rmDist&&r.push("--rm-dist"),e.wrap&&r.push("--wrap"),r.push(e.source,e.dist),await Ie.exec(this.binPath,r,{failOnStdErr:!1})}async isAvailable(){let e=await Ie.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(v(`Undock.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(v(`Undock.isAvailable error: ${r}`),!1));return v(`Undock.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await Ie.getExecOutput(this.binPath,["--version"],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.stderr.length>0&&e.exitCode!=0)throw new Error(e.stderr.trim());return e.stdout.trim()}),this._version)}async printVersion(){await Ie.exec(this.binPath,["--version"],{failOnStdErr:!1})}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return v("Undock.versionSatisfies false: undefined version"),!1;let i=NOe.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return v(`Undock.versionSatisfies ${n} statisfies ${e}: ${i}`),i}};var TS=T(require("fs"),1),ec=T(require("os"),1),DS=T(require("path"),1);var nP=T(Ma(),1),sK=T(require("util"),1);var rP=class t{static{o(this,"Install")}githubToken;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let n=await t.getDownloadVersion(e);v(`Install.download version: ${n.version}`);let i=await t.getRelease(n,this.githubToken);v(`Install.download release tag name: ${i.tag_name}`);let s=await this.vspec(i.tag_name);v(`Install.download vspec: ${s}`);let a=nP.clean(s)||"";if(!nP.valid(a))throw new Error(`Invalid Undock version "${s}".`);let c=new Dn({htcName:"undock-dl-bin",htcVersion:s,baseCacheDir:DS.default.join(ec.default.homedir(),".bin"),cacheFile:ec.default.platform()=="win32"?"undock.exe":"undock",ghaNoCache:r}),l=await c.find();if(l)return D(`Undock binary found in ${l}`),l;let u=sK.format(n.downloadURL,s,this.filename(s));D(`Downloading ${u}`);let d=await Io(u,void 0,this.githubToken);v(`Install.download htcDownloadPath: ${d}`);let f;ec.default.platform()=="win32"?f=await Hae(d):f=await Gae(d),D(`Extracted to ${f}`);let h=DS.default.join(f,ec.default.platform()=="win32"?"undock.exe":"undock");v(`Install.download exePath: ${h}`);let p=await c.save(h);return D(`Cached to ${p}`),p}async install(e,r){r=r||ht.tmpDir();let n=DS.default.join(r,"undock-bin");TS.default.existsSync(n)||TS.default.mkdirSync(n,{recursive:!0});let i=ec.default.platform()=="win32"?"undock.exe":"undock",s=DS.default.join(n,i);return TS.default.copyFileSync(e,s),D("Fixing perms"),TS.default.chmodSync(s,"0755"),hc(n),D("Added Undock to PATH"),D(`Binary path: ${s}`),s}filename(e){let r;switch(ec.default.arch()){case"x64":{r="amd64";break}case"ppc64":{r="ppc64le";break}case"arm":{let s=process.config.variables.arm_version;r=s?"armv"+s:"arm";break}default:{r=ec.default.arch();break}}let n=ec.default.platform()=="win32"?"windows":ec.default.platform(),i=ec.default.platform()=="win32"?".zip":".tar.gz";return sK.format("undock_%s_%s_%s%s",e,n,r,i)}async vspec(e){let r=e.replace(/^v+|v+$/g,"");return D(`Use ${r} version spec cache key for ${e}`),r}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/crazy-max/undock/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/undock-releases.json"}}}static async getRelease(e,r){let i=await new Ke({token:r}).releases("Undock",e.contentOpts);if(!i[e.version])throw new Error(`Cannot find Undock release ${e.version} in releases JSON`);return i[e.version]}};var iP=class{static{o(this,"Toolkit")}github;buildx;buildxBuild;buildxBake;buildxInstall;builder;buildkit;compose;composeInstall;cosign;cosignInstall;regctl;regctlInstall;sigstore;undock;undockInstall;constructor(e={}){this.github=new Ke({token:e.githubToken}),this.buildx=new pt,this.buildxBuild=new zu({buildx:this.buildx}),this.buildxBake=new cE({buildx:this.buildx}),this.buildxInstall=new Hk,this.builder=new zE({buildx:this.buildx}),this.buildkit=new $k({buildx:this.buildx}),this.compose=new jk,this.composeInstall=new Wk,this.cosign=new Ss,this.cosignInstall=new Yk({buildx:this.buildx}),this.regctl=new Kk,this.regctlInstall=new Zk,this.sigstore=new Uf,this.undock=new tP,this.undockInstall=new rP}};var ROe=T(require("fs"),1);var _Oe=T(V4(),1);async function TOe(){return{builder:Ms("builder"),allow:Oe.getInputList("allow"),call:Ms("call"),files:Oe.getInputList("files"),"no-cache":wh("no-cache"),pull:wh("pull"),load:wh("load"),provenance:zu.getProvenanceInput("provenance"),push:wh("push"),sbom:Ms("sbom"),set:Oe.getInputList("set",{ignoreComma:!0,quote:!1}),source:await r3t(Ms("source")),targets:Oe.getInputList("targets"),vars:n3t(Ms("vars")),"github-token":Ms("github-token")}}o(TOe,"getInputs");async function DOe(t,e,r){return[...await e3t(t,e,r),...await t3t(t),...t.targets]}o(DOe,"getArgs");async function e3t(t,e,r){let n=["bake"];if(t.source.remoteRef&&n.push(t.source.remoteRef),await r.buildx.versionSatisfies(">=0.17.0")&&(await r.buildx.versionSatisfies(">=0.18.0")&&t.allow.push("fs=*"),await Oe.asyncForEach(t.allow,async i=>{n.push("--allow",i)})),t.call){if(!await r.buildx.versionSatisfies(">=0.16.0"))throw new Error("Buildx >= 0.16.0 is required to use the call input.");n.push("--call",t.call)}if(await Oe.asyncForEach(t.files,async i=>{n.push("--file",i)}),await Oe.asyncForEach(t.set,async i=>{n.push("--set",i)}),t.vars.length>0){if(!await r.buildx.versionSatisfies(">=0.31.0"))throw new Error("Buildx >= 0.31.0 is required to use the vars input.");await Oe.asyncForEach(t.vars,async i=>{n.push("--var",i)})}if(await r.buildx.versionSatisfies(">=0.6.0")&&n.push("--metadata-file",r.buildxBake.getMetadataFilePath()),await r.buildx.versionSatisfies(">=0.10.0")){if(t.provenance)n.push("--provenance",t.provenance);else if(!i3t()&&await r.buildkit.versionSatisfies(t.builder,">=0.11.0")&&!cE.hasDockerExporter(e,t.load))for(let i in e.target){let s=e.target[i];(!Array.isArray(s.attest)||!s.attest.some(a=>a?.type==="provenance"))&&(Ke.context.payload.repository?.private??!1?n.push("--set",`${i}.attest=type=provenance,${zu.resolveProvenanceAttrs("mode=min,inline-only=true")}`):n.push("--set",`${i}.attest=type=provenance,${zu.resolveProvenanceAttrs("mode=max")}`))}t.sbom&&n.push("--sbom",t.sbom)}return n}o(e3t,"getBakeArgs");async function t3t(t){let e=[];return t["no-cache"]&&e.push("--no-cache"),t.builder&&e.push("--builder",t.builder),t.pull&&e.push("--pull"),t.load&&e.push("--load"),t.push&&e.push("--push"),e}o(t3t,"getCommonArgs");async function r3t(t){let e=await new zu().gitContext(),r=_Oe.compile(t)({defaultContext:e});if(r||(r=e),Oe.isValidRef(r))return{remoteRef:r};try{ROe.statSync(t).isDirectory()}catch{throw new Error(`Invalid source: ${t} does not exist or is not a directory.`)}return{workdir:r}}o(r3t,"getBakeContext");function n3t(t){let e;try{e=JSON.parse(t)}catch{return Oe.getList(t,{ignoreComma:!0,quote:!1})}if(!Array.isArray(e)||!e.every(r=>typeof r=="string"))throw new Error("Invalid vars input: expected a JSON array of strings.");return e}o(n3t,"getBakeVars");function i3t(){return process.env.BUILDX_NO_DEFAULT_ATTESTATIONS?Oe.parseBool(process.env.BUILDX_NO_DEFAULT_ATTESTATIONS):!1}o(i3t,"noDefaultAttestations");var sP=process.env.STATE_tmpDir||"",QOe=process.env.STATE_builderDriver||"",kOe=process.env.STATE_builderEndpoint||"",POe=process.env.STATE_summaryInputs?JSON.parse(process.env.STATE_summaryInputs):void 0,OOe=process.env.STATE_bakeDefinition?JSON.parse(process.env.STATE_bakeDefinition):void 0,LOe=process.env.STATE_buildRefs?process.env.STATE_buildRefs.split(","):[],FOe=!!process.env.STATE_isSummarySupported;function MOe(t){Eo("tmpDir",t)}o(MOe,"setTmpDir");function UOe(t){Eo("builderDriver",t)}o(UOe,"setBuilderDriver");function qOe(t){Eo("builderEndpoint",t)}o(qOe,"setBuilderEndpoint");function GOe(t){Eo("bakeDefinition",JSON.stringify(t))}o(GOe,"setBakeDefinition");function HOe(t){Eo("buildRefs",t.join(","))}o(HOe,"setBuildRefs");function zOe(){Eo("isSummarySupported","true")}o(zOe,"setSummarySupported");function VOe(t){let e={};(t.source.remoteRef||t.source.workdir)&&(e.source=t.source.remoteRef||t.source.workdir);for(let r of Object.keys(t)){if(r==="source"||r==="github-token")continue;let n=t[r];if(!(typeof n=="boolean"&&!n)){{if(Array.isArray(n)&&n.length===0)continue;if(!n)continue}e[r]=n}}Eo("summaryInputs",JSON.stringify(e))}o(VOe,"setSummaryInputs");ige(async()=>{let t=new Date,e=await TOe();VOe(e),v(`inputs: ${JSON.stringify(e)}`);let r=new iP,n=process.env.BUILDX_BAKE_GIT_AUTH_TOKEN??e["github-token"];if(await Sr("GitHub Actions runtime token ACs",async()=>{try{await Ke.printActionsRuntimeTokenACs()}catch(h){Ge(h.message)}}),await Sr("Docker info",async()=>{try{await Vr.printVersion(),await Vr.printInfo()}catch(h){D(h.message)}}),await Sr("Proxy configuration",async()=>{let h,p=!1;try{h=await Vr.configFile()}catch(m){p=!0,Ge(`Unable to parse config file ${jOe.join(Vr.configDir,"config.json")}: ${m}`)}if(h&&h.proxies)for(let m in h.proxies){let A="";Object.keys(h.proxies).length>1&&(A=" ",D(m));for(let E in h.proxies[m])D(`${A}${E}: ${h.proxies[m][E]}`)}else p||D("No proxy configuration found")}),!await r.buildx.isAvailable()){lv("Docker buildx is required. See https://github.com/docker/setup-buildx-action to set up buildx.");return}MOe(ht.tmpDir()),await Sr("Buildx version",async()=>{await r.buildx.printVersion()});let i;await Sr("Builder info",async()=>{i=await r.builder.inspect(e.builder),UOe(i.driver??""),qOe(i.nodes?.[0]?.endpoint??""),D(JSON.stringify(i,null,2))});let s;if(await Sr("Parsing raw definition",async()=>{s=await r.buildxBake.getDefinition({allow:e.allow,files:e.files,load:e.load,noCache:e["no-cache"],overrides:e.set,provenance:e.provenance,push:e.push,sbom:e.sbom,source:e.source.remoteRef,targets:e.targets,vars:e.vars,githubToken:n},{cwd:e.source.workdir})}),!s)throw new Error("Bake definition not set");GOe(s);let a=await DOe(e,s,r),c=await r.buildx.getCommand(a),l=Object.assign({},process.env,{BUILDX_BAKE_GIT_AUTH_TOKEN:n,BUILDX_METADATA_WARNINGS:"true"});await Sr("Bake definition",async()=>{await Ie.getExecOutput(c.command,[...c.args,"--print"],{cwd:e.source.workdir,env:l,ignoreReturnCode:!0}).then(h=>{if(h.stderr.length>0&&h.exitCode!=0)throw Error(h.stderr)})});let u;await Ie.getExecOutput(c.command,c.args,{cwd:e.source.workdir,env:l,ignoreReturnCode:!0}).then(h=>{if(h.exitCode!=0)if(e.call&&e.call==="check"&&h.stdout.length>0){let p=[...h.stdout.matchAll(/^Check complete, (\d+) warnings? (?:has|have) been found!/gm)].reduce((m,A)=>m+parseInt(A[1],10),0);p>0?p===1?u=Error(`Check complete, ${p} warning has been found!`):u=Error(`Check complete, ${p} warnings have been found!`):u=Error(h.stdout.split(` -`)[0]?.trim())}else u=Error(`buildx bake failed with: ${pt.getErrorMessage(h.stderr)}`)});let d=r.buildxBake.resolveMetadata();d&&await Sr("Metadata",async()=>{let h=JSON.stringify(d,null,2);Ke.printUntrusted(h),Use("metadata",h)});let f=[];if(await Sr("Build references",async()=>{if(f=await a3t(r,t,e.builder),f.length>0){for(let h of f)D(h);HOe(f)}else D("No build references found")}),c3t()){let h=r.buildxBake.resolveWarnings(d);if(f.length>0&&h&&h.length>0){let p=await pt.convertWarningsToGitHubAnnotations(h,f);v(`annotations: ${JSON.stringify(p,null,2)}`),p&&p.length>0&&await Sr(`Generating GitHub annotations (${p.length} build checks found)`,async()=>{for(let m of p)Ge(m.message,m)})}}if(await Sr("Check build summary support",async()=>{l3t()?e.call&&e.call!=="build"?D(`Build summary skipped for ${e.call} subrequest`):Ke.isGHES?D("Build summary is not yet supported on GHES"):await r.buildx.versionSatisfies(">=0.23.0")?f.length==0?D("Build summary requires at least one build reference"):(D("Build summary supported!"),zOe()):D("Build summary requires Buildx >= 0.23.0"):D("Build summary disabled")}),u)throw u},async()=>{FOe&&await Sr("Generating build summary",async()=>{try{let t=u3t(),e;t&&(e=d3t());let n=await new Q2().export({refs:LOe});D(`Build records written to ${n.dockerbuildFilename} (${Oe.formatFileSize(n.dockerbuildSize)})`);let i;t&&(i=await t1.upload({filename:n.dockerbuildFilename,retentionDays:e})),await l1.writeBuildSummary({exportRes:n,uploadRes:i,inputs:POe,bakeDefinition:OOe,driver:QOe,endpoint:kOe})}catch(t){Ge(t.message)}}),sP.length>0&&await Sr(`Removing temp folder ${sP}`,async()=>{$Oe.rmSync(sP,{recursive:!0})})});async function a3t(t,e,r){let n=t.buildxBake.resolveRefs();if(n)return n;r||(r=(await t.builder.inspect()).name);let i=pt.refs({dir:pt.refsDir,builderName:r,since:e}),s=[];for(let a in i)Object.prototype.hasOwnProperty.call(i,a)&&s.push(a);return s}o(a3t,"buildRefs");function c3t(){return process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS?Oe.parseBool(process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS):!0}o(c3t,"buildChecksAnnotationsEnabled");function l3t(){return process.env.DOCKER_BUILD_SUMMARY?Oe.parseBool(process.env.DOCKER_BUILD_SUMMARY):!0}o(l3t,"buildSummaryEnabled");function u3t(){return process.env.DOCKER_BUILD_RECORD_UPLOAD?Oe.parseBool(process.env.DOCKER_BUILD_RECORD_UPLOAD):!0}o(u3t,"buildRecordUploadEnabled");function d3t(){let t=process.env.DOCKER_BUILD_RECORD_RETENTION_DAYS;if(t){let e=parseInt(t);if(isNaN(e))throw Error(`Invalid build record retention days: ${t}`);return e}}o(d3t,"buildRecordRetentionDays"); +`;var Kk=class t{static{o(this,"Install")}githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new pt,this.sigstore=e?.sigstore||new qf}async download(e){let r=await t.getDownloadVersion(e.version);v(`Install.download version: ${r.version}`);let n=await t.getRelease(r,this.githubToken);v(`Install.download release tag name: ${n.tag_name}`);let i=await this.vspec(n.tag_name);v(`Install.download vspec: ${i}`);let s=WE.clean(i)||"";if(!WE.valid(s))throw new Error(`Invalid Cosign version "${i}".`);let a=new Dn({htcName:"cosign-dl-bin",htcVersion:i,baseCacheDir:jE.default.join(Za.default.homedir(),".bin"),cacheFile:Za.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),c=await a.find();if(c)return D(`Cosign binary found in ${c}`),c;let l=iK.format(r.downloadURL,i,this.filename());D(`Downloading ${l}`);let u=await Io(l,void 0,this.githubToken);v(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&WE.satisfies(i,">=3.0.1")&&await this.verifySignature(u,l);let d=await a.save(u,e.skipState);return D(`Cached to ${d}`),d}async build(e,r,n){let i=await this.vspec(e);v(`Install.build vspec: ${i}`);let s=new Dn({htcName:"cosign-build-bin",htcVersion:i,baseCacheDir:jE.default.join(Za.default.homedir(),".bin"),cacheFile:Za.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),a=await s.find();if(a)return D(`Cosign binary found in ${a}`),a;let c=jE.default.join(ht.tmpDir(),"cosign-build-cache"),l=await this.buildCommand(e,c),u=await Ie.getExecOutput(l.command,l.args,{ignoreReturnCode:!0,input:Buffer.from(_Oe)}).then(f=>{if(f.stderr.length>0&&f.exitCode!=0)throw new Error(`build failed with: ${pt.getErrorMessage(f.stderr)}`);return`${c}/cosign`}),d=await s.save(u,n);return D(`Cached to ${d}`),d}async install(e,r){r=r||ht.tmpDir();let n=jE.default.join(r,"cosign-bin");RS.default.existsSync(n)||RS.default.mkdirSync(n,{recursive:!0});let i=Za.default.platform()=="win32"?"cosign.exe":"cosign",s=jE.default.join(n,i);return RS.default.copyFileSync(e,s),D("Fixing perms"),RS.default.chmodSync(s,"0755"),hc(n),D("Added Cosign to PATH"),D(`Binary path: ${s}`),s}async buildCommand(e,r){let n=await new pt({standalone:!0}).isAvailable(),i=await new pt({standalone:!1}).isAvailable(),s=!1;if(await this.buildx.isStandalone()&&n)v("Install.buildCommand: Buildx standalone found, build with it"),s=!0;else if(!await this.buildx.isStandalone()&&i)v("Install.buildCommand: Buildx plugin found, build with it"),s=!1;else if(n)v("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),s=!0;else if(i)v("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),s=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let a=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&a.push("--secret","id=GIT_AUTH_TOKEN"),a.push("-f-",e),await new pt({standalone:s}).getCommand(a)}async verifySignature(e,r){let n=`${r}.sigstore.json`;D(`Downloading keyless verification bundle at ${n}`);let i=await Io(n,void 0,this.githubToken);v(`Install.verifySignature bundlePath: ${i}`);let s=await this.sigstore.verifyArtifact(e,i,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});D(`Cosign binary signature verified! ${s.tlogID?`${qE}?logIndex=${s.tlogID}`:""}`)}filename(){let e;switch(Za.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=Za.default.arch();break}}let r=Za.default.platform()=="win32"?"windows":Za.default.platform(),n=Za.default.platform()=="win32"?".exe":"";return iK.format("cosign-%s-%s%s",r,e,n)}async vspec(e){if(!Oe.isValidRef(e)){let u=e.replace(/^v+|v+$/g,"");return D(`Use ${u} version spec cache key for ${e}`),u}let[r,n]=e.split("#");n.length==0&&(n="master");let i;n.match(/^[0-9a-fA-F]{40}$/)?i=n:i=await uE.remoteSha(r,n,process.env.GIT_AUTH_TOKEN);let[s,a]=r.substring(19).split("/"),c=`${s}/${Oe.trimSuffix(a,".git")}/${i}`,l=Oe.hash(c);return D(`Use ${l} version spec cache key for ${c}`),l}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/sigstore/cosign/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/cosign-releases.json"}}}static async getRelease(e,r){let i=await new Ke({token:r}).releases("Cosign",e.contentOpts);if(!i[e.version])throw new Error(`Cannot find Cosign release ${e.version} in releases JSON`);return i[e.version]}};var ROe=T(Ma(),1);var Xk=class{static{o(this,"Regctl")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"regctl",this._version="",this._versionOnce=!1}async blobGet(e){return await Ie.getExecOutput(this.binPath,["blob","get",e.repository,e.digest],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr.trim());return r.stdout})}async manifestGet(e){return await Ie.getExecOutput(this.binPath,["manifest","get",e.image,`--platform=${e.platform??"local"}`,"--format={{json .}}"],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr.trim());return JSON.parse(r.stdout.trim())})}async isAvailable(){let e=await Ie.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(v(`Regctl.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(v(`Regctl.isAvailable error: ${r}`),!1));return v(`Regctl.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await Ie.getExecOutput(this.binPath,["version","--format","{{.VCSTag}}"],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.stderr.length>0&&e.exitCode!=0)throw new Error(e.stderr.trim());return e.stdout.trim()}),this._version)}async printVersion(){await Ie.exec(this.binPath,["version"],{failOnStdErr:!1})}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return v("Regctl.versionSatisfies false: undefined version"),!1;let i=ROe.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return v(`Regctl.versionSatisfies ${n} statisfies ${e}: ${i}`),i}};var TS=T(require("fs"),1),ed=T(require("os"),1),Zk=T(require("path"),1);var tP=T(Ma(),1),sK=T(require("util"),1);var eP=class t{static{o(this,"Install")}githubToken;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let n=await t.getDownloadVersion(e);v(`Install.download version: ${n.version}`);let i=await t.getRelease(n,this.githubToken);v(`Install.download release tag name: ${i.tag_name}`);let s=await this.vspec(i.tag_name);v(`Install.download vspec: ${s}`);let a=tP.clean(s)||"";if(!tP.valid(a))throw new Error(`Invalid regclient version "${s}".`);let c=new Dn({htcName:"regctl-dl-bin",htcVersion:s,baseCacheDir:Zk.default.join(ed.default.homedir(),".bin"),cacheFile:ed.default.platform()=="win32"?"regctl.exe":"regctl",ghaNoCache:r}),l=await c.find();if(l)return D(`regctl binary found in ${l}`),l;let u=sK.format(n.downloadURL,s,this.filename());D(`Downloading ${u}`);let d=await Io(u,void 0,this.githubToken);v(`Install.download htcDownloadPath: ${d}`);let f=await c.save(d);return D(`Cached to ${f}`),f}async install(e,r){r=r||ht.tmpDir();let n=Zk.default.join(r,"regctl-bin");TS.default.existsSync(n)||TS.default.mkdirSync(n,{recursive:!0});let i=ed.default.platform()=="win32"?"regctl.exe":"regctl",s=Zk.default.join(n,i);return TS.default.copyFileSync(e,s),D("Fixing perms"),TS.default.chmodSync(s,"0755"),hc(n),D("Added regctl to PATH"),D(`Binary path: ${s}`),s}filename(){let e;switch(ed.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}case"arm":{let i=process.config.variables.arm_version;e=i?"armv"+i:"arm";break}default:{e=ed.default.arch();break}}let r=ed.default.platform()=="win32"?"windows":ed.default.platform(),n=ed.default.platform()=="win32"?".exe":"";return sK.format("regctl-%s-%s%s",r,e,n)}async vspec(e){let r=e.replace(/^v+|v+$/g,"");return D(`Use ${r} version spec cache key for ${e}`),r}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/regclient/regclient/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/regclient-releases.json"}}}static async getRelease(e,r){let i=await new Ke({token:r}).releases("regclient",e.contentOpts);if(!i[e.version])throw new Error(`Cannot find regclient release ${e.version} in releases JSON`);return i[e.version]}};var TOe=T(Ma(),1);var rP=class{static{o(this,"Undock")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"undock",this._version="",this._versionOnce=!1}async run(e){if(!e.source)throw new Error("source is required");if(!e.dist)throw new Error("dist is required");let r=[];e.logLevel&&r.push(`--log-level=${e.logLevel}`),e.logCaller&&r.push("--log-caller"),e.cacheDir&&r.push(`--cachedir=${e.cacheDir}`),e.platform&&r.push(`--platform=${e.platform}`),e.all&&r.push("--all"),e.include&&e.include.forEach(n=>{r.push(`--include=${n}`)}),e.insecure&&r.push("--insecure"),e.rmDist&&r.push("--rm-dist"),e.wrap&&r.push("--wrap"),r.push(e.source,e.dist),await Ie.exec(this.binPath,r,{failOnStdErr:!1})}async isAvailable(){let e=await Ie.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(v(`Undock.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(v(`Undock.isAvailable error: ${r}`),!1));return v(`Undock.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await Ie.getExecOutput(this.binPath,["--version"],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.stderr.length>0&&e.exitCode!=0)throw new Error(e.stderr.trim());return e.stdout.trim()}),this._version)}async printVersion(){await Ie.exec(this.binPath,["--version"],{failOnStdErr:!1})}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return v("Undock.versionSatisfies false: undefined version"),!1;let i=TOe.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return v(`Undock.versionSatisfies ${n} statisfies ${e}: ${i}`),i}};var DS=T(require("fs"),1),ec=T(require("os"),1),QS=T(require("path"),1);var iP=T(Ma(),1),oK=T(require("util"),1);var nP=class t{static{o(this,"Install")}githubToken;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let n=await t.getDownloadVersion(e);v(`Install.download version: ${n.version}`);let i=await t.getRelease(n,this.githubToken);v(`Install.download release tag name: ${i.tag_name}`);let s=await this.vspec(i.tag_name);v(`Install.download vspec: ${s}`);let a=iP.clean(s)||"";if(!iP.valid(a))throw new Error(`Invalid Undock version "${s}".`);let c=new Dn({htcName:"undock-dl-bin",htcVersion:s,baseCacheDir:QS.default.join(ec.default.homedir(),".bin"),cacheFile:ec.default.platform()=="win32"?"undock.exe":"undock",ghaNoCache:r}),l=await c.find();if(l)return D(`Undock binary found in ${l}`),l;let u=oK.format(n.downloadURL,s,this.filename(s));D(`Downloading ${u}`);let d=await Io(u,void 0,this.githubToken);v(`Install.download htcDownloadPath: ${d}`);let f;ec.default.platform()=="win32"?f=await zae(d):f=await Hae(d),D(`Extracted to ${f}`);let h=QS.default.join(f,ec.default.platform()=="win32"?"undock.exe":"undock");v(`Install.download exePath: ${h}`);let p=await c.save(h);return D(`Cached to ${p}`),p}async install(e,r){r=r||ht.tmpDir();let n=QS.default.join(r,"undock-bin");DS.default.existsSync(n)||DS.default.mkdirSync(n,{recursive:!0});let i=ec.default.platform()=="win32"?"undock.exe":"undock",s=QS.default.join(n,i);return DS.default.copyFileSync(e,s),D("Fixing perms"),DS.default.chmodSync(s,"0755"),hc(n),D("Added Undock to PATH"),D(`Binary path: ${s}`),s}filename(e){let r;switch(ec.default.arch()){case"x64":{r="amd64";break}case"ppc64":{r="ppc64le";break}case"arm":{let s=process.config.variables.arm_version;r=s?"armv"+s:"arm";break}default:{r=ec.default.arch();break}}let n=ec.default.platform()=="win32"?"windows":ec.default.platform(),i=ec.default.platform()=="win32"?".zip":".tar.gz";return oK.format("undock_%s_%s_%s%s",e,n,r,i)}async vspec(e){let r=e.replace(/^v+|v+$/g,"");return D(`Use ${r} version spec cache key for ${e}`),r}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/crazy-max/undock/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/undock-releases.json"}}}static async getRelease(e,r){let i=await new Ke({token:r}).releases("Undock",e.contentOpts);if(!i[e.version])throw new Error(`Cannot find Undock release ${e.version} in releases JSON`);return i[e.version]}};var sP=class{static{o(this,"Toolkit")}github;buildx;buildxBuild;buildxBake;buildxInstall;builder;buildkit;compose;composeInstall;cosign;cosignInstall;regctl;regctlInstall;sigstore;undock;undockInstall;constructor(e={}){this.github=new Ke({token:e.githubToken}),this.buildx=new pt,this.buildxBuild=new Vu({buildx:this.buildx}),this.buildxBake=new lE({buildx:this.buildx}),this.buildxInstall=new zk,this.builder=new VE({buildx:this.buildx}),this.buildkit=new jk({buildx:this.buildx}),this.compose=new Wk,this.composeInstall=new Jk,this.cosign=new Ss,this.cosignInstall=new Kk({buildx:this.buildx}),this.regctl=new Xk,this.regctlInstall=new eP,this.sigstore=new qf,this.undock=new rP,this.undockInstall=new nP}};var DOe=T(require("fs"),1);var QOe=T($4(),1);async function kOe(){return{builder:Ms("builder"),allow:Oe.getInputList("allow"),call:Ms("call"),files:Oe.getInputList("files"),"no-cache":Ih("no-cache"),pull:Ih("pull"),load:Ih("load"),provenance:Vu.getProvenanceInput("provenance"),push:Ih("push"),sbom:Ms("sbom"),set:Oe.getInputList("set",{ignoreComma:!0,quote:!1}),source:await o3t(Ms("source")),targets:Oe.getInputList("targets"),vars:a3t(Ms("vars")),"github-token":Ms("github-token")}}o(kOe,"getInputs");async function POe(t,e,r){return[...await i3t(t,e,r),...await s3t(t),...t.targets]}o(POe,"getArgs");async function i3t(t,e,r){let n=["bake"];if(t.source.remoteRef&&n.push(t.source.remoteRef),await r.buildx.versionSatisfies(">=0.17.0")&&(await r.buildx.versionSatisfies(">=0.18.0")&&t.allow.push("fs=*"),await Oe.asyncForEach(t.allow,async i=>{n.push("--allow",i)})),t.call){if(!await r.buildx.versionSatisfies(">=0.16.0"))throw new Error("Buildx >= 0.16.0 is required to use the call input.");n.push("--call",t.call)}if(await Oe.asyncForEach(t.files,async i=>{n.push("--file",i)}),await Oe.asyncForEach(t.set,async i=>{n.push("--set",i)}),t.vars.length>0){if(!await r.buildx.versionSatisfies(">=0.31.0"))throw new Error("Buildx >= 0.31.0 is required to use the vars input.");await Oe.asyncForEach(t.vars,async i=>{n.push("--var",i)})}if(await r.buildx.versionSatisfies(">=0.6.0")&&n.push("--metadata-file",r.buildxBake.getMetadataFilePath()),await r.buildx.versionSatisfies(">=0.10.0")){if(t.provenance)n.push("--provenance",t.provenance);else if(!c3t()&&await r.buildkit.versionSatisfies(t.builder,">=0.11.0")&&!lE.hasDockerExporter(e,t.load))for(let i in e.target){let s=e.target[i];(!Array.isArray(s.attest)||!s.attest.some(a=>a?.type==="provenance"))&&(Ke.context.payload.repository?.private??!1?n.push("--set",`${i}.attest=type=provenance,${Vu.resolveProvenanceAttrs("mode=min,inline-only=true")}`):n.push("--set",`${i}.attest=type=provenance,${Vu.resolveProvenanceAttrs("mode=max")}`))}t.sbom&&n.push("--sbom",t.sbom)}return n}o(i3t,"getBakeArgs");async function s3t(t){let e=[];return t["no-cache"]&&e.push("--no-cache"),t.builder&&e.push("--builder",t.builder),t.pull&&e.push("--pull"),t.load&&e.push("--load"),t.push&&e.push("--push"),e}o(s3t,"getCommonArgs");async function o3t(t){let e=await new Vu().gitContext(),r=QOe.compile(t)({defaultContext:e});if(r||(r=e),Oe.isValidRef(r))return{remoteRef:r};try{DOe.statSync(t).isDirectory()}catch{throw new Error(`Invalid source: ${t} does not exist or is not a directory.`)}return{workdir:r}}o(o3t,"getBakeContext");function a3t(t){let e;try{e=JSON.parse(t)}catch{return Oe.getList(t,{ignoreComma:!0,quote:!1})}if(!Array.isArray(e)||!e.every(r=>typeof r=="string"))throw new Error("Invalid vars input: expected a JSON array of strings.");return e}o(a3t,"getBakeVars");function c3t(){return process.env.BUILDX_NO_DEFAULT_ATTESTATIONS?Oe.parseBool(process.env.BUILDX_NO_DEFAULT_ATTESTATIONS):!1}o(c3t,"noDefaultAttestations");var oP=process.env.STATE_tmpDir||"",OOe=process.env.STATE_builderDriver||"",LOe=process.env.STATE_builderEndpoint||"",FOe=process.env.STATE_summaryInputs?JSON.parse(process.env.STATE_summaryInputs):void 0,MOe=process.env.STATE_bakeDefinition?JSON.parse(process.env.STATE_bakeDefinition):void 0,UOe=process.env.STATE_buildRefs?process.env.STATE_buildRefs.split(","):[],qOe=!!process.env.STATE_isSummarySupported;function GOe(t){Eo("tmpDir",t)}o(GOe,"setTmpDir");function HOe(t){Eo("builderDriver",t)}o(HOe,"setBuilderDriver");function zOe(t){Eo("builderEndpoint",t)}o(zOe,"setBuilderEndpoint");function VOe(t){Eo("bakeDefinition",JSON.stringify(t))}o(VOe,"setBakeDefinition");function $Oe(t){Eo("buildRefs",t.join(","))}o($Oe,"setBuildRefs");function jOe(){Eo("isSummarySupported","true")}o(jOe,"setSummarySupported");function WOe(t){let e={};(t.source.remoteRef||t.source.workdir)&&(e.source=t.source.remoteRef||t.source.workdir);for(let r of Object.keys(t)){if(r==="source"||r==="github-token")continue;let n=t[r];if(!(typeof n=="boolean"&&!n)){{if(Array.isArray(n)&&n.length===0)continue;if(!n)continue}e[r]=n}}Eo("summaryInputs",JSON.stringify(e))}o(WOe,"setSummaryInputs");sge(async()=>{let t=new Date,e=await kOe();WOe(e),v(`inputs: ${JSON.stringify(e)}`);let r=new sP,n=process.env.BUILDX_BAKE_GIT_AUTH_TOKEN??e["github-token"];if(await Sr("GitHub Actions runtime token ACs",async()=>{try{await Ke.printActionsRuntimeTokenACs()}catch(h){Ge(h.message)}}),await Sr("Docker info",async()=>{try{await Vr.printVersion(),await Vr.printInfo()}catch(h){D(h.message)}}),await Sr("Proxy configuration",async()=>{let h,p=!1;try{h=await Vr.configFile()}catch(m){p=!0,Ge(`Unable to parse config file ${YOe.join(Vr.configDir,"config.json")}: ${m}`)}if(h&&h.proxies)for(let m in h.proxies){let A="";Object.keys(h.proxies).length>1&&(A=" ",D(m));for(let E in h.proxies[m])D(`${A}${E}: ${h.proxies[m][E]}`)}else p||D("No proxy configuration found")}),!await r.buildx.isAvailable()){uv("Docker buildx is required. See https://github.com/docker/setup-buildx-action to set up buildx.");return}GOe(ht.tmpDir()),await Sr("Buildx version",async()=>{await r.buildx.printVersion()});let i;await Sr("Builder info",async()=>{i=await r.builder.inspect(e.builder),HOe(i.driver??""),zOe(i.nodes?.[0]?.endpoint??""),D(JSON.stringify(i,null,2))});let s;if(await Sr("Parsing raw definition",async()=>{s=await r.buildxBake.getDefinition({allow:e.allow,files:e.files,load:e.load,noCache:e["no-cache"],overrides:e.set,provenance:e.provenance,push:e.push,sbom:e.sbom,source:e.source.remoteRef,targets:e.targets,vars:e.vars,githubToken:n},{cwd:e.source.workdir})}),!s)throw new Error("Bake definition not set");VOe(s);let a=await POe(e,s,r),c=await r.buildx.getCommand(a),l=Object.assign({},process.env,{BUILDX_BAKE_GIT_AUTH_TOKEN:n,BUILDX_METADATA_WARNINGS:"true"});await Sr("Bake definition",async()=>{await Ie.getExecOutput(c.command,[...c.args,"--print"],{cwd:e.source.workdir,env:l,ignoreReturnCode:!0}).then(h=>{if(h.stderr.length>0&&h.exitCode!=0)throw Error(h.stderr)})});let u;await Ie.getExecOutput(c.command,c.args,{cwd:e.source.workdir,env:l,ignoreReturnCode:!0}).then(h=>{if(h.exitCode!=0)if(e.call&&e.call==="check"&&h.stdout.length>0){let p=[...h.stdout.matchAll(/^Check complete, (\d+) warnings? (?:has|have) been found!/gm)].reduce((m,A)=>m+parseInt(A[1],10),0);p>0?p===1?u=Error(`Check complete, ${p} warning has been found!`):u=Error(`Check complete, ${p} warnings have been found!`):u=Error(h.stdout.split(` +`)[0]?.trim())}else u=Error(`buildx bake failed with: ${pt.getErrorMessage(h.stderr)}`)});let d=r.buildxBake.resolveMetadata();d&&await Sr("Metadata",async()=>{let h=JSON.stringify(d,null,2);Ke.printUntrusted(h),qse("metadata",h)});let f=[];if(await Sr("Build references",async()=>{if(f=await d3t(r,t,e.builder),f.length>0){for(let h of f)D(h);$Oe(f)}else D("No build references found")}),f3t()){let h=r.buildxBake.resolveWarnings(d);if(f.length>0&&h&&h.length>0){let p=await pt.convertWarningsToGitHubAnnotations(h,f);v(`annotations: ${JSON.stringify(p,null,2)}`),p&&p.length>0&&await Sr(`Generating GitHub annotations (${p.length} build checks found)`,async()=>{for(let m of p)Ge(m.message,m)})}}if(await Sr("Check build summary support",async()=>{h3t()?e.call&&e.call!=="build"?D(`Build summary skipped for ${e.call} subrequest`):Ke.isGHES?D("Build summary is not yet supported on GHES"):await r.buildx.versionSatisfies(">=0.23.0")?f.length==0?D("Build summary requires at least one build reference"):(D("Build summary supported!"),jOe()):D("Build summary requires Buildx >= 0.23.0"):D("Build summary disabled")}),u)throw u},async()=>{qOe&&await Sr("Generating build summary",async()=>{try{let t=p3t(),e;t&&(e=A3t());let n=await new k2().export({refs:UOe});D(`Build records written to ${n.dockerbuildFilename} (${Oe.formatFileSize(n.dockerbuildSize)})`);let i;t&&(i=await r1.upload({filename:n.dockerbuildFilename,retentionDays:e})),await u1.writeBuildSummary({exportRes:n,uploadRes:i,inputs:FOe,bakeDefinition:MOe,driver:OOe,endpoint:LOe})}catch(t){Ge(t.message)}}),oP.length>0&&await Sr(`Removing temp folder ${oP}`,async()=>{JOe.rmSync(oP,{recursive:!0})})});async function d3t(t,e,r){let n=t.buildxBake.resolveRefs();if(n)return n;r||(r=(await t.builder.inspect()).name);let i=pt.refs({dir:pt.refsDir,builderName:r,since:e}),s=[];for(let a in i)Object.prototype.hasOwnProperty.call(i,a)&&s.push(a);return s}o(d3t,"buildRefs");function f3t(){return process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS?Oe.parseBool(process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS):!0}o(f3t,"buildChecksAnnotationsEnabled");function h3t(){return process.env.DOCKER_BUILD_SUMMARY?Oe.parseBool(process.env.DOCKER_BUILD_SUMMARY):!0}o(h3t,"buildSummaryEnabled");function p3t(){return process.env.DOCKER_BUILD_RECORD_UPLOAD?Oe.parseBool(process.env.DOCKER_BUILD_RECORD_UPLOAD):!0}o(p3t,"buildRecordUploadEnabled");function A3t(){let t=process.env.DOCKER_BUILD_RECORD_RETENTION_DAYS;if(t){let e=parseInt(t);if(isNaN(e))throw Error(`Invalid build record retention days: ${t}`);return e}}o(A3t,"buildRecordRetentionDays"); /*! Bundled license information: undici/lib/web/fetch/body.js: @@ -386,6 +386,6 @@ he/src/he.mjs: (*! https://mths.be/he by @mathias | MIT license *) js-yaml/dist/js-yaml.mjs: - (*! js-yaml 5.4.3 https://github.com/nodeca/js-yaml @license MIT *) + (*! js-yaml 5.5.0 https://github.com/nodeca/js-yaml @license MIT *) */ //# sourceMappingURL=index.cjs.map diff --git a/dist/index.cjs.map b/dist/index.cjs.map index a1a035a..d2b3385 100644 --- a/dist/index.cjs.map +++ b/dist/index.cjs.map @@ -1,7 +1,7 @@ { "version": 3, "sources": ["../node_modules/tunnel/lib/tunnel.js", "../node_modules/tunnel/index.js", "../node_modules/undici/lib/core/symbols.js", "../node_modules/undici/lib/core/errors.js", "../node_modules/undici/lib/core/constants.js", "../node_modules/undici/lib/core/tree.js", "../node_modules/undici/lib/core/util.js", "../node_modules/undici/lib/core/diagnostics.js", "../node_modules/undici/lib/core/request.js", "../node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/undici/lib/util/timers.js", "../node_modules/undici/lib/core/connect.js", "../node_modules/undici/lib/llhttp/utils.js", "../node_modules/undici/lib/llhttp/constants.js", "../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/undici/lib/web/fetch/constants.js", "../node_modules/undici/lib/web/fetch/global.js", "../node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/undici/lib/web/fetch/util.js", "../node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/undici/lib/web/fetch/file.js", "../node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/undici/lib/web/fetch/body.js", "../node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/undici/lib/dispatcher/client.js", "../node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/undici/lib/dispatcher/pool.js", "../node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/undici/lib/dispatcher/agent.js", "../node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/undici/lib/handler/retry-handler.js", "../node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/undici/lib/api/readable.js", "../node_modules/undici/lib/api/util.js", "../node_modules/undici/lib/api/api-request.js", "../node_modules/undici/lib/api/abort-signal.js", "../node_modules/undici/lib/api/api-stream.js", "../node_modules/undici/lib/api/api-pipeline.js", "../node_modules/undici/lib/api/api-upgrade.js", "../node_modules/undici/lib/api/api-connect.js", "../node_modules/undici/lib/api/index.js", "../node_modules/undici/lib/mock/mock-errors.js", "../node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/undici/lib/mock/mock-utils.js", "../node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/undici/lib/mock/mock-client.js", "../node_modules/undici/lib/mock/mock-pool.js", "../node_modules/undici/lib/mock/pluralizer.js", "../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modules/undici/lib/mock/mock-agent.js", "../node_modules/undici/lib/global.js", "../node_modules/undici/lib/handler/decorator-handler.js", "../node_modules/undici/lib/interceptor/redirect.js", "../node_modules/undici/lib/interceptor/retry.js", "../node_modules/undici/lib/interceptor/dump.js", "../node_modules/undici/lib/interceptor/dns.js", "../node_modules/undici/lib/web/fetch/headers.js", "../node_modules/undici/lib/web/fetch/response.js", "../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../node_modules/undici/lib/web/fetch/request.js", "../node_modules/undici/lib/web/fetch/index.js", "../node_modules/undici/lib/web/fileapi/symbols.js", "../node_modules/undici/lib/web/fileapi/progressevent.js", "../node_modules/undici/lib/web/fileapi/encoding.js", "../node_modules/undici/lib/web/fileapi/util.js", "../node_modules/undici/lib/web/fileapi/filereader.js", "../node_modules/undici/lib/web/cache/symbols.js", "../node_modules/undici/lib/web/cache/util.js", "../node_modules/undici/lib/web/cache/cache.js", "../node_modules/undici/lib/web/cache/cachestorage.js", "../node_modules/undici/lib/web/cookies/constants.js", "../node_modules/undici/lib/web/cookies/util.js", "../node_modules/undici/lib/web/cookies/parse.js", "../node_modules/undici/lib/web/cookies/index.js", "../node_modules/undici/lib/web/websocket/events.js", "../node_modules/undici/lib/web/websocket/constants.js", "../node_modules/undici/lib/web/websocket/symbols.js", "../node_modules/undici/lib/web/websocket/util.js", "../node_modules/undici/lib/web/websocket/frame.js", "../node_modules/undici/lib/web/websocket/connection.js", "../node_modules/undici/lib/web/websocket/permessage-deflate.js", "../node_modules/undici/lib/web/websocket/receiver.js", "../node_modules/undici/lib/web/websocket/sender.js", "../node_modules/undici/lib/web/websocket/websocket.js", "../node_modules/undici/lib/web/eventsource/util.js", "../node_modules/undici/lib/web/eventsource/eventsource-stream.js", "../node_modules/undici/lib/web/eventsource/eventsource.js", "../node_modules/undici/index.js", "../node_modules/@actions/tool-cache/node_modules/semver/internal/constants.js", "../node_modules/@actions/tool-cache/node_modules/semver/internal/debug.js", "../node_modules/@actions/tool-cache/node_modules/semver/internal/re.js", "../node_modules/@actions/tool-cache/node_modules/semver/internal/parse-options.js", "../node_modules/@actions/tool-cache/node_modules/semver/internal/identifiers.js", "../node_modules/@actions/tool-cache/node_modules/semver/classes/semver.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/parse.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/valid.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/clean.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/inc.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/diff.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/major.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/minor.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/patch.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/prerelease.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/compare.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/rcompare.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/compare-loose.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/compare-build.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/sort.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/rsort.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/gt.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/lt.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/eq.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/neq.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/gte.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/lte.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/cmp.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/coerce.js", "../node_modules/@actions/tool-cache/node_modules/semver/internal/lrucache.js", "../node_modules/@actions/tool-cache/node_modules/semver/classes/range.js", "../node_modules/@actions/tool-cache/node_modules/semver/classes/comparator.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/satisfies.js", "../node_modules/@actions/tool-cache/node_modules/semver/ranges/to-comparators.js", "../node_modules/@actions/tool-cache/node_modules/semver/ranges/max-satisfying.js", "../node_modules/@actions/tool-cache/node_modules/semver/ranges/min-satisfying.js", "../node_modules/@actions/tool-cache/node_modules/semver/ranges/min-version.js", "../node_modules/@actions/tool-cache/node_modules/semver/ranges/valid.js", "../node_modules/@actions/tool-cache/node_modules/semver/ranges/outside.js", "../node_modules/@actions/tool-cache/node_modules/semver/ranges/gtr.js", "../node_modules/@actions/tool-cache/node_modules/semver/ranges/ltr.js", "../node_modules/@actions/tool-cache/node_modules/semver/ranges/intersects.js", "../node_modules/@actions/tool-cache/node_modules/semver/ranges/simplify.js", "../node_modules/@actions/tool-cache/node_modules/semver/ranges/subset.js", "../node_modules/@actions/tool-cache/node_modules/semver/index.js", "../node_modules/@actions/cache/node_modules/semver/internal/constants.js", "../node_modules/@actions/cache/node_modules/semver/internal/debug.js", "../node_modules/@actions/cache/node_modules/semver/internal/re.js", "../node_modules/@actions/cache/node_modules/semver/internal/parse-options.js", "../node_modules/@actions/cache/node_modules/semver/internal/identifiers.js", "../node_modules/@actions/cache/node_modules/semver/classes/semver.js", "../node_modules/@actions/cache/node_modules/semver/functions/parse.js", "../node_modules/@actions/cache/node_modules/semver/functions/valid.js", "../node_modules/@actions/cache/node_modules/semver/functions/clean.js", "../node_modules/@actions/cache/node_modules/semver/functions/inc.js", "../node_modules/@actions/cache/node_modules/semver/functions/diff.js", "../node_modules/@actions/cache/node_modules/semver/functions/major.js", "../node_modules/@actions/cache/node_modules/semver/functions/minor.js", "../node_modules/@actions/cache/node_modules/semver/functions/patch.js", "../node_modules/@actions/cache/node_modules/semver/functions/prerelease.js", "../node_modules/@actions/cache/node_modules/semver/functions/compare.js", "../node_modules/@actions/cache/node_modules/semver/functions/rcompare.js", "../node_modules/@actions/cache/node_modules/semver/functions/compare-loose.js", "../node_modules/@actions/cache/node_modules/semver/functions/compare-build.js", "../node_modules/@actions/cache/node_modules/semver/functions/sort.js", "../node_modules/@actions/cache/node_modules/semver/functions/rsort.js", "../node_modules/@actions/cache/node_modules/semver/functions/gt.js", "../node_modules/@actions/cache/node_modules/semver/functions/lt.js", "../node_modules/@actions/cache/node_modules/semver/functions/eq.js", "../node_modules/@actions/cache/node_modules/semver/functions/neq.js", "../node_modules/@actions/cache/node_modules/semver/functions/gte.js", "../node_modules/@actions/cache/node_modules/semver/functions/lte.js", "../node_modules/@actions/cache/node_modules/semver/functions/cmp.js", "../node_modules/@actions/cache/node_modules/semver/functions/coerce.js", "../node_modules/@actions/cache/node_modules/semver/functions/truncate.js", "../node_modules/@actions/cache/node_modules/semver/internal/lrucache.js", "../node_modules/@actions/cache/node_modules/semver/classes/range.js", "../node_modules/@actions/cache/node_modules/semver/classes/comparator.js", "../node_modules/@actions/cache/node_modules/semver/functions/satisfies.js", "../node_modules/@actions/cache/node_modules/semver/ranges/to-comparators.js", "../node_modules/@actions/cache/node_modules/semver/ranges/max-satisfying.js", "../node_modules/@actions/cache/node_modules/semver/ranges/min-satisfying.js", "../node_modules/@actions/cache/node_modules/semver/ranges/min-version.js", "../node_modules/@actions/cache/node_modules/semver/ranges/valid.js", "../node_modules/@actions/cache/node_modules/semver/ranges/outside.js", "../node_modules/@actions/cache/node_modules/semver/ranges/gtr.js", "../node_modules/@actions/cache/node_modules/semver/ranges/ltr.js", "../node_modules/@actions/cache/node_modules/semver/ranges/intersects.js", "../node_modules/@actions/cache/node_modules/semver/ranges/simplify.js", "../node_modules/@actions/cache/node_modules/semver/ranges/subset.js", "../node_modules/@actions/cache/node_modules/semver/index.js", "../node_modules/ms/index.js", "../node_modules/debug/src/common.js", "../node_modules/debug/src/browser.js", "../node_modules/has-flag/index.js", "../node_modules/supports-color/index.js", "../node_modules/debug/src/node.js", "../node_modules/debug/src/index.js", "../node_modules/https-proxy-agent/node_modules/agent-base/src/helpers.ts", "../node_modules/https-proxy-agent/node_modules/agent-base/src/index.ts", "../node_modules/https-proxy-agent/src/parse-proxy-response.ts", "../node_modules/https-proxy-agent/src/index.ts", "../node_modules/agent-base/src/helpers.ts", "../node_modules/agent-base/src/index.ts", "../node_modules/http-proxy-agent/src/index.ts", "../node_modules/@azure/core-tracing/src/state-cjs.cts", "../node_modules/@azure/core-client/src/state-cjs.cts", "../node_modules/@azure/core-lro/node_modules/@azure/logger/src/log.ts", "../node_modules/@azure/core-lro/node_modules/@azure/logger/src/debug.ts", "../node_modules/@azure/core-lro/node_modules/@azure/logger/src/index.ts", "../node_modules/@azure/core-lro/node_modules/@azure/abort-controller/src/AbortSignal.ts", "../node_modules/@azure/core-lro/node_modules/@azure/abort-controller/src/AbortController.ts", "../node_modules/@azure/core-lro/node_modules/@azure/core-util/src/createAbortablePromise.ts", "../node_modules/@azure/core-lro/node_modules/@azure/core-util/src/delay.ts", "../node_modules/@azure/core-lro/node_modules/@azure/core-util/src/random.ts", "../node_modules/@azure/core-lro/node_modules/@azure/core-util/src/object.ts", "../node_modules/@azure/core-lro/node_modules/@azure/core-util/src/error.ts", "../node_modules/@azure/core-lro/node_modules/@azure/core-util/src/sha256.ts", "../node_modules/@azure/core-lro/node_modules/@azure/core-util/src/typeGuards.ts", "../node_modules/@azure/core-lro/node_modules/@azure/core-util/src/uuidUtils.native.ts", "../node_modules/@azure/core-lro/node_modules/@azure/core-util/src/uuidUtils.ts", "../node_modules/@azure/core-lro/node_modules/@azure/core-util/src/checkEnvironment.ts", "../node_modules/@azure/core-lro/node_modules/@azure/core-util/src/bytesEncoding.ts", "../node_modules/@azure/core-lro/src/logger.ts", "../node_modules/@azure/core-lro/src/poller/constants.ts", "../node_modules/@azure/core-lro/src/poller/operation.ts", "../node_modules/@azure/core-lro/src/http/operation.ts", "../node_modules/@azure/core-lro/src/poller/poller.ts", "../node_modules/@azure/core-lro/src/http/poller.ts", "../node_modules/@azure/core-lro/src/legacy/lroEngine/operation.ts", "../node_modules/@azure/core-lro/src/legacy/poller.ts", "../node_modules/@azure/core-lro/src/legacy/lroEngine/lroEngine.ts", "../node_modules/@actions/cache/package.json", "../node_modules/@actions/cache/lib/internal/shared/package-version.cjs", "../node_modules/@protobuf-ts/runtime/build/commonjs/json-typings.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/base64.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/protobufjs-utf8.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/binary-format-contract.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/goog-varint.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/pb-long.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/binary-reader.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/assert.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/binary-writer.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/json-format-contract.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/message-type-contract.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/lower-camel-case.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/reflection-info.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/oneof.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/reflection-type-check.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/reflection-long-convert.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/reflection-json-reader.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/reflection-json-writer.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/reflection-scalar-default.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/reflection-binary-reader.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/reflection-binary-writer.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/reflection-create.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/reflection-merge-partial.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/reflection-equals.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/message-type.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/reflection-contains-message-type.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/enum-object.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/index.js", "../node_modules/@protobuf-ts/runtime-rpc/build/commonjs/reflection-info.js", "../node_modules/@protobuf-ts/runtime-rpc/build/commonjs/service-type.js", "../node_modules/@protobuf-ts/runtime-rpc/build/commonjs/rpc-error.js", "../node_modules/@protobuf-ts/runtime-rpc/build/commonjs/rpc-options.js", "../node_modules/@protobuf-ts/runtime-rpc/build/commonjs/deferred.js", "../node_modules/@protobuf-ts/runtime-rpc/build/commonjs/rpc-output-stream.js", "../node_modules/@protobuf-ts/runtime-rpc/build/commonjs/unary-call.js", "../node_modules/@protobuf-ts/runtime-rpc/build/commonjs/server-streaming-call.js", "../node_modules/@protobuf-ts/runtime-rpc/build/commonjs/client-streaming-call.js", "../node_modules/@protobuf-ts/runtime-rpc/build/commonjs/duplex-streaming-call.js", "../node_modules/@protobuf-ts/runtime-rpc/build/commonjs/test-transport.js", "../node_modules/@protobuf-ts/runtime-rpc/build/commonjs/rpc-interceptor.js", "../node_modules/@protobuf-ts/runtime-rpc/build/commonjs/server-call-context.js", "../node_modules/@protobuf-ts/runtime-rpc/build/commonjs/index.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/internal/constants.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/internal/debug.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/internal/re.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/internal/parse-options.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/internal/identifiers.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/classes/semver.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/parse.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/valid.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/clean.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/inc.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/diff.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/major.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/minor.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/patch.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/prerelease.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/compare.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/rcompare.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/compare-loose.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/compare-build.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/sort.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/rsort.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/gt.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/lt.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/eq.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/neq.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/gte.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/lte.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/cmp.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/coerce.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/truncate.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/internal/lrucache.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/classes/range.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/classes/comparator.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/satisfies.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/ranges/to-comparators.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/ranges/max-satisfying.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/ranges/min-satisfying.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/ranges/min-version.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/ranges/valid.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/ranges/outside.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/ranges/gtr.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/ranges/ltr.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/ranges/intersects.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/ranges/simplify.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/ranges/subset.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/index.js", "../node_modules/retry/lib/retry_operation.js", "../node_modules/retry/lib/retry.js", "../node_modules/retry/index.js", "../node_modules/async-retry/lib/index.js", "../node_modules/tmp/lib/tmp.js", "../node_modules/handlebars/lib/handlebars/utils.js", "../node_modules/handlebars/lib/handlebars/exception.js", "../node_modules/handlebars/lib/handlebars/helpers/block-helper-missing.js", "../node_modules/handlebars/lib/handlebars/helpers/each.js", "../node_modules/handlebars/lib/handlebars/helpers/helper-missing.js", "../node_modules/handlebars/lib/handlebars/helpers/if.js", "../node_modules/handlebars/lib/handlebars/helpers/log.js", "../node_modules/handlebars/lib/handlebars/helpers/lookup.js", "../node_modules/handlebars/lib/handlebars/helpers/with.js", "../node_modules/handlebars/lib/handlebars/helpers.js", "../node_modules/handlebars/lib/handlebars/decorators/inline.js", "../node_modules/handlebars/lib/handlebars/decorators.js", "../node_modules/handlebars/lib/handlebars/logger.js", "../node_modules/handlebars/lib/handlebars/internal/proto-access.js", "../node_modules/handlebars/lib/handlebars/base.js", "../node_modules/handlebars/lib/handlebars/safe-string.js", "../node_modules/handlebars/lib/handlebars/internal/wrapHelper.js", "../node_modules/handlebars/lib/handlebars/runtime.js", "../node_modules/handlebars/lib/handlebars/no-conflict.js", "../node_modules/handlebars/lib/handlebars.runtime.js", "../node_modules/handlebars/lib/handlebars/compiler/ast.js", "../node_modules/handlebars/lib/handlebars/compiler/parser.js", "../node_modules/handlebars/lib/handlebars/compiler/node-types.js", "../node_modules/handlebars/lib/handlebars/compiler/visitor.js", "../node_modules/handlebars/lib/handlebars/compiler/whitespace-control.js", "../node_modules/handlebars/lib/handlebars/compiler/helpers.js", "../node_modules/handlebars/lib/handlebars/compiler/base.js", "../node_modules/handlebars/lib/handlebars/compiler/compiler.js", "../node_modules/source-map/lib/base64.js", "../node_modules/source-map/lib/base64-vlq.js", "../node_modules/source-map/lib/util.js", "../node_modules/source-map/lib/array-set.js", "../node_modules/source-map/lib/mapping-list.js", "../node_modules/source-map/lib/source-map-generator.js", "../node_modules/source-map/lib/binary-search.js", "../node_modules/source-map/lib/quick-sort.js", "../node_modules/source-map/lib/source-map-consumer.js", "../node_modules/source-map/lib/source-node.js", "../node_modules/source-map/source-map.js", "../node_modules/handlebars/lib/handlebars/compiler/code-gen.js", "../node_modules/handlebars/lib/handlebars/compiler/javascript-compiler.js", "../node_modules/handlebars/lib/handlebars.js", "../node_modules/handlebars/lib/handlebars/compiler/printer.js", "../node_modules/handlebars/lib/index.js", "../node_modules/@actions/github/node_modules/@actions/http-client/src/proxy.ts", "../node_modules/@actions/github/node_modules/@actions/http-client/src/index.ts", "../node_modules/fast-content-type-parse/index.js", "../node_modules/@actions/artifact/package.json", "../node_modules/@actions/artifact/lib/internal/shared/package-version.cjs", "../node_modules/readdir-glob/node_modules/minimatch/lib/path.js", "../node_modules/balanced-match/index.js", "../node_modules/brace-expansion/index.js", "../node_modules/readdir-glob/node_modules/minimatch/minimatch.js", "../node_modules/readdir-glob/index.js", "../node_modules/async/dist/async.js", "../node_modules/graceful-fs/polyfills.js", "../node_modules/graceful-fs/legacy-streams.js", "../node_modules/graceful-fs/clone.js", "../node_modules/graceful-fs/graceful-fs.js", "../node_modules/is-stream/index.js", "../node_modules/process-nextick-args/index.js", "../node_modules/isarray/index.js", "../node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/stream.js", "../node_modules/safe-buffer/index.js", "../node_modules/core-util-is/lib/util.js", "../node_modules/inherits/inherits_browser.js", "../node_modules/inherits/inherits.js", "../node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/BufferList.js", "../node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/destroy.js", "../node_modules/util-deprecate/node.js", "../node_modules/lazystream/node_modules/readable-stream/lib/_stream_writable.js", "../node_modules/lazystream/node_modules/readable-stream/lib/_stream_duplex.js", "../node_modules/lazystream/node_modules/string_decoder/lib/string_decoder.js", "../node_modules/lazystream/node_modules/readable-stream/lib/_stream_readable.js", "../node_modules/lazystream/node_modules/readable-stream/lib/_stream_transform.js", "../node_modules/lazystream/node_modules/readable-stream/lib/_stream_passthrough.js", "../node_modules/lazystream/node_modules/readable-stream/readable.js", "../node_modules/lazystream/node_modules/readable-stream/passthrough.js", "../node_modules/lazystream/lib/lazystream.js", "../node_modules/normalize-path/index.js", "../node_modules/lodash/identity.js", "../node_modules/lodash/_apply.js", "../node_modules/lodash/_overRest.js", "../node_modules/lodash/constant.js", "../node_modules/lodash/_freeGlobal.js", "../node_modules/lodash/_root.js", "../node_modules/lodash/_Symbol.js", "../node_modules/lodash/_getRawTag.js", "../node_modules/lodash/_objectToString.js", "../node_modules/lodash/_baseGetTag.js", "../node_modules/lodash/isObject.js", "../node_modules/lodash/isFunction.js", "../node_modules/lodash/_coreJsData.js", "../node_modules/lodash/_isMasked.js", "../node_modules/lodash/_toSource.js", "../node_modules/lodash/_baseIsNative.js", "../node_modules/lodash/_getValue.js", "../node_modules/lodash/_getNative.js", "../node_modules/lodash/_defineProperty.js", "../node_modules/lodash/_baseSetToString.js", "../node_modules/lodash/_shortOut.js", "../node_modules/lodash/_setToString.js", "../node_modules/lodash/_baseRest.js", "../node_modules/lodash/eq.js", "../node_modules/lodash/isLength.js", "../node_modules/lodash/isArrayLike.js", "../node_modules/lodash/_isIndex.js", "../node_modules/lodash/_isIterateeCall.js", "../node_modules/lodash/_baseTimes.js", "../node_modules/lodash/isObjectLike.js", "../node_modules/lodash/_baseIsArguments.js", "../node_modules/lodash/isArguments.js", "../node_modules/lodash/isArray.js", "../node_modules/lodash/stubFalse.js", "../node_modules/lodash/isBuffer.js", "../node_modules/lodash/_baseIsTypedArray.js", "../node_modules/lodash/_baseUnary.js", "../node_modules/lodash/_nodeUtil.js", "../node_modules/lodash/isTypedArray.js", "../node_modules/lodash/_arrayLikeKeys.js", "../node_modules/lodash/_isPrototype.js", "../node_modules/lodash/_nativeKeysIn.js", "../node_modules/lodash/_baseKeysIn.js", "../node_modules/lodash/keysIn.js", "../node_modules/lodash/defaults.js", "../node_modules/readable-stream/lib/ours/primordials.js", "../node_modules/event-target-shim/src/event.mjs", "../node_modules/event-target-shim/src/event-target.mjs", "../node_modules/abort-controller/src/abort-signal.ts", "../node_modules/abort-controller/src/abort-controller.ts", "../node_modules/readable-stream/lib/ours/util.js", "../node_modules/readable-stream/lib/ours/errors.js", "../node_modules/readable-stream/lib/internal/validators.js", "../node_modules/process/index.js", "../node_modules/readable-stream/lib/internal/streams/utils.js", "../node_modules/readable-stream/lib/internal/streams/end-of-stream.js", "../node_modules/readable-stream/lib/internal/streams/destroy.js", "../node_modules/readable-stream/lib/internal/streams/legacy.js", "../node_modules/readable-stream/lib/internal/streams/add-abort-signal.js", "../node_modules/readable-stream/lib/internal/streams/buffer_list.js", "../node_modules/readable-stream/lib/internal/streams/state.js", "../node_modules/readable-stream/lib/internal/streams/from.js", "../node_modules/readable-stream/lib/internal/streams/readable.js", "../node_modules/readable-stream/lib/internal/streams/writable.js", "../node_modules/readable-stream/lib/internal/streams/duplexify.js", "../node_modules/readable-stream/lib/internal/streams/duplex.js", "../node_modules/readable-stream/lib/internal/streams/transform.js", "../node_modules/readable-stream/lib/internal/streams/passthrough.js", "../node_modules/readable-stream/lib/internal/streams/pipeline.js", "../node_modules/readable-stream/lib/internal/streams/compose.js", "../node_modules/readable-stream/lib/internal/streams/operators.js", "../node_modules/readable-stream/lib/stream/promises.js", "../node_modules/readable-stream/lib/stream.js", "../node_modules/readable-stream/lib/ours/index.js", "../node_modules/lodash/_arrayPush.js", "../node_modules/lodash/_isFlattenable.js", "../node_modules/lodash/_baseFlatten.js", "../node_modules/lodash/flatten.js", "../node_modules/lodash/_nativeCreate.js", "../node_modules/lodash/_hashClear.js", "../node_modules/lodash/_hashDelete.js", "../node_modules/lodash/_hashGet.js", "../node_modules/lodash/_hashHas.js", "../node_modules/lodash/_hashSet.js", "../node_modules/lodash/_Hash.js", "../node_modules/lodash/_listCacheClear.js", "../node_modules/lodash/_assocIndexOf.js", "../node_modules/lodash/_listCacheDelete.js", "../node_modules/lodash/_listCacheGet.js", "../node_modules/lodash/_listCacheHas.js", "../node_modules/lodash/_listCacheSet.js", "../node_modules/lodash/_ListCache.js", "../node_modules/lodash/_Map.js", "../node_modules/lodash/_mapCacheClear.js", "../node_modules/lodash/_isKeyable.js", "../node_modules/lodash/_getMapData.js", "../node_modules/lodash/_mapCacheDelete.js", "../node_modules/lodash/_mapCacheGet.js", "../node_modules/lodash/_mapCacheHas.js", "../node_modules/lodash/_mapCacheSet.js", "../node_modules/lodash/_MapCache.js", "../node_modules/lodash/_setCacheAdd.js", "../node_modules/lodash/_setCacheHas.js", "../node_modules/lodash/_SetCache.js", "../node_modules/lodash/_baseFindIndex.js", "../node_modules/lodash/_baseIsNaN.js", "../node_modules/lodash/_strictIndexOf.js", "../node_modules/lodash/_baseIndexOf.js", "../node_modules/lodash/_arrayIncludes.js", "../node_modules/lodash/_arrayIncludesWith.js", "../node_modules/lodash/_arrayMap.js", "../node_modules/lodash/_cacheHas.js", "../node_modules/lodash/_baseDifference.js", "../node_modules/lodash/isArrayLikeObject.js", "../node_modules/lodash/difference.js", "../node_modules/lodash/_Set.js", "../node_modules/lodash/noop.js", "../node_modules/lodash/_setToArray.js", "../node_modules/lodash/_createSet.js", "../node_modules/lodash/_baseUniq.js", "../node_modules/lodash/union.js", "../node_modules/lodash/_overArg.js", "../node_modules/lodash/_getPrototype.js", "../node_modules/lodash/isPlainObject.js", "../node_modules/archiver-utils/node_modules/minimatch/src/assert-valid-pattern.ts", "../node_modules/archiver-utils/node_modules/minimatch/src/brace-expressions.ts", "../node_modules/archiver-utils/node_modules/minimatch/src/unescape.ts", "../node_modules/archiver-utils/node_modules/minimatch/src/ast.ts", "../node_modules/archiver-utils/node_modules/minimatch/src/escape.ts", "../node_modules/archiver-utils/node_modules/minimatch/src/index.ts", "../node_modules/archiver-utils/node_modules/lru-cache/src/index.ts", "../node_modules/archiver-utils/node_modules/path-scurry/node_modules/minipass/src/index.ts", "../node_modules/archiver-utils/node_modules/path-scurry/src/index.ts", "../node_modules/archiver-utils/node_modules/glob/src/pattern.ts", "../node_modules/archiver-utils/node_modules/minipass/src/index.ts", "../node_modules/archiver-utils/node_modules/glob/src/ignore.ts", "../node_modules/archiver-utils/node_modules/glob/src/processor.ts", "../node_modules/archiver-utils/node_modules/glob/src/walker.ts", "../node_modules/archiver-utils/node_modules/glob/src/glob.ts", "../node_modules/archiver-utils/node_modules/glob/src/has-magic.ts", "../node_modules/archiver-utils/node_modules/glob/src/index.ts", "../node_modules/archiver-utils/file.js", "../node_modules/archiver-utils/index.js", "../node_modules/archiver/lib/error.js", "../node_modules/archiver/lib/core.js", "../node_modules/compress-commons/lib/archivers/archive-entry.js", "../node_modules/compress-commons/lib/archivers/zip/util.js", "../node_modules/compress-commons/lib/archivers/zip/general-purpose-bit.js", "../node_modules/compress-commons/lib/archivers/zip/unix-stat.js", "../node_modules/compress-commons/lib/archivers/zip/constants.js", "../node_modules/compress-commons/lib/archivers/zip/zip-archive-entry.js", "../node_modules/compress-commons/lib/util/index.js", "../node_modules/compress-commons/lib/archivers/archive-output-stream.js", "../node_modules/crc-32/crc32.js", "../node_modules/crc32-stream/lib/crc32-stream.js", "../node_modules/crc32-stream/lib/deflate-crc32-stream.js", "../node_modules/crc32-stream/lib/index.js", "../node_modules/compress-commons/lib/archivers/zip/zip-archive-output-stream.js", "../node_modules/compress-commons/lib/compress-commons.js", "../node_modules/zip-stream/index.js", "../node_modules/archiver/lib/plugins/zip.js", "../node_modules/queue-tick/queue-microtask.js", "../node_modules/queue-tick/process-next-tick.js", "../node_modules/fast-fifo/fixed-size.js", "../node_modules/fast-fifo/index.js", "../node_modules/tar-stream/node_modules/streamx/index.js", "../node_modules/b4a/index.js", "../node_modules/tar-stream/headers.js", "../node_modules/tar-stream/extract.js", "../node_modules/tar-stream/constants.js", "../node_modules/tar-stream/pack.js", "../node_modules/tar-stream/index.js", "../node_modules/archiver/lib/plugins/tar.js", "../node_modules/buffer-crc32/dist/index.cjs", "../node_modules/archiver/lib/plugins/json.js", "../node_modules/archiver/index.js", "../node_modules/traverse/index.js", "../node_modules/chainsaw/index.js", "../node_modules/buffers/index.js", "../node_modules/binary/lib/vars.js", "../node_modules/binary/index.js", "../node_modules/unzip-stream/lib/matcher-stream.js", "../node_modules/unzip-stream/lib/entry.js", "../node_modules/unzip-stream/lib/unzip-stream.js", "../node_modules/unzip-stream/lib/parser-stream.js", "../node_modules/mkdirp/index.js", "../node_modules/unzip-stream/lib/extract.js", "../node_modules/unzip-stream/unzip.js", "../node_modules/bottleneck/light.js", "../node_modules/@sigstore/protobuf-specs/dist/__generated__/envelope.js", "../node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/timestamp.js", "../node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_common.js", "../node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_rekor.js", "../node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_bundle.js", "../node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_trustroot.js", "../node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_verification.js", "../node_modules/@sigstore/protobuf-specs/dist/index.js", "../node_modules/@docker/actions-toolkit/node_modules/@sigstore/bundle/dist/bundle.js", "../node_modules/@docker/actions-toolkit/node_modules/@sigstore/bundle/dist/build.js", "../node_modules/@docker/actions-toolkit/node_modules/@sigstore/bundle/dist/error.js", "../node_modules/@docker/actions-toolkit/node_modules/@sigstore/bundle/dist/validate.js", "../node_modules/@docker/actions-toolkit/node_modules/@sigstore/bundle/dist/serialized.js", "../node_modules/@docker/actions-toolkit/node_modules/@sigstore/bundle/dist/index.js", "../node_modules/@sigstore/tuf/dist/appdata.js", "../node_modules/@tufjs/models/dist/error.js", "../node_modules/@tufjs/models/dist/utils/guard.js", "../node_modules/@tufjs/canonical-json/lib/index.js", "../node_modules/@tufjs/models/dist/utils/verify.js", "../node_modules/@tufjs/models/dist/utils/index.js", "../node_modules/@tufjs/models/dist/base.js", "../node_modules/@tufjs/models/dist/file.js", "../node_modules/@tufjs/models/dist/utils/oid.js", "../node_modules/@tufjs/models/dist/utils/key.js", "../node_modules/@tufjs/models/dist/key.js", "../node_modules/minimatch/node_modules/balanced-match/src/index.ts", "../node_modules/minimatch/node_modules/brace-expansion/src/index.ts", "../node_modules/minimatch/src/assert-valid-pattern.ts", "../node_modules/minimatch/src/brace-expressions.ts", "../node_modules/minimatch/src/unescape.ts", "../node_modules/minimatch/src/ast.ts", "../node_modules/minimatch/src/escape.ts", "../node_modules/minimatch/src/index.ts", "../node_modules/@tufjs/models/dist/role.js", "../node_modules/@tufjs/models/dist/root.js", "../node_modules/@tufjs/models/dist/signature.js", "../node_modules/@tufjs/models/dist/snapshot.js", "../node_modules/@tufjs/models/dist/delegations.js", "../node_modules/@tufjs/models/dist/targets.js", "../node_modules/@tufjs/models/dist/timestamp.js", "../node_modules/@tufjs/models/dist/metadata.js", "../node_modules/@tufjs/models/dist/index.js", "../node_modules/tuf-js/node_modules/ms/index.js", "../node_modules/tuf-js/node_modules/debug/src/common.js", "../node_modules/tuf-js/node_modules/debug/src/browser.js", "../node_modules/tuf-js/node_modules/debug/src/node.js", "../node_modules/tuf-js/node_modules/debug/src/index.js", "../node_modules/tuf-js/dist/error.js", "../node_modules/tuf-js/dist/utils/tmpfile.js", "../node_modules/tuf-js/node_modules/@gar/promise-retry/lib/retry.js", "../node_modules/tuf-js/node_modules/@gar/promise-retry/lib/index.js", "../node_modules/tuf-js/dist/fetcher.js", "../node_modules/tuf-js/package.json", "../node_modules/tuf-js/dist/config.js", "../node_modules/tuf-js/dist/store.js", "../node_modules/tuf-js/dist/utils/url.js", "../node_modules/tuf-js/dist/updater.js", "../node_modules/tuf-js/dist/index.js", "../node_modules/@sigstore/tuf/package.json", "../node_modules/@sigstore/tuf/dist/error.js", "../node_modules/@sigstore/tuf/dist/target.js", "../node_modules/@sigstore/tuf/seeds.json", "../node_modules/@sigstore/tuf/dist/client.js", "../node_modules/@sigstore/tuf/dist/index.js", "../node_modules/@sigstore/verify/node_modules/@sigstore/core/dist/stream.js", "../node_modules/@sigstore/verify/node_modules/@sigstore/core/dist/asn1/error.js", "../node_modules/@sigstore/verify/node_modules/@sigstore/core/dist/asn1/length.js", "../node_modules/@sigstore/verify/node_modules/@sigstore/core/dist/asn1/parse.js", "../node_modules/@sigstore/verify/node_modules/@sigstore/core/dist/asn1/tag.js", "../node_modules/@sigstore/verify/node_modules/@sigstore/core/dist/asn1/obj.js", "../node_modules/@sigstore/verify/node_modules/@sigstore/core/dist/asn1/index.js", "../node_modules/@sigstore/verify/node_modules/@sigstore/core/dist/crypto.js", "../node_modules/@sigstore/verify/node_modules/@sigstore/core/dist/dsse.js", "../node_modules/@sigstore/verify/node_modules/@sigstore/core/dist/encoding.js", "../node_modules/@sigstore/verify/node_modules/@sigstore/core/dist/json.js", "../node_modules/@sigstore/verify/node_modules/@sigstore/core/dist/pem.js", "../node_modules/@sigstore/verify/node_modules/@sigstore/core/dist/oid.js", "../node_modules/@sigstore/verify/node_modules/@sigstore/core/dist/rfc3161/error.js", "../node_modules/@sigstore/verify/node_modules/@sigstore/core/dist/rfc3161/tstinfo.js", "../node_modules/@sigstore/verify/node_modules/@sigstore/core/dist/rfc3161/timestamp.js", "../node_modules/@sigstore/verify/node_modules/@sigstore/core/dist/rfc3161/index.js", "../node_modules/@sigstore/verify/node_modules/@sigstore/core/dist/x509/sct.js", "../node_modules/@sigstore/verify/node_modules/@sigstore/core/dist/x509/ext.js", "../node_modules/@sigstore/verify/node_modules/@sigstore/core/dist/x509/cert.js", "../node_modules/@sigstore/verify/node_modules/@sigstore/core/dist/x509/index.js", "../node_modules/@sigstore/verify/node_modules/@sigstore/core/dist/index.js", "../node_modules/@sigstore/verify/dist/bundle/dsse.js", "../node_modules/@sigstore/verify/dist/bundle/message.js", "../node_modules/@sigstore/verify/dist/bundle/index.js", "../node_modules/@sigstore/verify/dist/error.js", "../node_modules/@sigstore/verify/dist/trust/filter.js", "../node_modules/@sigstore/verify/dist/trust/index.js", "../node_modules/@sigstore/verify/dist/key/certificate.js", "../node_modules/@sigstore/verify/dist/key/sct.js", "../node_modules/@sigstore/verify/dist/key/index.js", "../node_modules/@sigstore/verify/dist/policy.js", "../node_modules/@sigstore/verify/dist/timestamp/tsa.js", "../node_modules/@sigstore/verify/dist/timestamp/index.js", "../node_modules/@sigstore/protobuf-specs/dist/__generated__/rekor/v2/verifier.js", "../node_modules/@sigstore/protobuf-specs/dist/__generated__/rekor/v2/dsse.js", "../node_modules/@sigstore/protobuf-specs/dist/__generated__/rekor/v2/hashedrekord.js", "../node_modules/@sigstore/protobuf-specs/dist/__generated__/rekor/v2/entry.js", "../node_modules/@sigstore/protobuf-specs/dist/rekor/v2/index.js", "../node_modules/@sigstore/verify/dist/tlog/dsse.js", "../node_modules/@sigstore/verify/dist/tlog/hashedrekord.js", "../node_modules/@sigstore/verify/dist/tlog/intoto.js", "../node_modules/@sigstore/verify/dist/tlog/checkpoint.js", "../node_modules/@sigstore/verify/dist/tlog/merkle.js", "../node_modules/@sigstore/verify/dist/tlog/set.js", "../node_modules/@sigstore/verify/dist/tlog/index.js", "../node_modules/@sigstore/verify/dist/verifier.js", "../node_modules/@sigstore/verify/dist/index.js", "../src/main.ts", "../node_modules/@actions/core/src/command.ts", "../node_modules/@actions/core/src/utils.ts", "../node_modules/@actions/core/src/file-command.ts", "../node_modules/@actions/core/src/core.ts", "../node_modules/@actions/http-client/src/index.ts", "../node_modules/@actions/http-client/src/proxy.ts", "../node_modules/@actions/core/src/summary.ts", "../node_modules/@actions/core/src/platform.ts", "../node_modules/@actions/exec/src/exec.ts", "../node_modules/@actions/exec/src/toolrunner.ts", "../node_modules/@actions/io/src/io.ts", "../node_modules/@actions/io/src/io-util.ts", "../node_modules/@docker/actions-toolkit/src/cache.ts", "../node_modules/@actions/tool-cache/node_modules/@actions/core/src/command.ts", "../node_modules/@actions/tool-cache/node_modules/@actions/core/src/utils.ts", "../node_modules/@actions/tool-cache/node_modules/@actions/core/src/core.ts", "../node_modules/@actions/tool-cache/node_modules/@actions/core/src/summary.ts", "../node_modules/@actions/tool-cache/node_modules/@actions/core/src/platform.ts", "../node_modules/@actions/tool-cache/src/tool-cache.ts", "../node_modules/@actions/tool-cache/src/manifest.ts", "../node_modules/@actions/tool-cache/src/retry-helper.ts", "../node_modules/@actions/cache/src/cache.ts", "../node_modules/@actions/glob/node_modules/@actions/core/src/command.ts", "../node_modules/@actions/glob/node_modules/@actions/core/src/utils.ts", "../node_modules/@actions/glob/node_modules/@actions/core/src/summary.ts", "../node_modules/@actions/glob/node_modules/@actions/core/src/platform.ts", "../node_modules/@actions/glob/node_modules/@actions/core/src/core.ts", "../node_modules/@actions/glob/src/internal-globber.ts", "../node_modules/@actions/glob/src/internal-glob-options-helper.ts", "../node_modules/@actions/glob/src/internal-path-helper.ts", "../node_modules/@actions/glob/src/internal-match-kind.ts", "../node_modules/@actions/glob/src/internal-pattern-helper.ts", "../node_modules/@actions/glob/src/internal-pattern.ts", "../node_modules/@actions/glob/node_modules/balanced-match/src/index.ts", "../node_modules/@actions/glob/node_modules/brace-expansion/src/index.ts", "../node_modules/@actions/glob/node_modules/minimatch/src/assert-valid-pattern.ts", "../node_modules/@actions/glob/node_modules/minimatch/src/brace-expressions.ts", "../node_modules/@actions/glob/node_modules/minimatch/src/unescape.ts", "../node_modules/@actions/glob/node_modules/minimatch/src/ast.ts", "../node_modules/@actions/glob/node_modules/minimatch/src/escape.ts", "../node_modules/@actions/glob/node_modules/minimatch/src/index.ts", "../node_modules/@actions/glob/src/internal-path.ts", "../node_modules/@actions/glob/src/internal-search-state.ts", "../node_modules/@actions/glob/src/glob.ts", "../node_modules/@actions/cache/src/internal/cacheUtils.ts", "../node_modules/@actions/cache/src/internal/constants.ts", "../node_modules/@actions/cache/node_modules/@actions/http-client/src/index.ts", "../node_modules/@actions/cache/node_modules/@actions/http-client/src/proxy.ts", "../node_modules/@actions/cache/node_modules/@actions/http-client/src/auth.ts", "../node_modules/@actions/cache/src/internal/cacheHttpClient.ts", "../node_modules/@typespec/ts-http-runtime/src/abort-controller/AbortError.ts", "../node_modules/@typespec/ts-http-runtime/src/logger/log.ts", "../node_modules/@typespec/ts-http-runtime/src/logger/debug.ts", "../node_modules/@typespec/ts-http-runtime/src/logger/logger.ts", "../node_modules/@typespec/ts-http-runtime/src/httpHeaders.ts", "../node_modules/@typespec/ts-http-runtime/src/util/uuidUtils.ts", "../node_modules/@typespec/ts-http-runtime/src/pipelineRequest.ts", "../node_modules/@typespec/ts-http-runtime/src/pipeline.ts", "../node_modules/@typespec/ts-http-runtime/src/util/object.ts", "../node_modules/@typespec/ts-http-runtime/src/util/error.ts", "../node_modules/@typespec/ts-http-runtime/src/util/inspect.ts", "../node_modules/@typespec/ts-http-runtime/src/util/sanitizer.ts", "../node_modules/@typespec/ts-http-runtime/src/restError.ts", "../node_modules/@typespec/ts-http-runtime/src/util/bytesEncoding.ts", "../node_modules/@typespec/ts-http-runtime/src/nodeHttpClient.ts", "../node_modules/@typespec/ts-http-runtime/src/log.ts", "../node_modules/@typespec/ts-http-runtime/src/defaultHttpClient.ts", "../node_modules/@typespec/ts-http-runtime/src/policies/logPolicy.ts", "../node_modules/@typespec/ts-http-runtime/src/policies/redirectPolicy.ts", "../node_modules/@typespec/ts-http-runtime/src/util/userAgentPlatform.ts", "../node_modules/@typespec/ts-http-runtime/src/util/userAgent.ts", "../node_modules/@typespec/ts-http-runtime/src/policies/userAgentPolicy.ts", "../node_modules/@typespec/ts-http-runtime/src/policies/decompressResponsePolicy.ts", "../node_modules/@typespec/ts-http-runtime/src/util/random.ts", "../node_modules/@typespec/ts-http-runtime/src/util/delay.ts", "../node_modules/@typespec/ts-http-runtime/src/util/helpers.ts", "../node_modules/@typespec/ts-http-runtime/src/retryStrategies/throttlingRetryStrategy.ts", "../node_modules/@typespec/ts-http-runtime/src/retryStrategies/exponentialRetryStrategy.ts", "../node_modules/@typespec/ts-http-runtime/src/policies/retryPolicy.ts", "../node_modules/@typespec/ts-http-runtime/src/policies/defaultRetryPolicy.ts", "../node_modules/@typespec/ts-http-runtime/src/util/checkEnvironment.ts", "../node_modules/@typespec/ts-http-runtime/src/policies/formDataPolicy.ts", "../node_modules/@typespec/ts-http-runtime/src/policies/proxyPolicy.ts", "../node_modules/@typespec/ts-http-runtime/src/policies/agentPolicy.ts", "../node_modules/@typespec/ts-http-runtime/src/policies/tlsPolicy.ts", "../node_modules/@typespec/ts-http-runtime/src/util/typeGuards.ts", "../node_modules/@typespec/ts-http-runtime/src/util/concat.ts", "../node_modules/@typespec/ts-http-runtime/src/policies/multipartPolicy.ts", "../node_modules/@azure/core-rest-pipeline/src/pipeline.ts", "../node_modules/@azure/logger/src/index.ts", "../node_modules/@azure/core-rest-pipeline/src/log.ts", "../node_modules/@azure/core-rest-pipeline/src/policies/logPolicy.ts", "../node_modules/@azure/core-rest-pipeline/src/policies/redirectPolicy.ts", "../node_modules/@azure/core-rest-pipeline/src/util/userAgentPlatform.ts", "../node_modules/@azure/core-rest-pipeline/src/constants.ts", "../node_modules/@azure/core-rest-pipeline/src/util/userAgent.ts", "../node_modules/@azure/core-rest-pipeline/src/policies/userAgentPolicy.ts", "../node_modules/@azure/abort-controller/src/AbortError.ts", "../node_modules/@azure/core-util/src/createAbortablePromise.ts", "../node_modules/@azure/core-util/src/delay.ts", "../node_modules/@azure/core-util/src/error.ts", "../node_modules/@azure/core-util/src/index.ts", "../node_modules/@azure/core-rest-pipeline/src/util/file.ts", "../node_modules/@azure/core-rest-pipeline/src/policies/multipartPolicy.ts", "../node_modules/@azure/core-rest-pipeline/src/policies/decompressResponsePolicy.ts", "../node_modules/@azure/core-rest-pipeline/src/policies/defaultRetryPolicy.ts", "../node_modules/@azure/core-rest-pipeline/src/policies/formDataPolicy.ts", "../node_modules/@azure/core-rest-pipeline/src/policies/proxyPolicy.ts", "../node_modules/@azure/core-rest-pipeline/src/policies/setClientRequestIdPolicy.ts", "../node_modules/@azure/core-rest-pipeline/src/policies/agentPolicy.ts", "../node_modules/@azure/core-rest-pipeline/src/policies/tlsPolicy.ts", "../node_modules/@azure/core-tracing/src/tracingContext.ts", "../node_modules/@azure/core-tracing/src/state.ts", "../node_modules/@azure/core-tracing/src/instrumenter.ts", "../node_modules/@azure/core-tracing/src/tracingClient.ts", "../node_modules/@azure/core-rest-pipeline/src/restError.ts", "../node_modules/@azure/core-rest-pipeline/src/policies/tracingPolicy.ts", "../node_modules/@azure/core-rest-pipeline/src/util/wrapAbortSignal.ts", "../node_modules/@azure/core-rest-pipeline/src/policies/wrapAbortSignalLikePolicy.ts", "../node_modules/@azure/core-rest-pipeline/src/createPipelineFromOptions.ts", "../node_modules/@azure/core-rest-pipeline/src/defaultHttpClient.ts", "../node_modules/@azure/core-rest-pipeline/src/httpHeaders.ts", "../node_modules/@azure/core-rest-pipeline/src/pipelineRequest.ts", "../node_modules/@azure/core-rest-pipeline/src/policies/retryPolicy.ts", "../node_modules/@azure/core-rest-pipeline/src/util/tokenCycler.ts", "../node_modules/@azure/core-rest-pipeline/src/policies/bearerTokenAuthenticationPolicy.ts", "../node_modules/@azure/core-auth/src/tokenCredential.ts", "../node_modules/@azure/core-http-compat/src/policies/disableKeepAlivePolicy.ts", "../node_modules/@azure/core-client/src/base64.ts", "../node_modules/@azure/core-client/src/utils.ts", "../node_modules/@azure/core-client/src/serializer.ts", "../node_modules/@azure/core-client/src/state.ts", "../node_modules/@azure/core-client/src/operationHelpers.ts", "../node_modules/@azure/core-client/src/deserializationPolicy.ts", "../node_modules/@azure/core-client/src/interfaceHelpers.ts", "../node_modules/@azure/core-client/src/serializationPolicy.ts", "../node_modules/@azure/core-client/src/pipeline.ts", "../node_modules/@azure/core-client/src/httpClientCache.ts", "../node_modules/@azure/core-client/src/urlHelpers.ts", "../node_modules/@azure/core-client/src/log.ts", "../node_modules/@azure/core-client/src/serviceClient.ts", "../node_modules/@azure/core-client/src/authorizeRequestOnTenantChallenge.ts", "../node_modules/@azure/core-http-compat/src/util.ts", "../node_modules/@azure/core-http-compat/src/response.ts", "../node_modules/@azure/core-http-compat/src/extendedClient.ts", "../node_modules/@azure/core-http-compat/src/policies/requestPolicyFactoryPolicy.ts", "../node_modules/@azure/core-http-compat/src/httpClientAdapter.ts", "../node_modules/fast-xml-parser/src/util.js", "../node_modules/fast-xml-parser/src/validator.js", "../node_modules/@nodable/entities/src/entities.js", "../node_modules/@nodable/entities/src/EntityDecoder.js", "../node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js", "../node_modules/fast-xml-parser/src/xmlparser/xmlNode.js", "../node_modules/xml-naming/src/index.js", "../node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js", "../node_modules/strnum/strnum.js", "../node_modules/fast-xml-parser/src/ignoreAttributes.js", "../node_modules/path-expression-matcher/src/Expression.js", "../node_modules/path-expression-matcher/src/ExpressionSet.js", "../node_modules/path-expression-matcher/src/Matcher.js", "../node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js", "../node_modules/fast-xml-parser/src/xmlparser/node2json.js", "../node_modules/fast-xml-parser/src/xmlparser/XMLParser.js", "../node_modules/fast-xml-builder/src/util.js", "../node_modules/fast-xml-builder/src/orderedJs2Xml.js", "../node_modules/fast-xml-builder/src/ignoreAttributes.js", "../node_modules/fast-xml-builder/src/fxb.js", "../node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js", "../node_modules/fast-xml-parser/src/fxp.js", "../node_modules/@azure/core-xml/src/xml.ts", "../node_modules/@azure/storage-blob/src/log.ts", "../node_modules/@azure/storage-common/src/BufferScheduler.ts", "../node_modules/@azure/storage-common/src/BuffersStream.ts", "../node_modules/@azure/storage-common/src/PooledBuffer.ts", "../node_modules/@azure/storage-common/src/cache.ts", "../node_modules/@azure/storage-common/src/policies/RequestPolicy.ts", "../node_modules/@azure/storage-common/src/utils/constants.ts", "../node_modules/@azure/storage-common/src/utils/utils.common.ts", "../node_modules/@azure/storage-common/src/policies/StorageBrowserPolicy.ts", "../node_modules/@azure/storage-common/src/StorageBrowserPolicyFactory.ts", "../node_modules/@azure/storage-common/src/policies/CredentialPolicy.ts", "../node_modules/@azure/storage-common/src/policies/AnonymousCredentialPolicy.ts", "../node_modules/@azure/storage-common/src/credentials/Credential.ts", "../node_modules/@azure/storage-common/src/credentials/AnonymousCredential.ts", "../node_modules/@azure/storage-common/src/credentials/StorageSharedKeyCredential.ts", "../node_modules/@azure/storage-common/src/utils/SharedKeyComparator.ts", "../node_modules/@azure/storage-common/src/policies/StorageSharedKeyCredentialPolicy.ts", "../node_modules/@azure/storage-common/src/log.ts", "../node_modules/@azure/storage-common/src/policies/StorageRetryPolicyType.ts", "../node_modules/@azure/storage-common/src/policies/StorageRetryPolicy.ts", "../node_modules/@azure/storage-common/src/StorageRetryPolicyFactory.ts", "../node_modules/@azure/storage-common/src/policies/StorageBrowserPolicyV2.ts", "../node_modules/@azure/storage-common/src/policies/StorageCorrectContentLengthPolicy.ts", "../node_modules/@azure/storage-common/src/policies/StorageRetryPolicyV2.ts", "../node_modules/@azure/storage-common/src/policies/StorageSharedKeyCredentialPolicyV2.ts", "../node_modules/@azure/storage-common/src/policies/StorageRequestFailureDetailsParserPolicy.ts", "../node_modules/@azure/storage-common/src/credentials/UserDelegationKeyCredential.ts", "../node_modules/@azure/storage-blob/src/utils/constants.ts", "../node_modules/@azure/storage-blob/src/Pipeline.ts", "../node_modules/@azure/storage-blob/src/generated/src/models/index.ts", "../node_modules/@azure/storage-blob/src/generated/src/models/mappers.ts", "../node_modules/@azure/storage-blob/src/generated/src/models/parameters.ts", "../node_modules/@azure/storage-blob/src/generated/src/operations/service.ts", "../node_modules/@azure/storage-blob/src/generated/src/operations/container.ts", "../node_modules/@azure/storage-blob/src/generated/src/operations/blob.ts", "../node_modules/@azure/storage-blob/src/generated/src/operations/pageBlob.ts", "../node_modules/@azure/storage-blob/src/generated/src/operations/appendBlob.ts", "../node_modules/@azure/storage-blob/src/generated/src/operations/blockBlob.ts", "../node_modules/@azure/storage-blob/src/generated/src/storageClient.ts", "../node_modules/@azure/storage-blob/src/StorageContextClient.ts", "../node_modules/@azure/storage-blob/src/utils/utils.common.ts", "../node_modules/@azure/storage-blob/src/StorageClient.ts", "../node_modules/@azure/storage-blob/src/utils/tracing.ts", "../node_modules/@azure/storage-blob/src/sas/BlobSASPermissions.ts", "../node_modules/@azure/storage-blob/src/sas/ContainerSASPermissions.ts", "../node_modules/@azure/storage-blob/src/sas/SasIPRange.ts", "../node_modules/@azure/storage-blob/src/sas/SASQueryParameters.ts", "../node_modules/@azure/storage-blob/src/sas/BlobSASSignatureValues.ts", "../node_modules/@azure/storage-blob/src/BlobLeaseClient.ts", "../node_modules/@azure/storage-blob/src/utils/RetriableReadableStream.ts", "../node_modules/@azure/storage-blob/src/BlobDownloadResponse.ts", "../node_modules/@azure/storage-blob/src/utils/BlobQuickQueryStream.ts", "../node_modules/@azure/storage-blob/src/internal-avro/AvroConstants.ts", "../node_modules/@azure/storage-blob/src/internal-avro/AvroParser.ts", "../node_modules/@azure/storage-blob/src/internal-avro/utils/utils.common.ts", "../node_modules/@azure/storage-blob/src/internal-avro/AvroReader.ts", "../node_modules/@azure/storage-blob/src/internal-avro/AvroReadable.ts", "../node_modules/@azure/storage-blob/src/internal-avro/AvroReadableFromStream.ts", "../node_modules/@azure/storage-blob/src/BlobQueryResponse.ts", "../node_modules/@azure/storage-blob/src/models.ts", "../node_modules/@azure/storage-blob/src/PageBlobRangeResponse.ts", "../node_modules/@azure/storage-blob/src/pollers/BlobStartCopyFromUrlPoller.ts", "../node_modules/@azure/storage-blob/src/Range.ts", "../node_modules/@azure/storage-blob/src/utils/Batch.ts", "../node_modules/@azure/storage-blob/src/utils/utils.ts", "../node_modules/@azure/storage-blob/src/Clients.ts", "../node_modules/@azure/storage-blob/src/utils/Mutex.ts", "../node_modules/@azure/storage-blob/src/generatedModels.ts", "../node_modules/@actions/cache/src/internal/shared/errors.ts", "../node_modules/@actions/cache/src/internal/uploadUtils.ts", "../node_modules/@actions/cache/src/internal/downloadUtils.ts", "../node_modules/@actions/cache/src/internal/requestUtils.ts", "../node_modules/@actions/cache/src/options.ts", "../node_modules/@actions/cache/src/internal/config.ts", "../node_modules/@actions/cache/src/internal/shared/user-agent.ts", "../node_modules/@actions/cache/src/generated/results/api/v1/cache.ts", "../node_modules/@actions/cache/src/generated/results/entities/v1/cachemetadata.ts", "../node_modules/@actions/cache/src/generated/results/entities/v1/cachescope.ts", "../node_modules/@actions/cache/src/generated/results/api/v1/cache.twirp-client.ts", "../node_modules/@actions/cache/src/internal/shared/util.ts", "../node_modules/@actions/cache/src/internal/shared/cacheTwirpClient.ts", "../node_modules/@actions/cache/src/internal/tar.ts", "../node_modules/@docker/actions-toolkit/src/index.ts", "../node_modules/@docker/actions-toolkit/src/buildx/buildx.ts", "../node_modules/@docker/actions-toolkit/src/buildkit/git.ts", "../node_modules/@docker/actions-toolkit/src/docker/docker.ts", "../node_modules/@docker/actions-toolkit/src/context.ts", "../node_modules/@docker/actions-toolkit/src/exec.ts", "../node_modules/@docker/actions-toolkit/src/util.ts", "../node_modules/csv-parse/lib/api/CsvError.js", "../node_modules/csv-parse/lib/utils/is_object.js", "../node_modules/csv-parse/lib/api/normalize_columns_array.js", "../node_modules/csv-parse/lib/utils/ResizeableBuffer.js", "../node_modules/csv-parse/lib/api/init_state.js", "../node_modules/csv-parse/lib/utils/underscore.js", "../node_modules/csv-parse/lib/api/normalize_options.js", "../node_modules/csv-parse/lib/utils/delimiter_discover.js", "../node_modules/csv-parse/lib/api/index.js", "../node_modules/csv-parse/lib/sync.js", "../node_modules/@docker/actions-toolkit/src/github/github.ts", "../node_modules/@actions/github/src/context.ts", "../node_modules/@actions/github/src/internal/utils.ts", "../node_modules/universal-user-agent/index.js", "../node_modules/before-after-hook/lib/register.js", "../node_modules/before-after-hook/lib/add.js", "../node_modules/before-after-hook/lib/remove.js", "../node_modules/before-after-hook/index.js", "../node_modules/@octokit/endpoint/dist-bundle/index.js", "../node_modules/@octokit/request/dist-bundle/index.js", "../node_modules/json-with-bigint/json-with-bigint.js", "../node_modules/@octokit/request-error/dist-src/index.js", "../node_modules/@octokit/graphql/dist-bundle/index.js", "../node_modules/@octokit/auth-token/dist-bundle/index.js", "../node_modules/@octokit/core/dist-src/version.js", "../node_modules/@octokit/core/dist-src/index.js", "../node_modules/@octokit/src/version.ts", "../node_modules/@octokit/src/generated/endpoints.ts", "../node_modules/@octokit/src/endpoints-to-methods.ts", "../node_modules/@octokit/src/index.ts", "../node_modules/@octokit/plugin-paginate-rest/dist-bundle/index.js", "../node_modules/@actions/github/src/utils.ts", "../node_modules/@actions/github/src/github.ts", "../node_modules/@docker/actions-toolkit/node_modules/@actions/http-client/src/index.ts", "../node_modules/@docker/actions-toolkit/node_modules/@actions/http-client/src/proxy.ts", "../node_modules/jwt-decode/build/esm/index.js", "../node_modules/@docker/actions-toolkit/src/buildx/history.ts", "../node_modules/@docker/actions-toolkit/src/github/artifact.ts", "../node_modules/@actions/artifact/src/internal/shared/config.ts", "../node_modules/@actions/artifact/src/internal/upload/upload-artifact.ts", "../node_modules/@actions/artifact/src/generated/google/protobuf/timestamp.ts", "../node_modules/@actions/artifact/src/generated/google/protobuf/wrappers.ts", "../node_modules/@actions/artifact/src/generated/results/api/v1/artifact.ts", "../node_modules/@actions/artifact/src/generated/results/api/v1/artifact.twirp-client.ts", "../node_modules/@actions/artifact/src/internal/upload/retention.ts", "../node_modules/@actions/artifact/src/internal/upload/path-and-artifact-name-validation.ts", "../node_modules/@actions/artifact/node_modules/@actions/http-client/src/index.ts", "../node_modules/@actions/artifact/node_modules/@actions/http-client/src/proxy.ts", "../node_modules/@actions/artifact/node_modules/@actions/http-client/src/auth.ts", "../node_modules/@actions/artifact/src/internal/shared/user-agent.ts", "../node_modules/@actions/artifact/src/internal/shared/errors.ts", "../node_modules/@actions/artifact/src/internal/shared/util.ts", "../node_modules/@actions/artifact/src/internal/shared/artifact-twirp-client.ts", "../node_modules/@actions/artifact/src/internal/upload/upload-zip-specification.ts", "../node_modules/@actions/artifact/src/internal/upload/blob-upload.ts", "../node_modules/@actions/artifact/src/internal/upload/zip.ts", "../node_modules/@actions/artifact/src/internal/upload/stream.ts", "../node_modules/@actions/artifact/src/internal/upload/types.ts", "../node_modules/@actions/artifact/src/internal/download/download-artifact.ts", "../node_modules/@actions/artifact/src/internal/find/retry-options.ts", "../node_modules/@octokit/plugin-request-log/dist-src/version.js", "../node_modules/@octokit/plugin-request-log/dist-src/index.js", "../node_modules/@octokit/plugin-retry/dist-bundle/index.js", "../node_modules/@octokit/plugin-retry/node_modules/@octokit/request-error/dist-src/index.js", "../node_modules/@actions/artifact/src/internal/find/get-artifact.ts", "../node_modules/@actions/artifact/src/internal/delete/delete-artifact.ts", "../node_modules/@actions/artifact/src/internal/find/list-artifacts.ts", "../node_modules/@actions/artifact/src/internal/client.ts", "../node_modules/@actions/artifact/src/artifact.ts", "../node_modules/he/src/data.mjs", "../node_modules/he/src/he.mjs", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/tag.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/tag/scalar/str.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/tag/scalar/null_core.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/tag/scalar/null_json.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/tag/scalar/null_yaml11.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/tag/scalar/bool_core.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/tag/scalar/bool_json.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/tag/scalar/bool_yaml11.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/tag/scalar/int_core.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/tag/scalar/int_json.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/tag/scalar/int_yaml11.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/tag/scalar/float_core.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/tag/scalar/float_json.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/tag/scalar/float_yaml11.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/tag/scalar/merge.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/tag/scalar/binary.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/tag/scalar/timestamp.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/tag/sequence/seq.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/common/object.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/tag/sequence/omap.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/tag/sequence/pairs.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/tag/mapping/map.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/tag/mapping/set.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/schema.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/tag/mapping/real_map.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/tag/mapping/legacy_map.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/common/snippet.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/common/exception.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/parser/events.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/parser/parser_scalar.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/common/tagname.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/parser/constructor.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/parser/parser.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/load.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/ast/from_js.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/ast/visit.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/ast/styler_defaults.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/ast/scalar_styler.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/ast/presenter.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/dump.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/ast/from_events.ts", "../node_modules/@docker/actions-toolkit/node_modules/js-yaml/src/index.ts", "../node_modules/@docker/actions-toolkit/src/github/summary.ts", "../node_modules/@docker/actions-toolkit/src/buildx/build.ts", "../node_modules/@docker/actions-toolkit/src/buildx/bake.ts", "../node_modules/@docker/actions-toolkit/src/buildx/install.ts", "../node_modules/@docker/actions-toolkit/src/git.ts", "../node_modules/@docker/actions-toolkit/src/sigstore/sigstore.ts", "../node_modules/@docker/actions-toolkit/src/cosign/cosign.ts", "../node_modules/@docker/actions-toolkit/src/types/oci/mediatype.ts", "../node_modules/@docker/actions-toolkit/src/buildx/imagetools.ts", "../node_modules/@docker/actions-toolkit/src/types/sigstore/sigstore.ts", "../node_modules/@docker/actions-toolkit/src/buildx/builder.ts", "../node_modules/@docker/actions-toolkit/src/buildkit/buildkit.ts", "../node_modules/@docker/actions-toolkit/src/buildkit/config.ts", "../node_modules/@docker/actions-toolkit/src/compose/compose.ts", "../node_modules/@docker/actions-toolkit/src/compose/install.ts", "../node_modules/@docker/actions-toolkit/src/cosign/install.ts", "../node_modules/@docker/actions-toolkit/src/cosign/dockerfile.ts", "../node_modules/@docker/actions-toolkit/src/regclient/regctl.ts", "../node_modules/@docker/actions-toolkit/src/regclient/install.ts", "../node_modules/@docker/actions-toolkit/src/undock/undock.ts", "../node_modules/@docker/actions-toolkit/src/undock/install.ts", "../node_modules/@docker/actions-toolkit/src/toolkit.ts", "../src/context.ts", "../src/state-helper.ts"], - "sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('got illegal response body from proxy');\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n debug('tunneling connection has established');\n self.sockets[self.sockets.indexOf(placeholder)] = socket;\n return cb(socket);\n }\n\n function onError(cause) {\n connectReq.removeAllListeners();\n\n debug('tunneling socket could not be established, cause=%s\\n',\n cause.message, cause.stack);\n var error = new Error('tunneling socket could not be established, ' +\n 'cause=' + cause.message);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n }\n};\n\nTunnelingAgent.prototype.removeSocket = function removeSocket(socket) {\n var pos = this.sockets.indexOf(socket)\n if (pos === -1) {\n return;\n }\n this.sockets.splice(pos, 1);\n\n var pending = this.requests.shift();\n if (pending) {\n // If we have pending requests and a socket gets closed a new one\n // needs to be created to take over in the pool for the one that closed.\n this.createSocket(pending, function(socket) {\n pending.request.onSocket(socket);\n });\n }\n};\n\nfunction createSecureSocket(options, cb) {\n var self = this;\n TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {\n var hostHeader = options.request.getHeader('host');\n var tlsOptions = mergeOptions({}, self.options, {\n socket: socket,\n servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host\n });\n\n // 0 is dummy port for v0.6\n var secureSocket = tls.connect(0, tlsOptions);\n self.sockets[self.sockets.indexOf(socket)] = secureSocket;\n cb(secureSocket);\n });\n}\n\n\nfunction toOptions(host, port, localAddress) {\n if (typeof host === 'string') { // since v0.10\n return {\n host: host,\n port: port,\n localAddress: localAddress\n };\n }\n return host; // for v0.11 or later\n}\n\nfunction mergeOptions(target) {\n for (var i = 1, len = arguments.length; i < len; ++i) {\n var overrides = arguments[i];\n if (typeof overrides === 'object') {\n var keys = Object.keys(overrides);\n for (var j = 0, keyLen = keys.length; j < keyLen; ++j) {\n var k = keys[j];\n if (overrides[k] !== undefined) {\n target[k] = overrides[k];\n }\n }\n }\n }\n return target;\n}\n\n\nvar debug;\nif (process.env.NODE_DEBUG && /\\btunnel\\b/.test(process.env.NODE_DEBUG)) {\n debug = function() {\n var args = Array.prototype.slice.call(arguments);\n if (typeof args[0] === 'string') {\n args[0] = 'TUNNEL: ' + args[0];\n } else {\n args.unshift('TUNNEL:');\n }\n console.error.apply(console, args);\n }\n} else {\n debug = function() {};\n}\nexports.debug = debug; // for test\n", "module.exports = require('./lib/tunnel');\n", "module.exports = {\n kClose: Symbol('close'),\n kDestroy: Symbol('destroy'),\n kDispatch: Symbol('dispatch'),\n kUrl: Symbol('url'),\n kWriting: Symbol('writing'),\n kResuming: Symbol('resuming'),\n kQueue: Symbol('queue'),\n kConnect: Symbol('connect'),\n kConnecting: Symbol('connecting'),\n kKeepAliveDefaultTimeout: Symbol('default keep alive timeout'),\n kKeepAliveMaxTimeout: Symbol('max keep alive timeout'),\n kKeepAliveTimeoutThreshold: Symbol('keep alive timeout threshold'),\n kKeepAliveTimeoutValue: Symbol('keep alive timeout'),\n kKeepAlive: Symbol('keep alive'),\n kHeadersTimeout: Symbol('headers timeout'),\n kBodyTimeout: Symbol('body timeout'),\n kServerName: Symbol('server name'),\n kLocalAddress: Symbol('local address'),\n kHost: Symbol('host'),\n kNoRef: Symbol('no ref'),\n kBodyUsed: Symbol('used'),\n kBody: Symbol('abstracted request body'),\n kRunning: Symbol('running'),\n kBlocking: Symbol('blocking'),\n kPending: Symbol('pending'),\n kSize: Symbol('size'),\n kBusy: Symbol('busy'),\n kQueued: Symbol('queued'),\n kFree: Symbol('free'),\n kConnected: Symbol('connected'),\n kClosed: Symbol('closed'),\n kNeedDrain: Symbol('need drain'),\n kReset: Symbol('reset'),\n kDestroyed: Symbol.for('nodejs.stream.destroyed'),\n kResume: Symbol('resume'),\n kOnError: Symbol('on error'),\n kMaxHeadersSize: Symbol('max headers size'),\n kRunningIdx: Symbol('running index'),\n kPendingIdx: Symbol('pending index'),\n kError: Symbol('error'),\n kClients: Symbol('clients'),\n kClient: Symbol('client'),\n kParser: Symbol('parser'),\n kOnDestroyed: Symbol('destroy callbacks'),\n kPipelining: Symbol('pipelining'),\n kSocket: Symbol('socket'),\n kHostHeader: Symbol('host header'),\n kConnector: Symbol('connector'),\n kStrictContentLength: Symbol('strict content length'),\n kMaxRedirections: Symbol('maxRedirections'),\n kMaxRequests: Symbol('maxRequestsPerClient'),\n kProxy: Symbol('proxy agent options'),\n kCounter: Symbol('socket request counter'),\n kInterceptors: Symbol('dispatch interceptors'),\n kMaxResponseSize: Symbol('max response size'),\n kHTTP2Session: Symbol('http2Session'),\n kHTTP2SessionState: Symbol('http2Session state'),\n kRetryHandlerDefaultRetry: Symbol('retry agent default retry'),\n kConstruct: Symbol('constructable'),\n kListeners: Symbol('listeners'),\n kHTTPContext: Symbol('http context'),\n kMaxConcurrentStreams: Symbol('max concurrent streams'),\n kNoProxyAgent: Symbol('no proxy agent'),\n kHttpProxyAgent: Symbol('http proxy agent'),\n kHttpsProxyAgent: Symbol('https proxy agent')\n}\n", "'use strict'\n\nconst kUndiciError = Symbol.for('undici.error.UND_ERR')\nclass UndiciError extends Error {\n constructor (message) {\n super(message)\n this.name = 'UndiciError'\n this.code = 'UND_ERR'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kUndiciError] === true\n }\n\n [kUndiciError] = true\n}\n\nconst kConnectTimeoutError = Symbol.for('undici.error.UND_ERR_CONNECT_TIMEOUT')\nclass ConnectTimeoutError extends UndiciError {\n constructor (message) {\n super(message)\n this.name = 'ConnectTimeoutError'\n this.message = message || 'Connect Timeout Error'\n this.code = 'UND_ERR_CONNECT_TIMEOUT'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kConnectTimeoutError] === true\n }\n\n [kConnectTimeoutError] = true\n}\n\nconst kHeadersTimeoutError = Symbol.for('undici.error.UND_ERR_HEADERS_TIMEOUT')\nclass HeadersTimeoutError extends UndiciError {\n constructor (message) {\n super(message)\n this.name = 'HeadersTimeoutError'\n this.message = message || 'Headers Timeout Error'\n this.code = 'UND_ERR_HEADERS_TIMEOUT'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kHeadersTimeoutError] === true\n }\n\n [kHeadersTimeoutError] = true\n}\n\nconst kHeadersOverflowError = Symbol.for('undici.error.UND_ERR_HEADERS_OVERFLOW')\nclass HeadersOverflowError extends UndiciError {\n constructor (message) {\n super(message)\n this.name = 'HeadersOverflowError'\n this.message = message || 'Headers Overflow Error'\n this.code = 'UND_ERR_HEADERS_OVERFLOW'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kHeadersOverflowError] === true\n }\n\n [kHeadersOverflowError] = true\n}\n\nconst kBodyTimeoutError = Symbol.for('undici.error.UND_ERR_BODY_TIMEOUT')\nclass BodyTimeoutError extends UndiciError {\n constructor (message) {\n super(message)\n this.name = 'BodyTimeoutError'\n this.message = message || 'Body Timeout Error'\n this.code = 'UND_ERR_BODY_TIMEOUT'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kBodyTimeoutError] === true\n }\n\n [kBodyTimeoutError] = true\n}\n\nconst kResponseStatusCodeError = Symbol.for('undici.error.UND_ERR_RESPONSE_STATUS_CODE')\nclass ResponseStatusCodeError extends UndiciError {\n constructor (message, statusCode, headers, body) {\n super(message)\n this.name = 'ResponseStatusCodeError'\n this.message = message || 'Response Status Code Error'\n this.code = 'UND_ERR_RESPONSE_STATUS_CODE'\n this.body = body\n this.status = statusCode\n this.statusCode = statusCode\n this.headers = headers\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kResponseStatusCodeError] === true\n }\n\n [kResponseStatusCodeError] = true\n}\n\nconst kInvalidArgumentError = Symbol.for('undici.error.UND_ERR_INVALID_ARG')\nclass InvalidArgumentError extends UndiciError {\n constructor (message) {\n super(message)\n this.name = 'InvalidArgumentError'\n this.message = message || 'Invalid Argument Error'\n this.code = 'UND_ERR_INVALID_ARG'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kInvalidArgumentError] === true\n }\n\n [kInvalidArgumentError] = true\n}\n\nconst kInvalidReturnValueError = Symbol.for('undici.error.UND_ERR_INVALID_RETURN_VALUE')\nclass InvalidReturnValueError extends UndiciError {\n constructor (message) {\n super(message)\n this.name = 'InvalidReturnValueError'\n this.message = message || 'Invalid Return Value Error'\n this.code = 'UND_ERR_INVALID_RETURN_VALUE'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kInvalidReturnValueError] === true\n }\n\n [kInvalidReturnValueError] = true\n}\n\nconst kAbortError = Symbol.for('undici.error.UND_ERR_ABORT')\nclass AbortError extends UndiciError {\n constructor (message) {\n super(message)\n this.name = 'AbortError'\n this.message = message || 'The operation was aborted'\n this.code = 'UND_ERR_ABORT'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kAbortError] === true\n }\n\n [kAbortError] = true\n}\n\nconst kRequestAbortedError = Symbol.for('undici.error.UND_ERR_ABORTED')\nclass RequestAbortedError extends AbortError {\n constructor (message) {\n super(message)\n this.name = 'AbortError'\n this.message = message || 'Request aborted'\n this.code = 'UND_ERR_ABORTED'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kRequestAbortedError] === true\n }\n\n [kRequestAbortedError] = true\n}\n\nconst kInformationalError = Symbol.for('undici.error.UND_ERR_INFO')\nclass InformationalError extends UndiciError {\n constructor (message) {\n super(message)\n this.name = 'InformationalError'\n this.message = message || 'Request information'\n this.code = 'UND_ERR_INFO'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kInformationalError] === true\n }\n\n [kInformationalError] = true\n}\n\nconst kRequestContentLengthMismatchError = Symbol.for('undici.error.UND_ERR_REQ_CONTENT_LENGTH_MISMATCH')\nclass RequestContentLengthMismatchError extends UndiciError {\n constructor (message) {\n super(message)\n this.name = 'RequestContentLengthMismatchError'\n this.message = message || 'Request body length does not match content-length header'\n this.code = 'UND_ERR_REQ_CONTENT_LENGTH_MISMATCH'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kRequestContentLengthMismatchError] === true\n }\n\n [kRequestContentLengthMismatchError] = true\n}\n\nconst kResponseContentLengthMismatchError = Symbol.for('undici.error.UND_ERR_RES_CONTENT_LENGTH_MISMATCH')\nclass ResponseContentLengthMismatchError extends UndiciError {\n constructor (message) {\n super(message)\n this.name = 'ResponseContentLengthMismatchError'\n this.message = message || 'Response body length does not match content-length header'\n this.code = 'UND_ERR_RES_CONTENT_LENGTH_MISMATCH'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kResponseContentLengthMismatchError] === true\n }\n\n [kResponseContentLengthMismatchError] = true\n}\n\nconst kClientDestroyedError = Symbol.for('undici.error.UND_ERR_DESTROYED')\nclass ClientDestroyedError extends UndiciError {\n constructor (message) {\n super(message)\n this.name = 'ClientDestroyedError'\n this.message = message || 'The client is destroyed'\n this.code = 'UND_ERR_DESTROYED'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kClientDestroyedError] === true\n }\n\n [kClientDestroyedError] = true\n}\n\nconst kClientClosedError = Symbol.for('undici.error.UND_ERR_CLOSED')\nclass ClientClosedError extends UndiciError {\n constructor (message) {\n super(message)\n this.name = 'ClientClosedError'\n this.message = message || 'The client is closed'\n this.code = 'UND_ERR_CLOSED'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kClientClosedError] === true\n }\n\n [kClientClosedError] = true\n}\n\nconst kSocketError = Symbol.for('undici.error.UND_ERR_SOCKET')\nclass SocketError extends UndiciError {\n constructor (message, socket) {\n super(message)\n this.name = 'SocketError'\n this.message = message || 'Socket error'\n this.code = 'UND_ERR_SOCKET'\n this.socket = socket\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kSocketError] === true\n }\n\n [kSocketError] = true\n}\n\nconst kNotSupportedError = Symbol.for('undici.error.UND_ERR_NOT_SUPPORTED')\nclass NotSupportedError extends UndiciError {\n constructor (message) {\n super(message)\n this.name = 'NotSupportedError'\n this.message = message || 'Not supported error'\n this.code = 'UND_ERR_NOT_SUPPORTED'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kNotSupportedError] === true\n }\n\n [kNotSupportedError] = true\n}\n\nconst kBalancedPoolMissingUpstreamError = Symbol.for('undici.error.UND_ERR_BPL_MISSING_UPSTREAM')\nclass BalancedPoolMissingUpstreamError extends UndiciError {\n constructor (message) {\n super(message)\n this.name = 'MissingUpstreamError'\n this.message = message || 'No upstream has been added to the BalancedPool'\n this.code = 'UND_ERR_BPL_MISSING_UPSTREAM'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kBalancedPoolMissingUpstreamError] === true\n }\n\n [kBalancedPoolMissingUpstreamError] = true\n}\n\nconst kHTTPParserError = Symbol.for('undici.error.UND_ERR_HTTP_PARSER')\nclass HTTPParserError extends Error {\n constructor (message, code, data) {\n super(message)\n this.name = 'HTTPParserError'\n this.code = code ? `HPE_${code}` : undefined\n this.data = data ? data.toString() : undefined\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kHTTPParserError] === true\n }\n\n [kHTTPParserError] = true\n}\n\nconst kResponseExceededMaxSizeError = Symbol.for('undici.error.UND_ERR_RES_EXCEEDED_MAX_SIZE')\nclass ResponseExceededMaxSizeError extends UndiciError {\n constructor (message) {\n super(message)\n this.name = 'ResponseExceededMaxSizeError'\n this.message = message || 'Response content exceeded max size'\n this.code = 'UND_ERR_RES_EXCEEDED_MAX_SIZE'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kResponseExceededMaxSizeError] === true\n }\n\n [kResponseExceededMaxSizeError] = true\n}\n\nconst kRequestRetryError = Symbol.for('undici.error.UND_ERR_REQ_RETRY')\nclass RequestRetryError extends UndiciError {\n constructor (message, code, { headers, data }) {\n super(message)\n this.name = 'RequestRetryError'\n this.message = message || 'Request retry error'\n this.code = 'UND_ERR_REQ_RETRY'\n this.statusCode = code\n this.data = data\n this.headers = headers\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kRequestRetryError] === true\n }\n\n [kRequestRetryError] = true\n}\n\nconst kResponseError = Symbol.for('undici.error.UND_ERR_RESPONSE')\nclass ResponseError extends UndiciError {\n constructor (message, code, { headers, data }) {\n super(message)\n this.name = 'ResponseError'\n this.message = message || 'Response error'\n this.code = 'UND_ERR_RESPONSE'\n this.statusCode = code\n this.data = data\n this.headers = headers\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kResponseError] === true\n }\n\n [kResponseError] = true\n}\n\nconst kSecureProxyConnectionError = Symbol.for('undici.error.UND_ERR_PRX_TLS')\nclass SecureProxyConnectionError extends UndiciError {\n constructor (cause, message, options) {\n super(message, { cause, ...(options ?? {}) })\n this.name = 'SecureProxyConnectionError'\n this.message = message || 'Secure Proxy Connection failed'\n this.code = 'UND_ERR_PRX_TLS'\n this.cause = cause\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kSecureProxyConnectionError] === true\n }\n\n [kSecureProxyConnectionError] = true\n}\n\nconst kMessageSizeExceededError = Symbol.for('undici.error.UND_ERR_WS_MESSAGE_SIZE_EXCEEDED')\nclass MessageSizeExceededError extends UndiciError {\n constructor (message) {\n super(message)\n this.name = 'MessageSizeExceededError'\n this.message = message || 'Max decompressed message size exceeded'\n this.code = 'UND_ERR_WS_MESSAGE_SIZE_EXCEEDED'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kMessageSizeExceededError] === true\n }\n\n get [kMessageSizeExceededError] () {\n return true\n }\n}\n\nmodule.exports = {\n AbortError,\n HTTPParserError,\n UndiciError,\n HeadersTimeoutError,\n HeadersOverflowError,\n BodyTimeoutError,\n RequestContentLengthMismatchError,\n ConnectTimeoutError,\n ResponseStatusCodeError,\n InvalidArgumentError,\n InvalidReturnValueError,\n RequestAbortedError,\n ClientDestroyedError,\n ClientClosedError,\n InformationalError,\n SocketError,\n NotSupportedError,\n ResponseContentLengthMismatchError,\n BalancedPoolMissingUpstreamError,\n ResponseExceededMaxSizeError,\n RequestRetryError,\n ResponseError,\n SecureProxyConnectionError,\n MessageSizeExceededError\n}\n", "'use strict'\n\n/** @type {Record} */\nconst headerNameLowerCasedRecord = {}\n\n// https://developer.mozilla.org/docs/Web/HTTP/Headers\nconst wellknownHeaderNames = [\n 'Accept',\n 'Accept-Encoding',\n 'Accept-Language',\n 'Accept-Ranges',\n 'Access-Control-Allow-Credentials',\n 'Access-Control-Allow-Headers',\n 'Access-Control-Allow-Methods',\n 'Access-Control-Allow-Origin',\n 'Access-Control-Expose-Headers',\n 'Access-Control-Max-Age',\n 'Access-Control-Request-Headers',\n 'Access-Control-Request-Method',\n 'Age',\n 'Allow',\n 'Alt-Svc',\n 'Alt-Used',\n 'Authorization',\n 'Cache-Control',\n 'Clear-Site-Data',\n 'Connection',\n 'Content-Disposition',\n 'Content-Encoding',\n 'Content-Language',\n 'Content-Length',\n 'Content-Location',\n 'Content-Range',\n 'Content-Security-Policy',\n 'Content-Security-Policy-Report-Only',\n 'Content-Type',\n 'Cookie',\n 'Cross-Origin-Embedder-Policy',\n 'Cross-Origin-Opener-Policy',\n 'Cross-Origin-Resource-Policy',\n 'Date',\n 'Device-Memory',\n 'Downlink',\n 'ECT',\n 'ETag',\n 'Expect',\n 'Expect-CT',\n 'Expires',\n 'Forwarded',\n 'From',\n 'Host',\n 'If-Match',\n 'If-Modified-Since',\n 'If-None-Match',\n 'If-Range',\n 'If-Unmodified-Since',\n 'Keep-Alive',\n 'Last-Modified',\n 'Link',\n 'Location',\n 'Max-Forwards',\n 'Origin',\n 'Permissions-Policy',\n 'Pragma',\n 'Proxy-Authenticate',\n 'Proxy-Authorization',\n 'RTT',\n 'Range',\n 'Referer',\n 'Referrer-Policy',\n 'Refresh',\n 'Retry-After',\n 'Sec-WebSocket-Accept',\n 'Sec-WebSocket-Extensions',\n 'Sec-WebSocket-Key',\n 'Sec-WebSocket-Protocol',\n 'Sec-WebSocket-Version',\n 'Server',\n 'Server-Timing',\n 'Service-Worker-Allowed',\n 'Service-Worker-Navigation-Preload',\n 'Set-Cookie',\n 'SourceMap',\n 'Strict-Transport-Security',\n 'Supports-Loading-Mode',\n 'TE',\n 'Timing-Allow-Origin',\n 'Trailer',\n 'Transfer-Encoding',\n 'Upgrade',\n 'Upgrade-Insecure-Requests',\n 'User-Agent',\n 'Vary',\n 'Via',\n 'WWW-Authenticate',\n 'X-Content-Type-Options',\n 'X-DNS-Prefetch-Control',\n 'X-Frame-Options',\n 'X-Permitted-Cross-Domain-Policies',\n 'X-Powered-By',\n 'X-Requested-With',\n 'X-XSS-Protection'\n]\n\nfor (let i = 0; i < wellknownHeaderNames.length; ++i) {\n const key = wellknownHeaderNames[i]\n const lowerCasedKey = key.toLowerCase()\n headerNameLowerCasedRecord[key] = headerNameLowerCasedRecord[lowerCasedKey] =\n lowerCasedKey\n}\n\n// Note: object prototypes should not be able to be referenced. e.g. `Object#hasOwnProperty`.\nObject.setPrototypeOf(headerNameLowerCasedRecord, null)\n\nmodule.exports = {\n wellknownHeaderNames,\n headerNameLowerCasedRecord\n}\n", "'use strict'\n\nconst {\n wellknownHeaderNames,\n headerNameLowerCasedRecord\n} = require('./constants')\n\nclass TstNode {\n /** @type {any} */\n value = null\n /** @type {null | TstNode} */\n left = null\n /** @type {null | TstNode} */\n middle = null\n /** @type {null | TstNode} */\n right = null\n /** @type {number} */\n code\n /**\n * @param {string} key\n * @param {any} value\n * @param {number} index\n */\n constructor (key, value, index) {\n if (index === undefined || index >= key.length) {\n throw new TypeError('Unreachable')\n }\n const code = this.code = key.charCodeAt(index)\n // check code is ascii string\n if (code > 0x7F) {\n throw new TypeError('key must be ascii string')\n }\n if (key.length !== ++index) {\n this.middle = new TstNode(key, value, index)\n } else {\n this.value = value\n }\n }\n\n /**\n * @param {string} key\n * @param {any} value\n */\n add (key, value) {\n const length = key.length\n if (length === 0) {\n throw new TypeError('Unreachable')\n }\n let index = 0\n let node = this\n while (true) {\n const code = key.charCodeAt(index)\n // check code is ascii string\n if (code > 0x7F) {\n throw new TypeError('key must be ascii string')\n }\n if (node.code === code) {\n if (length === ++index) {\n node.value = value\n break\n } else if (node.middle !== null) {\n node = node.middle\n } else {\n node.middle = new TstNode(key, value, index)\n break\n }\n } else if (node.code < code) {\n if (node.left !== null) {\n node = node.left\n } else {\n node.left = new TstNode(key, value, index)\n break\n }\n } else if (node.right !== null) {\n node = node.right\n } else {\n node.right = new TstNode(key, value, index)\n break\n }\n }\n }\n\n /**\n * @param {Uint8Array} key\n * @return {TstNode | null}\n */\n search (key) {\n const keylength = key.length\n let index = 0\n let node = this\n while (node !== null && index < keylength) {\n let code = key[index]\n // A-Z\n // First check if it is bigger than 0x5a.\n // Lowercase letters have higher char codes than uppercase ones.\n // Also we assume that headers will mostly contain lowercase characters.\n if (code <= 0x5a && code >= 0x41) {\n // Lowercase for uppercase.\n code |= 32\n }\n while (node !== null) {\n if (code === node.code) {\n if (keylength === ++index) {\n // Returns Node since it is the last key.\n return node\n }\n node = node.middle\n break\n }\n node = node.code < code ? node.left : node.right\n }\n }\n return null\n }\n}\n\nclass TernarySearchTree {\n /** @type {TstNode | null} */\n node = null\n\n /**\n * @param {string} key\n * @param {any} value\n * */\n insert (key, value) {\n if (this.node === null) {\n this.node = new TstNode(key, value, 0)\n } else {\n this.node.add(key, value)\n }\n }\n\n /**\n * @param {Uint8Array} key\n * @return {any}\n */\n lookup (key) {\n return this.node?.search(key)?.value ?? null\n }\n}\n\nconst tree = new TernarySearchTree()\n\nfor (let i = 0; i < wellknownHeaderNames.length; ++i) {\n const key = headerNameLowerCasedRecord[wellknownHeaderNames[i]]\n tree.insert(key, key)\n}\n\nmodule.exports = {\n TernarySearchTree,\n tree\n}\n", "'use strict'\n\nconst assert = require('node:assert')\nconst { kDestroyed, kBodyUsed, kListeners, kBody } = require('./symbols')\nconst { IncomingMessage } = require('node:http')\nconst stream = require('node:stream')\nconst net = require('node:net')\nconst { Blob } = require('node:buffer')\nconst nodeUtil = require('node:util')\nconst { stringify } = require('node:querystring')\nconst { EventEmitter: EE } = require('node:events')\nconst { InvalidArgumentError } = require('./errors')\nconst { headerNameLowerCasedRecord } = require('./constants')\nconst { tree } = require('./tree')\n\nconst [nodeMajor, nodeMinor] = process.versions.node.split('.').map(v => Number(v))\n\nclass BodyAsyncIterable {\n constructor (body) {\n this[kBody] = body\n this[kBodyUsed] = false\n }\n\n async * [Symbol.asyncIterator] () {\n assert(!this[kBodyUsed], 'disturbed')\n this[kBodyUsed] = true\n yield * this[kBody]\n }\n}\n\nfunction wrapRequestBody (body) {\n if (isStream(body)) {\n // TODO (fix): Provide some way for the user to cache the file to e.g. /tmp\n // so that it can be dispatched again?\n // TODO (fix): Do we need 100-expect support to provide a way to do this properly?\n if (bodyLength(body) === 0) {\n body\n .on('data', function () {\n assert(false)\n })\n }\n\n if (typeof body.readableDidRead !== 'boolean') {\n body[kBodyUsed] = false\n EE.prototype.on.call(body, 'data', function () {\n this[kBodyUsed] = true\n })\n }\n\n return body\n } else if (body && typeof body.pipeTo === 'function') {\n // TODO (fix): We can't access ReadableStream internal state\n // to determine whether or not it has been disturbed. This is just\n // a workaround.\n return new BodyAsyncIterable(body)\n } else if (\n body &&\n typeof body !== 'string' &&\n !ArrayBuffer.isView(body) &&\n isIterable(body)\n ) {\n // TODO: Should we allow re-using iterable if !this.opts.idempotent\n // or through some other flag?\n return new BodyAsyncIterable(body)\n } else {\n return body\n }\n}\n\nfunction nop () {}\n\nfunction isStream (obj) {\n return obj && typeof obj === 'object' && typeof obj.pipe === 'function' && typeof obj.on === 'function'\n}\n\n// based on https://github.com/node-fetch/fetch-blob/blob/8ab587d34080de94140b54f07168451e7d0b655e/index.js#L229-L241 (MIT License)\nfunction isBlobLike (object) {\n if (object === null) {\n return false\n } else if (object instanceof Blob) {\n return true\n } else if (typeof object !== 'object') {\n return false\n } else {\n const sTag = object[Symbol.toStringTag]\n\n return (sTag === 'Blob' || sTag === 'File') && (\n ('stream' in object && typeof object.stream === 'function') ||\n ('arrayBuffer' in object && typeof object.arrayBuffer === 'function')\n )\n }\n}\n\nfunction buildURL (url, queryParams) {\n if (url.includes('?') || url.includes('#')) {\n throw new Error('Query params cannot be passed when url already contains \"?\" or \"#\".')\n }\n\n const stringified = stringify(queryParams)\n\n if (stringified) {\n url += '?' + stringified\n }\n\n return url\n}\n\nfunction isValidPort (port) {\n const value = parseInt(port, 10)\n return (\n value === Number(port) &&\n value >= 0 &&\n value <= 65535\n )\n}\n\nfunction isHttpOrHttpsPrefixed (value) {\n return (\n value != null &&\n value[0] === 'h' &&\n value[1] === 't' &&\n value[2] === 't' &&\n value[3] === 'p' &&\n (\n value[4] === ':' ||\n (\n value[4] === 's' &&\n value[5] === ':'\n )\n )\n )\n}\n\nfunction parseURL (url) {\n if (typeof url === 'string') {\n url = new URL(url)\n\n if (!isHttpOrHttpsPrefixed(url.origin || url.protocol)) {\n throw new InvalidArgumentError('Invalid URL protocol: the URL must start with `http:` or `https:`.')\n }\n\n return url\n }\n\n if (!url || typeof url !== 'object') {\n throw new InvalidArgumentError('Invalid URL: The URL argument must be a non-null object.')\n }\n\n if (!(url instanceof URL)) {\n if (url.port != null && url.port !== '' && isValidPort(url.port) === false) {\n throw new InvalidArgumentError('Invalid URL: port must be a valid integer or a string representation of an integer.')\n }\n\n if (url.path != null && typeof url.path !== 'string') {\n throw new InvalidArgumentError('Invalid URL path: the path must be a string or null/undefined.')\n }\n\n if (url.pathname != null && typeof url.pathname !== 'string') {\n throw new InvalidArgumentError('Invalid URL pathname: the pathname must be a string or null/undefined.')\n }\n\n if (url.hostname != null && typeof url.hostname !== 'string') {\n throw new InvalidArgumentError('Invalid URL hostname: the hostname must be a string or null/undefined.')\n }\n\n if (url.origin != null && typeof url.origin !== 'string') {\n throw new InvalidArgumentError('Invalid URL origin: the origin must be a string or null/undefined.')\n }\n\n if (!isHttpOrHttpsPrefixed(url.origin || url.protocol)) {\n throw new InvalidArgumentError('Invalid URL protocol: the URL must start with `http:` or `https:`.')\n }\n\n const port = url.port != null\n ? url.port\n : (url.protocol === 'https:' ? 443 : 80)\n let origin = url.origin != null\n ? url.origin\n : `${url.protocol || ''}//${url.hostname || ''}:${port}`\n let path = url.path != null\n ? url.path\n : `${url.pathname || ''}${url.search || ''}`\n\n if (origin[origin.length - 1] === '/') {\n origin = origin.slice(0, origin.length - 1)\n }\n\n if (path && path[0] !== '/') {\n path = `/${path}`\n }\n // new URL(path, origin) is unsafe when `path` contains an absolute URL\n // From https://developer.mozilla.org/en-US/docs/Web/API/URL/URL:\n // If first parameter is a relative URL, second param is required, and will be used as the base URL.\n // If first parameter is an absolute URL, a given second param will be ignored.\n return new URL(`${origin}${path}`)\n }\n\n if (!isHttpOrHttpsPrefixed(url.origin || url.protocol)) {\n throw new InvalidArgumentError('Invalid URL protocol: the URL must start with `http:` or `https:`.')\n }\n\n return url\n}\n\nfunction parseOrigin (url) {\n url = parseURL(url)\n\n if (url.pathname !== '/' || url.search || url.hash) {\n throw new InvalidArgumentError('invalid url')\n }\n\n return url\n}\n\nfunction getHostname (host) {\n if (host[0] === '[') {\n const idx = host.indexOf(']')\n\n assert(idx !== -1)\n return host.substring(1, idx)\n }\n\n const idx = host.indexOf(':')\n if (idx === -1) return host\n\n return host.substring(0, idx)\n}\n\n// IP addresses are not valid server names per RFC6066\n// > Currently, the only server names supported are DNS hostnames\nfunction getServerName (host) {\n if (!host) {\n return null\n }\n\n assert(typeof host === 'string')\n\n const servername = getHostname(host)\n if (net.isIP(servername)) {\n return ''\n }\n\n return servername\n}\n\nfunction deepClone (obj) {\n return JSON.parse(JSON.stringify(obj))\n}\n\nfunction isAsyncIterable (obj) {\n return !!(obj != null && typeof obj[Symbol.asyncIterator] === 'function')\n}\n\nfunction isIterable (obj) {\n return !!(obj != null && (typeof obj[Symbol.iterator] === 'function' || typeof obj[Symbol.asyncIterator] === 'function'))\n}\n\nfunction bodyLength (body) {\n if (body == null) {\n return 0\n } else if (isStream(body)) {\n const state = body._readableState\n return state && state.objectMode === false && state.ended === true && Number.isFinite(state.length)\n ? state.length\n : null\n } else if (isBlobLike(body)) {\n return body.size != null ? body.size : null\n } else if (isBuffer(body)) {\n return body.byteLength\n }\n\n return null\n}\n\nfunction isDestroyed (body) {\n return body && !!(body.destroyed || body[kDestroyed] || (stream.isDestroyed?.(body)))\n}\n\nfunction destroy (stream, err) {\n if (stream == null || !isStream(stream) || isDestroyed(stream)) {\n return\n }\n\n if (typeof stream.destroy === 'function') {\n if (Object.getPrototypeOf(stream).constructor === IncomingMessage) {\n // See: https://github.com/nodejs/node/pull/38505/files\n stream.socket = null\n }\n\n stream.destroy(err)\n } else if (err) {\n queueMicrotask(() => {\n stream.emit('error', err)\n })\n }\n\n if (stream.destroyed !== true) {\n stream[kDestroyed] = true\n }\n}\n\nconst KEEPALIVE_TIMEOUT_EXPR = /timeout=(\\d+)/\nfunction parseKeepAliveTimeout (val) {\n const m = val.toString().match(KEEPALIVE_TIMEOUT_EXPR)\n return m ? parseInt(m[1], 10) * 1000 : null\n}\n\n/**\n * Retrieves a header name and returns its lowercase value.\n * @param {string | Buffer} value Header name\n * @returns {string}\n */\nfunction headerNameToString (value) {\n return typeof value === 'string'\n ? headerNameLowerCasedRecord[value] ?? value.toLowerCase()\n : tree.lookup(value) ?? value.toString('latin1').toLowerCase()\n}\n\n/**\n * Receive the buffer as a string and return its lowercase value.\n * @param {Buffer} value Header name\n * @returns {string}\n */\nfunction bufferToLowerCasedHeaderName (value) {\n return tree.lookup(value) ?? value.toString('latin1').toLowerCase()\n}\n\n/**\n * @param {Record | (Buffer | string | (Buffer | string)[])[]} headers\n * @param {Record} [obj]\n * @returns {Record}\n */\nfunction parseHeaders (headers, obj) {\n if (obj === undefined) obj = {}\n for (let i = 0; i < headers.length; i += 2) {\n const key = headerNameToString(headers[i])\n let val = obj[key]\n\n if (val) {\n if (typeof val === 'string') {\n val = [val]\n obj[key] = val\n }\n val.push(headers[i + 1].toString('utf8'))\n } else {\n const headersValue = headers[i + 1]\n if (typeof headersValue === 'string') {\n obj[key] = headersValue\n } else {\n obj[key] = Array.isArray(headersValue) ? headersValue.map(x => x.toString('utf8')) : headersValue.toString('utf8')\n }\n }\n }\n\n // See https://github.com/nodejs/node/pull/46528\n if ('content-length' in obj && 'content-disposition' in obj) {\n obj['content-disposition'] = Buffer.from(obj['content-disposition']).toString('latin1')\n }\n\n return obj\n}\n\nfunction parseRawHeaders (headers) {\n const len = headers.length\n const ret = new Array(len)\n\n let hasContentLength = false\n let contentDispositionIdx = -1\n let key\n let val\n let kLen = 0\n\n for (let n = 0; n < headers.length; n += 2) {\n key = headers[n]\n val = headers[n + 1]\n\n typeof key !== 'string' && (key = key.toString())\n typeof val !== 'string' && (val = val.toString('utf8'))\n\n kLen = key.length\n if (kLen === 14 && key[7] === '-' && (key === 'content-length' || key.toLowerCase() === 'content-length')) {\n hasContentLength = true\n } else if (kLen === 19 && key[7] === '-' && (key === 'content-disposition' || key.toLowerCase() === 'content-disposition')) {\n contentDispositionIdx = n + 1\n }\n ret[n] = key\n ret[n + 1] = val\n }\n\n // See https://github.com/nodejs/node/pull/46528\n if (hasContentLength && contentDispositionIdx !== -1) {\n ret[contentDispositionIdx] = Buffer.from(ret[contentDispositionIdx]).toString('latin1')\n }\n\n return ret\n}\n\nfunction isBuffer (buffer) {\n // See, https://github.com/mcollina/undici/pull/319\n return buffer instanceof Uint8Array || Buffer.isBuffer(buffer)\n}\n\nfunction validateHandler (handler, method, upgrade) {\n if (!handler || typeof handler !== 'object') {\n throw new InvalidArgumentError('handler must be an object')\n }\n\n if (typeof handler.onConnect !== 'function') {\n throw new InvalidArgumentError('invalid onConnect method')\n }\n\n if (typeof handler.onError !== 'function') {\n throw new InvalidArgumentError('invalid onError method')\n }\n\n if (typeof handler.onBodySent !== 'function' && handler.onBodySent !== undefined) {\n throw new InvalidArgumentError('invalid onBodySent method')\n }\n\n if (upgrade || method === 'CONNECT') {\n if (typeof handler.onUpgrade !== 'function') {\n throw new InvalidArgumentError('invalid onUpgrade method')\n }\n } else {\n if (typeof handler.onHeaders !== 'function') {\n throw new InvalidArgumentError('invalid onHeaders method')\n }\n\n if (typeof handler.onData !== 'function') {\n throw new InvalidArgumentError('invalid onData method')\n }\n\n if (typeof handler.onComplete !== 'function') {\n throw new InvalidArgumentError('invalid onComplete method')\n }\n }\n}\n\n// A body is disturbed if it has been read from and it cannot\n// be re-used without losing state or data.\nfunction isDisturbed (body) {\n // TODO (fix): Why is body[kBodyUsed] needed?\n return !!(body && (stream.isDisturbed(body) || body[kBodyUsed]))\n}\n\nfunction isErrored (body) {\n return !!(body && stream.isErrored(body))\n}\n\nfunction isReadable (body) {\n return !!(body && stream.isReadable(body))\n}\n\nfunction getSocketInfo (socket) {\n return {\n localAddress: socket.localAddress,\n localPort: socket.localPort,\n remoteAddress: socket.remoteAddress,\n remotePort: socket.remotePort,\n remoteFamily: socket.remoteFamily,\n timeout: socket.timeout,\n bytesWritten: socket.bytesWritten,\n bytesRead: socket.bytesRead\n }\n}\n\n/** @type {globalThis['ReadableStream']} */\nfunction ReadableStreamFrom (iterable) {\n // We cannot use ReadableStream.from here because it does not return a byte stream.\n\n let iterator\n return new ReadableStream(\n {\n async start () {\n iterator = iterable[Symbol.asyncIterator]()\n },\n async pull (controller) {\n const { done, value } = await iterator.next()\n if (done) {\n queueMicrotask(() => {\n controller.close()\n controller.byobRequest?.respond(0)\n })\n } else {\n const buf = Buffer.isBuffer(value) ? value : Buffer.from(value)\n if (buf.byteLength) {\n controller.enqueue(new Uint8Array(buf))\n }\n }\n return controller.desiredSize > 0\n },\n async cancel (reason) {\n await iterator.return()\n },\n type: 'bytes'\n }\n )\n}\n\n// The chunk should be a FormData instance and contains\n// all the required methods.\nfunction isFormDataLike (object) {\n return (\n object &&\n typeof object === 'object' &&\n typeof object.append === 'function' &&\n typeof object.delete === 'function' &&\n typeof object.get === 'function' &&\n typeof object.getAll === 'function' &&\n typeof object.has === 'function' &&\n typeof object.set === 'function' &&\n object[Symbol.toStringTag] === 'FormData'\n )\n}\n\nfunction addAbortListener (signal, listener) {\n if ('addEventListener' in signal) {\n signal.addEventListener('abort', listener, { once: true })\n return () => signal.removeEventListener('abort', listener)\n }\n signal.addListener('abort', listener)\n return () => signal.removeListener('abort', listener)\n}\n\nconst hasToWellFormed = typeof String.prototype.toWellFormed === 'function'\nconst hasIsWellFormed = typeof String.prototype.isWellFormed === 'function'\n\n/**\n * @param {string} val\n */\nfunction toUSVString (val) {\n return hasToWellFormed ? `${val}`.toWellFormed() : nodeUtil.toUSVString(val)\n}\n\n/**\n * @param {string} val\n */\n// TODO: move this to webidl\nfunction isUSVString (val) {\n return hasIsWellFormed ? `${val}`.isWellFormed() : toUSVString(val) === `${val}`\n}\n\n/**\n * @see https://tools.ietf.org/html/rfc7230#section-3.2.6\n * @param {number} c\n */\nfunction isTokenCharCode (c) {\n switch (c) {\n case 0x22:\n case 0x28:\n case 0x29:\n case 0x2c:\n case 0x2f:\n case 0x3a:\n case 0x3b:\n case 0x3c:\n case 0x3d:\n case 0x3e:\n case 0x3f:\n case 0x40:\n case 0x5b:\n case 0x5c:\n case 0x5d:\n case 0x7b:\n case 0x7d:\n // DQUOTE and \"(),/:;<=>?@[\\]{}\"\n return false\n default:\n // VCHAR %x21-7E\n return c >= 0x21 && c <= 0x7e\n }\n}\n\n/**\n * @param {string} characters\n */\nfunction isValidHTTPToken (characters) {\n if (characters.length === 0) {\n return false\n }\n for (let i = 0; i < characters.length; ++i) {\n if (!isTokenCharCode(characters.charCodeAt(i))) {\n return false\n }\n }\n return true\n}\n\n// headerCharRegex have been lifted from\n// https://github.com/nodejs/node/blob/main/lib/_http_common.js\n\n/**\n * Matches if val contains an invalid field-vchar\n * field-value = *( field-content / obs-fold )\n * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]\n * field-vchar = VCHAR / obs-text\n */\nconst headerCharRegex = /[^\\t\\x20-\\x7e\\x80-\\xff]/\n\n/**\n * @param {string} characters\n */\nfunction isValidHeaderValue (characters) {\n return !headerCharRegex.test(characters)\n}\n\n// Parsed accordingly to RFC 9110\n// https://www.rfc-editor.org/rfc/rfc9110#field.content-range\nfunction parseRangeHeader (range) {\n if (range == null || range === '') return { start: 0, end: null, size: null }\n\n const m = range ? range.match(/^bytes (\\d+)-(\\d+)\\/(\\d+)?$/) : null\n return m\n ? {\n start: parseInt(m[1]),\n end: m[2] ? parseInt(m[2]) : null,\n size: m[3] ? parseInt(m[3]) : null\n }\n : null\n}\n\nfunction addListener (obj, name, listener) {\n const listeners = (obj[kListeners] ??= [])\n listeners.push([name, listener])\n obj.on(name, listener)\n return obj\n}\n\nfunction removeAllListeners (obj) {\n for (const [name, listener] of obj[kListeners] ?? []) {\n obj.removeListener(name, listener)\n }\n obj[kListeners] = null\n}\n\nfunction errorRequest (client, request, err) {\n try {\n request.onError(err)\n assert(request.aborted)\n } catch (err) {\n client.emit('error', err)\n }\n}\n\nconst kEnumerableProperty = Object.create(null)\nkEnumerableProperty.enumerable = true\n\nconst normalizedMethodRecordsBase = {\n delete: 'DELETE',\n DELETE: 'DELETE',\n get: 'GET',\n GET: 'GET',\n head: 'HEAD',\n HEAD: 'HEAD',\n options: 'OPTIONS',\n OPTIONS: 'OPTIONS',\n post: 'POST',\n POST: 'POST',\n put: 'PUT',\n PUT: 'PUT'\n}\n\nconst normalizedMethodRecords = {\n ...normalizedMethodRecordsBase,\n patch: 'patch',\n PATCH: 'PATCH'\n}\n\n// Note: object prototypes should not be able to be referenced. e.g. `Object#hasOwnProperty`.\nObject.setPrototypeOf(normalizedMethodRecordsBase, null)\nObject.setPrototypeOf(normalizedMethodRecords, null)\n\nmodule.exports = {\n kEnumerableProperty,\n nop,\n isDisturbed,\n isErrored,\n isReadable,\n toUSVString,\n isUSVString,\n isBlobLike,\n parseOrigin,\n parseURL,\n getServerName,\n isStream,\n isIterable,\n isAsyncIterable,\n isDestroyed,\n headerNameToString,\n bufferToLowerCasedHeaderName,\n addListener,\n removeAllListeners,\n errorRequest,\n parseRawHeaders,\n parseHeaders,\n parseKeepAliveTimeout,\n destroy,\n bodyLength,\n deepClone,\n ReadableStreamFrom,\n isBuffer,\n validateHandler,\n getSocketInfo,\n isFormDataLike,\n buildURL,\n addAbortListener,\n isValidHTTPToken,\n isValidHeaderValue,\n isTokenCharCode,\n parseRangeHeader,\n normalizedMethodRecordsBase,\n normalizedMethodRecords,\n isValidPort,\n isHttpOrHttpsPrefixed,\n nodeMajor,\n nodeMinor,\n safeHTTPMethods: ['GET', 'HEAD', 'OPTIONS', 'TRACE'],\n wrapRequestBody\n}\n", "'use strict'\nconst diagnosticsChannel = require('node:diagnostics_channel')\nconst util = require('node:util')\n\nconst undiciDebugLog = util.debuglog('undici')\nconst fetchDebuglog = util.debuglog('fetch')\nconst websocketDebuglog = util.debuglog('websocket')\nlet isClientSet = false\nconst channels = {\n // Client\n beforeConnect: diagnosticsChannel.channel('undici:client:beforeConnect'),\n connected: diagnosticsChannel.channel('undici:client:connected'),\n connectError: diagnosticsChannel.channel('undici:client:connectError'),\n sendHeaders: diagnosticsChannel.channel('undici:client:sendHeaders'),\n // Request\n create: diagnosticsChannel.channel('undici:request:create'),\n bodySent: diagnosticsChannel.channel('undici:request:bodySent'),\n headers: diagnosticsChannel.channel('undici:request:headers'),\n trailers: diagnosticsChannel.channel('undici:request:trailers'),\n error: diagnosticsChannel.channel('undici:request:error'),\n // WebSocket\n open: diagnosticsChannel.channel('undici:websocket:open'),\n close: diagnosticsChannel.channel('undici:websocket:close'),\n socketError: diagnosticsChannel.channel('undici:websocket:socket_error'),\n ping: diagnosticsChannel.channel('undici:websocket:ping'),\n pong: diagnosticsChannel.channel('undici:websocket:pong')\n}\n\nif (undiciDebugLog.enabled || fetchDebuglog.enabled) {\n const debuglog = fetchDebuglog.enabled ? fetchDebuglog : undiciDebugLog\n\n // Track all Client events\n diagnosticsChannel.channel('undici:client:beforeConnect').subscribe(evt => {\n const {\n connectParams: { version, protocol, port, host }\n } = evt\n debuglog(\n 'connecting to %s using %s%s',\n `${host}${port ? `:${port}` : ''}`,\n protocol,\n version\n )\n })\n\n diagnosticsChannel.channel('undici:client:connected').subscribe(evt => {\n const {\n connectParams: { version, protocol, port, host }\n } = evt\n debuglog(\n 'connected to %s using %s%s',\n `${host}${port ? `:${port}` : ''}`,\n protocol,\n version\n )\n })\n\n diagnosticsChannel.channel('undici:client:connectError').subscribe(evt => {\n const {\n connectParams: { version, protocol, port, host },\n error\n } = evt\n debuglog(\n 'connection to %s using %s%s errored - %s',\n `${host}${port ? `:${port}` : ''}`,\n protocol,\n version,\n error.message\n )\n })\n\n diagnosticsChannel.channel('undici:client:sendHeaders').subscribe(evt => {\n const {\n request: { method, path, origin }\n } = evt\n debuglog('sending request to %s %s/%s', method, origin, path)\n })\n\n // Track Request events\n diagnosticsChannel.channel('undici:request:headers').subscribe(evt => {\n const {\n request: { method, path, origin },\n response: { statusCode }\n } = evt\n debuglog(\n 'received response to %s %s/%s - HTTP %d',\n method,\n origin,\n path,\n statusCode\n )\n })\n\n diagnosticsChannel.channel('undici:request:trailers').subscribe(evt => {\n const {\n request: { method, path, origin }\n } = evt\n debuglog('trailers received from %s %s/%s', method, origin, path)\n })\n\n diagnosticsChannel.channel('undici:request:error').subscribe(evt => {\n const {\n request: { method, path, origin },\n error\n } = evt\n debuglog(\n 'request to %s %s/%s errored - %s',\n method,\n origin,\n path,\n error.message\n )\n })\n\n isClientSet = true\n}\n\nif (websocketDebuglog.enabled) {\n if (!isClientSet) {\n const debuglog = undiciDebugLog.enabled ? undiciDebugLog : websocketDebuglog\n diagnosticsChannel.channel('undici:client:beforeConnect').subscribe(evt => {\n const {\n connectParams: { version, protocol, port, host }\n } = evt\n debuglog(\n 'connecting to %s%s using %s%s',\n host,\n port ? `:${port}` : '',\n protocol,\n version\n )\n })\n\n diagnosticsChannel.channel('undici:client:connected').subscribe(evt => {\n const {\n connectParams: { version, protocol, port, host }\n } = evt\n debuglog(\n 'connected to %s%s using %s%s',\n host,\n port ? `:${port}` : '',\n protocol,\n version\n )\n })\n\n diagnosticsChannel.channel('undici:client:connectError').subscribe(evt => {\n const {\n connectParams: { version, protocol, port, host },\n error\n } = evt\n debuglog(\n 'connection to %s%s using %s%s errored - %s',\n host,\n port ? `:${port}` : '',\n protocol,\n version,\n error.message\n )\n })\n\n diagnosticsChannel.channel('undici:client:sendHeaders').subscribe(evt => {\n const {\n request: { method, path, origin }\n } = evt\n debuglog('sending request to %s %s/%s', method, origin, path)\n })\n }\n\n // Track all WebSocket events\n diagnosticsChannel.channel('undici:websocket:open').subscribe(evt => {\n const {\n address: { address, port }\n } = evt\n websocketDebuglog('connection opened %s%s', address, port ? `:${port}` : '')\n })\n\n diagnosticsChannel.channel('undici:websocket:close').subscribe(evt => {\n const { websocket, code, reason } = evt\n websocketDebuglog(\n 'closed connection to %s - %s %s',\n websocket.url,\n code,\n reason\n )\n })\n\n diagnosticsChannel.channel('undici:websocket:socket_error').subscribe(err => {\n websocketDebuglog('connection errored - %s', err.message)\n })\n\n diagnosticsChannel.channel('undici:websocket:ping').subscribe(evt => {\n websocketDebuglog('ping received')\n })\n\n diagnosticsChannel.channel('undici:websocket:pong').subscribe(evt => {\n websocketDebuglog('pong received')\n })\n}\n\nmodule.exports = {\n channels\n}\n", "'use strict'\n\nconst {\n InvalidArgumentError,\n NotSupportedError\n} = require('./errors')\nconst assert = require('node:assert')\nconst {\n isValidHTTPToken,\n isValidHeaderValue,\n isStream,\n destroy,\n isBuffer,\n isFormDataLike,\n isIterable,\n isBlobLike,\n buildURL,\n validateHandler,\n getServerName,\n normalizedMethodRecords\n} = require('./util')\nconst { channels } = require('./diagnostics.js')\nconst { headerNameLowerCasedRecord } = require('./constants')\n\n// Verifies that a given path is valid does not contain control chars \\x00 to \\x20\nconst invalidPathRegex = /[^\\u0021-\\u00ff]/\n\nconst kHandler = Symbol('handler')\n\nclass Request {\n constructor (origin, {\n path,\n method,\n body,\n headers,\n query,\n idempotent,\n blocking,\n upgrade,\n headersTimeout,\n bodyTimeout,\n reset,\n throwOnError,\n expectContinue,\n servername\n }, handler) {\n if (typeof path !== 'string') {\n throw new InvalidArgumentError('path must be a string')\n } else if (\n path[0] !== '/' &&\n !(path.startsWith('http://') || path.startsWith('https://')) &&\n method !== 'CONNECT'\n ) {\n throw new InvalidArgumentError('path must be an absolute URL or start with a slash')\n } else if (invalidPathRegex.test(path)) {\n throw new InvalidArgumentError('invalid request path')\n }\n\n if (typeof method !== 'string') {\n throw new InvalidArgumentError('method must be a string')\n } else if (normalizedMethodRecords[method] === undefined && !isValidHTTPToken(method)) {\n throw new InvalidArgumentError('invalid request method')\n }\n\n if (upgrade && typeof upgrade !== 'string') {\n throw new InvalidArgumentError('upgrade must be a string')\n }\n\n if (upgrade && !isValidHeaderValue(upgrade)) {\n throw new InvalidArgumentError('invalid upgrade header')\n }\n\n if (headersTimeout != null && (!Number.isFinite(headersTimeout) || headersTimeout < 0)) {\n throw new InvalidArgumentError('invalid headersTimeout')\n }\n\n if (bodyTimeout != null && (!Number.isFinite(bodyTimeout) || bodyTimeout < 0)) {\n throw new InvalidArgumentError('invalid bodyTimeout')\n }\n\n if (reset != null && typeof reset !== 'boolean') {\n throw new InvalidArgumentError('invalid reset')\n }\n\n if (expectContinue != null && typeof expectContinue !== 'boolean') {\n throw new InvalidArgumentError('invalid expectContinue')\n }\n\n this.headersTimeout = headersTimeout\n\n this.bodyTimeout = bodyTimeout\n\n this.throwOnError = throwOnError === true\n\n this.method = method\n\n this.abort = null\n\n if (body == null) {\n this.body = null\n } else if (isStream(body)) {\n this.body = body\n\n const rState = this.body._readableState\n if (!rState || !rState.autoDestroy) {\n this.endHandler = function autoDestroy () {\n destroy(this)\n }\n this.body.on('end', this.endHandler)\n }\n\n this.errorHandler = err => {\n if (this.abort) {\n this.abort(err)\n } else {\n this.error = err\n }\n }\n this.body.on('error', this.errorHandler)\n } else if (isBuffer(body)) {\n this.body = body.byteLength ? body : null\n } else if (ArrayBuffer.isView(body)) {\n this.body = body.buffer.byteLength ? Buffer.from(body.buffer, body.byteOffset, body.byteLength) : null\n } else if (body instanceof ArrayBuffer) {\n this.body = body.byteLength ? Buffer.from(body) : null\n } else if (typeof body === 'string') {\n this.body = body.length ? Buffer.from(body) : null\n } else if (isFormDataLike(body) || isIterable(body) || isBlobLike(body)) {\n this.body = body\n } else {\n throw new InvalidArgumentError('body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable')\n }\n\n this.completed = false\n\n this.aborted = false\n\n this.upgrade = upgrade || null\n\n this.path = query ? buildURL(path, query) : path\n\n this.origin = origin\n\n this.idempotent = idempotent == null\n ? method === 'HEAD' || method === 'GET'\n : idempotent\n\n this.blocking = blocking == null ? false : blocking\n\n this.reset = reset == null ? null : reset\n\n this.host = null\n\n this.contentLength = null\n\n this.contentType = null\n\n this.headers = []\n\n // Only for H2\n this.expectContinue = expectContinue != null ? expectContinue : false\n\n if (Array.isArray(headers)) {\n if (headers.length % 2 !== 0) {\n throw new InvalidArgumentError('headers array must be even')\n }\n for (let i = 0; i < headers.length; i += 2) {\n processHeader(this, headers[i], headers[i + 1])\n }\n } else if (headers && typeof headers === 'object') {\n if (headers[Symbol.iterator]) {\n for (const header of headers) {\n if (!Array.isArray(header) || header.length !== 2) {\n throw new InvalidArgumentError('headers must be in key-value pair format')\n }\n processHeader(this, header[0], header[1])\n }\n } else {\n const keys = Object.keys(headers)\n for (let i = 0; i < keys.length; ++i) {\n processHeader(this, keys[i], headers[keys[i]])\n }\n }\n } else if (headers != null) {\n throw new InvalidArgumentError('headers must be an object or an array')\n }\n\n validateHandler(handler, method, upgrade)\n\n this.servername = servername || getServerName(this.host)\n\n this[kHandler] = handler\n\n if (channels.create.hasSubscribers) {\n channels.create.publish({ request: this })\n }\n }\n\n onBodySent (chunk) {\n if (this[kHandler].onBodySent) {\n try {\n return this[kHandler].onBodySent(chunk)\n } catch (err) {\n this.abort(err)\n }\n }\n }\n\n onRequestSent () {\n if (channels.bodySent.hasSubscribers) {\n channels.bodySent.publish({ request: this })\n }\n\n if (this[kHandler].onRequestSent) {\n try {\n return this[kHandler].onRequestSent()\n } catch (err) {\n this.abort(err)\n }\n }\n }\n\n onConnect (abort) {\n assert(!this.aborted)\n assert(!this.completed)\n\n if (this.error) {\n abort(this.error)\n } else {\n this.abort = abort\n return this[kHandler].onConnect(abort)\n }\n }\n\n onResponseStarted () {\n return this[kHandler].onResponseStarted?.()\n }\n\n onHeaders (statusCode, headers, resume, statusText) {\n assert(!this.aborted)\n assert(!this.completed)\n\n if (channels.headers.hasSubscribers) {\n channels.headers.publish({ request: this, response: { statusCode, headers, statusText } })\n }\n\n try {\n return this[kHandler].onHeaders(statusCode, headers, resume, statusText)\n } catch (err) {\n this.abort(err)\n }\n }\n\n onData (chunk) {\n assert(!this.aborted)\n assert(!this.completed)\n\n try {\n return this[kHandler].onData(chunk)\n } catch (err) {\n this.abort(err)\n return false\n }\n }\n\n onUpgrade (statusCode, headers, socket) {\n assert(!this.aborted)\n assert(!this.completed)\n\n return this[kHandler].onUpgrade(statusCode, headers, socket)\n }\n\n onComplete (trailers) {\n this.onFinally()\n\n assert(!this.aborted)\n\n this.completed = true\n if (channels.trailers.hasSubscribers) {\n channels.trailers.publish({ request: this, trailers })\n }\n\n try {\n return this[kHandler].onComplete(trailers)\n } catch (err) {\n // TODO (fix): This might be a bad idea?\n this.onError(err)\n }\n }\n\n onError (error) {\n this.onFinally()\n\n if (channels.error.hasSubscribers) {\n channels.error.publish({ request: this, error })\n }\n\n if (this.aborted) {\n return\n }\n this.aborted = true\n\n return this[kHandler].onError(error)\n }\n\n onFinally () {\n if (this.errorHandler) {\n this.body.off('error', this.errorHandler)\n this.errorHandler = null\n }\n\n if (this.endHandler) {\n this.body.off('end', this.endHandler)\n this.endHandler = null\n }\n }\n\n addHeader (key, value) {\n processHeader(this, key, value)\n return this\n }\n}\n\nfunction processHeader (request, key, val) {\n if (val && (typeof val === 'object' && !Array.isArray(val))) {\n throw new InvalidArgumentError(`invalid ${key} header`)\n } else if (val === undefined) {\n return\n }\n\n let headerName = headerNameLowerCasedRecord[key]\n\n if (headerName === undefined) {\n headerName = key.toLowerCase()\n if (headerNameLowerCasedRecord[headerName] === undefined && !isValidHTTPToken(headerName)) {\n throw new InvalidArgumentError('invalid header key')\n }\n }\n\n if (Array.isArray(val)) {\n const arr = []\n for (let i = 0; i < val.length; i++) {\n if (typeof val[i] === 'string') {\n if (!isValidHeaderValue(val[i])) {\n throw new InvalidArgumentError(`invalid ${key} header`)\n }\n arr.push(val[i])\n } else if (val[i] === null) {\n arr.push('')\n } else if (typeof val[i] === 'object') {\n throw new InvalidArgumentError(`invalid ${key} header`)\n } else {\n // Coerce primitives (and reject unsafe coercions such as functions\n // with a crafted toString/Symbol.toPrimitive).\n const str = `${val[i]}`\n if (!isValidHeaderValue(str)) {\n throw new InvalidArgumentError(`invalid ${key} header`)\n }\n arr.push(str)\n }\n }\n val = arr\n } else if (typeof val === 'string') {\n if (!isValidHeaderValue(val)) {\n throw new InvalidArgumentError(`invalid ${key} header`)\n }\n } else if (val === null) {\n val = ''\n } else {\n // Coerce primitives (and reject unsafe coercions such as functions\n // with a crafted toString/Symbol.toPrimitive).\n val = `${val}`\n if (!isValidHeaderValue(val)) {\n throw new InvalidArgumentError(`invalid ${key} header`)\n }\n }\n\n if (headerName === 'host') {\n if (request.host !== null) {\n throw new InvalidArgumentError('duplicate host header')\n }\n if (typeof val !== 'string') {\n throw new InvalidArgumentError('invalid host header')\n }\n // Consumed by Client\n request.host = val\n } else if (headerName === 'content-length') {\n if (request.contentLength !== null) {\n throw new InvalidArgumentError('duplicate content-length header')\n }\n request.contentLength = parseInt(val, 10)\n if (!Number.isFinite(request.contentLength)) {\n throw new InvalidArgumentError('invalid content-length header')\n }\n } else if (request.contentType === null && headerName === 'content-type') {\n request.contentType = val\n request.headers.push(key, val)\n } else if (headerName === 'transfer-encoding' || headerName === 'keep-alive' || headerName === 'upgrade') {\n throw new InvalidArgumentError(`invalid ${headerName} header`)\n } else if (headerName === 'connection') {\n const value = typeof val === 'string' ? val.toLowerCase() : null\n if (value !== 'close' && value !== 'keep-alive') {\n throw new InvalidArgumentError('invalid connection header')\n }\n\n if (value === 'close') {\n request.reset = true\n }\n } else if (headerName === 'expect') {\n throw new NotSupportedError('expect header not supported')\n } else {\n request.headers.push(key, val)\n }\n}\n\nmodule.exports = Request\n", "'use strict'\nconst EventEmitter = require('node:events')\n\nclass Dispatcher extends EventEmitter {\n dispatch () {\n throw new Error('not implemented')\n }\n\n close () {\n throw new Error('not implemented')\n }\n\n destroy () {\n throw new Error('not implemented')\n }\n\n compose (...args) {\n // So we handle [interceptor1, interceptor2] or interceptor1, interceptor2, ...\n const interceptors = Array.isArray(args[0]) ? args[0] : args\n let dispatch = this.dispatch.bind(this)\n\n for (const interceptor of interceptors) {\n if (interceptor == null) {\n continue\n }\n\n if (typeof interceptor !== 'function') {\n throw new TypeError(`invalid interceptor, expected function received ${typeof interceptor}`)\n }\n\n dispatch = interceptor(dispatch)\n\n if (dispatch == null || typeof dispatch !== 'function' || dispatch.length !== 2) {\n throw new TypeError('invalid interceptor')\n }\n }\n\n return new ComposedDispatcher(this, dispatch)\n }\n}\n\nclass ComposedDispatcher extends Dispatcher {\n #dispatcher = null\n #dispatch = null\n\n constructor (dispatcher, dispatch) {\n super()\n this.#dispatcher = dispatcher\n this.#dispatch = dispatch\n }\n\n dispatch (...args) {\n this.#dispatch(...args)\n }\n\n close (...args) {\n return this.#dispatcher.close(...args)\n }\n\n destroy (...args) {\n return this.#dispatcher.destroy(...args)\n }\n}\n\nmodule.exports = Dispatcher\n", "'use strict'\n\nconst Dispatcher = require('./dispatcher')\nconst {\n ClientDestroyedError,\n ClientClosedError,\n InvalidArgumentError\n} = require('../core/errors')\nconst { kDestroy, kClose, kClosed, kDestroyed, kDispatch, kInterceptors } = require('../core/symbols')\n\nconst kOnDestroyed = Symbol('onDestroyed')\nconst kOnClosed = Symbol('onClosed')\nconst kInterceptedDispatch = Symbol('Intercepted Dispatch')\nconst kWebSocketOptions = Symbol('webSocketOptions')\n\nclass DispatcherBase extends Dispatcher {\n constructor (opts) {\n super()\n\n this[kDestroyed] = false\n this[kOnDestroyed] = null\n this[kClosed] = false\n this[kOnClosed] = []\n this[kWebSocketOptions] = opts?.webSocket ?? {}\n }\n\n get webSocketOptions () {\n return {\n maxFragments: this[kWebSocketOptions].maxFragments ?? 131072,\n maxPayloadSize: this[kWebSocketOptions].maxPayloadSize ?? 128 * 1024 * 1024\n }\n }\n\n get destroyed () {\n return this[kDestroyed]\n }\n\n get closed () {\n return this[kClosed]\n }\n\n get interceptors () {\n return this[kInterceptors]\n }\n\n set interceptors (newInterceptors) {\n if (newInterceptors) {\n for (let i = newInterceptors.length - 1; i >= 0; i--) {\n const interceptor = this[kInterceptors][i]\n if (typeof interceptor !== 'function') {\n throw new InvalidArgumentError('interceptor must be an function')\n }\n }\n }\n\n this[kInterceptors] = newInterceptors\n }\n\n close (callback) {\n if (callback === undefined) {\n return new Promise((resolve, reject) => {\n this.close((err, data) => {\n return err ? reject(err) : resolve(data)\n })\n })\n }\n\n if (typeof callback !== 'function') {\n throw new InvalidArgumentError('invalid callback')\n }\n\n if (this[kDestroyed]) {\n queueMicrotask(() => callback(new ClientDestroyedError(), null))\n return\n }\n\n if (this[kClosed]) {\n if (this[kOnClosed]) {\n this[kOnClosed].push(callback)\n } else {\n queueMicrotask(() => callback(null, null))\n }\n return\n }\n\n this[kClosed] = true\n this[kOnClosed].push(callback)\n\n const onClosed = () => {\n const callbacks = this[kOnClosed]\n this[kOnClosed] = null\n for (let i = 0; i < callbacks.length; i++) {\n callbacks[i](null, null)\n }\n }\n\n // Should not error.\n this[kClose]()\n .then(() => this.destroy())\n .then(() => {\n queueMicrotask(onClosed)\n })\n }\n\n destroy (err, callback) {\n if (typeof err === 'function') {\n callback = err\n err = null\n }\n\n if (callback === undefined) {\n return new Promise((resolve, reject) => {\n this.destroy(err, (err, data) => {\n return err ? /* istanbul ignore next: should never error */ reject(err) : resolve(data)\n })\n })\n }\n\n if (typeof callback !== 'function') {\n throw new InvalidArgumentError('invalid callback')\n }\n\n if (this[kDestroyed]) {\n if (this[kOnDestroyed]) {\n this[kOnDestroyed].push(callback)\n } else {\n queueMicrotask(() => callback(null, null))\n }\n return\n }\n\n if (!err) {\n err = new ClientDestroyedError()\n }\n\n this[kDestroyed] = true\n this[kOnDestroyed] = this[kOnDestroyed] || []\n this[kOnDestroyed].push(callback)\n\n const onDestroyed = () => {\n const callbacks = this[kOnDestroyed]\n this[kOnDestroyed] = null\n for (let i = 0; i < callbacks.length; i++) {\n callbacks[i](null, null)\n }\n }\n\n // Should not error.\n this[kDestroy](err).then(() => {\n queueMicrotask(onDestroyed)\n })\n }\n\n [kInterceptedDispatch] (opts, handler) {\n if (!this[kInterceptors] || this[kInterceptors].length === 0) {\n this[kInterceptedDispatch] = this[kDispatch]\n return this[kDispatch](opts, handler)\n }\n\n let dispatch = this[kDispatch].bind(this)\n for (let i = this[kInterceptors].length - 1; i >= 0; i--) {\n dispatch = this[kInterceptors][i](dispatch)\n }\n this[kInterceptedDispatch] = dispatch\n return dispatch(opts, handler)\n }\n\n dispatch (opts, handler) {\n if (!handler || typeof handler !== 'object') {\n throw new InvalidArgumentError('handler must be an object')\n }\n\n try {\n if (!opts || typeof opts !== 'object') {\n throw new InvalidArgumentError('opts must be an object.')\n }\n\n if (this[kDestroyed] || this[kOnDestroyed]) {\n throw new ClientDestroyedError()\n }\n\n if (this[kClosed]) {\n throw new ClientClosedError()\n }\n\n return this[kInterceptedDispatch](opts, handler)\n } catch (err) {\n if (typeof handler.onError !== 'function') {\n throw new InvalidArgumentError('invalid onError method')\n }\n\n handler.onError(err)\n\n return false\n }\n }\n}\n\nmodule.exports = DispatcherBase\n", "'use strict'\n\n/**\n * This module offers an optimized timer implementation designed for scenarios\n * where high precision is not critical.\n *\n * The timer achieves faster performance by using a low-resolution approach,\n * with an accuracy target of within 500ms. This makes it particularly useful\n * for timers with delays of 1 second or more, where exact timing is less\n * crucial.\n *\n * It's important to note that Node.js timers are inherently imprecise, as\n * delays can occur due to the event loop being blocked by other operations.\n * Consequently, timers may trigger later than their scheduled time.\n */\n\n/**\n * The fastNow variable contains the internal fast timer clock value.\n *\n * @type {number}\n */\nlet fastNow = 0\n\n/**\n * RESOLUTION_MS represents the target resolution time in milliseconds.\n *\n * @type {number}\n * @default 1000\n */\nconst RESOLUTION_MS = 1e3\n\n/**\n * TICK_MS defines the desired interval in milliseconds between each tick.\n * The target value is set to half the resolution time, minus 1 ms, to account\n * for potential event loop overhead.\n *\n * @type {number}\n * @default 499\n */\nconst TICK_MS = (RESOLUTION_MS >> 1) - 1\n\n/**\n * fastNowTimeout is a Node.js timer used to manage and process\n * the FastTimers stored in the `fastTimers` array.\n *\n * @type {NodeJS.Timeout}\n */\nlet fastNowTimeout\n\n/**\n * The kFastTimer symbol is used to identify FastTimer instances.\n *\n * @type {Symbol}\n */\nconst kFastTimer = Symbol('kFastTimer')\n\n/**\n * The fastTimers array contains all active FastTimers.\n *\n * @type {FastTimer[]}\n */\nconst fastTimers = []\n\n/**\n * These constants represent the various states of a FastTimer.\n */\n\n/**\n * The `NOT_IN_LIST` constant indicates that the FastTimer is not included\n * in the `fastTimers` array. Timers with this status will not be processed\n * during the next tick by the `onTick` function.\n *\n * A FastTimer can be re-added to the `fastTimers` array by invoking the\n * `refresh` method on the FastTimer instance.\n *\n * @type {-2}\n */\nconst NOT_IN_LIST = -2\n\n/**\n * The `TO_BE_CLEARED` constant indicates that the FastTimer is scheduled\n * for removal from the `fastTimers` array. A FastTimer in this state will\n * be removed in the next tick by the `onTick` function and will no longer\n * be processed.\n *\n * This status is also set when the `clear` method is called on the FastTimer instance.\n *\n * @type {-1}\n */\nconst TO_BE_CLEARED = -1\n\n/**\n * The `PENDING` constant signifies that the FastTimer is awaiting processing\n * in the next tick by the `onTick` function. Timers with this status will have\n * their `_idleStart` value set and their status updated to `ACTIVE` in the next tick.\n *\n * @type {0}\n */\nconst PENDING = 0\n\n/**\n * The `ACTIVE` constant indicates that the FastTimer is active and waiting\n * for its timer to expire. During the next tick, the `onTick` function will\n * check if the timer has expired, and if so, it will execute the associated callback.\n *\n * @type {1}\n */\nconst ACTIVE = 1\n\n/**\n * The onTick function processes the fastTimers array.\n *\n * @returns {void}\n */\nfunction onTick () {\n /**\n * Increment the fastNow value by the TICK_MS value, despite the actual time\n * that has passed since the last tick. This approach ensures independence\n * from the system clock and delays caused by a blocked event loop.\n *\n * @type {number}\n */\n fastNow += TICK_MS\n\n /**\n * The `idx` variable is used to iterate over the `fastTimers` array.\n * Expired timers are removed by replacing them with the last element in the array.\n * Consequently, `idx` is only incremented when the current element is not removed.\n *\n * @type {number}\n */\n let idx = 0\n\n /**\n * The len variable will contain the length of the fastTimers array\n * and will be decremented when a FastTimer should be removed from the\n * fastTimers array.\n *\n * @type {number}\n */\n let len = fastTimers.length\n\n while (idx < len) {\n /**\n * @type {FastTimer}\n */\n const timer = fastTimers[idx]\n\n // If the timer is in the ACTIVE state and the timer has expired, it will\n // be processed in the next tick.\n if (timer._state === PENDING) {\n // Set the _idleStart value to the fastNow value minus the TICK_MS value\n // to account for the time the timer was in the PENDING state.\n timer._idleStart = fastNow - TICK_MS\n timer._state = ACTIVE\n } else if (\n timer._state === ACTIVE &&\n fastNow >= timer._idleStart + timer._idleTimeout\n ) {\n timer._state = TO_BE_CLEARED\n timer._idleStart = -1\n timer._onTimeout(timer._timerArg)\n }\n\n if (timer._state === TO_BE_CLEARED) {\n timer._state = NOT_IN_LIST\n\n // Move the last element to the current index and decrement len if it is\n // not the only element in the array.\n if (--len !== 0) {\n fastTimers[idx] = fastTimers[len]\n }\n } else {\n ++idx\n }\n }\n\n // Set the length of the fastTimers array to the new length and thus\n // removing the excess FastTimers elements from the array.\n fastTimers.length = len\n\n // If there are still active FastTimers in the array, refresh the Timer.\n // If there are no active FastTimers, the timer will be refreshed again\n // when a new FastTimer is instantiated.\n if (fastTimers.length !== 0) {\n refreshTimeout()\n }\n}\n\nfunction refreshTimeout () {\n // If the fastNowTimeout is already set, refresh it.\n if (fastNowTimeout) {\n fastNowTimeout.refresh()\n // fastNowTimeout is not instantiated yet, create a new Timer.\n } else {\n clearTimeout(fastNowTimeout)\n fastNowTimeout = setTimeout(onTick, TICK_MS)\n\n // If the Timer has an unref method, call it to allow the process to exit if\n // there are no other active handles.\n if (fastNowTimeout.unref) {\n fastNowTimeout.unref()\n }\n }\n}\n\n/**\n * The `FastTimer` class is a data structure designed to store and manage\n * timer information.\n */\nclass FastTimer {\n [kFastTimer] = true\n\n /**\n * The state of the timer, which can be one of the following:\n * - NOT_IN_LIST (-2)\n * - TO_BE_CLEARED (-1)\n * - PENDING (0)\n * - ACTIVE (1)\n *\n * @type {-2|-1|0|1}\n * @private\n */\n _state = NOT_IN_LIST\n\n /**\n * The number of milliseconds to wait before calling the callback.\n *\n * @type {number}\n * @private\n */\n _idleTimeout = -1\n\n /**\n * The time in milliseconds when the timer was started. This value is used to\n * calculate when the timer should expire.\n *\n * @type {number}\n * @default -1\n * @private\n */\n _idleStart = -1\n\n /**\n * The function to be executed when the timer expires.\n * @type {Function}\n * @private\n */\n _onTimeout\n\n /**\n * The argument to be passed to the callback when the timer expires.\n *\n * @type {*}\n * @private\n */\n _timerArg\n\n /**\n * @constructor\n * @param {Function} callback A function to be executed after the timer\n * expires.\n * @param {number} delay The time, in milliseconds that the timer should wait\n * before the specified function or code is executed.\n * @param {*} arg\n */\n constructor (callback, delay, arg) {\n this._onTimeout = callback\n this._idleTimeout = delay\n this._timerArg = arg\n\n this.refresh()\n }\n\n /**\n * Sets the timer's start time to the current time, and reschedules the timer\n * to call its callback at the previously specified duration adjusted to the\n * current time.\n * Using this on a timer that has already called its callback will reactivate\n * the timer.\n *\n * @returns {void}\n */\n refresh () {\n // In the special case that the timer is not in the list of active timers,\n // add it back to the array to be processed in the next tick by the onTick\n // function.\n if (this._state === NOT_IN_LIST) {\n fastTimers.push(this)\n }\n\n // If the timer is the only active timer, refresh the fastNowTimeout for\n // better resolution.\n if (!fastNowTimeout || fastTimers.length === 1) {\n refreshTimeout()\n }\n\n // Setting the state to PENDING will cause the timer to be reset in the\n // next tick by the onTick function.\n this._state = PENDING\n }\n\n /**\n * The `clear` method cancels the timer, preventing it from executing.\n *\n * @returns {void}\n * @private\n */\n clear () {\n // Set the state to TO_BE_CLEARED to mark the timer for removal in the next\n // tick by the onTick function.\n this._state = TO_BE_CLEARED\n\n // Reset the _idleStart value to -1 to indicate that the timer is no longer\n // active.\n this._idleStart = -1\n }\n}\n\n/**\n * This module exports a setTimeout and clearTimeout function that can be\n * used as a drop-in replacement for the native functions.\n */\nmodule.exports = {\n /**\n * The setTimeout() method sets a timer which executes a function once the\n * timer expires.\n * @param {Function} callback A function to be executed after the timer\n * expires.\n * @param {number} delay The time, in milliseconds that the timer should\n * wait before the specified function or code is executed.\n * @param {*} [arg] An optional argument to be passed to the callback function\n * when the timer expires.\n * @returns {NodeJS.Timeout|FastTimer}\n */\n setTimeout (callback, delay, arg) {\n // If the delay is less than or equal to the RESOLUTION_MS value return a\n // native Node.js Timer instance.\n return delay <= RESOLUTION_MS\n ? setTimeout(callback, delay, arg)\n : new FastTimer(callback, delay, arg)\n },\n /**\n * The clearTimeout method cancels an instantiated Timer previously created\n * by calling setTimeout.\n *\n * @param {NodeJS.Timeout|FastTimer} timeout\n */\n clearTimeout (timeout) {\n // If the timeout is a FastTimer, call its own clear method.\n if (timeout[kFastTimer]) {\n /**\n * @type {FastTimer}\n */\n timeout.clear()\n // Otherwise it is an instance of a native NodeJS.Timeout, so call the\n // Node.js native clearTimeout function.\n } else {\n clearTimeout(timeout)\n }\n },\n /**\n * The setFastTimeout() method sets a fastTimer which executes a function once\n * the timer expires.\n * @param {Function} callback A function to be executed after the timer\n * expires.\n * @param {number} delay The time, in milliseconds that the timer should\n * wait before the specified function or code is executed.\n * @param {*} [arg] An optional argument to be passed to the callback function\n * when the timer expires.\n * @returns {FastTimer}\n */\n setFastTimeout (callback, delay, arg) {\n return new FastTimer(callback, delay, arg)\n },\n /**\n * The clearTimeout method cancels an instantiated FastTimer previously\n * created by calling setFastTimeout.\n *\n * @param {FastTimer} timeout\n */\n clearFastTimeout (timeout) {\n timeout.clear()\n },\n /**\n * The now method returns the value of the internal fast timer clock.\n *\n * @returns {number}\n */\n now () {\n return fastNow\n },\n /**\n * Trigger the onTick function to process the fastTimers array.\n * Exported for testing purposes only.\n * Marking as deprecated to discourage any use outside of testing.\n * @deprecated\n * @param {number} [delay=0] The delay in milliseconds to add to the now value.\n */\n tick (delay = 0) {\n fastNow += delay - RESOLUTION_MS + 1\n onTick()\n onTick()\n },\n /**\n * Reset FastTimers.\n * Exported for testing purposes only.\n * Marking as deprecated to discourage any use outside of testing.\n * @deprecated\n */\n reset () {\n fastNow = 0\n fastTimers.length = 0\n clearTimeout(fastNowTimeout)\n fastNowTimeout = null\n },\n /**\n * Exporting for testing purposes only.\n * Marking as deprecated to discourage any use outside of testing.\n * @deprecated\n */\n kFastTimer\n}\n", "'use strict'\n\nconst net = require('node:net')\nconst assert = require('node:assert')\nconst util = require('./util')\nconst { InvalidArgumentError, ConnectTimeoutError } = require('./errors')\nconst timers = require('../util/timers')\n\nfunction noop () {}\n\nlet tls // include tls conditionally since it is not always available\n\n// TODO: session re-use does not wait for the first\n// connection to resolve the session and might therefore\n// resolve the same servername multiple times even when\n// re-use is enabled.\n\nlet SessionCache\n// FIXME: remove workaround when the Node bug is fixed\n// https://github.com/nodejs/node/issues/49344#issuecomment-1741776308\nif (global.FinalizationRegistry && !(process.env.NODE_V8_COVERAGE || process.env.UNDICI_NO_FG)) {\n SessionCache = class WeakSessionCache {\n constructor (maxCachedSessions) {\n this._maxCachedSessions = maxCachedSessions\n this._sessionCache = new Map()\n this._sessionRegistry = new global.FinalizationRegistry((key) => {\n if (this._sessionCache.size < this._maxCachedSessions) {\n return\n }\n\n const ref = this._sessionCache.get(key)\n if (ref !== undefined && ref.deref() === undefined) {\n this._sessionCache.delete(key)\n }\n })\n }\n\n get (sessionKey) {\n const ref = this._sessionCache.get(sessionKey)\n return ref ? ref.deref() : null\n }\n\n set (sessionKey, session) {\n if (this._maxCachedSessions === 0) {\n return\n }\n\n this._sessionCache.set(sessionKey, new WeakRef(session))\n this._sessionRegistry.register(session, sessionKey)\n }\n }\n} else {\n SessionCache = class SimpleSessionCache {\n constructor (maxCachedSessions) {\n this._maxCachedSessions = maxCachedSessions\n this._sessionCache = new Map()\n }\n\n get (sessionKey) {\n return this._sessionCache.get(sessionKey)\n }\n\n set (sessionKey, session) {\n if (this._maxCachedSessions === 0) {\n return\n }\n\n if (this._sessionCache.size >= this._maxCachedSessions) {\n // remove the oldest session\n const { value: oldestKey } = this._sessionCache.keys().next()\n this._sessionCache.delete(oldestKey)\n }\n\n this._sessionCache.set(sessionKey, session)\n }\n }\n}\n\nfunction buildConnector ({ allowH2, maxCachedSessions, socketPath, timeout, session: customSession, ...opts }) {\n if (maxCachedSessions != null && (!Number.isInteger(maxCachedSessions) || maxCachedSessions < 0)) {\n throw new InvalidArgumentError('maxCachedSessions must be a positive integer or zero')\n }\n\n const options = { path: socketPath, ...opts }\n const sessionCache = new SessionCache(maxCachedSessions == null ? 100 : maxCachedSessions)\n timeout = timeout == null ? 10e3 : timeout\n allowH2 = allowH2 != null ? allowH2 : false\n return function connect ({ hostname, host, protocol, port, servername, localAddress, httpSocket }, callback) {\n let socket\n if (protocol === 'https:') {\n if (!tls) {\n tls = require('node:tls')\n }\n servername = servername || options.servername || util.getServerName(host) || null\n\n const sessionKey = servername || hostname\n assert(sessionKey)\n\n const session = customSession || sessionCache.get(sessionKey) || null\n\n port = port || 443\n\n socket = tls.connect({\n highWaterMark: 16384, // TLS in node can't have bigger HWM anyway...\n ...options,\n servername,\n session,\n localAddress,\n // TODO(HTTP/2): Add support for h2c\n ALPNProtocols: allowH2 ? ['http/1.1', 'h2'] : ['http/1.1'],\n socket: httpSocket, // upgrade socket connection\n port,\n host: hostname\n })\n\n socket\n .on('session', function (session) {\n // TODO (fix): Can a session become invalid once established? Don't think so?\n sessionCache.set(sessionKey, session)\n })\n } else {\n assert(!httpSocket, 'httpSocket can only be sent on TLS update')\n\n port = port || 80\n\n socket = net.connect({\n highWaterMark: 64 * 1024, // Same as nodejs fs streams.\n ...options,\n localAddress,\n port,\n host: hostname\n })\n }\n\n // Set TCP keep alive options on the socket here instead of in connect() for the case of assigning the socket\n if (options.keepAlive == null || options.keepAlive) {\n const keepAliveInitialDelay = options.keepAliveInitialDelay === undefined ? 60e3 : options.keepAliveInitialDelay\n socket.setKeepAlive(true, keepAliveInitialDelay)\n }\n\n const clearConnectTimeout = setupConnectTimeout(new WeakRef(socket), { timeout, hostname, port })\n\n socket\n .setNoDelay(true)\n .once(protocol === 'https:' ? 'secureConnect' : 'connect', function () {\n queueMicrotask(clearConnectTimeout)\n\n if (callback) {\n const cb = callback\n callback = null\n cb(null, this)\n }\n })\n .on('error', function (err) {\n queueMicrotask(clearConnectTimeout)\n\n if (callback) {\n const cb = callback\n callback = null\n cb(err)\n }\n })\n\n return socket\n }\n}\n\n/**\n * @param {WeakRef} socketWeakRef\n * @param {object} opts\n * @param {number} opts.timeout\n * @param {string} opts.hostname\n * @param {number} opts.port\n * @returns {() => void}\n */\nconst setupConnectTimeout = process.platform === 'win32'\n ? (socketWeakRef, opts) => {\n if (!opts.timeout) {\n return noop\n }\n\n let s1 = null\n let s2 = null\n const fastTimer = timers.setFastTimeout(() => {\n // setImmediate is added to make sure that we prioritize socket error events over timeouts\n s1 = setImmediate(() => {\n // Windows needs an extra setImmediate probably due to implementation differences in the socket logic\n s2 = setImmediate(() => onConnectTimeout(socketWeakRef.deref(), opts))\n })\n }, opts.timeout)\n return () => {\n timers.clearFastTimeout(fastTimer)\n clearImmediate(s1)\n clearImmediate(s2)\n }\n }\n : (socketWeakRef, opts) => {\n if (!opts.timeout) {\n return noop\n }\n\n let s1 = null\n const fastTimer = timers.setFastTimeout(() => {\n // setImmediate is added to make sure that we prioritize socket error events over timeouts\n s1 = setImmediate(() => {\n onConnectTimeout(socketWeakRef.deref(), opts)\n })\n }, opts.timeout)\n return () => {\n timers.clearFastTimeout(fastTimer)\n clearImmediate(s1)\n }\n }\n\n/**\n * @param {net.Socket} socket\n * @param {object} opts\n * @param {number} opts.timeout\n * @param {string} opts.hostname\n * @param {number} opts.port\n */\nfunction onConnectTimeout (socket, opts) {\n // The socket could be already garbage collected\n if (socket == null) {\n return\n }\n\n let message = 'Connect Timeout Error'\n if (Array.isArray(socket.autoSelectFamilyAttemptedAddresses)) {\n message += ` (attempted addresses: ${socket.autoSelectFamilyAttemptedAddresses.join(', ')},`\n } else {\n message += ` (attempted address: ${opts.hostname}:${opts.port},`\n }\n\n message += ` timeout: ${opts.timeout}ms)`\n\n util.destroy(socket, new ConnectTimeoutError(message))\n}\n\nmodule.exports = buildConnector\n", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.enumToMap = void 0;\nfunction enumToMap(obj) {\n const res = {};\n Object.keys(obj).forEach((key) => {\n const value = obj[key];\n if (typeof value === 'number') {\n res[key] = value;\n }\n });\n return res;\n}\nexports.enumToMap = enumToMap;\n//# sourceMappingURL=utils.js.map", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.SPECIAL_HEADERS = exports.HEADER_STATE = exports.MINOR = exports.MAJOR = exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS = exports.TOKEN = exports.STRICT_TOKEN = exports.HEX = exports.URL_CHAR = exports.STRICT_URL_CHAR = exports.USERINFO_CHARS = exports.MARK = exports.ALPHANUM = exports.NUM = exports.HEX_MAP = exports.NUM_MAP = exports.ALPHA = exports.FINISH = exports.H_METHOD_MAP = exports.METHOD_MAP = exports.METHODS_RTSP = exports.METHODS_ICE = exports.METHODS_HTTP = exports.METHODS = exports.LENIENT_FLAGS = exports.FLAGS = exports.TYPE = exports.ERROR = void 0;\nconst utils_1 = require(\"./utils\");\n// C headers\nvar ERROR;\n(function (ERROR) {\n ERROR[ERROR[\"OK\"] = 0] = \"OK\";\n ERROR[ERROR[\"INTERNAL\"] = 1] = \"INTERNAL\";\n ERROR[ERROR[\"STRICT\"] = 2] = \"STRICT\";\n ERROR[ERROR[\"LF_EXPECTED\"] = 3] = \"LF_EXPECTED\";\n ERROR[ERROR[\"UNEXPECTED_CONTENT_LENGTH\"] = 4] = \"UNEXPECTED_CONTENT_LENGTH\";\n ERROR[ERROR[\"CLOSED_CONNECTION\"] = 5] = \"CLOSED_CONNECTION\";\n ERROR[ERROR[\"INVALID_METHOD\"] = 6] = \"INVALID_METHOD\";\n ERROR[ERROR[\"INVALID_URL\"] = 7] = \"INVALID_URL\";\n ERROR[ERROR[\"INVALID_CONSTANT\"] = 8] = \"INVALID_CONSTANT\";\n ERROR[ERROR[\"INVALID_VERSION\"] = 9] = \"INVALID_VERSION\";\n ERROR[ERROR[\"INVALID_HEADER_TOKEN\"] = 10] = \"INVALID_HEADER_TOKEN\";\n ERROR[ERROR[\"INVALID_CONTENT_LENGTH\"] = 11] = \"INVALID_CONTENT_LENGTH\";\n ERROR[ERROR[\"INVALID_CHUNK_SIZE\"] = 12] = \"INVALID_CHUNK_SIZE\";\n ERROR[ERROR[\"INVALID_STATUS\"] = 13] = \"INVALID_STATUS\";\n ERROR[ERROR[\"INVALID_EOF_STATE\"] = 14] = \"INVALID_EOF_STATE\";\n ERROR[ERROR[\"INVALID_TRANSFER_ENCODING\"] = 15] = \"INVALID_TRANSFER_ENCODING\";\n ERROR[ERROR[\"CB_MESSAGE_BEGIN\"] = 16] = \"CB_MESSAGE_BEGIN\";\n ERROR[ERROR[\"CB_HEADERS_COMPLETE\"] = 17] = \"CB_HEADERS_COMPLETE\";\n ERROR[ERROR[\"CB_MESSAGE_COMPLETE\"] = 18] = \"CB_MESSAGE_COMPLETE\";\n ERROR[ERROR[\"CB_CHUNK_HEADER\"] = 19] = \"CB_CHUNK_HEADER\";\n ERROR[ERROR[\"CB_CHUNK_COMPLETE\"] = 20] = \"CB_CHUNK_COMPLETE\";\n ERROR[ERROR[\"PAUSED\"] = 21] = \"PAUSED\";\n ERROR[ERROR[\"PAUSED_UPGRADE\"] = 22] = \"PAUSED_UPGRADE\";\n ERROR[ERROR[\"PAUSED_H2_UPGRADE\"] = 23] = \"PAUSED_H2_UPGRADE\";\n ERROR[ERROR[\"USER\"] = 24] = \"USER\";\n})(ERROR = exports.ERROR || (exports.ERROR = {}));\nvar TYPE;\n(function (TYPE) {\n TYPE[TYPE[\"BOTH\"] = 0] = \"BOTH\";\n TYPE[TYPE[\"REQUEST\"] = 1] = \"REQUEST\";\n TYPE[TYPE[\"RESPONSE\"] = 2] = \"RESPONSE\";\n})(TYPE = exports.TYPE || (exports.TYPE = {}));\nvar FLAGS;\n(function (FLAGS) {\n FLAGS[FLAGS[\"CONNECTION_KEEP_ALIVE\"] = 1] = \"CONNECTION_KEEP_ALIVE\";\n FLAGS[FLAGS[\"CONNECTION_CLOSE\"] = 2] = \"CONNECTION_CLOSE\";\n FLAGS[FLAGS[\"CONNECTION_UPGRADE\"] = 4] = \"CONNECTION_UPGRADE\";\n FLAGS[FLAGS[\"CHUNKED\"] = 8] = \"CHUNKED\";\n FLAGS[FLAGS[\"UPGRADE\"] = 16] = \"UPGRADE\";\n FLAGS[FLAGS[\"CONTENT_LENGTH\"] = 32] = \"CONTENT_LENGTH\";\n FLAGS[FLAGS[\"SKIPBODY\"] = 64] = \"SKIPBODY\";\n FLAGS[FLAGS[\"TRAILING\"] = 128] = \"TRAILING\";\n // 1 << 8 is unused\n FLAGS[FLAGS[\"TRANSFER_ENCODING\"] = 512] = \"TRANSFER_ENCODING\";\n})(FLAGS = exports.FLAGS || (exports.FLAGS = {}));\nvar LENIENT_FLAGS;\n(function (LENIENT_FLAGS) {\n LENIENT_FLAGS[LENIENT_FLAGS[\"HEADERS\"] = 1] = \"HEADERS\";\n LENIENT_FLAGS[LENIENT_FLAGS[\"CHUNKED_LENGTH\"] = 2] = \"CHUNKED_LENGTH\";\n LENIENT_FLAGS[LENIENT_FLAGS[\"KEEP_ALIVE\"] = 4] = \"KEEP_ALIVE\";\n})(LENIENT_FLAGS = exports.LENIENT_FLAGS || (exports.LENIENT_FLAGS = {}));\nvar METHODS;\n(function (METHODS) {\n METHODS[METHODS[\"DELETE\"] = 0] = \"DELETE\";\n METHODS[METHODS[\"GET\"] = 1] = \"GET\";\n METHODS[METHODS[\"HEAD\"] = 2] = \"HEAD\";\n METHODS[METHODS[\"POST\"] = 3] = \"POST\";\n METHODS[METHODS[\"PUT\"] = 4] = \"PUT\";\n /* pathological */\n METHODS[METHODS[\"CONNECT\"] = 5] = \"CONNECT\";\n METHODS[METHODS[\"OPTIONS\"] = 6] = \"OPTIONS\";\n METHODS[METHODS[\"TRACE\"] = 7] = \"TRACE\";\n /* WebDAV */\n METHODS[METHODS[\"COPY\"] = 8] = \"COPY\";\n METHODS[METHODS[\"LOCK\"] = 9] = \"LOCK\";\n METHODS[METHODS[\"MKCOL\"] = 10] = \"MKCOL\";\n METHODS[METHODS[\"MOVE\"] = 11] = \"MOVE\";\n METHODS[METHODS[\"PROPFIND\"] = 12] = \"PROPFIND\";\n METHODS[METHODS[\"PROPPATCH\"] = 13] = \"PROPPATCH\";\n METHODS[METHODS[\"SEARCH\"] = 14] = \"SEARCH\";\n METHODS[METHODS[\"UNLOCK\"] = 15] = \"UNLOCK\";\n METHODS[METHODS[\"BIND\"] = 16] = \"BIND\";\n METHODS[METHODS[\"REBIND\"] = 17] = \"REBIND\";\n METHODS[METHODS[\"UNBIND\"] = 18] = \"UNBIND\";\n METHODS[METHODS[\"ACL\"] = 19] = \"ACL\";\n /* subversion */\n METHODS[METHODS[\"REPORT\"] = 20] = \"REPORT\";\n METHODS[METHODS[\"MKACTIVITY\"] = 21] = \"MKACTIVITY\";\n METHODS[METHODS[\"CHECKOUT\"] = 22] = \"CHECKOUT\";\n METHODS[METHODS[\"MERGE\"] = 23] = \"MERGE\";\n /* upnp */\n METHODS[METHODS[\"M-SEARCH\"] = 24] = \"M-SEARCH\";\n METHODS[METHODS[\"NOTIFY\"] = 25] = \"NOTIFY\";\n METHODS[METHODS[\"SUBSCRIBE\"] = 26] = \"SUBSCRIBE\";\n METHODS[METHODS[\"UNSUBSCRIBE\"] = 27] = \"UNSUBSCRIBE\";\n /* RFC-5789 */\n METHODS[METHODS[\"PATCH\"] = 28] = \"PATCH\";\n METHODS[METHODS[\"PURGE\"] = 29] = \"PURGE\";\n /* CalDAV */\n METHODS[METHODS[\"MKCALENDAR\"] = 30] = \"MKCALENDAR\";\n /* RFC-2068, section 19.6.1.2 */\n METHODS[METHODS[\"LINK\"] = 31] = \"LINK\";\n METHODS[METHODS[\"UNLINK\"] = 32] = \"UNLINK\";\n /* icecast */\n METHODS[METHODS[\"SOURCE\"] = 33] = \"SOURCE\";\n /* RFC-7540, section 11.6 */\n METHODS[METHODS[\"PRI\"] = 34] = \"PRI\";\n /* RFC-2326 RTSP */\n METHODS[METHODS[\"DESCRIBE\"] = 35] = \"DESCRIBE\";\n METHODS[METHODS[\"ANNOUNCE\"] = 36] = \"ANNOUNCE\";\n METHODS[METHODS[\"SETUP\"] = 37] = \"SETUP\";\n METHODS[METHODS[\"PLAY\"] = 38] = \"PLAY\";\n METHODS[METHODS[\"PAUSE\"] = 39] = \"PAUSE\";\n METHODS[METHODS[\"TEARDOWN\"] = 40] = \"TEARDOWN\";\n METHODS[METHODS[\"GET_PARAMETER\"] = 41] = \"GET_PARAMETER\";\n METHODS[METHODS[\"SET_PARAMETER\"] = 42] = \"SET_PARAMETER\";\n METHODS[METHODS[\"REDIRECT\"] = 43] = \"REDIRECT\";\n METHODS[METHODS[\"RECORD\"] = 44] = \"RECORD\";\n /* RAOP */\n METHODS[METHODS[\"FLUSH\"] = 45] = \"FLUSH\";\n})(METHODS = exports.METHODS || (exports.METHODS = {}));\nexports.METHODS_HTTP = [\n METHODS.DELETE,\n METHODS.GET,\n METHODS.HEAD,\n METHODS.POST,\n METHODS.PUT,\n METHODS.CONNECT,\n METHODS.OPTIONS,\n METHODS.TRACE,\n METHODS.COPY,\n METHODS.LOCK,\n METHODS.MKCOL,\n METHODS.MOVE,\n METHODS.PROPFIND,\n METHODS.PROPPATCH,\n METHODS.SEARCH,\n METHODS.UNLOCK,\n METHODS.BIND,\n METHODS.REBIND,\n METHODS.UNBIND,\n METHODS.ACL,\n METHODS.REPORT,\n METHODS.MKACTIVITY,\n METHODS.CHECKOUT,\n METHODS.MERGE,\n METHODS['M-SEARCH'],\n METHODS.NOTIFY,\n METHODS.SUBSCRIBE,\n METHODS.UNSUBSCRIBE,\n METHODS.PATCH,\n METHODS.PURGE,\n METHODS.MKCALENDAR,\n METHODS.LINK,\n METHODS.UNLINK,\n METHODS.PRI,\n // TODO(indutny): should we allow it with HTTP?\n METHODS.SOURCE,\n];\nexports.METHODS_ICE = [\n METHODS.SOURCE,\n];\nexports.METHODS_RTSP = [\n METHODS.OPTIONS,\n METHODS.DESCRIBE,\n METHODS.ANNOUNCE,\n METHODS.SETUP,\n METHODS.PLAY,\n METHODS.PAUSE,\n METHODS.TEARDOWN,\n METHODS.GET_PARAMETER,\n METHODS.SET_PARAMETER,\n METHODS.REDIRECT,\n METHODS.RECORD,\n METHODS.FLUSH,\n // For AirPlay\n METHODS.GET,\n METHODS.POST,\n];\nexports.METHOD_MAP = utils_1.enumToMap(METHODS);\nexports.H_METHOD_MAP = {};\nObject.keys(exports.METHOD_MAP).forEach((key) => {\n if (/^H/.test(key)) {\n exports.H_METHOD_MAP[key] = exports.METHOD_MAP[key];\n }\n});\nvar FINISH;\n(function (FINISH) {\n FINISH[FINISH[\"SAFE\"] = 0] = \"SAFE\";\n FINISH[FINISH[\"SAFE_WITH_CB\"] = 1] = \"SAFE_WITH_CB\";\n FINISH[FINISH[\"UNSAFE\"] = 2] = \"UNSAFE\";\n})(FINISH = exports.FINISH || (exports.FINISH = {}));\nexports.ALPHA = [];\nfor (let i = 'A'.charCodeAt(0); i <= 'Z'.charCodeAt(0); i++) {\n // Upper case\n exports.ALPHA.push(String.fromCharCode(i));\n // Lower case\n exports.ALPHA.push(String.fromCharCode(i + 0x20));\n}\nexports.NUM_MAP = {\n 0: 0, 1: 1, 2: 2, 3: 3, 4: 4,\n 5: 5, 6: 6, 7: 7, 8: 8, 9: 9,\n};\nexports.HEX_MAP = {\n 0: 0, 1: 1, 2: 2, 3: 3, 4: 4,\n 5: 5, 6: 6, 7: 7, 8: 8, 9: 9,\n A: 0XA, B: 0XB, C: 0XC, D: 0XD, E: 0XE, F: 0XF,\n a: 0xa, b: 0xb, c: 0xc, d: 0xd, e: 0xe, f: 0xf,\n};\nexports.NUM = [\n '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',\n];\nexports.ALPHANUM = exports.ALPHA.concat(exports.NUM);\nexports.MARK = ['-', '_', '.', '!', '~', '*', '\\'', '(', ')'];\nexports.USERINFO_CHARS = exports.ALPHANUM\n .concat(exports.MARK)\n .concat(['%', ';', ':', '&', '=', '+', '$', ',']);\n// TODO(indutny): use RFC\nexports.STRICT_URL_CHAR = [\n '!', '\"', '$', '%', '&', '\\'',\n '(', ')', '*', '+', ',', '-', '.', '/',\n ':', ';', '<', '=', '>',\n '@', '[', '\\\\', ']', '^', '_',\n '`',\n '{', '|', '}', '~',\n].concat(exports.ALPHANUM);\nexports.URL_CHAR = exports.STRICT_URL_CHAR\n .concat(['\\t', '\\f']);\n// All characters with 0x80 bit set to 1\nfor (let i = 0x80; i <= 0xff; i++) {\n exports.URL_CHAR.push(i);\n}\nexports.HEX = exports.NUM.concat(['a', 'b', 'c', 'd', 'e', 'f', 'A', 'B', 'C', 'D', 'E', 'F']);\n/* Tokens as defined by rfc 2616. Also lowercases them.\n * token = 1*\n * separators = \"(\" | \")\" | \"<\" | \">\" | \"@\"\n * | \",\" | \";\" | \":\" | \"\\\" | <\">\n * | \"/\" | \"[\" | \"]\" | \"?\" | \"=\"\n * | \"{\" | \"}\" | SP | HT\n */\nexports.STRICT_TOKEN = [\n '!', '#', '$', '%', '&', '\\'',\n '*', '+', '-', '.',\n '^', '_', '`',\n '|', '~',\n].concat(exports.ALPHANUM);\nexports.TOKEN = exports.STRICT_TOKEN.concat([' ']);\n/*\n * Verify that a char is a valid visible (printable) US-ASCII\n * character or %x80-FF\n */\nexports.HEADER_CHARS = ['\\t'];\nfor (let i = 32; i <= 255; i++) {\n if (i !== 127) {\n exports.HEADER_CHARS.push(i);\n }\n}\n// ',' = \\x44\nexports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS.filter((c) => c !== 44);\nexports.MAJOR = exports.NUM_MAP;\nexports.MINOR = exports.MAJOR;\nvar HEADER_STATE;\n(function (HEADER_STATE) {\n HEADER_STATE[HEADER_STATE[\"GENERAL\"] = 0] = \"GENERAL\";\n HEADER_STATE[HEADER_STATE[\"CONNECTION\"] = 1] = \"CONNECTION\";\n HEADER_STATE[HEADER_STATE[\"CONTENT_LENGTH\"] = 2] = \"CONTENT_LENGTH\";\n HEADER_STATE[HEADER_STATE[\"TRANSFER_ENCODING\"] = 3] = \"TRANSFER_ENCODING\";\n HEADER_STATE[HEADER_STATE[\"UPGRADE\"] = 4] = \"UPGRADE\";\n HEADER_STATE[HEADER_STATE[\"CONNECTION_KEEP_ALIVE\"] = 5] = \"CONNECTION_KEEP_ALIVE\";\n HEADER_STATE[HEADER_STATE[\"CONNECTION_CLOSE\"] = 6] = \"CONNECTION_CLOSE\";\n HEADER_STATE[HEADER_STATE[\"CONNECTION_UPGRADE\"] = 7] = \"CONNECTION_UPGRADE\";\n HEADER_STATE[HEADER_STATE[\"TRANSFER_ENCODING_CHUNKED\"] = 8] = \"TRANSFER_ENCODING_CHUNKED\";\n})(HEADER_STATE = exports.HEADER_STATE || (exports.HEADER_STATE = {}));\nexports.SPECIAL_HEADERS = {\n 'connection': HEADER_STATE.CONNECTION,\n 'content-length': HEADER_STATE.CONTENT_LENGTH,\n 'proxy-connection': HEADER_STATE.CONNECTION,\n 'transfer-encoding': HEADER_STATE.TRANSFER_ENCODING,\n 'upgrade': HEADER_STATE.UPGRADE,\n};\n//# sourceMappingURL=constants.js.map", "'use strict'\n\nconst { Buffer } = require('node:buffer')\n\nmodule.exports = Buffer.from('AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAX8AYAJ/fwBgBH9/f38Bf2AAAGADf39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQAEA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAAy0sBQYAAAIAAAAAAAACAQIAAgICAAADAAAAAAMDAwMBAQEBAQEBAQEAAAIAAAA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gAiABNgIUIAIgADYCDEEAIQMMsQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0dIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMsAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0fIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxBACEDDKIBCyACQeQANgIcIAIgATYCFCACQeMXNgIQIAJBFTYCDEEAIQMMoQELIAJBADYCACAGQQFqIQEgAi0AKSIAQSNrQQtJDQQCQCAAQQZLDQBBASAAdEHKAHFFDQAMBQtBACEDIAJBADYCHCACIAE2AhQgAkH3CTYCECACQQg2AgwMoAELIA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FNgIADLACCyACQQA2AgAgBkEBaiEBQRAMcwtB/gAhAyABIARGDa4CIAIoAgAiACAEIAFraiEFIAEgAGtBBWohBgJAA0AgAS0AACAAQfbOAGotAABHDXEgAEEFRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK8CCyACQQA2AgAgBkEBaiEBQRYMcgtB/wAhAyABIARGDa0CIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQfzOAGotAABHDXAgAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK4CCyACQQA2AgAgBkEBaiEBQQUMcQsgASAERgRAQYABIQMMrQILIAEtAABB2QBHDW4gAUEBaiEBQQgMcAsgASAERgRAQYEBIQMMrAILAkACQCABLQAAQc4Aaw4DAG8BbwsgAUEBaiEBQesAIQMMkwILIAFBAWohAUHsACEDDJICCyABIARGBEBBggEhAwyrAgsCQAJAIAEtAABByABrDggAbm5ubm5uAW4LIAFBAWohAUHqACEDDJICCyABQQFqIQFB7QAhAwyRAgtBgwEhAyABIARGDakCIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQYDPAGotAABHDWwgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKoCCyACQQA2AgAgBkEBaiEBQQAMbQtBhAEhAyABIARGDagCIAIoAgAiACAEIAFraiEFIAEgAGtBBGohBgJAA0AgAS0AACAAQYPPAGotAABHDWsgAEEERg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKkCCyACQQA2AgAgBkEBaiEBQSMMbAsgASAERgRAQYUBIQMMqAILAkACQCABLQAAQcwAaw4IAGtra2trawFrCyABQQFqIQFB7wAhAwyPAgsgAUEBaiEBQfAAIQMMjgILIAEgBEYEQEGGASEDDKcCCyABLQAAQcUARw1oIAFBAWohAQxgC0GHASEDIAEgBEYNpQIgAigCACIAIAQgAWtqIQUgASAAa0EDaiEGAkADQCABLQAAIABBiM8Aai0AAEcNaCA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SIARQ0iIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMsgELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0OIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMsQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0dIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMsAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0fIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxBACEDDKIBCyACQeQANgIcIAIgATYCFCACQeMXNgIQIAJBFTYCDEEAIQMMoQELIAJBADYCACAGQQFqIQEgAi0AKS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hwgAiABNgIUIAIgADYCDEEAIQMMkwELQckAIQMMeQsgAkEANgIcIAIgATYCFCACQcEoNgIQIAJBBzYCDCACQQA2AgBBACEDDJEBCyACKAIEIQBBACEDIAJBADYCBCACIAAgARAlIgBFDQAgAkHSADYCHCACIAE2AhQgAiAANgIMDJABC0HIACEDDHYLIAJBADYCACAFIQELIAJBgBI7ASogAUEBaiEBQQAhAAJAIAIoAjgiA0UNACADKAIwIgNFDQAgAiADEQAAIQALIAANAQtBxwAhAwxzCyAAQRVGBEAgAkHRADYCHCACIAE2AhQgAkHjFzYCECACQRU2AgxBACEDDIwBC0EAIQMgAkEANgIcIAIgATYCFCACQbkNNgIQIAJBGjYCDAyLAQtBACEDIAJBADYCHCACIAE2AhQgAkGgGTYCECACQR42AgwMigELIAEtAABBOkYEQCACKAIEIQBBACEDIAJBADYCBCACIAAgARApIgBFDQEgAkHDADYCHCACIAA2AgwgAiABQQFqNgIUDIoBC0EAIQMgAkEANgIcIAIgATYCFCACQbERNgIQIAJBCjYCDAyJAQsgAUEBaiEBQTshAwxvCyACQcMANgIcIAIgADYCDCACIAFBAWo2AhQMhwELQQAhAyACQQA2AhwgAiABNgIUIAJB8A42AhAgAkEcNgIMDIYBCyACIAIvATBBEHI7ATAMZgsCQCACLwEwIgBBCHFFDQAgAi0AKEEBRw0AIAItAC1BCHFFDQMLIAIgAEH3+wNxQYAEcjsBMAwECyABIARHBEACQANAIAEtAABBMGsiAEH/AXFBCk8EQEE1IQMMbgsgAikDICIKQpmz5syZs+bMGVYNASACIApCCn4iCjcDICAKIACtQv8BgyILQn+FVg0BIAIgCiALfDcDICAEIAFBAWoiAUcNAAtBOSEDDIUBCyACKAIEIQBBACEDIAJBADYCBCACIAAgAUEBaiIBECoiAA0MDHcLQTkhAwyDAQsgAi0AMEEgcQ0GQcUBIQMMaQtBACEDIAJBADYCBCACIAEgARAqIgBFDQQgAkE6NgIcIAIgADYCDCACIAFBAWo2AhQMgQELIAItAChBAUcNACACLQAtQQhx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BAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB+sgACwQBAAACAEGQyQALXwMEAAAEBAQEBAQEBAQEBAUEBAQEBAQEBAQEBAQABAAGBwQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEAAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAEAEH6ygALBAEAAAEAQZDLAAsBAQBBqssAC0ECAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwBB+swACwQBAAABAEGQzQALAQEAQZrNAAsGAgAAAAACAEGxzQALOgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAQfDOAAuWAU5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw==', 'base64')\n", "'use strict'\n\nconst corsSafeListedMethods = /** @type {const} */ (['GET', 'HEAD', 'POST'])\nconst corsSafeListedMethodsSet = new Set(corsSafeListedMethods)\n\nconst nullBodyStatus = /** @type {const} */ ([101, 204, 205, 304])\n\nconst redirectStatus = /** @type {const} */ ([301, 302, 303, 307, 308])\nconst redirectStatusSet = new Set(redirectStatus)\n\n/**\n * @see https://fetch.spec.whatwg.org/#block-bad-port\n */\nconst badPorts = /** @type {const} */ ([\n '1', '7', '9', '11', '13', '15', '17', '19', '20', '21', '22', '23', '25', '37', '42', '43', '53', '69', '77', '79',\n '87', '95', '101', '102', '103', '104', '109', '110', '111', '113', '115', '117', '119', '123', '135', '137',\n '139', '143', '161', '179', '389', '427', '465', '512', '513', '514', '515', '526', '530', '531', '532',\n '540', '548', '554', '556', '563', '587', '601', '636', '989', '990', '993', '995', '1719', '1720', '1723',\n '2049', '3659', '4045', '4190', '5060', '5061', '6000', '6566', '6665', '6666', '6667', '6668', '6669', '6679',\n '6697', '10080'\n])\nconst badPortsSet = new Set(badPorts)\n\n/**\n * @see https://w3c.github.io/webappsec-referrer-policy/#referrer-policies\n */\nconst referrerPolicy = /** @type {const} */ ([\n '',\n 'no-referrer',\n 'no-referrer-when-downgrade',\n 'same-origin',\n 'origin',\n 'strict-origin',\n 'origin-when-cross-origin',\n 'strict-origin-when-cross-origin',\n 'unsafe-url'\n])\nconst referrerPolicySet = new Set(referrerPolicy)\n\nconst requestRedirect = /** @type {const} */ (['follow', 'manual', 'error'])\n\nconst safeMethods = /** @type {const} */ (['GET', 'HEAD', 'OPTIONS', 'TRACE'])\nconst safeMethodsSet = new Set(safeMethods)\n\nconst requestMode = /** @type {const} */ (['navigate', 'same-origin', 'no-cors', 'cors'])\n\nconst requestCredentials = /** @type {const} */ (['omit', 'same-origin', 'include'])\n\nconst requestCache = /** @type {const} */ ([\n 'default',\n 'no-store',\n 'reload',\n 'no-cache',\n 'force-cache',\n 'only-if-cached'\n])\n\n/**\n * @see https://fetch.spec.whatwg.org/#request-body-header-name\n */\nconst requestBodyHeader = /** @type {const} */ ([\n 'content-encoding',\n 'content-language',\n 'content-location',\n 'content-type',\n // See https://github.com/nodejs/undici/issues/2021\n // 'Content-Length' is a forbidden header name, which is typically\n // removed in the Headers implementation. However, undici doesn't\n // filter out headers, so we add it here.\n 'content-length'\n])\n\n/**\n * @see https://fetch.spec.whatwg.org/#enumdef-requestduplex\n */\nconst requestDuplex = /** @type {const} */ ([\n 'half'\n])\n\n/**\n * @see http://fetch.spec.whatwg.org/#forbidden-method\n */\nconst forbiddenMethods = /** @type {const} */ (['CONNECT', 'TRACE', 'TRACK'])\nconst forbiddenMethodsSet = new Set(forbiddenMethods)\n\nconst subresource = /** @type {const} */ ([\n 'audio',\n 'audioworklet',\n 'font',\n 'image',\n 'manifest',\n 'paintworklet',\n 'script',\n 'style',\n 'track',\n 'video',\n 'xslt',\n ''\n])\nconst subresourceSet = new Set(subresource)\n\nmodule.exports = {\n subresource,\n forbiddenMethods,\n requestBodyHeader,\n referrerPolicy,\n requestRedirect,\n requestMode,\n requestCredentials,\n requestCache,\n redirectStatus,\n corsSafeListedMethods,\n nullBodyStatus,\n safeMethods,\n badPorts,\n requestDuplex,\n subresourceSet,\n badPortsSet,\n redirectStatusSet,\n corsSafeListedMethodsSet,\n safeMethodsSet,\n forbiddenMethodsSet,\n referrerPolicySet\n}\n", "'use strict'\n\n// In case of breaking changes, increase the version\n// number to avoid conflicts.\nconst globalOrigin = Symbol.for('undici.globalOrigin.1')\n\nfunction getGlobalOrigin () {\n return globalThis[globalOrigin]\n}\n\nfunction setGlobalOrigin (newOrigin) {\n if (newOrigin === undefined) {\n Object.defineProperty(globalThis, globalOrigin, {\n value: undefined,\n writable: true,\n enumerable: false,\n configurable: false\n })\n\n return\n }\n\n const parsedURL = new URL(newOrigin)\n\n if (parsedURL.protocol !== 'http:' && parsedURL.protocol !== 'https:') {\n throw new TypeError(`Only http & https urls are allowed, received ${parsedURL.protocol}`)\n }\n\n Object.defineProperty(globalThis, globalOrigin, {\n value: parsedURL,\n writable: true,\n enumerable: false,\n configurable: false\n })\n}\n\nmodule.exports = {\n getGlobalOrigin,\n setGlobalOrigin\n}\n", "'use strict'\n\nconst assert = require('node:assert')\n\nconst encoder = new TextEncoder()\n\n/**\n * @see https://mimesniff.spec.whatwg.org/#http-token-code-point\n */\nconst HTTP_TOKEN_CODEPOINTS = /^[!#$%&'*+\\-.^_|~A-Za-z0-9]+$/\nconst HTTP_WHITESPACE_REGEX = /[\\u000A\\u000D\\u0009\\u0020]/ // eslint-disable-line\nconst ASCII_WHITESPACE_REPLACE_REGEX = /[\\u0009\\u000A\\u000C\\u000D\\u0020]/g // eslint-disable-line\n/**\n * @see https://mimesniff.spec.whatwg.org/#http-quoted-string-token-code-point\n */\nconst HTTP_QUOTED_STRING_TOKENS = /^[\\u0009\\u0020-\\u007E\\u0080-\\u00FF]+$/ // eslint-disable-line\n\n// https://fetch.spec.whatwg.org/#data-url-processor\n/** @param {URL} dataURL */\nfunction dataURLProcessor (dataURL) {\n // 1. Assert: dataURL\u2019s scheme is \"data\".\n assert(dataURL.protocol === 'data:')\n\n // 2. Let input be the result of running the URL\n // serializer on dataURL with exclude fragment\n // set to true.\n let input = URLSerializer(dataURL, true)\n\n // 3. Remove the leading \"data:\" string from input.\n input = input.slice(5)\n\n // 4. Let position point at the start of input.\n const position = { position: 0 }\n\n // 5. Let mimeType be the result of collecting a\n // sequence of code points that are not equal\n // to U+002C (,), given position.\n let mimeType = collectASequenceOfCodePointsFast(\n ',',\n input,\n position\n )\n\n // 6. Strip leading and trailing ASCII whitespace\n // from mimeType.\n // Undici implementation note: we need to store the\n // length because if the mimetype has spaces removed,\n // the wrong amount will be sliced from the input in\n // step #9\n const mimeTypeLength = mimeType.length\n mimeType = removeASCIIWhitespace(mimeType, true, true)\n\n // 7. If position is past the end of input, then\n // return failure\n if (position.position >= input.length) {\n return 'failure'\n }\n\n // 8. Advance position by 1.\n position.position++\n\n // 9. Let encodedBody be the remainder of input.\n const encodedBody = input.slice(mimeTypeLength + 1)\n\n // 10. Let body be the percent-decoding of encodedBody.\n let body = stringPercentDecode(encodedBody)\n\n // 11. If mimeType ends with U+003B (;), followed by\n // zero or more U+0020 SPACE, followed by an ASCII\n // case-insensitive match for \"base64\", then:\n if (/;(\\u0020){0,}base64$/i.test(mimeType)) {\n // 1. Let stringBody be the isomorphic decode of body.\n const stringBody = isomorphicDecode(body)\n\n // 2. Set body to the forgiving-base64 decode of\n // stringBody.\n body = forgivingBase64(stringBody)\n\n // 3. If body is failure, then return failure.\n if (body === 'failure') {\n return 'failure'\n }\n\n // 4. Remove the last 6 code points from mimeType.\n mimeType = mimeType.slice(0, -6)\n\n // 5. Remove trailing U+0020 SPACE code points from mimeType,\n // if any.\n mimeType = mimeType.replace(/(\\u0020)+$/, '')\n\n // 6. Remove the last U+003B (;) code point from mimeType.\n mimeType = mimeType.slice(0, -1)\n }\n\n // 12. If mimeType starts with U+003B (;), then prepend\n // \"text/plain\" to mimeType.\n if (mimeType.startsWith(';')) {\n mimeType = 'text/plain' + mimeType\n }\n\n // 13. Let mimeTypeRecord be the result of parsing\n // mimeType.\n let mimeTypeRecord = parseMIMEType(mimeType)\n\n // 14. If mimeTypeRecord is failure, then set\n // mimeTypeRecord to text/plain;charset=US-ASCII.\n if (mimeTypeRecord === 'failure') {\n mimeTypeRecord = parseMIMEType('text/plain;charset=US-ASCII')\n }\n\n // 15. Return a new data: URL struct whose MIME\n // type is mimeTypeRecord and body is body.\n // https://fetch.spec.whatwg.org/#data-url-struct\n return { mimeType: mimeTypeRecord, body }\n}\n\n// https://url.spec.whatwg.org/#concept-url-serializer\n/**\n * @param {URL} url\n * @param {boolean} excludeFragment\n */\nfunction URLSerializer (url, excludeFragment = false) {\n if (!excludeFragment) {\n return url.href\n }\n\n const href = url.href\n const hashLength = url.hash.length\n\n const serialized = hashLength === 0 ? href : href.substring(0, href.length - hashLength)\n\n if (!hashLength && href.endsWith('#')) {\n return serialized.slice(0, -1)\n }\n\n return serialized\n}\n\n// https://infra.spec.whatwg.org/#collect-a-sequence-of-code-points\n/**\n * @param {(char: string) => boolean} condition\n * @param {string} input\n * @param {{ position: number }} position\n */\nfunction collectASequenceOfCodePoints (condition, input, position) {\n // 1. Let result be the empty string.\n let result = ''\n\n // 2. While position doesn\u2019t point past the end of input and the\n // code point at position within input meets the condition condition:\n while (position.position < input.length && condition(input[position.position])) {\n // 1. Append that code point to the end of result.\n result += input[position.position]\n\n // 2. Advance position by 1.\n position.position++\n }\n\n // 3. Return result.\n return result\n}\n\n/**\n * A faster collectASequenceOfCodePoints that only works when comparing a single character.\n * @param {string} char\n * @param {string} input\n * @param {{ position: number }} position\n */\nfunction collectASequenceOfCodePointsFast (char, input, position) {\n const idx = input.indexOf(char, position.position)\n const start = position.position\n\n if (idx === -1) {\n position.position = input.length\n return input.slice(start)\n }\n\n position.position = idx\n return input.slice(start, position.position)\n}\n\n// https://url.spec.whatwg.org/#string-percent-decode\n/** @param {string} input */\nfunction stringPercentDecode (input) {\n // 1. Let bytes be the UTF-8 encoding of input.\n const bytes = encoder.encode(input)\n\n // 2. Return the percent-decoding of bytes.\n return percentDecode(bytes)\n}\n\n/**\n * @param {number} byte\n */\nfunction isHexCharByte (byte) {\n // 0-9 A-F a-f\n return (byte >= 0x30 && byte <= 0x39) || (byte >= 0x41 && byte <= 0x46) || (byte >= 0x61 && byte <= 0x66)\n}\n\n/**\n * @param {number} byte\n */\nfunction hexByteToNumber (byte) {\n return (\n // 0-9\n byte >= 0x30 && byte <= 0x39\n ? (byte - 48)\n // Convert to uppercase\n // ((byte & 0xDF) - 65) + 10\n : ((byte & 0xDF) - 55)\n )\n}\n\n// https://url.spec.whatwg.org/#percent-decode\n/** @param {Uint8Array} input */\nfunction percentDecode (input) {\n const length = input.length\n // 1. Let output be an empty byte sequence.\n /** @type {Uint8Array} */\n const output = new Uint8Array(length)\n let j = 0\n // 2. For each byte byte in input:\n for (let i = 0; i < length; ++i) {\n const byte = input[i]\n\n // 1. If byte is not 0x25 (%), then append byte to output.\n if (byte !== 0x25) {\n output[j++] = byte\n\n // 2. Otherwise, if byte is 0x25 (%) and the next two bytes\n // after byte in input are not in the ranges\n // 0x30 (0) to 0x39 (9), 0x41 (A) to 0x46 (F),\n // and 0x61 (a) to 0x66 (f), all inclusive, append byte\n // to output.\n } else if (\n byte === 0x25 &&\n !(isHexCharByte(input[i + 1]) && isHexCharByte(input[i + 2]))\n ) {\n output[j++] = 0x25\n\n // 3. Otherwise:\n } else {\n // 1. Let bytePoint be the two bytes after byte in input,\n // decoded, and then interpreted as hexadecimal number.\n // 2. Append a byte whose value is bytePoint to output.\n output[j++] = (hexByteToNumber(input[i + 1]) << 4) | hexByteToNumber(input[i + 2])\n\n // 3. Skip the next two bytes in input.\n i += 2\n }\n }\n\n // 3. Return output.\n return length === j ? output : output.subarray(0, j)\n}\n\n// https://mimesniff.spec.whatwg.org/#parse-a-mime-type\n/** @param {string} input */\nfunction parseMIMEType (input) {\n // 1. Remove any leading and trailing HTTP whitespace\n // from input.\n input = removeHTTPWhitespace(input, true, true)\n\n // 2. Let position be a position variable for input,\n // initially pointing at the start of input.\n const position = { position: 0 }\n\n // 3. Let type be the result of collecting a sequence\n // of code points that are not U+002F (/) from\n // input, given position.\n const type = collectASequenceOfCodePointsFast(\n '/',\n input,\n position\n )\n\n // 4. If type is the empty string or does not solely\n // contain HTTP token code points, then return failure.\n // https://mimesniff.spec.whatwg.org/#http-token-code-point\n if (type.length === 0 || !HTTP_TOKEN_CODEPOINTS.test(type)) {\n return 'failure'\n }\n\n // 5. If position is past the end of input, then return\n // failure\n if (position.position > input.length) {\n return 'failure'\n }\n\n // 6. Advance position by 1. (This skips past U+002F (/).)\n position.position++\n\n // 7. Let subtype be the result of collecting a sequence of\n // code points that are not U+003B (;) from input, given\n // position.\n let subtype = collectASequenceOfCodePointsFast(\n ';',\n input,\n position\n )\n\n // 8. Remove any trailing HTTP whitespace from subtype.\n subtype = removeHTTPWhitespace(subtype, false, true)\n\n // 9. If subtype is the empty string or does not solely\n // contain HTTP token code points, then return failure.\n if (subtype.length === 0 || !HTTP_TOKEN_CODEPOINTS.test(subtype)) {\n return 'failure'\n }\n\n const typeLowercase = type.toLowerCase()\n const subtypeLowercase = subtype.toLowerCase()\n\n // 10. Let mimeType be a new MIME type record whose type\n // is type, in ASCII lowercase, and subtype is subtype,\n // in ASCII lowercase.\n // https://mimesniff.spec.whatwg.org/#mime-type\n const mimeType = {\n type: typeLowercase,\n subtype: subtypeLowercase,\n /** @type {Map} */\n parameters: new Map(),\n // https://mimesniff.spec.whatwg.org/#mime-type-essence\n essence: `${typeLowercase}/${subtypeLowercase}`\n }\n\n // 11. While position is not past the end of input:\n while (position.position < input.length) {\n // 1. Advance position by 1. (This skips past U+003B (;).)\n position.position++\n\n // 2. Collect a sequence of code points that are HTTP\n // whitespace from input given position.\n collectASequenceOfCodePoints(\n // https://fetch.spec.whatwg.org/#http-whitespace\n char => HTTP_WHITESPACE_REGEX.test(char),\n input,\n position\n )\n\n // 3. Let parameterName be the result of collecting a\n // sequence of code points that are not U+003B (;)\n // or U+003D (=) from input, given position.\n let parameterName = collectASequenceOfCodePoints(\n (char) => char !== ';' && char !== '=',\n input,\n position\n )\n\n // 4. Set parameterName to parameterName, in ASCII\n // lowercase.\n parameterName = parameterName.toLowerCase()\n\n // 5. If position is not past the end of input, then:\n if (position.position < input.length) {\n // 1. If the code point at position within input is\n // U+003B (;), then continue.\n if (input[position.position] === ';') {\n continue\n }\n\n // 2. Advance position by 1. (This skips past U+003D (=).)\n position.position++\n }\n\n // 6. If position is past the end of input, then break.\n if (position.position > input.length) {\n break\n }\n\n // 7. Let parameterValue be null.\n let parameterValue = null\n\n // 8. If the code point at position within input is\n // U+0022 (\"), then:\n if (input[position.position] === '\"') {\n // 1. Set parameterValue to the result of collecting\n // an HTTP quoted string from input, given position\n // and the extract-value flag.\n parameterValue = collectAnHTTPQuotedString(input, position, true)\n\n // 2. Collect a sequence of code points that are not\n // U+003B (;) from input, given position.\n collectASequenceOfCodePointsFast(\n ';',\n input,\n position\n )\n\n // 9. Otherwise:\n } else {\n // 1. Set parameterValue to the result of collecting\n // a sequence of code points that are not U+003B (;)\n // from input, given position.\n parameterValue = collectASequenceOfCodePointsFast(\n ';',\n input,\n position\n )\n\n // 2. Remove any trailing HTTP whitespace from parameterValue.\n parameterValue = removeHTTPWhitespace(parameterValue, false, true)\n\n // 3. If parameterValue is the empty string, then continue.\n if (parameterValue.length === 0) {\n continue\n }\n }\n\n // 10. If all of the following are true\n // - parameterName is not the empty string\n // - parameterName solely contains HTTP token code points\n // - parameterValue solely contains HTTP quoted-string token code points\n // - mimeType\u2019s parameters[parameterName] does not exist\n // then set mimeType\u2019s parameters[parameterName] to parameterValue.\n if (\n parameterName.length !== 0 &&\n HTTP_TOKEN_CODEPOINTS.test(parameterName) &&\n (parameterValue.length === 0 || HTTP_QUOTED_STRING_TOKENS.test(parameterValue)) &&\n !mimeType.parameters.has(parameterName)\n ) {\n mimeType.parameters.set(parameterName, parameterValue)\n }\n }\n\n // 12. Return mimeType.\n return mimeType\n}\n\n// https://infra.spec.whatwg.org/#forgiving-base64-decode\n/** @param {string} data */\nfunction forgivingBase64 (data) {\n // 1. Remove all ASCII whitespace from data.\n data = data.replace(ASCII_WHITESPACE_REPLACE_REGEX, '') // eslint-disable-line\n\n let dataLength = data.length\n // 2. If data\u2019s code point length divides by 4 leaving\n // no remainder, then:\n if (dataLength % 4 === 0) {\n // 1. If data ends with one or two U+003D (=) code points,\n // then remove them from data.\n if (data.charCodeAt(dataLength - 1) === 0x003D) {\n --dataLength\n if (data.charCodeAt(dataLength - 1) === 0x003D) {\n --dataLength\n }\n }\n }\n\n // 3. If data\u2019s code point length divides by 4 leaving\n // a remainder of 1, then return failure.\n if (dataLength % 4 === 1) {\n return 'failure'\n }\n\n // 4. If data contains a code point that is not one of\n // U+002B (+)\n // U+002F (/)\n // ASCII alphanumeric\n // then return failure.\n if (/[^+/0-9A-Za-z]/.test(data.length === dataLength ? data : data.substring(0, dataLength))) {\n return 'failure'\n }\n\n const buffer = Buffer.from(data, 'base64')\n return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength)\n}\n\n// https://fetch.spec.whatwg.org/#collect-an-http-quoted-string\n// tests: https://fetch.spec.whatwg.org/#example-http-quoted-string\n/**\n * @param {string} input\n * @param {{ position: number }} position\n * @param {boolean?} extractValue\n */\nfunction collectAnHTTPQuotedString (input, position, extractValue) {\n // 1. Let positionStart be position.\n const positionStart = position.position\n\n // 2. Let value be the empty string.\n let value = ''\n\n // 3. Assert: the code point at position within input\n // is U+0022 (\").\n assert(input[position.position] === '\"')\n\n // 4. Advance position by 1.\n position.position++\n\n // 5. While true:\n while (true) {\n // 1. Append the result of collecting a sequence of code points\n // that are not U+0022 (\") or U+005C (\\) from input, given\n // position, to value.\n value += collectASequenceOfCodePoints(\n (char) => char !== '\"' && char !== '\\\\',\n input,\n position\n )\n\n // 2. If position is past the end of input, then break.\n if (position.position >= input.length) {\n break\n }\n\n // 3. Let quoteOrBackslash be the code point at position within\n // input.\n const quoteOrBackslash = input[position.position]\n\n // 4. Advance position by 1.\n position.position++\n\n // 5. If quoteOrBackslash is U+005C (\\), then:\n if (quoteOrBackslash === '\\\\') {\n // 1. If position is past the end of input, then append\n // U+005C (\\) to value and break.\n if (position.position >= input.length) {\n value += '\\\\'\n break\n }\n\n // 2. Append the code point at position within input to value.\n value += input[position.position]\n\n // 3. Advance position by 1.\n position.position++\n\n // 6. Otherwise:\n } else {\n // 1. Assert: quoteOrBackslash is U+0022 (\").\n assert(quoteOrBackslash === '\"')\n\n // 2. Break.\n break\n }\n }\n\n // 6. If the extract-value flag is set, then return value.\n if (extractValue) {\n return value\n }\n\n // 7. Return the code points from positionStart to position,\n // inclusive, within input.\n return input.slice(positionStart, position.position)\n}\n\n/**\n * @see https://mimesniff.spec.whatwg.org/#serialize-a-mime-type\n */\nfunction serializeAMimeType (mimeType) {\n assert(mimeType !== 'failure')\n const { parameters, essence } = mimeType\n\n // 1. Let serialization be the concatenation of mimeType\u2019s\n // type, U+002F (/), and mimeType\u2019s subtype.\n let serialization = essence\n\n // 2. For each name \u2192 value of mimeType\u2019s parameters:\n for (let [name, value] of parameters.entries()) {\n // 1. Append U+003B (;) to serialization.\n serialization += ';'\n\n // 2. Append name to serialization.\n serialization += name\n\n // 3. Append U+003D (=) to serialization.\n serialization += '='\n\n // 4. If value does not solely contain HTTP token code\n // points or value is the empty string, then:\n if (!HTTP_TOKEN_CODEPOINTS.test(value)) {\n // 1. Precede each occurrence of U+0022 (\") or\n // U+005C (\\) in value with U+005C (\\).\n value = value.replace(/(\\\\|\")/g, '\\\\$1')\n\n // 2. Prepend U+0022 (\") to value.\n value = '\"' + value\n\n // 3. Append U+0022 (\") to value.\n value += '\"'\n }\n\n // 5. Append value to serialization.\n serialization += value\n }\n\n // 3. Return serialization.\n return serialization\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#http-whitespace\n * @param {number} char\n */\nfunction isHTTPWhiteSpace (char) {\n // \"\\r\\n\\t \"\n return char === 0x00d || char === 0x00a || char === 0x009 || char === 0x020\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#http-whitespace\n * @param {string} str\n * @param {boolean} [leading=true]\n * @param {boolean} [trailing=true]\n */\nfunction removeHTTPWhitespace (str, leading = true, trailing = true) {\n return removeChars(str, leading, trailing, isHTTPWhiteSpace)\n}\n\n/**\n * @see https://infra.spec.whatwg.org/#ascii-whitespace\n * @param {number} char\n */\nfunction isASCIIWhitespace (char) {\n // \"\\r\\n\\t\\f \"\n return char === 0x00d || char === 0x00a || char === 0x009 || char === 0x00c || char === 0x020\n}\n\n/**\n * @see https://infra.spec.whatwg.org/#strip-leading-and-trailing-ascii-whitespace\n * @param {string} str\n * @param {boolean} [leading=true]\n * @param {boolean} [trailing=true]\n */\nfunction removeASCIIWhitespace (str, leading = true, trailing = true) {\n return removeChars(str, leading, trailing, isASCIIWhitespace)\n}\n\n/**\n * @param {string} str\n * @param {boolean} leading\n * @param {boolean} trailing\n * @param {(charCode: number) => boolean} predicate\n * @returns\n */\nfunction removeChars (str, leading, trailing, predicate) {\n let lead = 0\n let trail = str.length - 1\n\n if (leading) {\n while (lead < str.length && predicate(str.charCodeAt(lead))) lead++\n }\n\n if (trailing) {\n while (trail > 0 && predicate(str.charCodeAt(trail))) trail--\n }\n\n return lead === 0 && trail === str.length - 1 ? str : str.slice(lead, trail + 1)\n}\n\n/**\n * @see https://infra.spec.whatwg.org/#isomorphic-decode\n * @param {Uint8Array} input\n * @returns {string}\n */\nfunction isomorphicDecode (input) {\n // 1. To isomorphic decode a byte sequence input, return a string whose code point\n // length is equal to input\u2019s length and whose code points have the same values\n // as the values of input\u2019s bytes, in the same order.\n const length = input.length\n if ((2 << 15) - 1 > length) {\n return String.fromCharCode.apply(null, input)\n }\n let result = ''; let i = 0\n let addition = (2 << 15) - 1\n while (i < length) {\n if (i + addition > length) {\n addition = length - i\n }\n result += String.fromCharCode.apply(null, input.subarray(i, i += addition))\n }\n return result\n}\n\n/**\n * @see https://mimesniff.spec.whatwg.org/#minimize-a-supported-mime-type\n * @param {Exclude, 'failure'>} mimeType\n */\nfunction minimizeSupportedMimeType (mimeType) {\n switch (mimeType.essence) {\n case 'application/ecmascript':\n case 'application/javascript':\n case 'application/x-ecmascript':\n case 'application/x-javascript':\n case 'text/ecmascript':\n case 'text/javascript':\n case 'text/javascript1.0':\n case 'text/javascript1.1':\n case 'text/javascript1.2':\n case 'text/javascript1.3':\n case 'text/javascript1.4':\n case 'text/javascript1.5':\n case 'text/jscript':\n case 'text/livescript':\n case 'text/x-ecmascript':\n case 'text/x-javascript':\n // 1. If mimeType is a JavaScript MIME type, then return \"text/javascript\".\n return 'text/javascript'\n case 'application/json':\n case 'text/json':\n // 2. If mimeType is a JSON MIME type, then return \"application/json\".\n return 'application/json'\n case 'image/svg+xml':\n // 3. If mimeType\u2019s essence is \"image/svg+xml\", then return \"image/svg+xml\".\n return 'image/svg+xml'\n case 'text/xml':\n case 'application/xml':\n // 4. If mimeType is an XML MIME type, then return \"application/xml\".\n return 'application/xml'\n }\n\n // 2. If mimeType is a JSON MIME type, then return \"application/json\".\n if (mimeType.subtype.endsWith('+json')) {\n return 'application/json'\n }\n\n // 4. If mimeType is an XML MIME type, then return \"application/xml\".\n if (mimeType.subtype.endsWith('+xml')) {\n return 'application/xml'\n }\n\n // 5. If mimeType is supported by the user agent, then return mimeType\u2019s essence.\n // Technically, node doesn't support any mimetypes.\n\n // 6. Return the empty string.\n return ''\n}\n\nmodule.exports = {\n dataURLProcessor,\n URLSerializer,\n collectASequenceOfCodePoints,\n collectASequenceOfCodePointsFast,\n stringPercentDecode,\n parseMIMEType,\n collectAnHTTPQuotedString,\n serializeAMimeType,\n removeChars,\n removeHTTPWhitespace,\n minimizeSupportedMimeType,\n HTTP_TOKEN_CODEPOINTS,\n isomorphicDecode\n}\n", "'use strict'\n\nconst { types, inspect } = require('node:util')\nconst { markAsUncloneable } = require('node:worker_threads')\nconst { toUSVString } = require('../../core/util')\n\n/** @type {import('../../../types/webidl').Webidl} */\nconst webidl = {}\nwebidl.converters = {}\nwebidl.util = {}\nwebidl.errors = {}\n\nwebidl.errors.exception = function (message) {\n return new TypeError(`${message.header}: ${message.message}`)\n}\n\nwebidl.errors.conversionFailed = function (context) {\n const plural = context.types.length === 1 ? '' : ' one of'\n const message =\n `${context.argument} could not be converted to` +\n `${plural}: ${context.types.join(', ')}.`\n\n return webidl.errors.exception({\n header: context.prefix,\n message\n })\n}\n\nwebidl.errors.invalidArgument = function (context) {\n return webidl.errors.exception({\n header: context.prefix,\n message: `\"${context.value}\" is an invalid ${context.type}.`\n })\n}\n\n// https://webidl.spec.whatwg.org/#implements\nwebidl.brandCheck = function (V, I, opts) {\n if (opts?.strict !== false) {\n if (!(V instanceof I)) {\n const err = new TypeError('Illegal invocation')\n err.code = 'ERR_INVALID_THIS' // node compat.\n throw err\n }\n } else {\n if (V?.[Symbol.toStringTag] !== I.prototype[Symbol.toStringTag]) {\n const err = new TypeError('Illegal invocation')\n err.code = 'ERR_INVALID_THIS' // node compat.\n throw err\n }\n }\n}\n\nwebidl.argumentLengthCheck = function ({ length }, min, ctx) {\n if (length < min) {\n throw webidl.errors.exception({\n message: `${min} argument${min !== 1 ? 's' : ''} required, ` +\n `but${length ? ' only' : ''} ${length} found.`,\n header: ctx\n })\n }\n}\n\nwebidl.illegalConstructor = function () {\n throw webidl.errors.exception({\n header: 'TypeError',\n message: 'Illegal constructor'\n })\n}\n\n// https://tc39.es/ecma262/#sec-ecmascript-data-types-and-values\nwebidl.util.Type = function (V) {\n switch (typeof V) {\n case 'undefined': return 'Undefined'\n case 'boolean': return 'Boolean'\n case 'string': return 'String'\n case 'symbol': return 'Symbol'\n case 'number': return 'Number'\n case 'bigint': return 'BigInt'\n case 'function':\n case 'object': {\n if (V === null) {\n return 'Null'\n }\n\n return 'Object'\n }\n }\n}\n\nwebidl.util.markAsUncloneable = markAsUncloneable || (() => {})\n// https://webidl.spec.whatwg.org/#abstract-opdef-converttoint\nwebidl.util.ConvertToInt = function (V, bitLength, signedness, opts) {\n let upperBound\n let lowerBound\n\n // 1. If bitLength is 64, then:\n if (bitLength === 64) {\n // 1. Let upperBound be 2^53 \u2212 1.\n upperBound = Math.pow(2, 53) - 1\n\n // 2. If signedness is \"unsigned\", then let lowerBound be 0.\n if (signedness === 'unsigned') {\n lowerBound = 0\n } else {\n // 3. Otherwise let lowerBound be \u22122^53 + 1.\n lowerBound = Math.pow(-2, 53) + 1\n }\n } else if (signedness === 'unsigned') {\n // 2. Otherwise, if signedness is \"unsigned\", then:\n\n // 1. Let lowerBound be 0.\n lowerBound = 0\n\n // 2. Let upperBound be 2^bitLength \u2212 1.\n upperBound = Math.pow(2, bitLength) - 1\n } else {\n // 3. Otherwise:\n\n // 1. Let lowerBound be -2^bitLength \u2212 1.\n lowerBound = Math.pow(-2, bitLength) - 1\n\n // 2. Let upperBound be 2^bitLength \u2212 1 \u2212 1.\n upperBound = Math.pow(2, bitLength - 1) - 1\n }\n\n // 4. Let x be ? ToNumber(V).\n let x = Number(V)\n\n // 5. If x is \u22120, then set x to +0.\n if (x === 0) {\n x = 0\n }\n\n // 6. If the conversion is to an IDL type associated\n // with the [EnforceRange] extended attribute, then:\n if (opts?.enforceRange === true) {\n // 1. If x is NaN, +\u221E, or \u2212\u221E, then throw a TypeError.\n if (\n Number.isNaN(x) ||\n x === Number.POSITIVE_INFINITY ||\n x === Number.NEGATIVE_INFINITY\n ) {\n throw webidl.errors.exception({\n header: 'Integer conversion',\n message: `Could not convert ${webidl.util.Stringify(V)} to an integer.`\n })\n }\n\n // 2. Set x to IntegerPart(x).\n x = webidl.util.IntegerPart(x)\n\n // 3. If x < lowerBound or x > upperBound, then\n // throw a TypeError.\n if (x < lowerBound || x > upperBound) {\n throw webidl.errors.exception({\n header: 'Integer conversion',\n message: `Value must be between ${lowerBound}-${upperBound}, got ${x}.`\n })\n }\n\n // 4. Return x.\n return x\n }\n\n // 7. If x is not NaN and the conversion is to an IDL\n // type associated with the [Clamp] extended\n // attribute, then:\n if (!Number.isNaN(x) && opts?.clamp === true) {\n // 1. Set x to min(max(x, lowerBound), upperBound).\n x = Math.min(Math.max(x, lowerBound), upperBound)\n\n // 2. Round x to the nearest integer, choosing the\n // even integer if it lies halfway between two,\n // and choosing +0 rather than \u22120.\n if (Math.floor(x) % 2 === 0) {\n x = Math.floor(x)\n } else {\n x = Math.ceil(x)\n }\n\n // 3. Return x.\n return x\n }\n\n // 8. If x is NaN, +0, +\u221E, or \u2212\u221E, then return +0.\n if (\n Number.isNaN(x) ||\n (x === 0 && Object.is(0, x)) ||\n x === Number.POSITIVE_INFINITY ||\n x === Number.NEGATIVE_INFINITY\n ) {\n return 0\n }\n\n // 9. Set x to IntegerPart(x).\n x = webidl.util.IntegerPart(x)\n\n // 10. Set x to x modulo 2^bitLength.\n x = x % Math.pow(2, bitLength)\n\n // 11. If signedness is \"signed\" and x \u2265 2^bitLength \u2212 1,\n // then return x \u2212 2^bitLength.\n if (signedness === 'signed' && x >= Math.pow(2, bitLength) - 1) {\n return x - Math.pow(2, bitLength)\n }\n\n // 12. Otherwise, return x.\n return x\n}\n\n// https://webidl.spec.whatwg.org/#abstract-opdef-integerpart\nwebidl.util.IntegerPart = function (n) {\n // 1. Let r be floor(abs(n)).\n const r = Math.floor(Math.abs(n))\n\n // 2. If n < 0, then return -1 \u00D7 r.\n if (n < 0) {\n return -1 * r\n }\n\n // 3. Otherwise, return r.\n return r\n}\n\nwebidl.util.Stringify = function (V) {\n const type = webidl.util.Type(V)\n\n switch (type) {\n case 'Symbol':\n return `Symbol(${V.description})`\n case 'Object':\n return inspect(V)\n case 'String':\n return `\"${V}\"`\n default:\n return `${V}`\n }\n}\n\n// https://webidl.spec.whatwg.org/#es-sequence\nwebidl.sequenceConverter = function (converter) {\n return (V, prefix, argument, Iterable) => {\n // 1. If Type(V) is not Object, throw a TypeError.\n if (webidl.util.Type(V) !== 'Object') {\n throw webidl.errors.exception({\n header: prefix,\n message: `${argument} (${webidl.util.Stringify(V)}) is not iterable.`\n })\n }\n\n // 2. Let method be ? GetMethod(V, @@iterator).\n /** @type {Generator} */\n const method = typeof Iterable === 'function' ? Iterable() : V?.[Symbol.iterator]?.()\n const seq = []\n let index = 0\n\n // 3. If method is undefined, throw a TypeError.\n if (\n method === undefined ||\n typeof method.next !== 'function'\n ) {\n throw webidl.errors.exception({\n header: prefix,\n message: `${argument} is not iterable.`\n })\n }\n\n // https://webidl.spec.whatwg.org/#create-sequence-from-iterable\n while (true) {\n const { done, value } = method.next()\n\n if (done) {\n break\n }\n\n seq.push(converter(value, prefix, `${argument}[${index++}]`))\n }\n\n return seq\n }\n}\n\n// https://webidl.spec.whatwg.org/#es-to-record\nwebidl.recordConverter = function (keyConverter, valueConverter) {\n return (O, prefix, argument) => {\n // 1. If Type(O) is not Object, throw a TypeError.\n if (webidl.util.Type(O) !== 'Object') {\n throw webidl.errors.exception({\n header: prefix,\n message: `${argument} (\"${webidl.util.Type(O)}\") is not an Object.`\n })\n }\n\n // 2. Let result be a new empty instance of record.\n const result = {}\n\n if (!types.isProxy(O)) {\n // 1. Let desc be ? O.[[GetOwnProperty]](key).\n const keys = [...Object.getOwnPropertyNames(O), ...Object.getOwnPropertySymbols(O)]\n\n for (const key of keys) {\n // 1. Let typedKey be key converted to an IDL value of type K.\n const typedKey = keyConverter(key, prefix, argument)\n\n // 2. Let value be ? Get(O, key).\n // 3. Let typedValue be value converted to an IDL value of type V.\n const typedValue = valueConverter(O[key], prefix, argument)\n\n // 4. Set result[typedKey] to typedValue.\n result[typedKey] = typedValue\n }\n\n // 5. Return result.\n return result\n }\n\n // 3. Let keys be ? O.[[OwnPropertyKeys]]().\n const keys = Reflect.ownKeys(O)\n\n // 4. For each key of keys.\n for (const key of keys) {\n // 1. Let desc be ? O.[[GetOwnProperty]](key).\n const desc = Reflect.getOwnPropertyDescriptor(O, key)\n\n // 2. If desc is not undefined and desc.[[Enumerable]] is true:\n if (desc?.enumerable) {\n // 1. Let typedKey be key converted to an IDL value of type K.\n const typedKey = keyConverter(key, prefix, argument)\n\n // 2. Let value be ? Get(O, key).\n // 3. Let typedValue be value converted to an IDL value of type V.\n const typedValue = valueConverter(O[key], prefix, argument)\n\n // 4. Set result[typedKey] to typedValue.\n result[typedKey] = typedValue\n }\n }\n\n // 5. Return result.\n return result\n }\n}\n\nwebidl.interfaceConverter = function (i) {\n return (V, prefix, argument, opts) => {\n if (opts?.strict !== false && !(V instanceof i)) {\n throw webidl.errors.exception({\n header: prefix,\n message: `Expected ${argument} (\"${webidl.util.Stringify(V)}\") to be an instance of ${i.name}.`\n })\n }\n\n return V\n }\n}\n\nwebidl.dictionaryConverter = function (converters) {\n return (dictionary, prefix, argument) => {\n const type = webidl.util.Type(dictionary)\n const dict = {}\n\n if (type === 'Null' || type === 'Undefined') {\n return dict\n } else if (type !== 'Object') {\n throw webidl.errors.exception({\n header: prefix,\n message: `Expected ${dictionary} to be one of: Null, Undefined, Object.`\n })\n }\n\n for (const options of converters) {\n const { key, defaultValue, required, converter } = options\n\n if (required === true) {\n if (!Object.hasOwn(dictionary, key)) {\n throw webidl.errors.exception({\n header: prefix,\n message: `Missing required key \"${key}\".`\n })\n }\n }\n\n let value = dictionary[key]\n const hasDefault = Object.hasOwn(options, 'defaultValue')\n\n // Only use defaultValue if value is undefined and\n // a defaultValue options was provided.\n if (hasDefault && value !== null) {\n value ??= defaultValue()\n }\n\n // A key can be optional and have no default value.\n // When this happens, do not perform a conversion,\n // and do not assign the key a value.\n if (required || hasDefault || value !== undefined) {\n value = converter(value, prefix, `${argument}.${key}`)\n\n if (\n options.allowedValues &&\n !options.allowedValues.includes(value)\n ) {\n throw webidl.errors.exception({\n header: prefix,\n message: `${value} is not an accepted type. Expected one of ${options.allowedValues.join(', ')}.`\n })\n }\n\n dict[key] = value\n }\n }\n\n return dict\n }\n}\n\nwebidl.nullableConverter = function (converter) {\n return (V, prefix, argument) => {\n if (V === null) {\n return V\n }\n\n return converter(V, prefix, argument)\n }\n}\n\n// https://webidl.spec.whatwg.org/#es-DOMString\nwebidl.converters.DOMString = function (V, prefix, argument, opts) {\n // 1. If V is null and the conversion is to an IDL type\n // associated with the [LegacyNullToEmptyString]\n // extended attribute, then return the DOMString value\n // that represents the empty string.\n if (V === null && opts?.legacyNullToEmptyString) {\n return ''\n }\n\n // 2. Let x be ? ToString(V).\n if (typeof V === 'symbol') {\n throw webidl.errors.exception({\n header: prefix,\n message: `${argument} is a symbol, which cannot be converted to a DOMString.`\n })\n }\n\n // 3. Return the IDL DOMString value that represents the\n // same sequence of code units as the one the\n // ECMAScript String value x represents.\n return String(V)\n}\n\n// https://webidl.spec.whatwg.org/#es-ByteString\nwebidl.converters.ByteString = function (V, prefix, argument) {\n // 1. Let x be ? ToString(V).\n // Note: DOMString converter perform ? ToString(V)\n const x = webidl.converters.DOMString(V, prefix, argument)\n\n // 2. If the value of any element of x is greater than\n // 255, then throw a TypeError.\n for (let index = 0; index < x.length; index++) {\n if (x.charCodeAt(index) > 255) {\n throw new TypeError(\n 'Cannot convert argument to a ByteString because the character at ' +\n `index ${index} has a value of ${x.charCodeAt(index)} which is greater than 255.`\n )\n }\n }\n\n // 3. Return an IDL ByteString value whose length is the\n // length of x, and where the value of each element is\n // the value of the corresponding element of x.\n return x\n}\n\n// https://webidl.spec.whatwg.org/#es-USVString\n// TODO: rewrite this so we can control the errors thrown\nwebidl.converters.USVString = toUSVString\n\n// https://webidl.spec.whatwg.org/#es-boolean\nwebidl.converters.boolean = function (V) {\n // 1. Let x be the result of computing ToBoolean(V).\n const x = Boolean(V)\n\n // 2. Return the IDL boolean value that is the one that represents\n // the same truth value as the ECMAScript Boolean value x.\n return x\n}\n\n// https://webidl.spec.whatwg.org/#es-any\nwebidl.converters.any = function (V) {\n return V\n}\n\n// https://webidl.spec.whatwg.org/#es-long-long\nwebidl.converters['long long'] = function (V, prefix, argument) {\n // 1. Let x be ? ConvertToInt(V, 64, \"signed\").\n const x = webidl.util.ConvertToInt(V, 64, 'signed', undefined, prefix, argument)\n\n // 2. Return the IDL long long value that represents\n // the same numeric value as x.\n return x\n}\n\n// https://webidl.spec.whatwg.org/#es-unsigned-long-long\nwebidl.converters['unsigned long long'] = function (V, prefix, argument) {\n // 1. Let x be ? ConvertToInt(V, 64, \"unsigned\").\n const x = webidl.util.ConvertToInt(V, 64, 'unsigned', undefined, prefix, argument)\n\n // 2. Return the IDL unsigned long long value that\n // represents the same numeric value as x.\n return x\n}\n\n// https://webidl.spec.whatwg.org/#es-unsigned-long\nwebidl.converters['unsigned long'] = function (V, prefix, argument) {\n // 1. Let x be ? ConvertToInt(V, 32, \"unsigned\").\n const x = webidl.util.ConvertToInt(V, 32, 'unsigned', undefined, prefix, argument)\n\n // 2. Return the IDL unsigned long value that\n // represents the same numeric value as x.\n return x\n}\n\n// https://webidl.spec.whatwg.org/#es-unsigned-short\nwebidl.converters['unsigned short'] = function (V, prefix, argument, opts) {\n // 1. Let x be ? ConvertToInt(V, 16, \"unsigned\").\n const x = webidl.util.ConvertToInt(V, 16, 'unsigned', opts, prefix, argument)\n\n // 2. Return the IDL unsigned short value that represents\n // the same numeric value as x.\n return x\n}\n\n// https://webidl.spec.whatwg.org/#idl-ArrayBuffer\nwebidl.converters.ArrayBuffer = function (V, prefix, argument, opts) {\n // 1. If Type(V) is not Object, or V does not have an\n // [[ArrayBufferData]] internal slot, then throw a\n // TypeError.\n // see: https://tc39.es/ecma262/#sec-properties-of-the-arraybuffer-instances\n // see: https://tc39.es/ecma262/#sec-properties-of-the-sharedarraybuffer-instances\n if (\n webidl.util.Type(V) !== 'Object' ||\n !types.isAnyArrayBuffer(V)\n ) {\n throw webidl.errors.conversionFailed({\n prefix,\n argument: `${argument} (\"${webidl.util.Stringify(V)}\")`,\n types: ['ArrayBuffer']\n })\n }\n\n // 2. If the conversion is not to an IDL type associated\n // with the [AllowShared] extended attribute, and\n // IsSharedArrayBuffer(V) is true, then throw a\n // TypeError.\n if (opts?.allowShared === false && types.isSharedArrayBuffer(V)) {\n throw webidl.errors.exception({\n header: 'ArrayBuffer',\n message: 'SharedArrayBuffer is not allowed.'\n })\n }\n\n // 3. If the conversion is not to an IDL type associated\n // with the [AllowResizable] extended attribute, and\n // IsResizableArrayBuffer(V) is true, then throw a\n // TypeError.\n if (V.resizable || V.growable) {\n throw webidl.errors.exception({\n header: 'ArrayBuffer',\n message: 'Received a resizable ArrayBuffer.'\n })\n }\n\n // 4. Return the IDL ArrayBuffer value that is a\n // reference to the same object as V.\n return V\n}\n\nwebidl.converters.TypedArray = function (V, T, prefix, name, opts) {\n // 1. Let T be the IDL type V is being converted to.\n\n // 2. If Type(V) is not Object, or V does not have a\n // [[TypedArrayName]] internal slot with a value\n // equal to T\u2019s name, then throw a TypeError.\n if (\n webidl.util.Type(V) !== 'Object' ||\n !types.isTypedArray(V) ||\n V.constructor.name !== T.name\n ) {\n throw webidl.errors.conversionFailed({\n prefix,\n argument: `${name} (\"${webidl.util.Stringify(V)}\")`,\n types: [T.name]\n })\n }\n\n // 3. If the conversion is not to an IDL type associated\n // with the [AllowShared] extended attribute, and\n // IsSharedArrayBuffer(V.[[ViewedArrayBuffer]]) is\n // true, then throw a TypeError.\n if (opts?.allowShared === false && types.isSharedArrayBuffer(V.buffer)) {\n throw webidl.errors.exception({\n header: 'ArrayBuffer',\n message: 'SharedArrayBuffer is not allowed.'\n })\n }\n\n // 4. If the conversion is not to an IDL type associated\n // with the [AllowResizable] extended attribute, and\n // IsResizableArrayBuffer(V.[[ViewedArrayBuffer]]) is\n // true, then throw a TypeError.\n if (V.buffer.resizable || V.buffer.growable) {\n throw webidl.errors.exception({\n header: 'ArrayBuffer',\n message: 'Received a resizable ArrayBuffer.'\n })\n }\n\n // 5. Return the IDL value of type T that is a reference\n // to the same object as V.\n return V\n}\n\nwebidl.converters.DataView = function (V, prefix, name, opts) {\n // 1. If Type(V) is not Object, or V does not have a\n // [[DataView]] internal slot, then throw a TypeError.\n if (webidl.util.Type(V) !== 'Object' || !types.isDataView(V)) {\n throw webidl.errors.exception({\n header: prefix,\n message: `${name} is not a DataView.`\n })\n }\n\n // 2. If the conversion is not to an IDL type associated\n // with the [AllowShared] extended attribute, and\n // IsSharedArrayBuffer(V.[[ViewedArrayBuffer]]) is true,\n // then throw a TypeError.\n if (opts?.allowShared === false && types.isSharedArrayBuffer(V.buffer)) {\n throw webidl.errors.exception({\n header: 'ArrayBuffer',\n message: 'SharedArrayBuffer is not allowed.'\n })\n }\n\n // 3. If the conversion is not to an IDL type associated\n // with the [AllowResizable] extended attribute, and\n // IsResizableArrayBuffer(V.[[ViewedArrayBuffer]]) is\n // true, then throw a TypeError.\n if (V.buffer.resizable || V.buffer.growable) {\n throw webidl.errors.exception({\n header: 'ArrayBuffer',\n message: 'Received a resizable ArrayBuffer.'\n })\n }\n\n // 4. Return the IDL DataView value that is a reference\n // to the same object as V.\n return V\n}\n\n// https://webidl.spec.whatwg.org/#BufferSource\nwebidl.converters.BufferSource = function (V, prefix, name, opts) {\n if (types.isAnyArrayBuffer(V)) {\n return webidl.converters.ArrayBuffer(V, prefix, name, { ...opts, allowShared: false })\n }\n\n if (types.isTypedArray(V)) {\n return webidl.converters.TypedArray(V, V.constructor, prefix, name, { ...opts, allowShared: false })\n }\n\n if (types.isDataView(V)) {\n return webidl.converters.DataView(V, prefix, name, { ...opts, allowShared: false })\n }\n\n throw webidl.errors.conversionFailed({\n prefix,\n argument: `${name} (\"${webidl.util.Stringify(V)}\")`,\n types: ['BufferSource']\n })\n}\n\nwebidl.converters['sequence'] = webidl.sequenceConverter(\n webidl.converters.ByteString\n)\n\nwebidl.converters['sequence>'] = webidl.sequenceConverter(\n webidl.converters['sequence']\n)\n\nwebidl.converters['record'] = webidl.recordConverter(\n webidl.converters.ByteString,\n webidl.converters.ByteString\n)\n\nmodule.exports = {\n webidl\n}\n", "'use strict'\n\nconst { Transform } = require('node:stream')\nconst zlib = require('node:zlib')\nconst { redirectStatusSet, referrerPolicySet: referrerPolicyTokens, badPortsSet } = require('./constants')\nconst { getGlobalOrigin } = require('./global')\nconst { collectASequenceOfCodePoints, collectAnHTTPQuotedString, removeChars, parseMIMEType } = require('./data-url')\nconst { performance } = require('node:perf_hooks')\nconst { isBlobLike, ReadableStreamFrom, isValidHTTPToken, normalizedMethodRecordsBase } = require('../../core/util')\nconst assert = require('node:assert')\nconst { isUint8Array } = require('node:util/types')\nconst { webidl } = require('./webidl')\n\nlet supportedHashes = []\n\n// https://nodejs.org/api/crypto.html#determining-if-crypto-support-is-unavailable\n/** @type {import('crypto')} */\nlet crypto\ntry {\n crypto = require('node:crypto')\n const possibleRelevantHashes = ['sha256', 'sha384', 'sha512']\n supportedHashes = crypto.getHashes().filter((hash) => possibleRelevantHashes.includes(hash))\n/* c8 ignore next 3 */\n} catch {\n\n}\n\nfunction responseURL (response) {\n // https://fetch.spec.whatwg.org/#responses\n // A response has an associated URL. It is a pointer to the last URL\n // in response\u2019s URL list and null if response\u2019s URL list is empty.\n const urlList = response.urlList\n const length = urlList.length\n return length === 0 ? null : urlList[length - 1].toString()\n}\n\n// https://fetch.spec.whatwg.org/#concept-response-location-url\nfunction responseLocationURL (response, requestFragment) {\n // 1. If response\u2019s status is not a redirect status, then return null.\n if (!redirectStatusSet.has(response.status)) {\n return null\n }\n\n // 2. Let location be the result of extracting header list values given\n // `Location` and response\u2019s header list.\n let location = response.headersList.get('location', true)\n\n // 3. If location is a header value, then set location to the result of\n // parsing location with response\u2019s URL.\n if (location !== null && isValidHeaderValue(location)) {\n if (!isValidEncodedURL(location)) {\n // Some websites respond location header in UTF-8 form without encoding them as ASCII\n // and major browsers redirect them to correctly UTF-8 encoded addresses.\n // Here, we handle that behavior in the same way.\n location = normalizeBinaryStringToUtf8(location)\n }\n location = new URL(location, responseURL(response))\n }\n\n // 4. If location is a URL whose fragment is null, then set location\u2019s\n // fragment to requestFragment.\n if (location && !location.hash) {\n location.hash = requestFragment\n }\n\n // 5. Return location.\n return location\n}\n\n/**\n * @see https://www.rfc-editor.org/rfc/rfc1738#section-2.2\n * @param {string} url\n * @returns {boolean}\n */\nfunction isValidEncodedURL (url) {\n for (let i = 0; i < url.length; ++i) {\n const code = url.charCodeAt(i)\n\n if (\n code > 0x7E || // Non-US-ASCII + DEL\n code < 0x20 // Control characters NUL - US\n ) {\n return false\n }\n }\n return true\n}\n\n/**\n * If string contains non-ASCII characters, assumes it's UTF-8 encoded and decodes it.\n * Since UTF-8 is a superset of ASCII, this will work for ASCII strings as well.\n * @param {string} value\n * @returns {string}\n */\nfunction normalizeBinaryStringToUtf8 (value) {\n return Buffer.from(value, 'binary').toString('utf8')\n}\n\n/** @returns {URL} */\nfunction requestCurrentURL (request) {\n return request.urlList[request.urlList.length - 1]\n}\n\nfunction requestBadPort (request) {\n // 1. Let url be request\u2019s current URL.\n const url = requestCurrentURL(request)\n\n // 2. If url\u2019s scheme is an HTTP(S) scheme and url\u2019s port is a bad port,\n // then return blocked.\n if (urlIsHttpHttpsScheme(url) && badPortsSet.has(url.port)) {\n return 'blocked'\n }\n\n // 3. Return allowed.\n return 'allowed'\n}\n\nfunction isErrorLike (object) {\n return object instanceof Error || (\n object?.constructor?.name === 'Error' ||\n object?.constructor?.name === 'DOMException'\n )\n}\n\n// Check whether |statusText| is a ByteString and\n// matches the Reason-Phrase token production.\n// RFC 2616: https://tools.ietf.org/html/rfc2616\n// RFC 7230: https://tools.ietf.org/html/rfc7230\n// \"reason-phrase = *( HTAB / SP / VCHAR / obs-text )\"\n// https://github.com/chromium/chromium/blob/94.0.4604.1/third_party/blink/renderer/core/fetch/response.cc#L116\nfunction isValidReasonPhrase (statusText) {\n for (let i = 0; i < statusText.length; ++i) {\n const c = statusText.charCodeAt(i)\n if (\n !(\n (\n c === 0x09 || // HTAB\n (c >= 0x20 && c <= 0x7e) || // SP / VCHAR\n (c >= 0x80 && c <= 0xff)\n ) // obs-text\n )\n ) {\n return false\n }\n }\n return true\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#header-name\n * @param {string} potentialValue\n */\nconst isValidHeaderName = isValidHTTPToken\n\n/**\n * @see https://fetch.spec.whatwg.org/#header-value\n * @param {string} potentialValue\n */\nfunction isValidHeaderValue (potentialValue) {\n // - Has no leading or trailing HTTP tab or space bytes.\n // - Contains no 0x00 (NUL) or HTTP newline bytes.\n return (\n potentialValue[0] === '\\t' ||\n potentialValue[0] === ' ' ||\n potentialValue[potentialValue.length - 1] === '\\t' ||\n potentialValue[potentialValue.length - 1] === ' ' ||\n potentialValue.includes('\\n') ||\n potentialValue.includes('\\r') ||\n potentialValue.includes('\\0')\n ) === false\n}\n\n// https://w3c.github.io/webappsec-referrer-policy/#set-requests-referrer-policy-on-redirect\nfunction setRequestReferrerPolicyOnRedirect (request, actualResponse) {\n // Given a request request and a response actualResponse, this algorithm\n // updates request\u2019s referrer policy according to the Referrer-Policy\n // header (if any) in actualResponse.\n\n // 1. Let policy be the result of executing \u00A7 8.1 Parse a referrer policy\n // from a Referrer-Policy header on actualResponse.\n\n // 8.1 Parse a referrer policy from a Referrer-Policy header\n // 1. Let policy-tokens be the result of extracting header list values given `Referrer-Policy` and response\u2019s header list.\n const { headersList } = actualResponse\n // 2. Let policy be the empty string.\n // 3. For each token in policy-tokens, if token is a referrer policy and token is not the empty string, then set policy to token.\n // 4. Return policy.\n const policyHeader = (headersList.get('referrer-policy', true) ?? '').split(',')\n\n // Note: As the referrer-policy can contain multiple policies\n // separated by comma, we need to loop through all of them\n // and pick the first valid one.\n // Ref: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy#specify_a_fallback_policy\n let policy = ''\n if (policyHeader.length > 0) {\n // The right-most policy takes precedence.\n // The left-most policy is the fallback.\n for (let i = policyHeader.length; i !== 0; i--) {\n const token = policyHeader[i - 1].trim()\n if (referrerPolicyTokens.has(token)) {\n policy = token\n break\n }\n }\n }\n\n // 2. If policy is not the empty string, then set request\u2019s referrer policy to policy.\n if (policy !== '') {\n request.referrerPolicy = policy\n }\n}\n\n// https://fetch.spec.whatwg.org/#cross-origin-resource-policy-check\nfunction crossOriginResourcePolicyCheck () {\n // TODO\n return 'allowed'\n}\n\n// https://fetch.spec.whatwg.org/#concept-cors-check\nfunction corsCheck () {\n // TODO\n return 'success'\n}\n\n// https://fetch.spec.whatwg.org/#concept-tao-check\nfunction TAOCheck () {\n // TODO\n return 'success'\n}\n\nfunction appendFetchMetadata (httpRequest) {\n // https://w3c.github.io/webappsec-fetch-metadata/#sec-fetch-dest-header\n // TODO\n\n // https://w3c.github.io/webappsec-fetch-metadata/#sec-fetch-mode-header\n\n // 1. Assert: r\u2019s url is a potentially trustworthy URL.\n // TODO\n\n // 2. Let header be a Structured Header whose value is a token.\n let header = null\n\n // 3. Set header\u2019s value to r\u2019s mode.\n header = httpRequest.mode\n\n // 4. Set a structured field value `Sec-Fetch-Mode`/header in r\u2019s header list.\n httpRequest.headersList.set('sec-fetch-mode', header, true)\n\n // https://w3c.github.io/webappsec-fetch-metadata/#sec-fetch-site-header\n // TODO\n\n // https://w3c.github.io/webappsec-fetch-metadata/#sec-fetch-user-header\n // TODO\n}\n\n// https://fetch.spec.whatwg.org/#append-a-request-origin-header\nfunction appendRequestOriginHeader (request) {\n // 1. Let serializedOrigin be the result of byte-serializing a request origin\n // with request.\n // TODO: implement \"byte-serializing a request origin\"\n let serializedOrigin = request.origin\n\n // - \"'client' is changed to an origin during fetching.\"\n // This doesn't happen in undici (in most cases) because undici, by default,\n // has no concept of origin.\n // - request.origin can also be set to request.client.origin (client being\n // an environment settings object), which is undefined without using\n // setGlobalOrigin.\n if (serializedOrigin === 'client' || serializedOrigin === undefined) {\n return\n }\n\n // 2. If request\u2019s response tainting is \"cors\" or request\u2019s mode is \"websocket\",\n // then append (`Origin`, serializedOrigin) to request\u2019s header list.\n // 3. Otherwise, if request\u2019s method is neither `GET` nor `HEAD`, then:\n if (request.responseTainting === 'cors' || request.mode === 'websocket') {\n request.headersList.append('origin', serializedOrigin, true)\n } else if (request.method !== 'GET' && request.method !== 'HEAD') {\n // 1. Switch on request\u2019s referrer policy:\n switch (request.referrerPolicy) {\n case 'no-referrer':\n // Set serializedOrigin to `null`.\n serializedOrigin = null\n break\n case 'no-referrer-when-downgrade':\n case 'strict-origin':\n case 'strict-origin-when-cross-origin':\n // If request\u2019s origin is a tuple origin, its scheme is \"https\", and\n // request\u2019s current URL\u2019s scheme is not \"https\", then set\n // serializedOrigin to `null`.\n if (request.origin && urlHasHttpsScheme(request.origin) && !urlHasHttpsScheme(requestCurrentURL(request))) {\n serializedOrigin = null\n }\n break\n case 'same-origin':\n // If request\u2019s origin is not same origin with request\u2019s current URL\u2019s\n // origin, then set serializedOrigin to `null`.\n if (!sameOrigin(request, requestCurrentURL(request))) {\n serializedOrigin = null\n }\n break\n default:\n // Do nothing.\n }\n\n // 2. Append (`Origin`, serializedOrigin) to request\u2019s header list.\n request.headersList.append('origin', serializedOrigin, true)\n }\n}\n\n// https://w3c.github.io/hr-time/#dfn-coarsen-time\nfunction coarsenTime (timestamp, crossOriginIsolatedCapability) {\n // TODO\n return timestamp\n}\n\n// https://fetch.spec.whatwg.org/#clamp-and-coarsen-connection-timing-info\nfunction clampAndCoarsenConnectionTimingInfo (connectionTimingInfo, defaultStartTime, crossOriginIsolatedCapability) {\n if (!connectionTimingInfo?.startTime || connectionTimingInfo.startTime < defaultStartTime) {\n return {\n domainLookupStartTime: defaultStartTime,\n domainLookupEndTime: defaultStartTime,\n connectionStartTime: defaultStartTime,\n connectionEndTime: defaultStartTime,\n secureConnectionStartTime: defaultStartTime,\n ALPNNegotiatedProtocol: connectionTimingInfo?.ALPNNegotiatedProtocol\n }\n }\n\n return {\n domainLookupStartTime: coarsenTime(connectionTimingInfo.domainLookupStartTime, crossOriginIsolatedCapability),\n domainLookupEndTime: coarsenTime(connectionTimingInfo.domainLookupEndTime, crossOriginIsolatedCapability),\n connectionStartTime: coarsenTime(connectionTimingInfo.connectionStartTime, crossOriginIsolatedCapability),\n connectionEndTime: coarsenTime(connectionTimingInfo.connectionEndTime, crossOriginIsolatedCapability),\n secureConnectionStartTime: coarsenTime(connectionTimingInfo.secureConnectionStartTime, crossOriginIsolatedCapability),\n ALPNNegotiatedProtocol: connectionTimingInfo.ALPNNegotiatedProtocol\n }\n}\n\n// https://w3c.github.io/hr-time/#dfn-coarsened-shared-current-time\nfunction coarsenedSharedCurrentTime (crossOriginIsolatedCapability) {\n return coarsenTime(performance.now(), crossOriginIsolatedCapability)\n}\n\n// https://fetch.spec.whatwg.org/#create-an-opaque-timing-info\nfunction createOpaqueTimingInfo (timingInfo) {\n return {\n startTime: timingInfo.startTime ?? 0,\n redirectStartTime: 0,\n redirectEndTime: 0,\n postRedirectStartTime: timingInfo.startTime ?? 0,\n finalServiceWorkerStartTime: 0,\n finalNetworkResponseStartTime: 0,\n finalNetworkRequestStartTime: 0,\n endTime: 0,\n encodedBodySize: 0,\n decodedBodySize: 0,\n finalConnectionTimingInfo: null\n }\n}\n\n// https://html.spec.whatwg.org/multipage/origin.html#policy-container\nfunction makePolicyContainer () {\n // Note: the fetch spec doesn't make use of embedder policy or CSP list\n return {\n referrerPolicy: 'strict-origin-when-cross-origin'\n }\n}\n\n// https://html.spec.whatwg.org/multipage/origin.html#clone-a-policy-container\nfunction clonePolicyContainer (policyContainer) {\n return {\n referrerPolicy: policyContainer.referrerPolicy\n }\n}\n\n// https://w3c.github.io/webappsec-referrer-policy/#determine-requests-referrer\nfunction determineRequestsReferrer (request) {\n // 1. Let policy be request's referrer policy.\n const policy = request.referrerPolicy\n\n // Note: policy cannot (shouldn't) be null or an empty string.\n assert(policy)\n\n // 2. Let environment be request\u2019s client.\n\n let referrerSource = null\n\n // 3. Switch on request\u2019s referrer:\n if (request.referrer === 'client') {\n // Note: node isn't a browser and doesn't implement document/iframes,\n // so we bypass this step and replace it with our own.\n\n const globalOrigin = getGlobalOrigin()\n\n if (!globalOrigin || globalOrigin.origin === 'null') {\n return 'no-referrer'\n }\n\n // note: we need to clone it as it's mutated\n referrerSource = new URL(globalOrigin)\n } else if (request.referrer instanceof URL) {\n // Let referrerSource be request\u2019s referrer.\n referrerSource = request.referrer\n }\n\n // 4. Let request\u2019s referrerURL be the result of stripping referrerSource for\n // use as a referrer.\n let referrerURL = stripURLForReferrer(referrerSource)\n\n // 5. Let referrerOrigin be the result of stripping referrerSource for use as\n // a referrer, with the origin-only flag set to true.\n const referrerOrigin = stripURLForReferrer(referrerSource, true)\n\n // 6. If the result of serializing referrerURL is a string whose length is\n // greater than 4096, set referrerURL to referrerOrigin.\n if (referrerURL.toString().length > 4096) {\n referrerURL = referrerOrigin\n }\n\n const areSameOrigin = sameOrigin(request, referrerURL)\n const isNonPotentiallyTrustWorthy = isURLPotentiallyTrustworthy(referrerURL) &&\n !isURLPotentiallyTrustworthy(request.url)\n\n // 8. Execute the switch statements corresponding to the value of policy:\n switch (policy) {\n case 'origin': return referrerOrigin != null ? referrerOrigin : stripURLForReferrer(referrerSource, true)\n case 'unsafe-url': return referrerURL\n case 'same-origin':\n return areSameOrigin ? referrerOrigin : 'no-referrer'\n case 'origin-when-cross-origin':\n return areSameOrigin ? referrerURL : referrerOrigin\n case 'strict-origin-when-cross-origin': {\n const currentURL = requestCurrentURL(request)\n\n // 1. If the origin of referrerURL and the origin of request\u2019s current\n // URL are the same, then return referrerURL.\n if (sameOrigin(referrerURL, currentURL)) {\n return referrerURL\n }\n\n // 2. If referrerURL is a potentially trustworthy URL and request\u2019s\n // current URL is not a potentially trustworthy URL, then return no\n // referrer.\n if (isURLPotentiallyTrustworthy(referrerURL) && !isURLPotentiallyTrustworthy(currentURL)) {\n return 'no-referrer'\n }\n\n // 3. Return referrerOrigin.\n return referrerOrigin\n }\n case 'strict-origin': // eslint-disable-line\n /**\n * 1. If referrerURL is a potentially trustworthy URL and\n * request\u2019s current URL is not a potentially trustworthy URL,\n * then return no referrer.\n * 2. Return referrerOrigin\n */\n case 'no-referrer-when-downgrade': // eslint-disable-line\n /**\n * 1. If referrerURL is a potentially trustworthy URL and\n * request\u2019s current URL is not a potentially trustworthy URL,\n * then return no referrer.\n * 2. Return referrerOrigin\n */\n\n default: // eslint-disable-line\n return isNonPotentiallyTrustWorthy ? 'no-referrer' : referrerOrigin\n }\n}\n\n/**\n * @see https://w3c.github.io/webappsec-referrer-policy/#strip-url\n * @param {URL} url\n * @param {boolean|undefined} originOnly\n */\nfunction stripURLForReferrer (url, originOnly) {\n // 1. Assert: url is a URL.\n assert(url instanceof URL)\n\n url = new URL(url)\n\n // 2. If url\u2019s scheme is a local scheme, then return no referrer.\n if (url.protocol === 'file:' || url.protocol === 'about:' || url.protocol === 'blank:') {\n return 'no-referrer'\n }\n\n // 3. Set url\u2019s username to the empty string.\n url.username = ''\n\n // 4. Set url\u2019s password to the empty string.\n url.password = ''\n\n // 5. Set url\u2019s fragment to null.\n url.hash = ''\n\n // 6. If the origin-only flag is true, then:\n if (originOnly) {\n // 1. Set url\u2019s path to \u00AB the empty string \u00BB.\n url.pathname = ''\n\n // 2. Set url\u2019s query to null.\n url.search = ''\n }\n\n // 7. Return url.\n return url\n}\n\nfunction isURLPotentiallyTrustworthy (url) {\n if (!(url instanceof URL)) {\n return false\n }\n\n // If child of about, return true\n if (url.href === 'about:blank' || url.href === 'about:srcdoc') {\n return true\n }\n\n // If scheme is data, return true\n if (url.protocol === 'data:') return true\n\n // If file, return true\n if (url.protocol === 'file:') return true\n\n return isOriginPotentiallyTrustworthy(url.origin)\n\n function isOriginPotentiallyTrustworthy (origin) {\n // If origin is explicitly null, return false\n if (origin == null || origin === 'null') return false\n\n const originAsURL = new URL(origin)\n\n // If secure, return true\n if (originAsURL.protocol === 'https:' || originAsURL.protocol === 'wss:') {\n return true\n }\n\n // If localhost or variants, return true\n if (/^127(?:\\.[0-9]+){0,2}\\.[0-9]+$|^\\[(?:0*:)*?:?0*1\\]$/.test(originAsURL.hostname) ||\n (originAsURL.hostname === 'localhost' || originAsURL.hostname.includes('localhost.')) ||\n (originAsURL.hostname.endsWith('.localhost'))) {\n return true\n }\n\n // If any other, return false\n return false\n }\n}\n\n/**\n * @see https://w3c.github.io/webappsec-subresource-integrity/#does-response-match-metadatalist\n * @param {Uint8Array} bytes\n * @param {string} metadataList\n */\nfunction bytesMatch (bytes, metadataList) {\n // If node is not built with OpenSSL support, we cannot check\n // a request's integrity, so allow it by default (the spec will\n // allow requests if an invalid hash is given, as precedence).\n /* istanbul ignore if: only if node is built with --without-ssl */\n if (crypto === undefined) {\n return true\n }\n\n // 1. Let parsedMetadata be the result of parsing metadataList.\n const parsedMetadata = parseMetadata(metadataList)\n\n // 2. If parsedMetadata is no metadata, return true.\n if (parsedMetadata === 'no metadata') {\n return true\n }\n\n // 3. If response is not eligible for integrity validation, return false.\n // TODO\n\n // 4. If parsedMetadata is the empty set, return true.\n if (parsedMetadata.length === 0) {\n return true\n }\n\n // 5. Let metadata be the result of getting the strongest\n // metadata from parsedMetadata.\n const strongest = getStrongestMetadata(parsedMetadata)\n const metadata = filterMetadataListByAlgorithm(parsedMetadata, strongest)\n\n // 6. For each item in metadata:\n for (const item of metadata) {\n // 1. Let algorithm be the alg component of item.\n const algorithm = item.algo\n\n // 2. Let expectedValue be the val component of item.\n const expectedValue = item.hash\n\n // See https://github.com/web-platform-tests/wpt/commit/e4c5cc7a5e48093220528dfdd1c4012dc3837a0e\n // \"be liberal with padding\". This is annoying, and it's not even in the spec.\n\n // 3. Let actualValue be the result of applying algorithm to bytes.\n let actualValue = crypto.createHash(algorithm).update(bytes).digest('base64')\n\n if (actualValue[actualValue.length - 1] === '=') {\n if (actualValue[actualValue.length - 2] === '=') {\n actualValue = actualValue.slice(0, -2)\n } else {\n actualValue = actualValue.slice(0, -1)\n }\n }\n\n // 4. If actualValue is a case-sensitive match for expectedValue,\n // return true.\n if (compareBase64Mixed(actualValue, expectedValue)) {\n return true\n }\n }\n\n // 7. Return false.\n return false\n}\n\n// https://w3c.github.io/webappsec-subresource-integrity/#grammardef-hash-with-options\n// https://www.w3.org/TR/CSP2/#source-list-syntax\n// https://www.rfc-editor.org/rfc/rfc5234#appendix-B.1\nconst parseHashWithOptions = /(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\\s|$)( +[!-~]*)?)?/i\n\n/**\n * @see https://w3c.github.io/webappsec-subresource-integrity/#parse-metadata\n * @param {string} metadata\n */\nfunction parseMetadata (metadata) {\n // 1. Let result be the empty set.\n /** @type {{ algo: string, hash: string }[]} */\n const result = []\n\n // 2. Let empty be equal to true.\n let empty = true\n\n // 3. For each token returned by splitting metadata on spaces:\n for (const token of metadata.split(' ')) {\n // 1. Set empty to false.\n empty = false\n\n // 2. Parse token as a hash-with-options.\n const parsedToken = parseHashWithOptions.exec(token)\n\n // 3. If token does not parse, continue to the next token.\n if (\n parsedToken === null ||\n parsedToken.groups === undefined ||\n parsedToken.groups.algo === undefined\n ) {\n // Note: Chromium blocks the request at this point, but Firefox\n // gives a warning that an invalid integrity was given. The\n // correct behavior is to ignore these, and subsequently not\n // check the integrity of the resource.\n continue\n }\n\n // 4. Let algorithm be the hash-algo component of token.\n const algorithm = parsedToken.groups.algo.toLowerCase()\n\n // 5. If algorithm is a hash function recognized by the user\n // agent, add the parsed token to result.\n if (supportedHashes.includes(algorithm)) {\n result.push(parsedToken.groups)\n }\n }\n\n // 4. Return no metadata if empty is true, otherwise return result.\n if (empty === true) {\n return 'no metadata'\n }\n\n return result\n}\n\n/**\n * @param {{ algo: 'sha256' | 'sha384' | 'sha512' }[]} metadataList\n */\nfunction getStrongestMetadata (metadataList) {\n // Let algorithm be the algo component of the first item in metadataList.\n // Can be sha256\n let algorithm = metadataList[0].algo\n // If the algorithm is sha512, then it is the strongest\n // and we can return immediately\n if (algorithm[3] === '5') {\n return algorithm\n }\n\n for (let i = 1; i < metadataList.length; ++i) {\n const metadata = metadataList[i]\n // If the algorithm is sha512, then it is the strongest\n // and we can break the loop immediately\n if (metadata.algo[3] === '5') {\n algorithm = 'sha512'\n break\n // If the algorithm is sha384, then a potential sha256 or sha384 is ignored\n } else if (algorithm[3] === '3') {\n continue\n // algorithm is sha256, check if algorithm is sha384 and if so, set it as\n // the strongest\n } else if (metadata.algo[3] === '3') {\n algorithm = 'sha384'\n }\n }\n return algorithm\n}\n\nfunction filterMetadataListByAlgorithm (metadataList, algorithm) {\n if (metadataList.length === 1) {\n return metadataList\n }\n\n let pos = 0\n for (let i = 0; i < metadataList.length; ++i) {\n if (metadataList[i].algo === algorithm) {\n metadataList[pos++] = metadataList[i]\n }\n }\n\n metadataList.length = pos\n\n return metadataList\n}\n\n/**\n * Compares two base64 strings, allowing for base64url\n * in the second string.\n *\n* @param {string} actualValue always base64\n * @param {string} expectedValue base64 or base64url\n * @returns {boolean}\n */\nfunction compareBase64Mixed (actualValue, expectedValue) {\n if (actualValue.length !== expectedValue.length) {\n return false\n }\n for (let i = 0; i < actualValue.length; ++i) {\n if (actualValue[i] !== expectedValue[i]) {\n if (\n (actualValue[i] === '+' && expectedValue[i] === '-') ||\n (actualValue[i] === '/' && expectedValue[i] === '_')\n ) {\n continue\n }\n return false\n }\n }\n\n return true\n}\n\n// https://w3c.github.io/webappsec-upgrade-insecure-requests/#upgrade-request\nfunction tryUpgradeRequestToAPotentiallyTrustworthyURL (request) {\n // TODO\n}\n\n/**\n * @link {https://html.spec.whatwg.org/multipage/origin.html#same-origin}\n * @param {URL} A\n * @param {URL} B\n */\nfunction sameOrigin (A, B) {\n // 1. If A and B are the same opaque origin, then return true.\n if (A.origin === B.origin && A.origin === 'null') {\n return true\n }\n\n // 2. If A and B are both tuple origins and their schemes,\n // hosts, and port are identical, then return true.\n if (A.protocol === B.protocol && A.hostname === B.hostname && A.port === B.port) {\n return true\n }\n\n // 3. Return false.\n return false\n}\n\nfunction createDeferredPromise () {\n let res\n let rej\n const promise = new Promise((resolve, reject) => {\n res = resolve\n rej = reject\n })\n\n return { promise, resolve: res, reject: rej }\n}\n\nfunction isAborted (fetchParams) {\n return fetchParams.controller.state === 'aborted'\n}\n\nfunction isCancelled (fetchParams) {\n return fetchParams.controller.state === 'aborted' ||\n fetchParams.controller.state === 'terminated'\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#concept-method-normalize\n * @param {string} method\n */\nfunction normalizeMethod (method) {\n return normalizedMethodRecordsBase[method.toLowerCase()] ?? method\n}\n\n// https://infra.spec.whatwg.org/#serialize-a-javascript-value-to-a-json-string\nfunction serializeJavascriptValueToJSONString (value) {\n // 1. Let result be ? Call(%JSON.stringify%, undefined, \u00AB value \u00BB).\n const result = JSON.stringify(value)\n\n // 2. If result is undefined, then throw a TypeError.\n if (result === undefined) {\n throw new TypeError('Value is not JSON serializable')\n }\n\n // 3. Assert: result is a string.\n assert(typeof result === 'string')\n\n // 4. Return result.\n return result\n}\n\n// https://tc39.es/ecma262/#sec-%25iteratorprototype%25-object\nconst esIteratorPrototype = Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()))\n\n/**\n * @see https://webidl.spec.whatwg.org/#dfn-iterator-prototype-object\n * @param {string} name name of the instance\n * @param {symbol} kInternalIterator\n * @param {string | number} [keyIndex]\n * @param {string | number} [valueIndex]\n */\nfunction createIterator (name, kInternalIterator, keyIndex = 0, valueIndex = 1) {\n class FastIterableIterator {\n /** @type {any} */\n #target\n /** @type {'key' | 'value' | 'key+value'} */\n #kind\n /** @type {number} */\n #index\n\n /**\n * @see https://webidl.spec.whatwg.org/#dfn-default-iterator-object\n * @param {unknown} target\n * @param {'key' | 'value' | 'key+value'} kind\n */\n constructor (target, kind) {\n this.#target = target\n this.#kind = kind\n this.#index = 0\n }\n\n next () {\n // 1. Let interface be the interface for which the iterator prototype object exists.\n // 2. Let thisValue be the this value.\n // 3. Let object be ? ToObject(thisValue).\n // 4. If object is a platform object, then perform a security\n // check, passing:\n // 5. If object is not a default iterator object for interface,\n // then throw a TypeError.\n if (typeof this !== 'object' || this === null || !(#target in this)) {\n throw new TypeError(\n `'next' called on an object that does not implement interface ${name} Iterator.`\n )\n }\n\n // 6. Let index be object\u2019s index.\n // 7. Let kind be object\u2019s kind.\n // 8. Let values be object\u2019s target's value pairs to iterate over.\n const index = this.#index\n const values = this.#target[kInternalIterator]\n\n // 9. Let len be the length of values.\n const len = values.length\n\n // 10. If index is greater than or equal to len, then return\n // CreateIterResultObject(undefined, true).\n if (index >= len) {\n return {\n value: undefined,\n done: true\n }\n }\n\n // 11. Let pair be the entry in values at index index.\n const { [keyIndex]: key, [valueIndex]: value } = values[index]\n\n // 12. Set object\u2019s index to index + 1.\n this.#index = index + 1\n\n // 13. Return the iterator result for pair and kind.\n\n // https://webidl.spec.whatwg.org/#iterator-result\n\n // 1. Let result be a value determined by the value of kind:\n let result\n switch (this.#kind) {\n case 'key':\n // 1. Let idlKey be pair\u2019s key.\n // 2. Let key be the result of converting idlKey to an\n // ECMAScript value.\n // 3. result is key.\n result = key\n break\n case 'value':\n // 1. Let idlValue be pair\u2019s value.\n // 2. Let value be the result of converting idlValue to\n // an ECMAScript value.\n // 3. result is value.\n result = value\n break\n case 'key+value':\n // 1. Let idlKey be pair\u2019s key.\n // 2. Let idlValue be pair\u2019s value.\n // 3. Let key be the result of converting idlKey to an\n // ECMAScript value.\n // 4. Let value be the result of converting idlValue to\n // an ECMAScript value.\n // 5. Let array be ! ArrayCreate(2).\n // 6. Call ! CreateDataProperty(array, \"0\", key).\n // 7. Call ! CreateDataProperty(array, \"1\", value).\n // 8. result is array.\n result = [key, value]\n break\n }\n\n // 2. Return CreateIterResultObject(result, false).\n return {\n value: result,\n done: false\n }\n }\n }\n\n // https://webidl.spec.whatwg.org/#dfn-iterator-prototype-object\n // @ts-ignore\n delete FastIterableIterator.prototype.constructor\n\n Object.setPrototypeOf(FastIterableIterator.prototype, esIteratorPrototype)\n\n Object.defineProperties(FastIterableIterator.prototype, {\n [Symbol.toStringTag]: {\n writable: false,\n enumerable: false,\n configurable: true,\n value: `${name} Iterator`\n },\n next: { writable: true, enumerable: true, configurable: true }\n })\n\n /**\n * @param {unknown} target\n * @param {'key' | 'value' | 'key+value'} kind\n * @returns {IterableIterator}\n */\n return function (target, kind) {\n return new FastIterableIterator(target, kind)\n }\n}\n\n/**\n * @see https://webidl.spec.whatwg.org/#dfn-iterator-prototype-object\n * @param {string} name name of the instance\n * @param {any} object class\n * @param {symbol} kInternalIterator\n * @param {string | number} [keyIndex]\n * @param {string | number} [valueIndex]\n */\nfunction iteratorMixin (name, object, kInternalIterator, keyIndex = 0, valueIndex = 1) {\n const makeIterator = createIterator(name, kInternalIterator, keyIndex, valueIndex)\n\n const properties = {\n keys: {\n writable: true,\n enumerable: true,\n configurable: true,\n value: function keys () {\n webidl.brandCheck(this, object)\n return makeIterator(this, 'key')\n }\n },\n values: {\n writable: true,\n enumerable: true,\n configurable: true,\n value: function values () {\n webidl.brandCheck(this, object)\n return makeIterator(this, 'value')\n }\n },\n entries: {\n writable: true,\n enumerable: true,\n configurable: true,\n value: function entries () {\n webidl.brandCheck(this, object)\n return makeIterator(this, 'key+value')\n }\n },\n forEach: {\n writable: true,\n enumerable: true,\n configurable: true,\n value: function forEach (callbackfn, thisArg = globalThis) {\n webidl.brandCheck(this, object)\n webidl.argumentLengthCheck(arguments, 1, `${name}.forEach`)\n if (typeof callbackfn !== 'function') {\n throw new TypeError(\n `Failed to execute 'forEach' on '${name}': parameter 1 is not of type 'Function'.`\n )\n }\n for (const { 0: key, 1: value } of makeIterator(this, 'key+value')) {\n callbackfn.call(thisArg, value, key, this)\n }\n }\n }\n }\n\n return Object.defineProperties(object.prototype, {\n ...properties,\n [Symbol.iterator]: {\n writable: true,\n enumerable: false,\n configurable: true,\n value: properties.entries.value\n }\n })\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#body-fully-read\n */\nasync function fullyReadBody (body, processBody, processBodyError) {\n // 1. If taskDestination is null, then set taskDestination to\n // the result of starting a new parallel queue.\n\n // 2. Let successSteps given a byte sequence bytes be to queue a\n // fetch task to run processBody given bytes, with taskDestination.\n const successSteps = processBody\n\n // 3. Let errorSteps be to queue a fetch task to run processBodyError,\n // with taskDestination.\n const errorSteps = processBodyError\n\n // 4. Let reader be the result of getting a reader for body\u2019s stream.\n // If that threw an exception, then run errorSteps with that\n // exception and return.\n let reader\n\n try {\n reader = body.stream.getReader()\n } catch (e) {\n errorSteps(e)\n return\n }\n\n // 5. Read all bytes from reader, given successSteps and errorSteps.\n try {\n successSteps(await readAllBytes(reader))\n } catch (e) {\n errorSteps(e)\n }\n}\n\nfunction isReadableStreamLike (stream) {\n return stream instanceof ReadableStream || (\n stream[Symbol.toStringTag] === 'ReadableStream' &&\n typeof stream.tee === 'function'\n )\n}\n\n/**\n * @param {ReadableStreamController} controller\n */\nfunction readableStreamClose (controller) {\n try {\n controller.close()\n controller.byobRequest?.respond(0)\n } catch (err) {\n // TODO: add comment explaining why this error occurs.\n if (!err.message.includes('Controller is already closed') && !err.message.includes('ReadableStream is already closed')) {\n throw err\n }\n }\n}\n\nconst invalidIsomorphicEncodeValueRegex = /[^\\x00-\\xFF]/ // eslint-disable-line\n\n/**\n * @see https://infra.spec.whatwg.org/#isomorphic-encode\n * @param {string} input\n */\nfunction isomorphicEncode (input) {\n // 1. Assert: input contains no code points greater than U+00FF.\n assert(!invalidIsomorphicEncodeValueRegex.test(input))\n\n // 2. Return a byte sequence whose length is equal to input\u2019s code\n // point length and whose bytes have the same values as the\n // values of input\u2019s code points, in the same order\n return input\n}\n\n/**\n * @see https://streams.spec.whatwg.org/#readablestreamdefaultreader-read-all-bytes\n * @see https://streams.spec.whatwg.org/#read-loop\n * @param {ReadableStreamDefaultReader} reader\n */\nasync function readAllBytes (reader) {\n const bytes = []\n let byteLength = 0\n\n while (true) {\n const { done, value: chunk } = await reader.read()\n\n if (done) {\n // 1. Call successSteps with bytes.\n return Buffer.concat(bytes, byteLength)\n }\n\n // 1. If chunk is not a Uint8Array object, call failureSteps\n // with a TypeError and abort these steps.\n if (!isUint8Array(chunk)) {\n throw new TypeError('Received non-Uint8Array chunk')\n }\n\n // 2. Append the bytes represented by chunk to bytes.\n bytes.push(chunk)\n byteLength += chunk.length\n\n // 3. Read-loop given reader, bytes, successSteps, and failureSteps.\n }\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#is-local\n * @param {URL} url\n */\nfunction urlIsLocal (url) {\n assert('protocol' in url) // ensure it's a url object\n\n const protocol = url.protocol\n\n return protocol === 'about:' || protocol === 'blob:' || protocol === 'data:'\n}\n\n/**\n * @param {string|URL} url\n * @returns {boolean}\n */\nfunction urlHasHttpsScheme (url) {\n return (\n (\n typeof url === 'string' &&\n url[5] === ':' &&\n url[0] === 'h' &&\n url[1] === 't' &&\n url[2] === 't' &&\n url[3] === 'p' &&\n url[4] === 's'\n ) ||\n url.protocol === 'https:'\n )\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#http-scheme\n * @param {URL} url\n */\nfunction urlIsHttpHttpsScheme (url) {\n assert('protocol' in url) // ensure it's a url object\n\n const protocol = url.protocol\n\n return protocol === 'http:' || protocol === 'https:'\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#simple-range-header-value\n * @param {string} value\n * @param {boolean} allowWhitespace\n */\nfunction simpleRangeHeaderValue (value, allowWhitespace) {\n // 1. Let data be the isomorphic decoding of value.\n // Note: isomorphic decoding takes a sequence of bytes (ie. a Uint8Array) and turns it into a string,\n // nothing more. We obviously don't need to do that if value is a string already.\n const data = value\n\n // 2. If data does not start with \"bytes\", then return failure.\n if (!data.startsWith('bytes')) {\n return 'failure'\n }\n\n // 3. Let position be a position variable for data, initially pointing at the 5th code point of data.\n const position = { position: 5 }\n\n // 4. If allowWhitespace is true, collect a sequence of code points that are HTTP tab or space,\n // from data given position.\n if (allowWhitespace) {\n collectASequenceOfCodePoints(\n (char) => char === '\\t' || char === ' ',\n data,\n position\n )\n }\n\n // 5. If the code point at position within data is not U+003D (=), then return failure.\n if (data.charCodeAt(position.position) !== 0x3D) {\n return 'failure'\n }\n\n // 6. Advance position by 1.\n position.position++\n\n // 7. If allowWhitespace is true, collect a sequence of code points that are HTTP tab or space, from\n // data given position.\n if (allowWhitespace) {\n collectASequenceOfCodePoints(\n (char) => char === '\\t' || char === ' ',\n data,\n position\n )\n }\n\n // 8. Let rangeStart be the result of collecting a sequence of code points that are ASCII digits,\n // from data given position.\n const rangeStart = collectASequenceOfCodePoints(\n (char) => {\n const code = char.charCodeAt(0)\n\n return code >= 0x30 && code <= 0x39\n },\n data,\n position\n )\n\n // 9. Let rangeStartValue be rangeStart, interpreted as decimal number, if rangeStart is not the\n // empty string; otherwise null.\n const rangeStartValue = rangeStart.length ? Number(rangeStart) : null\n\n // 10. If allowWhitespace is true, collect a sequence of code points that are HTTP tab or space,\n // from data given position.\n if (allowWhitespace) {\n collectASequenceOfCodePoints(\n (char) => char === '\\t' || char === ' ',\n data,\n position\n )\n }\n\n // 11. If the code point at position within data is not U+002D (-), then return failure.\n if (data.charCodeAt(position.position) !== 0x2D) {\n return 'failure'\n }\n\n // 12. Advance position by 1.\n position.position++\n\n // 13. If allowWhitespace is true, collect a sequence of code points that are HTTP tab\n // or space, from data given position.\n // Note from Khafra: its the same step as in #8 again lol\n if (allowWhitespace) {\n collectASequenceOfCodePoints(\n (char) => char === '\\t' || char === ' ',\n data,\n position\n )\n }\n\n // 14. Let rangeEnd be the result of collecting a sequence of code points that are\n // ASCII digits, from data given position.\n // Note from Khafra: you wouldn't guess it, but this is also the same step as #8\n const rangeEnd = collectASequenceOfCodePoints(\n (char) => {\n const code = char.charCodeAt(0)\n\n return code >= 0x30 && code <= 0x39\n },\n data,\n position\n )\n\n // 15. Let rangeEndValue be rangeEnd, interpreted as decimal number, if rangeEnd\n // is not the empty string; otherwise null.\n // Note from Khafra: THE SAME STEP, AGAIN!!!\n // Note: why interpret as a decimal if we only collect ascii digits?\n const rangeEndValue = rangeEnd.length ? Number(rangeEnd) : null\n\n // 16. If position is not past the end of data, then return failure.\n if (position.position < data.length) {\n return 'failure'\n }\n\n // 17. If rangeEndValue and rangeStartValue are null, then return failure.\n if (rangeEndValue === null && rangeStartValue === null) {\n return 'failure'\n }\n\n // 18. If rangeStartValue and rangeEndValue are numbers, and rangeStartValue is\n // greater than rangeEndValue, then return failure.\n // Note: ... when can they not be numbers?\n if (rangeStartValue > rangeEndValue) {\n return 'failure'\n }\n\n // 19. Return (rangeStartValue, rangeEndValue).\n return { rangeStartValue, rangeEndValue }\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#build-a-content-range\n * @param {number} rangeStart\n * @param {number} rangeEnd\n * @param {number} fullLength\n */\nfunction buildContentRange (rangeStart, rangeEnd, fullLength) {\n // 1. Let contentRange be `bytes `.\n let contentRange = 'bytes '\n\n // 2. Append rangeStart, serialized and isomorphic encoded, to contentRange.\n contentRange += isomorphicEncode(`${rangeStart}`)\n\n // 3. Append 0x2D (-) to contentRange.\n contentRange += '-'\n\n // 4. Append rangeEnd, serialized and isomorphic encoded to contentRange.\n contentRange += isomorphicEncode(`${rangeEnd}`)\n\n // 5. Append 0x2F (/) to contentRange.\n contentRange += '/'\n\n // 6. Append fullLength, serialized and isomorphic encoded to contentRange.\n contentRange += isomorphicEncode(`${fullLength}`)\n\n // 7. Return contentRange.\n return contentRange\n}\n\n// A Stream, which pipes the response to zlib.createInflate() or\n// zlib.createInflateRaw() depending on the first byte of the Buffer.\n// If the lower byte of the first byte is 0x08, then the stream is\n// interpreted as a zlib stream, otherwise it's interpreted as a\n// raw deflate stream.\nclass InflateStream extends Transform {\n #zlibOptions\n\n /** @param {zlib.ZlibOptions} [zlibOptions] */\n constructor (zlibOptions) {\n super()\n this.#zlibOptions = zlibOptions\n }\n\n _transform (chunk, encoding, callback) {\n if (!this._inflateStream) {\n if (chunk.length === 0) {\n callback()\n return\n }\n this._inflateStream = (chunk[0] & 0x0F) === 0x08\n ? zlib.createInflate(this.#zlibOptions)\n : zlib.createInflateRaw(this.#zlibOptions)\n\n this._inflateStream.on('data', this.push.bind(this))\n this._inflateStream.on('end', () => this.push(null))\n this._inflateStream.on('error', (err) => this.destroy(err))\n }\n\n this._inflateStream.write(chunk, encoding, callback)\n }\n\n _final (callback) {\n if (this._inflateStream) {\n this._inflateStream.end()\n this._inflateStream = null\n }\n callback()\n }\n}\n\n/**\n * @param {zlib.ZlibOptions} [zlibOptions]\n * @returns {InflateStream}\n */\nfunction createInflate (zlibOptions) {\n return new InflateStream(zlibOptions)\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#concept-header-extract-mime-type\n * @param {import('./headers').HeadersList} headers\n */\nfunction extractMimeType (headers) {\n // 1. Let charset be null.\n let charset = null\n\n // 2. Let essence be null.\n let essence = null\n\n // 3. Let mimeType be null.\n let mimeType = null\n\n // 4. Let values be the result of getting, decoding, and splitting `Content-Type` from headers.\n const values = getDecodeSplit('content-type', headers)\n\n // 5. If values is null, then return failure.\n if (values === null) {\n return 'failure'\n }\n\n // 6. For each value of values:\n for (const value of values) {\n // 6.1. Let temporaryMimeType be the result of parsing value.\n const temporaryMimeType = parseMIMEType(value)\n\n // 6.2. If temporaryMimeType is failure or its essence is \"*/*\", then continue.\n if (temporaryMimeType === 'failure' || temporaryMimeType.essence === '*/*') {\n continue\n }\n\n // 6.3. Set mimeType to temporaryMimeType.\n mimeType = temporaryMimeType\n\n // 6.4. If mimeType\u2019s essence is not essence, then:\n if (mimeType.essence !== essence) {\n // 6.4.1. Set charset to null.\n charset = null\n\n // 6.4.2. If mimeType\u2019s parameters[\"charset\"] exists, then set charset to\n // mimeType\u2019s parameters[\"charset\"].\n if (mimeType.parameters.has('charset')) {\n charset = mimeType.parameters.get('charset')\n }\n\n // 6.4.3. Set essence to mimeType\u2019s essence.\n essence = mimeType.essence\n } else if (!mimeType.parameters.has('charset') && charset !== null) {\n // 6.5. Otherwise, if mimeType\u2019s parameters[\"charset\"] does not exist, and\n // charset is non-null, set mimeType\u2019s parameters[\"charset\"] to charset.\n mimeType.parameters.set('charset', charset)\n }\n }\n\n // 7. If mimeType is null, then return failure.\n if (mimeType == null) {\n return 'failure'\n }\n\n // 8. Return mimeType.\n return mimeType\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#header-value-get-decode-and-split\n * @param {string|null} value\n */\nfunction gettingDecodingSplitting (value) {\n // 1. Let input be the result of isomorphic decoding value.\n const input = value\n\n // 2. Let position be a position variable for input, initially pointing at the start of input.\n const position = { position: 0 }\n\n // 3. Let values be a list of strings, initially empty.\n const values = []\n\n // 4. Let temporaryValue be the empty string.\n let temporaryValue = ''\n\n // 5. While position is not past the end of input:\n while (position.position < input.length) {\n // 5.1. Append the result of collecting a sequence of code points that are not U+0022 (\")\n // or U+002C (,) from input, given position, to temporaryValue.\n temporaryValue += collectASequenceOfCodePoints(\n (char) => char !== '\"' && char !== ',',\n input,\n position\n )\n\n // 5.2. If position is not past the end of input, then:\n if (position.position < input.length) {\n // 5.2.1. If the code point at position within input is U+0022 (\"), then:\n if (input.charCodeAt(position.position) === 0x22) {\n // 5.2.1.1. Append the result of collecting an HTTP quoted string from input, given position, to temporaryValue.\n temporaryValue += collectAnHTTPQuotedString(\n input,\n position\n )\n\n // 5.2.1.2. If position is not past the end of input, then continue.\n if (position.position < input.length) {\n continue\n }\n } else {\n // 5.2.2. Otherwise:\n\n // 5.2.2.1. Assert: the code point at position within input is U+002C (,).\n assert(input.charCodeAt(position.position) === 0x2C)\n\n // 5.2.2.2. Advance position by 1.\n position.position++\n }\n }\n\n // 5.3. Remove all HTTP tab or space from the start and end of temporaryValue.\n temporaryValue = removeChars(temporaryValue, true, true, (char) => char === 0x9 || char === 0x20)\n\n // 5.4. Append temporaryValue to values.\n values.push(temporaryValue)\n\n // 5.6. Set temporaryValue to the empty string.\n temporaryValue = ''\n }\n\n // 6. Return values.\n return values\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#concept-header-list-get-decode-split\n * @param {string} name lowercase header name\n * @param {import('./headers').HeadersList} list\n */\nfunction getDecodeSplit (name, list) {\n // 1. Let value be the result of getting name from list.\n const value = list.get(name, true)\n\n // 2. If value is null, then return null.\n if (value === null) {\n return null\n }\n\n // 3. Return the result of getting, decoding, and splitting value.\n return gettingDecodingSplitting(value)\n}\n\nconst textDecoder = new TextDecoder()\n\n/**\n * @see https://encoding.spec.whatwg.org/#utf-8-decode\n * @param {Buffer} buffer\n */\nfunction utf8DecodeBytes (buffer) {\n if (buffer.length === 0) {\n return ''\n }\n\n // 1. Let buffer be the result of peeking three bytes from\n // ioQueue, converted to a byte sequence.\n\n // 2. If buffer is 0xEF 0xBB 0xBF, then read three\n // bytes from ioQueue. (Do nothing with those bytes.)\n if (buffer[0] === 0xEF && buffer[1] === 0xBB && buffer[2] === 0xBF) {\n buffer = buffer.subarray(3)\n }\n\n // 3. Process a queue with an instance of UTF-8\u2019s\n // decoder, ioQueue, output, and \"replacement\".\n const output = textDecoder.decode(buffer)\n\n // 4. Return output.\n return output\n}\n\nclass EnvironmentSettingsObjectBase {\n get baseUrl () {\n return getGlobalOrigin()\n }\n\n get origin () {\n return this.baseUrl?.origin\n }\n\n policyContainer = makePolicyContainer()\n}\n\nclass EnvironmentSettingsObject {\n settingsObject = new EnvironmentSettingsObjectBase()\n}\n\nconst environmentSettingsObject = new EnvironmentSettingsObject()\n\nmodule.exports = {\n isAborted,\n isCancelled,\n isValidEncodedURL,\n createDeferredPromise,\n ReadableStreamFrom,\n tryUpgradeRequestToAPotentiallyTrustworthyURL,\n clampAndCoarsenConnectionTimingInfo,\n coarsenedSharedCurrentTime,\n determineRequestsReferrer,\n makePolicyContainer,\n clonePolicyContainer,\n appendFetchMetadata,\n appendRequestOriginHeader,\n TAOCheck,\n corsCheck,\n crossOriginResourcePolicyCheck,\n createOpaqueTimingInfo,\n setRequestReferrerPolicyOnRedirect,\n isValidHTTPToken,\n requestBadPort,\n requestCurrentURL,\n responseURL,\n responseLocationURL,\n isBlobLike,\n isURLPotentiallyTrustworthy,\n isValidReasonPhrase,\n sameOrigin,\n normalizeMethod,\n serializeJavascriptValueToJSONString,\n iteratorMixin,\n createIterator,\n isValidHeaderName,\n isValidHeaderValue,\n isErrorLike,\n fullyReadBody,\n bytesMatch,\n isReadableStreamLike,\n readableStreamClose,\n isomorphicEncode,\n urlIsLocal,\n urlHasHttpsScheme,\n urlIsHttpHttpsScheme,\n readAllBytes,\n simpleRangeHeaderValue,\n buildContentRange,\n parseMetadata,\n createInflate,\n extractMimeType,\n getDecodeSplit,\n utf8DecodeBytes,\n environmentSettingsObject\n}\n", "'use strict'\n\nmodule.exports = {\n kUrl: Symbol('url'),\n kHeaders: Symbol('headers'),\n kSignal: Symbol('signal'),\n kState: Symbol('state'),\n kDispatcher: Symbol('dispatcher')\n}\n", "'use strict'\n\nconst { Blob, File } = require('node:buffer')\nconst { kState } = require('./symbols')\nconst { webidl } = require('./webidl')\n\n// TODO(@KhafraDev): remove\nclass FileLike {\n constructor (blobLike, fileName, options = {}) {\n // TODO: argument idl type check\n\n // The File constructor is invoked with two or three parameters, depending\n // on whether the optional dictionary parameter is used. When the File()\n // constructor is invoked, user agents must run the following steps:\n\n // 1. Let bytes be the result of processing blob parts given fileBits and\n // options.\n\n // 2. Let n be the fileName argument to the constructor.\n const n = fileName\n\n // 3. Process FilePropertyBag dictionary argument by running the following\n // substeps:\n\n // 1. If the type member is provided and is not the empty string, let t\n // be set to the type dictionary member. If t contains any characters\n // outside the range U+0020 to U+007E, then set t to the empty string\n // and return from these substeps.\n // TODO\n const t = options.type\n\n // 2. Convert every character in t to ASCII lowercase.\n // TODO\n\n // 3. If the lastModified member is provided, let d be set to the\n // lastModified dictionary member. If it is not provided, set d to the\n // current date and time represented as the number of milliseconds since\n // the Unix Epoch (which is the equivalent of Date.now() [ECMA-262]).\n const d = options.lastModified ?? Date.now()\n\n // 4. Return a new File object F such that:\n // F refers to the bytes byte sequence.\n // F.size is set to the number of total bytes in bytes.\n // F.name is set to n.\n // F.type is set to t.\n // F.lastModified is set to d.\n\n this[kState] = {\n blobLike,\n name: n,\n type: t,\n lastModified: d\n }\n }\n\n stream (...args) {\n webidl.brandCheck(this, FileLike)\n\n return this[kState].blobLike.stream(...args)\n }\n\n arrayBuffer (...args) {\n webidl.brandCheck(this, FileLike)\n\n return this[kState].blobLike.arrayBuffer(...args)\n }\n\n slice (...args) {\n webidl.brandCheck(this, FileLike)\n\n return this[kState].blobLike.slice(...args)\n }\n\n text (...args) {\n webidl.brandCheck(this, FileLike)\n\n return this[kState].blobLike.text(...args)\n }\n\n get size () {\n webidl.brandCheck(this, FileLike)\n\n return this[kState].blobLike.size\n }\n\n get type () {\n webidl.brandCheck(this, FileLike)\n\n return this[kState].blobLike.type\n }\n\n get name () {\n webidl.brandCheck(this, FileLike)\n\n return this[kState].name\n }\n\n get lastModified () {\n webidl.brandCheck(this, FileLike)\n\n return this[kState].lastModified\n }\n\n get [Symbol.toStringTag] () {\n return 'File'\n }\n}\n\nwebidl.converters.Blob = webidl.interfaceConverter(Blob)\n\n// If this function is moved to ./util.js, some tools (such as\n// rollup) will warn about circular dependencies. See:\n// https://github.com/nodejs/undici/issues/1629\nfunction isFileLike (object) {\n return (\n (object instanceof File) ||\n (\n object &&\n (typeof object.stream === 'function' ||\n typeof object.arrayBuffer === 'function') &&\n object[Symbol.toStringTag] === 'File'\n )\n )\n}\n\nmodule.exports = { FileLike, isFileLike }\n", "'use strict'\n\nconst { isBlobLike, iteratorMixin } = require('./util')\nconst { kState } = require('./symbols')\nconst { kEnumerableProperty } = require('../../core/util')\nconst { FileLike, isFileLike } = require('./file')\nconst { webidl } = require('./webidl')\nconst { File: NativeFile } = require('node:buffer')\nconst nodeUtil = require('node:util')\n\n/** @type {globalThis['File']} */\nconst File = globalThis.File ?? NativeFile\n\n// https://xhr.spec.whatwg.org/#formdata\nclass FormData {\n constructor (form) {\n webidl.util.markAsUncloneable(this)\n\n if (form !== undefined) {\n throw webidl.errors.conversionFailed({\n prefix: 'FormData constructor',\n argument: 'Argument 1',\n types: ['undefined']\n })\n }\n\n this[kState] = []\n }\n\n append (name, value, filename = undefined) {\n webidl.brandCheck(this, FormData)\n\n const prefix = 'FormData.append'\n webidl.argumentLengthCheck(arguments, 2, prefix)\n\n if (arguments.length === 3 && !isBlobLike(value)) {\n throw new TypeError(\n \"Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'\"\n )\n }\n\n // 1. Let value be value if given; otherwise blobValue.\n\n name = webidl.converters.USVString(name, prefix, 'name')\n value = isBlobLike(value)\n ? webidl.converters.Blob(value, prefix, 'value', { strict: false })\n : webidl.converters.USVString(value, prefix, 'value')\n filename = arguments.length === 3\n ? webidl.converters.USVString(filename, prefix, 'filename')\n : undefined\n\n // 2. Let entry be the result of creating an entry with\n // name, value, and filename if given.\n const entry = makeEntry(name, value, filename)\n\n // 3. Append entry to this\u2019s entry list.\n this[kState].push(entry)\n }\n\n delete (name) {\n webidl.brandCheck(this, FormData)\n\n const prefix = 'FormData.delete'\n webidl.argumentLengthCheck(arguments, 1, prefix)\n\n name = webidl.converters.USVString(name, prefix, 'name')\n\n // The delete(name) method steps are to remove all entries whose name\n // is name from this\u2019s entry list.\n this[kState] = this[kState].filter(entry => entry.name !== name)\n }\n\n get (name) {\n webidl.brandCheck(this, FormData)\n\n const prefix = 'FormData.get'\n webidl.argumentLengthCheck(arguments, 1, prefix)\n\n name = webidl.converters.USVString(name, prefix, 'name')\n\n // 1. If there is no entry whose name is name in this\u2019s entry list,\n // then return null.\n const idx = this[kState].findIndex((entry) => entry.name === name)\n if (idx === -1) {\n return null\n }\n\n // 2. Return the value of the first entry whose name is name from\n // this\u2019s entry list.\n return this[kState][idx].value\n }\n\n getAll (name) {\n webidl.brandCheck(this, FormData)\n\n const prefix = 'FormData.getAll'\n webidl.argumentLengthCheck(arguments, 1, prefix)\n\n name = webidl.converters.USVString(name, prefix, 'name')\n\n // 1. If there is no entry whose name is name in this\u2019s entry list,\n // then return the empty list.\n // 2. Return the values of all entries whose name is name, in order,\n // from this\u2019s entry list.\n return this[kState]\n .filter((entry) => entry.name === name)\n .map((entry) => entry.value)\n }\n\n has (name) {\n webidl.brandCheck(this, FormData)\n\n const prefix = 'FormData.has'\n webidl.argumentLengthCheck(arguments, 1, prefix)\n\n name = webidl.converters.USVString(name, prefix, 'name')\n\n // The has(name) method steps are to return true if there is an entry\n // whose name is name in this\u2019s entry list; otherwise false.\n return this[kState].findIndex((entry) => entry.name === name) !== -1\n }\n\n set (name, value, filename = undefined) {\n webidl.brandCheck(this, FormData)\n\n const prefix = 'FormData.set'\n webidl.argumentLengthCheck(arguments, 2, prefix)\n\n if (arguments.length === 3 && !isBlobLike(value)) {\n throw new TypeError(\n \"Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'\"\n )\n }\n\n // The set(name, value) and set(name, blobValue, filename) method steps\n // are:\n\n // 1. Let value be value if given; otherwise blobValue.\n\n name = webidl.converters.USVString(name, prefix, 'name')\n value = isBlobLike(value)\n ? webidl.converters.Blob(value, prefix, 'name', { strict: false })\n : webidl.converters.USVString(value, prefix, 'name')\n filename = arguments.length === 3\n ? webidl.converters.USVString(filename, prefix, 'name')\n : undefined\n\n // 2. Let entry be the result of creating an entry with name, value, and\n // filename if given.\n const entry = makeEntry(name, value, filename)\n\n // 3. If there are entries in this\u2019s entry list whose name is name, then\n // replace the first such entry with entry and remove the others.\n const idx = this[kState].findIndex((entry) => entry.name === name)\n if (idx !== -1) {\n this[kState] = [\n ...this[kState].slice(0, idx),\n entry,\n ...this[kState].slice(idx + 1).filter((entry) => entry.name !== name)\n ]\n } else {\n // 4. Otherwise, append entry to this\u2019s entry list.\n this[kState].push(entry)\n }\n }\n\n [nodeUtil.inspect.custom] (depth, options) {\n const state = this[kState].reduce((a, b) => {\n if (a[b.name]) {\n if (Array.isArray(a[b.name])) {\n a[b.name].push(b.value)\n } else {\n a[b.name] = [a[b.name], b.value]\n }\n } else {\n a[b.name] = b.value\n }\n\n return a\n }, { __proto__: null })\n\n options.depth ??= depth\n options.colors ??= true\n\n const output = nodeUtil.formatWithOptions(options, state)\n\n // remove [Object null prototype]\n return `FormData ${output.slice(output.indexOf(']') + 2)}`\n }\n}\n\niteratorMixin('FormData', FormData, kState, 'name', 'value')\n\nObject.defineProperties(FormData.prototype, {\n append: kEnumerableProperty,\n delete: kEnumerableProperty,\n get: kEnumerableProperty,\n getAll: kEnumerableProperty,\n has: kEnumerableProperty,\n set: kEnumerableProperty,\n [Symbol.toStringTag]: {\n value: 'FormData',\n configurable: true\n }\n})\n\n/**\n * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#create-an-entry\n * @param {string} name\n * @param {string|Blob} value\n * @param {?string} filename\n * @returns\n */\nfunction makeEntry (name, value, filename) {\n // 1. Set name to the result of converting name into a scalar value string.\n // Note: This operation was done by the webidl converter USVString.\n\n // 2. If value is a string, then set value to the result of converting\n // value into a scalar value string.\n if (typeof value === 'string') {\n // Note: This operation was done by the webidl converter USVString.\n } else {\n // 3. Otherwise:\n\n // 1. If value is not a File object, then set value to a new File object,\n // representing the same bytes, whose name attribute value is \"blob\"\n if (!isFileLike(value)) {\n value = value instanceof Blob\n ? new File([value], 'blob', { type: value.type })\n : new FileLike(value, 'blob', { type: value.type })\n }\n\n // 2. If filename is given, then set value to a new File object,\n // representing the same bytes, whose name attribute is filename.\n if (filename !== undefined) {\n /** @type {FilePropertyBag} */\n const options = {\n type: value.type,\n lastModified: value.lastModified\n }\n\n value = value instanceof NativeFile\n ? new File([value], filename, options)\n : new FileLike(value, filename, options)\n }\n }\n\n // 4. Return an entry whose name is name and whose value is value.\n return { name, value }\n}\n\nmodule.exports = { FormData, makeEntry }\n", "'use strict'\n\nconst { isUSVString, bufferToLowerCasedHeaderName } = require('../../core/util')\nconst { utf8DecodeBytes } = require('./util')\nconst { HTTP_TOKEN_CODEPOINTS, isomorphicDecode } = require('./data-url')\nconst { isFileLike } = require('./file')\nconst { makeEntry } = require('./formdata')\nconst assert = require('node:assert')\nconst { File: NodeFile } = require('node:buffer')\n\nconst File = globalThis.File ?? NodeFile\n\nconst formDataNameBuffer = Buffer.from('form-data; name=\"')\nconst filenameBuffer = Buffer.from('; filename')\nconst dd = Buffer.from('--')\nconst ddcrlf = Buffer.from('--\\r\\n')\n\n/**\n * @param {string} chars\n */\nfunction isAsciiString (chars) {\n for (let i = 0; i < chars.length; ++i) {\n if ((chars.charCodeAt(i) & ~0x7F) !== 0) {\n return false\n }\n }\n return true\n}\n\n/**\n * @see https://andreubotella.github.io/multipart-form-data/#multipart-form-data-boundary\n * @param {string} boundary\n */\nfunction validateBoundary (boundary) {\n const length = boundary.length\n\n // - its length is greater or equal to 27 and lesser or equal to 70, and\n if (length < 27 || length > 70) {\n return false\n }\n\n // - it is composed by bytes in the ranges 0x30 to 0x39, 0x41 to 0x5A, or\n // 0x61 to 0x7A, inclusive (ASCII alphanumeric), or which are 0x27 ('),\n // 0x2D (-) or 0x5F (_).\n for (let i = 0; i < length; ++i) {\n const cp = boundary.charCodeAt(i)\n\n if (!(\n (cp >= 0x30 && cp <= 0x39) ||\n (cp >= 0x41 && cp <= 0x5a) ||\n (cp >= 0x61 && cp <= 0x7a) ||\n cp === 0x27 ||\n cp === 0x2d ||\n cp === 0x5f\n )) {\n return false\n }\n }\n\n return true\n}\n\n/**\n * @see https://andreubotella.github.io/multipart-form-data/#multipart-form-data-parser\n * @param {Buffer} input\n * @param {ReturnType} mimeType\n */\nfunction multipartFormDataParser (input, mimeType) {\n // 1. Assert: mimeType\u2019s essence is \"multipart/form-data\".\n assert(mimeType !== 'failure' && mimeType.essence === 'multipart/form-data')\n\n const boundaryString = mimeType.parameters.get('boundary')\n\n // 2. If mimeType\u2019s parameters[\"boundary\"] does not exist, return failure.\n // Otherwise, let boundary be the result of UTF-8 decoding mimeType\u2019s\n // parameters[\"boundary\"].\n if (boundaryString === undefined) {\n return 'failure'\n }\n\n const boundary = Buffer.from(`--${boundaryString}`, 'utf8')\n\n // 3. Let entry list be an empty entry list.\n const entryList = []\n\n // 4. Let position be a pointer to a byte in input, initially pointing at\n // the first byte.\n const position = { position: 0 }\n\n // Note: undici addition, allows leading and trailing CRLFs.\n while (input[position.position] === 0x0d && input[position.position + 1] === 0x0a) {\n position.position += 2\n }\n\n let trailing = input.length\n\n while (input[trailing - 1] === 0x0a && input[trailing - 2] === 0x0d) {\n trailing -= 2\n }\n\n if (trailing !== input.length) {\n input = input.subarray(0, trailing)\n }\n\n // 5. While true:\n while (true) {\n // 5.1. If position points to a sequence of bytes starting with 0x2D 0x2D\n // (`--`) followed by boundary, advance position by 2 + the length of\n // boundary. Otherwise, return failure.\n // Note: boundary is padded with 2 dashes already, no need to add 2.\n if (input.subarray(position.position, position.position + boundary.length).equals(boundary)) {\n position.position += boundary.length\n } else {\n return 'failure'\n }\n\n // 5.2. If position points to the sequence of bytes 0x2D 0x2D 0x0D 0x0A\n // (`--` followed by CR LF) followed by the end of input, return entry list.\n // Note: a body does NOT need to end with CRLF. It can end with --.\n if (\n (position.position === input.length - 2 && bufferStartsWith(input, dd, position)) ||\n (position.position === input.length - 4 && bufferStartsWith(input, ddcrlf, position))\n ) {\n return entryList\n }\n\n // 5.3. If position does not point to a sequence of bytes starting with 0x0D\n // 0x0A (CR LF), return failure.\n if (input[position.position] !== 0x0d || input[position.position + 1] !== 0x0a) {\n return 'failure'\n }\n\n // 5.4. Advance position by 2. (This skips past the newline.)\n position.position += 2\n\n // 5.5. Let name, filename and contentType be the result of parsing\n // multipart/form-data headers on input and position, if the result\n // is not failure. Otherwise, return failure.\n const result = parseMultipartFormDataHeaders(input, position)\n\n if (result === 'failure') {\n return 'failure'\n }\n\n let { name, filename, contentType, encoding } = result\n\n // 5.6. Advance position by 2. (This skips past the empty line that marks\n // the end of the headers.)\n position.position += 2\n\n // 5.7. Let body be the empty byte sequence.\n let body\n\n // 5.8. Body loop: While position is not past the end of input:\n // TODO: the steps here are completely wrong\n {\n const boundaryIndex = input.indexOf(boundary.subarray(2), position.position)\n\n if (boundaryIndex === -1) {\n return 'failure'\n }\n\n body = input.subarray(position.position, boundaryIndex - 4)\n\n position.position += body.length\n\n // Note: position must be advanced by the body's length before being\n // decoded, otherwise the parsing will fail.\n if (encoding === 'base64') {\n body = Buffer.from(body.toString(), 'base64')\n }\n }\n\n // 5.9. If position does not point to a sequence of bytes starting with\n // 0x0D 0x0A (CR LF), return failure. Otherwise, advance position by 2.\n if (input[position.position] !== 0x0d || input[position.position + 1] !== 0x0a) {\n return 'failure'\n } else {\n position.position += 2\n }\n\n // 5.10. If filename is not null:\n let value\n\n if (filename !== null) {\n // 5.10.1. If contentType is null, set contentType to \"text/plain\".\n contentType ??= 'text/plain'\n\n // 5.10.2. If contentType is not an ASCII string, set contentType to the empty string.\n\n // Note: `buffer.isAscii` can be used at zero-cost, but converting a string to a buffer is a high overhead.\n // Content-Type is a relatively small string, so it is faster to use `String#charCodeAt`.\n if (!isAsciiString(contentType)) {\n contentType = ''\n }\n\n // 5.10.3. Let value be a new File object with name filename, type contentType, and body body.\n value = new File([body], filename, { type: contentType })\n } else {\n // 5.11. Otherwise:\n\n // 5.11.1. Let value be the UTF-8 decoding without BOM of body.\n value = utf8DecodeBytes(Buffer.from(body))\n }\n\n // 5.12. Assert: name is a scalar value string and value is either a scalar value string or a File object.\n assert(isUSVString(name))\n assert((typeof value === 'string' && isUSVString(value)) || isFileLike(value))\n\n // 5.13. Create an entry with name and value, and append it to entry list.\n entryList.push(makeEntry(name, value, filename))\n }\n}\n\n/**\n * @see https://andreubotella.github.io/multipart-form-data/#parse-multipart-form-data-headers\n * @param {Buffer} input\n * @param {{ position: number }} position\n */\nfunction parseMultipartFormDataHeaders (input, position) {\n // 1. Let name, filename and contentType be null.\n let name = null\n let filename = null\n let contentType = null\n let encoding = null\n\n // 2. While true:\n while (true) {\n // 2.1. If position points to a sequence of bytes starting with 0x0D 0x0A (CR LF):\n if (input[position.position] === 0x0d && input[position.position + 1] === 0x0a) {\n // 2.1.1. If name is null, return failure.\n if (name === null) {\n return 'failure'\n }\n\n // 2.1.2. Return name, filename and contentType.\n return { name, filename, contentType, encoding }\n }\n\n // 2.2. Let header name be the result of collecting a sequence of bytes that are\n // not 0x0A (LF), 0x0D (CR) or 0x3A (:), given position.\n let headerName = collectASequenceOfBytes(\n (char) => char !== 0x0a && char !== 0x0d && char !== 0x3a,\n input,\n position\n )\n\n // 2.3. Remove any HTTP tab or space bytes from the start or end of header name.\n headerName = removeChars(headerName, true, true, (char) => char === 0x9 || char === 0x20)\n\n // 2.4. If header name does not match the field-name token production, return failure.\n if (!HTTP_TOKEN_CODEPOINTS.test(headerName.toString())) {\n return 'failure'\n }\n\n // 2.5. If the byte at position is not 0x3A (:), return failure.\n if (input[position.position] !== 0x3a) {\n return 'failure'\n }\n\n // 2.6. Advance position by 1.\n position.position++\n\n // 2.7. Collect a sequence of bytes that are HTTP tab or space bytes given position.\n // (Do nothing with those bytes.)\n collectASequenceOfBytes(\n (char) => char === 0x20 || char === 0x09,\n input,\n position\n )\n\n // 2.8. Byte-lowercase header name and switch on the result:\n switch (bufferToLowerCasedHeaderName(headerName)) {\n case 'content-disposition': {\n // 1. Set name and filename to null.\n name = filename = null\n\n // 2. If position does not point to a sequence of bytes starting with\n // `form-data; name=\"`, return failure.\n if (!bufferStartsWith(input, formDataNameBuffer, position)) {\n return 'failure'\n }\n\n // 3. Advance position so it points at the byte after the next 0x22 (\")\n // byte (the one in the sequence of bytes matched above).\n position.position += 17\n\n // 4. Set name to the result of parsing a multipart/form-data name given\n // input and position, if the result is not failure. Otherwise, return\n // failure.\n name = parseMultipartFormDataName(input, position)\n\n if (name === null) {\n return 'failure'\n }\n\n // 5. If position points to a sequence of bytes starting with `; filename=\"`:\n if (bufferStartsWith(input, filenameBuffer, position)) {\n // Note: undici also handles filename*\n let check = position.position + filenameBuffer.length\n\n if (input[check] === 0x2a) {\n position.position += 1\n check += 1\n }\n\n if (input[check] !== 0x3d || input[check + 1] !== 0x22) { // =\"\n return 'failure'\n }\n\n // 1. Advance position so it points at the byte after the next 0x22 (\") byte\n // (the one in the sequence of bytes matched above).\n position.position += 12\n\n // 2. Set filename to the result of parsing a multipart/form-data name given\n // input and position, if the result is not failure. Otherwise, return failure.\n filename = parseMultipartFormDataName(input, position)\n\n if (filename === null) {\n return 'failure'\n }\n }\n\n break\n }\n case 'content-type': {\n // 1. Let header value be the result of collecting a sequence of bytes that are\n // not 0x0A (LF) or 0x0D (CR), given position.\n let headerValue = collectASequenceOfBytes(\n (char) => char !== 0x0a && char !== 0x0d,\n input,\n position\n )\n\n // 2. Remove any HTTP tab or space bytes from the end of header value.\n headerValue = removeChars(headerValue, false, true, (char) => char === 0x9 || char === 0x20)\n\n // 3. Set contentType to the isomorphic decoding of header value.\n contentType = isomorphicDecode(headerValue)\n\n break\n }\n case 'content-transfer-encoding': {\n let headerValue = collectASequenceOfBytes(\n (char) => char !== 0x0a && char !== 0x0d,\n input,\n position\n )\n\n headerValue = removeChars(headerValue, false, true, (char) => char === 0x9 || char === 0x20)\n\n encoding = isomorphicDecode(headerValue)\n\n break\n }\n default: {\n // Collect a sequence of bytes that are not 0x0A (LF) or 0x0D (CR), given position.\n // (Do nothing with those bytes.)\n collectASequenceOfBytes(\n (char) => char !== 0x0a && char !== 0x0d,\n input,\n position\n )\n }\n }\n\n // 2.9. If position does not point to a sequence of bytes starting with 0x0D 0x0A\n // (CR LF), return failure. Otherwise, advance position by 2 (past the newline).\n if (input[position.position] !== 0x0d && input[position.position + 1] !== 0x0a) {\n return 'failure'\n } else {\n position.position += 2\n }\n }\n}\n\n/**\n * @see https://andreubotella.github.io/multipart-form-data/#parse-a-multipart-form-data-name\n * @param {Buffer} input\n * @param {{ position: number }} position\n */\nfunction parseMultipartFormDataName (input, position) {\n // 1. Assert: The byte at (position - 1) is 0x22 (\").\n assert(input[position.position - 1] === 0x22)\n\n // 2. Let name be the result of collecting a sequence of bytes that are not 0x0A (LF), 0x0D (CR) or 0x22 (\"), given position.\n /** @type {string | Buffer} */\n let name = collectASequenceOfBytes(\n (char) => char !== 0x0a && char !== 0x0d && char !== 0x22,\n input,\n position\n )\n\n // 3. If the byte at position is not 0x22 (\"), return failure. Otherwise, advance position by 1.\n if (input[position.position] !== 0x22) {\n return null // name could be 'failure'\n } else {\n position.position++\n }\n\n // 4. Replace any occurrence of the following subsequences in name with the given byte:\n // - `%0A`: 0x0A (LF)\n // - `%0D`: 0x0D (CR)\n // - `%22`: 0x22 (\")\n name = new TextDecoder().decode(name)\n .replace(/%0A/ig, '\\n')\n .replace(/%0D/ig, '\\r')\n .replace(/%22/g, '\"')\n\n // 5. Return the UTF-8 decoding without BOM of name.\n return name\n}\n\n/**\n * @param {(char: number) => boolean} condition\n * @param {Buffer} input\n * @param {{ position: number }} position\n */\nfunction collectASequenceOfBytes (condition, input, position) {\n let start = position.position\n\n while (start < input.length && condition(input[start])) {\n ++start\n }\n\n return input.subarray(position.position, (position.position = start))\n}\n\n/**\n * @param {Buffer} buf\n * @param {boolean} leading\n * @param {boolean} trailing\n * @param {(charCode: number) => boolean} predicate\n * @returns {Buffer}\n */\nfunction removeChars (buf, leading, trailing, predicate) {\n let lead = 0\n let trail = buf.length - 1\n\n if (leading) {\n while (lead < buf.length && predicate(buf[lead])) lead++\n }\n\n if (trailing) {\n while (trail > 0 && predicate(buf[trail])) trail--\n }\n\n return lead === 0 && trail === buf.length - 1 ? buf : buf.subarray(lead, trail + 1)\n}\n\n/**\n * Checks if {@param buffer} starts with {@param start}\n * @param {Buffer} buffer\n * @param {Buffer} start\n * @param {{ position: number }} position\n */\nfunction bufferStartsWith (buffer, start, position) {\n if (buffer.length < start.length) {\n return false\n }\n\n for (let i = 0; i < start.length; i++) {\n if (start[i] !== buffer[position.position + i]) {\n return false\n }\n }\n\n return true\n}\n\nmodule.exports = {\n multipartFormDataParser,\n validateBoundary\n}\n", "'use strict'\n\nconst util = require('../../core/util')\nconst {\n ReadableStreamFrom,\n isBlobLike,\n isReadableStreamLike,\n readableStreamClose,\n createDeferredPromise,\n fullyReadBody,\n extractMimeType,\n utf8DecodeBytes\n} = require('./util')\nconst { FormData } = require('./formdata')\nconst { kState } = require('./symbols')\nconst { webidl } = require('./webidl')\nconst { Blob } = require('node:buffer')\nconst assert = require('node:assert')\nconst { isErrored, isDisturbed } = require('node:stream')\nconst { isArrayBuffer } = require('node:util/types')\nconst { serializeAMimeType } = require('./data-url')\nconst { multipartFormDataParser } = require('./formdata-parser')\nlet random\n\ntry {\n const crypto = require('node:crypto')\n random = (max) => crypto.randomInt(0, max)\n} catch {\n random = (max) => Math.floor(Math.random(max))\n}\n\nconst textEncoder = new TextEncoder()\nfunction noop () {}\n\nconst hasFinalizationRegistry = globalThis.FinalizationRegistry && process.version.indexOf('v18') !== 0\nlet streamRegistry\n\nif (hasFinalizationRegistry) {\n streamRegistry = new FinalizationRegistry((weakRef) => {\n const stream = weakRef.deref()\n if (stream && !stream.locked && !isDisturbed(stream) && !isErrored(stream)) {\n stream.cancel('Response object has been garbage collected').catch(noop)\n }\n })\n}\n\n// https://fetch.spec.whatwg.org/#concept-bodyinit-extract\nfunction extractBody (object, keepalive = false) {\n // 1. Let stream be null.\n let stream = null\n\n // 2. If object is a ReadableStream object, then set stream to object.\n if (object instanceof ReadableStream) {\n stream = object\n } else if (isBlobLike(object)) {\n // 3. Otherwise, if object is a Blob object, set stream to the\n // result of running object\u2019s get stream.\n stream = object.stream()\n } else {\n // 4. Otherwise, set stream to a new ReadableStream object, and set\n // up stream with byte reading support.\n stream = new ReadableStream({\n async pull (controller) {\n const buffer = typeof source === 'string' ? textEncoder.encode(source) : source\n\n if (buffer.byteLength) {\n controller.enqueue(buffer)\n }\n\n queueMicrotask(() => readableStreamClose(controller))\n },\n start () {},\n type: 'bytes'\n })\n }\n\n // 5. Assert: stream is a ReadableStream object.\n assert(isReadableStreamLike(stream))\n\n // 6. Let action be null.\n let action = null\n\n // 7. Let source be null.\n let source = null\n\n // 8. Let length be null.\n let length = null\n\n // 9. Let type be null.\n let type = null\n\n // 10. Switch on object:\n if (typeof object === 'string') {\n // Set source to the UTF-8 encoding of object.\n // Note: setting source to a Uint8Array here breaks some mocking assumptions.\n source = object\n\n // Set type to `text/plain;charset=UTF-8`.\n type = 'text/plain;charset=UTF-8'\n } else if (object instanceof URLSearchParams) {\n // URLSearchParams\n\n // spec says to run application/x-www-form-urlencoded on body.list\n // this is implemented in Node.js as apart of an URLSearchParams instance toString method\n // See: https://github.com/nodejs/node/blob/e46c680bf2b211bbd52cf959ca17ee98c7f657f5/lib/internal/url.js#L490\n // and https://github.com/nodejs/node/blob/e46c680bf2b211bbd52cf959ca17ee98c7f657f5/lib/internal/url.js#L1100\n\n // Set source to the result of running the application/x-www-form-urlencoded serializer with object\u2019s list.\n source = object.toString()\n\n // Set type to `application/x-www-form-urlencoded;charset=UTF-8`.\n type = 'application/x-www-form-urlencoded;charset=UTF-8'\n } else if (isArrayBuffer(object)) {\n // BufferSource/ArrayBuffer\n\n // Set source to a copy of the bytes held by object.\n source = new Uint8Array(object.slice())\n } else if (ArrayBuffer.isView(object)) {\n // BufferSource/ArrayBufferView\n\n // Set source to a copy of the bytes held by object.\n source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))\n } else if (util.isFormDataLike(object)) {\n const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}`\n const prefix = `--${boundary}\\r\\nContent-Disposition: form-data`\n\n /*! formdata-polyfill. MIT License. Jimmy W\u00E4rting */\n const escape = (str) =>\n str.replace(/\\n/g, '%0A').replace(/\\r/g, '%0D').replace(/\"/g, '%22')\n const normalizeLinefeeds = (value) => value.replace(/\\r?\\n|\\r/g, '\\r\\n')\n\n // Set action to this step: run the multipart/form-data\n // encoding algorithm, with object\u2019s entry list and UTF-8.\n // - This ensures that the body is immutable and can't be changed afterwords\n // - That the content-length is calculated in advance.\n // - And that all parts are pre-encoded and ready to be sent.\n\n const blobParts = []\n const rn = new Uint8Array([13, 10]) // '\\r\\n'\n length = 0\n let hasUnknownSizeValue = false\n\n for (const [name, value] of object) {\n if (typeof value === 'string') {\n const chunk = textEncoder.encode(prefix +\n `; name=\"${escape(normalizeLinefeeds(name))}\"` +\n `\\r\\n\\r\\n${normalizeLinefeeds(value)}\\r\\n`)\n blobParts.push(chunk)\n length += chunk.byteLength\n } else {\n const chunk = textEncoder.encode(`${prefix}; name=\"${escape(normalizeLinefeeds(name))}\"` +\n (value.name ? `; filename=\"${escape(value.name)}\"` : '') + '\\r\\n' +\n `Content-Type: ${\n value.type || 'application/octet-stream'\n }\\r\\n\\r\\n`)\n blobParts.push(chunk, value, rn)\n if (typeof value.size === 'number') {\n length += chunk.byteLength + value.size + rn.byteLength\n } else {\n hasUnknownSizeValue = true\n }\n }\n }\n\n // CRLF is appended to the body to function with legacy servers and match other implementations.\n // https://github.com/curl/curl/blob/3434c6b46e682452973972e8313613dfa58cd690/lib/mime.c#L1029-L1030\n // https://github.com/form-data/form-data/issues/63\n const chunk = textEncoder.encode(`--${boundary}--\\r\\n`)\n blobParts.push(chunk)\n length += chunk.byteLength\n if (hasUnknownSizeValue) {\n length = null\n }\n\n // Set source to object.\n source = object\n\n action = async function * () {\n for (const part of blobParts) {\n if (part.stream) {\n yield * part.stream()\n } else {\n yield part\n }\n }\n }\n\n // Set type to `multipart/form-data; boundary=`,\n // followed by the multipart/form-data boundary string generated\n // by the multipart/form-data encoding algorithm.\n type = `multipart/form-data; boundary=${boundary}`\n } else if (isBlobLike(object)) {\n // Blob\n\n // Set source to object.\n source = object\n\n // Set length to object\u2019s size.\n length = object.size\n\n // If object\u2019s type attribute is not the empty byte sequence, set\n // type to its value.\n if (object.type) {\n type = object.type\n }\n } else if (typeof object[Symbol.asyncIterator] === 'function') {\n // If keepalive is true, then throw a TypeError.\n if (keepalive) {\n throw new TypeError('keepalive')\n }\n\n // If object is disturbed or locked, then throw a TypeError.\n if (util.isDisturbed(object) || object.locked) {\n throw new TypeError(\n 'Response body object should not be disturbed or locked'\n )\n }\n\n stream =\n object instanceof ReadableStream ? object : ReadableStreamFrom(object)\n }\n\n // 11. If source is a byte sequence, then set action to a\n // step that returns source and length to source\u2019s length.\n if (typeof source === 'string' || util.isBuffer(source)) {\n length = Buffer.byteLength(source)\n }\n\n // 12. If action is non-null, then run these steps in in parallel:\n if (action != null) {\n // Run action.\n let iterator\n stream = new ReadableStream({\n async start () {\n iterator = action(object)[Symbol.asyncIterator]()\n },\n async pull (controller) {\n const { value, done } = await iterator.next()\n if (done) {\n // When running action is done, close stream.\n queueMicrotask(() => {\n controller.close()\n controller.byobRequest?.respond(0)\n })\n } else {\n // Whenever one or more bytes are available and stream is not errored,\n // enqueue a Uint8Array wrapping an ArrayBuffer containing the available\n // bytes into stream.\n if (!isErrored(stream)) {\n const buffer = new Uint8Array(value)\n if (buffer.byteLength) {\n controller.enqueue(buffer)\n }\n }\n }\n return controller.desiredSize > 0\n },\n async cancel (reason) {\n await iterator.return()\n },\n type: 'bytes'\n })\n }\n\n // 13. Let body be a body whose stream is stream, source is source,\n // and length is length.\n const body = { stream, source, length }\n\n // 14. Return (body, type).\n return [body, type]\n}\n\n// https://fetch.spec.whatwg.org/#bodyinit-safely-extract\nfunction safelyExtractBody (object, keepalive = false) {\n // To safely extract a body and a `Content-Type` value from\n // a byte sequence or BodyInit object object, run these steps:\n\n // 1. If object is a ReadableStream object, then:\n if (object instanceof ReadableStream) {\n // Assert: object is neither disturbed nor locked.\n // istanbul ignore next\n assert(!util.isDisturbed(object), 'The body has already been consumed.')\n // istanbul ignore next\n assert(!object.locked, 'The stream is locked.')\n }\n\n // 2. Return the results of extracting object.\n return extractBody(object, keepalive)\n}\n\nfunction cloneBody (instance, body) {\n // To clone a body body, run these steps:\n\n // https://fetch.spec.whatwg.org/#concept-body-clone\n\n // 1. Let \u00AB out1, out2 \u00BB be the result of teeing body\u2019s stream.\n const [out1, out2] = body.stream.tee()\n\n // 2. Set body\u2019s stream to out1.\n body.stream = out1\n\n // 3. Return a body whose stream is out2 and other members are copied from body.\n return {\n stream: out2,\n length: body.length,\n source: body.source\n }\n}\n\nfunction throwIfAborted (state) {\n if (state.aborted) {\n throw new DOMException('The operation was aborted.', 'AbortError')\n }\n}\n\nfunction bodyMixinMethods (instance) {\n const methods = {\n blob () {\n // The blob() method steps are to return the result of\n // running consume body with this and the following step\n // given a byte sequence bytes: return a Blob whose\n // contents are bytes and whose type attribute is this\u2019s\n // MIME type.\n return consumeBody(this, (bytes) => {\n let mimeType = bodyMimeType(this)\n\n if (mimeType === null) {\n mimeType = ''\n } else if (mimeType) {\n mimeType = serializeAMimeType(mimeType)\n }\n\n // Return a Blob whose contents are bytes and type attribute\n // is mimeType.\n return new Blob([bytes], { type: mimeType })\n }, instance)\n },\n\n arrayBuffer () {\n // The arrayBuffer() method steps are to return the result\n // of running consume body with this and the following step\n // given a byte sequence bytes: return a new ArrayBuffer\n // whose contents are bytes.\n return consumeBody(this, (bytes) => {\n return new Uint8Array(bytes).buffer\n }, instance)\n },\n\n text () {\n // The text() method steps are to return the result of running\n // consume body with this and UTF-8 decode.\n return consumeBody(this, utf8DecodeBytes, instance)\n },\n\n json () {\n // The json() method steps are to return the result of running\n // consume body with this and parse JSON from bytes.\n return consumeBody(this, parseJSONFromBytes, instance)\n },\n\n formData () {\n // The formData() method steps are to return the result of running\n // consume body with this and the following step given a byte sequence bytes:\n return consumeBody(this, (value) => {\n // 1. Let mimeType be the result of get the MIME type with this.\n const mimeType = bodyMimeType(this)\n\n // 2. If mimeType is non-null, then switch on mimeType\u2019s essence and run\n // the corresponding steps:\n if (mimeType !== null) {\n switch (mimeType.essence) {\n case 'multipart/form-data': {\n // 1. ... [long step]\n const parsed = multipartFormDataParser(value, mimeType)\n\n // 2. If that fails for some reason, then throw a TypeError.\n if (parsed === 'failure') {\n throw new TypeError('Failed to parse body as FormData.')\n }\n\n // 3. Return a new FormData object, appending each entry,\n // resulting from the parsing operation, to its entry list.\n const fd = new FormData()\n fd[kState] = parsed\n\n return fd\n }\n case 'application/x-www-form-urlencoded': {\n // 1. Let entries be the result of parsing bytes.\n const entries = new URLSearchParams(value.toString())\n\n // 2. If entries is failure, then throw a TypeError.\n\n // 3. Return a new FormData object whose entry list is entries.\n const fd = new FormData()\n\n for (const [name, value] of entries) {\n fd.append(name, value)\n }\n\n return fd\n }\n }\n }\n\n // 3. Throw a TypeError.\n throw new TypeError(\n 'Content-Type was not one of \"multipart/form-data\" or \"application/x-www-form-urlencoded\".'\n )\n }, instance)\n },\n\n bytes () {\n // The bytes() method steps are to return the result of running consume body\n // with this and the following step given a byte sequence bytes: return the\n // result of creating a Uint8Array from bytes in this\u2019s relevant realm.\n return consumeBody(this, (bytes) => {\n return new Uint8Array(bytes)\n }, instance)\n }\n }\n\n return methods\n}\n\nfunction mixinBody (prototype) {\n Object.assign(prototype.prototype, bodyMixinMethods(prototype))\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#concept-body-consume-body\n * @param {Response|Request} object\n * @param {(value: unknown) => unknown} convertBytesToJSValue\n * @param {Response|Request} instance\n */\nasync function consumeBody (object, convertBytesToJSValue, instance) {\n webidl.brandCheck(object, instance)\n\n // 1. If object is unusable, then return a promise rejected\n // with a TypeError.\n if (bodyUnusable(object)) {\n throw new TypeError('Body is unusable: Body has already been read')\n }\n\n throwIfAborted(object[kState])\n\n // 2. Let promise be a new promise.\n const promise = createDeferredPromise()\n\n // 3. Let errorSteps given error be to reject promise with error.\n const errorSteps = (error) => promise.reject(error)\n\n // 4. Let successSteps given a byte sequence data be to resolve\n // promise with the result of running convertBytesToJSValue\n // with data. If that threw an exception, then run errorSteps\n // with that exception.\n const successSteps = (data) => {\n try {\n promise.resolve(convertBytesToJSValue(data))\n } catch (e) {\n errorSteps(e)\n }\n }\n\n // 5. If object\u2019s body is null, then run successSteps with an\n // empty byte sequence.\n if (object[kState].body == null) {\n successSteps(Buffer.allocUnsafe(0))\n return promise.promise\n }\n\n // 6. Otherwise, fully read object\u2019s body given successSteps,\n // errorSteps, and object\u2019s relevant global object.\n await fullyReadBody(object[kState].body, successSteps, errorSteps)\n\n // 7. Return promise.\n return promise.promise\n}\n\n// https://fetch.spec.whatwg.org/#body-unusable\nfunction bodyUnusable (object) {\n const body = object[kState].body\n\n // An object including the Body interface mixin is\n // said to be unusable if its body is non-null and\n // its body\u2019s stream is disturbed or locked.\n return body != null && (body.stream.locked || util.isDisturbed(body.stream))\n}\n\n/**\n * @see https://infra.spec.whatwg.org/#parse-json-bytes-to-a-javascript-value\n * @param {Uint8Array} bytes\n */\nfunction parseJSONFromBytes (bytes) {\n return JSON.parse(utf8DecodeBytes(bytes))\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#concept-body-mime-type\n * @param {import('./response').Response|import('./request').Request} requestOrResponse\n */\nfunction bodyMimeType (requestOrResponse) {\n // 1. Let headers be null.\n // 2. If requestOrResponse is a Request object, then set headers to requestOrResponse\u2019s request\u2019s header list.\n // 3. Otherwise, set headers to requestOrResponse\u2019s response\u2019s header list.\n /** @type {import('./headers').HeadersList} */\n const headers = requestOrResponse[kState].headersList\n\n // 4. Let mimeType be the result of extracting a MIME type from headers.\n const mimeType = extractMimeType(headers)\n\n // 5. If mimeType is failure, then return null.\n if (mimeType === 'failure') {\n return null\n }\n\n // 6. Return mimeType.\n return mimeType\n}\n\nmodule.exports = {\n extractBody,\n safelyExtractBody,\n cloneBody,\n mixinBody,\n streamRegistry,\n hasFinalizationRegistry,\n bodyUnusable\n}\n", "'use strict'\n\n/* global WebAssembly */\n\nconst assert = require('node:assert')\nconst util = require('../core/util.js')\nconst { channels } = require('../core/diagnostics.js')\nconst timers = require('../util/timers.js')\nconst {\n RequestContentLengthMismatchError,\n ResponseContentLengthMismatchError,\n RequestAbortedError,\n InvalidArgumentError,\n HeadersTimeoutError,\n HeadersOverflowError,\n SocketError,\n InformationalError,\n BodyTimeoutError,\n HTTPParserError,\n ResponseExceededMaxSizeError\n} = require('../core/errors.js')\nconst {\n kUrl,\n kReset,\n kClient,\n kParser,\n kBlocking,\n kRunning,\n kPending,\n kSize,\n kWriting,\n kQueue,\n kNoRef,\n kKeepAliveDefaultTimeout,\n kHostHeader,\n kPendingIdx,\n kRunningIdx,\n kError,\n kPipelining,\n kSocket,\n kKeepAliveTimeoutValue,\n kMaxHeadersSize,\n kKeepAliveMaxTimeout,\n kKeepAliveTimeoutThreshold,\n kHeadersTimeout,\n kBodyTimeout,\n kStrictContentLength,\n kMaxRequests,\n kCounter,\n kMaxResponseSize,\n kOnError,\n kResume,\n kHTTPContext\n} = require('../core/symbols.js')\n\nconst constants = require('../llhttp/constants.js')\nconst EMPTY_BUF = Buffer.alloc(0)\nconst FastBuffer = Buffer[Symbol.species]\nconst addListener = util.addListener\nconst removeAllListeners = util.removeAllListeners\nconst kIdleSocketValidation = Symbol('kIdleSocketValidation')\nconst kIdleSocketValidationTimeout = Symbol('kIdleSocketValidationTimeout')\nconst kSocketUsed = Symbol('kSocketUsed')\n\nlet extractBody\n\nasync function lazyllhttp () {\n const llhttpWasmData = process.env.JEST_WORKER_ID ? require('../llhttp/llhttp-wasm.js') : undefined\n\n let mod\n try {\n mod = await WebAssembly.compile(require('../llhttp/llhttp_simd-wasm.js'))\n } catch (e) {\n /* istanbul ignore next */\n\n // We could check if the error was caused by the simd option not\n // being enabled, but the occurring of this other error\n // * https://github.com/emscripten-core/emscripten/issues/11495\n // got me to remove that check to avoid breaking Node 12.\n mod = await WebAssembly.compile(llhttpWasmData || require('../llhttp/llhttp-wasm.js'))\n }\n\n return await WebAssembly.instantiate(mod, {\n env: {\n /* eslint-disable camelcase */\n\n wasm_on_url: (p, at, len) => {\n /* istanbul ignore next */\n return 0\n },\n wasm_on_status: (p, at, len) => {\n assert(currentParser.ptr === p)\n const start = at - currentBufferPtr + currentBufferRef.byteOffset\n return currentParser.onStatus(new FastBuffer(currentBufferRef.buffer, start, len)) || 0\n },\n wasm_on_message_begin: (p) => {\n assert(currentParser.ptr === p)\n return currentParser.onMessageBegin() || 0\n },\n wasm_on_header_field: (p, at, len) => {\n assert(currentParser.ptr === p)\n const start = at - currentBufferPtr + currentBufferRef.byteOffset\n return currentParser.onHeaderField(new FastBuffer(currentBufferRef.buffer, start, len)) || 0\n },\n wasm_on_header_value: (p, at, len) => {\n assert(currentParser.ptr === p)\n const start = at - currentBufferPtr + currentBufferRef.byteOffset\n return currentParser.onHeaderValue(new FastBuffer(currentBufferRef.buffer, start, len)) || 0\n },\n wasm_on_headers_complete: (p, statusCode, upgrade, shouldKeepAlive) => {\n assert(currentParser.ptr === p)\n return currentParser.onHeadersComplete(statusCode, Boolean(upgrade), Boolean(shouldKeepAlive)) || 0\n },\n wasm_on_body: (p, at, len) => {\n assert(currentParser.ptr === p)\n const start = at - currentBufferPtr + currentBufferRef.byteOffset\n return currentParser.onBody(new FastBuffer(currentBufferRef.buffer, start, len)) || 0\n },\n wasm_on_message_complete: (p) => {\n assert(currentParser.ptr === p)\n return currentParser.onMessageComplete() || 0\n }\n\n /* eslint-enable camelcase */\n }\n })\n}\n\nlet llhttpInstance = null\nlet llhttpPromise = lazyllhttp()\nllhttpPromise.catch()\n\nlet currentParser = null\nlet currentBufferRef = null\nlet currentBufferSize = 0\nlet currentBufferPtr = null\n\nconst USE_NATIVE_TIMER = 0\nconst USE_FAST_TIMER = 1\n\n// Use fast timers for headers and body to take eventual event loop\n// latency into account.\nconst TIMEOUT_HEADERS = 2 | USE_FAST_TIMER\nconst TIMEOUT_BODY = 4 | USE_FAST_TIMER\n\n// Use native timers to ignore event loop latency for keep-alive\n// handling.\nconst TIMEOUT_KEEP_ALIVE = 8 | USE_NATIVE_TIMER\n\nclass Parser {\n constructor (client, socket, { exports }) {\n assert(Number.isFinite(client[kMaxHeadersSize]) && client[kMaxHeadersSize] > 0)\n\n this.llhttp = exports\n this.ptr = this.llhttp.llhttp_alloc(constants.TYPE.RESPONSE)\n this.client = client\n this.socket = socket\n this.timeout = null\n this.timeoutValue = null\n this.timeoutType = null\n this.statusCode = null\n this.statusText = ''\n this.upgrade = false\n this.headers = []\n this.headersSize = 0\n this.headersMaxSize = client[kMaxHeadersSize]\n this.shouldKeepAlive = false\n this.paused = false\n this.resume = this.resume.bind(this)\n\n this.bytesRead = 0\n\n this.keepAlive = ''\n this.contentLength = ''\n this.connection = ''\n this.maxResponseSize = client[kMaxResponseSize]\n }\n\n setTimeout (delay, type) {\n // If the existing timer and the new timer are of different timer type\n // (fast or native) or have different delay, we need to clear the existing\n // timer and set a new one.\n if (\n delay !== this.timeoutValue ||\n (type & USE_FAST_TIMER) ^ (this.timeoutType & USE_FAST_TIMER)\n ) {\n // If a timeout is already set, clear it with clearTimeout of the fast\n // timer implementation, as it can clear fast and native timers.\n if (this.timeout) {\n timers.clearTimeout(this.timeout)\n this.timeout = null\n }\n\n if (delay) {\n if (type & USE_FAST_TIMER) {\n this.timeout = timers.setFastTimeout(onParserTimeout, delay, new WeakRef(this))\n } else {\n this.timeout = setTimeout(onParserTimeout, delay, new WeakRef(this))\n this.timeout.unref()\n }\n }\n\n this.timeoutValue = delay\n } else if (this.timeout) {\n // istanbul ignore else: only for jest\n if (this.timeout.refresh) {\n this.timeout.refresh()\n }\n }\n\n this.timeoutType = type\n }\n\n resume () {\n if (this.socket.destroyed || !this.paused) {\n return\n }\n\n assert(this.ptr != null)\n assert(currentParser == null)\n\n this.llhttp.llhttp_resume(this.ptr)\n\n assert(this.timeoutType === TIMEOUT_BODY)\n if (this.timeout) {\n // istanbul ignore else: only for jest\n if (this.timeout.refresh) {\n this.timeout.refresh()\n }\n }\n\n this.paused = false\n this.execute(this.socket.read() || EMPTY_BUF) // Flush parser.\n this.readMore()\n }\n\n readMore () {\n while (!this.paused && this.ptr) {\n const chunk = this.socket.read()\n if (chunk === null) {\n break\n }\n this.execute(chunk)\n }\n }\n\n execute (data) {\n assert(this.ptr != null)\n assert(currentParser == null)\n assert(!this.paused)\n\n const { socket, llhttp } = this\n\n if (data.length > currentBufferSize) {\n if (currentBufferPtr) {\n llhttp.free(currentBufferPtr)\n }\n currentBufferSize = Math.ceil(data.length / 4096) * 4096\n currentBufferPtr = llhttp.malloc(currentBufferSize)\n }\n\n new Uint8Array(llhttp.memory.buffer, currentBufferPtr, currentBufferSize).set(data)\n\n // Call `execute` on the wasm parser.\n // We pass the `llhttp_parser` pointer address, the pointer address of buffer view data,\n // and finally the length of bytes to parse.\n // The return value is an error code or `constants.ERROR.OK`.\n try {\n let ret\n\n try {\n currentBufferRef = data\n currentParser = this\n ret = llhttp.llhttp_execute(this.ptr, currentBufferPtr, data.length)\n /* eslint-disable-next-line no-useless-catch */\n } catch (err) {\n /* istanbul ignore next: difficult to make a test case for */\n throw err\n } finally {\n currentParser = null\n currentBufferRef = null\n }\n\n const offset = llhttp.llhttp_get_error_pos(this.ptr) - currentBufferPtr\n\n if (ret !== constants.ERROR.OK) {\n const body = data.subarray(offset)\n\n if (ret === constants.ERROR.PAUSED_UPGRADE) {\n this.onUpgrade(body)\n } else if (ret === constants.ERROR.PAUSED) {\n this.paused = true\n socket.unshift(body)\n } else {\n throw this.createError(ret, body)\n }\n }\n } catch (err) {\n util.destroy(socket, err)\n }\n }\n\n finish () {\n assert(currentParser === null)\n assert(this.ptr != null)\n assert(!this.paused)\n\n const { llhttp } = this\n\n let ret\n\n try {\n currentParser = this\n ret = llhttp.llhttp_finish(this.ptr)\n } finally {\n currentParser = null\n }\n\n if (ret === constants.ERROR.OK) {\n return null\n }\n\n if (ret === constants.ERROR.PAUSED || ret === constants.ERROR.PAUSED_UPGRADE) {\n this.paused = true\n return null\n }\n\n return this.createError(ret, EMPTY_BUF)\n }\n\n createError (ret, data) {\n const { llhttp, contentLength, bytesRead } = this\n\n if (contentLength && bytesRead !== parseInt(contentLength, 10)) {\n return new ResponseContentLengthMismatchError()\n }\n\n const ptr = llhttp.llhttp_get_error_reason(this.ptr)\n let message = ''\n if (ptr) {\n const len = new Uint8Array(llhttp.memory.buffer, ptr).indexOf(0)\n message =\n 'Response does not match the HTTP/1.1 protocol (' +\n Buffer.from(llhttp.memory.buffer, ptr, len).toString() +\n ')'\n }\n\n return new HTTPParserError(message, constants.ERROR[ret], data)\n }\n\n destroy () {\n assert(this.ptr != null)\n assert(currentParser == null)\n\n this.llhttp.llhttp_free(this.ptr)\n this.ptr = null\n\n this.timeout && timers.clearTimeout(this.timeout)\n this.timeout = null\n this.timeoutValue = null\n this.timeoutType = null\n\n this.paused = false\n }\n\n onStatus (buf) {\n this.statusText = buf.toString()\n }\n\n onMessageBegin () {\n const { socket, client } = this\n\n /* istanbul ignore next: difficult to make a test case for */\n if (socket.destroyed) {\n return -1\n }\n\n if (client[kRunning] === 0) {\n util.destroy(socket, new SocketError('bad response', util.getSocketInfo(socket)))\n return -1\n }\n\n const request = client[kQueue][client[kRunningIdx]]\n if (!request) {\n return -1\n }\n request.onResponseStarted()\n }\n\n onHeaderField (buf) {\n const len = this.headers.length\n\n if ((len & 1) === 0) {\n this.headers.push(buf)\n } else {\n this.headers[len - 1] = Buffer.concat([this.headers[len - 1], buf])\n }\n\n this.trackHeader(buf.length)\n }\n\n onHeaderValue (buf) {\n let len = this.headers.length\n\n if ((len & 1) === 1) {\n this.headers.push(buf)\n len += 1\n } else {\n this.headers[len - 1] = Buffer.concat([this.headers[len - 1], buf])\n }\n\n const key = this.headers[len - 2]\n if (key.length === 10) {\n const headerName = util.bufferToLowerCasedHeaderName(key)\n if (headerName === 'keep-alive') {\n this.keepAlive += buf.toString()\n } else if (headerName === 'connection') {\n this.connection += buf.toString()\n }\n } else if (key.length === 14 && util.bufferToLowerCasedHeaderName(key) === 'content-length') {\n this.contentLength += buf.toString()\n }\n\n this.trackHeader(buf.length)\n }\n\n trackHeader (len) {\n this.headersSize += len\n if (this.headersSize >= this.headersMaxSize) {\n util.destroy(this.socket, new HeadersOverflowError())\n }\n }\n\n onUpgrade (head) {\n const { upgrade, client, socket, headers, statusCode } = this\n\n assert(upgrade)\n assert(client[kSocket] === socket)\n assert(!socket.destroyed)\n assert(!this.paused)\n assert((headers.length & 1) === 0)\n\n const request = client[kQueue][client[kRunningIdx]]\n assert(request)\n assert(request.upgrade || request.method === 'CONNECT')\n\n this.statusCode = null\n this.statusText = ''\n this.shouldKeepAlive = null\n\n this.headers = []\n this.headersSize = 0\n\n socket.unshift(head)\n\n socket[kParser].destroy()\n socket[kParser] = null\n\n socket[kClient] = null\n socket[kError] = null\n\n removeAllListeners(socket)\n\n client[kSocket] = null\n client[kHTTPContext] = null // TODO (fix): This is hacky...\n client[kQueue][client[kRunningIdx]++] = null\n client.emit('disconnect', client[kUrl], [client], new InformationalError('upgrade'))\n\n try {\n request.onUpgrade(statusCode, headers, socket)\n } catch (err) {\n util.destroy(socket, err)\n }\n\n client[kResume]()\n }\n\n onHeadersComplete (statusCode, upgrade, shouldKeepAlive) {\n const { client, socket, headers, statusText } = this\n\n /* istanbul ignore next: difficult to make a test case for */\n if (socket.destroyed) {\n return -1\n }\n\n if (client[kRunning] === 0) {\n util.destroy(socket, new SocketError('bad response', util.getSocketInfo(socket)))\n return -1\n }\n\n const request = client[kQueue][client[kRunningIdx]]\n\n /* istanbul ignore next: difficult to make a test case for */\n if (!request) {\n return -1\n }\n\n assert(!this.upgrade)\n assert(this.statusCode < 200)\n\n if (statusCode === 100) {\n util.destroy(socket, new SocketError('bad response', util.getSocketInfo(socket)))\n return -1\n }\n\n /* this can only happen if server is misbehaving */\n if (upgrade && !request.upgrade) {\n util.destroy(socket, new SocketError('bad upgrade', util.getSocketInfo(socket)))\n return -1\n }\n\n assert(this.timeoutType === TIMEOUT_HEADERS)\n\n this.statusCode = statusCode\n this.shouldKeepAlive = (\n shouldKeepAlive ||\n // Override llhttp value which does not allow keepAlive for HEAD.\n (request.method === 'HEAD' && !socket[kReset] && this.connection.toLowerCase() === 'keep-alive')\n )\n\n if (this.statusCode >= 200) {\n const bodyTimeout = request.bodyTimeout != null\n ? request.bodyTimeout\n : client[kBodyTimeout]\n this.setTimeout(bodyTimeout, TIMEOUT_BODY)\n } else if (this.timeout) {\n // istanbul ignore else: only for jest\n if (this.timeout.refresh) {\n this.timeout.refresh()\n }\n }\n\n if (request.method === 'CONNECT') {\n assert(client[kRunning] === 1)\n this.upgrade = true\n return 2\n }\n\n if (upgrade) {\n assert(client[kRunning] === 1)\n this.upgrade = true\n return 2\n }\n\n assert((this.headers.length & 1) === 0)\n this.headers = []\n this.headersSize = 0\n\n if (this.shouldKeepAlive && client[kPipelining]) {\n const keepAliveTimeout = this.keepAlive ? util.parseKeepAliveTimeout(this.keepAlive) : null\n\n if (keepAliveTimeout != null) {\n const timeout = Math.min(\n keepAliveTimeout - client[kKeepAliveTimeoutThreshold],\n client[kKeepAliveMaxTimeout]\n )\n if (timeout <= 0) {\n socket[kReset] = true\n } else {\n client[kKeepAliveTimeoutValue] = timeout\n }\n } else {\n client[kKeepAliveTimeoutValue] = client[kKeepAliveDefaultTimeout]\n }\n } else {\n // Stop more requests from being dispatched.\n socket[kReset] = true\n }\n\n const pause = request.onHeaders(statusCode, headers, this.resume, statusText) === false\n\n if (request.aborted) {\n return -1\n }\n\n if (request.method === 'HEAD') {\n return 1\n }\n\n if (statusCode < 200) {\n return 1\n }\n\n if (socket[kBlocking]) {\n socket[kBlocking] = false\n client[kResume]()\n }\n\n return pause ? constants.ERROR.PAUSED : 0\n }\n\n onBody (buf) {\n const { client, socket, statusCode, maxResponseSize } = this\n\n if (socket.destroyed) {\n return -1\n }\n\n const request = client[kQueue][client[kRunningIdx]]\n assert(request)\n\n assert(this.timeoutType === TIMEOUT_BODY)\n if (this.timeout) {\n // istanbul ignore else: only for jest\n if (this.timeout.refresh) {\n this.timeout.refresh()\n }\n }\n\n assert(statusCode >= 200)\n\n if (maxResponseSize > -1 && this.bytesRead + buf.length > maxResponseSize) {\n util.destroy(socket, new ResponseExceededMaxSizeError())\n return -1\n }\n\n this.bytesRead += buf.length\n\n if (request.onData(buf) === false) {\n return constants.ERROR.PAUSED\n }\n }\n\n onMessageComplete () {\n const { client, socket, statusCode, upgrade, headers, contentLength, bytesRead, shouldKeepAlive } = this\n\n if (socket.destroyed && (!statusCode || shouldKeepAlive)) {\n return -1\n }\n\n if (upgrade) {\n return\n }\n\n assert(statusCode >= 100)\n assert((this.headers.length & 1) === 0)\n\n const request = client[kQueue][client[kRunningIdx]]\n assert(request)\n\n this.statusCode = null\n this.statusText = ''\n this.bytesRead = 0\n this.contentLength = ''\n this.keepAlive = ''\n this.connection = ''\n\n this.headers = []\n this.headersSize = 0\n\n if (statusCode < 200) {\n return\n }\n\n /* istanbul ignore next: should be handled by llhttp? */\n if (request.method !== 'HEAD' && contentLength && bytesRead !== parseInt(contentLength, 10)) {\n util.destroy(socket, new ResponseContentLengthMismatchError())\n return -1\n }\n\n request.onComplete(headers)\n\n client[kQueue][client[kRunningIdx]++] = null\n socket[kSocketUsed] = true\n\n if (socket[kWriting]) {\n assert(client[kRunning] === 0)\n // Response completed before request.\n util.destroy(socket, new InformationalError('reset'))\n return constants.ERROR.PAUSED\n } else if (!shouldKeepAlive) {\n util.destroy(socket, new InformationalError('reset'))\n return constants.ERROR.PAUSED\n } else if (socket[kReset] && client[kRunning] === 0) {\n // Destroy socket once all requests have completed.\n // The request at the tail of the pipeline is the one\n // that requested reset and no further requests should\n // have been queued since then.\n util.destroy(socket, new InformationalError('reset'))\n return constants.ERROR.PAUSED\n } else if (client[kPipelining] == null || client[kPipelining] === 1) {\n // We must wait a full event loop cycle to reuse this socket to make sure\n // that non-spec compliant servers are not closing the connection even if they\n // said they won't.\n setImmediate(() => client[kResume]())\n } else {\n client[kResume]()\n }\n }\n}\n\nfunction onParserTimeout (parser) {\n const { socket, timeoutType, client, paused } = parser.deref()\n\n /* istanbul ignore else */\n if (timeoutType === TIMEOUT_HEADERS) {\n if (!socket[kWriting] || socket.writableNeedDrain || client[kRunning] > 1) {\n assert(!paused, 'cannot be paused while waiting for headers')\n util.destroy(socket, new HeadersTimeoutError())\n }\n } else if (timeoutType === TIMEOUT_BODY) {\n if (!paused) {\n util.destroy(socket, new BodyTimeoutError())\n }\n } else if (timeoutType === TIMEOUT_KEEP_ALIVE) {\n assert(client[kRunning] === 0 && client[kKeepAliveTimeoutValue])\n util.destroy(socket, new InformationalError('socket idle timeout'))\n }\n}\n\nasync function connectH1 (client, socket) {\n client[kSocket] = socket\n\n if (!llhttpInstance) {\n llhttpInstance = await llhttpPromise\n llhttpPromise = null\n }\n\n socket[kNoRef] = false\n socket[kWriting] = false\n socket[kReset] = false\n socket[kBlocking] = false\n socket[kIdleSocketValidation] = 0\n socket[kIdleSocketValidationTimeout] = null\n socket[kSocketUsed] = false\n socket[kParser] = new Parser(client, socket, llhttpInstance)\n\n addListener(socket, 'error', function (err) {\n assert(err.code !== 'ERR_TLS_CERT_ALTNAME_INVALID')\n\n const parser = this[kParser]\n\n // On Mac OS, we get an ECONNRESET even if there is a full body to be forwarded\n // to the user.\n if (err.code === 'ECONNRESET' && parser.statusCode && !parser.shouldKeepAlive) {\n const parserErr = parser.finish()\n if (parserErr) {\n this[kError] = parserErr\n this[kClient][kOnError](parserErr)\n }\n return\n }\n\n this[kError] = err\n\n this[kClient][kOnError](err)\n })\n addListener(socket, 'readable', function () {\n const parser = this[kParser]\n\n if (parser) {\n parser.readMore()\n }\n })\n addListener(socket, 'end', function () {\n const parser = this[kParser]\n\n if (parser.statusCode && !parser.shouldKeepAlive) {\n const parserErr = parser.finish()\n if (parserErr) {\n util.destroy(this, parserErr)\n }\n return\n }\n\n util.destroy(this, new SocketError('other side closed', util.getSocketInfo(this)))\n })\n addListener(socket, 'close', function () {\n const client = this[kClient]\n const parser = this[kParser]\n\n clearIdleSocketValidation(this)\n\n if (parser) {\n if (!this[kError] && parser.statusCode && !parser.shouldKeepAlive) {\n this[kError] = parser.finish() || this[kError]\n }\n\n this[kParser].destroy()\n this[kParser] = null\n }\n\n const err = this[kError] || new SocketError('closed', util.getSocketInfo(this))\n\n client[kSocket] = null\n client[kHTTPContext] = null // TODO (fix): This is hacky...\n\n if (client.destroyed) {\n assert(client[kPending] === 0)\n\n // Fail entire queue.\n const requests = client[kQueue].splice(client[kRunningIdx])\n for (let i = 0; i < requests.length; i++) {\n const request = requests[i]\n util.errorRequest(client, request, err)\n }\n } else if (client[kRunning] > 0 && err.code !== 'UND_ERR_INFO') {\n // Fail head of pipeline.\n const request = client[kQueue][client[kRunningIdx]]\n client[kQueue][client[kRunningIdx]++] = null\n\n util.errorRequest(client, request, err)\n }\n\n client[kPendingIdx] = client[kRunningIdx]\n\n assert(client[kRunning] === 0)\n\n client.emit('disconnect', client[kUrl], [client], err)\n\n client[kResume]()\n })\n\n let closed = false\n socket.on('close', () => {\n closed = true\n })\n\n return {\n version: 'h1',\n defaultPipelining: 1,\n write (...args) {\n return writeH1(client, ...args)\n },\n resume () {\n resumeH1(client)\n },\n destroy (err, callback) {\n if (closed) {\n queueMicrotask(callback)\n } else {\n socket.destroy(err).on('close', callback)\n }\n },\n get destroyed () {\n return socket.destroyed\n },\n busy (request) {\n if (socket[kWriting] || socket[kReset] || socket[kBlocking] || socket[kIdleSocketValidation] === 1) {\n return true\n }\n\n if (request) {\n if (client[kRunning] > 0 && !request.idempotent) {\n // Non-idempotent request cannot be retried.\n // Ensure that no other requests are inflight and\n // could cause failure.\n return true\n }\n\n if (client[kRunning] > 0 && (request.upgrade || request.method === 'CONNECT')) {\n // Don't dispatch an upgrade until all preceding requests have completed.\n // A misbehaving server might upgrade the connection before all pipelined\n // request has completed.\n return true\n }\n\n if (client[kRunning] > 0 && util.bodyLength(request.body) !== 0 &&\n (util.isStream(request.body) || util.isAsyncIterable(request.body) || util.isFormDataLike(request.body))) {\n // Request with stream or iterator body can error while other requests\n // are inflight and indirectly error those as well.\n // Ensure this doesn't happen by waiting for inflight\n // to complete before dispatching.\n\n // Request with stream or iterator body cannot be retried.\n // Ensure that no other requests are inflight and\n // could cause failure.\n return true\n }\n }\n\n return false\n }\n }\n}\n\nfunction clearIdleSocketValidation (socket) {\n if (socket[kIdleSocketValidationTimeout]) {\n clearImmediate(socket[kIdleSocketValidationTimeout])\n socket[kIdleSocketValidationTimeout] = null\n }\n\n socket[kIdleSocketValidation] = 0\n}\n\nfunction scheduleIdleSocketValidation (client, socket) {\n socket[kIdleSocketValidation] = 1\n // Yield to the check phase (after poll) so unsolicited bytes / FIN / RST\n // already pending on this idle keep-alive socket are processed before the\n // next request is written (GHSA-35p6-xmwp-9g52).\n //\n // setTimeout(0) pays Node's ~1ms timer floor on every sequential reuse\n // (#5493). setImmediate avoids that, but an *unref'd* Immediate lets poll\n // block for ~500ms when the event loop is otherwise idle (#5600 / #5606).\n // A ref'd Immediate both keeps the pending request alive and makes poll\n // return immediately \u2014 the hybrid those issues asked for.\n socket[kIdleSocketValidationTimeout] = setImmediate(() => {\n socket[kIdleSocketValidationTimeout] = null\n socket[kIdleSocketValidation] = 2\n\n if (client[kSocket] === socket && !socket.destroyed) {\n client[kResume]()\n }\n })\n}\n\n/**\n * @param {import('./client.js')} client\n */\nfunction resumeH1 (client) {\n const socket = client[kSocket]\n\n if (socket && !socket.destroyed) {\n if (client[kSize] === 0) {\n if (!socket[kNoRef] && socket.unref) {\n socket.unref()\n socket[kNoRef] = true\n }\n } else if (socket[kNoRef] && socket.ref) {\n socket.ref()\n socket[kNoRef] = false\n }\n\n if (client[kRunning] === 0 && client[kPending] > 0 && socket[kSocketUsed]) {\n if (socket[kIdleSocketValidation] === 0) {\n scheduleIdleSocketValidation(client, socket)\n socket[kParser].readMore()\n if (socket.destroyed) {\n return\n }\n return\n }\n\n if (socket[kIdleSocketValidation] === 1) {\n socket[kParser].readMore()\n if (socket.destroyed) {\n return\n }\n return\n }\n }\n\n if (client[kRunning] === 0) {\n socket[kParser].readMore()\n if (socket.destroyed) {\n return\n }\n }\n\n if (client[kSize] === 0) {\n if (socket[kParser].timeoutType !== TIMEOUT_KEEP_ALIVE) {\n socket[kParser].setTimeout(client[kKeepAliveTimeoutValue], TIMEOUT_KEEP_ALIVE)\n }\n } else if (client[kRunning] > 0 && socket[kParser].statusCode < 200) {\n if (socket[kParser].timeoutType !== TIMEOUT_HEADERS) {\n const request = client[kQueue][client[kRunningIdx]]\n const headersTimeout = request.headersTimeout != null\n ? request.headersTimeout\n : client[kHeadersTimeout]\n socket[kParser].setTimeout(headersTimeout, TIMEOUT_HEADERS)\n }\n }\n }\n}\n\n// https://www.rfc-editor.org/rfc/rfc7230#section-3.3.2\nfunction shouldSendContentLength (method) {\n return method !== 'GET' && method !== 'HEAD' && method !== 'OPTIONS' && method !== 'TRACE' && method !== 'CONNECT'\n}\n\nfunction writeH1 (client, request) {\n const { method, path, host, upgrade, blocking, reset } = request\n\n let { body, headers, contentLength } = request\n\n // https://tools.ietf.org/html/rfc7231#section-4.3.1\n // https://tools.ietf.org/html/rfc7231#section-4.3.2\n // https://tools.ietf.org/html/rfc7231#section-4.3.5\n\n // Sending a payload body on a request that does not\n // expect it can cause undefined behavior on some\n // servers and corrupt connection state. Do not\n // re-use the connection for further requests.\n\n const expectsPayload = (\n method === 'PUT' ||\n method === 'POST' ||\n method === 'PATCH' ||\n method === 'QUERY' ||\n method === 'PROPFIND' ||\n method === 'PROPPATCH'\n )\n\n if (util.isFormDataLike(body)) {\n if (!extractBody) {\n extractBody = require('../web/fetch/body.js').extractBody\n }\n\n const [bodyStream, contentType] = extractBody(body)\n if (request.contentType == null) {\n headers.push('content-type', contentType)\n }\n body = bodyStream.stream\n contentLength = bodyStream.length\n } else if (util.isBlobLike(body) && request.contentType == null) {\n const contentType = body.type\n if (contentType) {\n const contentTypeValue = `${contentType}`\n if (!util.isValidHeaderValue(contentTypeValue)) {\n util.errorRequest(client, request, new InvalidArgumentError('invalid content-type header'))\n return false\n }\n headers.push('content-type', contentTypeValue)\n }\n }\n\n if (body && typeof body.read === 'function') {\n // Try to read EOF in order to get length.\n body.read(0)\n }\n\n const bodyLength = util.bodyLength(body)\n\n contentLength = bodyLength ?? contentLength\n\n if (contentLength === null) {\n contentLength = request.contentLength\n }\n\n if (contentLength === 0 && !expectsPayload) {\n // https://tools.ietf.org/html/rfc7230#section-3.3.2\n // A user agent SHOULD NOT send a Content-Length header field when\n // the request message does not contain a payload body and the method\n // semantics do not anticipate such a body.\n\n contentLength = null\n }\n\n // https://github.com/nodejs/undici/issues/2046\n // A user agent may send a Content-Length header with 0 value, this should be allowed.\n if (shouldSendContentLength(method) && contentLength > 0 && request.contentLength !== null && request.contentLength !== contentLength) {\n if (client[kStrictContentLength]) {\n util.errorRequest(client, request, new RequestContentLengthMismatchError())\n return false\n }\n\n process.emitWarning(new RequestContentLengthMismatchError())\n }\n\n const socket = client[kSocket]\n clearIdleSocketValidation(socket)\n\n const abort = (err) => {\n if (request.aborted || request.completed) {\n return\n }\n\n util.errorRequest(client, request, err || new RequestAbortedError())\n\n util.destroy(body)\n util.destroy(socket, new InformationalError('aborted'))\n }\n\n try {\n request.onConnect(abort)\n } catch (err) {\n util.errorRequest(client, request, err)\n }\n\n if (request.aborted) {\n return false\n }\n\n if (method === 'HEAD') {\n // https://github.com/mcollina/undici/issues/258\n // Close after a HEAD request to interop with misbehaving servers\n // that may send a body in the response.\n\n socket[kReset] = true\n }\n\n if (upgrade || method === 'CONNECT') {\n // On CONNECT or upgrade, block pipeline from dispatching further\n // requests on this connection.\n\n socket[kReset] = true\n }\n\n if (reset != null) {\n socket[kReset] = reset\n }\n\n if (client[kMaxRequests] && socket[kCounter]++ >= client[kMaxRequests]) {\n socket[kReset] = true\n }\n\n if (blocking) {\n socket[kBlocking] = true\n }\n\n let header = `${method} ${path} HTTP/1.1\\r\\n`\n\n if (typeof host === 'string') {\n header += `host: ${host}\\r\\n`\n } else {\n header += client[kHostHeader]\n }\n\n if (upgrade) {\n header += `connection: upgrade\\r\\nupgrade: ${upgrade}\\r\\n`\n } else if (client[kPipelining] && !socket[kReset]) {\n header += 'connection: keep-alive\\r\\n'\n } else {\n header += 'connection: close\\r\\n'\n }\n\n if (Array.isArray(headers)) {\n for (let n = 0; n < headers.length; n += 2) {\n const key = headers[n + 0]\n const val = headers[n + 1]\n\n if (Array.isArray(val)) {\n for (let i = 0; i < val.length; i++) {\n header += `${key}: ${val[i]}\\r\\n`\n }\n } else {\n header += `${key}: ${val}\\r\\n`\n }\n }\n }\n\n if (channels.sendHeaders.hasSubscribers) {\n channels.sendHeaders.publish({ request, headers: header, socket })\n }\n\n /* istanbul ignore else: assertion */\n if (!body || bodyLength === 0) {\n writeBuffer(abort, null, client, request, socket, contentLength, header, expectsPayload)\n } else if (util.isBuffer(body)) {\n writeBuffer(abort, body, client, request, socket, contentLength, header, expectsPayload)\n } else if (util.isBlobLike(body)) {\n if (typeof body.stream === 'function') {\n writeIterable(abort, body.stream(), client, request, socket, contentLength, header, expectsPayload)\n } else {\n writeBlob(abort, body, client, request, socket, contentLength, header, expectsPayload)\n }\n } else if (util.isStream(body)) {\n writeStream(abort, body, client, request, socket, contentLength, header, expectsPayload)\n } else if (util.isIterable(body)) {\n writeIterable(abort, body, client, request, socket, contentLength, header, expectsPayload)\n } else {\n assert(false)\n }\n\n return true\n}\n\nfunction writeStream (abort, body, client, request, socket, contentLength, header, expectsPayload) {\n assert(contentLength !== 0 || client[kRunning] === 0, 'stream body cannot be pipelined')\n\n let finished = false\n\n const writer = new AsyncWriter({ abort, socket, request, contentLength, client, expectsPayload, header })\n\n const onData = function (chunk) {\n if (finished) {\n return\n }\n\n try {\n if (!writer.write(chunk) && this.pause) {\n this.pause()\n }\n } catch (err) {\n util.destroy(this, err)\n }\n }\n const onDrain = function () {\n if (finished) {\n return\n }\n\n if (body.resume) {\n body.resume()\n }\n }\n const onClose = function () {\n // 'close' might be emitted *before* 'error' for\n // broken streams. Wait a tick to avoid this case.\n queueMicrotask(() => {\n // It's only safe to remove 'error' listener after\n // 'close'.\n body.removeListener('error', onFinished)\n })\n\n if (!finished) {\n const err = new RequestAbortedError()\n queueMicrotask(() => onFinished(err))\n }\n }\n const onFinished = function (err) {\n if (finished) {\n return\n }\n\n finished = true\n\n assert(socket.destroyed || (socket[kWriting] && client[kRunning] <= 1))\n\n socket\n .off('drain', onDrain)\n .off('error', onFinished)\n\n body\n .removeListener('data', onData)\n .removeListener('end', onFinished)\n .removeListener('close', onClose)\n\n if (!err) {\n try {\n writer.end()\n } catch (er) {\n err = er\n }\n }\n\n writer.destroy(err)\n\n if (err && (err.code !== 'UND_ERR_INFO' || err.message !== 'reset')) {\n util.destroy(body, err)\n } else {\n util.destroy(body)\n }\n }\n\n body\n .on('data', onData)\n .on('end', onFinished)\n .on('error', onFinished)\n .on('close', onClose)\n\n if (body.resume) {\n body.resume()\n }\n\n socket\n .on('drain', onDrain)\n .on('error', onFinished)\n\n if (body.errorEmitted ?? body.errored) {\n setImmediate(() => onFinished(body.errored))\n } else if (body.endEmitted ?? body.readableEnded) {\n setImmediate(() => onFinished(null))\n }\n\n if (body.closeEmitted ?? body.closed) {\n setImmediate(onClose)\n }\n}\n\nfunction writeBuffer (abort, body, client, request, socket, contentLength, header, expectsPayload) {\n try {\n if (!body) {\n if (contentLength === 0) {\n socket.write(`${header}content-length: 0\\r\\n\\r\\n`, 'latin1')\n } else {\n assert(contentLength === null, 'no body must not have content length')\n socket.write(`${header}\\r\\n`, 'latin1')\n }\n } else if (util.isBuffer(body)) {\n assert(contentLength === body.byteLength, 'buffer body must have content length')\n\n socket.cork()\n socket.write(`${header}content-length: ${contentLength}\\r\\n\\r\\n`, 'latin1')\n socket.write(body)\n socket.uncork()\n request.onBodySent(body)\n\n if (!expectsPayload && request.reset !== false) {\n socket[kReset] = true\n }\n }\n request.onRequestSent()\n\n client[kResume]()\n } catch (err) {\n abort(err)\n }\n}\n\nasync function writeBlob (abort, body, client, request, socket, contentLength, header, expectsPayload) {\n assert(contentLength === body.size, 'blob body must have content length')\n\n try {\n if (contentLength != null && contentLength !== body.size) {\n throw new RequestContentLengthMismatchError()\n }\n\n const buffer = Buffer.from(await body.arrayBuffer())\n\n socket.cork()\n socket.write(`${header}content-length: ${contentLength}\\r\\n\\r\\n`, 'latin1')\n socket.write(buffer)\n socket.uncork()\n\n request.onBodySent(buffer)\n request.onRequestSent()\n\n if (!expectsPayload && request.reset !== false) {\n socket[kReset] = true\n }\n\n client[kResume]()\n } catch (err) {\n abort(err)\n }\n}\n\nasync function writeIterable (abort, body, client, request, socket, contentLength, header, expectsPayload) {\n assert(contentLength !== 0 || client[kRunning] === 0, 'iterator body cannot be pipelined')\n\n let callback = null\n function onDrain () {\n if (callback) {\n const cb = callback\n callback = null\n cb()\n }\n }\n\n const waitForDrain = () => new Promise((resolve, reject) => {\n assert(callback === null)\n\n if (socket[kError]) {\n reject(socket[kError])\n } else {\n callback = resolve\n }\n })\n\n socket\n .on('close', onDrain)\n .on('drain', onDrain)\n\n const writer = new AsyncWriter({ abort, socket, request, contentLength, client, expectsPayload, header })\n try {\n // It's up to the user to somehow abort the async iterable.\n for await (const chunk of body) {\n if (socket[kError]) {\n throw socket[kError]\n }\n\n if (!writer.write(chunk)) {\n await waitForDrain()\n }\n }\n\n writer.end()\n } catch (err) {\n writer.destroy(err)\n } finally {\n socket\n .off('close', onDrain)\n .off('drain', onDrain)\n }\n}\n\nclass AsyncWriter {\n constructor ({ abort, socket, request, contentLength, client, expectsPayload, header }) {\n this.socket = socket\n this.request = request\n this.contentLength = contentLength\n this.client = client\n this.bytesWritten = 0\n this.expectsPayload = expectsPayload\n this.header = header\n this.abort = abort\n\n socket[kWriting] = true\n }\n\n write (chunk) {\n const { socket, request, contentLength, client, bytesWritten, expectsPayload, header } = this\n\n if (socket[kError]) {\n throw socket[kError]\n }\n\n if (socket.destroyed) {\n return false\n }\n\n const len = Buffer.byteLength(chunk)\n if (!len) {\n return true\n }\n\n // We should defer writing chunks.\n if (contentLength !== null && bytesWritten + len > contentLength) {\n if (client[kStrictContentLength]) {\n throw new RequestContentLengthMismatchError()\n }\n\n process.emitWarning(new RequestContentLengthMismatchError())\n }\n\n socket.cork()\n\n if (bytesWritten === 0) {\n if (!expectsPayload && request.reset !== false) {\n socket[kReset] = true\n }\n\n if (contentLength === null) {\n socket.write(`${header}transfer-encoding: chunked\\r\\n`, 'latin1')\n } else {\n socket.write(`${header}content-length: ${contentLength}\\r\\n\\r\\n`, 'latin1')\n }\n }\n\n if (contentLength === null) {\n socket.write(`\\r\\n${len.toString(16)}\\r\\n`, 'latin1')\n }\n\n this.bytesWritten += len\n\n const ret = socket.write(chunk)\n\n socket.uncork()\n\n request.onBodySent(chunk)\n\n if (!ret) {\n if (socket[kParser].timeout && socket[kParser].timeoutType === TIMEOUT_HEADERS) {\n // istanbul ignore else: only for jest\n if (socket[kParser].timeout.refresh) {\n socket[kParser].timeout.refresh()\n }\n }\n }\n\n return ret\n }\n\n end () {\n const { socket, contentLength, client, bytesWritten, expectsPayload, header, request } = this\n request.onRequestSent()\n\n socket[kWriting] = false\n\n if (socket[kError]) {\n throw socket[kError]\n }\n\n if (socket.destroyed) {\n return\n }\n\n if (bytesWritten === 0) {\n if (expectsPayload) {\n // https://tools.ietf.org/html/rfc7230#section-3.3.2\n // A user agent SHOULD send a Content-Length in a request message when\n // no Transfer-Encoding is sent and the request method defines a meaning\n // for an enclosed payload body.\n\n socket.write(`${header}content-length: 0\\r\\n\\r\\n`, 'latin1')\n } else {\n socket.write(`${header}\\r\\n`, 'latin1')\n }\n } else if (contentLength === null) {\n socket.write('\\r\\n0\\r\\n\\r\\n', 'latin1')\n }\n\n if (contentLength !== null && bytesWritten !== contentLength) {\n if (client[kStrictContentLength]) {\n throw new RequestContentLengthMismatchError()\n } else {\n process.emitWarning(new RequestContentLengthMismatchError())\n }\n }\n\n if (socket[kParser].timeout && socket[kParser].timeoutType === TIMEOUT_HEADERS) {\n // istanbul ignore else: only for jest\n if (socket[kParser].timeout.refresh) {\n socket[kParser].timeout.refresh()\n }\n }\n\n client[kResume]()\n }\n\n destroy (err) {\n const { socket, client, abort } = this\n\n socket[kWriting] = false\n\n if (err) {\n assert(client[kRunning] <= 1, 'pipeline should only contain this request')\n abort(err)\n }\n }\n}\n\nmodule.exports = connectH1\n", "'use strict'\n\nconst assert = require('node:assert')\nconst { pipeline } = require('node:stream')\nconst util = require('../core/util.js')\nconst {\n RequestContentLengthMismatchError,\n RequestAbortedError,\n SocketError,\n InformationalError\n} = require('../core/errors.js')\nconst {\n kUrl,\n kReset,\n kClient,\n kRunning,\n kPending,\n kQueue,\n kPendingIdx,\n kRunningIdx,\n kError,\n kSocket,\n kStrictContentLength,\n kOnError,\n kMaxConcurrentStreams,\n kHTTP2Session,\n kResume,\n kSize,\n kHTTPContext\n} = require('../core/symbols.js')\n\nconst kOpenStreams = Symbol('open streams')\n\nlet extractBody\n\n// Experimental\nlet h2ExperimentalWarned = false\n\n/** @type {import('http2')} */\nlet http2\ntry {\n http2 = require('node:http2')\n} catch {\n // @ts-ignore\n http2 = { constants: {} }\n}\n\nconst {\n constants: {\n HTTP2_HEADER_AUTHORITY,\n HTTP2_HEADER_METHOD,\n HTTP2_HEADER_PATH,\n HTTP2_HEADER_SCHEME,\n HTTP2_HEADER_CONTENT_LENGTH,\n HTTP2_HEADER_EXPECT,\n HTTP2_HEADER_STATUS\n }\n} = http2\n\nfunction parseH2Headers (headers) {\n const result = []\n\n for (const [name, value] of Object.entries(headers)) {\n // h2 may concat the header value by array\n // e.g. Set-Cookie\n if (Array.isArray(value)) {\n for (const subvalue of value) {\n // we need to provide each header value of header name\n // because the headers handler expect name-value pair\n result.push(Buffer.from(name), Buffer.from(subvalue))\n }\n } else {\n result.push(Buffer.from(name), Buffer.from(value))\n }\n }\n\n return result\n}\n\nasync function connectH2 (client, socket) {\n client[kSocket] = socket\n\n if (!h2ExperimentalWarned) {\n h2ExperimentalWarned = true\n process.emitWarning('H2 support is experimental, expect them to change at any time.', {\n code: 'UNDICI-H2'\n })\n }\n\n const session = http2.connect(client[kUrl], {\n createConnection: () => socket,\n peerMaxConcurrentStreams: client[kMaxConcurrentStreams]\n })\n\n session[kOpenStreams] = 0\n session[kClient] = client\n session[kSocket] = socket\n\n util.addListener(session, 'error', onHttp2SessionError)\n util.addListener(session, 'frameError', onHttp2FrameError)\n util.addListener(session, 'end', onHttp2SessionEnd)\n util.addListener(session, 'goaway', onHTTP2GoAway)\n util.addListener(session, 'close', function () {\n const { [kClient]: client } = this\n const { [kSocket]: socket } = client\n\n const err = this[kSocket][kError] || this[kError] || new SocketError('closed', util.getSocketInfo(socket))\n\n client[kHTTP2Session] = null\n\n if (client.destroyed) {\n assert(client[kPending] === 0)\n\n // Fail entire queue.\n const requests = client[kQueue].splice(client[kRunningIdx])\n for (let i = 0; i < requests.length; i++) {\n const request = requests[i]\n util.errorRequest(client, request, err)\n }\n }\n })\n\n session.unref()\n\n client[kHTTP2Session] = session\n socket[kHTTP2Session] = session\n\n util.addListener(socket, 'error', function (err) {\n assert(err.code !== 'ERR_TLS_CERT_ALTNAME_INVALID')\n\n this[kError] = err\n\n this[kClient][kOnError](err)\n })\n\n util.addListener(socket, 'end', function () {\n util.destroy(this, new SocketError('other side closed', util.getSocketInfo(this)))\n })\n\n util.addListener(socket, 'close', function () {\n const err = this[kError] || new SocketError('closed', util.getSocketInfo(this))\n\n client[kSocket] = null\n\n if (this[kHTTP2Session] != null) {\n this[kHTTP2Session].destroy(err)\n }\n\n client[kPendingIdx] = client[kRunningIdx]\n\n assert(client[kRunning] === 0)\n\n client.emit('disconnect', client[kUrl], [client], err)\n\n client[kResume]()\n })\n\n let closed = false\n socket.on('close', () => {\n closed = true\n })\n\n return {\n version: 'h2',\n defaultPipelining: Infinity,\n write (...args) {\n return writeH2(client, ...args)\n },\n resume () {\n resumeH2(client)\n },\n destroy (err, callback) {\n if (closed) {\n queueMicrotask(callback)\n } else {\n // Destroying the socket will trigger the session close\n socket.destroy(err).on('close', callback)\n }\n },\n get destroyed () {\n return socket.destroyed\n },\n busy () {\n return false\n }\n }\n}\n\nfunction resumeH2 (client) {\n const socket = client[kSocket]\n\n if (socket?.destroyed === false) {\n if (client[kSize] === 0 && client[kMaxConcurrentStreams] === 0) {\n socket.unref()\n client[kHTTP2Session].unref()\n } else {\n socket.ref()\n client[kHTTP2Session].ref()\n }\n }\n}\n\nfunction onHttp2SessionError (err) {\n assert(err.code !== 'ERR_TLS_CERT_ALTNAME_INVALID')\n\n this[kSocket][kError] = err\n this[kClient][kOnError](err)\n}\n\nfunction onHttp2FrameError (type, code, id) {\n if (id === 0) {\n const err = new InformationalError(`HTTP/2: \"frameError\" received - type ${type}, code ${code}`)\n this[kSocket][kError] = err\n this[kClient][kOnError](err)\n }\n}\n\nfunction onHttp2SessionEnd () {\n const err = new SocketError('other side closed', util.getSocketInfo(this[kSocket]))\n this.destroy(err)\n util.destroy(this[kSocket], err)\n}\n\n/**\n * This is the root cause of #3011\n * We need to handle GOAWAY frames properly, and trigger the session close\n * along with the socket right away\n */\nfunction onHTTP2GoAway (code) {\n // We cannot recover, so best to close the session and the socket\n const err = this[kError] || new SocketError(`HTTP/2: \"GOAWAY\" frame received with code ${code}`, util.getSocketInfo(this))\n const client = this[kClient]\n\n client[kSocket] = null\n client[kHTTPContext] = null\n\n if (this[kHTTP2Session] != null) {\n this[kHTTP2Session].destroy(err)\n this[kHTTP2Session] = null\n }\n\n util.destroy(this[kSocket], err)\n\n // Fail head of pipeline.\n if (client[kRunningIdx] < client[kQueue].length) {\n const request = client[kQueue][client[kRunningIdx]]\n client[kQueue][client[kRunningIdx]++] = null\n util.errorRequest(client, request, err)\n client[kPendingIdx] = client[kRunningIdx]\n }\n\n assert(client[kRunning] === 0)\n\n client.emit('disconnect', client[kUrl], [client], err)\n\n client[kResume]()\n}\n\n// https://www.rfc-editor.org/rfc/rfc7230#section-3.3.2\nfunction shouldSendContentLength (method) {\n return method !== 'GET' && method !== 'HEAD' && method !== 'OPTIONS' && method !== 'TRACE' && method !== 'CONNECT'\n}\n\nfunction writeH2 (client, request) {\n const session = client[kHTTP2Session]\n const { method, path, host, upgrade, expectContinue, signal, headers: reqHeaders } = request\n let { body } = request\n\n if (upgrade) {\n util.errorRequest(client, request, new Error('Upgrade not supported for H2'))\n return false\n }\n\n const headers = {}\n for (let n = 0; n < reqHeaders.length; n += 2) {\n const key = reqHeaders[n + 0]\n const val = reqHeaders[n + 1]\n\n if (Array.isArray(val)) {\n for (let i = 0; i < val.length; i++) {\n if (headers[key]) {\n headers[key] += `,${val[i]}`\n } else {\n headers[key] = val[i]\n }\n }\n } else {\n headers[key] = val\n }\n }\n\n /** @type {import('node:http2').ClientHttp2Stream} */\n let stream\n\n const { hostname, port } = client[kUrl]\n\n headers[HTTP2_HEADER_AUTHORITY] = host || `${hostname}${port ? `:${port}` : ''}`\n headers[HTTP2_HEADER_METHOD] = method\n\n const abort = (err) => {\n if (request.aborted || request.completed) {\n return\n }\n\n err = err || new RequestAbortedError()\n\n util.errorRequest(client, request, err)\n\n if (stream != null) {\n util.destroy(stream, err)\n }\n\n // We do not destroy the socket as we can continue using the session\n // the stream get's destroyed and the session remains to create new streams\n util.destroy(body, err)\n client[kQueue][client[kRunningIdx]++] = null\n client[kResume]()\n }\n\n try {\n // We are already connected, streams are pending.\n // We can call on connect, and wait for abort\n request.onConnect(abort)\n } catch (err) {\n util.errorRequest(client, request, err)\n }\n\n if (request.aborted) {\n return false\n }\n\n if (method === 'CONNECT') {\n session.ref()\n // We are already connected, streams are pending, first request\n // will create a new stream. We trigger a request to create the stream and wait until\n // `ready` event is triggered\n // We disabled endStream to allow the user to write to the stream\n stream = session.request(headers, { endStream: false, signal })\n\n if (stream.id && !stream.pending) {\n request.onUpgrade(null, null, stream)\n ++session[kOpenStreams]\n client[kQueue][client[kRunningIdx]++] = null\n } else {\n stream.once('ready', () => {\n request.onUpgrade(null, null, stream)\n ++session[kOpenStreams]\n client[kQueue][client[kRunningIdx]++] = null\n })\n }\n\n stream.once('close', () => {\n session[kOpenStreams] -= 1\n if (session[kOpenStreams] === 0) session.unref()\n })\n\n return true\n }\n\n // https://tools.ietf.org/html/rfc7540#section-8.3\n // :path and :scheme headers must be omitted when sending CONNECT\n\n headers[HTTP2_HEADER_PATH] = path\n headers[HTTP2_HEADER_SCHEME] = 'https'\n\n // https://tools.ietf.org/html/rfc7231#section-4.3.1\n // https://tools.ietf.org/html/rfc7231#section-4.3.2\n // https://tools.ietf.org/html/rfc7231#section-4.3.5\n\n // Sending a payload body on a request that does not\n // expect it can cause undefined behavior on some\n // servers and corrupt connection state. Do not\n // re-use the connection for further requests.\n\n const expectsPayload = (\n method === 'PUT' ||\n method === 'POST' ||\n method === 'PATCH'\n )\n\n if (body && typeof body.read === 'function') {\n // Try to read EOF in order to get length.\n body.read(0)\n }\n\n let contentLength = util.bodyLength(body)\n\n if (util.isFormDataLike(body)) {\n extractBody ??= require('../web/fetch/body.js').extractBody\n\n const [bodyStream, contentType] = extractBody(body)\n headers['content-type'] = contentType\n\n body = bodyStream.stream\n contentLength = bodyStream.length\n }\n\n if (contentLength == null) {\n contentLength = request.contentLength\n }\n\n if (contentLength === 0 || !expectsPayload) {\n // https://tools.ietf.org/html/rfc7230#section-3.3.2\n // A user agent SHOULD NOT send a Content-Length header field when\n // the request message does not contain a payload body and the method\n // semantics do not anticipate such a body.\n\n contentLength = null\n }\n\n // https://github.com/nodejs/undici/issues/2046\n // A user agent may send a Content-Length header with 0 value, this should be allowed.\n if (shouldSendContentLength(method) && contentLength > 0 && request.contentLength != null && request.contentLength !== contentLength) {\n if (client[kStrictContentLength]) {\n util.errorRequest(client, request, new RequestContentLengthMismatchError())\n return false\n }\n\n process.emitWarning(new RequestContentLengthMismatchError())\n }\n\n if (contentLength != null) {\n assert(body, 'no body must not have content length')\n headers[HTTP2_HEADER_CONTENT_LENGTH] = `${contentLength}`\n }\n\n session.ref()\n\n const shouldEndStream = method === 'GET' || method === 'HEAD' || body === null\n if (expectContinue) {\n headers[HTTP2_HEADER_EXPECT] = '100-continue'\n stream = session.request(headers, { endStream: shouldEndStream, signal })\n\n stream.once('continue', writeBodyH2)\n } else {\n stream = session.request(headers, {\n endStream: shouldEndStream,\n signal\n })\n writeBodyH2()\n }\n\n // Increment counter as we have new streams open\n ++session[kOpenStreams]\n\n stream.once('response', headers => {\n const { [HTTP2_HEADER_STATUS]: statusCode, ...realHeaders } = headers\n request.onResponseStarted()\n\n // Due to the stream nature, it is possible we face a race condition\n // where the stream has been assigned, but the request has been aborted\n // the request remains in-flight and headers hasn't been received yet\n // for those scenarios, best effort is to destroy the stream immediately\n // as there's no value to keep it open.\n if (request.aborted) {\n const err = new RequestAbortedError()\n util.errorRequest(client, request, err)\n util.destroy(stream, err)\n return\n }\n\n if (request.onHeaders(Number(statusCode), parseH2Headers(realHeaders), stream.resume.bind(stream), '') === false) {\n stream.pause()\n }\n\n stream.on('data', (chunk) => {\n if (request.onData(chunk) === false) {\n stream.pause()\n }\n })\n })\n\n stream.once('end', () => {\n // When state is null, it means we haven't consumed body and the stream still do not have\n // a state.\n // Present specially when using pipeline or stream\n if (stream.state?.state == null || stream.state.state < 6) {\n request.onComplete([])\n }\n\n if (session[kOpenStreams] === 0) {\n // Stream is closed or half-closed-remote (6), decrement counter and cleanup\n // It does not have sense to continue working with the stream as we do not\n // have yet RST_STREAM support on client-side\n\n session.unref()\n }\n\n abort(new InformationalError('HTTP/2: stream half-closed (remote)'))\n client[kQueue][client[kRunningIdx]++] = null\n client[kPendingIdx] = client[kRunningIdx]\n client[kResume]()\n })\n\n stream.once('close', () => {\n session[kOpenStreams] -= 1\n if (session[kOpenStreams] === 0) {\n session.unref()\n }\n })\n\n stream.once('error', function (err) {\n abort(err)\n })\n\n stream.once('frameError', (type, code) => {\n abort(new InformationalError(`HTTP/2: \"frameError\" received - type ${type}, code ${code}`))\n })\n\n // stream.on('aborted', () => {\n // // TODO(HTTP/2): Support aborted\n // })\n\n // stream.on('timeout', () => {\n // // TODO(HTTP/2): Support timeout\n // })\n\n // stream.on('push', headers => {\n // // TODO(HTTP/2): Support push\n // })\n\n // stream.on('trailers', headers => {\n // // TODO(HTTP/2): Support trailers\n // })\n\n return true\n\n function writeBodyH2 () {\n /* istanbul ignore else: assertion */\n if (!body || contentLength === 0) {\n writeBuffer(\n abort,\n stream,\n null,\n client,\n request,\n client[kSocket],\n contentLength,\n expectsPayload\n )\n } else if (util.isBuffer(body)) {\n writeBuffer(\n abort,\n stream,\n body,\n client,\n request,\n client[kSocket],\n contentLength,\n expectsPayload\n )\n } else if (util.isBlobLike(body)) {\n if (typeof body.stream === 'function') {\n writeIterable(\n abort,\n stream,\n body.stream(),\n client,\n request,\n client[kSocket],\n contentLength,\n expectsPayload\n )\n } else {\n writeBlob(\n abort,\n stream,\n body,\n client,\n request,\n client[kSocket],\n contentLength,\n expectsPayload\n )\n }\n } else if (util.isStream(body)) {\n writeStream(\n abort,\n client[kSocket],\n expectsPayload,\n stream,\n body,\n client,\n request,\n contentLength\n )\n } else if (util.isIterable(body)) {\n writeIterable(\n abort,\n stream,\n body,\n client,\n request,\n client[kSocket],\n contentLength,\n expectsPayload\n )\n } else {\n assert(false)\n }\n }\n}\n\nfunction writeBuffer (abort, h2stream, body, client, request, socket, contentLength, expectsPayload) {\n try {\n if (body != null && util.isBuffer(body)) {\n assert(contentLength === body.byteLength, 'buffer body must have content length')\n h2stream.cork()\n h2stream.write(body)\n h2stream.uncork()\n h2stream.end()\n\n request.onBodySent(body)\n }\n\n if (!expectsPayload) {\n socket[kReset] = true\n }\n\n request.onRequestSent()\n client[kResume]()\n } catch (error) {\n abort(error)\n }\n}\n\nfunction writeStream (abort, socket, expectsPayload, h2stream, body, client, request, contentLength) {\n assert(contentLength !== 0 || client[kRunning] === 0, 'stream body cannot be pipelined')\n\n // For HTTP/2, is enough to pipe the stream\n const pipe = pipeline(\n body,\n h2stream,\n (err) => {\n if (err) {\n util.destroy(pipe, err)\n abort(err)\n } else {\n util.removeAllListeners(pipe)\n request.onRequestSent()\n\n if (!expectsPayload) {\n socket[kReset] = true\n }\n\n client[kResume]()\n }\n }\n )\n\n util.addListener(pipe, 'data', onPipeData)\n\n function onPipeData (chunk) {\n request.onBodySent(chunk)\n }\n}\n\nasync function writeBlob (abort, h2stream, body, client, request, socket, contentLength, expectsPayload) {\n assert(contentLength === body.size, 'blob body must have content length')\n\n try {\n if (contentLength != null && contentLength !== body.size) {\n throw new RequestContentLengthMismatchError()\n }\n\n const buffer = Buffer.from(await body.arrayBuffer())\n\n h2stream.cork()\n h2stream.write(buffer)\n h2stream.uncork()\n h2stream.end()\n\n request.onBodySent(buffer)\n request.onRequestSent()\n\n if (!expectsPayload) {\n socket[kReset] = true\n }\n\n client[kResume]()\n } catch (err) {\n abort(err)\n }\n}\n\nasync function writeIterable (abort, h2stream, body, client, request, socket, contentLength, expectsPayload) {\n assert(contentLength !== 0 || client[kRunning] === 0, 'iterator body cannot be pipelined')\n\n let callback = null\n function onDrain () {\n if (callback) {\n const cb = callback\n callback = null\n cb()\n }\n }\n\n const waitForDrain = () => new Promise((resolve, reject) => {\n assert(callback === null)\n\n if (socket[kError]) {\n reject(socket[kError])\n } else {\n callback = resolve\n }\n })\n\n h2stream\n .on('close', onDrain)\n .on('drain', onDrain)\n\n try {\n // It's up to the user to somehow abort the async iterable.\n for await (const chunk of body) {\n if (socket[kError]) {\n throw socket[kError]\n }\n\n const res = h2stream.write(chunk)\n request.onBodySent(chunk)\n if (!res) {\n await waitForDrain()\n }\n }\n\n h2stream.end()\n\n request.onRequestSent()\n\n if (!expectsPayload) {\n socket[kReset] = true\n }\n\n client[kResume]()\n } catch (err) {\n abort(err)\n } finally {\n h2stream\n .off('close', onDrain)\n .off('drain', onDrain)\n }\n}\n\nmodule.exports = connectH2\n", "'use strict'\n\nconst util = require('../core/util')\nconst { kBodyUsed } = require('../core/symbols')\nconst assert = require('node:assert')\nconst { InvalidArgumentError } = require('../core/errors')\nconst EE = require('node:events')\n\nconst redirectableStatusCodes = [300, 301, 302, 303, 307, 308]\n\nconst kBody = Symbol('body')\n\nclass BodyAsyncIterable {\n constructor (body) {\n this[kBody] = body\n this[kBodyUsed] = false\n }\n\n async * [Symbol.asyncIterator] () {\n assert(!this[kBodyUsed], 'disturbed')\n this[kBodyUsed] = true\n yield * this[kBody]\n }\n}\n\nclass RedirectHandler {\n constructor (dispatch, maxRedirections, opts, handler) {\n if (maxRedirections != null && (!Number.isInteger(maxRedirections) || maxRedirections < 0)) {\n throw new InvalidArgumentError('maxRedirections must be a positive number')\n }\n\n util.validateHandler(handler, opts.method, opts.upgrade)\n\n this.dispatch = dispatch\n this.location = null\n this.abort = null\n this.opts = { ...opts, maxRedirections: 0 } // opts must be a copy\n this.maxRedirections = maxRedirections\n this.handler = handler\n this.history = []\n this.redirectionLimitReached = false\n\n if (util.isStream(this.opts.body)) {\n // TODO (fix): Provide some way for the user to cache the file to e.g. /tmp\n // so that it can be dispatched again?\n // TODO (fix): Do we need 100-expect support to provide a way to do this properly?\n if (util.bodyLength(this.opts.body) === 0) {\n this.opts.body\n .on('data', function () {\n assert(false)\n })\n }\n\n if (typeof this.opts.body.readableDidRead !== 'boolean') {\n this.opts.body[kBodyUsed] = false\n EE.prototype.on.call(this.opts.body, 'data', function () {\n this[kBodyUsed] = true\n })\n }\n } else if (this.opts.body && typeof this.opts.body.pipeTo === 'function') {\n // TODO (fix): We can't access ReadableStream internal state\n // to determine whether or not it has been disturbed. This is just\n // a workaround.\n this.opts.body = new BodyAsyncIterable(this.opts.body)\n } else if (\n this.opts.body &&\n typeof this.opts.body !== 'string' &&\n !ArrayBuffer.isView(this.opts.body) &&\n util.isIterable(this.opts.body)\n ) {\n // TODO: Should we allow re-using iterable if !this.opts.idempotent\n // or through some other flag?\n this.opts.body = new BodyAsyncIterable(this.opts.body)\n }\n }\n\n onConnect (abort) {\n this.abort = abort\n this.handler.onConnect(abort, { history: this.history })\n }\n\n onUpgrade (statusCode, headers, socket) {\n this.handler.onUpgrade(statusCode, headers, socket)\n }\n\n onError (error) {\n this.handler.onError(error)\n }\n\n onHeaders (statusCode, headers, resume, statusText) {\n this.location = this.history.length >= this.maxRedirections || util.isDisturbed(this.opts.body)\n ? null\n : parseLocation(statusCode, headers)\n\n if (this.opts.throwOnMaxRedirect && this.history.length >= this.maxRedirections) {\n if (this.request) {\n this.request.abort(new Error('max redirects'))\n }\n\n this.redirectionLimitReached = true\n this.abort(new Error('max redirects'))\n return\n }\n\n if (this.opts.origin) {\n this.history.push(new URL(this.opts.path, this.opts.origin))\n }\n\n if (!this.location) {\n return this.handler.onHeaders(statusCode, headers, resume, statusText)\n }\n\n const { origin, pathname, search } = util.parseURL(new URL(this.location, this.opts.origin && new URL(this.opts.path, this.opts.origin)))\n const path = search ? `${pathname}${search}` : pathname\n\n // Remove headers referring to the original URL.\n // By default it is Host only, unless it's a 303 (see below), which removes also all Content-* headers.\n // https://tools.ietf.org/html/rfc7231#section-6.4\n this.opts.headers = cleanRequestHeaders(this.opts.headers, statusCode === 303, this.opts.origin !== origin)\n this.opts.path = path\n this.opts.origin = origin\n this.opts.maxRedirections = 0\n this.opts.query = null\n\n // https://tools.ietf.org/html/rfc7231#section-6.4.4\n // In case of HTTP 303, always replace method to be either HEAD or GET\n if (statusCode === 303 && this.opts.method !== 'HEAD') {\n this.opts.method = 'GET'\n this.opts.body = null\n }\n }\n\n onData (chunk) {\n if (this.location) {\n /*\n https://tools.ietf.org/html/rfc7231#section-6.4\n\n TLDR: undici always ignores 3xx response bodies.\n\n Redirection is used to serve the requested resource from another URL, so it is assumes that\n no body is generated (and thus can be ignored). Even though generating a body is not prohibited.\n\n For status 301, 302, 303, 307 and 308 (the latter from RFC 7238), the specs mention that the body usually\n (which means it's optional and not mandated) contain just an hyperlink to the value of\n the Location response header, so the body can be ignored safely.\n\n For status 300, which is \"Multiple Choices\", the spec mentions both generating a Location\n response header AND a response body with the other possible location to follow.\n Since the spec explicitly chooses not to specify a format for such body and leave it to\n servers and browsers implementors, we ignore the body as there is no specified way to eventually parse it.\n */\n } else {\n return this.handler.onData(chunk)\n }\n }\n\n onComplete (trailers) {\n if (this.location) {\n /*\n https://tools.ietf.org/html/rfc7231#section-6.4\n\n TLDR: undici always ignores 3xx response trailers as they are not expected in case of redirections\n and neither are useful if present.\n\n See comment on onData method above for more detailed information.\n */\n\n this.location = null\n this.abort = null\n\n this.dispatch(this.opts, this)\n } else {\n this.handler.onComplete(trailers)\n }\n }\n\n onBodySent (chunk) {\n if (this.handler.onBodySent) {\n this.handler.onBodySent(chunk)\n }\n }\n}\n\nfunction parseLocation (statusCode, headers) {\n if (redirectableStatusCodes.indexOf(statusCode) === -1) {\n return null\n }\n\n for (let i = 0; i < headers.length; i += 2) {\n if (headers[i].length === 8 && util.headerNameToString(headers[i]) === 'location') {\n return headers[i + 1]\n }\n }\n}\n\n// https://tools.ietf.org/html/rfc7231#section-6.4.4\nfunction shouldRemoveHeader (header, removeContent, unknownOrigin) {\n if (header.length === 4) {\n return util.headerNameToString(header) === 'host'\n }\n if (removeContent && util.headerNameToString(header).startsWith('content-')) {\n return true\n }\n if (unknownOrigin && (header.length === 13 || header.length === 6 || header.length === 19)) {\n const name = util.headerNameToString(header)\n return name === 'authorization' || name === 'cookie' || name === 'proxy-authorization'\n }\n return false\n}\n\n// https://tools.ietf.org/html/rfc7231#section-6.4\nfunction cleanRequestHeaders (headers, removeContent, unknownOrigin) {\n const ret = []\n if (Array.isArray(headers)) {\n for (let i = 0; i < headers.length; i += 2) {\n if (!shouldRemoveHeader(headers[i], removeContent, unknownOrigin)) {\n ret.push(headers[i], headers[i + 1])\n }\n }\n } else if (headers && typeof headers === 'object') {\n for (const key of Object.keys(headers)) {\n if (!shouldRemoveHeader(key, removeContent, unknownOrigin)) {\n ret.push(key, headers[key])\n }\n }\n } else {\n assert(headers == null, 'headers must be an object or an array')\n }\n return ret\n}\n\nmodule.exports = RedirectHandler\n", "'use strict'\n\nconst RedirectHandler = require('../handler/redirect-handler')\n\nfunction createRedirectInterceptor ({ maxRedirections: defaultMaxRedirections }) {\n return (dispatch) => {\n return function Intercept (opts, handler) {\n const { maxRedirections = defaultMaxRedirections } = opts\n\n if (!maxRedirections) {\n return dispatch(opts, handler)\n }\n\n const redirectHandler = new RedirectHandler(dispatch, maxRedirections, opts, handler)\n opts = { ...opts, maxRedirections: 0 } // Stop sub dispatcher from also redirecting.\n return dispatch(opts, redirectHandler)\n }\n }\n}\n\nmodule.exports = createRedirectInterceptor\n", "// @ts-check\n\n'use strict'\n\nconst assert = require('node:assert')\nconst net = require('node:net')\nconst http = require('node:http')\nconst util = require('../core/util.js')\nconst { channels } = require('../core/diagnostics.js')\nconst Request = require('../core/request.js')\nconst DispatcherBase = require('./dispatcher-base')\nconst {\n InvalidArgumentError,\n InformationalError,\n ClientDestroyedError\n} = require('../core/errors.js')\nconst buildConnector = require('../core/connect.js')\nconst {\n kUrl,\n kServerName,\n kClient,\n kBusy,\n kConnect,\n kResuming,\n kRunning,\n kPending,\n kSize,\n kQueue,\n kConnected,\n kConnecting,\n kNeedDrain,\n kKeepAliveDefaultTimeout,\n kHostHeader,\n kPendingIdx,\n kRunningIdx,\n kError,\n kPipelining,\n kKeepAliveTimeoutValue,\n kMaxHeadersSize,\n kKeepAliveMaxTimeout,\n kKeepAliveTimeoutThreshold,\n kHeadersTimeout,\n kBodyTimeout,\n kStrictContentLength,\n kConnector,\n kMaxRedirections,\n kMaxRequests,\n kCounter,\n kClose,\n kDestroy,\n kDispatch,\n kInterceptors,\n kLocalAddress,\n kMaxResponseSize,\n kOnError,\n kHTTPContext,\n kMaxConcurrentStreams,\n kResume\n} = require('../core/symbols.js')\nconst connectH1 = require('./client-h1.js')\nconst connectH2 = require('./client-h2.js')\nlet deprecatedInterceptorWarned = false\n\nconst kClosedResolve = Symbol('kClosedResolve')\n\nconst noop = () => {}\n\nfunction getPipelining (client) {\n return client[kPipelining] ?? client[kHTTPContext]?.defaultPipelining ?? 1\n}\n\n/**\n * @type {import('../../types/client.js').default}\n */\nclass Client extends DispatcherBase {\n /**\n *\n * @param {string|URL} url\n * @param {import('../../types/client.js').Client.Options} options\n */\n constructor (url, {\n interceptors,\n maxHeaderSize,\n headersTimeout,\n socketTimeout,\n requestTimeout,\n connectTimeout,\n bodyTimeout,\n idleTimeout,\n keepAlive,\n keepAliveTimeout,\n maxKeepAliveTimeout,\n keepAliveMaxTimeout,\n keepAliveTimeoutThreshold,\n socketPath,\n pipelining,\n tls,\n strictContentLength,\n maxCachedSessions,\n maxRedirections,\n connect,\n maxRequestsPerClient,\n localAddress,\n maxResponseSize,\n autoSelectFamily,\n autoSelectFamilyAttemptTimeout,\n // h2\n maxConcurrentStreams,\n allowH2,\n webSocket\n } = {}) {\n super({ webSocket })\n\n if (keepAlive !== undefined) {\n throw new InvalidArgumentError('unsupported keepAlive, use pipelining=0 instead')\n }\n\n if (socketTimeout !== undefined) {\n throw new InvalidArgumentError('unsupported socketTimeout, use headersTimeout & bodyTimeout instead')\n }\n\n if (requestTimeout !== undefined) {\n throw new InvalidArgumentError('unsupported requestTimeout, use headersTimeout & bodyTimeout instead')\n }\n\n if (idleTimeout !== undefined) {\n throw new InvalidArgumentError('unsupported idleTimeout, use keepAliveTimeout instead')\n }\n\n if (maxKeepAliveTimeout !== undefined) {\n throw new InvalidArgumentError('unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead')\n }\n\n if (maxHeaderSize != null && !Number.isFinite(maxHeaderSize)) {\n throw new InvalidArgumentError('invalid maxHeaderSize')\n }\n\n if (socketPath != null && typeof socketPath !== 'string') {\n throw new InvalidArgumentError('invalid socketPath')\n }\n\n if (connectTimeout != null && (!Number.isFinite(connectTimeout) || connectTimeout < 0)) {\n throw new InvalidArgumentError('invalid connectTimeout')\n }\n\n if (keepAliveTimeout != null && (!Number.isFinite(keepAliveTimeout) || keepAliveTimeout <= 0)) {\n throw new InvalidArgumentError('invalid keepAliveTimeout')\n }\n\n if (keepAliveMaxTimeout != null && (!Number.isFinite(keepAliveMaxTimeout) || keepAliveMaxTimeout <= 0)) {\n throw new InvalidArgumentError('invalid keepAliveMaxTimeout')\n }\n\n if (keepAliveTimeoutThreshold != null && !Number.isFinite(keepAliveTimeoutThreshold)) {\n throw new InvalidArgumentError('invalid keepAliveTimeoutThreshold')\n }\n\n if (headersTimeout != null && (!Number.isInteger(headersTimeout) || headersTimeout < 0)) {\n throw new InvalidArgumentError('headersTimeout must be a positive integer or zero')\n }\n\n if (bodyTimeout != null && (!Number.isInteger(bodyTimeout) || bodyTimeout < 0)) {\n throw new InvalidArgumentError('bodyTimeout must be a positive integer or zero')\n }\n\n if (connect != null && typeof connect !== 'function' && typeof connect !== 'object') {\n throw new InvalidArgumentError('connect must be a function or an object')\n }\n\n if (maxRedirections != null && (!Number.isInteger(maxRedirections) || maxRedirections < 0)) {\n throw new InvalidArgumentError('maxRedirections must be a positive number')\n }\n\n if (maxRequestsPerClient != null && (!Number.isInteger(maxRequestsPerClient) || maxRequestsPerClient < 0)) {\n throw new InvalidArgumentError('maxRequestsPerClient must be a positive number')\n }\n\n if (localAddress != null && (typeof localAddress !== 'string' || net.isIP(localAddress) === 0)) {\n throw new InvalidArgumentError('localAddress must be valid string IP address')\n }\n\n if (maxResponseSize != null && (!Number.isInteger(maxResponseSize) || maxResponseSize < -1)) {\n throw new InvalidArgumentError('maxResponseSize must be a positive number')\n }\n\n if (\n autoSelectFamilyAttemptTimeout != null &&\n (!Number.isInteger(autoSelectFamilyAttemptTimeout) || autoSelectFamilyAttemptTimeout < -1)\n ) {\n throw new InvalidArgumentError('autoSelectFamilyAttemptTimeout must be a positive number')\n }\n\n // h2\n if (allowH2 != null && typeof allowH2 !== 'boolean') {\n throw new InvalidArgumentError('allowH2 must be a valid boolean value')\n }\n\n if (maxConcurrentStreams != null && (typeof maxConcurrentStreams !== 'number' || maxConcurrentStreams < 1)) {\n throw new InvalidArgumentError('maxConcurrentStreams must be a positive integer, greater than 0')\n }\n\n if (typeof connect !== 'function') {\n connect = buildConnector({\n ...tls,\n maxCachedSessions,\n allowH2,\n socketPath,\n timeout: connectTimeout,\n ...(autoSelectFamily ? { autoSelectFamily, autoSelectFamilyAttemptTimeout } : undefined),\n ...connect\n })\n }\n\n if (interceptors?.Client && Array.isArray(interceptors.Client)) {\n this[kInterceptors] = interceptors.Client\n if (!deprecatedInterceptorWarned) {\n deprecatedInterceptorWarned = true\n process.emitWarning('Client.Options#interceptor is deprecated. Use Dispatcher#compose instead.', {\n code: 'UNDICI-CLIENT-INTERCEPTOR-DEPRECATED'\n })\n }\n } else {\n this[kInterceptors] = [createRedirectInterceptor({ maxRedirections })]\n }\n\n this[kUrl] = util.parseOrigin(url)\n this[kConnector] = connect\n this[kPipelining] = pipelining != null ? pipelining : 1\n this[kMaxHeadersSize] = maxHeaderSize || http.maxHeaderSize\n this[kKeepAliveDefaultTimeout] = keepAliveTimeout == null ? 4e3 : keepAliveTimeout\n this[kKeepAliveMaxTimeout] = keepAliveMaxTimeout == null ? 600e3 : keepAliveMaxTimeout\n this[kKeepAliveTimeoutThreshold] = keepAliveTimeoutThreshold == null ? 2e3 : keepAliveTimeoutThreshold\n this[kKeepAliveTimeoutValue] = this[kKeepAliveDefaultTimeout]\n this[kServerName] = null\n this[kLocalAddress] = localAddress != null ? localAddress : null\n this[kResuming] = 0 // 0, idle, 1, scheduled, 2 resuming\n this[kNeedDrain] = 0 // 0, idle, 1, scheduled, 2 resuming\n this[kHostHeader] = `host: ${this[kUrl].hostname}${this[kUrl].port ? `:${this[kUrl].port}` : ''}\\r\\n`\n this[kBodyTimeout] = bodyTimeout != null ? bodyTimeout : 300e3\n this[kHeadersTimeout] = headersTimeout != null ? headersTimeout : 300e3\n this[kStrictContentLength] = strictContentLength == null ? true : strictContentLength\n this[kMaxRedirections] = maxRedirections\n this[kMaxRequests] = maxRequestsPerClient\n this[kClosedResolve] = null\n this[kMaxResponseSize] = maxResponseSize > -1 ? maxResponseSize : -1\n this[kMaxConcurrentStreams] = maxConcurrentStreams != null ? maxConcurrentStreams : 100 // Max peerConcurrentStreams for a Node h2 server\n this[kHTTPContext] = null\n\n // kQueue is built up of 3 sections separated by\n // the kRunningIdx and kPendingIdx indices.\n // | complete | running | pending |\n // ^ kRunningIdx ^ kPendingIdx ^ kQueue.length\n // kRunningIdx points to the first running element.\n // kPendingIdx points to the first pending element.\n // This implements a fast queue with an amortized\n // time of O(1).\n\n this[kQueue] = []\n this[kRunningIdx] = 0\n this[kPendingIdx] = 0\n\n this[kResume] = (sync) => resume(this, sync)\n this[kOnError] = (err) => onError(this, err)\n }\n\n get pipelining () {\n return this[kPipelining]\n }\n\n set pipelining (value) {\n this[kPipelining] = value\n this[kResume](true)\n }\n\n get [kPending] () {\n return this[kQueue].length - this[kPendingIdx]\n }\n\n get [kRunning] () {\n return this[kPendingIdx] - this[kRunningIdx]\n }\n\n get [kSize] () {\n return this[kQueue].length - this[kRunningIdx]\n }\n\n get [kConnected] () {\n return !!this[kHTTPContext] && !this[kConnecting] && !this[kHTTPContext].destroyed\n }\n\n get [kBusy] () {\n return Boolean(\n this[kHTTPContext]?.busy(null) ||\n (this[kSize] >= (getPipelining(this) || 1)) ||\n this[kPending] > 0\n )\n }\n\n /* istanbul ignore: only used for test */\n [kConnect] (cb) {\n connect(this)\n this.once('connect', cb)\n }\n\n [kDispatch] (opts, handler) {\n const origin = opts.origin || this[kUrl].origin\n const request = new Request(origin, opts, handler)\n\n this[kQueue].push(request)\n if (this[kResuming]) {\n // Do nothing.\n } else if (util.bodyLength(request.body) == null && util.isIterable(request.body)) {\n // Wait a tick in case stream/iterator is ended in the same tick.\n this[kResuming] = 1\n queueMicrotask(() => resume(this))\n } else {\n this[kResume](true)\n }\n\n if (this[kResuming] && this[kNeedDrain] !== 2 && this[kBusy]) {\n this[kNeedDrain] = 2\n }\n\n return this[kNeedDrain] < 2\n }\n\n async [kClose] () {\n // TODO: for H2 we need to gracefully flush the remaining enqueued\n // request and close each stream.\n return new Promise((resolve) => {\n if (this[kSize]) {\n this[kClosedResolve] = resolve\n } else {\n resolve(null)\n }\n })\n }\n\n async [kDestroy] (err) {\n return new Promise((resolve) => {\n const requests = this[kQueue].splice(this[kPendingIdx])\n for (let i = 0; i < requests.length; i++) {\n const request = requests[i]\n util.errorRequest(this, request, err)\n }\n\n const callback = () => {\n if (this[kClosedResolve]) {\n // TODO (fix): Should we error here with ClientDestroyedError?\n this[kClosedResolve]()\n this[kClosedResolve] = null\n }\n resolve(null)\n }\n\n if (this[kHTTPContext]) {\n this[kHTTPContext].destroy(err, callback)\n this[kHTTPContext] = null\n } else {\n queueMicrotask(callback)\n }\n\n this[kResume]()\n })\n }\n}\n\nconst createRedirectInterceptor = require('../interceptor/redirect-interceptor.js')\n\nfunction onError (client, err) {\n if (\n client[kRunning] === 0 &&\n err.code !== 'UND_ERR_INFO' &&\n err.code !== 'UND_ERR_SOCKET'\n ) {\n // Error is not caused by running request and not a recoverable\n // socket error.\n\n assert(client[kPendingIdx] === client[kRunningIdx])\n\n const requests = client[kQueue].splice(client[kRunningIdx])\n\n for (let i = 0; i < requests.length; i++) {\n const request = requests[i]\n util.errorRequest(client, request, err)\n }\n assert(client[kSize] === 0)\n }\n}\n\n/**\n * @param {Client} client\n * @returns\n */\nasync function connect (client) {\n assert(!client[kConnecting])\n assert(!client[kHTTPContext])\n\n let { host, hostname, protocol, port } = client[kUrl]\n\n // Resolve ipv6\n if (hostname[0] === '[') {\n const idx = hostname.indexOf(']')\n\n assert(idx !== -1)\n const ip = hostname.substring(1, idx)\n\n assert(net.isIP(ip))\n hostname = ip\n }\n\n client[kConnecting] = true\n\n if (channels.beforeConnect.hasSubscribers) {\n channels.beforeConnect.publish({\n connectParams: {\n host,\n hostname,\n protocol,\n port,\n version: client[kHTTPContext]?.version,\n servername: client[kServerName],\n localAddress: client[kLocalAddress]\n },\n connector: client[kConnector]\n })\n }\n\n try {\n const socket = await new Promise((resolve, reject) => {\n client[kConnector]({\n host,\n hostname,\n protocol,\n port,\n servername: client[kServerName],\n localAddress: client[kLocalAddress]\n }, (err, socket) => {\n if (err) {\n reject(err)\n } else {\n resolve(socket)\n }\n })\n })\n\n if (client.destroyed) {\n util.destroy(socket.on('error', noop), new ClientDestroyedError())\n return\n }\n\n assert(socket)\n\n try {\n client[kHTTPContext] = socket.alpnProtocol === 'h2'\n ? await connectH2(client, socket)\n : await connectH1(client, socket)\n } catch (err) {\n socket.destroy().on('error', noop)\n throw err\n }\n\n client[kConnecting] = false\n\n socket[kCounter] = 0\n socket[kMaxRequests] = client[kMaxRequests]\n socket[kClient] = client\n socket[kError] = null\n\n if (channels.connected.hasSubscribers) {\n channels.connected.publish({\n connectParams: {\n host,\n hostname,\n protocol,\n port,\n version: client[kHTTPContext]?.version,\n servername: client[kServerName],\n localAddress: client[kLocalAddress]\n },\n connector: client[kConnector],\n socket\n })\n }\n client.emit('connect', client[kUrl], [client])\n } catch (err) {\n if (client.destroyed) {\n return\n }\n\n client[kConnecting] = false\n\n if (channels.connectError.hasSubscribers) {\n channels.connectError.publish({\n connectParams: {\n host,\n hostname,\n protocol,\n port,\n version: client[kHTTPContext]?.version,\n servername: client[kServerName],\n localAddress: client[kLocalAddress]\n },\n connector: client[kConnector],\n error: err\n })\n }\n\n if (err.code === 'ERR_TLS_CERT_ALTNAME_INVALID') {\n assert(client[kRunning] === 0)\n while (client[kPending] > 0 && client[kQueue][client[kPendingIdx]].servername === client[kServerName]) {\n const request = client[kQueue][client[kPendingIdx]++]\n util.errorRequest(client, request, err)\n }\n } else {\n onError(client, err)\n }\n\n client.emit('connectionError', client[kUrl], [client], err)\n }\n\n client[kResume]()\n}\n\nfunction emitDrain (client) {\n client[kNeedDrain] = 0\n client.emit('drain', client[kUrl], [client])\n}\n\nfunction resume (client, sync) {\n if (client[kResuming] === 2) {\n return\n }\n\n client[kResuming] = 2\n\n _resume(client, sync)\n client[kResuming] = 0\n\n if (client[kRunningIdx] > 256) {\n client[kQueue].splice(0, client[kRunningIdx])\n client[kPendingIdx] -= client[kRunningIdx]\n client[kRunningIdx] = 0\n }\n}\n\nfunction _resume (client, sync) {\n while (true) {\n if (client.destroyed) {\n assert(client[kPending] === 0)\n return\n }\n\n if (client[kClosedResolve] && !client[kSize]) {\n client[kClosedResolve]()\n client[kClosedResolve] = null\n return\n }\n\n if (client[kHTTPContext]) {\n client[kHTTPContext].resume()\n }\n\n if (client[kBusy]) {\n client[kNeedDrain] = 2\n } else if (client[kNeedDrain] === 2) {\n if (sync) {\n client[kNeedDrain] = 1\n queueMicrotask(() => emitDrain(client))\n } else {\n emitDrain(client)\n }\n continue\n }\n\n if (client[kPending] === 0) {\n return\n }\n\n if (client[kRunning] >= (getPipelining(client) || 1)) {\n return\n }\n\n const request = client[kQueue][client[kPendingIdx]]\n\n if (client[kUrl].protocol === 'https:' && client[kServerName] !== request.servername) {\n if (client[kRunning] > 0) {\n return\n }\n\n client[kServerName] = request.servername\n client[kHTTPContext]?.destroy(new InformationalError('servername changed'), () => {\n client[kHTTPContext] = null\n resume(client)\n })\n }\n\n if (client[kConnecting]) {\n return\n }\n\n if (!client[kHTTPContext]) {\n connect(client)\n return\n }\n\n if (client[kHTTPContext].destroyed) {\n return\n }\n\n if (client[kHTTPContext].busy(request)) {\n return\n }\n\n if (!request.aborted && client[kHTTPContext].write(request)) {\n client[kPendingIdx]++\n } else {\n client[kQueue].splice(client[kPendingIdx], 1)\n }\n }\n}\n\nmodule.exports = Client\n", "/* eslint-disable */\n\n'use strict'\n\n// Extracted from node/lib/internal/fixed_queue.js\n\n// Currently optimal queue size, tested on V8 6.0 - 6.6. Must be power of two.\nconst kSize = 2048;\nconst kMask = kSize - 1;\n\n// The FixedQueue is implemented as a singly-linked list of fixed-size\n// circular buffers. It looks something like this:\n//\n// head tail\n// | |\n// v v\n// +-----------+ <-----\\ +-----------+ <------\\ +-----------+\n// | [null] | \\----- | next | \\------- | next |\n// +-----------+ +-----------+ +-----------+\n// | item | <-- bottom | item | <-- bottom | [empty] |\n// | item | | item | | [empty] |\n// | item | | item | | [empty] |\n// | item | | item | | [empty] |\n// | item | | item | bottom --> | item |\n// | item | | item | | item |\n// | ... | | ... | | ... |\n// | item | | item | | item |\n// | item | | item | | item |\n// | [empty] | <-- top | item | | item |\n// | [empty] | | item | | item |\n// | [empty] | | [empty] | <-- top top --> | [empty] |\n// +-----------+ +-----------+ +-----------+\n//\n// Or, if there is only one circular buffer, it looks something\n// like either of these:\n//\n// head tail head tail\n// | | | |\n// v v v v\n// +-----------+ +-----------+\n// | [null] | | [null] |\n// +-----------+ +-----------+\n// | [empty] | | item |\n// | [empty] | | item |\n// | item | <-- bottom top --> | [empty] |\n// | item | | [empty] |\n// | [empty] | <-- top bottom --> | item |\n// | [empty] | | item |\n// +-----------+ +-----------+\n//\n// Adding a value means moving `top` forward by one, removing means\n// moving `bottom` forward by one. After reaching the end, the queue\n// wraps around.\n//\n// When `top === bottom` the current queue is empty and when\n// `top + 1 === bottom` it's full. This wastes a single space of storage\n// but allows much quicker checks.\n\nclass FixedCircularBuffer {\n constructor() {\n this.bottom = 0;\n this.top = 0;\n this.list = new Array(kSize);\n this.next = null;\n }\n\n isEmpty() {\n return this.top === this.bottom;\n }\n\n isFull() {\n return ((this.top + 1) & kMask) === this.bottom;\n }\n\n push(data) {\n this.list[this.top] = data;\n this.top = (this.top + 1) & kMask;\n }\n\n shift() {\n const nextItem = this.list[this.bottom];\n if (nextItem === undefined)\n return null;\n this.list[this.bottom] = undefined;\n this.bottom = (this.bottom + 1) & kMask;\n return nextItem;\n }\n}\n\nmodule.exports = class FixedQueue {\n constructor() {\n this.head = this.tail = new FixedCircularBuffer();\n }\n\n isEmpty() {\n return this.head.isEmpty();\n }\n\n push(data) {\n if (this.head.isFull()) {\n // Head is full: Creates a new queue, sets the old queue's `.next` to it,\n // and sets it as the new main queue.\n this.head = this.head.next = new FixedCircularBuffer();\n }\n this.head.push(data);\n }\n\n shift() {\n const tail = this.tail;\n const next = tail.shift();\n if (tail.isEmpty() && tail.next !== null) {\n // If there is another queue, it forms the new tail.\n this.tail = tail.next;\n }\n return next;\n }\n};\n", "const { kFree, kConnected, kPending, kQueued, kRunning, kSize } = require('../core/symbols')\nconst kPool = Symbol('pool')\n\nclass PoolStats {\n constructor (pool) {\n this[kPool] = pool\n }\n\n get connected () {\n return this[kPool][kConnected]\n }\n\n get free () {\n return this[kPool][kFree]\n }\n\n get pending () {\n return this[kPool][kPending]\n }\n\n get queued () {\n return this[kPool][kQueued]\n }\n\n get running () {\n return this[kPool][kRunning]\n }\n\n get size () {\n return this[kPool][kSize]\n }\n}\n\nmodule.exports = PoolStats\n", "'use strict'\n\nconst DispatcherBase = require('./dispatcher-base')\nconst FixedQueue = require('./fixed-queue')\nconst { kConnected, kSize, kRunning, kPending, kQueued, kBusy, kFree, kUrl, kClose, kDestroy, kDispatch } = require('../core/symbols')\nconst PoolStats = require('./pool-stats')\n\nconst kClients = Symbol('clients')\nconst kNeedDrain = Symbol('needDrain')\nconst kQueue = Symbol('queue')\nconst kClosedResolve = Symbol('closed resolve')\nconst kOnDrain = Symbol('onDrain')\nconst kOnConnect = Symbol('onConnect')\nconst kOnDisconnect = Symbol('onDisconnect')\nconst kOnConnectionError = Symbol('onConnectionError')\nconst kGetDispatcher = Symbol('get dispatcher')\nconst kAddClient = Symbol('add client')\nconst kRemoveClient = Symbol('remove client')\nconst kStats = Symbol('stats')\n\nclass PoolBase extends DispatcherBase {\n constructor (opts) {\n super(opts)\n\n this[kQueue] = new FixedQueue()\n this[kClients] = []\n this[kQueued] = 0\n\n const pool = this\n\n this[kOnDrain] = function onDrain (origin, targets) {\n const queue = pool[kQueue]\n\n let needDrain = false\n\n while (!needDrain) {\n const item = queue.shift()\n if (!item) {\n break\n }\n pool[kQueued]--\n needDrain = !this.dispatch(item.opts, item.handler)\n }\n\n this[kNeedDrain] = needDrain\n\n if (!this[kNeedDrain] && pool[kNeedDrain]) {\n pool[kNeedDrain] = false\n pool.emit('drain', origin, [pool, ...targets])\n }\n\n if (pool[kClosedResolve] && queue.isEmpty()) {\n Promise\n .all(pool[kClients].map(c => c.close()))\n .then(pool[kClosedResolve])\n }\n }\n\n this[kOnConnect] = (origin, targets) => {\n pool.emit('connect', origin, [pool, ...targets])\n }\n\n this[kOnDisconnect] = (origin, targets, err) => {\n pool.emit('disconnect', origin, [pool, ...targets], err)\n }\n\n this[kOnConnectionError] = (origin, targets, err) => {\n pool.emit('connectionError', origin, [pool, ...targets], err)\n }\n\n this[kStats] = new PoolStats(this)\n }\n\n get [kBusy] () {\n return this[kNeedDrain]\n }\n\n get [kConnected] () {\n return this[kClients].filter(client => client[kConnected]).length\n }\n\n get [kFree] () {\n return this[kClients].filter(client => client[kConnected] && !client[kNeedDrain]).length\n }\n\n get [kPending] () {\n let ret = this[kQueued]\n for (const { [kPending]: pending } of this[kClients]) {\n ret += pending\n }\n return ret\n }\n\n get [kRunning] () {\n let ret = 0\n for (const { [kRunning]: running } of this[kClients]) {\n ret += running\n }\n return ret\n }\n\n get [kSize] () {\n let ret = this[kQueued]\n for (const { [kSize]: size } of this[kClients]) {\n ret += size\n }\n return ret\n }\n\n get stats () {\n return this[kStats]\n }\n\n async [kClose] () {\n if (this[kQueue].isEmpty()) {\n await Promise.all(this[kClients].map(c => c.close()))\n } else {\n await new Promise((resolve) => {\n this[kClosedResolve] = resolve\n })\n }\n }\n\n async [kDestroy] (err) {\n while (true) {\n const item = this[kQueue].shift()\n if (!item) {\n break\n }\n item.handler.onError(err)\n }\n\n await Promise.all(this[kClients].map(c => c.destroy(err)))\n }\n\n [kDispatch] (opts, handler) {\n const dispatcher = this[kGetDispatcher]()\n\n if (!dispatcher) {\n this[kNeedDrain] = true\n this[kQueue].push({ opts, handler })\n this[kQueued]++\n } else if (!dispatcher.dispatch(opts, handler)) {\n dispatcher[kNeedDrain] = true\n this[kNeedDrain] = !this[kGetDispatcher]()\n }\n\n return !this[kNeedDrain]\n }\n\n [kAddClient] (client) {\n client\n .on('drain', this[kOnDrain])\n .on('connect', this[kOnConnect])\n .on('disconnect', this[kOnDisconnect])\n .on('connectionError', this[kOnConnectionError])\n\n this[kClients].push(client)\n\n if (this[kNeedDrain]) {\n queueMicrotask(() => {\n if (this[kNeedDrain]) {\n this[kOnDrain](client[kUrl], [this, client])\n }\n })\n }\n\n return this\n }\n\n [kRemoveClient] (client) {\n client.close(() => {\n const idx = this[kClients].indexOf(client)\n if (idx !== -1) {\n this[kClients].splice(idx, 1)\n }\n })\n\n this[kNeedDrain] = this[kClients].some(dispatcher => (\n !dispatcher[kNeedDrain] &&\n dispatcher.closed !== true &&\n dispatcher.destroyed !== true\n ))\n }\n}\n\nmodule.exports = {\n PoolBase,\n kClients,\n kNeedDrain,\n kAddClient,\n kRemoveClient,\n kGetDispatcher\n}\n", "'use strict'\n\nconst {\n PoolBase,\n kClients,\n kNeedDrain,\n kAddClient,\n kGetDispatcher\n} = require('./pool-base')\nconst Client = require('./client')\nconst {\n InvalidArgumentError\n} = require('../core/errors')\nconst util = require('../core/util')\nconst { kUrl, kInterceptors } = require('../core/symbols')\nconst buildConnector = require('../core/connect')\n\nconst kOptions = Symbol('options')\nconst kConnections = Symbol('connections')\nconst kFactory = Symbol('factory')\n\nfunction defaultFactory (origin, opts) {\n return new Client(origin, opts)\n}\n\nclass Pool extends PoolBase {\n constructor (origin, {\n connections,\n factory = defaultFactory,\n connect,\n connectTimeout,\n tls,\n maxCachedSessions,\n socketPath,\n autoSelectFamily,\n autoSelectFamilyAttemptTimeout,\n allowH2,\n ...options\n } = {}) {\n if (connections != null && (!Number.isFinite(connections) || connections < 0)) {\n throw new InvalidArgumentError('invalid connections')\n }\n\n if (typeof factory !== 'function') {\n throw new InvalidArgumentError('factory must be a function.')\n }\n\n if (connect != null && typeof connect !== 'function' && typeof connect !== 'object') {\n throw new InvalidArgumentError('connect must be a function or an object')\n }\n\n if (typeof connect !== 'function') {\n connect = buildConnector({\n ...tls,\n maxCachedSessions,\n allowH2,\n socketPath,\n timeout: connectTimeout,\n ...(autoSelectFamily ? { autoSelectFamily, autoSelectFamilyAttemptTimeout } : undefined),\n ...connect\n })\n }\n\n super(options)\n\n this[kInterceptors] = options.interceptors?.Pool && Array.isArray(options.interceptors.Pool)\n ? options.interceptors.Pool\n : []\n this[kConnections] = connections || null\n this[kUrl] = util.parseOrigin(origin)\n this[kOptions] = { ...util.deepClone(options), connect, allowH2 }\n this[kOptions].interceptors = options.interceptors\n ? { ...options.interceptors }\n : undefined\n this[kFactory] = factory\n\n this.on('connectionError', (origin, targets, error) => {\n // If a connection error occurs, we remove the client from the pool,\n // and emit a connectionError event. They will not be re-used.\n // Fixes https://github.com/nodejs/undici/issues/3895\n for (const target of targets) {\n // Do not use kRemoveClient here, as it will close the client,\n // but the client cannot be closed in this state.\n const idx = this[kClients].indexOf(target)\n if (idx !== -1) {\n this[kClients].splice(idx, 1)\n }\n }\n })\n }\n\n [kGetDispatcher] () {\n for (const client of this[kClients]) {\n if (!client[kNeedDrain]) {\n return client\n }\n }\n\n if (!this[kConnections] || this[kClients].length < this[kConnections]) {\n const dispatcher = this[kFactory](this[kUrl], this[kOptions])\n this[kAddClient](dispatcher)\n return dispatcher\n }\n }\n}\n\nmodule.exports = Pool\n", "'use strict'\n\nconst {\n BalancedPoolMissingUpstreamError,\n InvalidArgumentError\n} = require('../core/errors')\nconst {\n PoolBase,\n kClients,\n kNeedDrain,\n kAddClient,\n kRemoveClient,\n kGetDispatcher\n} = require('./pool-base')\nconst Pool = require('./pool')\nconst { kUrl, kInterceptors } = require('../core/symbols')\nconst { parseOrigin } = require('../core/util')\nconst kFactory = Symbol('factory')\n\nconst kOptions = Symbol('options')\nconst kGreatestCommonDivisor = Symbol('kGreatestCommonDivisor')\nconst kCurrentWeight = Symbol('kCurrentWeight')\nconst kIndex = Symbol('kIndex')\nconst kWeight = Symbol('kWeight')\nconst kMaxWeightPerServer = Symbol('kMaxWeightPerServer')\nconst kErrorPenalty = Symbol('kErrorPenalty')\n\n/**\n * Calculate the greatest common divisor of two numbers by\n * using the Euclidean algorithm.\n *\n * @param {number} a\n * @param {number} b\n * @returns {number}\n */\nfunction getGreatestCommonDivisor (a, b) {\n if (a === 0) return b\n\n while (b !== 0) {\n const t = b\n b = a % b\n a = t\n }\n return a\n}\n\nfunction defaultFactory (origin, opts) {\n return new Pool(origin, opts)\n}\n\nclass BalancedPool extends PoolBase {\n constructor (upstreams = [], { factory = defaultFactory, ...opts } = {}) {\n super()\n\n this[kOptions] = opts\n this[kIndex] = -1\n this[kCurrentWeight] = 0\n\n this[kMaxWeightPerServer] = this[kOptions].maxWeightPerServer || 100\n this[kErrorPenalty] = this[kOptions].errorPenalty || 15\n\n if (!Array.isArray(upstreams)) {\n upstreams = [upstreams]\n }\n\n if (typeof factory !== 'function') {\n throw new InvalidArgumentError('factory must be a function.')\n }\n\n this[kInterceptors] = opts.interceptors?.BalancedPool && Array.isArray(opts.interceptors.BalancedPool)\n ? opts.interceptors.BalancedPool\n : []\n this[kFactory] = factory\n\n for (const upstream of upstreams) {\n this.addUpstream(upstream)\n }\n this._updateBalancedPoolStats()\n }\n\n addUpstream (upstream) {\n const upstreamOrigin = parseOrigin(upstream).origin\n\n if (this[kClients].find((pool) => (\n pool[kUrl].origin === upstreamOrigin &&\n pool.closed !== true &&\n pool.destroyed !== true\n ))) {\n return this\n }\n const pool = this[kFactory](upstreamOrigin, Object.assign({}, this[kOptions]))\n\n this[kAddClient](pool)\n pool.on('connect', () => {\n pool[kWeight] = Math.min(this[kMaxWeightPerServer], pool[kWeight] + this[kErrorPenalty])\n })\n\n pool.on('connectionError', () => {\n pool[kWeight] = Math.max(1, pool[kWeight] - this[kErrorPenalty])\n this._updateBalancedPoolStats()\n })\n\n pool.on('disconnect', (...args) => {\n const err = args[2]\n if (err && err.code === 'UND_ERR_SOCKET') {\n // decrease the weight of the pool.\n pool[kWeight] = Math.max(1, pool[kWeight] - this[kErrorPenalty])\n this._updateBalancedPoolStats()\n }\n })\n\n for (const client of this[kClients]) {\n client[kWeight] = this[kMaxWeightPerServer]\n }\n\n this._updateBalancedPoolStats()\n\n return this\n }\n\n _updateBalancedPoolStats () {\n let result = 0\n for (let i = 0; i < this[kClients].length; i++) {\n result = getGreatestCommonDivisor(this[kClients][i][kWeight], result)\n }\n\n this[kGreatestCommonDivisor] = result\n }\n\n removeUpstream (upstream) {\n const upstreamOrigin = parseOrigin(upstream).origin\n\n const pool = this[kClients].find((pool) => (\n pool[kUrl].origin === upstreamOrigin &&\n pool.closed !== true &&\n pool.destroyed !== true\n ))\n\n if (pool) {\n this[kRemoveClient](pool)\n }\n\n return this\n }\n\n get upstreams () {\n return this[kClients]\n .filter(dispatcher => dispatcher.closed !== true && dispatcher.destroyed !== true)\n .map((p) => p[kUrl].origin)\n }\n\n [kGetDispatcher] () {\n // We validate that pools is greater than 0,\n // otherwise we would have to wait until an upstream\n // is added, which might never happen.\n if (this[kClients].length === 0) {\n throw new BalancedPoolMissingUpstreamError()\n }\n\n const dispatcher = this[kClients].find(dispatcher => (\n !dispatcher[kNeedDrain] &&\n dispatcher.closed !== true &&\n dispatcher.destroyed !== true\n ))\n\n if (!dispatcher) {\n return\n }\n\n const allClientsBusy = this[kClients].map(pool => pool[kNeedDrain]).reduce((a, b) => a && b, true)\n\n if (allClientsBusy) {\n return\n }\n\n let counter = 0\n\n let maxWeightIndex = this[kClients].findIndex(pool => !pool[kNeedDrain])\n\n while (counter++ < this[kClients].length) {\n this[kIndex] = (this[kIndex] + 1) % this[kClients].length\n const pool = this[kClients][this[kIndex]]\n\n // find pool index with the largest weight\n if (pool[kWeight] > this[kClients][maxWeightIndex][kWeight] && !pool[kNeedDrain]) {\n maxWeightIndex = this[kIndex]\n }\n\n // decrease the current weight every `this[kClients].length`.\n if (this[kIndex] === 0) {\n // Set the current weight to the next lower weight.\n this[kCurrentWeight] = this[kCurrentWeight] - this[kGreatestCommonDivisor]\n\n if (this[kCurrentWeight] <= 0) {\n this[kCurrentWeight] = this[kMaxWeightPerServer]\n }\n }\n if (pool[kWeight] >= this[kCurrentWeight] && (!pool[kNeedDrain])) {\n return pool\n }\n }\n\n this[kCurrentWeight] = this[kClients][maxWeightIndex][kWeight]\n this[kIndex] = maxWeightIndex\n return this[kClients][maxWeightIndex]\n }\n}\n\nmodule.exports = BalancedPool\n", "'use strict'\n\nconst { InvalidArgumentError } = require('../core/errors')\nconst { kClients, kRunning, kClose, kDestroy, kDispatch, kInterceptors } = require('../core/symbols')\nconst DispatcherBase = require('./dispatcher-base')\nconst Pool = require('./pool')\nconst Client = require('./client')\nconst util = require('../core/util')\nconst createRedirectInterceptor = require('../interceptor/redirect-interceptor')\n\nconst kOnConnect = Symbol('onConnect')\nconst kOnDisconnect = Symbol('onDisconnect')\nconst kOnConnectionError = Symbol('onConnectionError')\nconst kMaxRedirections = Symbol('maxRedirections')\nconst kOnDrain = Symbol('onDrain')\nconst kFactory = Symbol('factory')\nconst kOptions = Symbol('options')\n\nfunction defaultFactory (origin, opts) {\n return opts && opts.connections === 1\n ? new Client(origin, opts)\n : new Pool(origin, opts)\n}\n\nclass Agent extends DispatcherBase {\n constructor ({ factory = defaultFactory, maxRedirections = 0, connect, ...options } = {}) {\n if (typeof factory !== 'function') {\n throw new InvalidArgumentError('factory must be a function.')\n }\n\n if (connect != null && typeof connect !== 'function' && typeof connect !== 'object') {\n throw new InvalidArgumentError('connect must be a function or an object')\n }\n\n if (!Number.isInteger(maxRedirections) || maxRedirections < 0) {\n throw new InvalidArgumentError('maxRedirections must be a positive number')\n }\n\n super(options)\n\n if (connect && typeof connect !== 'function') {\n connect = { ...connect }\n }\n\n this[kInterceptors] = options.interceptors?.Agent && Array.isArray(options.interceptors.Agent)\n ? options.interceptors.Agent\n : [createRedirectInterceptor({ maxRedirections })]\n\n this[kOptions] = { ...util.deepClone(options), connect }\n this[kOptions].interceptors = options.interceptors\n ? { ...options.interceptors }\n : undefined\n this[kMaxRedirections] = maxRedirections\n this[kFactory] = factory\n this[kClients] = new Map()\n\n this[kOnDrain] = (origin, targets) => {\n this.emit('drain', origin, [this, ...targets])\n }\n\n this[kOnConnect] = (origin, targets) => {\n this.emit('connect', origin, [this, ...targets])\n }\n\n this[kOnDisconnect] = (origin, targets, err) => {\n this.emit('disconnect', origin, [this, ...targets], err)\n }\n\n this[kOnConnectionError] = (origin, targets, err) => {\n this.emit('connectionError', origin, [this, ...targets], err)\n }\n }\n\n get [kRunning] () {\n let ret = 0\n for (const client of this[kClients].values()) {\n ret += client[kRunning]\n }\n return ret\n }\n\n [kDispatch] (opts, handler) {\n let key\n if (opts.origin && (typeof opts.origin === 'string' || opts.origin instanceof URL)) {\n key = String(opts.origin)\n } else {\n throw new InvalidArgumentError('opts.origin must be a non-empty string or URL.')\n }\n\n let dispatcher = this[kClients].get(key)\n\n if (!dispatcher) {\n dispatcher = this[kFactory](opts.origin, this[kOptions])\n .on('drain', this[kOnDrain])\n .on('connect', this[kOnConnect])\n .on('disconnect', this[kOnDisconnect])\n .on('connectionError', this[kOnConnectionError])\n\n // This introduces a tiny memory leak, as dispatchers are never removed from the map.\n // TODO(mcollina): remove te timer when the client/pool do not have any more\n // active connections.\n this[kClients].set(key, dispatcher)\n }\n\n return dispatcher.dispatch(opts, handler)\n }\n\n async [kClose] () {\n const closePromises = []\n for (const client of this[kClients].values()) {\n closePromises.push(client.close())\n }\n this[kClients].clear()\n\n await Promise.all(closePromises)\n }\n\n async [kDestroy] (err) {\n const destroyPromises = []\n for (const client of this[kClients].values()) {\n destroyPromises.push(client.destroy(err))\n }\n this[kClients].clear()\n\n await Promise.all(destroyPromises)\n }\n}\n\nmodule.exports = Agent\n", "'use strict'\n\nconst { kProxy, kClose, kDestroy, kDispatch, kInterceptors } = require('../core/symbols')\nconst { URL } = require('node:url')\nconst Agent = require('./agent')\nconst Pool = require('./pool')\nconst DispatcherBase = require('./dispatcher-base')\nconst { InvalidArgumentError, RequestAbortedError, SecureProxyConnectionError } = require('../core/errors')\nconst buildConnector = require('../core/connect')\nconst Client = require('./client')\n\nconst kAgent = Symbol('proxy agent')\nconst kClient = Symbol('proxy client')\nconst kProxyHeaders = Symbol('proxy headers')\nconst kRequestTls = Symbol('request tls settings')\nconst kProxyTls = Symbol('proxy tls settings')\nconst kConnectEndpoint = Symbol('connect endpoint function')\nconst kTunnelProxy = Symbol('tunnel proxy')\n\nfunction defaultProtocolPort (protocol) {\n return protocol === 'https:' ? 443 : 80\n}\n\nfunction defaultFactory (origin, opts) {\n return new Pool(origin, opts)\n}\n\nconst noop = () => {}\n\nfunction defaultAgentFactory (origin, opts) {\n if (opts.connections === 1) {\n return new Client(origin, opts)\n }\n return new Pool(origin, opts)\n}\n\nclass Http1ProxyWrapper extends DispatcherBase {\n #client\n\n constructor (proxyUrl, { headers = {}, connect, factory }) {\n super()\n if (!proxyUrl) {\n throw new InvalidArgumentError('Proxy URL is mandatory')\n }\n\n this[kProxyHeaders] = headers\n if (factory) {\n this.#client = factory(proxyUrl, { connect })\n } else {\n this.#client = new Client(proxyUrl, { connect })\n }\n }\n\n [kDispatch] (opts, handler) {\n const onHeaders = handler.onHeaders\n handler.onHeaders = function (statusCode, data, resume) {\n if (statusCode === 407) {\n if (typeof handler.onError === 'function') {\n handler.onError(new InvalidArgumentError('Proxy Authentication Required (407)'))\n }\n return\n }\n if (onHeaders) onHeaders.call(this, statusCode, data, resume)\n }\n\n // Rewrite request as an HTTP1 Proxy request, without tunneling.\n const {\n origin,\n path = '/',\n headers = {}\n } = opts\n\n opts.path = origin + path\n\n if (!('host' in headers) && !('Host' in headers)) {\n const { host } = new URL(origin)\n headers.host = host\n }\n opts.headers = { ...this[kProxyHeaders], ...headers }\n\n return this.#client[kDispatch](opts, handler)\n }\n\n async [kClose] () {\n return this.#client.close()\n }\n\n async [kDestroy] (err) {\n return this.#client.destroy(err)\n }\n}\n\nclass ProxyAgent extends DispatcherBase {\n constructor (opts) {\n super()\n\n if (!opts || (typeof opts === 'object' && !(opts instanceof URL) && !opts.uri)) {\n throw new InvalidArgumentError('Proxy uri is mandatory')\n }\n\n const { clientFactory = defaultFactory } = opts\n if (typeof clientFactory !== 'function') {\n throw new InvalidArgumentError('Proxy opts.clientFactory must be a function.')\n }\n\n const { proxyTunnel = true } = opts\n\n const url = this.#getUrl(opts)\n const { href, origin, port, protocol, username, password, hostname: proxyHostname } = url\n\n this[kProxy] = { uri: href, protocol }\n this[kInterceptors] = opts.interceptors?.ProxyAgent && Array.isArray(opts.interceptors.ProxyAgent)\n ? opts.interceptors.ProxyAgent\n : []\n this[kRequestTls] = opts.requestTls\n this[kProxyTls] = opts.proxyTls\n this[kProxyHeaders] = opts.headers || {}\n this[kTunnelProxy] = proxyTunnel\n\n if (opts.auth && opts.token) {\n throw new InvalidArgumentError('opts.auth cannot be used in combination with opts.token')\n } else if (opts.auth) {\n /* @deprecated in favour of opts.token */\n this[kProxyHeaders]['proxy-authorization'] = `Basic ${opts.auth}`\n } else if (opts.token) {\n this[kProxyHeaders]['proxy-authorization'] = opts.token\n } else if (username && password) {\n this[kProxyHeaders]['proxy-authorization'] = `Basic ${Buffer.from(`${decodeURIComponent(username)}:${decodeURIComponent(password)}`).toString('base64')}`\n }\n\n const connect = buildConnector({ ...opts.proxyTls })\n this[kConnectEndpoint] = buildConnector({ ...opts.requestTls })\n\n const agentFactory = opts.factory || defaultAgentFactory\n const factory = (origin, options) => {\n const { protocol } = new URL(origin)\n if (!this[kTunnelProxy] && protocol === 'http:' && this[kProxy].protocol === 'http:') {\n return new Http1ProxyWrapper(this[kProxy].uri, {\n headers: this[kProxyHeaders],\n connect,\n factory: agentFactory\n })\n }\n return agentFactory(origin, options)\n }\n this[kClient] = clientFactory(url, { connect })\n this[kAgent] = new Agent({\n ...opts,\n factory,\n connect: async (opts, callback) => {\n let requestedPath = opts.host\n if (!opts.port) {\n requestedPath += `:${defaultProtocolPort(opts.protocol)}`\n }\n try {\n const { socket, statusCode } = await this[kClient].connect({\n origin,\n port,\n path: requestedPath,\n signal: opts.signal,\n headers: {\n ...this[kProxyHeaders],\n host: opts.host\n },\n servername: this[kProxyTls]?.servername || proxyHostname\n })\n if (statusCode !== 200) {\n socket.on('error', noop).destroy()\n callback(new RequestAbortedError(`Proxy response (${statusCode}) !== 200 when HTTP Tunneling`))\n }\n if (opts.protocol !== 'https:') {\n callback(null, socket)\n return\n }\n let servername\n if (this[kRequestTls]) {\n servername = this[kRequestTls].servername\n } else {\n servername = opts.servername\n }\n this[kConnectEndpoint]({ ...opts, servername, httpSocket: socket }, callback)\n } catch (err) {\n if (err.code === 'ERR_TLS_CERT_ALTNAME_INVALID') {\n // Throw a custom error to avoid loop in client.js#connect\n callback(new SecureProxyConnectionError(err))\n } else {\n callback(err)\n }\n }\n }\n })\n }\n\n dispatch (opts, handler) {\n const headers = buildHeaders(opts.headers)\n throwIfProxyAuthIsSent(headers)\n\n if (headers && !('host' in headers) && !('Host' in headers)) {\n const { host } = new URL(opts.origin)\n headers.host = host\n }\n\n return this[kAgent].dispatch(\n {\n ...opts,\n headers\n },\n handler\n )\n }\n\n /**\n * @param {import('../types/proxy-agent').ProxyAgent.Options | string | URL} opts\n * @returns {URL}\n */\n #getUrl (opts) {\n if (typeof opts === 'string') {\n return new URL(opts)\n } else if (opts instanceof URL) {\n return opts\n } else {\n return new URL(opts.uri)\n }\n }\n\n async [kClose] () {\n await this[kAgent].close()\n await this[kClient].close()\n }\n\n async [kDestroy] () {\n await this[kAgent].destroy()\n await this[kClient].destroy()\n }\n}\n\n/**\n * @param {string[] | Record} headers\n * @returns {Record}\n */\nfunction buildHeaders (headers) {\n // When using undici.fetch, the headers list is stored\n // as an array.\n if (Array.isArray(headers)) {\n /** @type {Record} */\n const headersPair = {}\n\n for (let i = 0; i < headers.length; i += 2) {\n headersPair[headers[i]] = headers[i + 1]\n }\n\n return headersPair\n }\n\n return headers\n}\n\n/**\n * @param {Record} headers\n *\n * Previous versions of ProxyAgent suggests the Proxy-Authorization in request headers\n * Nevertheless, it was changed and to avoid a security vulnerability by end users\n * this check was created.\n * It should be removed in the next major version for performance reasons\n */\nfunction throwIfProxyAuthIsSent (headers) {\n const existProxyAuth = headers && Object.keys(headers)\n .find((key) => key.toLowerCase() === 'proxy-authorization')\n if (existProxyAuth) {\n throw new InvalidArgumentError('Proxy-Authorization should be sent in ProxyAgent constructor')\n }\n}\n\nmodule.exports = ProxyAgent\n", "'use strict'\n\nconst DispatcherBase = require('./dispatcher-base')\nconst { kClose, kDestroy, kClosed, kDestroyed, kDispatch, kNoProxyAgent, kHttpProxyAgent, kHttpsProxyAgent } = require('../core/symbols')\nconst ProxyAgent = require('./proxy-agent')\nconst Agent = require('./agent')\n\nconst DEFAULT_PORTS = {\n 'http:': 80,\n 'https:': 443\n}\n\nlet experimentalWarned = false\n\nclass EnvHttpProxyAgent extends DispatcherBase {\n #noProxyValue = null\n #noProxyEntries = null\n #opts = null\n\n constructor (opts = {}) {\n super()\n this.#opts = opts\n\n if (!experimentalWarned) {\n experimentalWarned = true\n process.emitWarning('EnvHttpProxyAgent is experimental, expect them to change at any time.', {\n code: 'UNDICI-EHPA'\n })\n }\n\n const { httpProxy, httpsProxy, noProxy, ...agentOpts } = opts\n\n this[kNoProxyAgent] = new Agent(agentOpts)\n\n const HTTP_PROXY = httpProxy ?? process.env.http_proxy ?? process.env.HTTP_PROXY\n if (HTTP_PROXY) {\n this[kHttpProxyAgent] = new ProxyAgent({ ...agentOpts, uri: HTTP_PROXY })\n } else {\n this[kHttpProxyAgent] = this[kNoProxyAgent]\n }\n\n const HTTPS_PROXY = httpsProxy ?? process.env.https_proxy ?? process.env.HTTPS_PROXY\n if (HTTPS_PROXY) {\n this[kHttpsProxyAgent] = new ProxyAgent({ ...agentOpts, uri: HTTPS_PROXY })\n } else {\n this[kHttpsProxyAgent] = this[kHttpProxyAgent]\n }\n\n this.#parseNoProxy()\n }\n\n [kDispatch] (opts, handler) {\n const url = new URL(opts.origin)\n const agent = this.#getProxyAgentForUrl(url)\n return agent.dispatch(opts, handler)\n }\n\n async [kClose] () {\n await this[kNoProxyAgent].close()\n if (!this[kHttpProxyAgent][kClosed]) {\n await this[kHttpProxyAgent].close()\n }\n if (!this[kHttpsProxyAgent][kClosed]) {\n await this[kHttpsProxyAgent].close()\n }\n }\n\n async [kDestroy] (err) {\n await this[kNoProxyAgent].destroy(err)\n if (!this[kHttpProxyAgent][kDestroyed]) {\n await this[kHttpProxyAgent].destroy(err)\n }\n if (!this[kHttpsProxyAgent][kDestroyed]) {\n await this[kHttpsProxyAgent].destroy(err)\n }\n }\n\n #getProxyAgentForUrl (url) {\n let { protocol, host: hostname, port } = url\n\n // Stripping ports in this way instead of using parsedUrl.hostname to make\n // sure that the brackets around IPv6 addresses are kept.\n hostname = hostname.replace(/:\\d*$/, '').toLowerCase()\n port = Number.parseInt(port, 10) || DEFAULT_PORTS[protocol] || 0\n if (!this.#shouldProxy(hostname, port)) {\n return this[kNoProxyAgent]\n }\n if (protocol === 'https:') {\n return this[kHttpsProxyAgent]\n }\n return this[kHttpProxyAgent]\n }\n\n #shouldProxy (hostname, port) {\n if (this.#noProxyChanged) {\n this.#parseNoProxy()\n }\n\n if (this.#noProxyEntries.length === 0) {\n return true // Always proxy if NO_PROXY is not set or empty.\n }\n if (this.#noProxyValue === '*') {\n return false // Never proxy if wildcard is set.\n }\n\n for (let i = 0; i < this.#noProxyEntries.length; i++) {\n const entry = this.#noProxyEntries[i]\n if (entry.port && entry.port !== port) {\n continue // Skip if ports don't match.\n }\n if (!/^[.*]/.test(entry.hostname)) {\n // No wildcards, so don't proxy only if there is not an exact match.\n if (hostname === entry.hostname) {\n return false\n }\n } else {\n // Don't proxy if the hostname ends with the no_proxy host.\n if (hostname.endsWith(entry.hostname.replace(/^\\*/, ''))) {\n return false\n }\n }\n }\n\n return true\n }\n\n #parseNoProxy () {\n const noProxyValue = this.#opts.noProxy ?? this.#noProxyEnv\n const noProxySplit = noProxyValue.split(/[,\\s]/)\n const noProxyEntries = []\n\n for (let i = 0; i < noProxySplit.length; i++) {\n const entry = noProxySplit[i]\n if (!entry) {\n continue\n }\n const parsed = entry.match(/^(.+):(\\d+)$/)\n noProxyEntries.push({\n hostname: (parsed ? parsed[1] : entry).toLowerCase(),\n port: parsed ? Number.parseInt(parsed[2], 10) : 0\n })\n }\n\n this.#noProxyValue = noProxyValue\n this.#noProxyEntries = noProxyEntries\n }\n\n get #noProxyChanged () {\n if (this.#opts.noProxy !== undefined) {\n return false\n }\n return this.#noProxyValue !== this.#noProxyEnv\n }\n\n get #noProxyEnv () {\n return process.env.no_proxy ?? process.env.NO_PROXY ?? ''\n }\n}\n\nmodule.exports = EnvHttpProxyAgent\n", "'use strict'\nconst assert = require('node:assert')\n\nconst { kRetryHandlerDefaultRetry } = require('../core/symbols')\nconst { RequestRetryError } = require('../core/errors')\nconst {\n isDisturbed,\n parseHeaders,\n parseRangeHeader,\n wrapRequestBody\n} = require('../core/util')\n\nfunction calculateRetryAfterHeader (retryAfter) {\n const current = Date.now()\n return new Date(retryAfter).getTime() - current\n}\n\nfunction validatePartialResponseContentLength (headers, range, statusCode, retryCount) {\n const contentLength = headers['content-length']\n if (contentLength == null) {\n return null\n }\n\n if (!Number.isFinite(range.start) || !Number.isFinite(range.end)) {\n return null\n }\n\n const length = Number(contentLength)\n const expectedLength = range.end - range.start + 1\n if (!Number.isFinite(length) || length !== expectedLength) {\n return new RequestRetryError('Content-Length mismatch', statusCode, {\n headers,\n data: { count: retryCount }\n })\n }\n\n return null\n}\n\nclass RetryHandler {\n constructor (opts, handlers) {\n const { retryOptions, ...dispatchOpts } = opts\n const {\n // Retry scoped\n retry: retryFn,\n maxRetries,\n maxTimeout,\n minTimeout,\n timeoutFactor,\n // Response scoped\n methods,\n errorCodes,\n retryAfter,\n statusCodes\n } = retryOptions ?? {}\n\n this.dispatch = handlers.dispatch\n this.handler = handlers.handler\n this.opts = { ...dispatchOpts, body: wrapRequestBody(opts.body) }\n this.abort = null\n this.aborted = false\n this.retryOpts = {\n retry: retryFn ?? RetryHandler[kRetryHandlerDefaultRetry],\n retryAfter: retryAfter ?? true,\n maxTimeout: maxTimeout ?? 30 * 1000, // 30s,\n minTimeout: minTimeout ?? 500, // .5s\n timeoutFactor: timeoutFactor ?? 2,\n maxRetries: maxRetries ?? 5,\n // What errors we should retry\n methods: methods ?? ['GET', 'HEAD', 'OPTIONS', 'PUT', 'DELETE', 'TRACE'],\n // Indicates which errors to retry\n statusCodes: statusCodes ?? [500, 502, 503, 504, 429],\n // List of errors to retry\n errorCodes: errorCodes ?? [\n 'ECONNRESET',\n 'ECONNREFUSED',\n 'ENOTFOUND',\n 'ENETDOWN',\n 'ENETUNREACH',\n 'EHOSTDOWN',\n 'EHOSTUNREACH',\n 'EPIPE',\n 'UND_ERR_SOCKET'\n ]\n }\n\n this.retryCount = 0\n this.retryCountCheckpoint = 0\n this.start = 0\n this.end = null\n this.etag = null\n this.resume = null\n this.headersSent = false\n\n // Handle possible onConnect duplication\n this.handler.onConnect(reason => {\n this.aborted = true\n if (this.abort) {\n this.abort(reason)\n } else {\n this.reason = reason\n }\n })\n }\n\n checkpointResponseEnd (headers, resume) {\n if (this.end == null && this.opts.method !== 'HEAD') {\n const contentLength = headers['content-length']\n this.end = contentLength != null ? Number(contentLength) - 1 : null\n\n assert(\n this.end == null || Number.isFinite(this.end),\n 'invalid content-length'\n )\n }\n\n this.resume = this.end != null ? resume : null\n }\n\n onRequestSent () {\n if (this.handler.onRequestSent) {\n this.handler.onRequestSent()\n }\n }\n\n onUpgrade (statusCode, headers, socket) {\n if (this.handler.onUpgrade) {\n this.handler.onUpgrade(statusCode, headers, socket)\n }\n }\n\n onConnect (abort) {\n if (this.aborted) {\n abort(this.reason)\n } else {\n this.abort = abort\n }\n }\n\n onBodySent (chunk) {\n if (this.handler.onBodySent) return this.handler.onBodySent(chunk)\n }\n\n static [kRetryHandlerDefaultRetry] (err, { state, opts }, cb) {\n const { statusCode, code, headers } = err\n const { method, retryOptions } = opts\n const {\n maxRetries,\n minTimeout,\n maxTimeout,\n timeoutFactor,\n statusCodes,\n errorCodes,\n methods\n } = retryOptions\n const { counter } = state\n\n // Any code that is not a Undici's originated and allowed to retry\n if (code && code !== 'UND_ERR_REQ_RETRY' && !errorCodes.includes(code)) {\n cb(err)\n return\n }\n\n // If a set of method are provided and the current method is not in the list\n if (Array.isArray(methods) && !methods.includes(method)) {\n cb(err)\n return\n }\n\n // If a set of status code are provided and the current status code is not in the list\n if (\n statusCode != null &&\n Array.isArray(statusCodes) &&\n !statusCodes.includes(statusCode)\n ) {\n cb(err)\n return\n }\n\n // If we reached the max number of retries\n if (counter > maxRetries) {\n cb(err)\n return\n }\n\n let retryAfterHeader = headers?.['retry-after']\n if (retryAfterHeader) {\n retryAfterHeader = Number(retryAfterHeader)\n retryAfterHeader = Number.isNaN(retryAfterHeader)\n ? calculateRetryAfterHeader(retryAfterHeader)\n : retryAfterHeader * 1e3 // Retry-After is in seconds\n }\n\n const retryTimeout =\n retryAfterHeader > 0\n ? Math.min(retryAfterHeader, maxTimeout)\n : Math.min(minTimeout * timeoutFactor ** (counter - 1), maxTimeout)\n\n setTimeout(() => cb(null), retryTimeout)\n }\n\n onHeaders (statusCode, rawHeaders, resume, statusMessage) {\n const headers = parseHeaders(rawHeaders)\n\n this.retryCount += 1\n\n if (statusCode >= 300) {\n if (this.retryOpts.statusCodes.includes(statusCode) === false) {\n this.headersSent = true\n this.checkpointResponseEnd(headers, resume)\n return this.handler.onHeaders(\n statusCode,\n rawHeaders,\n resume,\n statusMessage\n )\n } else {\n this.abort(\n new RequestRetryError('Request failed', statusCode, {\n headers,\n data: {\n count: this.retryCount\n }\n })\n )\n return false\n }\n }\n\n // Checkpoint for resume from where we left it\n if (this.resume != null) {\n this.resume = null\n\n // Only Partial Content 206 supposed to provide Content-Range,\n // any other status code that partially consumed the payload\n // should not be retry because it would result in downstream\n // wrongly concatanete multiple responses.\n if (statusCode !== 206 && (this.start > 0 || statusCode !== 200)) {\n this.abort(\n new RequestRetryError('server does not support the range header and the payload was partially consumed', statusCode, {\n headers,\n data: { count: this.retryCount }\n })\n )\n return false\n }\n\n const contentRange = parseRangeHeader(headers['content-range'])\n // If no content range\n if (!contentRange) {\n this.abort(\n new RequestRetryError('Content-Range mismatch', statusCode, {\n headers,\n data: { count: this.retryCount }\n })\n )\n return false\n }\n\n // Let's start with a weak etag check\n if (this.etag != null && this.etag !== headers.etag) {\n this.abort(\n new RequestRetryError('ETag mismatch', statusCode, {\n headers,\n data: { count: this.retryCount }\n })\n )\n return false\n }\n\n const contentLengthError = validatePartialResponseContentLength(headers, contentRange, statusCode, this.retryCount)\n if (contentLengthError != null) {\n this.abort(contentLengthError)\n return false\n }\n\n const { start, size, end = size - 1 } = contentRange\n\n if (this.start !== start || (this.end != null && this.end !== end)) {\n this.abort(\n new RequestRetryError('Content-Range mismatch', statusCode, {\n headers,\n data: { count: this.retryCount }\n })\n )\n return false\n }\n\n this.resume = resume\n return true\n }\n\n if (this.end == null) {\n if (statusCode === 206) {\n // First time we receive 206\n const range = parseRangeHeader(headers['content-range'])\n\n if (range == null) {\n this.headersSent = true\n return this.handler.onHeaders(\n statusCode,\n rawHeaders,\n resume,\n statusMessage\n )\n }\n\n const contentLengthError = validatePartialResponseContentLength(headers, range, statusCode, this.retryCount)\n if (contentLengthError != null) {\n this.abort(contentLengthError)\n return false\n }\n\n const { start, size, end = size - 1 } = range\n assert(\n start != null && Number.isFinite(start),\n 'content-range mismatch'\n )\n assert(end != null && Number.isFinite(end), 'invalid content-length')\n\n this.start = start\n this.end = end\n }\n\n // We make our best to checkpoint the body for further range headers\n if (this.end == null) {\n const contentLength = headers['content-length']\n this.end = contentLength != null ? Number(contentLength) - 1 : null\n }\n\n assert(Number.isFinite(this.start))\n assert(\n this.end == null || Number.isFinite(this.end),\n 'invalid content-length'\n )\n\n this.resume = resume\n this.headersSent = true\n this.etag = headers.etag != null ? headers.etag : null\n\n // Weak etags are not useful for comparison nor cache\n // for instance not safe to assume if the response is byte-per-byte\n // equal\n if (this.etag != null && this.etag.startsWith('W/')) {\n this.etag = null\n }\n\n return this.handler.onHeaders(\n statusCode,\n rawHeaders,\n resume,\n statusMessage\n )\n }\n\n const err = new RequestRetryError('Request failed', statusCode, {\n headers,\n data: { count: this.retryCount }\n })\n\n this.abort(err)\n\n return false\n }\n\n onData (chunk) {\n this.start += chunk.length\n\n return this.handler.onData(chunk)\n }\n\n onComplete (rawTrailers) {\n this.retryCount = 0\n return this.handler.onComplete(rawTrailers)\n }\n\n onError (err) {\n if (this.aborted || isDisturbed(this.opts.body) || (this.headersSent && this.resume == null)) {\n return this.handler.onError(err)\n }\n\n // We reconcile in case of a mix between network errors\n // and server error response\n if (this.retryCount - this.retryCountCheckpoint > 0) {\n // We count the difference between the last checkpoint and the current retry count\n this.retryCount =\n this.retryCountCheckpoint +\n (this.retryCount - this.retryCountCheckpoint)\n } else {\n this.retryCount += 1\n }\n\n this.retryOpts.retry(\n err,\n {\n state: { counter: this.retryCount },\n opts: { retryOptions: this.retryOpts, ...this.opts }\n },\n onRetry.bind(this)\n )\n\n function onRetry (err) {\n if (err != null || this.aborted || isDisturbed(this.opts.body)) {\n return this.handler.onError(err)\n }\n\n if (this.start !== 0) {\n const headers = { range: `bytes=${this.start}-${this.end ?? ''}` }\n\n // Weak etag check - weak etags will make comparison algorithms never match\n if (this.etag != null) {\n headers['if-match'] = this.etag\n }\n\n this.opts = {\n ...this.opts,\n headers: {\n ...this.opts.headers,\n ...headers\n }\n }\n }\n\n try {\n this.retryCountCheckpoint = this.retryCount\n this.dispatch(this.opts, this)\n } catch (err) {\n this.handler.onError(err)\n }\n }\n }\n}\n\nmodule.exports = RetryHandler\n", "'use strict'\n\nconst Dispatcher = require('./dispatcher')\nconst RetryHandler = require('../handler/retry-handler')\n\nclass RetryAgent extends Dispatcher {\n #agent = null\n #options = null\n constructor (agent, options = {}) {\n super(options)\n this.#agent = agent\n this.#options = options\n }\n\n dispatch (opts, handler) {\n const retry = new RetryHandler({\n ...opts,\n retryOptions: this.#options\n }, {\n dispatch: this.#agent.dispatch.bind(this.#agent),\n handler\n })\n return this.#agent.dispatch(opts, retry)\n }\n\n close () {\n return this.#agent.close()\n }\n\n destroy () {\n return this.#agent.destroy()\n }\n}\n\nmodule.exports = RetryAgent\n", "// Ported from https://github.com/nodejs/undici/pull/907\n\n'use strict'\n\nconst assert = require('node:assert')\nconst { Readable } = require('node:stream')\nconst { RequestAbortedError, NotSupportedError, InvalidArgumentError, AbortError } = require('../core/errors')\nconst util = require('../core/util')\nconst { ReadableStreamFrom } = require('../core/util')\n\nconst kConsume = Symbol('kConsume')\nconst kReading = Symbol('kReading')\nconst kBody = Symbol('kBody')\nconst kAbort = Symbol('kAbort')\nconst kContentType = Symbol('kContentType')\nconst kContentLength = Symbol('kContentLength')\n\nconst noop = () => {}\n\nclass BodyReadable extends Readable {\n constructor ({\n resume,\n abort,\n contentType = '',\n contentLength,\n highWaterMark = 64 * 1024 // Same as nodejs fs streams.\n }) {\n super({\n autoDestroy: true,\n read: resume,\n highWaterMark\n })\n\n this._readableState.dataEmitted = false\n\n this[kAbort] = abort\n this[kConsume] = null\n this[kBody] = null\n this[kContentType] = contentType\n this[kContentLength] = contentLength\n\n // Is stream being consumed through Readable API?\n // This is an optimization so that we avoid checking\n // for 'data' and 'readable' listeners in the hot path\n // inside push().\n this[kReading] = false\n }\n\n destroy (err) {\n if (!err && !this._readableState.endEmitted) {\n err = new RequestAbortedError()\n }\n\n if (err) {\n this[kAbort]()\n }\n\n return super.destroy(err)\n }\n\n _destroy (err, callback) {\n // Workaround for Node \"bug\". If the stream is destroyed in same\n // tick as it is created, then a user who is waiting for a\n // promise (i.e micro tick) for installing a 'error' listener will\n // never get a chance and will always encounter an unhandled exception.\n if (!this[kReading]) {\n setImmediate(() => {\n callback(err)\n })\n } else {\n callback(err)\n }\n }\n\n on (ev, ...args) {\n if (ev === 'data' || ev === 'readable') {\n this[kReading] = true\n }\n return super.on(ev, ...args)\n }\n\n addListener (ev, ...args) {\n return this.on(ev, ...args)\n }\n\n off (ev, ...args) {\n const ret = super.off(ev, ...args)\n if (ev === 'data' || ev === 'readable') {\n this[kReading] = (\n this.listenerCount('data') > 0 ||\n this.listenerCount('readable') > 0\n )\n }\n return ret\n }\n\n removeListener (ev, ...args) {\n return this.off(ev, ...args)\n }\n\n push (chunk) {\n if (this[kConsume] && chunk !== null) {\n consumePush(this[kConsume], chunk)\n return this[kReading] ? super.push(chunk) : true\n }\n return super.push(chunk)\n }\n\n // https://fetch.spec.whatwg.org/#dom-body-text\n async text () {\n return consume(this, 'text')\n }\n\n // https://fetch.spec.whatwg.org/#dom-body-json\n async json () {\n return consume(this, 'json')\n }\n\n // https://fetch.spec.whatwg.org/#dom-body-blob\n async blob () {\n return consume(this, 'blob')\n }\n\n // https://fetch.spec.whatwg.org/#dom-body-bytes\n async bytes () {\n return consume(this, 'bytes')\n }\n\n // https://fetch.spec.whatwg.org/#dom-body-arraybuffer\n async arrayBuffer () {\n return consume(this, 'arrayBuffer')\n }\n\n // https://fetch.spec.whatwg.org/#dom-body-formdata\n async formData () {\n // TODO: Implement.\n throw new NotSupportedError()\n }\n\n // https://fetch.spec.whatwg.org/#dom-body-bodyused\n get bodyUsed () {\n return util.isDisturbed(this)\n }\n\n // https://fetch.spec.whatwg.org/#dom-body-body\n get body () {\n if (!this[kBody]) {\n this[kBody] = ReadableStreamFrom(this)\n if (this[kConsume]) {\n // TODO: Is this the best way to force a lock?\n this[kBody].getReader() // Ensure stream is locked.\n assert(this[kBody].locked)\n }\n }\n return this[kBody]\n }\n\n async dump (opts) {\n let limit = Number.isFinite(opts?.limit) ? opts.limit : 128 * 1024\n const signal = opts?.signal\n\n if (signal != null && (typeof signal !== 'object' || !('aborted' in signal))) {\n throw new InvalidArgumentError('signal must be an AbortSignal')\n }\n\n signal?.throwIfAborted()\n\n if (this._readableState.closeEmitted) {\n return null\n }\n\n return await new Promise((resolve, reject) => {\n if (this[kContentLength] > limit) {\n this.destroy(new AbortError())\n }\n\n const onAbort = () => {\n this.destroy(signal.reason ?? new AbortError())\n }\n signal?.addEventListener('abort', onAbort)\n\n this\n .on('close', function () {\n signal?.removeEventListener('abort', onAbort)\n if (signal?.aborted) {\n reject(signal.reason ?? new AbortError())\n } else {\n resolve(null)\n }\n })\n .on('error', noop)\n .on('data', function (chunk) {\n limit -= chunk.length\n if (limit <= 0) {\n this.destroy()\n }\n })\n .resume()\n })\n }\n}\n\n// https://streams.spec.whatwg.org/#readablestream-locked\nfunction isLocked (self) {\n // Consume is an implicit lock.\n return (self[kBody] && self[kBody].locked === true) || self[kConsume]\n}\n\n// https://fetch.spec.whatwg.org/#body-unusable\nfunction isUnusable (self) {\n return util.isDisturbed(self) || isLocked(self)\n}\n\nasync function consume (stream, type) {\n assert(!stream[kConsume])\n\n return new Promise((resolve, reject) => {\n if (isUnusable(stream)) {\n const rState = stream._readableState\n if (rState.destroyed && rState.closeEmitted === false) {\n stream\n .on('error', err => {\n reject(err)\n })\n .on('close', () => {\n reject(new TypeError('unusable'))\n })\n } else {\n reject(rState.errored ?? new TypeError('unusable'))\n }\n } else {\n queueMicrotask(() => {\n stream[kConsume] = {\n type,\n stream,\n resolve,\n reject,\n length: 0,\n body: []\n }\n\n stream\n .on('error', function (err) {\n consumeFinish(this[kConsume], err)\n })\n .on('close', function () {\n if (this[kConsume].body !== null) {\n consumeFinish(this[kConsume], new RequestAbortedError())\n }\n })\n\n consumeStart(stream[kConsume])\n })\n }\n })\n}\n\nfunction consumeStart (consume) {\n if (consume.body === null) {\n return\n }\n\n const { _readableState: state } = consume.stream\n\n if (state.bufferIndex) {\n const start = state.bufferIndex\n const end = state.buffer.length\n for (let n = start; n < end; n++) {\n consumePush(consume, state.buffer[n])\n }\n } else {\n for (const chunk of state.buffer) {\n consumePush(consume, chunk)\n }\n }\n\n if (state.endEmitted) {\n consumeEnd(this[kConsume])\n } else {\n consume.stream.on('end', function () {\n consumeEnd(this[kConsume])\n })\n }\n\n consume.stream.resume()\n\n while (consume.stream.read() != null) {\n // Loop\n }\n}\n\n/**\n * @param {Buffer[]} chunks\n * @param {number} length\n */\nfunction chunksDecode (chunks, length) {\n if (chunks.length === 0 || length === 0) {\n return ''\n }\n const buffer = chunks.length === 1 ? chunks[0] : Buffer.concat(chunks, length)\n const bufferLength = buffer.length\n\n // Skip BOM.\n const start =\n bufferLength > 2 &&\n buffer[0] === 0xef &&\n buffer[1] === 0xbb &&\n buffer[2] === 0xbf\n ? 3\n : 0\n return buffer.utf8Slice(start, bufferLength)\n}\n\n/**\n * @param {Buffer[]} chunks\n * @param {number} length\n * @returns {Uint8Array}\n */\nfunction chunksConcat (chunks, length) {\n if (chunks.length === 0 || length === 0) {\n return new Uint8Array(0)\n }\n if (chunks.length === 1) {\n // fast-path\n return new Uint8Array(chunks[0])\n }\n const buffer = new Uint8Array(Buffer.allocUnsafeSlow(length).buffer)\n\n let offset = 0\n for (let i = 0; i < chunks.length; ++i) {\n const chunk = chunks[i]\n buffer.set(chunk, offset)\n offset += chunk.length\n }\n\n return buffer\n}\n\nfunction consumeEnd (consume) {\n const { type, body, resolve, stream, length } = consume\n\n try {\n if (type === 'text') {\n resolve(chunksDecode(body, length))\n } else if (type === 'json') {\n resolve(JSON.parse(chunksDecode(body, length)))\n } else if (type === 'arrayBuffer') {\n resolve(chunksConcat(body, length).buffer)\n } else if (type === 'blob') {\n resolve(new Blob(body, { type: stream[kContentType] }))\n } else if (type === 'bytes') {\n resolve(chunksConcat(body, length))\n }\n\n consumeFinish(consume)\n } catch (err) {\n stream.destroy(err)\n }\n}\n\nfunction consumePush (consume, chunk) {\n consume.length += chunk.length\n consume.body.push(chunk)\n}\n\nfunction consumeFinish (consume, err) {\n if (consume.body === null) {\n return\n }\n\n if (err) {\n consume.reject(err)\n } else {\n consume.resolve()\n }\n\n consume.type = null\n consume.stream = null\n consume.resolve = null\n consume.reject = null\n consume.length = 0\n consume.body = null\n}\n\nmodule.exports = { Readable: BodyReadable, chunksDecode }\n", "const assert = require('node:assert')\nconst {\n ResponseStatusCodeError\n} = require('../core/errors')\n\nconst { chunksDecode } = require('./readable')\nconst CHUNK_LIMIT = 128 * 1024\n\nasync function getResolveErrorBodyCallback ({ callback, body, contentType, statusCode, statusMessage, headers }) {\n assert(body)\n\n let chunks = []\n let length = 0\n\n try {\n for await (const chunk of body) {\n chunks.push(chunk)\n length += chunk.length\n if (length > CHUNK_LIMIT) {\n chunks = []\n length = 0\n break\n }\n }\n } catch {\n chunks = []\n length = 0\n // Do nothing....\n }\n\n const message = `Response status code ${statusCode}${statusMessage ? `: ${statusMessage}` : ''}`\n\n if (statusCode === 204 || !contentType || !length) {\n queueMicrotask(() => callback(new ResponseStatusCodeError(message, statusCode, headers)))\n return\n }\n\n const stackTraceLimit = Error.stackTraceLimit\n Error.stackTraceLimit = 0\n let payload\n\n try {\n if (isContentTypeApplicationJson(contentType)) {\n payload = JSON.parse(chunksDecode(chunks, length))\n } else if (isContentTypeText(contentType)) {\n payload = chunksDecode(chunks, length)\n }\n } catch {\n // process in a callback to avoid throwing in the microtask queue\n } finally {\n Error.stackTraceLimit = stackTraceLimit\n }\n queueMicrotask(() => callback(new ResponseStatusCodeError(message, statusCode, headers, payload)))\n}\n\nconst isContentTypeApplicationJson = (contentType) => {\n return (\n contentType.length > 15 &&\n contentType[11] === '/' &&\n contentType[0] === 'a' &&\n contentType[1] === 'p' &&\n contentType[2] === 'p' &&\n contentType[3] === 'l' &&\n contentType[4] === 'i' &&\n contentType[5] === 'c' &&\n contentType[6] === 'a' &&\n contentType[7] === 't' &&\n contentType[8] === 'i' &&\n contentType[9] === 'o' &&\n contentType[10] === 'n' &&\n contentType[12] === 'j' &&\n contentType[13] === 's' &&\n contentType[14] === 'o' &&\n contentType[15] === 'n'\n )\n}\n\nconst isContentTypeText = (contentType) => {\n return (\n contentType.length > 4 &&\n contentType[4] === '/' &&\n contentType[0] === 't' &&\n contentType[1] === 'e' &&\n contentType[2] === 'x' &&\n contentType[3] === 't'\n )\n}\n\nmodule.exports = {\n getResolveErrorBodyCallback,\n isContentTypeApplicationJson,\n isContentTypeText\n}\n", "'use strict'\n\nconst assert = require('node:assert')\nconst { Readable } = require('./readable')\nconst { InvalidArgumentError, RequestAbortedError } = require('../core/errors')\nconst util = require('../core/util')\nconst { getResolveErrorBodyCallback } = require('./util')\nconst { AsyncResource } = require('node:async_hooks')\n\nclass RequestHandler extends AsyncResource {\n constructor (opts, callback) {\n if (!opts || typeof opts !== 'object') {\n throw new InvalidArgumentError('invalid opts')\n }\n\n const { signal, method, opaque, body, onInfo, responseHeaders, throwOnError, highWaterMark } = opts\n\n try {\n if (typeof callback !== 'function') {\n throw new InvalidArgumentError('invalid callback')\n }\n\n if (highWaterMark && (typeof highWaterMark !== 'number' || highWaterMark < 0)) {\n throw new InvalidArgumentError('invalid highWaterMark')\n }\n\n if (signal && typeof signal.on !== 'function' && typeof signal.addEventListener !== 'function') {\n throw new InvalidArgumentError('signal must be an EventEmitter or EventTarget')\n }\n\n if (method === 'CONNECT') {\n throw new InvalidArgumentError('invalid method')\n }\n\n if (onInfo && typeof onInfo !== 'function') {\n throw new InvalidArgumentError('invalid onInfo callback')\n }\n\n super('UNDICI_REQUEST')\n } catch (err) {\n if (util.isStream(body)) {\n util.destroy(body.on('error', util.nop), err)\n }\n throw err\n }\n\n this.method = method\n this.responseHeaders = responseHeaders || null\n this.opaque = opaque || null\n this.callback = callback\n this.res = null\n this.abort = null\n this.body = body\n this.trailers = {}\n this.context = null\n this.onInfo = onInfo || null\n this.throwOnError = throwOnError\n this.highWaterMark = highWaterMark\n this.signal = signal\n this.reason = null\n this.removeAbortListener = null\n\n if (util.isStream(body)) {\n body.on('error', (err) => {\n this.onError(err)\n })\n }\n\n if (this.signal) {\n if (this.signal.aborted) {\n this.reason = this.signal.reason ?? new RequestAbortedError()\n } else {\n this.removeAbortListener = util.addAbortListener(this.signal, () => {\n this.reason = this.signal.reason ?? new RequestAbortedError()\n if (this.res) {\n util.destroy(this.res.on('error', util.nop), this.reason)\n } else if (this.abort) {\n this.abort(this.reason)\n }\n\n if (this.removeAbortListener) {\n this.res?.off('close', this.removeAbortListener)\n this.removeAbortListener()\n this.removeAbortListener = null\n }\n })\n }\n }\n }\n\n onConnect (abort, context) {\n if (this.reason) {\n abort(this.reason)\n return\n }\n\n assert(this.callback)\n\n this.abort = abort\n this.context = context\n }\n\n onHeaders (statusCode, rawHeaders, resume, statusMessage) {\n const { callback, opaque, abort, context, responseHeaders, highWaterMark } = this\n\n const headers = responseHeaders === 'raw' ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders)\n\n if (statusCode < 200) {\n if (this.onInfo) {\n this.onInfo({ statusCode, headers })\n }\n return\n }\n\n const parsedHeaders = responseHeaders === 'raw' ? util.parseHeaders(rawHeaders) : headers\n const contentType = parsedHeaders['content-type']\n const contentLength = parsedHeaders['content-length']\n const res = new Readable({\n resume,\n abort,\n contentType,\n contentLength: this.method !== 'HEAD' && contentLength\n ? Number(contentLength)\n : null,\n highWaterMark\n })\n\n if (this.removeAbortListener) {\n res.on('close', this.removeAbortListener)\n }\n\n this.callback = null\n this.res = res\n if (callback !== null) {\n if (this.throwOnError && statusCode >= 400) {\n this.runInAsyncScope(getResolveErrorBodyCallback, null,\n { callback, body: res, contentType, statusCode, statusMessage, headers }\n )\n } else {\n this.runInAsyncScope(callback, null, null, {\n statusCode,\n headers,\n trailers: this.trailers,\n opaque,\n body: res,\n context\n })\n }\n }\n }\n\n onData (chunk) {\n return this.res.push(chunk)\n }\n\n onComplete (trailers) {\n util.parseHeaders(trailers, this.trailers)\n this.res.push(null)\n }\n\n onError (err) {\n const { res, callback, body, opaque } = this\n\n if (callback) {\n // TODO: Does this need queueMicrotask?\n this.callback = null\n queueMicrotask(() => {\n this.runInAsyncScope(callback, null, err, { opaque })\n })\n }\n\n if (res) {\n this.res = null\n // Ensure all queued handlers are invoked before destroying res.\n queueMicrotask(() => {\n util.destroy(res, err)\n })\n }\n\n if (body) {\n this.body = null\n util.destroy(body, err)\n }\n\n if (this.removeAbortListener) {\n res?.off('close', this.removeAbortListener)\n this.removeAbortListener()\n this.removeAbortListener = null\n }\n }\n}\n\nfunction request (opts, callback) {\n if (callback === undefined) {\n return new Promise((resolve, reject) => {\n request.call(this, opts, (err, data) => {\n return err ? reject(err) : resolve(data)\n })\n })\n }\n\n try {\n this.dispatch(opts, new RequestHandler(opts, callback))\n } catch (err) {\n if (typeof callback !== 'function') {\n throw err\n }\n const opaque = opts?.opaque\n queueMicrotask(() => callback(err, { opaque }))\n }\n}\n\nmodule.exports = request\nmodule.exports.RequestHandler = RequestHandler\n", "const { addAbortListener } = require('../core/util')\nconst { RequestAbortedError } = require('../core/errors')\n\nconst kListener = Symbol('kListener')\nconst kSignal = Symbol('kSignal')\n\nfunction abort (self) {\n if (self.abort) {\n self.abort(self[kSignal]?.reason)\n } else {\n self.reason = self[kSignal]?.reason ?? new RequestAbortedError()\n }\n removeSignal(self)\n}\n\nfunction addSignal (self, signal) {\n self.reason = null\n\n self[kSignal] = null\n self[kListener] = null\n\n if (!signal) {\n return\n }\n\n if (signal.aborted) {\n abort(self)\n return\n }\n\n self[kSignal] = signal\n self[kListener] = () => {\n abort(self)\n }\n\n addAbortListener(self[kSignal], self[kListener])\n}\n\nfunction removeSignal (self) {\n if (!self[kSignal]) {\n return\n }\n\n if ('removeEventListener' in self[kSignal]) {\n self[kSignal].removeEventListener('abort', self[kListener])\n } else {\n self[kSignal].removeListener('abort', self[kListener])\n }\n\n self[kSignal] = null\n self[kListener] = null\n}\n\nmodule.exports = {\n addSignal,\n removeSignal\n}\n", "'use strict'\n\nconst assert = require('node:assert')\nconst { finished, PassThrough } = require('node:stream')\nconst { InvalidArgumentError, InvalidReturnValueError } = require('../core/errors')\nconst util = require('../core/util')\nconst { getResolveErrorBodyCallback } = require('./util')\nconst { AsyncResource } = require('node:async_hooks')\nconst { addSignal, removeSignal } = require('./abort-signal')\n\nclass StreamHandler extends AsyncResource {\n constructor (opts, factory, callback) {\n if (!opts || typeof opts !== 'object') {\n throw new InvalidArgumentError('invalid opts')\n }\n\n const { signal, method, opaque, body, onInfo, responseHeaders, throwOnError } = opts\n\n try {\n if (typeof callback !== 'function') {\n throw new InvalidArgumentError('invalid callback')\n }\n\n if (typeof factory !== 'function') {\n throw new InvalidArgumentError('invalid factory')\n }\n\n if (signal && typeof signal.on !== 'function' && typeof signal.addEventListener !== 'function') {\n throw new InvalidArgumentError('signal must be an EventEmitter or EventTarget')\n }\n\n if (method === 'CONNECT') {\n throw new InvalidArgumentError('invalid method')\n }\n\n if (onInfo && typeof onInfo !== 'function') {\n throw new InvalidArgumentError('invalid onInfo callback')\n }\n\n super('UNDICI_STREAM')\n } catch (err) {\n if (util.isStream(body)) {\n util.destroy(body.on('error', util.nop), err)\n }\n throw err\n }\n\n this.responseHeaders = responseHeaders || null\n this.opaque = opaque || null\n this.factory = factory\n this.callback = callback\n this.res = null\n this.abort = null\n this.context = null\n this.trailers = null\n this.body = body\n this.onInfo = onInfo || null\n this.throwOnError = throwOnError || false\n\n if (util.isStream(body)) {\n body.on('error', (err) => {\n this.onError(err)\n })\n }\n\n addSignal(this, signal)\n }\n\n onConnect (abort, context) {\n if (this.reason) {\n abort(this.reason)\n return\n }\n\n assert(this.callback)\n\n this.abort = abort\n this.context = context\n }\n\n onHeaders (statusCode, rawHeaders, resume, statusMessage) {\n const { factory, opaque, context, callback, responseHeaders } = this\n\n const headers = responseHeaders === 'raw' ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders)\n\n if (statusCode < 200) {\n if (this.onInfo) {\n this.onInfo({ statusCode, headers })\n }\n return\n }\n\n this.factory = null\n\n let res\n\n if (this.throwOnError && statusCode >= 400) {\n const parsedHeaders = responseHeaders === 'raw' ? util.parseHeaders(rawHeaders) : headers\n const contentType = parsedHeaders['content-type']\n res = new PassThrough()\n\n this.callback = null\n this.runInAsyncScope(getResolveErrorBodyCallback, null,\n { callback, body: res, contentType, statusCode, statusMessage, headers }\n )\n } else {\n if (factory === null) {\n return\n }\n\n res = this.runInAsyncScope(factory, null, {\n statusCode,\n headers,\n opaque,\n context\n })\n\n if (\n !res ||\n typeof res.write !== 'function' ||\n typeof res.end !== 'function' ||\n typeof res.on !== 'function'\n ) {\n throw new InvalidReturnValueError('expected Writable')\n }\n\n // TODO: Avoid finished. It registers an unnecessary amount of listeners.\n finished(res, { readable: false }, (err) => {\n const { callback, res, opaque, trailers, abort } = this\n\n this.res = null\n if (err || !res.readable) {\n util.destroy(res, err)\n }\n\n this.callback = null\n this.runInAsyncScope(callback, null, err || null, { opaque, trailers })\n\n if (err) {\n abort()\n }\n })\n }\n\n res.on('drain', resume)\n\n this.res = res\n\n const needDrain = res.writableNeedDrain !== undefined\n ? res.writableNeedDrain\n : res._writableState?.needDrain\n\n return needDrain !== true\n }\n\n onData (chunk) {\n const { res } = this\n\n return res ? res.write(chunk) : true\n }\n\n onComplete (trailers) {\n const { res } = this\n\n removeSignal(this)\n\n if (!res) {\n return\n }\n\n this.trailers = util.parseHeaders(trailers)\n\n res.end()\n }\n\n onError (err) {\n const { res, callback, opaque, body } = this\n\n removeSignal(this)\n\n this.factory = null\n\n if (res) {\n this.res = null\n util.destroy(res, err)\n } else if (callback) {\n this.callback = null\n queueMicrotask(() => {\n this.runInAsyncScope(callback, null, err, { opaque })\n })\n }\n\n if (body) {\n this.body = null\n util.destroy(body, err)\n }\n }\n}\n\nfunction stream (opts, factory, callback) {\n if (callback === undefined) {\n return new Promise((resolve, reject) => {\n stream.call(this, opts, factory, (err, data) => {\n return err ? reject(err) : resolve(data)\n })\n })\n }\n\n try {\n this.dispatch(opts, new StreamHandler(opts, factory, callback))\n } catch (err) {\n if (typeof callback !== 'function') {\n throw err\n }\n const opaque = opts?.opaque\n queueMicrotask(() => callback(err, { opaque }))\n }\n}\n\nmodule.exports = stream\n", "'use strict'\n\nconst {\n Readable,\n Duplex,\n PassThrough\n} = require('node:stream')\nconst {\n InvalidArgumentError,\n InvalidReturnValueError,\n RequestAbortedError\n} = require('../core/errors')\nconst util = require('../core/util')\nconst { AsyncResource } = require('node:async_hooks')\nconst { addSignal, removeSignal } = require('./abort-signal')\nconst assert = require('node:assert')\n\nconst kResume = Symbol('resume')\n\nclass PipelineRequest extends Readable {\n constructor () {\n super({ autoDestroy: true })\n\n this[kResume] = null\n }\n\n _read () {\n const { [kResume]: resume } = this\n\n if (resume) {\n this[kResume] = null\n resume()\n }\n }\n\n _destroy (err, callback) {\n this._read()\n\n callback(err)\n }\n}\n\nclass PipelineResponse extends Readable {\n constructor (resume) {\n super({ autoDestroy: true })\n this[kResume] = resume\n }\n\n _read () {\n this[kResume]()\n }\n\n _destroy (err, callback) {\n if (!err && !this._readableState.endEmitted) {\n err = new RequestAbortedError()\n }\n\n callback(err)\n }\n}\n\nclass PipelineHandler extends AsyncResource {\n constructor (opts, handler) {\n if (!opts || typeof opts !== 'object') {\n throw new InvalidArgumentError('invalid opts')\n }\n\n if (typeof handler !== 'function') {\n throw new InvalidArgumentError('invalid handler')\n }\n\n const { signal, method, opaque, onInfo, responseHeaders } = opts\n\n if (signal && typeof signal.on !== 'function' && typeof signal.addEventListener !== 'function') {\n throw new InvalidArgumentError('signal must be an EventEmitter or EventTarget')\n }\n\n if (method === 'CONNECT') {\n throw new InvalidArgumentError('invalid method')\n }\n\n if (onInfo && typeof onInfo !== 'function') {\n throw new InvalidArgumentError('invalid onInfo callback')\n }\n\n super('UNDICI_PIPELINE')\n\n this.opaque = opaque || null\n this.responseHeaders = responseHeaders || null\n this.handler = handler\n this.abort = null\n this.context = null\n this.onInfo = onInfo || null\n\n this.req = new PipelineRequest().on('error', util.nop)\n\n this.ret = new Duplex({\n readableObjectMode: opts.objectMode,\n autoDestroy: true,\n read: () => {\n const { body } = this\n\n if (body?.resume) {\n body.resume()\n }\n },\n write: (chunk, encoding, callback) => {\n const { req } = this\n\n if (req.push(chunk, encoding) || req._readableState.destroyed) {\n callback()\n } else {\n req[kResume] = callback\n }\n },\n destroy: (err, callback) => {\n const { body, req, res, ret, abort } = this\n\n if (!err && !ret._readableState.endEmitted) {\n err = new RequestAbortedError()\n }\n\n if (abort && err) {\n abort()\n }\n\n util.destroy(body, err)\n util.destroy(req, err)\n util.destroy(res, err)\n\n removeSignal(this)\n\n callback(err)\n }\n }).on('prefinish', () => {\n const { req } = this\n\n // Node < 15 does not call _final in same tick.\n req.push(null)\n })\n\n this.res = null\n\n addSignal(this, signal)\n }\n\n onConnect (abort, context) {\n const { ret, res } = this\n\n if (this.reason) {\n abort(this.reason)\n return\n }\n\n assert(!res, 'pipeline cannot be retried')\n assert(!ret.destroyed)\n\n this.abort = abort\n this.context = context\n }\n\n onHeaders (statusCode, rawHeaders, resume) {\n const { opaque, handler, context } = this\n\n if (statusCode < 200) {\n if (this.onInfo) {\n const headers = this.responseHeaders === 'raw' ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders)\n this.onInfo({ statusCode, headers })\n }\n return\n }\n\n this.res = new PipelineResponse(resume)\n\n let body\n try {\n this.handler = null\n const headers = this.responseHeaders === 'raw' ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders)\n body = this.runInAsyncScope(handler, null, {\n statusCode,\n headers,\n opaque,\n body: this.res,\n context\n })\n } catch (err) {\n this.res.on('error', util.nop)\n throw err\n }\n\n if (!body || typeof body.on !== 'function') {\n throw new InvalidReturnValueError('expected Readable')\n }\n\n body\n .on('data', (chunk) => {\n const { ret, body } = this\n\n if (!ret.push(chunk) && body.pause) {\n body.pause()\n }\n })\n .on('error', (err) => {\n const { ret } = this\n\n util.destroy(ret, err)\n })\n .on('end', () => {\n const { ret } = this\n\n ret.push(null)\n })\n .on('close', () => {\n const { ret } = this\n\n if (!ret._readableState.ended) {\n util.destroy(ret, new RequestAbortedError())\n }\n })\n\n this.body = body\n }\n\n onData (chunk) {\n const { res } = this\n return res.push(chunk)\n }\n\n onComplete (trailers) {\n const { res } = this\n res.push(null)\n }\n\n onError (err) {\n const { ret } = this\n this.handler = null\n util.destroy(ret, err)\n }\n}\n\nfunction pipeline (opts, handler) {\n try {\n const pipelineHandler = new PipelineHandler(opts, handler)\n this.dispatch({ ...opts, body: pipelineHandler.req }, pipelineHandler)\n return pipelineHandler.ret\n } catch (err) {\n return new PassThrough().destroy(err)\n }\n}\n\nmodule.exports = pipeline\n", "'use strict'\n\nconst { InvalidArgumentError, SocketError } = require('../core/errors')\nconst { AsyncResource } = require('node:async_hooks')\nconst util = require('../core/util')\nconst { addSignal, removeSignal } = require('./abort-signal')\nconst assert = require('node:assert')\n\nclass UpgradeHandler extends AsyncResource {\n constructor (opts, callback) {\n if (!opts || typeof opts !== 'object') {\n throw new InvalidArgumentError('invalid opts')\n }\n\n if (typeof callback !== 'function') {\n throw new InvalidArgumentError('invalid callback')\n }\n\n const { signal, opaque, responseHeaders } = opts\n\n if (signal && typeof signal.on !== 'function' && typeof signal.addEventListener !== 'function') {\n throw new InvalidArgumentError('signal must be an EventEmitter or EventTarget')\n }\n\n super('UNDICI_UPGRADE')\n\n this.responseHeaders = responseHeaders || null\n this.opaque = opaque || null\n this.callback = callback\n this.abort = null\n this.context = null\n\n addSignal(this, signal)\n }\n\n onConnect (abort, context) {\n if (this.reason) {\n abort(this.reason)\n return\n }\n\n assert(this.callback)\n\n this.abort = abort\n this.context = null\n }\n\n onHeaders () {\n throw new SocketError('bad upgrade', null)\n }\n\n onUpgrade (statusCode, rawHeaders, socket) {\n assert(statusCode === 101)\n\n const { callback, opaque, context } = this\n\n removeSignal(this)\n\n this.callback = null\n const headers = this.responseHeaders === 'raw' ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders)\n this.runInAsyncScope(callback, null, null, {\n headers,\n socket,\n opaque,\n context\n })\n }\n\n onError (err) {\n const { callback, opaque } = this\n\n removeSignal(this)\n\n if (callback) {\n this.callback = null\n queueMicrotask(() => {\n this.runInAsyncScope(callback, null, err, { opaque })\n })\n }\n }\n}\n\nfunction upgrade (opts, callback) {\n if (callback === undefined) {\n return new Promise((resolve, reject) => {\n upgrade.call(this, opts, (err, data) => {\n return err ? reject(err) : resolve(data)\n })\n })\n }\n\n try {\n const upgradeHandler = new UpgradeHandler(opts, callback)\n this.dispatch({\n ...opts,\n method: opts.method || 'GET',\n upgrade: opts.protocol || 'Websocket'\n }, upgradeHandler)\n } catch (err) {\n if (typeof callback !== 'function') {\n throw err\n }\n const opaque = opts?.opaque\n queueMicrotask(() => callback(err, { opaque }))\n }\n}\n\nmodule.exports = upgrade\n", "'use strict'\n\nconst assert = require('node:assert')\nconst { AsyncResource } = require('node:async_hooks')\nconst { InvalidArgumentError, SocketError } = require('../core/errors')\nconst util = require('../core/util')\nconst { addSignal, removeSignal } = require('./abort-signal')\n\nclass ConnectHandler extends AsyncResource {\n constructor (opts, callback) {\n if (!opts || typeof opts !== 'object') {\n throw new InvalidArgumentError('invalid opts')\n }\n\n if (typeof callback !== 'function') {\n throw new InvalidArgumentError('invalid callback')\n }\n\n const { signal, opaque, responseHeaders } = opts\n\n if (signal && typeof signal.on !== 'function' && typeof signal.addEventListener !== 'function') {\n throw new InvalidArgumentError('signal must be an EventEmitter or EventTarget')\n }\n\n super('UNDICI_CONNECT')\n\n this.opaque = opaque || null\n this.responseHeaders = responseHeaders || null\n this.callback = callback\n this.abort = null\n\n addSignal(this, signal)\n }\n\n onConnect (abort, context) {\n if (this.reason) {\n abort(this.reason)\n return\n }\n\n assert(this.callback)\n\n this.abort = abort\n this.context = context\n }\n\n onHeaders () {\n throw new SocketError('bad connect', null)\n }\n\n onUpgrade (statusCode, rawHeaders, socket) {\n const { callback, opaque, context } = this\n\n removeSignal(this)\n\n this.callback = null\n\n let headers = rawHeaders\n // Indicates is an HTTP2Session\n if (headers != null) {\n headers = this.responseHeaders === 'raw' ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders)\n }\n\n this.runInAsyncScope(callback, null, null, {\n statusCode,\n headers,\n socket,\n opaque,\n context\n })\n }\n\n onError (err) {\n const { callback, opaque } = this\n\n removeSignal(this)\n\n if (callback) {\n this.callback = null\n queueMicrotask(() => {\n this.runInAsyncScope(callback, null, err, { opaque })\n })\n }\n }\n}\n\nfunction connect (opts, callback) {\n if (callback === undefined) {\n return new Promise((resolve, reject) => {\n connect.call(this, opts, (err, data) => {\n return err ? reject(err) : resolve(data)\n })\n })\n }\n\n try {\n const connectHandler = new ConnectHandler(opts, callback)\n this.dispatch({ ...opts, method: 'CONNECT' }, connectHandler)\n } catch (err) {\n if (typeof callback !== 'function') {\n throw err\n }\n const opaque = opts?.opaque\n queueMicrotask(() => callback(err, { opaque }))\n }\n}\n\nmodule.exports = connect\n", "'use strict'\n\nmodule.exports.request = require('./api-request')\nmodule.exports.stream = require('./api-stream')\nmodule.exports.pipeline = require('./api-pipeline')\nmodule.exports.upgrade = require('./api-upgrade')\nmodule.exports.connect = require('./api-connect')\n", "'use strict'\n\nconst { UndiciError } = require('../core/errors')\n\nconst kMockNotMatchedError = Symbol.for('undici.error.UND_MOCK_ERR_MOCK_NOT_MATCHED')\n\n/**\n * The request does not match any registered mock dispatches.\n */\nclass MockNotMatchedError extends UndiciError {\n constructor (message) {\n super(message)\n Error.captureStackTrace(this, MockNotMatchedError)\n this.name = 'MockNotMatchedError'\n this.message = message || 'The request does not match any registered mock dispatches'\n this.code = 'UND_MOCK_ERR_MOCK_NOT_MATCHED'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kMockNotMatchedError] === true\n }\n\n [kMockNotMatchedError] = true\n}\n\nmodule.exports = {\n MockNotMatchedError\n}\n", "'use strict'\n\nmodule.exports = {\n kAgent: Symbol('agent'),\n kOptions: Symbol('options'),\n kFactory: Symbol('factory'),\n kDispatches: Symbol('dispatches'),\n kDispatchKey: Symbol('dispatch key'),\n kDefaultHeaders: Symbol('default headers'),\n kDefaultTrailers: Symbol('default trailers'),\n kContentLength: Symbol('content length'),\n kMockAgent: Symbol('mock agent'),\n kMockAgentSet: Symbol('mock agent set'),\n kMockAgentGet: Symbol('mock agent get'),\n kMockDispatch: Symbol('mock dispatch'),\n kClose: Symbol('close'),\n kOriginalClose: Symbol('original agent close'),\n kOrigin: Symbol('origin'),\n kIsMockActive: Symbol('is mock active'),\n kNetConnect: Symbol('net connect'),\n kGetNetConnect: Symbol('get net connect'),\n kConnected: Symbol('connected')\n}\n", "'use strict'\n\nconst { MockNotMatchedError } = require('./mock-errors')\nconst {\n kDispatches,\n kMockAgent,\n kOriginalDispatch,\n kOrigin,\n kGetNetConnect\n} = require('./mock-symbols')\nconst { buildURL } = require('../core/util')\nconst { STATUS_CODES } = require('node:http')\nconst {\n types: {\n isPromise\n }\n} = require('node:util')\n\nfunction matchValue (match, value) {\n if (typeof match === 'string') {\n return match === value\n }\n if (match instanceof RegExp) {\n return match.test(value)\n }\n if (typeof match === 'function') {\n return match(value) === true\n }\n return false\n}\n\nfunction lowerCaseEntries (headers) {\n return Object.fromEntries(\n Object.entries(headers).map(([headerName, headerValue]) => {\n return [headerName.toLocaleLowerCase(), headerValue]\n })\n )\n}\n\n/**\n * @param {import('../../index').Headers|string[]|Record} headers\n * @param {string} key\n */\nfunction getHeaderByName (headers, key) {\n if (Array.isArray(headers)) {\n for (let i = 0; i < headers.length; i += 2) {\n if (headers[i].toLocaleLowerCase() === key.toLocaleLowerCase()) {\n return headers[i + 1]\n }\n }\n\n return undefined\n } else if (typeof headers.get === 'function') {\n return headers.get(key)\n } else {\n return lowerCaseEntries(headers)[key.toLocaleLowerCase()]\n }\n}\n\n/** @param {string[]} headers */\nfunction buildHeadersFromArray (headers) { // fetch HeadersList\n const clone = headers.slice()\n const entries = []\n for (let index = 0; index < clone.length; index += 2) {\n entries.push([clone[index], clone[index + 1]])\n }\n return Object.fromEntries(entries)\n}\n\nfunction matchHeaders (mockDispatch, headers) {\n if (typeof mockDispatch.headers === 'function') {\n if (Array.isArray(headers)) { // fetch HeadersList\n headers = buildHeadersFromArray(headers)\n }\n return mockDispatch.headers(headers ? lowerCaseEntries(headers) : {})\n }\n if (typeof mockDispatch.headers === 'undefined') {\n return true\n }\n if (typeof headers !== 'object' || typeof mockDispatch.headers !== 'object') {\n return false\n }\n\n for (const [matchHeaderName, matchHeaderValue] of Object.entries(mockDispatch.headers)) {\n const headerValue = getHeaderByName(headers, matchHeaderName)\n\n if (!matchValue(matchHeaderValue, headerValue)) {\n return false\n }\n }\n return true\n}\n\nfunction safeUrl (path) {\n if (typeof path !== 'string') {\n return path\n }\n\n const pathSegments = path.split('?')\n\n if (pathSegments.length !== 2) {\n return path\n }\n\n const qp = new URLSearchParams(pathSegments.pop())\n qp.sort()\n return [...pathSegments, qp.toString()].join('?')\n}\n\nfunction matchKey (mockDispatch, { path, method, body, headers }) {\n const pathMatch = matchValue(mockDispatch.path, path)\n const methodMatch = matchValue(mockDispatch.method, method)\n const bodyMatch = typeof mockDispatch.body !== 'undefined' ? matchValue(mockDispatch.body, body) : true\n const headersMatch = matchHeaders(mockDispatch, headers)\n return pathMatch && methodMatch && bodyMatch && headersMatch\n}\n\nfunction getResponseData (data) {\n if (Buffer.isBuffer(data)) {\n return data\n } else if (data instanceof Uint8Array) {\n return data\n } else if (data instanceof ArrayBuffer) {\n return data\n } else if (typeof data === 'object') {\n return JSON.stringify(data)\n } else {\n return data.toString()\n }\n}\n\nfunction getMockDispatch (mockDispatches, key) {\n const basePath = key.query ? buildURL(key.path, key.query) : key.path\n const resolvedPath = typeof basePath === 'string' ? safeUrl(basePath) : basePath\n\n // Match path\n let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path }) => matchValue(safeUrl(path), resolvedPath))\n if (matchedMockDispatches.length === 0) {\n throw new MockNotMatchedError(`Mock dispatch not matched for path '${resolvedPath}'`)\n }\n\n // Match method\n matchedMockDispatches = matchedMockDispatches.filter(({ method }) => matchValue(method, key.method))\n if (matchedMockDispatches.length === 0) {\n throw new MockNotMatchedError(`Mock dispatch not matched for method '${key.method}' on path '${resolvedPath}'`)\n }\n\n // Match body\n matchedMockDispatches = matchedMockDispatches.filter(({ body }) => typeof body !== 'undefined' ? matchValue(body, key.body) : true)\n if (matchedMockDispatches.length === 0) {\n throw new MockNotMatchedError(`Mock dispatch not matched for body '${key.body}' on path '${resolvedPath}'`)\n }\n\n // Match headers\n matchedMockDispatches = matchedMockDispatches.filter((mockDispatch) => matchHeaders(mockDispatch, key.headers))\n if (matchedMockDispatches.length === 0) {\n const headers = typeof key.headers === 'object' ? JSON.stringify(key.headers) : key.headers\n throw new MockNotMatchedError(`Mock dispatch not matched for headers '${headers}' on path '${resolvedPath}'`)\n }\n\n return matchedMockDispatches[0]\n}\n\nfunction addMockDispatch (mockDispatches, key, data) {\n const baseData = { timesInvoked: 0, times: 1, persist: false, consumed: false }\n const replyData = typeof data === 'function' ? { callback: data } : { ...data }\n const newMockDispatch = { ...baseData, ...key, pending: true, data: { error: null, ...replyData } }\n mockDispatches.push(newMockDispatch)\n return newMockDispatch\n}\n\nfunction deleteMockDispatch (mockDispatches, key) {\n const index = mockDispatches.findIndex(dispatch => {\n if (!dispatch.consumed) {\n return false\n }\n return matchKey(dispatch, key)\n })\n if (index !== -1) {\n mockDispatches.splice(index, 1)\n }\n}\n\nfunction buildKey (opts) {\n const { path, method, body, headers, query } = opts\n return {\n path,\n method,\n body,\n headers,\n query\n }\n}\n\nfunction generateKeyValues (data) {\n const keys = Object.keys(data)\n const result = []\n for (let i = 0; i < keys.length; ++i) {\n const key = keys[i]\n const value = data[key]\n const name = Buffer.from(`${key}`)\n if (Array.isArray(value)) {\n for (let j = 0; j < value.length; ++j) {\n result.push(name, Buffer.from(`${value[j]}`))\n }\n } else {\n result.push(name, Buffer.from(`${value}`))\n }\n }\n return result\n}\n\n/**\n * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status\n * @param {number} statusCode\n */\nfunction getStatusText (statusCode) {\n return STATUS_CODES[statusCode] || 'unknown'\n}\n\nasync function getResponse (body) {\n const buffers = []\n for await (const data of body) {\n buffers.push(data)\n }\n return Buffer.concat(buffers).toString('utf8')\n}\n\n/**\n * Mock dispatch function used to simulate undici dispatches\n */\nfunction mockDispatch (opts, handler) {\n // Get mock dispatch from built key\n const key = buildKey(opts)\n const mockDispatch = getMockDispatch(this[kDispatches], key)\n\n mockDispatch.timesInvoked++\n\n // Here's where we resolve a callback if a callback is present for the dispatch data.\n if (mockDispatch.data.callback) {\n mockDispatch.data = { ...mockDispatch.data, ...mockDispatch.data.callback(opts) }\n }\n\n // Parse mockDispatch data\n const { data: { statusCode, data, headers, trailers, error }, delay, persist } = mockDispatch\n const { timesInvoked, times } = mockDispatch\n\n // If it's used up and not persistent, mark as consumed\n mockDispatch.consumed = !persist && timesInvoked >= times\n mockDispatch.pending = timesInvoked < times\n\n // If specified, trigger dispatch error\n if (error !== null) {\n deleteMockDispatch(this[kDispatches], key)\n handler.onError(error)\n return true\n }\n\n // Handle the request with a delay if necessary\n if (typeof delay === 'number' && delay > 0) {\n setTimeout(() => {\n handleReply(this[kDispatches])\n }, delay)\n } else {\n handleReply(this[kDispatches])\n }\n\n function handleReply (mockDispatches, _data = data) {\n // fetch's HeadersList is a 1D string array\n const optsHeaders = Array.isArray(opts.headers)\n ? buildHeadersFromArray(opts.headers)\n : opts.headers\n const body = typeof _data === 'function'\n ? _data({ ...opts, headers: optsHeaders })\n : _data\n\n // util.types.isPromise is likely needed for jest.\n if (isPromise(body)) {\n // If handleReply is asynchronous, throwing an error\n // in the callback will reject the promise, rather than\n // synchronously throw the error, which breaks some tests.\n // Rather, we wait for the callback to resolve if it is a\n // promise, and then re-run handleReply with the new body.\n body.then((newData) => handleReply(mockDispatches, newData))\n return\n }\n\n const responseData = getResponseData(body)\n const responseHeaders = generateKeyValues(headers)\n const responseTrailers = generateKeyValues(trailers)\n\n handler.onConnect?.(err => handler.onError(err), null)\n handler.onHeaders?.(statusCode, responseHeaders, resume, getStatusText(statusCode))\n handler.onData?.(Buffer.from(responseData))\n handler.onComplete?.(responseTrailers)\n deleteMockDispatch(mockDispatches, key)\n }\n\n function resume () {}\n\n return true\n}\n\nfunction buildMockDispatch () {\n const agent = this[kMockAgent]\n const origin = this[kOrigin]\n const originalDispatch = this[kOriginalDispatch]\n\n return function dispatch (opts, handler) {\n if (agent.isMockActive) {\n try {\n mockDispatch.call(this, opts, handler)\n } catch (error) {\n if (error instanceof MockNotMatchedError) {\n const netConnect = agent[kGetNetConnect]()\n if (netConnect === false) {\n throw new MockNotMatchedError(`${error.message}: subsequent request to origin ${origin} was not allowed (net.connect disabled)`)\n }\n if (checkNetConnect(netConnect, origin)) {\n originalDispatch.call(this, opts, handler)\n } else {\n throw new MockNotMatchedError(`${error.message}: subsequent request to origin ${origin} was not allowed (net.connect is not enabled for this origin)`)\n }\n } else {\n throw error\n }\n }\n } else {\n originalDispatch.call(this, opts, handler)\n }\n }\n}\n\nfunction checkNetConnect (netConnect, origin) {\n const url = new URL(origin)\n if (netConnect === true) {\n return true\n } else if (Array.isArray(netConnect) && netConnect.some((matcher) => matchValue(matcher, url.host))) {\n return true\n }\n return false\n}\n\nfunction buildMockOptions (opts) {\n if (opts) {\n const { agent, ...mockOptions } = opts\n return mockOptions\n }\n}\n\nmodule.exports = {\n getResponseData,\n getMockDispatch,\n addMockDispatch,\n deleteMockDispatch,\n buildKey,\n generateKeyValues,\n matchValue,\n getResponse,\n getStatusText,\n mockDispatch,\n buildMockDispatch,\n checkNetConnect,\n buildMockOptions,\n getHeaderByName,\n buildHeadersFromArray\n}\n", "'use strict'\n\nconst { getResponseData, buildKey, addMockDispatch } = require('./mock-utils')\nconst {\n kDispatches,\n kDispatchKey,\n kDefaultHeaders,\n kDefaultTrailers,\n kContentLength,\n kMockDispatch\n} = require('./mock-symbols')\nconst { InvalidArgumentError } = require('../core/errors')\nconst { buildURL } = require('../core/util')\n\n/**\n * Defines the scope API for an interceptor reply\n */\nclass MockScope {\n constructor (mockDispatch) {\n this[kMockDispatch] = mockDispatch\n }\n\n /**\n * Delay a reply by a set amount in ms.\n */\n delay (waitInMs) {\n if (typeof waitInMs !== 'number' || !Number.isInteger(waitInMs) || waitInMs <= 0) {\n throw new InvalidArgumentError('waitInMs must be a valid integer > 0')\n }\n\n this[kMockDispatch].delay = waitInMs\n return this\n }\n\n /**\n * For a defined reply, never mark as consumed.\n */\n persist () {\n this[kMockDispatch].persist = true\n return this\n }\n\n /**\n * Allow one to define a reply for a set amount of matching requests.\n */\n times (repeatTimes) {\n if (typeof repeatTimes !== 'number' || !Number.isInteger(repeatTimes) || repeatTimes <= 0) {\n throw new InvalidArgumentError('repeatTimes must be a valid integer > 0')\n }\n\n this[kMockDispatch].times = repeatTimes\n return this\n }\n}\n\n/**\n * Defines an interceptor for a Mock\n */\nclass MockInterceptor {\n constructor (opts, mockDispatches) {\n if (typeof opts !== 'object') {\n throw new InvalidArgumentError('opts must be an object')\n }\n if (typeof opts.path === 'undefined') {\n throw new InvalidArgumentError('opts.path must be defined')\n }\n if (typeof opts.method === 'undefined') {\n opts.method = 'GET'\n }\n // See https://github.com/nodejs/undici/issues/1245\n // As per RFC 3986, clients are not supposed to send URI\n // fragments to servers when they retrieve a document,\n if (typeof opts.path === 'string') {\n if (opts.query) {\n opts.path = buildURL(opts.path, opts.query)\n } else {\n // Matches https://github.com/nodejs/undici/blob/main/lib/web/fetch/index.js#L1811\n const parsedURL = new URL(opts.path, 'data://')\n opts.path = parsedURL.pathname + parsedURL.search\n }\n }\n if (typeof opts.method === 'string') {\n opts.method = opts.method.toUpperCase()\n }\n\n this[kDispatchKey] = buildKey(opts)\n this[kDispatches] = mockDispatches\n this[kDefaultHeaders] = {}\n this[kDefaultTrailers] = {}\n this[kContentLength] = false\n }\n\n createMockScopeDispatchData ({ statusCode, data, responseOptions }) {\n const responseData = getResponseData(data)\n const contentLength = this[kContentLength] ? { 'content-length': responseData.length } : {}\n const headers = { ...this[kDefaultHeaders], ...contentLength, ...responseOptions.headers }\n const trailers = { ...this[kDefaultTrailers], ...responseOptions.trailers }\n\n return { statusCode, data, headers, trailers }\n }\n\n validateReplyParameters (replyParameters) {\n if (typeof replyParameters.statusCode === 'undefined') {\n throw new InvalidArgumentError('statusCode must be defined')\n }\n if (typeof replyParameters.responseOptions !== 'object' || replyParameters.responseOptions === null) {\n throw new InvalidArgumentError('responseOptions must be an object')\n }\n }\n\n /**\n * Mock an undici request with a defined reply.\n */\n reply (replyOptionsCallbackOrStatusCode) {\n // Values of reply aren't available right now as they\n // can only be available when the reply callback is invoked.\n if (typeof replyOptionsCallbackOrStatusCode === 'function') {\n // We'll first wrap the provided callback in another function,\n // this function will properly resolve the data from the callback\n // when invoked.\n const wrappedDefaultsCallback = (opts) => {\n // Our reply options callback contains the parameter for statusCode, data and options.\n const resolvedData = replyOptionsCallbackOrStatusCode(opts)\n\n // Check if it is in the right format\n if (typeof resolvedData !== 'object' || resolvedData === null) {\n throw new InvalidArgumentError('reply options callback must return an object')\n }\n\n const replyParameters = { data: '', responseOptions: {}, ...resolvedData }\n this.validateReplyParameters(replyParameters)\n // Since the values can be obtained immediately we return them\n // from this higher order function that will be resolved later.\n return {\n ...this.createMockScopeDispatchData(replyParameters)\n }\n }\n\n // Add usual dispatch data, but this time set the data parameter to function that will eventually provide data.\n const newMockDispatch = addMockDispatch(this[kDispatches], this[kDispatchKey], wrappedDefaultsCallback)\n return new MockScope(newMockDispatch)\n }\n\n // We can have either one or three parameters, if we get here,\n // we should have 1-3 parameters. So we spread the arguments of\n // this function to obtain the parameters, since replyData will always\n // just be the statusCode.\n const replyParameters = {\n statusCode: replyOptionsCallbackOrStatusCode,\n data: arguments[1] === undefined ? '' : arguments[1],\n responseOptions: arguments[2] === undefined ? {} : arguments[2]\n }\n this.validateReplyParameters(replyParameters)\n\n // Send in-already provided data like usual\n const dispatchData = this.createMockScopeDispatchData(replyParameters)\n const newMockDispatch = addMockDispatch(this[kDispatches], this[kDispatchKey], dispatchData)\n return new MockScope(newMockDispatch)\n }\n\n /**\n * Mock an undici request with a defined error.\n */\n replyWithError (error) {\n if (typeof error === 'undefined') {\n throw new InvalidArgumentError('error must be defined')\n }\n\n const newMockDispatch = addMockDispatch(this[kDispatches], this[kDispatchKey], { error })\n return new MockScope(newMockDispatch)\n }\n\n /**\n * Set default reply headers on the interceptor for subsequent replies\n */\n defaultReplyHeaders (headers) {\n if (typeof headers === 'undefined') {\n throw new InvalidArgumentError('headers must be defined')\n }\n\n this[kDefaultHeaders] = headers\n return this\n }\n\n /**\n * Set default reply trailers on the interceptor for subsequent replies\n */\n defaultReplyTrailers (trailers) {\n if (typeof trailers === 'undefined') {\n throw new InvalidArgumentError('trailers must be defined')\n }\n\n this[kDefaultTrailers] = trailers\n return this\n }\n\n /**\n * Set reply content length header for replies on the interceptor\n */\n replyContentLength () {\n this[kContentLength] = true\n return this\n }\n}\n\nmodule.exports.MockInterceptor = MockInterceptor\nmodule.exports.MockScope = MockScope\n", "'use strict'\n\nconst { promisify } = require('node:util')\nconst Client = require('../dispatcher/client')\nconst { buildMockDispatch } = require('./mock-utils')\nconst {\n kDispatches,\n kMockAgent,\n kClose,\n kOriginalClose,\n kOrigin,\n kOriginalDispatch,\n kConnected\n} = require('./mock-symbols')\nconst { MockInterceptor } = require('./mock-interceptor')\nconst Symbols = require('../core/symbols')\nconst { InvalidArgumentError } = require('../core/errors')\n\n/**\n * MockClient provides an API that extends the Client to influence the mockDispatches.\n */\nclass MockClient extends Client {\n constructor (origin, opts) {\n super(origin, opts)\n\n if (!opts || !opts.agent || typeof opts.agent.dispatch !== 'function') {\n throw new InvalidArgumentError('Argument opts.agent must implement Agent')\n }\n\n this[kMockAgent] = opts.agent\n this[kOrigin] = origin\n this[kDispatches] = []\n this[kConnected] = 1\n this[kOriginalDispatch] = this.dispatch\n this[kOriginalClose] = this.close.bind(this)\n\n this.dispatch = buildMockDispatch.call(this)\n this.close = this[kClose]\n }\n\n get [Symbols.kConnected] () {\n return this[kConnected]\n }\n\n /**\n * Sets up the base interceptor for mocking replies from undici.\n */\n intercept (opts) {\n return new MockInterceptor(opts, this[kDispatches])\n }\n\n async [kClose] () {\n await promisify(this[kOriginalClose])()\n this[kConnected] = 0\n this[kMockAgent][Symbols.kClients].delete(this[kOrigin])\n }\n}\n\nmodule.exports = MockClient\n", "'use strict'\n\nconst { promisify } = require('node:util')\nconst Pool = require('../dispatcher/pool')\nconst { buildMockDispatch } = require('./mock-utils')\nconst {\n kDispatches,\n kMockAgent,\n kClose,\n kOriginalClose,\n kOrigin,\n kOriginalDispatch,\n kConnected\n} = require('./mock-symbols')\nconst { MockInterceptor } = require('./mock-interceptor')\nconst Symbols = require('../core/symbols')\nconst { InvalidArgumentError } = require('../core/errors')\n\n/**\n * MockPool provides an API that extends the Pool to influence the mockDispatches.\n */\nclass MockPool extends Pool {\n constructor (origin, opts) {\n super(origin, opts)\n\n if (!opts || !opts.agent || typeof opts.agent.dispatch !== 'function') {\n throw new InvalidArgumentError('Argument opts.agent must implement Agent')\n }\n\n this[kMockAgent] = opts.agent\n this[kOrigin] = origin\n this[kDispatches] = []\n this[kConnected] = 1\n this[kOriginalDispatch] = this.dispatch\n this[kOriginalClose] = this.close.bind(this)\n\n this.dispatch = buildMockDispatch.call(this)\n this.close = this[kClose]\n }\n\n get [Symbols.kConnected] () {\n return this[kConnected]\n }\n\n /**\n * Sets up the base interceptor for mocking replies from undici.\n */\n intercept (opts) {\n return new MockInterceptor(opts, this[kDispatches])\n }\n\n async [kClose] () {\n await promisify(this[kOriginalClose])()\n this[kConnected] = 0\n this[kMockAgent][Symbols.kClients].delete(this[kOrigin])\n }\n}\n\nmodule.exports = MockPool\n", "'use strict'\n\nconst singulars = {\n pronoun: 'it',\n is: 'is',\n was: 'was',\n this: 'this'\n}\n\nconst plurals = {\n pronoun: 'they',\n is: 'are',\n was: 'were',\n this: 'these'\n}\n\nmodule.exports = class Pluralizer {\n constructor (singular, plural) {\n this.singular = singular\n this.plural = plural\n }\n\n pluralize (count) {\n const one = count === 1\n const keys = one ? singulars : plurals\n const noun = one ? this.singular : this.plural\n return { ...keys, count, noun }\n }\n}\n", "'use strict'\n\nconst { Transform } = require('node:stream')\nconst { Console } = require('node:console')\n\nconst PERSISTENT = process.versions.icu ? '\u2705' : 'Y '\nconst NOT_PERSISTENT = process.versions.icu ? '\u274C' : 'N '\n\n/**\n * Gets the output of `console.table(\u2026)` as a string.\n */\nmodule.exports = class PendingInterceptorsFormatter {\n constructor ({ disableColors } = {}) {\n this.transform = new Transform({\n transform (chunk, _enc, cb) {\n cb(null, chunk)\n }\n })\n\n this.logger = new Console({\n stdout: this.transform,\n inspectOptions: {\n colors: !disableColors && !process.env.CI\n }\n })\n }\n\n format (pendingInterceptors) {\n const withPrettyHeaders = pendingInterceptors.map(\n ({ method, path, data: { statusCode }, persist, times, timesInvoked, origin }) => ({\n Method: method,\n Origin: origin,\n Path: path,\n 'Status code': statusCode,\n Persistent: persist ? PERSISTENT : NOT_PERSISTENT,\n Invocations: timesInvoked,\n Remaining: persist ? Infinity : times - timesInvoked\n }))\n\n this.logger.table(withPrettyHeaders)\n return this.transform.read().toString()\n }\n}\n", "'use strict'\n\nconst { kClients } = require('../core/symbols')\nconst Agent = require('../dispatcher/agent')\nconst {\n kAgent,\n kMockAgentSet,\n kMockAgentGet,\n kDispatches,\n kIsMockActive,\n kNetConnect,\n kGetNetConnect,\n kOptions,\n kFactory\n} = require('./mock-symbols')\nconst MockClient = require('./mock-client')\nconst MockPool = require('./mock-pool')\nconst { matchValue, buildMockOptions } = require('./mock-utils')\nconst { InvalidArgumentError, UndiciError } = require('../core/errors')\nconst Dispatcher = require('../dispatcher/dispatcher')\nconst Pluralizer = require('./pluralizer')\nconst PendingInterceptorsFormatter = require('./pending-interceptors-formatter')\n\nclass MockAgent extends Dispatcher {\n constructor (opts) {\n super(opts)\n\n this[kNetConnect] = true\n this[kIsMockActive] = true\n\n // Instantiate Agent and encapsulate\n if ((opts?.agent && typeof opts.agent.dispatch !== 'function')) {\n throw new InvalidArgumentError('Argument opts.agent must implement Agent')\n }\n const agent = opts?.agent ? opts.agent : new Agent(opts)\n this[kAgent] = agent\n\n this[kClients] = agent[kClients]\n this[kOptions] = buildMockOptions(opts)\n }\n\n get (origin) {\n let dispatcher = this[kMockAgentGet](origin)\n\n if (!dispatcher) {\n dispatcher = this[kFactory](origin)\n this[kMockAgentSet](origin, dispatcher)\n }\n return dispatcher\n }\n\n dispatch (opts, handler) {\n // Call MockAgent.get to perform additional setup before dispatching as normal\n this.get(opts.origin)\n return this[kAgent].dispatch(opts, handler)\n }\n\n async close () {\n await this[kAgent].close()\n this[kClients].clear()\n }\n\n deactivate () {\n this[kIsMockActive] = false\n }\n\n activate () {\n this[kIsMockActive] = true\n }\n\n enableNetConnect (matcher) {\n if (typeof matcher === 'string' || typeof matcher === 'function' || matcher instanceof RegExp) {\n if (Array.isArray(this[kNetConnect])) {\n this[kNetConnect].push(matcher)\n } else {\n this[kNetConnect] = [matcher]\n }\n } else if (typeof matcher === 'undefined') {\n this[kNetConnect] = true\n } else {\n throw new InvalidArgumentError('Unsupported matcher. Must be one of String|Function|RegExp.')\n }\n }\n\n disableNetConnect () {\n this[kNetConnect] = false\n }\n\n // This is required to bypass issues caused by using global symbols - see:\n // https://github.com/nodejs/undici/issues/1447\n get isMockActive () {\n return this[kIsMockActive]\n }\n\n [kMockAgentSet] (origin, dispatcher) {\n this[kClients].set(origin, dispatcher)\n }\n\n [kFactory] (origin) {\n const mockOptions = Object.assign({ agent: this }, this[kOptions])\n return this[kOptions] && this[kOptions].connections === 1\n ? new MockClient(origin, mockOptions)\n : new MockPool(origin, mockOptions)\n }\n\n [kMockAgentGet] (origin) {\n // First check if we can immediately find it\n const client = this[kClients].get(origin)\n if (client) {\n return client\n }\n\n // If the origin is not a string create a dummy parent pool and return to user\n if (typeof origin !== 'string') {\n const dispatcher = this[kFactory]('http://localhost:9999')\n this[kMockAgentSet](origin, dispatcher)\n return dispatcher\n }\n\n // If we match, create a pool and assign the same dispatches\n for (const [keyMatcher, nonExplicitDispatcher] of Array.from(this[kClients])) {\n if (nonExplicitDispatcher && typeof keyMatcher !== 'string' && matchValue(keyMatcher, origin)) {\n const dispatcher = this[kFactory](origin)\n this[kMockAgentSet](origin, dispatcher)\n dispatcher[kDispatches] = nonExplicitDispatcher[kDispatches]\n return dispatcher\n }\n }\n }\n\n [kGetNetConnect] () {\n return this[kNetConnect]\n }\n\n pendingInterceptors () {\n const mockAgentClients = this[kClients]\n\n return Array.from(mockAgentClients.entries())\n .flatMap(([origin, scope]) => scope[kDispatches].map(dispatch => ({ ...dispatch, origin })))\n .filter(({ pending }) => pending)\n }\n\n assertNoPendingInterceptors ({ pendingInterceptorsFormatter = new PendingInterceptorsFormatter() } = {}) {\n const pending = this.pendingInterceptors()\n\n if (pending.length === 0) {\n return\n }\n\n const pluralizer = new Pluralizer('interceptor', 'interceptors').pluralize(pending.length)\n\n throw new UndiciError(`\n${pluralizer.count} ${pluralizer.noun} ${pluralizer.is} pending:\n\n${pendingInterceptorsFormatter.format(pending)}\n`.trim())\n }\n}\n\nmodule.exports = MockAgent\n", "'use strict'\n\n// We include a version number for the Dispatcher API. In case of breaking changes,\n// this version number must be increased to avoid conflicts.\nconst globalDispatcher = Symbol.for('undici.globalDispatcher.1')\nconst { InvalidArgumentError } = require('./core/errors')\nconst Agent = require('./dispatcher/agent')\n\nif (getGlobalDispatcher() === undefined) {\n setGlobalDispatcher(new Agent())\n}\n\nfunction setGlobalDispatcher (agent) {\n if (!agent || typeof agent.dispatch !== 'function') {\n throw new InvalidArgumentError('Argument agent must implement Agent')\n }\n Object.defineProperty(globalThis, globalDispatcher, {\n value: agent,\n writable: true,\n enumerable: false,\n configurable: false\n })\n}\n\nfunction getGlobalDispatcher () {\n return globalThis[globalDispatcher]\n}\n\nmodule.exports = {\n setGlobalDispatcher,\n getGlobalDispatcher\n}\n", "'use strict'\n\nmodule.exports = class DecoratorHandler {\n #handler\n\n constructor (handler) {\n if (typeof handler !== 'object' || handler === null) {\n throw new TypeError('handler must be an object')\n }\n this.#handler = handler\n }\n\n onConnect (...args) {\n return this.#handler.onConnect?.(...args)\n }\n\n onError (...args) {\n return this.#handler.onError?.(...args)\n }\n\n onUpgrade (...args) {\n return this.#handler.onUpgrade?.(...args)\n }\n\n onResponseStarted (...args) {\n return this.#handler.onResponseStarted?.(...args)\n }\n\n onHeaders (...args) {\n return this.#handler.onHeaders?.(...args)\n }\n\n onData (...args) {\n return this.#handler.onData?.(...args)\n }\n\n onComplete (...args) {\n return this.#handler.onComplete?.(...args)\n }\n\n onBodySent (...args) {\n return this.#handler.onBodySent?.(...args)\n }\n}\n", "'use strict'\nconst RedirectHandler = require('../handler/redirect-handler')\n\nmodule.exports = opts => {\n const globalMaxRedirections = opts?.maxRedirections\n return dispatch => {\n return function redirectInterceptor (opts, handler) {\n const { maxRedirections = globalMaxRedirections, ...baseOpts } = opts\n\n if (!maxRedirections) {\n return dispatch(opts, handler)\n }\n\n const redirectHandler = new RedirectHandler(\n dispatch,\n maxRedirections,\n opts,\n handler\n )\n\n return dispatch(baseOpts, redirectHandler)\n }\n }\n}\n", "'use strict'\nconst RetryHandler = require('../handler/retry-handler')\n\nmodule.exports = globalOpts => {\n return dispatch => {\n return function retryInterceptor (opts, handler) {\n return dispatch(\n opts,\n new RetryHandler(\n { ...opts, retryOptions: { ...globalOpts, ...opts.retryOptions } },\n {\n handler,\n dispatch\n }\n )\n )\n }\n }\n}\n", "'use strict'\n\nconst util = require('../core/util')\nconst { InvalidArgumentError, RequestAbortedError } = require('../core/errors')\nconst DecoratorHandler = require('../handler/decorator-handler')\n\nclass DumpHandler extends DecoratorHandler {\n #maxSize = 1024 * 1024\n #abort = null\n #dumped = false\n #aborted = false\n #size = 0\n #reason = null\n #handler = null\n\n constructor ({ maxSize }, handler) {\n super(handler)\n\n if (maxSize != null && (!Number.isFinite(maxSize) || maxSize < 1)) {\n throw new InvalidArgumentError('maxSize must be a number greater than 0')\n }\n\n this.#maxSize = maxSize ?? this.#maxSize\n this.#handler = handler\n }\n\n onConnect (abort) {\n this.#abort = abort\n\n this.#handler.onConnect(this.#customAbort.bind(this))\n }\n\n #customAbort (reason) {\n this.#aborted = true\n this.#reason = reason\n }\n\n // TODO: will require adjustment after new hooks are out\n onHeaders (statusCode, rawHeaders, resume, statusMessage) {\n const headers = util.parseHeaders(rawHeaders)\n const contentLength = headers['content-length']\n\n if (contentLength != null && contentLength > this.#maxSize) {\n throw new RequestAbortedError(\n `Response size (${contentLength}) larger than maxSize (${\n this.#maxSize\n })`\n )\n }\n\n if (this.#aborted) {\n return true\n }\n\n return this.#handler.onHeaders(\n statusCode,\n rawHeaders,\n resume,\n statusMessage\n )\n }\n\n onError (err) {\n if (this.#dumped) {\n return\n }\n\n err = this.#reason ?? err\n\n this.#handler.onError(err)\n }\n\n onData (chunk) {\n this.#size = this.#size + chunk.length\n\n if (this.#size >= this.#maxSize) {\n this.#dumped = true\n\n if (this.#aborted) {\n this.#handler.onError(this.#reason)\n } else {\n this.#handler.onComplete([])\n }\n }\n\n return true\n }\n\n onComplete (trailers) {\n if (this.#dumped) {\n return\n }\n\n if (this.#aborted) {\n this.#handler.onError(this.reason)\n return\n }\n\n this.#handler.onComplete(trailers)\n }\n}\n\nfunction createDumpInterceptor (\n { maxSize: defaultMaxSize } = {\n maxSize: 1024 * 1024\n }\n) {\n return dispatch => {\n return function Intercept (opts, handler) {\n const { dumpMaxSize = defaultMaxSize } =\n opts\n\n const dumpHandler = new DumpHandler(\n { maxSize: dumpMaxSize },\n handler\n )\n\n return dispatch(opts, dumpHandler)\n }\n }\n}\n\nmodule.exports = createDumpInterceptor\n", "'use strict'\nconst { isIP } = require('node:net')\nconst { lookup } = require('node:dns')\nconst DecoratorHandler = require('../handler/decorator-handler')\nconst { InvalidArgumentError, InformationalError } = require('../core/errors')\nconst maxInt = Math.pow(2, 31) - 1\n\nclass DNSInstance {\n #maxTTL = 0\n #maxItems = 0\n #records = new Map()\n dualStack = true\n affinity = null\n lookup = null\n pick = null\n\n constructor (opts) {\n this.#maxTTL = opts.maxTTL\n this.#maxItems = opts.maxItems\n this.dualStack = opts.dualStack\n this.affinity = opts.affinity\n this.lookup = opts.lookup ?? this.#defaultLookup\n this.pick = opts.pick ?? this.#defaultPick\n }\n\n get full () {\n return this.#records.size === this.#maxItems\n }\n\n runLookup (origin, opts, cb) {\n const ips = this.#records.get(origin.hostname)\n\n // If full, we just return the origin\n if (ips == null && this.full) {\n cb(null, origin.origin)\n return\n }\n\n const newOpts = {\n affinity: this.affinity,\n dualStack: this.dualStack,\n lookup: this.lookup,\n pick: this.pick,\n ...opts.dns,\n maxTTL: this.#maxTTL,\n maxItems: this.#maxItems\n }\n\n // If no IPs we lookup\n if (ips == null) {\n this.lookup(origin, newOpts, (err, addresses) => {\n if (err || addresses == null || addresses.length === 0) {\n cb(err ?? new InformationalError('No DNS entries found'))\n return\n }\n\n this.setRecords(origin, addresses)\n const records = this.#records.get(origin.hostname)\n\n const ip = this.pick(\n origin,\n records,\n newOpts.affinity\n )\n\n let port\n if (typeof ip.port === 'number') {\n port = `:${ip.port}`\n } else if (origin.port !== '') {\n port = `:${origin.port}`\n } else {\n port = ''\n }\n\n cb(\n null,\n `${origin.protocol}//${\n ip.family === 6 ? `[${ip.address}]` : ip.address\n }${port}`\n )\n })\n } else {\n // If there's IPs we pick\n const ip = this.pick(\n origin,\n ips,\n newOpts.affinity\n )\n\n // If no IPs we lookup - deleting old records\n if (ip == null) {\n this.#records.delete(origin.hostname)\n this.runLookup(origin, opts, cb)\n return\n }\n\n let port\n if (typeof ip.port === 'number') {\n port = `:${ip.port}`\n } else if (origin.port !== '') {\n port = `:${origin.port}`\n } else {\n port = ''\n }\n\n cb(\n null,\n `${origin.protocol}//${\n ip.family === 6 ? `[${ip.address}]` : ip.address\n }${port}`\n )\n }\n }\n\n #defaultLookup (origin, opts, cb) {\n lookup(\n origin.hostname,\n {\n all: true,\n family: this.dualStack === false ? this.affinity : 0,\n order: 'ipv4first'\n },\n (err, addresses) => {\n if (err) {\n return cb(err)\n }\n\n const results = new Map()\n\n for (const addr of addresses) {\n // On linux we found duplicates, we attempt to remove them with\n // the latest record\n results.set(`${addr.address}:${addr.family}`, addr)\n }\n\n cb(null, results.values())\n }\n )\n }\n\n #defaultPick (origin, hostnameRecords, affinity) {\n let ip = null\n const { records, offset } = hostnameRecords\n\n let family\n if (this.dualStack) {\n if (affinity == null) {\n // Balance between ip families\n if (offset == null || offset === maxInt) {\n hostnameRecords.offset = 0\n affinity = 4\n } else {\n hostnameRecords.offset++\n affinity = (hostnameRecords.offset & 1) === 1 ? 6 : 4\n }\n }\n\n if (records[affinity] != null && records[affinity].ips.length > 0) {\n family = records[affinity]\n } else {\n family = records[affinity === 4 ? 6 : 4]\n }\n } else {\n family = records[affinity]\n }\n\n // If no IPs we return null\n if (family == null || family.ips.length === 0) {\n return ip\n }\n\n if (family.offset == null || family.offset === maxInt) {\n family.offset = 0\n } else {\n family.offset++\n }\n\n const position = family.offset % family.ips.length\n ip = family.ips[position] ?? null\n\n if (ip == null) {\n return ip\n }\n\n if (Date.now() - ip.timestamp > ip.ttl) { // record TTL is already in ms\n // We delete expired records\n // It is possible that they have different TTL, so we manage them individually\n family.ips.splice(position, 1)\n return this.pick(origin, hostnameRecords, affinity)\n }\n\n return ip\n }\n\n setRecords (origin, addresses) {\n const timestamp = Date.now()\n const records = { records: { 4: null, 6: null } }\n for (const record of addresses) {\n record.timestamp = timestamp\n if (typeof record.ttl === 'number') {\n // The record TTL is expected to be in ms\n record.ttl = Math.min(record.ttl, this.#maxTTL)\n } else {\n record.ttl = this.#maxTTL\n }\n\n const familyRecords = records.records[record.family] ?? { ips: [] }\n\n familyRecords.ips.push(record)\n records.records[record.family] = familyRecords\n }\n\n this.#records.set(origin.hostname, records)\n }\n\n getHandler (meta, opts) {\n return new DNSDispatchHandler(this, meta, opts)\n }\n}\n\nclass DNSDispatchHandler extends DecoratorHandler {\n #state = null\n #opts = null\n #dispatch = null\n #handler = null\n #origin = null\n\n constructor (state, { origin, handler, dispatch }, opts) {\n super(handler)\n this.#origin = origin\n this.#handler = handler\n this.#opts = { ...opts }\n this.#state = state\n this.#dispatch = dispatch\n }\n\n onError (err) {\n switch (err.code) {\n case 'ETIMEDOUT':\n case 'ECONNREFUSED': {\n if (this.#state.dualStack) {\n // We delete the record and retry\n this.#state.runLookup(this.#origin, this.#opts, (err, newOrigin) => {\n if (err) {\n return this.#handler.onError(err)\n }\n\n const dispatchOpts = {\n ...this.#opts,\n origin: newOrigin\n }\n\n this.#dispatch(dispatchOpts, this)\n })\n\n // if dual-stack disabled, we error out\n return\n }\n\n this.#handler.onError(err)\n return\n }\n case 'ENOTFOUND':\n this.#state.deleteRecord(this.#origin)\n // eslint-disable-next-line no-fallthrough\n default:\n this.#handler.onError(err)\n break\n }\n }\n}\n\nmodule.exports = interceptorOpts => {\n if (\n interceptorOpts?.maxTTL != null &&\n (typeof interceptorOpts?.maxTTL !== 'number' || interceptorOpts?.maxTTL < 0)\n ) {\n throw new InvalidArgumentError('Invalid maxTTL. Must be a positive number')\n }\n\n if (\n interceptorOpts?.maxItems != null &&\n (typeof interceptorOpts?.maxItems !== 'number' ||\n interceptorOpts?.maxItems < 1)\n ) {\n throw new InvalidArgumentError(\n 'Invalid maxItems. Must be a positive number and greater than zero'\n )\n }\n\n if (\n interceptorOpts?.affinity != null &&\n interceptorOpts?.affinity !== 4 &&\n interceptorOpts?.affinity !== 6\n ) {\n throw new InvalidArgumentError('Invalid affinity. Must be either 4 or 6')\n }\n\n if (\n interceptorOpts?.dualStack != null &&\n typeof interceptorOpts?.dualStack !== 'boolean'\n ) {\n throw new InvalidArgumentError('Invalid dualStack. Must be a boolean')\n }\n\n if (\n interceptorOpts?.lookup != null &&\n typeof interceptorOpts?.lookup !== 'function'\n ) {\n throw new InvalidArgumentError('Invalid lookup. Must be a function')\n }\n\n if (\n interceptorOpts?.pick != null &&\n typeof interceptorOpts?.pick !== 'function'\n ) {\n throw new InvalidArgumentError('Invalid pick. Must be a function')\n }\n\n const dualStack = interceptorOpts?.dualStack ?? true\n let affinity\n if (dualStack) {\n affinity = interceptorOpts?.affinity ?? null\n } else {\n affinity = interceptorOpts?.affinity ?? 4\n }\n\n const opts = {\n maxTTL: interceptorOpts?.maxTTL ?? 10e3, // Expressed in ms\n lookup: interceptorOpts?.lookup ?? null,\n pick: interceptorOpts?.pick ?? null,\n dualStack,\n affinity,\n maxItems: interceptorOpts?.maxItems ?? Infinity\n }\n\n const instance = new DNSInstance(opts)\n\n return dispatch => {\n return function dnsInterceptor (origDispatchOpts, handler) {\n const origin =\n origDispatchOpts.origin.constructor === URL\n ? origDispatchOpts.origin\n : new URL(origDispatchOpts.origin)\n\n if (isIP(origin.hostname) !== 0) {\n return dispatch(origDispatchOpts, handler)\n }\n\n instance.runLookup(origin, origDispatchOpts, (err, newOrigin) => {\n if (err) {\n return handler.onError(err)\n }\n\n let dispatchOpts = null\n dispatchOpts = {\n ...origDispatchOpts,\n servername: origin.hostname, // For SNI on TLS\n origin: newOrigin,\n headers: {\n host: origin.hostname,\n ...origDispatchOpts.headers\n }\n }\n\n dispatch(\n dispatchOpts,\n instance.getHandler({ origin, dispatch, handler }, origDispatchOpts)\n )\n })\n\n return true\n }\n }\n}\n", "// https://github.com/Ethan-Arrowood/undici-fetch\n\n'use strict'\n\nconst { kConstruct } = require('../../core/symbols')\nconst { kEnumerableProperty } = require('../../core/util')\nconst {\n iteratorMixin,\n isValidHeaderName,\n isValidHeaderValue\n} = require('./util')\nconst { webidl } = require('./webidl')\nconst assert = require('node:assert')\nconst util = require('node:util')\n\nconst kHeadersMap = Symbol('headers map')\nconst kHeadersSortedMap = Symbol('headers map sorted')\n\n/**\n * @param {number} code\n */\nfunction isHTTPWhiteSpaceCharCode (code) {\n return code === 0x00a || code === 0x00d || code === 0x009 || code === 0x020\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#concept-header-value-normalize\n * @param {string} potentialValue\n */\nfunction headerValueNormalize (potentialValue) {\n // To normalize a byte sequence potentialValue, remove\n // any leading and trailing HTTP whitespace bytes from\n // potentialValue.\n let i = 0; let j = potentialValue.length\n\n while (j > i && isHTTPWhiteSpaceCharCode(potentialValue.charCodeAt(j - 1))) --j\n while (j > i && isHTTPWhiteSpaceCharCode(potentialValue.charCodeAt(i))) ++i\n\n return i === 0 && j === potentialValue.length ? potentialValue : potentialValue.substring(i, j)\n}\n\nfunction fill (headers, object) {\n // To fill a Headers object headers with a given object object, run these steps:\n\n // 1. If object is a sequence, then for each header in object:\n // Note: webidl conversion to array has already been done.\n if (Array.isArray(object)) {\n for (let i = 0; i < object.length; ++i) {\n const header = object[i]\n // 1. If header does not contain exactly two items, then throw a TypeError.\n if (header.length !== 2) {\n throw webidl.errors.exception({\n header: 'Headers constructor',\n message: `expected name/value pair to be length 2, found ${header.length}.`\n })\n }\n\n // 2. Append (header\u2019s first item, header\u2019s second item) to headers.\n appendHeader(headers, header[0], header[1])\n }\n } else if (typeof object === 'object' && object !== null) {\n // Note: null should throw\n\n // 2. Otherwise, object is a record, then for each key \u2192 value in object,\n // append (key, value) to headers\n const keys = Object.keys(object)\n for (let i = 0; i < keys.length; ++i) {\n appendHeader(headers, keys[i], object[keys[i]])\n }\n } else {\n throw webidl.errors.conversionFailed({\n prefix: 'Headers constructor',\n argument: 'Argument 1',\n types: ['sequence>', 'record']\n })\n }\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#concept-headers-append\n */\nfunction appendHeader (headers, name, value) {\n // 1. Normalize value.\n value = headerValueNormalize(value)\n\n // 2. If name is not a header name or value is not a\n // header value, then throw a TypeError.\n if (!isValidHeaderName(name)) {\n throw webidl.errors.invalidArgument({\n prefix: 'Headers.append',\n value: name,\n type: 'header name'\n })\n } else if (!isValidHeaderValue(value)) {\n throw webidl.errors.invalidArgument({\n prefix: 'Headers.append',\n value,\n type: 'header value'\n })\n }\n\n // 3. If headers\u2019s guard is \"immutable\", then throw a TypeError.\n // 4. Otherwise, if headers\u2019s guard is \"request\" and name is a\n // forbidden header name, return.\n // 5. Otherwise, if headers\u2019s guard is \"request-no-cors\":\n // TODO\n // Note: undici does not implement forbidden header names\n if (getHeadersGuard(headers) === 'immutable') {\n throw new TypeError('immutable')\n }\n\n // 6. Otherwise, if headers\u2019s guard is \"response\" and name is a\n // forbidden response-header name, return.\n\n // 7. Append (name, value) to headers\u2019s header list.\n return getHeadersList(headers).append(name, value, false)\n\n // 8. If headers\u2019s guard is \"request-no-cors\", then remove\n // privileged no-CORS request headers from headers\n}\n\nfunction compareHeaderName (a, b) {\n return a[0] < b[0] ? -1 : 1\n}\n\nclass HeadersList {\n /** @type {[string, string][]|null} */\n cookies = null\n\n constructor (init) {\n if (init instanceof HeadersList) {\n this[kHeadersMap] = new Map(init[kHeadersMap])\n this[kHeadersSortedMap] = init[kHeadersSortedMap]\n this.cookies = init.cookies === null ? null : [...init.cookies]\n } else {\n this[kHeadersMap] = new Map(init)\n this[kHeadersSortedMap] = null\n }\n }\n\n /**\n * @see https://fetch.spec.whatwg.org/#header-list-contains\n * @param {string} name\n * @param {boolean} isLowerCase\n */\n contains (name, isLowerCase) {\n // A header list list contains a header name name if list\n // contains a header whose name is a byte-case-insensitive\n // match for name.\n\n return this[kHeadersMap].has(isLowerCase ? name : name.toLowerCase())\n }\n\n clear () {\n this[kHeadersMap].clear()\n this[kHeadersSortedMap] = null\n this.cookies = null\n }\n\n /**\n * @see https://fetch.spec.whatwg.org/#concept-header-list-append\n * @param {string} name\n * @param {string} value\n * @param {boolean} isLowerCase\n */\n append (name, value, isLowerCase) {\n this[kHeadersSortedMap] = null\n\n // 1. If list contains name, then set name to the first such\n // header\u2019s name.\n const lowercaseName = isLowerCase ? name : name.toLowerCase()\n const exists = this[kHeadersMap].get(lowercaseName)\n\n // 2. Append (name, value) to list.\n if (exists) {\n const delimiter = lowercaseName === 'cookie' ? '; ' : ', '\n this[kHeadersMap].set(lowercaseName, {\n name: exists.name,\n value: `${exists.value}${delimiter}${value}`\n })\n } else {\n this[kHeadersMap].set(lowercaseName, { name, value })\n }\n\n if (lowercaseName === 'set-cookie') {\n (this.cookies ??= []).push(value)\n }\n }\n\n /**\n * @see https://fetch.spec.whatwg.org/#concept-header-list-set\n * @param {string} name\n * @param {string} value\n * @param {boolean} isLowerCase\n */\n set (name, value, isLowerCase) {\n this[kHeadersSortedMap] = null\n const lowercaseName = isLowerCase ? name : name.toLowerCase()\n\n if (lowercaseName === 'set-cookie') {\n this.cookies = [value]\n }\n\n // 1. If list contains name, then set the value of\n // the first such header to value and remove the\n // others.\n // 2. Otherwise, append header (name, value) to list.\n this[kHeadersMap].set(lowercaseName, { name, value })\n }\n\n /**\n * @see https://fetch.spec.whatwg.org/#concept-header-list-delete\n * @param {string} name\n * @param {boolean} isLowerCase\n */\n delete (name, isLowerCase) {\n this[kHeadersSortedMap] = null\n if (!isLowerCase) name = name.toLowerCase()\n\n if (name === 'set-cookie') {\n this.cookies = null\n }\n\n this[kHeadersMap].delete(name)\n }\n\n /**\n * @see https://fetch.spec.whatwg.org/#concept-header-list-get\n * @param {string} name\n * @param {boolean} isLowerCase\n * @returns {string | null}\n */\n get (name, isLowerCase) {\n // 1. If list does not contain name, then return null.\n // 2. Return the values of all headers in list whose name\n // is a byte-case-insensitive match for name,\n // separated from each other by 0x2C 0x20, in order.\n return this[kHeadersMap].get(isLowerCase ? name : name.toLowerCase())?.value ?? null\n }\n\n * [Symbol.iterator] () {\n // use the lowercased name\n for (const { 0: name, 1: { value } } of this[kHeadersMap]) {\n yield [name, value]\n }\n }\n\n get entries () {\n const headers = {}\n\n if (this[kHeadersMap].size !== 0) {\n for (const { name, value } of this[kHeadersMap].values()) {\n headers[name] = value\n }\n }\n\n return headers\n }\n\n rawValues () {\n return this[kHeadersMap].values()\n }\n\n get entriesList () {\n const headers = []\n\n if (this[kHeadersMap].size !== 0) {\n for (const { 0: lowerName, 1: { name, value } } of this[kHeadersMap]) {\n if (lowerName === 'set-cookie') {\n for (const cookie of this.cookies) {\n headers.push([name, cookie])\n }\n } else {\n headers.push([name, value])\n }\n }\n }\n\n return headers\n }\n\n // https://fetch.spec.whatwg.org/#convert-header-names-to-a-sorted-lowercase-set\n toSortedArray () {\n const size = this[kHeadersMap].size\n const array = new Array(size)\n // In most cases, you will use the fast-path.\n // fast-path: Use binary insertion sort for small arrays.\n if (size <= 32) {\n if (size === 0) {\n // If empty, it is an empty array. To avoid the first index assignment.\n return array\n }\n // Improve performance by unrolling loop and avoiding double-loop.\n // Double-loop-less version of the binary insertion sort.\n const iterator = this[kHeadersMap][Symbol.iterator]()\n const firstValue = iterator.next().value\n // set [name, value] to first index.\n array[0] = [firstValue[0], firstValue[1].value]\n // https://fetch.spec.whatwg.org/#concept-header-list-sort-and-combine\n // 3.2.2. Assert: value is non-null.\n assert(firstValue[1].value !== null)\n for (\n let i = 1, j = 0, right = 0, left = 0, pivot = 0, x, value;\n i < size;\n ++i\n ) {\n // get next value\n value = iterator.next().value\n // set [name, value] to current index.\n x = array[i] = [value[0], value[1].value]\n // https://fetch.spec.whatwg.org/#concept-header-list-sort-and-combine\n // 3.2.2. Assert: value is non-null.\n assert(x[1] !== null)\n left = 0\n right = i\n // binary search\n while (left < right) {\n // middle index\n pivot = left + ((right - left) >> 1)\n // compare header name\n if (array[pivot][0] <= x[0]) {\n left = pivot + 1\n } else {\n right = pivot\n }\n }\n if (i !== pivot) {\n j = i\n while (j > left) {\n array[j] = array[--j]\n }\n array[left] = x\n }\n }\n /* c8 ignore next 4 */\n if (!iterator.next().done) {\n // This is for debugging and will never be called.\n throw new TypeError('Unreachable')\n }\n return array\n } else {\n // This case would be a rare occurrence.\n // slow-path: fallback\n let i = 0\n for (const { 0: name, 1: { value } } of this[kHeadersMap]) {\n array[i++] = [name, value]\n // https://fetch.spec.whatwg.org/#concept-header-list-sort-and-combine\n // 3.2.2. Assert: value is non-null.\n assert(value !== null)\n }\n return array.sort(compareHeaderName)\n }\n }\n}\n\n// https://fetch.spec.whatwg.org/#headers-class\nclass Headers {\n #guard\n #headersList\n\n constructor (init = undefined) {\n webidl.util.markAsUncloneable(this)\n\n if (init === kConstruct) {\n return\n }\n\n this.#headersList = new HeadersList()\n\n // The new Headers(init) constructor steps are:\n\n // 1. Set this\u2019s guard to \"none\".\n this.#guard = 'none'\n\n // 2. If init is given, then fill this with init.\n if (init !== undefined) {\n init = webidl.converters.HeadersInit(init, 'Headers contructor', 'init')\n fill(this, init)\n }\n }\n\n // https://fetch.spec.whatwg.org/#dom-headers-append\n append (name, value) {\n webidl.brandCheck(this, Headers)\n\n webidl.argumentLengthCheck(arguments, 2, 'Headers.append')\n\n const prefix = 'Headers.append'\n name = webidl.converters.ByteString(name, prefix, 'name')\n value = webidl.converters.ByteString(value, prefix, 'value')\n\n return appendHeader(this, name, value)\n }\n\n // https://fetch.spec.whatwg.org/#dom-headers-delete\n delete (name) {\n webidl.brandCheck(this, Headers)\n\n webidl.argumentLengthCheck(arguments, 1, 'Headers.delete')\n\n const prefix = 'Headers.delete'\n name = webidl.converters.ByteString(name, prefix, 'name')\n\n // 1. If name is not a header name, then throw a TypeError.\n if (!isValidHeaderName(name)) {\n throw webidl.errors.invalidArgument({\n prefix: 'Headers.delete',\n value: name,\n type: 'header name'\n })\n }\n\n // 2. If this\u2019s guard is \"immutable\", then throw a TypeError.\n // 3. Otherwise, if this\u2019s guard is \"request\" and name is a\n // forbidden header name, return.\n // 4. Otherwise, if this\u2019s guard is \"request-no-cors\", name\n // is not a no-CORS-safelisted request-header name, and\n // name is not a privileged no-CORS request-header name,\n // return.\n // 5. Otherwise, if this\u2019s guard is \"response\" and name is\n // a forbidden response-header name, return.\n // Note: undici does not implement forbidden header names\n if (this.#guard === 'immutable') {\n throw new TypeError('immutable')\n }\n\n // 6. If this\u2019s header list does not contain name, then\n // return.\n if (!this.#headersList.contains(name, false)) {\n return\n }\n\n // 7. Delete name from this\u2019s header list.\n // 8. If this\u2019s guard is \"request-no-cors\", then remove\n // privileged no-CORS request headers from this.\n this.#headersList.delete(name, false)\n }\n\n // https://fetch.spec.whatwg.org/#dom-headers-get\n get (name) {\n webidl.brandCheck(this, Headers)\n\n webidl.argumentLengthCheck(arguments, 1, 'Headers.get')\n\n const prefix = 'Headers.get'\n name = webidl.converters.ByteString(name, prefix, 'name')\n\n // 1. If name is not a header name, then throw a TypeError.\n if (!isValidHeaderName(name)) {\n throw webidl.errors.invalidArgument({\n prefix,\n value: name,\n type: 'header name'\n })\n }\n\n // 2. Return the result of getting name from this\u2019s header\n // list.\n return this.#headersList.get(name, false)\n }\n\n // https://fetch.spec.whatwg.org/#dom-headers-has\n has (name) {\n webidl.brandCheck(this, Headers)\n\n webidl.argumentLengthCheck(arguments, 1, 'Headers.has')\n\n const prefix = 'Headers.has'\n name = webidl.converters.ByteString(name, prefix, 'name')\n\n // 1. If name is not a header name, then throw a TypeError.\n if (!isValidHeaderName(name)) {\n throw webidl.errors.invalidArgument({\n prefix,\n value: name,\n type: 'header name'\n })\n }\n\n // 2. Return true if this\u2019s header list contains name;\n // otherwise false.\n return this.#headersList.contains(name, false)\n }\n\n // https://fetch.spec.whatwg.org/#dom-headers-set\n set (name, value) {\n webidl.brandCheck(this, Headers)\n\n webidl.argumentLengthCheck(arguments, 2, 'Headers.set')\n\n const prefix = 'Headers.set'\n name = webidl.converters.ByteString(name, prefix, 'name')\n value = webidl.converters.ByteString(value, prefix, 'value')\n\n // 1. Normalize value.\n value = headerValueNormalize(value)\n\n // 2. If name is not a header name or value is not a\n // header value, then throw a TypeError.\n if (!isValidHeaderName(name)) {\n throw webidl.errors.invalidArgument({\n prefix,\n value: name,\n type: 'header name'\n })\n } else if (!isValidHeaderValue(value)) {\n throw webidl.errors.invalidArgument({\n prefix,\n value,\n type: 'header value'\n })\n }\n\n // 3. If this\u2019s guard is \"immutable\", then throw a TypeError.\n // 4. Otherwise, if this\u2019s guard is \"request\" and name is a\n // forbidden header name, return.\n // 5. Otherwise, if this\u2019s guard is \"request-no-cors\" and\n // name/value is not a no-CORS-safelisted request-header,\n // return.\n // 6. Otherwise, if this\u2019s guard is \"response\" and name is a\n // forbidden response-header name, return.\n // Note: undici does not implement forbidden header names\n if (this.#guard === 'immutable') {\n throw new TypeError('immutable')\n }\n\n // 7. Set (name, value) in this\u2019s header list.\n // 8. If this\u2019s guard is \"request-no-cors\", then remove\n // privileged no-CORS request headers from this\n this.#headersList.set(name, value, false)\n }\n\n // https://fetch.spec.whatwg.org/#dom-headers-getsetcookie\n getSetCookie () {\n webidl.brandCheck(this, Headers)\n\n // 1. If this\u2019s header list does not contain `Set-Cookie`, then return \u00AB \u00BB.\n // 2. Return the values of all headers in this\u2019s header list whose name is\n // a byte-case-insensitive match for `Set-Cookie`, in order.\n\n const list = this.#headersList.cookies\n\n if (list) {\n return [...list]\n }\n\n return []\n }\n\n // https://fetch.spec.whatwg.org/#concept-header-list-sort-and-combine\n get [kHeadersSortedMap] () {\n if (this.#headersList[kHeadersSortedMap]) {\n return this.#headersList[kHeadersSortedMap]\n }\n\n // 1. Let headers be an empty list of headers with the key being the name\n // and value the value.\n const headers = []\n\n // 2. Let names be the result of convert header names to a sorted-lowercase\n // set with all the names of the headers in list.\n const names = this.#headersList.toSortedArray()\n\n const cookies = this.#headersList.cookies\n\n // fast-path\n if (cookies === null || cookies.length === 1) {\n // Note: The non-null assertion of value has already been done by `HeadersList#toSortedArray`\n return (this.#headersList[kHeadersSortedMap] = names)\n }\n\n // 3. For each name of names:\n for (let i = 0; i < names.length; ++i) {\n const { 0: name, 1: value } = names[i]\n // 1. If name is `set-cookie`, then:\n if (name === 'set-cookie') {\n // 1. Let values be a list of all values of headers in list whose name\n // is a byte-case-insensitive match for name, in order.\n\n // 2. For each value of values:\n // 1. Append (name, value) to headers.\n for (let j = 0; j < cookies.length; ++j) {\n headers.push([name, cookies[j]])\n }\n } else {\n // 2. Otherwise:\n\n // 1. Let value be the result of getting name from list.\n\n // 2. Assert: value is non-null.\n // Note: This operation was done by `HeadersList#toSortedArray`.\n\n // 3. Append (name, value) to headers.\n headers.push([name, value])\n }\n }\n\n // 4. Return headers.\n return (this.#headersList[kHeadersSortedMap] = headers)\n }\n\n [util.inspect.custom] (depth, options) {\n options.depth ??= depth\n\n return `Headers ${util.formatWithOptions(options, this.#headersList.entries)}`\n }\n\n static getHeadersGuard (o) {\n return o.#guard\n }\n\n static setHeadersGuard (o, guard) {\n o.#guard = guard\n }\n\n static getHeadersList (o) {\n return o.#headersList\n }\n\n static setHeadersList (o, list) {\n o.#headersList = list\n }\n}\n\nconst { getHeadersGuard, setHeadersGuard, getHeadersList, setHeadersList } = Headers\nReflect.deleteProperty(Headers, 'getHeadersGuard')\nReflect.deleteProperty(Headers, 'setHeadersGuard')\nReflect.deleteProperty(Headers, 'getHeadersList')\nReflect.deleteProperty(Headers, 'setHeadersList')\n\niteratorMixin('Headers', Headers, kHeadersSortedMap, 0, 1)\n\nObject.defineProperties(Headers.prototype, {\n append: kEnumerableProperty,\n delete: kEnumerableProperty,\n get: kEnumerableProperty,\n has: kEnumerableProperty,\n set: kEnumerableProperty,\n getSetCookie: kEnumerableProperty,\n [Symbol.toStringTag]: {\n value: 'Headers',\n configurable: true\n },\n [util.inspect.custom]: {\n enumerable: false\n }\n})\n\nwebidl.converters.HeadersInit = function (V, prefix, argument) {\n if (webidl.util.Type(V) === 'Object') {\n const iterator = Reflect.get(V, Symbol.iterator)\n\n // A work-around to ensure we send the properly-cased Headers when V is a Headers object.\n // Read https://github.com/nodejs/undici/pull/3159#issuecomment-2075537226 before touching, please.\n if (!util.types.isProxy(V) && iterator === Headers.prototype.entries) { // Headers object\n try {\n return getHeadersList(V).entriesList\n } catch {\n // fall-through\n }\n }\n\n if (typeof iterator === 'function') {\n return webidl.converters['sequence>'](V, prefix, argument, iterator.bind(V))\n }\n\n return webidl.converters['record'](V, prefix, argument)\n }\n\n throw webidl.errors.conversionFailed({\n prefix: 'Headers constructor',\n argument: 'Argument 1',\n types: ['sequence>', 'record']\n })\n}\n\nmodule.exports = {\n fill,\n // for test.\n compareHeaderName,\n Headers,\n HeadersList,\n getHeadersGuard,\n setHeadersGuard,\n setHeadersList,\n getHeadersList\n}\n", "'use strict'\n\nconst { Headers, HeadersList, fill, getHeadersGuard, setHeadersGuard, setHeadersList } = require('./headers')\nconst { extractBody, cloneBody, mixinBody, hasFinalizationRegistry, streamRegistry, bodyUnusable } = require('./body')\nconst util = require('../../core/util')\nconst nodeUtil = require('node:util')\nconst { kEnumerableProperty } = util\nconst {\n isValidReasonPhrase,\n isCancelled,\n isAborted,\n isBlobLike,\n serializeJavascriptValueToJSONString,\n isErrorLike,\n isomorphicEncode,\n environmentSettingsObject: relevantRealm\n} = require('./util')\nconst {\n redirectStatusSet,\n nullBodyStatus\n} = require('./constants')\nconst { kState, kHeaders } = require('./symbols')\nconst { webidl } = require('./webidl')\nconst { FormData } = require('./formdata')\nconst { URLSerializer } = require('./data-url')\nconst { kConstruct } = require('../../core/symbols')\nconst assert = require('node:assert')\nconst { types } = require('node:util')\n\nconst textEncoder = new TextEncoder('utf-8')\n\n// https://fetch.spec.whatwg.org/#response-class\nclass Response {\n // Creates network error Response.\n static error () {\n // The static error() method steps are to return the result of creating a\n // Response object, given a new network error, \"immutable\", and this\u2019s\n // relevant Realm.\n const responseObject = fromInnerResponse(makeNetworkError(), 'immutable')\n\n return responseObject\n }\n\n // https://fetch.spec.whatwg.org/#dom-response-json\n static json (data, init = {}) {\n webidl.argumentLengthCheck(arguments, 1, 'Response.json')\n\n if (init !== null) {\n init = webidl.converters.ResponseInit(init)\n }\n\n // 1. Let bytes the result of running serialize a JavaScript value to JSON bytes on data.\n const bytes = textEncoder.encode(\n serializeJavascriptValueToJSONString(data)\n )\n\n // 2. Let body be the result of extracting bytes.\n const body = extractBody(bytes)\n\n // 3. Let responseObject be the result of creating a Response object, given a new response,\n // \"response\", and this\u2019s relevant Realm.\n const responseObject = fromInnerResponse(makeResponse({}), 'response')\n\n // 4. Perform initialize a response given responseObject, init, and (body, \"application/json\").\n initializeResponse(responseObject, init, { body: body[0], type: 'application/json' })\n\n // 5. Return responseObject.\n return responseObject\n }\n\n // Creates a redirect Response that redirects to url with status status.\n static redirect (url, status = 302) {\n webidl.argumentLengthCheck(arguments, 1, 'Response.redirect')\n\n url = webidl.converters.USVString(url)\n status = webidl.converters['unsigned short'](status)\n\n // 1. Let parsedURL be the result of parsing url with current settings\n // object\u2019s API base URL.\n // 2. If parsedURL is failure, then throw a TypeError.\n // TODO: base-URL?\n let parsedURL\n try {\n parsedURL = new URL(url, relevantRealm.settingsObject.baseUrl)\n } catch (err) {\n throw new TypeError(`Failed to parse URL from ${url}`, { cause: err })\n }\n\n // 3. If status is not a redirect status, then throw a RangeError.\n if (!redirectStatusSet.has(status)) {\n throw new RangeError(`Invalid status code ${status}`)\n }\n\n // 4. Let responseObject be the result of creating a Response object,\n // given a new response, \"immutable\", and this\u2019s relevant Realm.\n const responseObject = fromInnerResponse(makeResponse({}), 'immutable')\n\n // 5. Set responseObject\u2019s response\u2019s status to status.\n responseObject[kState].status = status\n\n // 6. Let value be parsedURL, serialized and isomorphic encoded.\n const value = isomorphicEncode(URLSerializer(parsedURL))\n\n // 7. Append `Location`/value to responseObject\u2019s response\u2019s header list.\n responseObject[kState].headersList.append('location', value, true)\n\n // 8. Return responseObject.\n return responseObject\n }\n\n // https://fetch.spec.whatwg.org/#dom-response\n constructor (body = null, init = {}) {\n webidl.util.markAsUncloneable(this)\n if (body === kConstruct) {\n return\n }\n\n if (body !== null) {\n body = webidl.converters.BodyInit(body)\n }\n\n init = webidl.converters.ResponseInit(init)\n\n // 1. Set this\u2019s response to a new response.\n this[kState] = makeResponse({})\n\n // 2. Set this\u2019s headers to a new Headers object with this\u2019s relevant\n // Realm, whose header list is this\u2019s response\u2019s header list and guard\n // is \"response\".\n this[kHeaders] = new Headers(kConstruct)\n setHeadersGuard(this[kHeaders], 'response')\n setHeadersList(this[kHeaders], this[kState].headersList)\n\n // 3. Let bodyWithType be null.\n let bodyWithType = null\n\n // 4. If body is non-null, then set bodyWithType to the result of extracting body.\n if (body != null) {\n const [extractedBody, type] = extractBody(body)\n bodyWithType = { body: extractedBody, type }\n }\n\n // 5. Perform initialize a response given this, init, and bodyWithType.\n initializeResponse(this, init, bodyWithType)\n }\n\n // Returns response\u2019s type, e.g., \"cors\".\n get type () {\n webidl.brandCheck(this, Response)\n\n // The type getter steps are to return this\u2019s response\u2019s type.\n return this[kState].type\n }\n\n // Returns response\u2019s URL, if it has one; otherwise the empty string.\n get url () {\n webidl.brandCheck(this, Response)\n\n const urlList = this[kState].urlList\n\n // The url getter steps are to return the empty string if this\u2019s\n // response\u2019s URL is null; otherwise this\u2019s response\u2019s URL,\n // serialized with exclude fragment set to true.\n const url = urlList[urlList.length - 1] ?? null\n\n if (url === null) {\n return ''\n }\n\n return URLSerializer(url, true)\n }\n\n // Returns whether response was obtained through a redirect.\n get redirected () {\n webidl.brandCheck(this, Response)\n\n // The redirected getter steps are to return true if this\u2019s response\u2019s URL\n // list has more than one item; otherwise false.\n return this[kState].urlList.length > 1\n }\n\n // Returns response\u2019s status.\n get status () {\n webidl.brandCheck(this, Response)\n\n // The status getter steps are to return this\u2019s response\u2019s status.\n return this[kState].status\n }\n\n // Returns whether response\u2019s status is an ok status.\n get ok () {\n webidl.brandCheck(this, Response)\n\n // The ok getter steps are to return true if this\u2019s response\u2019s status is an\n // ok status; otherwise false.\n return this[kState].status >= 200 && this[kState].status <= 299\n }\n\n // Returns response\u2019s status message.\n get statusText () {\n webidl.brandCheck(this, Response)\n\n // The statusText getter steps are to return this\u2019s response\u2019s status\n // message.\n return this[kState].statusText\n }\n\n // Returns response\u2019s headers as Headers.\n get headers () {\n webidl.brandCheck(this, Response)\n\n // The headers getter steps are to return this\u2019s headers.\n return this[kHeaders]\n }\n\n get body () {\n webidl.brandCheck(this, Response)\n\n return this[kState].body ? this[kState].body.stream : null\n }\n\n get bodyUsed () {\n webidl.brandCheck(this, Response)\n\n return !!this[kState].body && util.isDisturbed(this[kState].body.stream)\n }\n\n // Returns a clone of response.\n clone () {\n webidl.brandCheck(this, Response)\n\n // 1. If this is unusable, then throw a TypeError.\n if (bodyUnusable(this)) {\n throw webidl.errors.exception({\n header: 'Response.clone',\n message: 'Body has already been consumed.'\n })\n }\n\n // 2. Let clonedResponse be the result of cloning this\u2019s response.\n const clonedResponse = cloneResponse(this[kState])\n\n // Note: To re-register because of a new stream.\n if (hasFinalizationRegistry && this[kState].body?.stream) {\n streamRegistry.register(this, new WeakRef(this[kState].body.stream))\n }\n\n // 3. Return the result of creating a Response object, given\n // clonedResponse, this\u2019s headers\u2019s guard, and this\u2019s relevant Realm.\n return fromInnerResponse(clonedResponse, getHeadersGuard(this[kHeaders]))\n }\n\n [nodeUtil.inspect.custom] (depth, options) {\n if (options.depth === null) {\n options.depth = 2\n }\n\n options.colors ??= true\n\n const properties = {\n status: this.status,\n statusText: this.statusText,\n headers: this.headers,\n body: this.body,\n bodyUsed: this.bodyUsed,\n ok: this.ok,\n redirected: this.redirected,\n type: this.type,\n url: this.url\n }\n\n return `Response ${nodeUtil.formatWithOptions(options, properties)}`\n }\n}\n\nmixinBody(Response)\n\nObject.defineProperties(Response.prototype, {\n type: kEnumerableProperty,\n url: kEnumerableProperty,\n status: kEnumerableProperty,\n ok: kEnumerableProperty,\n redirected: kEnumerableProperty,\n statusText: kEnumerableProperty,\n headers: kEnumerableProperty,\n clone: kEnumerableProperty,\n body: kEnumerableProperty,\n bodyUsed: kEnumerableProperty,\n [Symbol.toStringTag]: {\n value: 'Response',\n configurable: true\n }\n})\n\nObject.defineProperties(Response, {\n json: kEnumerableProperty,\n redirect: kEnumerableProperty,\n error: kEnumerableProperty\n})\n\n// https://fetch.spec.whatwg.org/#concept-response-clone\nfunction cloneResponse (response) {\n // To clone a response response, run these steps:\n\n // 1. If response is a filtered response, then return a new identical\n // filtered response whose internal response is a clone of response\u2019s\n // internal response.\n if (response.internalResponse) {\n return filterResponse(\n cloneResponse(response.internalResponse),\n response.type\n )\n }\n\n // 2. Let newResponse be a copy of response, except for its body.\n const newResponse = makeResponse({ ...response, body: null })\n\n // 3. If response\u2019s body is non-null, then set newResponse\u2019s body to the\n // result of cloning response\u2019s body.\n if (response.body != null) {\n newResponse.body = cloneBody(newResponse, response.body)\n }\n\n // 4. Return newResponse.\n return newResponse\n}\n\nfunction makeResponse (init) {\n return {\n aborted: false,\n rangeRequested: false,\n timingAllowPassed: false,\n requestIncludesCredentials: false,\n type: 'default',\n status: 200,\n timingInfo: null,\n cacheState: '',\n statusText: '',\n ...init,\n headersList: init?.headersList\n ? new HeadersList(init?.headersList)\n : new HeadersList(),\n urlList: init?.urlList ? [...init.urlList] : []\n }\n}\n\nfunction makeNetworkError (reason) {\n const isError = isErrorLike(reason)\n return makeResponse({\n type: 'error',\n status: 0,\n error: isError\n ? reason\n : new Error(reason ? String(reason) : reason),\n aborted: reason && reason.name === 'AbortError'\n })\n}\n\n// @see https://fetch.spec.whatwg.org/#concept-network-error\nfunction isNetworkError (response) {\n return (\n // A network error is a response whose type is \"error\",\n response.type === 'error' &&\n // status is 0\n response.status === 0\n )\n}\n\nfunction makeFilteredResponse (response, state) {\n state = {\n internalResponse: response,\n ...state\n }\n\n return new Proxy(response, {\n get (target, p) {\n return p in state ? state[p] : target[p]\n },\n set (target, p, value) {\n assert(!(p in state))\n target[p] = value\n return true\n }\n })\n}\n\n// https://fetch.spec.whatwg.org/#concept-filtered-response\nfunction filterResponse (response, type) {\n // Set response to the following filtered response with response as its\n // internal response, depending on request\u2019s response tainting:\n if (type === 'basic') {\n // A basic filtered response is a filtered response whose type is \"basic\"\n // and header list excludes any headers in internal response\u2019s header list\n // whose name is a forbidden response-header name.\n\n // Note: undici does not implement forbidden response-header names\n return makeFilteredResponse(response, {\n type: 'basic',\n headersList: response.headersList\n })\n } else if (type === 'cors') {\n // A CORS filtered response is a filtered response whose type is \"cors\"\n // and header list excludes any headers in internal response\u2019s header\n // list whose name is not a CORS-safelisted response-header name, given\n // internal response\u2019s CORS-exposed header-name list.\n\n // Note: undici does not implement CORS-safelisted response-header names\n return makeFilteredResponse(response, {\n type: 'cors',\n headersList: response.headersList\n })\n } else if (type === 'opaque') {\n // An opaque filtered response is a filtered response whose type is\n // \"opaque\", URL list is the empty list, status is 0, status message\n // is the empty byte sequence, header list is empty, and body is null.\n\n return makeFilteredResponse(response, {\n type: 'opaque',\n urlList: Object.freeze([]),\n status: 0,\n statusText: '',\n body: null\n })\n } else if (type === 'opaqueredirect') {\n // An opaque-redirect filtered response is a filtered response whose type\n // is \"opaqueredirect\", status is 0, status message is the empty byte\n // sequence, header list is empty, and body is null.\n\n return makeFilteredResponse(response, {\n type: 'opaqueredirect',\n status: 0,\n statusText: '',\n headersList: [],\n body: null\n })\n } else {\n assert(false)\n }\n}\n\n// https://fetch.spec.whatwg.org/#appropriate-network-error\nfunction makeAppropriateNetworkError (fetchParams, err = null) {\n // 1. Assert: fetchParams is canceled.\n assert(isCancelled(fetchParams))\n\n // 2. Return an aborted network error if fetchParams is aborted;\n // otherwise return a network error.\n return isAborted(fetchParams)\n ? makeNetworkError(Object.assign(new DOMException('The operation was aborted.', 'AbortError'), { cause: err }))\n : makeNetworkError(Object.assign(new DOMException('Request was cancelled.'), { cause: err }))\n}\n\n// https://whatpr.org/fetch/1392.html#initialize-a-response\nfunction initializeResponse (response, init, body) {\n // 1. If init[\"status\"] is not in the range 200 to 599, inclusive, then\n // throw a RangeError.\n if (init.status !== null && (init.status < 200 || init.status > 599)) {\n throw new RangeError('init[\"status\"] must be in the range of 200 to 599, inclusive.')\n }\n\n // 2. If init[\"statusText\"] does not match the reason-phrase token production,\n // then throw a TypeError.\n if ('statusText' in init && init.statusText != null) {\n // See, https://datatracker.ietf.org/doc/html/rfc7230#section-3.1.2:\n // reason-phrase = *( HTAB / SP / VCHAR / obs-text )\n if (!isValidReasonPhrase(String(init.statusText))) {\n throw new TypeError('Invalid statusText')\n }\n }\n\n // 3. Set response\u2019s response\u2019s status to init[\"status\"].\n if ('status' in init && init.status != null) {\n response[kState].status = init.status\n }\n\n // 4. Set response\u2019s response\u2019s status message to init[\"statusText\"].\n if ('statusText' in init && init.statusText != null) {\n response[kState].statusText = init.statusText\n }\n\n // 5. If init[\"headers\"] exists, then fill response\u2019s headers with init[\"headers\"].\n if ('headers' in init && init.headers != null) {\n fill(response[kHeaders], init.headers)\n }\n\n // 6. If body was given, then:\n if (body) {\n // 1. If response's status is a null body status, then throw a TypeError.\n if (nullBodyStatus.includes(response.status)) {\n throw webidl.errors.exception({\n header: 'Response constructor',\n message: `Invalid response status code ${response.status}`\n })\n }\n\n // 2. Set response's body to body's body.\n response[kState].body = body.body\n\n // 3. If body's type is non-null and response's header list does not contain\n // `Content-Type`, then append (`Content-Type`, body's type) to response's header list.\n if (body.type != null && !response[kState].headersList.contains('content-type', true)) {\n response[kState].headersList.append('content-type', body.type, true)\n }\n }\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#response-create\n * @param {any} innerResponse\n * @param {'request' | 'immutable' | 'request-no-cors' | 'response' | 'none'} guard\n * @returns {Response}\n */\nfunction fromInnerResponse (innerResponse, guard) {\n const response = new Response(kConstruct)\n response[kState] = innerResponse\n response[kHeaders] = new Headers(kConstruct)\n setHeadersList(response[kHeaders], innerResponse.headersList)\n setHeadersGuard(response[kHeaders], guard)\n\n if (hasFinalizationRegistry && innerResponse.body?.stream) {\n // If the target (response) is reclaimed, the cleanup callback may be called at some point with\n // the held value provided for it (innerResponse.body.stream). The held value can be any value:\n // a primitive or an object, even undefined. If the held value is an object, the registry keeps\n // a strong reference to it (so it can pass it to the cleanup callback later). Reworded from\n // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/FinalizationRegistry\n streamRegistry.register(response, new WeakRef(innerResponse.body.stream))\n }\n\n return response\n}\n\nwebidl.converters.ReadableStream = webidl.interfaceConverter(\n ReadableStream\n)\n\nwebidl.converters.FormData = webidl.interfaceConverter(\n FormData\n)\n\nwebidl.converters.URLSearchParams = webidl.interfaceConverter(\n URLSearchParams\n)\n\n// https://fetch.spec.whatwg.org/#typedefdef-xmlhttprequestbodyinit\nwebidl.converters.XMLHttpRequestBodyInit = function (V, prefix, name) {\n if (typeof V === 'string') {\n return webidl.converters.USVString(V, prefix, name)\n }\n\n if (isBlobLike(V)) {\n return webidl.converters.Blob(V, prefix, name, { strict: false })\n }\n\n if (ArrayBuffer.isView(V) || types.isArrayBuffer(V)) {\n return webidl.converters.BufferSource(V, prefix, name)\n }\n\n if (util.isFormDataLike(V)) {\n return webidl.converters.FormData(V, prefix, name, { strict: false })\n }\n\n if (V instanceof URLSearchParams) {\n return webidl.converters.URLSearchParams(V, prefix, name)\n }\n\n return webidl.converters.DOMString(V, prefix, name)\n}\n\n// https://fetch.spec.whatwg.org/#bodyinit\nwebidl.converters.BodyInit = function (V, prefix, argument) {\n if (V instanceof ReadableStream) {\n return webidl.converters.ReadableStream(V, prefix, argument)\n }\n\n // Note: the spec doesn't include async iterables,\n // this is an undici extension.\n if (V?.[Symbol.asyncIterator]) {\n return V\n }\n\n return webidl.converters.XMLHttpRequestBodyInit(V, prefix, argument)\n}\n\nwebidl.converters.ResponseInit = webidl.dictionaryConverter([\n {\n key: 'status',\n converter: webidl.converters['unsigned short'],\n defaultValue: () => 200\n },\n {\n key: 'statusText',\n converter: webidl.converters.ByteString,\n defaultValue: () => ''\n },\n {\n key: 'headers',\n converter: webidl.converters.HeadersInit\n }\n])\n\nmodule.exports = {\n isNetworkError,\n makeNetworkError,\n makeResponse,\n makeAppropriateNetworkError,\n filterResponse,\n Response,\n cloneResponse,\n fromInnerResponse\n}\n", "'use strict'\n\nconst { kConnected, kSize } = require('../../core/symbols')\n\nclass CompatWeakRef {\n constructor (value) {\n this.value = value\n }\n\n deref () {\n return this.value[kConnected] === 0 && this.value[kSize] === 0\n ? undefined\n : this.value\n }\n}\n\nclass CompatFinalizer {\n constructor (finalizer) {\n this.finalizer = finalizer\n }\n\n register (dispatcher, key) {\n if (dispatcher.on) {\n dispatcher.on('disconnect', () => {\n if (dispatcher[kConnected] === 0 && dispatcher[kSize] === 0) {\n this.finalizer(key)\n }\n })\n }\n }\n\n unregister (key) {}\n}\n\nmodule.exports = function () {\n // FIXME: remove workaround when the Node bug is backported to v18\n // https://github.com/nodejs/node/issues/49344#issuecomment-1741776308\n if (process.env.NODE_V8_COVERAGE && process.version.startsWith('v18')) {\n process._rawDebug('Using compatibility WeakRef and FinalizationRegistry')\n return {\n WeakRef: CompatWeakRef,\n FinalizationRegistry: CompatFinalizer\n }\n }\n return { WeakRef, FinalizationRegistry }\n}\n", "/* globals AbortController */\n\n'use strict'\n\nconst { extractBody, mixinBody, cloneBody, bodyUnusable } = require('./body')\nconst { Headers, fill: fillHeaders, HeadersList, setHeadersGuard, getHeadersGuard, setHeadersList, getHeadersList } = require('./headers')\nconst { FinalizationRegistry } = require('./dispatcher-weakref')()\nconst util = require('../../core/util')\nconst nodeUtil = require('node:util')\nconst {\n isValidHTTPToken,\n sameOrigin,\n environmentSettingsObject\n} = require('./util')\nconst {\n forbiddenMethodsSet,\n corsSafeListedMethodsSet,\n referrerPolicy,\n requestRedirect,\n requestMode,\n requestCredentials,\n requestCache,\n requestDuplex\n} = require('./constants')\nconst { kEnumerableProperty, normalizedMethodRecordsBase, normalizedMethodRecords } = util\nconst { kHeaders, kSignal, kState, kDispatcher } = require('./symbols')\nconst { webidl } = require('./webidl')\nconst { URLSerializer } = require('./data-url')\nconst { kConstruct } = require('../../core/symbols')\nconst assert = require('node:assert')\nconst { getMaxListeners, setMaxListeners, getEventListeners, defaultMaxListeners } = require('node:events')\n\nconst kAbortController = Symbol('abortController')\n\nconst requestFinalizer = new FinalizationRegistry(({ signal, abort }) => {\n signal.removeEventListener('abort', abort)\n})\n\nconst dependentControllerMap = new WeakMap()\n\nfunction buildAbort (acRef) {\n return abort\n\n function abort () {\n const ac = acRef.deref()\n if (ac !== undefined) {\n // Currently, there is a problem with FinalizationRegistry.\n // https://github.com/nodejs/node/issues/49344\n // https://github.com/nodejs/node/issues/47748\n // In the case of abort, the first step is to unregister from it.\n // If the controller can refer to it, it is still registered.\n // It will be removed in the future.\n requestFinalizer.unregister(abort)\n\n // Unsubscribe a listener.\n // FinalizationRegistry will no longer be called, so this must be done.\n this.removeEventListener('abort', abort)\n\n ac.abort(this.reason)\n\n const controllerList = dependentControllerMap.get(ac.signal)\n\n if (controllerList !== undefined) {\n if (controllerList.size !== 0) {\n for (const ref of controllerList) {\n const ctrl = ref.deref()\n if (ctrl !== undefined) {\n ctrl.abort(this.reason)\n }\n }\n controllerList.clear()\n }\n dependentControllerMap.delete(ac.signal)\n }\n }\n }\n}\n\nlet patchMethodWarning = false\n\n// https://fetch.spec.whatwg.org/#request-class\nclass Request {\n // https://fetch.spec.whatwg.org/#dom-request\n constructor (input, init = {}) {\n webidl.util.markAsUncloneable(this)\n if (input === kConstruct) {\n return\n }\n\n const prefix = 'Request constructor'\n webidl.argumentLengthCheck(arguments, 1, prefix)\n\n input = webidl.converters.RequestInfo(input, prefix, 'input')\n init = webidl.converters.RequestInit(init, prefix, 'init')\n\n // 1. Let request be null.\n let request = null\n\n // 2. Let fallbackMode be null.\n let fallbackMode = null\n\n // 3. Let baseURL be this\u2019s relevant settings object\u2019s API base URL.\n const baseUrl = environmentSettingsObject.settingsObject.baseUrl\n\n // 4. Let signal be null.\n let signal = null\n\n // 5. If input is a string, then:\n if (typeof input === 'string') {\n this[kDispatcher] = init.dispatcher\n\n // 1. Let parsedURL be the result of parsing input with baseURL.\n // 2. If parsedURL is failure, then throw a TypeError.\n let parsedURL\n try {\n parsedURL = new URL(input, baseUrl)\n } catch (err) {\n throw new TypeError('Failed to parse URL from ' + input, { cause: err })\n }\n\n // 3. If parsedURL includes credentials, then throw a TypeError.\n if (parsedURL.username || parsedURL.password) {\n throw new TypeError(\n 'Request cannot be constructed from a URL that includes credentials: ' +\n input\n )\n }\n\n // 4. Set request to a new request whose URL is parsedURL.\n request = makeRequest({ urlList: [parsedURL] })\n\n // 5. Set fallbackMode to \"cors\".\n fallbackMode = 'cors'\n } else {\n this[kDispatcher] = init.dispatcher || input[kDispatcher]\n\n // 6. Otherwise:\n\n // 7. Assert: input is a Request object.\n assert(input instanceof Request)\n\n // 8. Set request to input\u2019s request.\n request = input[kState]\n\n // 9. Set signal to input\u2019s signal.\n signal = input[kSignal]\n }\n\n // 7. Let origin be this\u2019s relevant settings object\u2019s origin.\n const origin = environmentSettingsObject.settingsObject.origin\n\n // 8. Let window be \"client\".\n let window = 'client'\n\n // 9. If request\u2019s window is an environment settings object and its origin\n // is same origin with origin, then set window to request\u2019s window.\n if (\n request.window?.constructor?.name === 'EnvironmentSettingsObject' &&\n sameOrigin(request.window, origin)\n ) {\n window = request.window\n }\n\n // 10. If init[\"window\"] exists and is non-null, then throw a TypeError.\n if (init.window != null) {\n throw new TypeError(`'window' option '${window}' must be null`)\n }\n\n // 11. If init[\"window\"] exists, then set window to \"no-window\".\n if ('window' in init) {\n window = 'no-window'\n }\n\n // 12. Set request to a new request with the following properties:\n request = makeRequest({\n // URL request\u2019s URL.\n // undici implementation note: this is set as the first item in request's urlList in makeRequest\n // method request\u2019s method.\n method: request.method,\n // header list A copy of request\u2019s header list.\n // undici implementation note: headersList is cloned in makeRequest\n headersList: request.headersList,\n // unsafe-request flag Set.\n unsafeRequest: request.unsafeRequest,\n // client This\u2019s relevant settings object.\n client: environmentSettingsObject.settingsObject,\n // window window.\n window,\n // priority request\u2019s priority.\n priority: request.priority,\n // origin request\u2019s origin. The propagation of the origin is only significant for navigation requests\n // being handled by a service worker. In this scenario a request can have an origin that is different\n // from the current client.\n origin: request.origin,\n // referrer request\u2019s referrer.\n referrer: request.referrer,\n // referrer policy request\u2019s referrer policy.\n referrerPolicy: request.referrerPolicy,\n // mode request\u2019s mode.\n mode: request.mode,\n // credentials mode request\u2019s credentials mode.\n credentials: request.credentials,\n // cache mode request\u2019s cache mode.\n cache: request.cache,\n // redirect mode request\u2019s redirect mode.\n redirect: request.redirect,\n // integrity metadata request\u2019s integrity metadata.\n integrity: request.integrity,\n // keepalive request\u2019s keepalive.\n keepalive: request.keepalive,\n // reload-navigation flag request\u2019s reload-navigation flag.\n reloadNavigation: request.reloadNavigation,\n // history-navigation flag request\u2019s history-navigation flag.\n historyNavigation: request.historyNavigation,\n // URL list A clone of request\u2019s URL list.\n urlList: [...request.urlList]\n })\n\n const initHasKey = Object.keys(init).length !== 0\n\n // 13. If init is not empty, then:\n if (initHasKey) {\n // 1. If request\u2019s mode is \"navigate\", then set it to \"same-origin\".\n if (request.mode === 'navigate') {\n request.mode = 'same-origin'\n }\n\n // 2. Unset request\u2019s reload-navigation flag.\n request.reloadNavigation = false\n\n // 3. Unset request\u2019s history-navigation flag.\n request.historyNavigation = false\n\n // 4. Set request\u2019s origin to \"client\".\n request.origin = 'client'\n\n // 5. Set request\u2019s referrer to \"client\"\n request.referrer = 'client'\n\n // 6. Set request\u2019s referrer policy to the empty string.\n request.referrerPolicy = ''\n\n // 7. Set request\u2019s URL to request\u2019s current URL.\n request.url = request.urlList[request.urlList.length - 1]\n\n // 8. Set request\u2019s URL list to \u00AB request\u2019s URL \u00BB.\n request.urlList = [request.url]\n }\n\n // 14. If init[\"referrer\"] exists, then:\n if (init.referrer !== undefined) {\n // 1. Let referrer be init[\"referrer\"].\n const referrer = init.referrer\n\n // 2. If referrer is the empty string, then set request\u2019s referrer to \"no-referrer\".\n if (referrer === '') {\n request.referrer = 'no-referrer'\n } else {\n // 1. Let parsedReferrer be the result of parsing referrer with\n // baseURL.\n // 2. If parsedReferrer is failure, then throw a TypeError.\n let parsedReferrer\n try {\n parsedReferrer = new URL(referrer, baseUrl)\n } catch (err) {\n throw new TypeError(`Referrer \"${referrer}\" is not a valid URL.`, { cause: err })\n }\n\n // 3. If one of the following is true\n // - parsedReferrer\u2019s scheme is \"about\" and path is the string \"client\"\n // - parsedReferrer\u2019s origin is not same origin with origin\n // then set request\u2019s referrer to \"client\".\n if (\n (parsedReferrer.protocol === 'about:' && parsedReferrer.hostname === 'client') ||\n (origin && !sameOrigin(parsedReferrer, environmentSettingsObject.settingsObject.baseUrl))\n ) {\n request.referrer = 'client'\n } else {\n // 4. Otherwise, set request\u2019s referrer to parsedReferrer.\n request.referrer = parsedReferrer\n }\n }\n }\n\n // 15. If init[\"referrerPolicy\"] exists, then set request\u2019s referrer policy\n // to it.\n if (init.referrerPolicy !== undefined) {\n request.referrerPolicy = init.referrerPolicy\n }\n\n // 16. Let mode be init[\"mode\"] if it exists, and fallbackMode otherwise.\n let mode\n if (init.mode !== undefined) {\n mode = init.mode\n } else {\n mode = fallbackMode\n }\n\n // 17. If mode is \"navigate\", then throw a TypeError.\n if (mode === 'navigate') {\n throw webidl.errors.exception({\n header: 'Request constructor',\n message: 'invalid request mode navigate.'\n })\n }\n\n // 18. If mode is non-null, set request\u2019s mode to mode.\n if (mode != null) {\n request.mode = mode\n }\n\n // 19. If init[\"credentials\"] exists, then set request\u2019s credentials mode\n // to it.\n if (init.credentials !== undefined) {\n request.credentials = init.credentials\n }\n\n // 18. If init[\"cache\"] exists, then set request\u2019s cache mode to it.\n if (init.cache !== undefined) {\n request.cache = init.cache\n }\n\n // 21. If request\u2019s cache mode is \"only-if-cached\" and request\u2019s mode is\n // not \"same-origin\", then throw a TypeError.\n if (request.cache === 'only-if-cached' && request.mode !== 'same-origin') {\n throw new TypeError(\n \"'only-if-cached' can be set only with 'same-origin' mode\"\n )\n }\n\n // 22. If init[\"redirect\"] exists, then set request\u2019s redirect mode to it.\n if (init.redirect !== undefined) {\n request.redirect = init.redirect\n }\n\n // 23. If init[\"integrity\"] exists, then set request\u2019s integrity metadata to it.\n if (init.integrity != null) {\n request.integrity = String(init.integrity)\n }\n\n // 24. If init[\"keepalive\"] exists, then set request\u2019s keepalive to it.\n if (init.keepalive !== undefined) {\n request.keepalive = Boolean(init.keepalive)\n }\n\n // 25. If init[\"method\"] exists, then:\n if (init.method !== undefined) {\n // 1. Let method be init[\"method\"].\n let method = init.method\n\n const mayBeNormalized = normalizedMethodRecords[method]\n\n if (mayBeNormalized !== undefined) {\n // Note: Bypass validation DELETE, GET, HEAD, OPTIONS, POST, PUT, PATCH and these lowercase ones\n request.method = mayBeNormalized\n } else {\n // 2. If method is not a method or method is a forbidden method, then\n // throw a TypeError.\n if (!isValidHTTPToken(method)) {\n throw new TypeError(`'${method}' is not a valid HTTP method.`)\n }\n\n const upperCase = method.toUpperCase()\n\n if (forbiddenMethodsSet.has(upperCase)) {\n throw new TypeError(`'${method}' HTTP method is unsupported.`)\n }\n\n // 3. Normalize method.\n // https://fetch.spec.whatwg.org/#concept-method-normalize\n // Note: must be in uppercase\n method = normalizedMethodRecordsBase[upperCase] ?? method\n\n // 4. Set request\u2019s method to method.\n request.method = method\n }\n\n if (!patchMethodWarning && request.method === 'patch') {\n process.emitWarning('Using `patch` is highly likely to result in a `405 Method Not Allowed`. `PATCH` is much more likely to succeed.', {\n code: 'UNDICI-FETCH-patch'\n })\n\n patchMethodWarning = true\n }\n }\n\n // 26. If init[\"signal\"] exists, then set signal to it.\n if (init.signal !== undefined) {\n signal = init.signal\n }\n\n // 27. Set this\u2019s request to request.\n this[kState] = request\n\n // 28. Set this\u2019s signal to a new AbortSignal object with this\u2019s relevant\n // Realm.\n // TODO: could this be simplified with AbortSignal.any\n // (https://dom.spec.whatwg.org/#dom-abortsignal-any)\n const ac = new AbortController()\n this[kSignal] = ac.signal\n\n // 29. If signal is not null, then make this\u2019s signal follow signal.\n if (signal != null) {\n if (\n !signal ||\n typeof signal.aborted !== 'boolean' ||\n typeof signal.addEventListener !== 'function'\n ) {\n throw new TypeError(\n \"Failed to construct 'Request': member signal is not of type AbortSignal.\"\n )\n }\n\n if (signal.aborted) {\n ac.abort(signal.reason)\n } else {\n // Keep a strong ref to ac while request object\n // is alive. This is needed to prevent AbortController\n // from being prematurely garbage collected.\n // See, https://github.com/nodejs/undici/issues/1926.\n this[kAbortController] = ac\n\n const acRef = new WeakRef(ac)\n const abort = buildAbort(acRef)\n\n // Third-party AbortControllers may not work with these.\n // See, https://github.com/nodejs/undici/pull/1910#issuecomment-1464495619.\n try {\n // If the max amount of listeners is equal to the default, increase it\n // This is only available in node >= v19.9.0\n if (typeof getMaxListeners === 'function' && getMaxListeners(signal) === defaultMaxListeners) {\n setMaxListeners(1500, signal)\n } else if (getEventListeners(signal, 'abort').length >= defaultMaxListeners) {\n setMaxListeners(1500, signal)\n }\n } catch {}\n\n util.addAbortListener(signal, abort)\n // The third argument must be a registry key to be unregistered.\n // Without it, you cannot unregister.\n // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/FinalizationRegistry\n // abort is used as the unregister key. (because it is unique)\n requestFinalizer.register(ac, { signal, abort }, abort)\n }\n }\n\n // 30. Set this\u2019s headers to a new Headers object with this\u2019s relevant\n // Realm, whose header list is request\u2019s header list and guard is\n // \"request\".\n this[kHeaders] = new Headers(kConstruct)\n setHeadersList(this[kHeaders], request.headersList)\n setHeadersGuard(this[kHeaders], 'request')\n\n // 31. If this\u2019s request\u2019s mode is \"no-cors\", then:\n if (mode === 'no-cors') {\n // 1. If this\u2019s request\u2019s method is not a CORS-safelisted method,\n // then throw a TypeError.\n if (!corsSafeListedMethodsSet.has(request.method)) {\n throw new TypeError(\n `'${request.method} is unsupported in no-cors mode.`\n )\n }\n\n // 2. Set this\u2019s headers\u2019s guard to \"request-no-cors\".\n setHeadersGuard(this[kHeaders], 'request-no-cors')\n }\n\n // 32. If init is not empty, then:\n if (initHasKey) {\n /** @type {HeadersList} */\n const headersList = getHeadersList(this[kHeaders])\n // 1. Let headers be a copy of this\u2019s headers and its associated header\n // list.\n // 2. If init[\"headers\"] exists, then set headers to init[\"headers\"].\n const headers = init.headers !== undefined ? init.headers : new HeadersList(headersList)\n\n // 3. Empty this\u2019s headers\u2019s header list.\n headersList.clear()\n\n // 4. If headers is a Headers object, then for each header in its header\n // list, append header\u2019s name/header\u2019s value to this\u2019s headers.\n if (headers instanceof HeadersList) {\n for (const { name, value } of headers.rawValues()) {\n headersList.append(name, value, false)\n }\n // Note: Copy the `set-cookie` meta-data.\n headersList.cookies = headers.cookies\n } else {\n // 5. Otherwise, fill this\u2019s headers with headers.\n fillHeaders(this[kHeaders], headers)\n }\n }\n\n // 33. Let inputBody be input\u2019s request\u2019s body if input is a Request\n // object; otherwise null.\n const inputBody = input instanceof Request ? input[kState].body : null\n\n // 34. If either init[\"body\"] exists and is non-null or inputBody is\n // non-null, and request\u2019s method is `GET` or `HEAD`, then throw a\n // TypeError.\n if (\n (init.body != null || inputBody != null) &&\n (request.method === 'GET' || request.method === 'HEAD')\n ) {\n throw new TypeError('Request with GET/HEAD method cannot have body.')\n }\n\n // 35. Let initBody be null.\n let initBody = null\n\n // 36. If init[\"body\"] exists and is non-null, then:\n if (init.body != null) {\n // 1. Let Content-Type be null.\n // 2. Set initBody and Content-Type to the result of extracting\n // init[\"body\"], with keepalive set to request\u2019s keepalive.\n const [extractedBody, contentType] = extractBody(\n init.body,\n request.keepalive\n )\n initBody = extractedBody\n\n // 3, If Content-Type is non-null and this\u2019s headers\u2019s header list does\n // not contain `Content-Type`, then append `Content-Type`/Content-Type to\n // this\u2019s headers.\n if (contentType && !getHeadersList(this[kHeaders]).contains('content-type', true)) {\n this[kHeaders].append('content-type', contentType)\n }\n }\n\n // 37. Let inputOrInitBody be initBody if it is non-null; otherwise\n // inputBody.\n const inputOrInitBody = initBody ?? inputBody\n\n // 38. If inputOrInitBody is non-null and inputOrInitBody\u2019s source is\n // null, then:\n if (inputOrInitBody != null && inputOrInitBody.source == null) {\n // 1. If initBody is non-null and init[\"duplex\"] does not exist,\n // then throw a TypeError.\n if (initBody != null && init.duplex == null) {\n throw new TypeError('RequestInit: duplex option is required when sending a body.')\n }\n\n // 2. If this\u2019s request\u2019s mode is neither \"same-origin\" nor \"cors\",\n // then throw a TypeError.\n if (request.mode !== 'same-origin' && request.mode !== 'cors') {\n throw new TypeError(\n 'If request is made from ReadableStream, mode should be \"same-origin\" or \"cors\"'\n )\n }\n\n // 3. Set this\u2019s request\u2019s use-CORS-preflight flag.\n request.useCORSPreflightFlag = true\n }\n\n // 39. Let finalBody be inputOrInitBody.\n let finalBody = inputOrInitBody\n\n // 40. If initBody is null and inputBody is non-null, then:\n if (initBody == null && inputBody != null) {\n // 1. If input is unusable, then throw a TypeError.\n if (bodyUnusable(input)) {\n throw new TypeError(\n 'Cannot construct a Request with a Request object that has already been used.'\n )\n }\n\n // 2. Set finalBody to the result of creating a proxy for inputBody.\n // https://streams.spec.whatwg.org/#readablestream-create-a-proxy\n const identityTransform = new TransformStream()\n inputBody.stream.pipeThrough(identityTransform)\n finalBody = {\n source: inputBody.source,\n length: inputBody.length,\n stream: identityTransform.readable\n }\n }\n\n // 41. Set this\u2019s request\u2019s body to finalBody.\n this[kState].body = finalBody\n }\n\n // Returns request\u2019s HTTP method, which is \"GET\" by default.\n get method () {\n webidl.brandCheck(this, Request)\n\n // The method getter steps are to return this\u2019s request\u2019s method.\n return this[kState].method\n }\n\n // Returns the URL of request as a string.\n get url () {\n webidl.brandCheck(this, Request)\n\n // The url getter steps are to return this\u2019s request\u2019s URL, serialized.\n return URLSerializer(this[kState].url)\n }\n\n // Returns a Headers object consisting of the headers associated with request.\n // Note that headers added in the network layer by the user agent will not\n // be accounted for in this object, e.g., the \"Host\" header.\n get headers () {\n webidl.brandCheck(this, Request)\n\n // The headers getter steps are to return this\u2019s headers.\n return this[kHeaders]\n }\n\n // Returns the kind of resource requested by request, e.g., \"document\"\n // or \"script\".\n get destination () {\n webidl.brandCheck(this, Request)\n\n // The destination getter are to return this\u2019s request\u2019s destination.\n return this[kState].destination\n }\n\n // Returns the referrer of request. Its value can be a same-origin URL if\n // explicitly set in init, the empty string to indicate no referrer, and\n // \"about:client\" when defaulting to the global\u2019s default. This is used\n // during fetching to determine the value of the `Referer` header of the\n // request being made.\n get referrer () {\n webidl.brandCheck(this, Request)\n\n // 1. If this\u2019s request\u2019s referrer is \"no-referrer\", then return the\n // empty string.\n if (this[kState].referrer === 'no-referrer') {\n return ''\n }\n\n // 2. If this\u2019s request\u2019s referrer is \"client\", then return\n // \"about:client\".\n if (this[kState].referrer === 'client') {\n return 'about:client'\n }\n\n // Return this\u2019s request\u2019s referrer, serialized.\n return this[kState].referrer.toString()\n }\n\n // Returns the referrer policy associated with request.\n // This is used during fetching to compute the value of the request\u2019s\n // referrer.\n get referrerPolicy () {\n webidl.brandCheck(this, Request)\n\n // The referrerPolicy getter steps are to return this\u2019s request\u2019s referrer policy.\n return this[kState].referrerPolicy\n }\n\n // Returns the mode associated with request, which is a string indicating\n // whether the request will use CORS, or will be restricted to same-origin\n // URLs.\n get mode () {\n webidl.brandCheck(this, Request)\n\n // The mode getter steps are to return this\u2019s request\u2019s mode.\n return this[kState].mode\n }\n\n // Returns the credentials mode associated with request,\n // which is a string indicating whether credentials will be sent with the\n // request always, never, or only when sent to a same-origin URL.\n get credentials () {\n // The credentials getter steps are to return this\u2019s request\u2019s credentials mode.\n return this[kState].credentials\n }\n\n // Returns the cache mode associated with request,\n // which is a string indicating how the request will\n // interact with the browser\u2019s cache when fetching.\n get cache () {\n webidl.brandCheck(this, Request)\n\n // The cache getter steps are to return this\u2019s request\u2019s cache mode.\n return this[kState].cache\n }\n\n // Returns the redirect mode associated with request,\n // which is a string indicating how redirects for the\n // request will be handled during fetching. A request\n // will follow redirects by default.\n get redirect () {\n webidl.brandCheck(this, Request)\n\n // The redirect getter steps are to return this\u2019s request\u2019s redirect mode.\n return this[kState].redirect\n }\n\n // Returns request\u2019s subresource integrity metadata, which is a\n // cryptographic hash of the resource being fetched. Its value\n // consists of multiple hashes separated by whitespace. [SRI]\n get integrity () {\n webidl.brandCheck(this, Request)\n\n // The integrity getter steps are to return this\u2019s request\u2019s integrity\n // metadata.\n return this[kState].integrity\n }\n\n // Returns a boolean indicating whether or not request can outlive the\n // global in which it was created.\n get keepalive () {\n webidl.brandCheck(this, Request)\n\n // The keepalive getter steps are to return this\u2019s request\u2019s keepalive.\n return this[kState].keepalive\n }\n\n // Returns a boolean indicating whether or not request is for a reload\n // navigation.\n get isReloadNavigation () {\n webidl.brandCheck(this, Request)\n\n // The isReloadNavigation getter steps are to return true if this\u2019s\n // request\u2019s reload-navigation flag is set; otherwise false.\n return this[kState].reloadNavigation\n }\n\n // Returns a boolean indicating whether or not request is for a history\n // navigation (a.k.a. back-forward navigation).\n get isHistoryNavigation () {\n webidl.brandCheck(this, Request)\n\n // The isHistoryNavigation getter steps are to return true if this\u2019s request\u2019s\n // history-navigation flag is set; otherwise false.\n return this[kState].historyNavigation\n }\n\n // Returns the signal associated with request, which is an AbortSignal\n // object indicating whether or not request has been aborted, and its\n // abort event handler.\n get signal () {\n webidl.brandCheck(this, Request)\n\n // The signal getter steps are to return this\u2019s signal.\n return this[kSignal]\n }\n\n get body () {\n webidl.brandCheck(this, Request)\n\n return this[kState].body ? this[kState].body.stream : null\n }\n\n get bodyUsed () {\n webidl.brandCheck(this, Request)\n\n return !!this[kState].body && util.isDisturbed(this[kState].body.stream)\n }\n\n get duplex () {\n webidl.brandCheck(this, Request)\n\n return 'half'\n }\n\n // Returns a clone of request.\n clone () {\n webidl.brandCheck(this, Request)\n\n // 1. If this is unusable, then throw a TypeError.\n if (bodyUnusable(this)) {\n throw new TypeError('unusable')\n }\n\n // 2. Let clonedRequest be the result of cloning this\u2019s request.\n const clonedRequest = cloneRequest(this[kState])\n\n // 3. Let clonedRequestObject be the result of creating a Request object,\n // given clonedRequest, this\u2019s headers\u2019s guard, and this\u2019s relevant Realm.\n // 4. Make clonedRequestObject\u2019s signal follow this\u2019s signal.\n const ac = new AbortController()\n if (this.signal.aborted) {\n ac.abort(this.signal.reason)\n } else {\n let list = dependentControllerMap.get(this.signal)\n if (list === undefined) {\n list = new Set()\n dependentControllerMap.set(this.signal, list)\n }\n const acRef = new WeakRef(ac)\n list.add(acRef)\n util.addAbortListener(\n ac.signal,\n buildAbort(acRef)\n )\n }\n\n // 4. Return clonedRequestObject.\n return fromInnerRequest(clonedRequest, ac.signal, getHeadersGuard(this[kHeaders]))\n }\n\n [nodeUtil.inspect.custom] (depth, options) {\n if (options.depth === null) {\n options.depth = 2\n }\n\n options.colors ??= true\n\n const properties = {\n method: this.method,\n url: this.url,\n headers: this.headers,\n destination: this.destination,\n referrer: this.referrer,\n referrerPolicy: this.referrerPolicy,\n mode: this.mode,\n credentials: this.credentials,\n cache: this.cache,\n redirect: this.redirect,\n integrity: this.integrity,\n keepalive: this.keepalive,\n isReloadNavigation: this.isReloadNavigation,\n isHistoryNavigation: this.isHistoryNavigation,\n signal: this.signal\n }\n\n return `Request ${nodeUtil.formatWithOptions(options, properties)}`\n }\n}\n\nmixinBody(Request)\n\n// https://fetch.spec.whatwg.org/#requests\nfunction makeRequest (init) {\n return {\n method: init.method ?? 'GET',\n localURLsOnly: init.localURLsOnly ?? false,\n unsafeRequest: init.unsafeRequest ?? false,\n body: init.body ?? null,\n client: init.client ?? null,\n reservedClient: init.reservedClient ?? null,\n replacesClientId: init.replacesClientId ?? '',\n window: init.window ?? 'client',\n keepalive: init.keepalive ?? false,\n serviceWorkers: init.serviceWorkers ?? 'all',\n initiator: init.initiator ?? '',\n destination: init.destination ?? '',\n priority: init.priority ?? null,\n origin: init.origin ?? 'client',\n policyContainer: init.policyContainer ?? 'client',\n referrer: init.referrer ?? 'client',\n referrerPolicy: init.referrerPolicy ?? '',\n mode: init.mode ?? 'no-cors',\n useCORSPreflightFlag: init.useCORSPreflightFlag ?? false,\n credentials: init.credentials ?? 'same-origin',\n useCredentials: init.useCredentials ?? false,\n cache: init.cache ?? 'default',\n redirect: init.redirect ?? 'follow',\n integrity: init.integrity ?? '',\n cryptoGraphicsNonceMetadata: init.cryptoGraphicsNonceMetadata ?? '',\n parserMetadata: init.parserMetadata ?? '',\n reloadNavigation: init.reloadNavigation ?? false,\n historyNavigation: init.historyNavigation ?? false,\n userActivation: init.userActivation ?? false,\n taintedOrigin: init.taintedOrigin ?? false,\n redirectCount: init.redirectCount ?? 0,\n responseTainting: init.responseTainting ?? 'basic',\n preventNoCacheCacheControlHeaderModification: init.preventNoCacheCacheControlHeaderModification ?? false,\n done: init.done ?? false,\n timingAllowFailed: init.timingAllowFailed ?? false,\n urlList: init.urlList,\n url: init.urlList[0],\n headersList: init.headersList\n ? new HeadersList(init.headersList)\n : new HeadersList()\n }\n}\n\n// https://fetch.spec.whatwg.org/#concept-request-clone\nfunction cloneRequest (request) {\n // To clone a request request, run these steps:\n\n // 1. Let newRequest be a copy of request, except for its body.\n const newRequest = makeRequest({ ...request, body: null })\n\n // 2. If request\u2019s body is non-null, set newRequest\u2019s body to the\n // result of cloning request\u2019s body.\n if (request.body != null) {\n newRequest.body = cloneBody(newRequest, request.body)\n }\n\n // 3. Return newRequest.\n return newRequest\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#request-create\n * @param {any} innerRequest\n * @param {AbortSignal} signal\n * @param {'request' | 'immutable' | 'request-no-cors' | 'response' | 'none'} guard\n * @returns {Request}\n */\nfunction fromInnerRequest (innerRequest, signal, guard) {\n const request = new Request(kConstruct)\n request[kState] = innerRequest\n request[kSignal] = signal\n request[kHeaders] = new Headers(kConstruct)\n setHeadersList(request[kHeaders], innerRequest.headersList)\n setHeadersGuard(request[kHeaders], guard)\n return request\n}\n\nObject.defineProperties(Request.prototype, {\n method: kEnumerableProperty,\n url: kEnumerableProperty,\n headers: kEnumerableProperty,\n redirect: kEnumerableProperty,\n clone: kEnumerableProperty,\n signal: kEnumerableProperty,\n duplex: kEnumerableProperty,\n destination: kEnumerableProperty,\n body: kEnumerableProperty,\n bodyUsed: kEnumerableProperty,\n isHistoryNavigation: kEnumerableProperty,\n isReloadNavigation: kEnumerableProperty,\n keepalive: kEnumerableProperty,\n integrity: kEnumerableProperty,\n cache: kEnumerableProperty,\n credentials: kEnumerableProperty,\n attribute: kEnumerableProperty,\n referrerPolicy: kEnumerableProperty,\n referrer: kEnumerableProperty,\n mode: kEnumerableProperty,\n [Symbol.toStringTag]: {\n value: 'Request',\n configurable: true\n }\n})\n\nwebidl.converters.Request = webidl.interfaceConverter(\n Request\n)\n\n// https://fetch.spec.whatwg.org/#requestinfo\nwebidl.converters.RequestInfo = function (V, prefix, argument) {\n if (typeof V === 'string') {\n return webidl.converters.USVString(V, prefix, argument)\n }\n\n if (V instanceof Request) {\n return webidl.converters.Request(V, prefix, argument)\n }\n\n return webidl.converters.USVString(V, prefix, argument)\n}\n\nwebidl.converters.AbortSignal = webidl.interfaceConverter(\n AbortSignal\n)\n\n// https://fetch.spec.whatwg.org/#requestinit\nwebidl.converters.RequestInit = webidl.dictionaryConverter([\n {\n key: 'method',\n converter: webidl.converters.ByteString\n },\n {\n key: 'headers',\n converter: webidl.converters.HeadersInit\n },\n {\n key: 'body',\n converter: webidl.nullableConverter(\n webidl.converters.BodyInit\n )\n },\n {\n key: 'referrer',\n converter: webidl.converters.USVString\n },\n {\n key: 'referrerPolicy',\n converter: webidl.converters.DOMString,\n // https://w3c.github.io/webappsec-referrer-policy/#referrer-policy\n allowedValues: referrerPolicy\n },\n {\n key: 'mode',\n converter: webidl.converters.DOMString,\n // https://fetch.spec.whatwg.org/#concept-request-mode\n allowedValues: requestMode\n },\n {\n key: 'credentials',\n converter: webidl.converters.DOMString,\n // https://fetch.spec.whatwg.org/#requestcredentials\n allowedValues: requestCredentials\n },\n {\n key: 'cache',\n converter: webidl.converters.DOMString,\n // https://fetch.spec.whatwg.org/#requestcache\n allowedValues: requestCache\n },\n {\n key: 'redirect',\n converter: webidl.converters.DOMString,\n // https://fetch.spec.whatwg.org/#requestredirect\n allowedValues: requestRedirect\n },\n {\n key: 'integrity',\n converter: webidl.converters.DOMString\n },\n {\n key: 'keepalive',\n converter: webidl.converters.boolean\n },\n {\n key: 'signal',\n converter: webidl.nullableConverter(\n (signal) => webidl.converters.AbortSignal(\n signal,\n 'RequestInit',\n 'signal',\n { strict: false }\n )\n )\n },\n {\n key: 'window',\n converter: webidl.converters.any\n },\n {\n key: 'duplex',\n converter: webidl.converters.DOMString,\n allowedValues: requestDuplex\n },\n {\n key: 'dispatcher', // undici specific option\n converter: webidl.converters.any\n }\n])\n\nmodule.exports = { Request, makeRequest, fromInnerRequest, cloneRequest }\n", "// https://github.com/Ethan-Arrowood/undici-fetch\n\n'use strict'\n\nconst {\n makeNetworkError,\n makeAppropriateNetworkError,\n filterResponse,\n makeResponse,\n fromInnerResponse\n} = require('./response')\nconst { HeadersList } = require('./headers')\nconst { Request, cloneRequest } = require('./request')\nconst zlib = require('node:zlib')\nconst {\n bytesMatch,\n makePolicyContainer,\n clonePolicyContainer,\n requestBadPort,\n TAOCheck,\n appendRequestOriginHeader,\n responseLocationURL,\n requestCurrentURL,\n setRequestReferrerPolicyOnRedirect,\n tryUpgradeRequestToAPotentiallyTrustworthyURL,\n createOpaqueTimingInfo,\n appendFetchMetadata,\n corsCheck,\n crossOriginResourcePolicyCheck,\n determineRequestsReferrer,\n coarsenedSharedCurrentTime,\n createDeferredPromise,\n isBlobLike,\n sameOrigin,\n isCancelled,\n isAborted,\n isErrorLike,\n fullyReadBody,\n readableStreamClose,\n isomorphicEncode,\n urlIsLocal,\n urlIsHttpHttpsScheme,\n urlHasHttpsScheme,\n clampAndCoarsenConnectionTimingInfo,\n simpleRangeHeaderValue,\n buildContentRange,\n createInflate,\n extractMimeType\n} = require('./util')\nconst { kState, kDispatcher } = require('./symbols')\nconst assert = require('node:assert')\nconst { safelyExtractBody, extractBody } = require('./body')\nconst {\n redirectStatusSet,\n nullBodyStatus,\n safeMethodsSet,\n requestBodyHeader,\n subresourceSet\n} = require('./constants')\nconst EE = require('node:events')\nconst { Readable, pipeline, finished } = require('node:stream')\nconst { addAbortListener, isErrored, isReadable, bufferToLowerCasedHeaderName } = require('../../core/util')\nconst { dataURLProcessor, serializeAMimeType, minimizeSupportedMimeType } = require('./data-url')\nconst { getGlobalDispatcher } = require('../../global')\nconst { webidl } = require('./webidl')\nconst { STATUS_CODES } = require('node:http')\nconst GET_OR_HEAD = ['GET', 'HEAD']\n\nconst defaultUserAgent = typeof __UNDICI_IS_NODE__ !== 'undefined' || typeof esbuildDetection !== 'undefined'\n ? 'node'\n : 'undici'\n\n/** @type {import('buffer').resolveObjectURL} */\nlet resolveObjectURL\n\nclass Fetch extends EE {\n constructor (dispatcher) {\n super()\n\n this.dispatcher = dispatcher\n this.connection = null\n this.dump = false\n this.state = 'ongoing'\n }\n\n terminate (reason) {\n if (this.state !== 'ongoing') {\n return\n }\n\n this.state = 'terminated'\n this.connection?.destroy(reason)\n this.emit('terminated', reason)\n }\n\n // https://fetch.spec.whatwg.org/#fetch-controller-abort\n abort (error) {\n if (this.state !== 'ongoing') {\n return\n }\n\n // 1. Set controller\u2019s state to \"aborted\".\n this.state = 'aborted'\n\n // 2. Let fallbackError be an \"AbortError\" DOMException.\n // 3. Set error to fallbackError if it is not given.\n if (!error) {\n error = new DOMException('The operation was aborted.', 'AbortError')\n }\n\n // 4. Let serializedError be StructuredSerialize(error).\n // If that threw an exception, catch it, and let\n // serializedError be StructuredSerialize(fallbackError).\n\n // 5. Set controller\u2019s serialized abort reason to serializedError.\n this.serializedAbortReason = error\n\n this.connection?.destroy(error)\n this.emit('terminated', error)\n }\n}\n\nfunction handleFetchDone (response) {\n finalizeAndReportTiming(response, 'fetch')\n}\n\n// https://fetch.spec.whatwg.org/#fetch-method\nfunction fetch (input, init = undefined) {\n webidl.argumentLengthCheck(arguments, 1, 'globalThis.fetch')\n\n // 1. Let p be a new promise.\n let p = createDeferredPromise()\n\n // 2. Let requestObject be the result of invoking the initial value of\n // Request as constructor with input and init as arguments. If this throws\n // an exception, reject p with it and return p.\n let requestObject\n\n try {\n requestObject = new Request(input, init)\n } catch (e) {\n p.reject(e)\n return p.promise\n }\n\n // 3. Let request be requestObject\u2019s request.\n const request = requestObject[kState]\n\n // 4. If requestObject\u2019s signal\u2019s aborted flag is set, then:\n if (requestObject.signal.aborted) {\n // 1. Abort the fetch() call with p, request, null, and\n // requestObject\u2019s signal\u2019s abort reason.\n abortFetch(p, request, null, requestObject.signal.reason)\n\n // 2. Return p.\n return p.promise\n }\n\n // 5. Let globalObject be request\u2019s client\u2019s global object.\n const globalObject = request.client.globalObject\n\n // 6. If globalObject is a ServiceWorkerGlobalScope object, then set\n // request\u2019s service-workers mode to \"none\".\n if (globalObject?.constructor?.name === 'ServiceWorkerGlobalScope') {\n request.serviceWorkers = 'none'\n }\n\n // 7. Let responseObject be null.\n let responseObject = null\n\n // 8. Let relevantRealm be this\u2019s relevant Realm.\n\n // 9. Let locallyAborted be false.\n let locallyAborted = false\n\n // 10. Let controller be null.\n let controller = null\n\n // 11. Add the following abort steps to requestObject\u2019s signal:\n addAbortListener(\n requestObject.signal,\n () => {\n // 1. Set locallyAborted to true.\n locallyAborted = true\n\n // 2. Assert: controller is non-null.\n assert(controller != null)\n\n // 3. Abort controller with requestObject\u2019s signal\u2019s abort reason.\n controller.abort(requestObject.signal.reason)\n\n const realResponse = responseObject?.deref()\n\n // 4. Abort the fetch() call with p, request, responseObject,\n // and requestObject\u2019s signal\u2019s abort reason.\n abortFetch(p, request, realResponse, requestObject.signal.reason)\n }\n )\n\n // 12. Let handleFetchDone given response response be to finalize and\n // report timing with response, globalObject, and \"fetch\".\n // see function handleFetchDone\n\n // 13. Set controller to the result of calling fetch given request,\n // with processResponseEndOfBody set to handleFetchDone, and processResponse\n // given response being these substeps:\n\n const processResponse = (response) => {\n // 1. If locallyAborted is true, terminate these substeps.\n if (locallyAborted) {\n return\n }\n\n // 2. If response\u2019s aborted flag is set, then:\n if (response.aborted) {\n // 1. Let deserializedError be the result of deserialize a serialized\n // abort reason given controller\u2019s serialized abort reason and\n // relevantRealm.\n\n // 2. Abort the fetch() call with p, request, responseObject, and\n // deserializedError.\n\n abortFetch(p, request, responseObject, controller.serializedAbortReason)\n return\n }\n\n // 3. If response is a network error, then reject p with a TypeError\n // and terminate these substeps.\n if (response.type === 'error') {\n p.reject(new TypeError('fetch failed', { cause: response.error }))\n return\n }\n\n // 4. Set responseObject to the result of creating a Response object,\n // given response, \"immutable\", and relevantRealm.\n responseObject = new WeakRef(fromInnerResponse(response, 'immutable'))\n\n // 5. Resolve p with responseObject.\n p.resolve(responseObject.deref())\n p = null\n }\n\n controller = fetching({\n request,\n processResponseEndOfBody: handleFetchDone,\n processResponse,\n dispatcher: requestObject[kDispatcher] // undici\n })\n\n // 14. Return p.\n return p.promise\n}\n\n// https://fetch.spec.whatwg.org/#finalize-and-report-timing\nfunction finalizeAndReportTiming (response, initiatorType = 'other') {\n // 1. If response is an aborted network error, then return.\n if (response.type === 'error' && response.aborted) {\n return\n }\n\n // 2. If response\u2019s URL list is null or empty, then return.\n if (!response.urlList?.length) {\n return\n }\n\n // 3. Let originalURL be response\u2019s URL list[0].\n const originalURL = response.urlList[0]\n\n // 4. Let timingInfo be response\u2019s timing info.\n let timingInfo = response.timingInfo\n\n // 5. Let cacheState be response\u2019s cache state.\n let cacheState = response.cacheState\n\n // 6. If originalURL\u2019s scheme is not an HTTP(S) scheme, then return.\n if (!urlIsHttpHttpsScheme(originalURL)) {\n return\n }\n\n // 7. If timingInfo is null, then return.\n if (timingInfo === null) {\n return\n }\n\n // 8. If response\u2019s timing allow passed flag is not set, then:\n if (!response.timingAllowPassed) {\n // 1. Set timingInfo to a the result of creating an opaque timing info for timingInfo.\n timingInfo = createOpaqueTimingInfo({\n startTime: timingInfo.startTime\n })\n\n // 2. Set cacheState to the empty string.\n cacheState = ''\n }\n\n // 9. Set timingInfo\u2019s end time to the coarsened shared current time\n // given global\u2019s relevant settings object\u2019s cross-origin isolated\n // capability.\n // TODO: given global\u2019s relevant settings object\u2019s cross-origin isolated\n // capability?\n timingInfo.endTime = coarsenedSharedCurrentTime()\n\n // 10. Set response\u2019s timing info to timingInfo.\n response.timingInfo = timingInfo\n\n // 11. Mark resource timing for timingInfo, originalURL, initiatorType,\n // global, and cacheState.\n markResourceTiming(\n timingInfo,\n originalURL.href,\n initiatorType,\n globalThis,\n cacheState\n )\n}\n\n// https://w3c.github.io/resource-timing/#dfn-mark-resource-timing\nconst markResourceTiming = performance.markResourceTiming\n\n// https://fetch.spec.whatwg.org/#abort-fetch\nfunction abortFetch (p, request, responseObject, error) {\n // 1. Reject promise with error.\n if (p) {\n // We might have already resolved the promise at this stage\n p.reject(error)\n }\n\n // 2. If request\u2019s body is not null and is readable, then cancel request\u2019s\n // body with error.\n if (request.body != null && isReadable(request.body?.stream)) {\n request.body.stream.cancel(error).catch((err) => {\n if (err.code === 'ERR_INVALID_STATE') {\n // Node bug?\n return\n }\n throw err\n })\n }\n\n // 3. If responseObject is null, then return.\n if (responseObject == null) {\n return\n }\n\n // 4. Let response be responseObject\u2019s response.\n const response = responseObject[kState]\n\n // 5. If response\u2019s body is not null and is readable, then error response\u2019s\n // body with error.\n if (response.body != null && isReadable(response.body?.stream)) {\n response.body.stream.cancel(error).catch((err) => {\n if (err.code === 'ERR_INVALID_STATE') {\n // Node bug?\n return\n }\n throw err\n })\n }\n}\n\n// https://fetch.spec.whatwg.org/#fetching\nfunction fetching ({\n request,\n processRequestBodyChunkLength,\n processRequestEndOfBody,\n processResponse,\n processResponseEndOfBody,\n processResponseConsumeBody,\n useParallelQueue = false,\n dispatcher = getGlobalDispatcher() // undici\n}) {\n // Ensure that the dispatcher is set accordingly\n assert(dispatcher)\n\n // 1. Let taskDestination be null.\n let taskDestination = null\n\n // 2. Let crossOriginIsolatedCapability be false.\n let crossOriginIsolatedCapability = false\n\n // 3. If request\u2019s client is non-null, then:\n if (request.client != null) {\n // 1. Set taskDestination to request\u2019s client\u2019s global object.\n taskDestination = request.client.globalObject\n\n // 2. Set crossOriginIsolatedCapability to request\u2019s client\u2019s cross-origin\n // isolated capability.\n crossOriginIsolatedCapability =\n request.client.crossOriginIsolatedCapability\n }\n\n // 4. If useParallelQueue is true, then set taskDestination to the result of\n // starting a new parallel queue.\n // TODO\n\n // 5. Let timingInfo be a new fetch timing info whose start time and\n // post-redirect start time are the coarsened shared current time given\n // crossOriginIsolatedCapability.\n const currentTime = coarsenedSharedCurrentTime(crossOriginIsolatedCapability)\n const timingInfo = createOpaqueTimingInfo({\n startTime: currentTime\n })\n\n // 6. Let fetchParams be a new fetch params whose\n // request is request,\n // timing info is timingInfo,\n // process request body chunk length is processRequestBodyChunkLength,\n // process request end-of-body is processRequestEndOfBody,\n // process response is processResponse,\n // process response consume body is processResponseConsumeBody,\n // process response end-of-body is processResponseEndOfBody,\n // task destination is taskDestination,\n // and cross-origin isolated capability is crossOriginIsolatedCapability.\n const fetchParams = {\n controller: new Fetch(dispatcher),\n request,\n timingInfo,\n processRequestBodyChunkLength,\n processRequestEndOfBody,\n processResponse,\n processResponseConsumeBody,\n processResponseEndOfBody,\n taskDestination,\n crossOriginIsolatedCapability\n }\n\n // 7. If request\u2019s body is a byte sequence, then set request\u2019s body to\n // request\u2019s body as a body.\n // NOTE: Since fetching is only called from fetch, body should already be\n // extracted.\n assert(!request.body || request.body.stream)\n\n // 8. If request\u2019s window is \"client\", then set request\u2019s window to request\u2019s\n // client, if request\u2019s client\u2019s global object is a Window object; otherwise\n // \"no-window\".\n if (request.window === 'client') {\n // TODO: What if request.client is null?\n request.window =\n request.client?.globalObject?.constructor?.name === 'Window'\n ? request.client\n : 'no-window'\n }\n\n // 9. If request\u2019s origin is \"client\", then set request\u2019s origin to request\u2019s\n // client\u2019s origin.\n if (request.origin === 'client') {\n request.origin = request.client.origin\n }\n\n // 10. If all of the following conditions are true:\n // TODO\n\n // 11. If request\u2019s policy container is \"client\", then:\n if (request.policyContainer === 'client') {\n // 1. If request\u2019s client is non-null, then set request\u2019s policy\n // container to a clone of request\u2019s client\u2019s policy container. [HTML]\n if (request.client != null) {\n request.policyContainer = clonePolicyContainer(\n request.client.policyContainer\n )\n } else {\n // 2. Otherwise, set request\u2019s policy container to a new policy\n // container.\n request.policyContainer = makePolicyContainer()\n }\n }\n\n // 12. If request\u2019s header list does not contain `Accept`, then:\n if (!request.headersList.contains('accept', true)) {\n // 1. Let value be `*/*`.\n const value = '*/*'\n\n // 2. A user agent should set value to the first matching statement, if\n // any, switching on request\u2019s destination:\n // \"document\"\n // \"frame\"\n // \"iframe\"\n // `text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8`\n // \"image\"\n // `image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5`\n // \"style\"\n // `text/css,*/*;q=0.1`\n // TODO\n\n // 3. Append `Accept`/value to request\u2019s header list.\n request.headersList.append('accept', value, true)\n }\n\n // 13. If request\u2019s header list does not contain `Accept-Language`, then\n // user agents should append `Accept-Language`/an appropriate value to\n // request\u2019s header list.\n if (!request.headersList.contains('accept-language', true)) {\n request.headersList.append('accept-language', '*', true)\n }\n\n // 14. If request\u2019s priority is null, then use request\u2019s initiator and\n // destination appropriately in setting request\u2019s priority to a\n // user-agent-defined object.\n if (request.priority === null) {\n // TODO\n }\n\n // 15. If request is a subresource request, then:\n if (subresourceSet.has(request.destination)) {\n // TODO\n }\n\n // 16. Run main fetch given fetchParams.\n mainFetch(fetchParams)\n .catch(err => {\n fetchParams.controller.terminate(err)\n })\n\n // 17. Return fetchParam's controller\n return fetchParams.controller\n}\n\n// https://fetch.spec.whatwg.org/#concept-main-fetch\nasync function mainFetch (fetchParams, recursive = false) {\n // 1. Let request be fetchParams\u2019s request.\n const request = fetchParams.request\n\n // 2. Let response be null.\n let response = null\n\n // 3. If request\u2019s local-URLs-only flag is set and request\u2019s current URL is\n // not local, then set response to a network error.\n if (request.localURLsOnly && !urlIsLocal(requestCurrentURL(request))) {\n response = makeNetworkError('local URLs only')\n }\n\n // 4. Run report Content Security Policy violations for request.\n // TODO\n\n // 5. Upgrade request to a potentially trustworthy URL, if appropriate.\n tryUpgradeRequestToAPotentiallyTrustworthyURL(request)\n\n // 6. If should request be blocked due to a bad port, should fetching request\n // be blocked as mixed content, or should request be blocked by Content\n // Security Policy returns blocked, then set response to a network error.\n if (requestBadPort(request) === 'blocked') {\n response = makeNetworkError('bad port')\n }\n // TODO: should fetching request be blocked as mixed content?\n // TODO: should request be blocked by Content Security Policy?\n\n // 7. If request\u2019s referrer policy is the empty string, then set request\u2019s\n // referrer policy to request\u2019s policy container\u2019s referrer policy.\n if (request.referrerPolicy === '') {\n request.referrerPolicy = request.policyContainer.referrerPolicy\n }\n\n // 8. If request\u2019s referrer is not \"no-referrer\", then set request\u2019s\n // referrer to the result of invoking determine request\u2019s referrer.\n if (request.referrer !== 'no-referrer') {\n request.referrer = determineRequestsReferrer(request)\n }\n\n // 9. Set request\u2019s current URL\u2019s scheme to \"https\" if all of the following\n // conditions are true:\n // - request\u2019s current URL\u2019s scheme is \"http\"\n // - request\u2019s current URL\u2019s host is a domain\n // - Matching request\u2019s current URL\u2019s host per Known HSTS Host Domain Name\n // Matching results in either a superdomain match with an asserted\n // includeSubDomains directive or a congruent match (with or without an\n // asserted includeSubDomains directive). [HSTS]\n // TODO\n\n // 10. If recursive is false, then run the remaining steps in parallel.\n // TODO\n\n // 11. If response is null, then set response to the result of running\n // the steps corresponding to the first matching statement:\n if (response === null) {\n response = await (async () => {\n const currentURL = requestCurrentURL(request)\n\n if (\n // - request\u2019s current URL\u2019s origin is same origin with request\u2019s origin,\n // and request\u2019s response tainting is \"basic\"\n (sameOrigin(currentURL, request.url) && request.responseTainting === 'basic') ||\n // request\u2019s current URL\u2019s scheme is \"data\"\n (currentURL.protocol === 'data:') ||\n // - request\u2019s mode is \"navigate\" or \"websocket\"\n (request.mode === 'navigate' || request.mode === 'websocket')\n ) {\n // 1. Set request\u2019s response tainting to \"basic\".\n request.responseTainting = 'basic'\n\n // 2. Return the result of running scheme fetch given fetchParams.\n return await schemeFetch(fetchParams)\n }\n\n // request\u2019s mode is \"same-origin\"\n if (request.mode === 'same-origin') {\n // 1. Return a network error.\n return makeNetworkError('request mode cannot be \"same-origin\"')\n }\n\n // request\u2019s mode is \"no-cors\"\n if (request.mode === 'no-cors') {\n // 1. If request\u2019s redirect mode is not \"follow\", then return a network\n // error.\n if (request.redirect !== 'follow') {\n return makeNetworkError(\n 'redirect mode cannot be \"follow\" for \"no-cors\" request'\n )\n }\n\n // 2. Set request\u2019s response tainting to \"opaque\".\n request.responseTainting = 'opaque'\n\n // 3. Return the result of running scheme fetch given fetchParams.\n return await schemeFetch(fetchParams)\n }\n\n // request\u2019s current URL\u2019s scheme is not an HTTP(S) scheme\n if (!urlIsHttpHttpsScheme(requestCurrentURL(request))) {\n // Return a network error.\n return makeNetworkError('URL scheme must be a HTTP(S) scheme')\n }\n\n // - request\u2019s use-CORS-preflight flag is set\n // - request\u2019s unsafe-request flag is set and either request\u2019s method is\n // not a CORS-safelisted method or CORS-unsafe request-header names with\n // request\u2019s header list is not empty\n // 1. Set request\u2019s response tainting to \"cors\".\n // 2. Let corsWithPreflightResponse be the result of running HTTP fetch\n // given fetchParams and true.\n // 3. If corsWithPreflightResponse is a network error, then clear cache\n // entries using request.\n // 4. Return corsWithPreflightResponse.\n // TODO\n\n // Otherwise\n // 1. Set request\u2019s response tainting to \"cors\".\n request.responseTainting = 'cors'\n\n // 2. Return the result of running HTTP fetch given fetchParams.\n return await httpFetch(fetchParams)\n })()\n }\n\n // 12. If recursive is true, then return response.\n if (recursive) {\n return response\n }\n\n // 13. If response is not a network error and response is not a filtered\n // response, then:\n if (response.status !== 0 && !response.internalResponse) {\n // If request\u2019s response tainting is \"cors\", then:\n if (request.responseTainting === 'cors') {\n // 1. Let headerNames be the result of extracting header list values\n // given `Access-Control-Expose-Headers` and response\u2019s header list.\n // TODO\n // 2. If request\u2019s credentials mode is not \"include\" and headerNames\n // contains `*`, then set response\u2019s CORS-exposed header-name list to\n // all unique header names in response\u2019s header list.\n // TODO\n // 3. Otherwise, if headerNames is not null or failure, then set\n // response\u2019s CORS-exposed header-name list to headerNames.\n // TODO\n }\n\n // Set response to the following filtered response with response as its\n // internal response, depending on request\u2019s response tainting:\n if (request.responseTainting === 'basic') {\n response = filterResponse(response, 'basic')\n } else if (request.responseTainting === 'cors') {\n response = filterResponse(response, 'cors')\n } else if (request.responseTainting === 'opaque') {\n response = filterResponse(response, 'opaque')\n } else {\n assert(false)\n }\n }\n\n // 14. Let internalResponse be response, if response is a network error,\n // and response\u2019s internal response otherwise.\n let internalResponse =\n response.status === 0 ? response : response.internalResponse\n\n // 15. If internalResponse\u2019s URL list is empty, then set it to a clone of\n // request\u2019s URL list.\n if (internalResponse.urlList.length === 0) {\n internalResponse.urlList.push(...request.urlList)\n }\n\n // 16. If request\u2019s timing allow failed flag is unset, then set\n // internalResponse\u2019s timing allow passed flag.\n if (!request.timingAllowFailed) {\n response.timingAllowPassed = true\n }\n\n // 17. If response is not a network error and any of the following returns\n // blocked\n // - should internalResponse to request be blocked as mixed content\n // - should internalResponse to request be blocked by Content Security Policy\n // - should internalResponse to request be blocked due to its MIME type\n // - should internalResponse to request be blocked due to nosniff\n // TODO\n\n // 18. If response\u2019s type is \"opaque\", internalResponse\u2019s status is 206,\n // internalResponse\u2019s range-requested flag is set, and request\u2019s header\n // list does not contain `Range`, then set response and internalResponse\n // to a network error.\n if (\n response.type === 'opaque' &&\n internalResponse.status === 206 &&\n internalResponse.rangeRequested &&\n !request.headers.contains('range', true)\n ) {\n response = internalResponse = makeNetworkError()\n }\n\n // 19. If response is not a network error and either request\u2019s method is\n // `HEAD` or `CONNECT`, or internalResponse\u2019s status is a null body status,\n // set internalResponse\u2019s body to null and disregard any enqueuing toward\n // it (if any).\n if (\n response.status !== 0 &&\n (request.method === 'HEAD' ||\n request.method === 'CONNECT' ||\n nullBodyStatus.includes(internalResponse.status))\n ) {\n internalResponse.body = null\n fetchParams.controller.dump = true\n }\n\n // 20. If request\u2019s integrity metadata is not the empty string, then:\n if (request.integrity) {\n // 1. Let processBodyError be this step: run fetch finale given fetchParams\n // and a network error.\n const processBodyError = (reason) =>\n fetchFinale(fetchParams, makeNetworkError(reason))\n\n // 2. If request\u2019s response tainting is \"opaque\", or response\u2019s body is null,\n // then run processBodyError and abort these steps.\n if (request.responseTainting === 'opaque' || response.body == null) {\n processBodyError(response.error)\n return\n }\n\n // 3. Let processBody given bytes be these steps:\n const processBody = (bytes) => {\n // 1. If bytes do not match request\u2019s integrity metadata,\n // then run processBodyError and abort these steps. [SRI]\n if (!bytesMatch(bytes, request.integrity)) {\n processBodyError('integrity mismatch')\n return\n }\n\n // 2. Set response\u2019s body to bytes as a body.\n response.body = safelyExtractBody(bytes)[0]\n\n // 3. Run fetch finale given fetchParams and response.\n fetchFinale(fetchParams, response)\n }\n\n // 4. Fully read response\u2019s body given processBody and processBodyError.\n await fullyReadBody(response.body, processBody, processBodyError)\n } else {\n // 21. Otherwise, run fetch finale given fetchParams and response.\n fetchFinale(fetchParams, response)\n }\n}\n\n// https://fetch.spec.whatwg.org/#concept-scheme-fetch\n// given a fetch params fetchParams\nfunction schemeFetch (fetchParams) {\n // Note: since the connection is destroyed on redirect, which sets fetchParams to a\n // cancelled state, we do not want this condition to trigger *unless* there have been\n // no redirects. See https://github.com/nodejs/undici/issues/1776\n // 1. If fetchParams is canceled, then return the appropriate network error for fetchParams.\n if (isCancelled(fetchParams) && fetchParams.request.redirectCount === 0) {\n return Promise.resolve(makeAppropriateNetworkError(fetchParams))\n }\n\n // 2. Let request be fetchParams\u2019s request.\n const { request } = fetchParams\n\n const { protocol: scheme } = requestCurrentURL(request)\n\n // 3. Switch on request\u2019s current URL\u2019s scheme and run the associated steps:\n switch (scheme) {\n case 'about:': {\n // If request\u2019s current URL\u2019s path is the string \"blank\", then return a new response\n // whose status message is `OK`, header list is \u00AB (`Content-Type`, `text/html;charset=utf-8`) \u00BB,\n // and body is the empty byte sequence as a body.\n\n // Otherwise, return a network error.\n return Promise.resolve(makeNetworkError('about scheme is not supported'))\n }\n case 'blob:': {\n if (!resolveObjectURL) {\n resolveObjectURL = require('node:buffer').resolveObjectURL\n }\n\n // 1. Let blobURLEntry be request\u2019s current URL\u2019s blob URL entry.\n const blobURLEntry = requestCurrentURL(request)\n\n // https://github.com/web-platform-tests/wpt/blob/7b0ebaccc62b566a1965396e5be7bb2bc06f841f/FileAPI/url/resources/fetch-tests.js#L52-L56\n // Buffer.resolveObjectURL does not ignore URL queries.\n if (blobURLEntry.search.length !== 0) {\n return Promise.resolve(makeNetworkError('NetworkError when attempting to fetch resource.'))\n }\n\n const blob = resolveObjectURL(blobURLEntry.toString())\n\n // 2. If request\u2019s method is not `GET`, blobURLEntry is null, or blobURLEntry\u2019s\n // object is not a Blob object, then return a network error.\n if (request.method !== 'GET' || !isBlobLike(blob)) {\n return Promise.resolve(makeNetworkError('invalid method'))\n }\n\n // 3. Let blob be blobURLEntry\u2019s object.\n // Note: done above\n\n // 4. Let response be a new response.\n const response = makeResponse()\n\n // 5. Let fullLength be blob\u2019s size.\n const fullLength = blob.size\n\n // 6. Let serializedFullLength be fullLength, serialized and isomorphic encoded.\n const serializedFullLength = isomorphicEncode(`${fullLength}`)\n\n // 7. Let type be blob\u2019s type.\n const type = blob.type\n\n // 8. If request\u2019s header list does not contain `Range`:\n // 9. Otherwise:\n if (!request.headersList.contains('range', true)) {\n // 1. Let bodyWithType be the result of safely extracting blob.\n // Note: in the FileAPI a blob \"object\" is a Blob *or* a MediaSource.\n // In node, this can only ever be a Blob. Therefore we can safely\n // use extractBody directly.\n const bodyWithType = extractBody(blob)\n\n // 2. Set response\u2019s status message to `OK`.\n response.statusText = 'OK'\n\n // 3. Set response\u2019s body to bodyWithType\u2019s body.\n response.body = bodyWithType[0]\n\n // 4. Set response\u2019s header list to \u00AB (`Content-Length`, serializedFullLength), (`Content-Type`, type) \u00BB.\n response.headersList.set('content-length', serializedFullLength, true)\n response.headersList.set('content-type', type, true)\n } else {\n // 1. Set response\u2019s range-requested flag.\n response.rangeRequested = true\n\n // 2. Let rangeHeader be the result of getting `Range` from request\u2019s header list.\n const rangeHeader = request.headersList.get('range', true)\n\n // 3. Let rangeValue be the result of parsing a single range header value given rangeHeader and true.\n const rangeValue = simpleRangeHeaderValue(rangeHeader, true)\n\n // 4. If rangeValue is failure, then return a network error.\n if (rangeValue === 'failure') {\n return Promise.resolve(makeNetworkError('failed to fetch the data URL'))\n }\n\n // 5. Let (rangeStart, rangeEnd) be rangeValue.\n let { rangeStartValue: rangeStart, rangeEndValue: rangeEnd } = rangeValue\n\n // 6. If rangeStart is null:\n // 7. Otherwise:\n if (rangeStart === null) {\n // 1. Set rangeStart to fullLength \u2212 rangeEnd.\n rangeStart = fullLength - rangeEnd\n\n // 2. Set rangeEnd to rangeStart + rangeEnd \u2212 1.\n rangeEnd = rangeStart + rangeEnd - 1\n } else {\n // 1. If rangeStart is greater than or equal to fullLength, then return a network error.\n if (rangeStart >= fullLength) {\n return Promise.resolve(makeNetworkError('Range start is greater than the blob\\'s size.'))\n }\n\n // 2. If rangeEnd is null or rangeEnd is greater than or equal to fullLength, then set\n // rangeEnd to fullLength \u2212 1.\n if (rangeEnd === null || rangeEnd >= fullLength) {\n rangeEnd = fullLength - 1\n }\n }\n\n // 8. Let slicedBlob be the result of invoking slice blob given blob, rangeStart,\n // rangeEnd + 1, and type.\n const slicedBlob = blob.slice(rangeStart, rangeEnd, type)\n\n // 9. Let slicedBodyWithType be the result of safely extracting slicedBlob.\n // Note: same reason as mentioned above as to why we use extractBody\n const slicedBodyWithType = extractBody(slicedBlob)\n\n // 10. Set response\u2019s body to slicedBodyWithType\u2019s body.\n response.body = slicedBodyWithType[0]\n\n // 11. Let serializedSlicedLength be slicedBlob\u2019s size, serialized and isomorphic encoded.\n const serializedSlicedLength = isomorphicEncode(`${slicedBlob.size}`)\n\n // 12. Let contentRange be the result of invoking build a content range given rangeStart,\n // rangeEnd, and fullLength.\n const contentRange = buildContentRange(rangeStart, rangeEnd, fullLength)\n\n // 13. Set response\u2019s status to 206.\n response.status = 206\n\n // 14. Set response\u2019s status message to `Partial Content`.\n response.statusText = 'Partial Content'\n\n // 15. Set response\u2019s header list to \u00AB (`Content-Length`, serializedSlicedLength),\n // (`Content-Type`, type), (`Content-Range`, contentRange) \u00BB.\n response.headersList.set('content-length', serializedSlicedLength, true)\n response.headersList.set('content-type', type, true)\n response.headersList.set('content-range', contentRange, true)\n }\n\n // 10. Return response.\n return Promise.resolve(response)\n }\n case 'data:': {\n // 1. Let dataURLStruct be the result of running the\n // data: URL processor on request\u2019s current URL.\n const currentURL = requestCurrentURL(request)\n const dataURLStruct = dataURLProcessor(currentURL)\n\n // 2. If dataURLStruct is failure, then return a\n // network error.\n if (dataURLStruct === 'failure') {\n return Promise.resolve(makeNetworkError('failed to fetch the data URL'))\n }\n\n // 3. Let mimeType be dataURLStruct\u2019s MIME type, serialized.\n const mimeType = serializeAMimeType(dataURLStruct.mimeType)\n\n // 4. Return a response whose status message is `OK`,\n // header list is \u00AB (`Content-Type`, mimeType) \u00BB,\n // and body is dataURLStruct\u2019s body as a body.\n return Promise.resolve(makeResponse({\n statusText: 'OK',\n headersList: [\n ['content-type', { name: 'Content-Type', value: mimeType }]\n ],\n body: safelyExtractBody(dataURLStruct.body)[0]\n }))\n }\n case 'file:': {\n // For now, unfortunate as it is, file URLs are left as an exercise for the reader.\n // When in doubt, return a network error.\n return Promise.resolve(makeNetworkError('not implemented... yet...'))\n }\n case 'http:':\n case 'https:': {\n // Return the result of running HTTP fetch given fetchParams.\n\n return httpFetch(fetchParams)\n .catch((err) => makeNetworkError(err))\n }\n default: {\n return Promise.resolve(makeNetworkError('unknown scheme'))\n }\n }\n}\n\n// https://fetch.spec.whatwg.org/#finalize-response\nfunction finalizeResponse (fetchParams, response) {\n // 1. Set fetchParams\u2019s request\u2019s done flag.\n fetchParams.request.done = true\n\n // 2, If fetchParams\u2019s process response done is not null, then queue a fetch\n // task to run fetchParams\u2019s process response done given response, with\n // fetchParams\u2019s task destination.\n if (fetchParams.processResponseDone != null) {\n queueMicrotask(() => fetchParams.processResponseDone(response))\n }\n}\n\n// https://fetch.spec.whatwg.org/#fetch-finale\nfunction fetchFinale (fetchParams, response) {\n // 1. Let timingInfo be fetchParams\u2019s timing info.\n let timingInfo = fetchParams.timingInfo\n\n // 2. If response is not a network error and fetchParams\u2019s request\u2019s client is a secure context,\n // then set timingInfo\u2019s server-timing headers to the result of getting, decoding, and splitting\n // `Server-Timing` from response\u2019s internal response\u2019s header list.\n // TODO\n\n // 3. Let processResponseEndOfBody be the following steps:\n const processResponseEndOfBody = () => {\n // 1. Let unsafeEndTime be the unsafe shared current time.\n const unsafeEndTime = Date.now() // ?\n\n // 2. If fetchParams\u2019s request\u2019s destination is \"document\", then set fetchParams\u2019s controller\u2019s\n // full timing info to fetchParams\u2019s timing info.\n if (fetchParams.request.destination === 'document') {\n fetchParams.controller.fullTimingInfo = timingInfo\n }\n\n // 3. Set fetchParams\u2019s controller\u2019s report timing steps to the following steps given a global object global:\n fetchParams.controller.reportTimingSteps = () => {\n // 1. If fetchParams\u2019s request\u2019s URL\u2019s scheme is not an HTTP(S) scheme, then return.\n if (fetchParams.request.url.protocol !== 'https:') {\n return\n }\n\n // 2. Set timingInfo\u2019s end time to the relative high resolution time given unsafeEndTime and global.\n timingInfo.endTime = unsafeEndTime\n\n // 3. Let cacheState be response\u2019s cache state.\n let cacheState = response.cacheState\n\n // 4. Let bodyInfo be response\u2019s body info.\n const bodyInfo = response.bodyInfo\n\n // 5. If response\u2019s timing allow passed flag is not set, then set timingInfo to the result of creating an\n // opaque timing info for timingInfo and set cacheState to the empty string.\n if (!response.timingAllowPassed) {\n timingInfo = createOpaqueTimingInfo(timingInfo)\n\n cacheState = ''\n }\n\n // 6. Let responseStatus be 0.\n let responseStatus = 0\n\n // 7. If fetchParams\u2019s request\u2019s mode is not \"navigate\" or response\u2019s has-cross-origin-redirects is false:\n if (fetchParams.request.mode !== 'navigator' || !response.hasCrossOriginRedirects) {\n // 1. Set responseStatus to response\u2019s status.\n responseStatus = response.status\n\n // 2. Let mimeType be the result of extracting a MIME type from response\u2019s header list.\n const mimeType = extractMimeType(response.headersList)\n\n // 3. If mimeType is not failure, then set bodyInfo\u2019s content type to the result of minimizing a supported MIME type given mimeType.\n if (mimeType !== 'failure') {\n bodyInfo.contentType = minimizeSupportedMimeType(mimeType)\n }\n }\n\n // 8. If fetchParams\u2019s request\u2019s initiator type is non-null, then mark resource timing given timingInfo,\n // fetchParams\u2019s request\u2019s URL, fetchParams\u2019s request\u2019s initiator type, global, cacheState, bodyInfo,\n // and responseStatus.\n if (fetchParams.request.initiatorType != null) {\n // TODO: update markresourcetiming\n markResourceTiming(timingInfo, fetchParams.request.url.href, fetchParams.request.initiatorType, globalThis, cacheState, bodyInfo, responseStatus)\n }\n }\n\n // 4. Let processResponseEndOfBodyTask be the following steps:\n const processResponseEndOfBodyTask = () => {\n // 1. Set fetchParams\u2019s request\u2019s done flag.\n fetchParams.request.done = true\n\n // 2. If fetchParams\u2019s process response end-of-body is non-null, then run fetchParams\u2019s process\n // response end-of-body given response.\n if (fetchParams.processResponseEndOfBody != null) {\n queueMicrotask(() => fetchParams.processResponseEndOfBody(response))\n }\n\n // 3. If fetchParams\u2019s request\u2019s initiator type is non-null and fetchParams\u2019s request\u2019s client\u2019s\n // global object is fetchParams\u2019s task destination, then run fetchParams\u2019s controller\u2019s report\n // timing steps given fetchParams\u2019s request\u2019s client\u2019s global object.\n if (fetchParams.request.initiatorType != null) {\n fetchParams.controller.reportTimingSteps()\n }\n }\n\n // 5. Queue a fetch task to run processResponseEndOfBodyTask with fetchParams\u2019s task destination\n queueMicrotask(() => processResponseEndOfBodyTask())\n }\n\n // 4. If fetchParams\u2019s process response is non-null, then queue a fetch task to run fetchParams\u2019s\n // process response given response, with fetchParams\u2019s task destination.\n if (fetchParams.processResponse != null) {\n queueMicrotask(() => {\n fetchParams.processResponse(response)\n fetchParams.processResponse = null\n })\n }\n\n // 5. Let internalResponse be response, if response is a network error; otherwise response\u2019s internal response.\n const internalResponse = response.type === 'error' ? response : (response.internalResponse ?? response)\n\n // 6. If internalResponse\u2019s body is null, then run processResponseEndOfBody.\n // 7. Otherwise:\n if (internalResponse.body == null) {\n processResponseEndOfBody()\n } else {\n // mcollina: all the following steps of the specs are skipped.\n // The internal transform stream is not needed.\n // See https://github.com/nodejs/undici/pull/3093#issuecomment-2050198541\n\n // 1. Let transformStream be a new TransformStream.\n // 2. Let identityTransformAlgorithm be an algorithm which, given chunk, enqueues chunk in transformStream.\n // 3. Set up transformStream with transformAlgorithm set to identityTransformAlgorithm and flushAlgorithm\n // set to processResponseEndOfBody.\n // 4. Set internalResponse\u2019s body\u2019s stream to the result of internalResponse\u2019s body\u2019s stream piped through transformStream.\n\n finished(internalResponse.body.stream, () => {\n processResponseEndOfBody()\n })\n }\n}\n\n// https://fetch.spec.whatwg.org/#http-fetch\nasync function httpFetch (fetchParams) {\n // 1. Let request be fetchParams\u2019s request.\n const request = fetchParams.request\n\n // 2. Let response be null.\n let response = null\n\n // 3. Let actualResponse be null.\n let actualResponse = null\n\n // 4. Let timingInfo be fetchParams\u2019s timing info.\n const timingInfo = fetchParams.timingInfo\n\n // 5. If request\u2019s service-workers mode is \"all\", then:\n if (request.serviceWorkers === 'all') {\n // TODO\n }\n\n // 6. If response is null, then:\n if (response === null) {\n // 1. If makeCORSPreflight is true and one of these conditions is true:\n // TODO\n\n // 2. If request\u2019s redirect mode is \"follow\", then set request\u2019s\n // service-workers mode to \"none\".\n if (request.redirect === 'follow') {\n request.serviceWorkers = 'none'\n }\n\n // 3. Set response and actualResponse to the result of running\n // HTTP-network-or-cache fetch given fetchParams.\n actualResponse = response = await httpNetworkOrCacheFetch(fetchParams)\n\n // 4. If request\u2019s response tainting is \"cors\" and a CORS check\n // for request and response returns failure, then return a network error.\n if (\n request.responseTainting === 'cors' &&\n corsCheck(request, response) === 'failure'\n ) {\n return makeNetworkError('cors failure')\n }\n\n // 5. If the TAO check for request and response returns failure, then set\n // request\u2019s timing allow failed flag.\n if (TAOCheck(request, response) === 'failure') {\n request.timingAllowFailed = true\n }\n }\n\n // 7. If either request\u2019s response tainting or response\u2019s type\n // is \"opaque\", and the cross-origin resource policy check with\n // request\u2019s origin, request\u2019s client, request\u2019s destination,\n // and actualResponse returns blocked, then return a network error.\n if (\n (request.responseTainting === 'opaque' || response.type === 'opaque') &&\n crossOriginResourcePolicyCheck(\n request.origin,\n request.client,\n request.destination,\n actualResponse\n ) === 'blocked'\n ) {\n return makeNetworkError('blocked')\n }\n\n // 8. If actualResponse\u2019s status is a redirect status, then:\n if (redirectStatusSet.has(actualResponse.status)) {\n // 1. If actualResponse\u2019s status is not 303, request\u2019s body is not null,\n // and the connection uses HTTP/2, then user agents may, and are even\n // encouraged to, transmit an RST_STREAM frame.\n // See, https://github.com/whatwg/fetch/issues/1288\n if (request.redirect !== 'manual') {\n fetchParams.controller.connection.destroy(undefined, false)\n }\n\n // 2. Switch on request\u2019s redirect mode:\n if (request.redirect === 'error') {\n // Set response to a network error.\n response = makeNetworkError('unexpected redirect')\n } else if (request.redirect === 'manual') {\n // Set response to an opaque-redirect filtered response whose internal\n // response is actualResponse.\n // NOTE(spec): On the web this would return an `opaqueredirect` response,\n // but that doesn't make sense server side.\n // See https://github.com/nodejs/undici/issues/1193.\n response = actualResponse\n } else if (request.redirect === 'follow') {\n // Set response to the result of running HTTP-redirect fetch given\n // fetchParams and response.\n response = await httpRedirectFetch(fetchParams, response)\n } else {\n assert(false)\n }\n }\n\n // 9. Set response\u2019s timing info to timingInfo.\n response.timingInfo = timingInfo\n\n // 10. Return response.\n return response\n}\n\n// https://fetch.spec.whatwg.org/#http-redirect-fetch\nfunction httpRedirectFetch (fetchParams, response) {\n // 1. Let request be fetchParams\u2019s request.\n const request = fetchParams.request\n\n // 2. Let actualResponse be response, if response is not a filtered response,\n // and response\u2019s internal response otherwise.\n const actualResponse = response.internalResponse\n ? response.internalResponse\n : response\n\n // 3. Let locationURL be actualResponse\u2019s location URL given request\u2019s current\n // URL\u2019s fragment.\n let locationURL\n\n try {\n locationURL = responseLocationURL(\n actualResponse,\n requestCurrentURL(request).hash\n )\n\n // 4. If locationURL is null, then return response.\n if (locationURL == null) {\n return response\n }\n } catch (err) {\n // 5. If locationURL is failure, then return a network error.\n return Promise.resolve(makeNetworkError(err))\n }\n\n // 6. If locationURL\u2019s scheme is not an HTTP(S) scheme, then return a network\n // error.\n if (!urlIsHttpHttpsScheme(locationURL)) {\n return Promise.resolve(makeNetworkError('URL scheme must be a HTTP(S) scheme'))\n }\n\n // 7. If request\u2019s redirect count is 20, then return a network error.\n if (request.redirectCount === 20) {\n return Promise.resolve(makeNetworkError('redirect count exceeded'))\n }\n\n // 8. Increase request\u2019s redirect count by 1.\n request.redirectCount += 1\n\n // 9. If request\u2019s mode is \"cors\", locationURL includes credentials, and\n // request\u2019s origin is not same origin with locationURL\u2019s origin, then return\n // a network error.\n if (\n request.mode === 'cors' &&\n (locationURL.username || locationURL.password) &&\n !sameOrigin(request, locationURL)\n ) {\n return Promise.resolve(makeNetworkError('cross origin not allowed for request mode \"cors\"'))\n }\n\n // 10. If request\u2019s response tainting is \"cors\" and locationURL includes\n // credentials, then return a network error.\n if (\n request.responseTainting === 'cors' &&\n (locationURL.username || locationURL.password)\n ) {\n return Promise.resolve(makeNetworkError(\n 'URL cannot contain credentials for request mode \"cors\"'\n ))\n }\n\n // 11. If actualResponse\u2019s status is not 303, request\u2019s body is non-null,\n // and request\u2019s body\u2019s source is null, then return a network error.\n if (\n actualResponse.status !== 303 &&\n request.body != null &&\n request.body.source == null\n ) {\n return Promise.resolve(makeNetworkError())\n }\n\n // 12. If one of the following is true\n // - actualResponse\u2019s status is 301 or 302 and request\u2019s method is `POST`\n // - actualResponse\u2019s status is 303 and request\u2019s method is not `GET` or `HEAD`\n if (\n ([301, 302].includes(actualResponse.status) && request.method === 'POST') ||\n (actualResponse.status === 303 &&\n !GET_OR_HEAD.includes(request.method))\n ) {\n // then:\n // 1. Set request\u2019s method to `GET` and request\u2019s body to null.\n request.method = 'GET'\n request.body = null\n\n // 2. For each headerName of request-body-header name, delete headerName from\n // request\u2019s header list.\n for (const headerName of requestBodyHeader) {\n request.headersList.delete(headerName)\n }\n }\n\n // 13. If request\u2019s current URL\u2019s origin is not same origin with locationURL\u2019s\n // origin, then for each headerName of CORS non-wildcard request-header name,\n // delete headerName from request\u2019s header list.\n if (!sameOrigin(requestCurrentURL(request), locationURL)) {\n // https://fetch.spec.whatwg.org/#cors-non-wildcard-request-header-name\n request.headersList.delete('authorization', true)\n\n // https://fetch.spec.whatwg.org/#authentication-entries\n request.headersList.delete('proxy-authorization', true)\n\n // \"Cookie\" and \"Host\" are forbidden request-headers, which undici doesn't implement.\n request.headersList.delete('cookie', true)\n request.headersList.delete('host', true)\n }\n\n // 14. If request\u2019s body is non-null, then set request\u2019s body to the first return\n // value of safely extracting request\u2019s body\u2019s source.\n if (request.body != null) {\n assert(request.body.source != null)\n request.body = safelyExtractBody(request.body.source)[0]\n }\n\n // 15. Let timingInfo be fetchParams\u2019s timing info.\n const timingInfo = fetchParams.timingInfo\n\n // 16. Set timingInfo\u2019s redirect end time and post-redirect start time to the\n // coarsened shared current time given fetchParams\u2019s cross-origin isolated\n // capability.\n timingInfo.redirectEndTime = timingInfo.postRedirectStartTime =\n coarsenedSharedCurrentTime(fetchParams.crossOriginIsolatedCapability)\n\n // 17. If timingInfo\u2019s redirect start time is 0, then set timingInfo\u2019s\n // redirect start time to timingInfo\u2019s start time.\n if (timingInfo.redirectStartTime === 0) {\n timingInfo.redirectStartTime = timingInfo.startTime\n }\n\n // 18. Append locationURL to request\u2019s URL list.\n request.urlList.push(locationURL)\n\n // 19. Invoke set request\u2019s referrer policy on redirect on request and\n // actualResponse.\n setRequestReferrerPolicyOnRedirect(request, actualResponse)\n\n // 20. Return the result of running main fetch given fetchParams and true.\n return mainFetch(fetchParams, true)\n}\n\n// https://fetch.spec.whatwg.org/#http-network-or-cache-fetch\nasync function httpNetworkOrCacheFetch (\n fetchParams,\n isAuthenticationFetch = false,\n isNewConnectionFetch = false\n) {\n // 1. Let request be fetchParams\u2019s request.\n const request = fetchParams.request\n\n // 2. Let httpFetchParams be null.\n let httpFetchParams = null\n\n // 3. Let httpRequest be null.\n let httpRequest = null\n\n // 4. Let response be null.\n let response = null\n\n // 5. Let storedResponse be null.\n // TODO: cache\n\n // 6. Let httpCache be null.\n const httpCache = null\n\n // 7. Let the revalidatingFlag be unset.\n const revalidatingFlag = false\n\n // 8. Run these steps, but abort when the ongoing fetch is terminated:\n\n // 1. If request\u2019s window is \"no-window\" and request\u2019s redirect mode is\n // \"error\", then set httpFetchParams to fetchParams and httpRequest to\n // request.\n if (request.window === 'no-window' && request.redirect === 'error') {\n httpFetchParams = fetchParams\n httpRequest = request\n } else {\n // Otherwise:\n\n // 1. Set httpRequest to a clone of request.\n httpRequest = cloneRequest(request)\n\n // 2. Set httpFetchParams to a copy of fetchParams.\n httpFetchParams = { ...fetchParams }\n\n // 3. Set httpFetchParams\u2019s request to httpRequest.\n httpFetchParams.request = httpRequest\n }\n\n // 3. Let includeCredentials be true if one of\n const includeCredentials =\n request.credentials === 'include' ||\n (request.credentials === 'same-origin' &&\n request.responseTainting === 'basic')\n\n // 4. Let contentLength be httpRequest\u2019s body\u2019s length, if httpRequest\u2019s\n // body is non-null; otherwise null.\n const contentLength = httpRequest.body ? httpRequest.body.length : null\n\n // 5. Let contentLengthHeaderValue be null.\n let contentLengthHeaderValue = null\n\n // 6. If httpRequest\u2019s body is null and httpRequest\u2019s method is `POST` or\n // `PUT`, then set contentLengthHeaderValue to `0`.\n if (\n httpRequest.body == null &&\n ['POST', 'PUT'].includes(httpRequest.method)\n ) {\n contentLengthHeaderValue = '0'\n }\n\n // 7. If contentLength is non-null, then set contentLengthHeaderValue to\n // contentLength, serialized and isomorphic encoded.\n if (contentLength != null) {\n contentLengthHeaderValue = isomorphicEncode(`${contentLength}`)\n }\n\n // 8. If contentLengthHeaderValue is non-null, then append\n // `Content-Length`/contentLengthHeaderValue to httpRequest\u2019s header\n // list.\n if (contentLengthHeaderValue != null) {\n httpRequest.headersList.append('content-length', contentLengthHeaderValue, true)\n }\n\n // 9. If contentLengthHeaderValue is non-null, then append (`Content-Length`,\n // contentLengthHeaderValue) to httpRequest\u2019s header list.\n\n // 10. If contentLength is non-null and httpRequest\u2019s keepalive is true,\n // then:\n if (contentLength != null && httpRequest.keepalive) {\n // NOTE: keepalive is a noop outside of browser context.\n }\n\n // 11. If httpRequest\u2019s referrer is a URL, then append\n // `Referer`/httpRequest\u2019s referrer, serialized and isomorphic encoded,\n // to httpRequest\u2019s header list.\n if (httpRequest.referrer instanceof URL) {\n httpRequest.headersList.append('referer', isomorphicEncode(httpRequest.referrer.href), true)\n }\n\n // 12. Append a request `Origin` header for httpRequest.\n appendRequestOriginHeader(httpRequest)\n\n // 13. Append the Fetch metadata headers for httpRequest. [FETCH-METADATA]\n appendFetchMetadata(httpRequest)\n\n // 14. If httpRequest\u2019s header list does not contain `User-Agent`, then\n // user agents should append `User-Agent`/default `User-Agent` value to\n // httpRequest\u2019s header list.\n if (!httpRequest.headersList.contains('user-agent', true)) {\n httpRequest.headersList.append('user-agent', defaultUserAgent)\n }\n\n // 15. If httpRequest\u2019s cache mode is \"default\" and httpRequest\u2019s header\n // list contains `If-Modified-Since`, `If-None-Match`,\n // `If-Unmodified-Since`, `If-Match`, or `If-Range`, then set\n // httpRequest\u2019s cache mode to \"no-store\".\n if (\n httpRequest.cache === 'default' &&\n (httpRequest.headersList.contains('if-modified-since', true) ||\n httpRequest.headersList.contains('if-none-match', true) ||\n httpRequest.headersList.contains('if-unmodified-since', true) ||\n httpRequest.headersList.contains('if-match', true) ||\n httpRequest.headersList.contains('if-range', true))\n ) {\n httpRequest.cache = 'no-store'\n }\n\n // 16. If httpRequest\u2019s cache mode is \"no-cache\", httpRequest\u2019s prevent\n // no-cache cache-control header modification flag is unset, and\n // httpRequest\u2019s header list does not contain `Cache-Control`, then append\n // `Cache-Control`/`max-age=0` to httpRequest\u2019s header list.\n if (\n httpRequest.cache === 'no-cache' &&\n !httpRequest.preventNoCacheCacheControlHeaderModification &&\n !httpRequest.headersList.contains('cache-control', true)\n ) {\n httpRequest.headersList.append('cache-control', 'max-age=0', true)\n }\n\n // 17. If httpRequest\u2019s cache mode is \"no-store\" or \"reload\", then:\n if (httpRequest.cache === 'no-store' || httpRequest.cache === 'reload') {\n // 1. If httpRequest\u2019s header list does not contain `Pragma`, then append\n // `Pragma`/`no-cache` to httpRequest\u2019s header list.\n if (!httpRequest.headersList.contains('pragma', true)) {\n httpRequest.headersList.append('pragma', 'no-cache', true)\n }\n\n // 2. If httpRequest\u2019s header list does not contain `Cache-Control`,\n // then append `Cache-Control`/`no-cache` to httpRequest\u2019s header list.\n if (!httpRequest.headersList.contains('cache-control', true)) {\n httpRequest.headersList.append('cache-control', 'no-cache', true)\n }\n }\n\n // 18. If httpRequest\u2019s header list contains `Range`, then append\n // `Accept-Encoding`/`identity` to httpRequest\u2019s header list.\n if (httpRequest.headersList.contains('range', true)) {\n httpRequest.headersList.append('accept-encoding', 'identity', true)\n }\n\n // 19. Modify httpRequest\u2019s header list per HTTP. Do not append a given\n // header if httpRequest\u2019s header list contains that header\u2019s name.\n // TODO: https://github.com/whatwg/fetch/issues/1285#issuecomment-896560129\n if (!httpRequest.headersList.contains('accept-encoding', true)) {\n if (urlHasHttpsScheme(requestCurrentURL(httpRequest))) {\n httpRequest.headersList.append('accept-encoding', 'br, gzip, deflate', true)\n } else {\n httpRequest.headersList.append('accept-encoding', 'gzip, deflate', true)\n }\n }\n\n httpRequest.headersList.delete('host', true)\n\n // 20. If includeCredentials is true, then:\n if (includeCredentials) {\n // 1. If the user agent is not configured to block cookies for httpRequest\n // (see section 7 of [COOKIES]), then:\n // TODO: credentials\n // 2. If httpRequest\u2019s header list does not contain `Authorization`, then:\n // TODO: credentials\n }\n\n // 21. If there\u2019s a proxy-authentication entry, use it as appropriate.\n // TODO: proxy-authentication\n\n // 22. Set httpCache to the result of determining the HTTP cache\n // partition, given httpRequest.\n // TODO: cache\n\n // 23. If httpCache is null, then set httpRequest\u2019s cache mode to\n // \"no-store\".\n if (httpCache == null) {\n httpRequest.cache = 'no-store'\n }\n\n // 24. If httpRequest\u2019s cache mode is neither \"no-store\" nor \"reload\",\n // then:\n if (httpRequest.cache !== 'no-store' && httpRequest.cache !== 'reload') {\n // TODO: cache\n }\n\n // 9. If aborted, then return the appropriate network error for fetchParams.\n // TODO\n\n // 10. If response is null, then:\n if (response == null) {\n // 1. If httpRequest\u2019s cache mode is \"only-if-cached\", then return a\n // network error.\n if (httpRequest.cache === 'only-if-cached') {\n return makeNetworkError('only if cached')\n }\n\n // 2. Let forwardResponse be the result of running HTTP-network fetch\n // given httpFetchParams, includeCredentials, and isNewConnectionFetch.\n const forwardResponse = await httpNetworkFetch(\n httpFetchParams,\n includeCredentials,\n isNewConnectionFetch\n )\n\n // 3. If httpRequest\u2019s method is unsafe and forwardResponse\u2019s status is\n // in the range 200 to 399, inclusive, invalidate appropriate stored\n // responses in httpCache, as per the \"Invalidation\" chapter of HTTP\n // Caching, and set storedResponse to null. [HTTP-CACHING]\n if (\n !safeMethodsSet.has(httpRequest.method) &&\n forwardResponse.status >= 200 &&\n forwardResponse.status <= 399\n ) {\n // TODO: cache\n }\n\n // 4. If the revalidatingFlag is set and forwardResponse\u2019s status is 304,\n // then:\n if (revalidatingFlag && forwardResponse.status === 304) {\n // TODO: cache\n }\n\n // 5. If response is null, then:\n if (response == null) {\n // 1. Set response to forwardResponse.\n response = forwardResponse\n\n // 2. Store httpRequest and forwardResponse in httpCache, as per the\n // \"Storing Responses in Caches\" chapter of HTTP Caching. [HTTP-CACHING]\n // TODO: cache\n }\n }\n\n // 11. Set response\u2019s URL list to a clone of httpRequest\u2019s URL list.\n response.urlList = [...httpRequest.urlList]\n\n // 12. If httpRequest\u2019s header list contains `Range`, then set response\u2019s\n // range-requested flag.\n if (httpRequest.headersList.contains('range', true)) {\n response.rangeRequested = true\n }\n\n // 13. Set response\u2019s request-includes-credentials to includeCredentials.\n response.requestIncludesCredentials = includeCredentials\n\n // 14. If response\u2019s status is 401, httpRequest\u2019s response tainting is not\n // \"cors\", includeCredentials is true, and request\u2019s window is an environment\n // settings object, then:\n // TODO\n\n // 15. If response\u2019s status is 407, then:\n if (response.status === 407) {\n // 1. If request\u2019s window is \"no-window\", then return a network error.\n if (request.window === 'no-window') {\n return makeNetworkError()\n }\n\n // 2. ???\n\n // 3. If fetchParams is canceled, then return the appropriate network error for fetchParams.\n if (isCancelled(fetchParams)) {\n return makeAppropriateNetworkError(fetchParams)\n }\n\n // 4. Prompt the end user as appropriate in request\u2019s window and store\n // the result as a proxy-authentication entry. [HTTP-AUTH]\n // TODO: Invoke some kind of callback?\n\n // 5. Set response to the result of running HTTP-network-or-cache fetch given\n // fetchParams.\n // TODO\n return makeNetworkError('proxy authentication required')\n }\n\n // 16. If all of the following are true\n if (\n // response\u2019s status is 421\n response.status === 421 &&\n // isNewConnectionFetch is false\n !isNewConnectionFetch &&\n // request\u2019s body is null, or request\u2019s body is non-null and request\u2019s body\u2019s source is non-null\n (request.body == null || request.body.source != null)\n ) {\n // then:\n\n // 1. If fetchParams is canceled, then return the appropriate network error for fetchParams.\n if (isCancelled(fetchParams)) {\n return makeAppropriateNetworkError(fetchParams)\n }\n\n // 2. Set response to the result of running HTTP-network-or-cache\n // fetch given fetchParams, isAuthenticationFetch, and true.\n\n // TODO (spec): The spec doesn't specify this but we need to cancel\n // the active response before we can start a new one.\n // https://github.com/whatwg/fetch/issues/1293\n fetchParams.controller.connection.destroy()\n\n response = await httpNetworkOrCacheFetch(\n fetchParams,\n isAuthenticationFetch,\n true\n )\n }\n\n // 17. If isAuthenticationFetch is true, then create an authentication entry\n if (isAuthenticationFetch) {\n // TODO\n }\n\n // 18. Return response.\n return response\n}\n\n// https://fetch.spec.whatwg.org/#http-network-fetch\nasync function httpNetworkFetch (\n fetchParams,\n includeCredentials = false,\n forceNewConnection = false\n) {\n assert(!fetchParams.controller.connection || fetchParams.controller.connection.destroyed)\n\n fetchParams.controller.connection = {\n abort: null,\n destroyed: false,\n destroy (err, abort = true) {\n if (!this.destroyed) {\n this.destroyed = true\n if (abort) {\n this.abort?.(err ?? new DOMException('The operation was aborted.', 'AbortError'))\n }\n }\n }\n }\n\n // 1. Let request be fetchParams\u2019s request.\n const request = fetchParams.request\n\n // 2. Let response be null.\n let response = null\n\n // 3. Let timingInfo be fetchParams\u2019s timing info.\n const timingInfo = fetchParams.timingInfo\n\n // 4. Let httpCache be the result of determining the HTTP cache partition,\n // given request.\n // TODO: cache\n const httpCache = null\n\n // 5. If httpCache is null, then set request\u2019s cache mode to \"no-store\".\n if (httpCache == null) {\n request.cache = 'no-store'\n }\n\n // 6. Let networkPartitionKey be the result of determining the network\n // partition key given request.\n // TODO\n\n // 7. Let newConnection be \"yes\" if forceNewConnection is true; otherwise\n // \"no\".\n const newConnection = forceNewConnection ? 'yes' : 'no' // eslint-disable-line no-unused-vars\n\n // 8. Switch on request\u2019s mode:\n if (request.mode === 'websocket') {\n // Let connection be the result of obtaining a WebSocket connection,\n // given request\u2019s current URL.\n // TODO\n } else {\n // Let connection be the result of obtaining a connection, given\n // networkPartitionKey, request\u2019s current URL\u2019s origin,\n // includeCredentials, and forceNewConnection.\n // TODO\n }\n\n // 9. Run these steps, but abort when the ongoing fetch is terminated:\n\n // 1. If connection is failure, then return a network error.\n\n // 2. Set timingInfo\u2019s final connection timing info to the result of\n // calling clamp and coarsen connection timing info with connection\u2019s\n // timing info, timingInfo\u2019s post-redirect start time, and fetchParams\u2019s\n // cross-origin isolated capability.\n\n // 3. If connection is not an HTTP/2 connection, request\u2019s body is non-null,\n // and request\u2019s body\u2019s source is null, then append (`Transfer-Encoding`,\n // `chunked`) to request\u2019s header list.\n\n // 4. Set timingInfo\u2019s final network-request start time to the coarsened\n // shared current time given fetchParams\u2019s cross-origin isolated\n // capability.\n\n // 5. Set response to the result of making an HTTP request over connection\n // using request with the following caveats:\n\n // - Follow the relevant requirements from HTTP. [HTTP] [HTTP-SEMANTICS]\n // [HTTP-COND] [HTTP-CACHING] [HTTP-AUTH]\n\n // - If request\u2019s body is non-null, and request\u2019s body\u2019s source is null,\n // then the user agent may have a buffer of up to 64 kibibytes and store\n // a part of request\u2019s body in that buffer. If the user agent reads from\n // request\u2019s body beyond that buffer\u2019s size and the user agent needs to\n // resend request, then instead return a network error.\n\n // - Set timingInfo\u2019s final network-response start time to the coarsened\n // shared current time given fetchParams\u2019s cross-origin isolated capability,\n // immediately after the user agent\u2019s HTTP parser receives the first byte\n // of the response (e.g., frame header bytes for HTTP/2 or response status\n // line for HTTP/1.x).\n\n // - Wait until all the headers are transmitted.\n\n // - Any responses whose status is in the range 100 to 199, inclusive,\n // and is not 101, are to be ignored, except for the purposes of setting\n // timingInfo\u2019s final network-response start time above.\n\n // - If request\u2019s header list contains `Transfer-Encoding`/`chunked` and\n // response is transferred via HTTP/1.0 or older, then return a network\n // error.\n\n // - If the HTTP request results in a TLS client certificate dialog, then:\n\n // 1. If request\u2019s window is an environment settings object, make the\n // dialog available in request\u2019s window.\n\n // 2. Otherwise, return a network error.\n\n // To transmit request\u2019s body body, run these steps:\n let requestBody = null\n // 1. If body is null and fetchParams\u2019s process request end-of-body is\n // non-null, then queue a fetch task given fetchParams\u2019s process request\n // end-of-body and fetchParams\u2019s task destination.\n if (request.body == null && fetchParams.processRequestEndOfBody) {\n queueMicrotask(() => fetchParams.processRequestEndOfBody())\n } else if (request.body != null) {\n // 2. Otherwise, if body is non-null:\n\n // 1. Let processBodyChunk given bytes be these steps:\n const processBodyChunk = async function * (bytes) {\n // 1. If the ongoing fetch is terminated, then abort these steps.\n if (isCancelled(fetchParams)) {\n return\n }\n\n // 2. Run this step in parallel: transmit bytes.\n yield bytes\n\n // 3. If fetchParams\u2019s process request body is non-null, then run\n // fetchParams\u2019s process request body given bytes\u2019s length.\n fetchParams.processRequestBodyChunkLength?.(bytes.byteLength)\n }\n\n // 2. Let processEndOfBody be these steps:\n const processEndOfBody = () => {\n // 1. If fetchParams is canceled, then abort these steps.\n if (isCancelled(fetchParams)) {\n return\n }\n\n // 2. If fetchParams\u2019s process request end-of-body is non-null,\n // then run fetchParams\u2019s process request end-of-body.\n if (fetchParams.processRequestEndOfBody) {\n fetchParams.processRequestEndOfBody()\n }\n }\n\n // 3. Let processBodyError given e be these steps:\n const processBodyError = (e) => {\n // 1. If fetchParams is canceled, then abort these steps.\n if (isCancelled(fetchParams)) {\n return\n }\n\n // 2. If e is an \"AbortError\" DOMException, then abort fetchParams\u2019s controller.\n if (e.name === 'AbortError') {\n fetchParams.controller.abort()\n } else {\n fetchParams.controller.terminate(e)\n }\n }\n\n // 4. Incrementally read request\u2019s body given processBodyChunk, processEndOfBody,\n // processBodyError, and fetchParams\u2019s task destination.\n requestBody = (async function * () {\n try {\n for await (const bytes of request.body.stream) {\n yield * processBodyChunk(bytes)\n }\n processEndOfBody()\n } catch (err) {\n processBodyError(err)\n }\n })()\n }\n\n try {\n // socket is only provided for websockets\n const { body, status, statusText, headersList, socket } = await dispatch({ body: requestBody })\n\n if (socket) {\n response = makeResponse({ status, statusText, headersList, socket })\n } else {\n const iterator = body[Symbol.asyncIterator]()\n fetchParams.controller.next = () => iterator.next()\n\n response = makeResponse({ status, statusText, headersList })\n }\n } catch (err) {\n // 10. If aborted, then:\n if (err.name === 'AbortError') {\n // 1. If connection uses HTTP/2, then transmit an RST_STREAM frame.\n fetchParams.controller.connection.destroy()\n\n // 2. Return the appropriate network error for fetchParams.\n return makeAppropriateNetworkError(fetchParams, err)\n }\n\n return makeNetworkError(err)\n }\n\n // 11. Let pullAlgorithm be an action that resumes the ongoing fetch\n // if it is suspended.\n const pullAlgorithm = async () => {\n await fetchParams.controller.resume()\n }\n\n // 12. Let cancelAlgorithm be an algorithm that aborts fetchParams\u2019s\n // controller with reason, given reason.\n const cancelAlgorithm = (reason) => {\n // If the aborted fetch was already terminated, then we do not\n // need to do anything.\n if (!isCancelled(fetchParams)) {\n fetchParams.controller.abort(reason)\n }\n }\n\n // 13. Let highWaterMark be a non-negative, non-NaN number, chosen by\n // the user agent.\n // TODO\n\n // 14. Let sizeAlgorithm be an algorithm that accepts a chunk object\n // and returns a non-negative, non-NaN, non-infinite number, chosen by the user agent.\n // TODO\n\n // 15. Let stream be a new ReadableStream.\n // 16. Set up stream with byte reading support with pullAlgorithm set to pullAlgorithm,\n // cancelAlgorithm set to cancelAlgorithm.\n const stream = new ReadableStream(\n {\n async start (controller) {\n fetchParams.controller.controller = controller\n },\n async pull (controller) {\n await pullAlgorithm(controller)\n },\n async cancel (reason) {\n await cancelAlgorithm(reason)\n },\n type: 'bytes'\n }\n )\n\n // 17. Run these steps, but abort when the ongoing fetch is terminated:\n\n // 1. Set response\u2019s body to a new body whose stream is stream.\n response.body = { stream, source: null, length: null }\n\n // 2. If response is not a network error and request\u2019s cache mode is\n // not \"no-store\", then update response in httpCache for request.\n // TODO\n\n // 3. If includeCredentials is true and the user agent is not configured\n // to block cookies for request (see section 7 of [COOKIES]), then run the\n // \"set-cookie-string\" parsing algorithm (see section 5.2 of [COOKIES]) on\n // the value of each header whose name is a byte-case-insensitive match for\n // `Set-Cookie` in response\u2019s header list, if any, and request\u2019s current URL.\n // TODO\n\n // 18. If aborted, then:\n // TODO\n\n // 19. Run these steps in parallel:\n\n // 1. Run these steps, but abort when fetchParams is canceled:\n fetchParams.controller.onAborted = onAborted\n fetchParams.controller.on('terminated', onAborted)\n fetchParams.controller.resume = async () => {\n // 1. While true\n while (true) {\n // 1-3. See onData...\n\n // 4. Set bytes to the result of handling content codings given\n // codings and bytes.\n let bytes\n let isFailure\n try {\n const { done, value } = await fetchParams.controller.next()\n\n if (isAborted(fetchParams)) {\n break\n }\n\n bytes = done ? undefined : value\n } catch (err) {\n if (fetchParams.controller.ended && !timingInfo.encodedBodySize) {\n // zlib doesn't like empty streams.\n bytes = undefined\n } else {\n bytes = err\n\n // err may be propagated from the result of calling readablestream.cancel,\n // which might not be an error. https://github.com/nodejs/undici/issues/2009\n isFailure = true\n }\n }\n\n if (bytes === undefined) {\n // 2. Otherwise, if the bytes transmission for response\u2019s message\n // body is done normally and stream is readable, then close\n // stream, finalize response for fetchParams and response, and\n // abort these in-parallel steps.\n readableStreamClose(fetchParams.controller.controller)\n\n finalizeResponse(fetchParams, response)\n\n return\n }\n\n // 5. Increase timingInfo\u2019s decoded body size by bytes\u2019s length.\n timingInfo.decodedBodySize += bytes?.byteLength ?? 0\n\n // 6. If bytes is failure, then terminate fetchParams\u2019s controller.\n if (isFailure) {\n fetchParams.controller.terminate(bytes)\n return\n }\n\n // 7. Enqueue a Uint8Array wrapping an ArrayBuffer containing bytes\n // into stream.\n const buffer = new Uint8Array(bytes)\n if (buffer.byteLength) {\n fetchParams.controller.controller.enqueue(buffer)\n }\n\n // 8. If stream is errored, then terminate the ongoing fetch.\n if (isErrored(stream)) {\n fetchParams.controller.terminate()\n return\n }\n\n // 9. If stream doesn\u2019t need more data ask the user agent to suspend\n // the ongoing fetch.\n if (fetchParams.controller.controller.desiredSize <= 0) {\n return\n }\n }\n }\n\n // 2. If aborted, then:\n function onAborted (reason) {\n // 2. If fetchParams is aborted, then:\n if (isAborted(fetchParams)) {\n // 1. Set response\u2019s aborted flag.\n response.aborted = true\n\n // 2. If stream is readable, then error stream with the result of\n // deserialize a serialized abort reason given fetchParams\u2019s\n // controller\u2019s serialized abort reason and an\n // implementation-defined realm.\n if (isReadable(stream)) {\n fetchParams.controller.controller.error(\n fetchParams.controller.serializedAbortReason\n )\n }\n } else {\n // 3. Otherwise, if stream is readable, error stream with a TypeError.\n if (isReadable(stream)) {\n fetchParams.controller.controller.error(new TypeError('terminated', {\n cause: isErrorLike(reason) ? reason : undefined\n }))\n }\n }\n\n // 4. If connection uses HTTP/2, then transmit an RST_STREAM frame.\n // 5. Otherwise, the user agent should close connection unless it would be bad for performance to do so.\n fetchParams.controller.connection.destroy()\n }\n\n // 20. Return response.\n return response\n\n function dispatch ({ body }) {\n const url = requestCurrentURL(request)\n /** @type {import('../..').Agent} */\n const agent = fetchParams.controller.dispatcher\n\n return new Promise((resolve, reject) => agent.dispatch(\n {\n path: url.pathname + url.search,\n origin: url.origin,\n method: request.method,\n body: agent.isMockActive ? request.body && (request.body.source || request.body.stream) : body,\n headers: request.headersList.entries,\n maxRedirections: 0,\n upgrade: request.mode === 'websocket' ? 'websocket' : undefined\n },\n {\n body: null,\n abort: null,\n\n onConnect (abort) {\n // TODO (fix): Do we need connection here?\n const { connection } = fetchParams.controller\n\n // Set timingInfo\u2019s final connection timing info to the result of calling clamp and coarsen\n // connection timing info with connection\u2019s timing info, timingInfo\u2019s post-redirect start\n // time, and fetchParams\u2019s cross-origin isolated capability.\n // TODO: implement connection timing\n timingInfo.finalConnectionTimingInfo = clampAndCoarsenConnectionTimingInfo(undefined, timingInfo.postRedirectStartTime, fetchParams.crossOriginIsolatedCapability)\n\n if (connection.destroyed) {\n abort(new DOMException('The operation was aborted.', 'AbortError'))\n } else {\n fetchParams.controller.on('terminated', abort)\n this.abort = connection.abort = abort\n }\n\n // Set timingInfo\u2019s final network-request start time to the coarsened shared current time given\n // fetchParams\u2019s cross-origin isolated capability.\n timingInfo.finalNetworkRequestStartTime = coarsenedSharedCurrentTime(fetchParams.crossOriginIsolatedCapability)\n },\n\n onResponseStarted () {\n // Set timingInfo\u2019s final network-response start time to the coarsened shared current\n // time given fetchParams\u2019s cross-origin isolated capability, immediately after the\n // user agent\u2019s HTTP parser receives the first byte of the response (e.g., frame header\n // bytes for HTTP/2 or response status line for HTTP/1.x).\n timingInfo.finalNetworkResponseStartTime = coarsenedSharedCurrentTime(fetchParams.crossOriginIsolatedCapability)\n },\n\n onHeaders (status, rawHeaders, resume, statusText) {\n if (status < 200) {\n return\n }\n\n let location = ''\n\n const headersList = new HeadersList()\n\n for (let i = 0; i < rawHeaders.length; i += 2) {\n headersList.append(bufferToLowerCasedHeaderName(rawHeaders[i]), rawHeaders[i + 1].toString('latin1'), true)\n }\n location = headersList.get('location', true)\n\n this.body = new Readable({ read: resume })\n\n const decoders = []\n\n const willFollow = location && request.redirect === 'follow' &&\n redirectStatusSet.has(status)\n\n // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding\n if (request.method !== 'HEAD' && request.method !== 'CONNECT' && !nullBodyStatus.includes(status) && !willFollow) {\n // https://www.rfc-editor.org/rfc/rfc7231#section-3.1.2.1\n const contentEncoding = headersList.get('content-encoding', true)\n // \"All content-coding values are case-insensitive...\"\n /** @type {string[]} */\n const codings = contentEncoding ? contentEncoding.toLowerCase().split(',') : []\n\n // Limit the number of content-encodings to prevent resource exhaustion.\n // CVE fix similar to urllib3 (GHSA-gm62-xv2j-4w53) and curl (CVE-2022-32206).\n const maxContentEncodings = 5\n if (codings.length > maxContentEncodings) {\n reject(new Error(`too many content-encodings in response: ${codings.length}, maximum allowed is ${maxContentEncodings}`))\n return true\n }\n\n for (let i = codings.length - 1; i >= 0; --i) {\n const coding = codings[i].trim()\n // https://www.rfc-editor.org/rfc/rfc9112.html#section-7.2\n if (coding === 'x-gzip' || coding === 'gzip') {\n decoders.push(zlib.createGunzip({\n // Be less strict when decoding compressed responses, since sometimes\n // servers send slightly invalid responses that are still accepted\n // by common browsers.\n // Always using Z_SYNC_FLUSH is what cURL does.\n flush: zlib.constants.Z_SYNC_FLUSH,\n finishFlush: zlib.constants.Z_SYNC_FLUSH\n }))\n } else if (coding === 'deflate') {\n decoders.push(createInflate({\n flush: zlib.constants.Z_SYNC_FLUSH,\n finishFlush: zlib.constants.Z_SYNC_FLUSH\n }))\n } else if (coding === 'br') {\n decoders.push(zlib.createBrotliDecompress({\n flush: zlib.constants.BROTLI_OPERATION_FLUSH,\n finishFlush: zlib.constants.BROTLI_OPERATION_FLUSH\n }))\n } else {\n decoders.length = 0\n break\n }\n }\n }\n\n const onError = this.onError.bind(this)\n\n resolve({\n status,\n statusText,\n headersList,\n body: decoders.length\n ? pipeline(this.body, ...decoders, (err) => {\n if (err) {\n this.onError(err)\n }\n }).on('error', onError)\n : this.body.on('error', onError)\n })\n\n return true\n },\n\n onData (chunk) {\n if (fetchParams.controller.dump) {\n return\n }\n\n // 1. If one or more bytes have been transmitted from response\u2019s\n // message body, then:\n\n // 1. Let bytes be the transmitted bytes.\n const bytes = chunk\n\n // 2. Let codings be the result of extracting header list values\n // given `Content-Encoding` and response\u2019s header list.\n // See pullAlgorithm.\n\n // 3. Increase timingInfo\u2019s encoded body size by bytes\u2019s length.\n timingInfo.encodedBodySize += bytes.byteLength\n\n // 4. See pullAlgorithm...\n\n return this.body.push(bytes)\n },\n\n onComplete () {\n if (this.abort) {\n fetchParams.controller.off('terminated', this.abort)\n }\n\n if (fetchParams.controller.onAborted) {\n fetchParams.controller.off('terminated', fetchParams.controller.onAborted)\n }\n\n fetchParams.controller.ended = true\n\n this.body.push(null)\n },\n\n onError (error) {\n if (this.abort) {\n fetchParams.controller.off('terminated', this.abort)\n }\n\n this.body?.destroy(error)\n\n fetchParams.controller.terminate(error)\n\n reject(error)\n },\n\n onUpgrade (status, rawHeaders, socket) {\n if (status !== 101) {\n return\n }\n\n const headersList = new HeadersList()\n\n for (let i = 0; i < rawHeaders.length; i += 2) {\n headersList.append(bufferToLowerCasedHeaderName(rawHeaders[i]), rawHeaders[i + 1].toString('latin1'), true)\n }\n\n resolve({\n status,\n statusText: STATUS_CODES[status],\n headersList,\n socket\n })\n\n return true\n }\n }\n ))\n }\n}\n\nmodule.exports = {\n fetch,\n Fetch,\n fetching,\n finalizeAndReportTiming\n}\n", "'use strict'\n\nmodule.exports = {\n kState: Symbol('FileReader state'),\n kResult: Symbol('FileReader result'),\n kError: Symbol('FileReader error'),\n kLastProgressEventFired: Symbol('FileReader last progress event fired timestamp'),\n kEvents: Symbol('FileReader events'),\n kAborted: Symbol('FileReader aborted')\n}\n", "'use strict'\n\nconst { webidl } = require('../fetch/webidl')\n\nconst kState = Symbol('ProgressEvent state')\n\n/**\n * @see https://xhr.spec.whatwg.org/#progressevent\n */\nclass ProgressEvent extends Event {\n constructor (type, eventInitDict = {}) {\n type = webidl.converters.DOMString(type, 'ProgressEvent constructor', 'type')\n eventInitDict = webidl.converters.ProgressEventInit(eventInitDict ?? {})\n\n super(type, eventInitDict)\n\n this[kState] = {\n lengthComputable: eventInitDict.lengthComputable,\n loaded: eventInitDict.loaded,\n total: eventInitDict.total\n }\n }\n\n get lengthComputable () {\n webidl.brandCheck(this, ProgressEvent)\n\n return this[kState].lengthComputable\n }\n\n get loaded () {\n webidl.brandCheck(this, ProgressEvent)\n\n return this[kState].loaded\n }\n\n get total () {\n webidl.brandCheck(this, ProgressEvent)\n\n return this[kState].total\n }\n}\n\nwebidl.converters.ProgressEventInit = webidl.dictionaryConverter([\n {\n key: 'lengthComputable',\n converter: webidl.converters.boolean,\n defaultValue: () => false\n },\n {\n key: 'loaded',\n converter: webidl.converters['unsigned long long'],\n defaultValue: () => 0\n },\n {\n key: 'total',\n converter: webidl.converters['unsigned long long'],\n defaultValue: () => 0\n },\n {\n key: 'bubbles',\n converter: webidl.converters.boolean,\n defaultValue: () => false\n },\n {\n key: 'cancelable',\n converter: webidl.converters.boolean,\n defaultValue: () => false\n },\n {\n key: 'composed',\n converter: webidl.converters.boolean,\n defaultValue: () => false\n }\n])\n\nmodule.exports = {\n ProgressEvent\n}\n", "'use strict'\n\n/**\n * @see https://encoding.spec.whatwg.org/#concept-encoding-get\n * @param {string|undefined} label\n */\nfunction getEncoding (label) {\n if (!label) {\n return 'failure'\n }\n\n // 1. Remove any leading and trailing ASCII whitespace from label.\n // 2. If label is an ASCII case-insensitive match for any of the\n // labels listed in the table below, then return the\n // corresponding encoding; otherwise return failure.\n switch (label.trim().toLowerCase()) {\n case 'unicode-1-1-utf-8':\n case 'unicode11utf8':\n case 'unicode20utf8':\n case 'utf-8':\n case 'utf8':\n case 'x-unicode20utf8':\n return 'UTF-8'\n case '866':\n case 'cp866':\n case 'csibm866':\n case 'ibm866':\n return 'IBM866'\n case 'csisolatin2':\n case 'iso-8859-2':\n case 'iso-ir-101':\n case 'iso8859-2':\n case 'iso88592':\n case 'iso_8859-2':\n case 'iso_8859-2:1987':\n case 'l2':\n case 'latin2':\n return 'ISO-8859-2'\n case 'csisolatin3':\n case 'iso-8859-3':\n case 'iso-ir-109':\n case 'iso8859-3':\n case 'iso88593':\n case 'iso_8859-3':\n case 'iso_8859-3:1988':\n case 'l3':\n case 'latin3':\n return 'ISO-8859-3'\n case 'csisolatin4':\n case 'iso-8859-4':\n case 'iso-ir-110':\n case 'iso8859-4':\n case 'iso88594':\n case 'iso_8859-4':\n case 'iso_8859-4:1988':\n case 'l4':\n case 'latin4':\n return 'ISO-8859-4'\n case 'csisolatincyrillic':\n case 'cyrillic':\n case 'iso-8859-5':\n case 'iso-ir-144':\n case 'iso8859-5':\n case 'iso88595':\n case 'iso_8859-5':\n case 'iso_8859-5:1988':\n return 'ISO-8859-5'\n case 'arabic':\n case 'asmo-708':\n case 'csiso88596e':\n case 'csiso88596i':\n case 'csisolatinarabic':\n case 'ecma-114':\n case 'iso-8859-6':\n case 'iso-8859-6-e':\n case 'iso-8859-6-i':\n case 'iso-ir-127':\n case 'iso8859-6':\n case 'iso88596':\n case 'iso_8859-6':\n case 'iso_8859-6:1987':\n return 'ISO-8859-6'\n case 'csisolatingreek':\n case 'ecma-118':\n case 'elot_928':\n case 'greek':\n case 'greek8':\n case 'iso-8859-7':\n case 'iso-ir-126':\n case 'iso8859-7':\n case 'iso88597':\n case 'iso_8859-7':\n case 'iso_8859-7:1987':\n case 'sun_eu_greek':\n return 'ISO-8859-7'\n case 'csiso88598e':\n case 'csisolatinhebrew':\n case 'hebrew':\n case 'iso-8859-8':\n case 'iso-8859-8-e':\n case 'iso-ir-138':\n case 'iso8859-8':\n case 'iso88598':\n case 'iso_8859-8':\n case 'iso_8859-8:1988':\n case 'visual':\n return 'ISO-8859-8'\n case 'csiso88598i':\n case 'iso-8859-8-i':\n case 'logical':\n return 'ISO-8859-8-I'\n case 'csisolatin6':\n case 'iso-8859-10':\n case 'iso-ir-157':\n case 'iso8859-10':\n case 'iso885910':\n case 'l6':\n case 'latin6':\n return 'ISO-8859-10'\n case 'iso-8859-13':\n case 'iso8859-13':\n case 'iso885913':\n return 'ISO-8859-13'\n case 'iso-8859-14':\n case 'iso8859-14':\n case 'iso885914':\n return 'ISO-8859-14'\n case 'csisolatin9':\n case 'iso-8859-15':\n case 'iso8859-15':\n case 'iso885915':\n case 'iso_8859-15':\n case 'l9':\n return 'ISO-8859-15'\n case 'iso-8859-16':\n return 'ISO-8859-16'\n case 'cskoi8r':\n case 'koi':\n case 'koi8':\n case 'koi8-r':\n case 'koi8_r':\n return 'KOI8-R'\n case 'koi8-ru':\n case 'koi8-u':\n return 'KOI8-U'\n case 'csmacintosh':\n case 'mac':\n case 'macintosh':\n case 'x-mac-roman':\n return 'macintosh'\n case 'iso-8859-11':\n case 'iso8859-11':\n case 'iso885911':\n case 'tis-620':\n case 'windows-874':\n return 'windows-874'\n case 'cp1250':\n case 'windows-1250':\n case 'x-cp1250':\n return 'windows-1250'\n case 'cp1251':\n case 'windows-1251':\n case 'x-cp1251':\n return 'windows-1251'\n case 'ansi_x3.4-1968':\n case 'ascii':\n case 'cp1252':\n case 'cp819':\n case 'csisolatin1':\n case 'ibm819':\n case 'iso-8859-1':\n case 'iso-ir-100':\n case 'iso8859-1':\n case 'iso88591':\n case 'iso_8859-1':\n case 'iso_8859-1:1987':\n case 'l1':\n case 'latin1':\n case 'us-ascii':\n case 'windows-1252':\n case 'x-cp1252':\n return 'windows-1252'\n case 'cp1253':\n case 'windows-1253':\n case 'x-cp1253':\n return 'windows-1253'\n case 'cp1254':\n case 'csisolatin5':\n case 'iso-8859-9':\n case 'iso-ir-148':\n case 'iso8859-9':\n case 'iso88599':\n case 'iso_8859-9':\n case 'iso_8859-9:1989':\n case 'l5':\n case 'latin5':\n case 'windows-1254':\n case 'x-cp1254':\n return 'windows-1254'\n case 'cp1255':\n case 'windows-1255':\n case 'x-cp1255':\n return 'windows-1255'\n case 'cp1256':\n case 'windows-1256':\n case 'x-cp1256':\n return 'windows-1256'\n case 'cp1257':\n case 'windows-1257':\n case 'x-cp1257':\n return 'windows-1257'\n case 'cp1258':\n case 'windows-1258':\n case 'x-cp1258':\n return 'windows-1258'\n case 'x-mac-cyrillic':\n case 'x-mac-ukrainian':\n return 'x-mac-cyrillic'\n case 'chinese':\n case 'csgb2312':\n case 'csiso58gb231280':\n case 'gb2312':\n case 'gb_2312':\n case 'gb_2312-80':\n case 'gbk':\n case 'iso-ir-58':\n case 'x-gbk':\n return 'GBK'\n case 'gb18030':\n return 'gb18030'\n case 'big5':\n case 'big5-hkscs':\n case 'cn-big5':\n case 'csbig5':\n case 'x-x-big5':\n return 'Big5'\n case 'cseucpkdfmtjapanese':\n case 'euc-jp':\n case 'x-euc-jp':\n return 'EUC-JP'\n case 'csiso2022jp':\n case 'iso-2022-jp':\n return 'ISO-2022-JP'\n case 'csshiftjis':\n case 'ms932':\n case 'ms_kanji':\n case 'shift-jis':\n case 'shift_jis':\n case 'sjis':\n case 'windows-31j':\n case 'x-sjis':\n return 'Shift_JIS'\n case 'cseuckr':\n case 'csksc56011987':\n case 'euc-kr':\n case 'iso-ir-149':\n case 'korean':\n case 'ks_c_5601-1987':\n case 'ks_c_5601-1989':\n case 'ksc5601':\n case 'ksc_5601':\n case 'windows-949':\n return 'EUC-KR'\n case 'csiso2022kr':\n case 'hz-gb-2312':\n case 'iso-2022-cn':\n case 'iso-2022-cn-ext':\n case 'iso-2022-kr':\n case 'replacement':\n return 'replacement'\n case 'unicodefffe':\n case 'utf-16be':\n return 'UTF-16BE'\n case 'csunicode':\n case 'iso-10646-ucs-2':\n case 'ucs-2':\n case 'unicode':\n case 'unicodefeff':\n case 'utf-16':\n case 'utf-16le':\n return 'UTF-16LE'\n case 'x-user-defined':\n return 'x-user-defined'\n default: return 'failure'\n }\n}\n\nmodule.exports = {\n getEncoding\n}\n", "'use strict'\n\nconst {\n kState,\n kError,\n kResult,\n kAborted,\n kLastProgressEventFired\n} = require('./symbols')\nconst { ProgressEvent } = require('./progressevent')\nconst { getEncoding } = require('./encoding')\nconst { serializeAMimeType, parseMIMEType } = require('../fetch/data-url')\nconst { types } = require('node:util')\nconst { StringDecoder } = require('string_decoder')\nconst { btoa } = require('node:buffer')\n\n/** @type {PropertyDescriptor} */\nconst staticPropertyDescriptors = {\n enumerable: true,\n writable: false,\n configurable: false\n}\n\n/**\n * @see https://w3c.github.io/FileAPI/#readOperation\n * @param {import('./filereader').FileReader} fr\n * @param {import('buffer').Blob} blob\n * @param {string} type\n * @param {string?} encodingName\n */\nfunction readOperation (fr, blob, type, encodingName) {\n // 1. If fr\u2019s state is \"loading\", throw an InvalidStateError\n // DOMException.\n if (fr[kState] === 'loading') {\n throw new DOMException('Invalid state', 'InvalidStateError')\n }\n\n // 2. Set fr\u2019s state to \"loading\".\n fr[kState] = 'loading'\n\n // 3. Set fr\u2019s result to null.\n fr[kResult] = null\n\n // 4. Set fr\u2019s error to null.\n fr[kError] = null\n\n // 5. Let stream be the result of calling get stream on blob.\n /** @type {import('stream/web').ReadableStream} */\n const stream = blob.stream()\n\n // 6. Let reader be the result of getting a reader from stream.\n const reader = stream.getReader()\n\n // 7. Let bytes be an empty byte sequence.\n /** @type {Uint8Array[]} */\n const bytes = []\n\n // 8. Let chunkPromise be the result of reading a chunk from\n // stream with reader.\n let chunkPromise = reader.read()\n\n // 9. Let isFirstChunk be true.\n let isFirstChunk = true\n\n // 10. In parallel, while true:\n // Note: \"In parallel\" just means non-blocking\n // Note 2: readOperation itself cannot be async as double\n // reading the body would then reject the promise, instead\n // of throwing an error.\n ;(async () => {\n while (!fr[kAborted]) {\n // 1. Wait for chunkPromise to be fulfilled or rejected.\n try {\n const { done, value } = await chunkPromise\n\n // 2. If chunkPromise is fulfilled, and isFirstChunk is\n // true, queue a task to fire a progress event called\n // loadstart at fr.\n if (isFirstChunk && !fr[kAborted]) {\n queueMicrotask(() => {\n fireAProgressEvent('loadstart', fr)\n })\n }\n\n // 3. Set isFirstChunk to false.\n isFirstChunk = false\n\n // 4. If chunkPromise is fulfilled with an object whose\n // done property is false and whose value property is\n // a Uint8Array object, run these steps:\n if (!done && types.isUint8Array(value)) {\n // 1. Let bs be the byte sequence represented by the\n // Uint8Array object.\n\n // 2. Append bs to bytes.\n bytes.push(value)\n\n // 3. If roughly 50ms have passed since these steps\n // were last invoked, queue a task to fire a\n // progress event called progress at fr.\n if (\n (\n fr[kLastProgressEventFired] === undefined ||\n Date.now() - fr[kLastProgressEventFired] >= 50\n ) &&\n !fr[kAborted]\n ) {\n fr[kLastProgressEventFired] = Date.now()\n queueMicrotask(() => {\n fireAProgressEvent('progress', fr)\n })\n }\n\n // 4. Set chunkPromise to the result of reading a\n // chunk from stream with reader.\n chunkPromise = reader.read()\n } else if (done) {\n // 5. Otherwise, if chunkPromise is fulfilled with an\n // object whose done property is true, queue a task\n // to run the following steps and abort this algorithm:\n queueMicrotask(() => {\n // 1. Set fr\u2019s state to \"done\".\n fr[kState] = 'done'\n\n // 2. Let result be the result of package data given\n // bytes, type, blob\u2019s type, and encodingName.\n try {\n const result = packageData(bytes, type, blob.type, encodingName)\n\n // 4. Else:\n\n if (fr[kAborted]) {\n return\n }\n\n // 1. Set fr\u2019s result to result.\n fr[kResult] = result\n\n // 2. Fire a progress event called load at the fr.\n fireAProgressEvent('load', fr)\n } catch (error) {\n // 3. If package data threw an exception error:\n\n // 1. Set fr\u2019s error to error.\n fr[kError] = error\n\n // 2. Fire a progress event called error at fr.\n fireAProgressEvent('error', fr)\n }\n\n // 5. If fr\u2019s state is not \"loading\", fire a progress\n // event called loadend at the fr.\n if (fr[kState] !== 'loading') {\n fireAProgressEvent('loadend', fr)\n }\n })\n\n break\n }\n } catch (error) {\n if (fr[kAborted]) {\n return\n }\n\n // 6. Otherwise, if chunkPromise is rejected with an\n // error error, queue a task to run the following\n // steps and abort this algorithm:\n queueMicrotask(() => {\n // 1. Set fr\u2019s state to \"done\".\n fr[kState] = 'done'\n\n // 2. Set fr\u2019s error to error.\n fr[kError] = error\n\n // 3. Fire a progress event called error at fr.\n fireAProgressEvent('error', fr)\n\n // 4. If fr\u2019s state is not \"loading\", fire a progress\n // event called loadend at fr.\n if (fr[kState] !== 'loading') {\n fireAProgressEvent('loadend', fr)\n }\n })\n\n break\n }\n }\n })()\n}\n\n/**\n * @see https://w3c.github.io/FileAPI/#fire-a-progress-event\n * @see https://dom.spec.whatwg.org/#concept-event-fire\n * @param {string} e The name of the event\n * @param {import('./filereader').FileReader} reader\n */\nfunction fireAProgressEvent (e, reader) {\n // The progress event e does not bubble. e.bubbles must be false\n // The progress event e is NOT cancelable. e.cancelable must be false\n const event = new ProgressEvent(e, {\n bubbles: false,\n cancelable: false\n })\n\n reader.dispatchEvent(event)\n}\n\n/**\n * @see https://w3c.github.io/FileAPI/#blob-package-data\n * @param {Uint8Array[]} bytes\n * @param {string} type\n * @param {string?} mimeType\n * @param {string?} encodingName\n */\nfunction packageData (bytes, type, mimeType, encodingName) {\n // 1. A Blob has an associated package data algorithm, given\n // bytes, a type, a optional mimeType, and a optional\n // encodingName, which switches on type and runs the\n // associated steps:\n\n switch (type) {\n case 'DataURL': {\n // 1. Return bytes as a DataURL [RFC2397] subject to\n // the considerations below:\n // * Use mimeType as part of the Data URL if it is\n // available in keeping with the Data URL\n // specification [RFC2397].\n // * If mimeType is not available return a Data URL\n // without a media-type. [RFC2397].\n\n // https://datatracker.ietf.org/doc/html/rfc2397#section-3\n // dataurl := \"data:\" [ mediatype ] [ \";base64\" ] \",\" data\n // mediatype := [ type \"/\" subtype ] *( \";\" parameter )\n // data := *urlchar\n // parameter := attribute \"=\" value\n let dataURL = 'data:'\n\n const parsed = parseMIMEType(mimeType || 'application/octet-stream')\n\n if (parsed !== 'failure') {\n dataURL += serializeAMimeType(parsed)\n }\n\n dataURL += ';base64,'\n\n const decoder = new StringDecoder('latin1')\n\n for (const chunk of bytes) {\n dataURL += btoa(decoder.write(chunk))\n }\n\n dataURL += btoa(decoder.end())\n\n return dataURL\n }\n case 'Text': {\n // 1. Let encoding be failure\n let encoding = 'failure'\n\n // 2. If the encodingName is present, set encoding to the\n // result of getting an encoding from encodingName.\n if (encodingName) {\n encoding = getEncoding(encodingName)\n }\n\n // 3. If encoding is failure, and mimeType is present:\n if (encoding === 'failure' && mimeType) {\n // 1. Let type be the result of parse a MIME type\n // given mimeType.\n const type = parseMIMEType(mimeType)\n\n // 2. If type is not failure, set encoding to the result\n // of getting an encoding from type\u2019s parameters[\"charset\"].\n if (type !== 'failure') {\n encoding = getEncoding(type.parameters.get('charset'))\n }\n }\n\n // 4. If encoding is failure, then set encoding to UTF-8.\n if (encoding === 'failure') {\n encoding = 'UTF-8'\n }\n\n // 5. Decode bytes using fallback encoding encoding, and\n // return the result.\n return decode(bytes, encoding)\n }\n case 'ArrayBuffer': {\n // Return a new ArrayBuffer whose contents are bytes.\n const sequence = combineByteSequences(bytes)\n\n return sequence.buffer\n }\n case 'BinaryString': {\n // Return bytes as a binary string, in which every byte\n // is represented by a code unit of equal value [0..255].\n let binaryString = ''\n\n const decoder = new StringDecoder('latin1')\n\n for (const chunk of bytes) {\n binaryString += decoder.write(chunk)\n }\n\n binaryString += decoder.end()\n\n return binaryString\n }\n }\n}\n\n/**\n * @see https://encoding.spec.whatwg.org/#decode\n * @param {Uint8Array[]} ioQueue\n * @param {string} encoding\n */\nfunction decode (ioQueue, encoding) {\n const bytes = combineByteSequences(ioQueue)\n\n // 1. Let BOMEncoding be the result of BOM sniffing ioQueue.\n const BOMEncoding = BOMSniffing(bytes)\n\n let slice = 0\n\n // 2. If BOMEncoding is non-null:\n if (BOMEncoding !== null) {\n // 1. Set encoding to BOMEncoding.\n encoding = BOMEncoding\n\n // 2. Read three bytes from ioQueue, if BOMEncoding is\n // UTF-8; otherwise read two bytes.\n // (Do nothing with those bytes.)\n slice = BOMEncoding === 'UTF-8' ? 3 : 2\n }\n\n // 3. Process a queue with an instance of encoding\u2019s\n // decoder, ioQueue, output, and \"replacement\".\n\n // 4. Return output.\n\n const sliced = bytes.slice(slice)\n return new TextDecoder(encoding).decode(sliced)\n}\n\n/**\n * @see https://encoding.spec.whatwg.org/#bom-sniff\n * @param {Uint8Array} ioQueue\n */\nfunction BOMSniffing (ioQueue) {\n // 1. Let BOM be the result of peeking 3 bytes from ioQueue,\n // converted to a byte sequence.\n const [a, b, c] = ioQueue\n\n // 2. For each of the rows in the table below, starting with\n // the first one and going down, if BOM starts with the\n // bytes given in the first column, then return the\n // encoding given in the cell in the second column of that\n // row. Otherwise, return null.\n if (a === 0xEF && b === 0xBB && c === 0xBF) {\n return 'UTF-8'\n } else if (a === 0xFE && b === 0xFF) {\n return 'UTF-16BE'\n } else if (a === 0xFF && b === 0xFE) {\n return 'UTF-16LE'\n }\n\n return null\n}\n\n/**\n * @param {Uint8Array[]} sequences\n */\nfunction combineByteSequences (sequences) {\n const size = sequences.reduce((a, b) => {\n return a + b.byteLength\n }, 0)\n\n let offset = 0\n\n return sequences.reduce((a, b) => {\n a.set(b, offset)\n offset += b.byteLength\n return a\n }, new Uint8Array(size))\n}\n\nmodule.exports = {\n staticPropertyDescriptors,\n readOperation,\n fireAProgressEvent\n}\n", "'use strict'\n\nconst {\n staticPropertyDescriptors,\n readOperation,\n fireAProgressEvent\n} = require('./util')\nconst {\n kState,\n kError,\n kResult,\n kEvents,\n kAborted\n} = require('./symbols')\nconst { webidl } = require('../fetch/webidl')\nconst { kEnumerableProperty } = require('../../core/util')\n\nclass FileReader extends EventTarget {\n constructor () {\n super()\n\n this[kState] = 'empty'\n this[kResult] = null\n this[kError] = null\n this[kEvents] = {\n loadend: null,\n error: null,\n abort: null,\n load: null,\n progress: null,\n loadstart: null\n }\n }\n\n /**\n * @see https://w3c.github.io/FileAPI/#dfn-readAsArrayBuffer\n * @param {import('buffer').Blob} blob\n */\n readAsArrayBuffer (blob) {\n webidl.brandCheck(this, FileReader)\n\n webidl.argumentLengthCheck(arguments, 1, 'FileReader.readAsArrayBuffer')\n\n blob = webidl.converters.Blob(blob, { strict: false })\n\n // The readAsArrayBuffer(blob) method, when invoked,\n // must initiate a read operation for blob with ArrayBuffer.\n readOperation(this, blob, 'ArrayBuffer')\n }\n\n /**\n * @see https://w3c.github.io/FileAPI/#readAsBinaryString\n * @param {import('buffer').Blob} blob\n */\n readAsBinaryString (blob) {\n webidl.brandCheck(this, FileReader)\n\n webidl.argumentLengthCheck(arguments, 1, 'FileReader.readAsBinaryString')\n\n blob = webidl.converters.Blob(blob, { strict: false })\n\n // The readAsBinaryString(blob) method, when invoked,\n // must initiate a read operation for blob with BinaryString.\n readOperation(this, blob, 'BinaryString')\n }\n\n /**\n * @see https://w3c.github.io/FileAPI/#readAsDataText\n * @param {import('buffer').Blob} blob\n * @param {string?} encoding\n */\n readAsText (blob, encoding = undefined) {\n webidl.brandCheck(this, FileReader)\n\n webidl.argumentLengthCheck(arguments, 1, 'FileReader.readAsText')\n\n blob = webidl.converters.Blob(blob, { strict: false })\n\n if (encoding !== undefined) {\n encoding = webidl.converters.DOMString(encoding, 'FileReader.readAsText', 'encoding')\n }\n\n // The readAsText(blob, encoding) method, when invoked,\n // must initiate a read operation for blob with Text and encoding.\n readOperation(this, blob, 'Text', encoding)\n }\n\n /**\n * @see https://w3c.github.io/FileAPI/#dfn-readAsDataURL\n * @param {import('buffer').Blob} blob\n */\n readAsDataURL (blob) {\n webidl.brandCheck(this, FileReader)\n\n webidl.argumentLengthCheck(arguments, 1, 'FileReader.readAsDataURL')\n\n blob = webidl.converters.Blob(blob, { strict: false })\n\n // The readAsDataURL(blob) method, when invoked, must\n // initiate a read operation for blob with DataURL.\n readOperation(this, blob, 'DataURL')\n }\n\n /**\n * @see https://w3c.github.io/FileAPI/#dfn-abort\n */\n abort () {\n // 1. If this's state is \"empty\" or if this's state is\n // \"done\" set this's result to null and terminate\n // this algorithm.\n if (this[kState] === 'empty' || this[kState] === 'done') {\n this[kResult] = null\n return\n }\n\n // 2. If this's state is \"loading\" set this's state to\n // \"done\" and set this's result to null.\n if (this[kState] === 'loading') {\n this[kState] = 'done'\n this[kResult] = null\n }\n\n // 3. If there are any tasks from this on the file reading\n // task source in an affiliated task queue, then remove\n // those tasks from that task queue.\n this[kAborted] = true\n\n // 4. Terminate the algorithm for the read method being processed.\n // TODO\n\n // 5. Fire a progress event called abort at this.\n fireAProgressEvent('abort', this)\n\n // 6. If this's state is not \"loading\", fire a progress\n // event called loadend at this.\n if (this[kState] !== 'loading') {\n fireAProgressEvent('loadend', this)\n }\n }\n\n /**\n * @see https://w3c.github.io/FileAPI/#dom-filereader-readystate\n */\n get readyState () {\n webidl.brandCheck(this, FileReader)\n\n switch (this[kState]) {\n case 'empty': return this.EMPTY\n case 'loading': return this.LOADING\n case 'done': return this.DONE\n }\n }\n\n /**\n * @see https://w3c.github.io/FileAPI/#dom-filereader-result\n */\n get result () {\n webidl.brandCheck(this, FileReader)\n\n // The result attribute\u2019s getter, when invoked, must return\n // this's result.\n return this[kResult]\n }\n\n /**\n * @see https://w3c.github.io/FileAPI/#dom-filereader-error\n */\n get error () {\n webidl.brandCheck(this, FileReader)\n\n // The error attribute\u2019s getter, when invoked, must return\n // this's error.\n return this[kError]\n }\n\n get onloadend () {\n webidl.brandCheck(this, FileReader)\n\n return this[kEvents].loadend\n }\n\n set onloadend (fn) {\n webidl.brandCheck(this, FileReader)\n\n if (this[kEvents].loadend) {\n this.removeEventListener('loadend', this[kEvents].loadend)\n }\n\n if (typeof fn === 'function') {\n this[kEvents].loadend = fn\n this.addEventListener('loadend', fn)\n } else {\n this[kEvents].loadend = null\n }\n }\n\n get onerror () {\n webidl.brandCheck(this, FileReader)\n\n return this[kEvents].error\n }\n\n set onerror (fn) {\n webidl.brandCheck(this, FileReader)\n\n if (this[kEvents].error) {\n this.removeEventListener('error', this[kEvents].error)\n }\n\n if (typeof fn === 'function') {\n this[kEvents].error = fn\n this.addEventListener('error', fn)\n } else {\n this[kEvents].error = null\n }\n }\n\n get onloadstart () {\n webidl.brandCheck(this, FileReader)\n\n return this[kEvents].loadstart\n }\n\n set onloadstart (fn) {\n webidl.brandCheck(this, FileReader)\n\n if (this[kEvents].loadstart) {\n this.removeEventListener('loadstart', this[kEvents].loadstart)\n }\n\n if (typeof fn === 'function') {\n this[kEvents].loadstart = fn\n this.addEventListener('loadstart', fn)\n } else {\n this[kEvents].loadstart = null\n }\n }\n\n get onprogress () {\n webidl.brandCheck(this, FileReader)\n\n return this[kEvents].progress\n }\n\n set onprogress (fn) {\n webidl.brandCheck(this, FileReader)\n\n if (this[kEvents].progress) {\n this.removeEventListener('progress', this[kEvents].progress)\n }\n\n if (typeof fn === 'function') {\n this[kEvents].progress = fn\n this.addEventListener('progress', fn)\n } else {\n this[kEvents].progress = null\n }\n }\n\n get onload () {\n webidl.brandCheck(this, FileReader)\n\n return this[kEvents].load\n }\n\n set onload (fn) {\n webidl.brandCheck(this, FileReader)\n\n if (this[kEvents].load) {\n this.removeEventListener('load', this[kEvents].load)\n }\n\n if (typeof fn === 'function') {\n this[kEvents].load = fn\n this.addEventListener('load', fn)\n } else {\n this[kEvents].load = null\n }\n }\n\n get onabort () {\n webidl.brandCheck(this, FileReader)\n\n return this[kEvents].abort\n }\n\n set onabort (fn) {\n webidl.brandCheck(this, FileReader)\n\n if (this[kEvents].abort) {\n this.removeEventListener('abort', this[kEvents].abort)\n }\n\n if (typeof fn === 'function') {\n this[kEvents].abort = fn\n this.addEventListener('abort', fn)\n } else {\n this[kEvents].abort = null\n }\n }\n}\n\n// https://w3c.github.io/FileAPI/#dom-filereader-empty\nFileReader.EMPTY = FileReader.prototype.EMPTY = 0\n// https://w3c.github.io/FileAPI/#dom-filereader-loading\nFileReader.LOADING = FileReader.prototype.LOADING = 1\n// https://w3c.github.io/FileAPI/#dom-filereader-done\nFileReader.DONE = FileReader.prototype.DONE = 2\n\nObject.defineProperties(FileReader.prototype, {\n EMPTY: staticPropertyDescriptors,\n LOADING: staticPropertyDescriptors,\n DONE: staticPropertyDescriptors,\n readAsArrayBuffer: kEnumerableProperty,\n readAsBinaryString: kEnumerableProperty,\n readAsText: kEnumerableProperty,\n readAsDataURL: kEnumerableProperty,\n abort: kEnumerableProperty,\n readyState: kEnumerableProperty,\n result: kEnumerableProperty,\n error: kEnumerableProperty,\n onloadstart: kEnumerableProperty,\n onprogress: kEnumerableProperty,\n onload: kEnumerableProperty,\n onabort: kEnumerableProperty,\n onerror: kEnumerableProperty,\n onloadend: kEnumerableProperty,\n [Symbol.toStringTag]: {\n value: 'FileReader',\n writable: false,\n enumerable: false,\n configurable: true\n }\n})\n\nObject.defineProperties(FileReader, {\n EMPTY: staticPropertyDescriptors,\n LOADING: staticPropertyDescriptors,\n DONE: staticPropertyDescriptors\n})\n\nmodule.exports = {\n FileReader\n}\n", "'use strict'\n\nmodule.exports = {\n kConstruct: require('../../core/symbols').kConstruct\n}\n", "'use strict'\n\nconst assert = require('node:assert')\nconst { URLSerializer } = require('../fetch/data-url')\nconst { isValidHeaderName } = require('../fetch/util')\n\n/**\n * @see https://url.spec.whatwg.org/#concept-url-equals\n * @param {URL} A\n * @param {URL} B\n * @param {boolean | undefined} excludeFragment\n * @returns {boolean}\n */\nfunction urlEquals (A, B, excludeFragment = false) {\n const serializedA = URLSerializer(A, excludeFragment)\n\n const serializedB = URLSerializer(B, excludeFragment)\n\n return serializedA === serializedB\n}\n\n/**\n * @see https://github.com/chromium/chromium/blob/694d20d134cb553d8d89e5500b9148012b1ba299/content/browser/cache_storage/cache_storage_cache.cc#L260-L262\n * @param {string} header\n */\nfunction getFieldValues (header) {\n assert(header !== null)\n\n const values = []\n\n for (let value of header.split(',')) {\n value = value.trim()\n\n if (isValidHeaderName(value)) {\n values.push(value)\n }\n }\n\n return values\n}\n\nmodule.exports = {\n urlEquals,\n getFieldValues\n}\n", "'use strict'\n\nconst { kConstruct } = require('./symbols')\nconst { urlEquals, getFieldValues } = require('./util')\nconst { kEnumerableProperty, isDisturbed } = require('../../core/util')\nconst { webidl } = require('../fetch/webidl')\nconst { Response, cloneResponse, fromInnerResponse } = require('../fetch/response')\nconst { Request, fromInnerRequest } = require('../fetch/request')\nconst { kState } = require('../fetch/symbols')\nconst { fetching } = require('../fetch/index')\nconst { urlIsHttpHttpsScheme, createDeferredPromise, readAllBytes } = require('../fetch/util')\nconst assert = require('node:assert')\n\n/**\n * @see https://w3c.github.io/ServiceWorker/#dfn-cache-batch-operation\n * @typedef {Object} CacheBatchOperation\n * @property {'delete' | 'put'} type\n * @property {any} request\n * @property {any} response\n * @property {import('../../types/cache').CacheQueryOptions} options\n */\n\n/**\n * @see https://w3c.github.io/ServiceWorker/#dfn-request-response-list\n * @typedef {[any, any][]} requestResponseList\n */\n\nclass Cache {\n /**\n * @see https://w3c.github.io/ServiceWorker/#dfn-relevant-request-response-list\n * @type {requestResponseList}\n */\n #relevantRequestResponseList\n\n constructor () {\n if (arguments[0] !== kConstruct) {\n webidl.illegalConstructor()\n }\n\n webidl.util.markAsUncloneable(this)\n this.#relevantRequestResponseList = arguments[1]\n }\n\n async match (request, options = {}) {\n webidl.brandCheck(this, Cache)\n\n const prefix = 'Cache.match'\n webidl.argumentLengthCheck(arguments, 1, prefix)\n\n request = webidl.converters.RequestInfo(request, prefix, 'request')\n options = webidl.converters.CacheQueryOptions(options, prefix, 'options')\n\n const p = this.#internalMatchAll(request, options, 1)\n\n if (p.length === 0) {\n return\n }\n\n return p[0]\n }\n\n async matchAll (request = undefined, options = {}) {\n webidl.brandCheck(this, Cache)\n\n const prefix = 'Cache.matchAll'\n if (request !== undefined) request = webidl.converters.RequestInfo(request, prefix, 'request')\n options = webidl.converters.CacheQueryOptions(options, prefix, 'options')\n\n return this.#internalMatchAll(request, options)\n }\n\n async add (request) {\n webidl.brandCheck(this, Cache)\n\n const prefix = 'Cache.add'\n webidl.argumentLengthCheck(arguments, 1, prefix)\n\n request = webidl.converters.RequestInfo(request, prefix, 'request')\n\n // 1.\n const requests = [request]\n\n // 2.\n const responseArrayPromise = this.addAll(requests)\n\n // 3.\n return await responseArrayPromise\n }\n\n async addAll (requests) {\n webidl.brandCheck(this, Cache)\n\n const prefix = 'Cache.addAll'\n webidl.argumentLengthCheck(arguments, 1, prefix)\n\n // 1.\n const responsePromises = []\n\n // 2.\n const requestList = []\n\n // 3.\n for (let request of requests) {\n if (request === undefined) {\n throw webidl.errors.conversionFailed({\n prefix,\n argument: 'Argument 1',\n types: ['undefined is not allowed']\n })\n }\n\n request = webidl.converters.RequestInfo(request)\n\n if (typeof request === 'string') {\n continue\n }\n\n // 3.1\n const r = request[kState]\n\n // 3.2\n if (!urlIsHttpHttpsScheme(r.url) || r.method !== 'GET') {\n throw webidl.errors.exception({\n header: prefix,\n message: 'Expected http/s scheme when method is not GET.'\n })\n }\n }\n\n // 4.\n /** @type {ReturnType[]} */\n const fetchControllers = []\n\n // 5.\n for (const request of requests) {\n // 5.1\n const r = new Request(request)[kState]\n\n // 5.2\n if (!urlIsHttpHttpsScheme(r.url)) {\n throw webidl.errors.exception({\n header: prefix,\n message: 'Expected http/s scheme.'\n })\n }\n\n // 5.4\n r.initiator = 'fetch'\n r.destination = 'subresource'\n\n // 5.5\n requestList.push(r)\n\n // 5.6\n const responsePromise = createDeferredPromise()\n\n // 5.7\n fetchControllers.push(fetching({\n request: r,\n processResponse (response) {\n // 1.\n if (response.type === 'error' || response.status === 206 || response.status < 200 || response.status > 299) {\n responsePromise.reject(webidl.errors.exception({\n header: 'Cache.addAll',\n message: 'Received an invalid status code or the request failed.'\n }))\n } else if (response.headersList.contains('vary')) { // 2.\n // 2.1\n const fieldValues = getFieldValues(response.headersList.get('vary'))\n\n // 2.2\n for (const fieldValue of fieldValues) {\n // 2.2.1\n if (fieldValue === '*') {\n responsePromise.reject(webidl.errors.exception({\n header: 'Cache.addAll',\n message: 'invalid vary field value'\n }))\n\n for (const controller of fetchControllers) {\n controller.abort()\n }\n\n return\n }\n }\n }\n },\n processResponseEndOfBody (response) {\n // 1.\n if (response.aborted) {\n responsePromise.reject(new DOMException('aborted', 'AbortError'))\n return\n }\n\n // 2.\n responsePromise.resolve(response)\n }\n }))\n\n // 5.8\n responsePromises.push(responsePromise.promise)\n }\n\n // 6.\n const p = Promise.all(responsePromises)\n\n // 7.\n const responses = await p\n\n // 7.1\n const operations = []\n\n // 7.2\n let index = 0\n\n // 7.3\n for (const response of responses) {\n // 7.3.1\n /** @type {CacheBatchOperation} */\n const operation = {\n type: 'put', // 7.3.2\n request: requestList[index], // 7.3.3\n response // 7.3.4\n }\n\n operations.push(operation) // 7.3.5\n\n index++ // 7.3.6\n }\n\n // 7.5\n const cacheJobPromise = createDeferredPromise()\n\n // 7.6.1\n let errorData = null\n\n // 7.6.2\n try {\n this.#batchCacheOperations(operations)\n } catch (e) {\n errorData = e\n }\n\n // 7.6.3\n queueMicrotask(() => {\n // 7.6.3.1\n if (errorData === null) {\n cacheJobPromise.resolve(undefined)\n } else {\n // 7.6.3.2\n cacheJobPromise.reject(errorData)\n }\n })\n\n // 7.7\n return cacheJobPromise.promise\n }\n\n async put (request, response) {\n webidl.brandCheck(this, Cache)\n\n const prefix = 'Cache.put'\n webidl.argumentLengthCheck(arguments, 2, prefix)\n\n request = webidl.converters.RequestInfo(request, prefix, 'request')\n response = webidl.converters.Response(response, prefix, 'response')\n\n // 1.\n let innerRequest = null\n\n // 2.\n if (request instanceof Request) {\n innerRequest = request[kState]\n } else { // 3.\n innerRequest = new Request(request)[kState]\n }\n\n // 4.\n if (!urlIsHttpHttpsScheme(innerRequest.url) || innerRequest.method !== 'GET') {\n throw webidl.errors.exception({\n header: prefix,\n message: 'Expected an http/s scheme when method is not GET'\n })\n }\n\n // 5.\n const innerResponse = response[kState]\n\n // 6.\n if (innerResponse.status === 206) {\n throw webidl.errors.exception({\n header: prefix,\n message: 'Got 206 status'\n })\n }\n\n // 7.\n if (innerResponse.headersList.contains('vary')) {\n // 7.1.\n const fieldValues = getFieldValues(innerResponse.headersList.get('vary'))\n\n // 7.2.\n for (const fieldValue of fieldValues) {\n // 7.2.1\n if (fieldValue === '*') {\n throw webidl.errors.exception({\n header: prefix,\n message: 'Got * vary field value'\n })\n }\n }\n }\n\n // 8.\n if (innerResponse.body && (isDisturbed(innerResponse.body.stream) || innerResponse.body.stream.locked)) {\n throw webidl.errors.exception({\n header: prefix,\n message: 'Response body is locked or disturbed'\n })\n }\n\n // 9.\n const clonedResponse = cloneResponse(innerResponse)\n\n // 10.\n const bodyReadPromise = createDeferredPromise()\n\n // 11.\n if (innerResponse.body != null) {\n // 11.1\n const stream = innerResponse.body.stream\n\n // 11.2\n const reader = stream.getReader()\n\n // 11.3\n readAllBytes(reader).then(bodyReadPromise.resolve, bodyReadPromise.reject)\n } else {\n bodyReadPromise.resolve(undefined)\n }\n\n // 12.\n /** @type {CacheBatchOperation[]} */\n const operations = []\n\n // 13.\n /** @type {CacheBatchOperation} */\n const operation = {\n type: 'put', // 14.\n request: innerRequest, // 15.\n response: clonedResponse // 16.\n }\n\n // 17.\n operations.push(operation)\n\n // 19.\n const bytes = await bodyReadPromise.promise\n\n if (clonedResponse.body != null) {\n clonedResponse.body.source = bytes\n }\n\n // 19.1\n const cacheJobPromise = createDeferredPromise()\n\n // 19.2.1\n let errorData = null\n\n // 19.2.2\n try {\n this.#batchCacheOperations(operations)\n } catch (e) {\n errorData = e\n }\n\n // 19.2.3\n queueMicrotask(() => {\n // 19.2.3.1\n if (errorData === null) {\n cacheJobPromise.resolve()\n } else { // 19.2.3.2\n cacheJobPromise.reject(errorData)\n }\n })\n\n return cacheJobPromise.promise\n }\n\n async delete (request, options = {}) {\n webidl.brandCheck(this, Cache)\n\n const prefix = 'Cache.delete'\n webidl.argumentLengthCheck(arguments, 1, prefix)\n\n request = webidl.converters.RequestInfo(request, prefix, 'request')\n options = webidl.converters.CacheQueryOptions(options, prefix, 'options')\n\n /**\n * @type {Request}\n */\n let r = null\n\n if (request instanceof Request) {\n r = request[kState]\n\n if (r.method !== 'GET' && !options.ignoreMethod) {\n return false\n }\n } else {\n assert(typeof request === 'string')\n\n r = new Request(request)[kState]\n }\n\n /** @type {CacheBatchOperation[]} */\n const operations = []\n\n /** @type {CacheBatchOperation} */\n const operation = {\n type: 'delete',\n request: r,\n options\n }\n\n operations.push(operation)\n\n const cacheJobPromise = createDeferredPromise()\n\n let errorData = null\n let requestResponses\n\n try {\n requestResponses = this.#batchCacheOperations(operations)\n } catch (e) {\n errorData = e\n }\n\n queueMicrotask(() => {\n if (errorData === null) {\n cacheJobPromise.resolve(!!requestResponses?.length)\n } else {\n cacheJobPromise.reject(errorData)\n }\n })\n\n return cacheJobPromise.promise\n }\n\n /**\n * @see https://w3c.github.io/ServiceWorker/#dom-cache-keys\n * @param {any} request\n * @param {import('../../types/cache').CacheQueryOptions} options\n * @returns {Promise}\n */\n async keys (request = undefined, options = {}) {\n webidl.brandCheck(this, Cache)\n\n const prefix = 'Cache.keys'\n\n if (request !== undefined) request = webidl.converters.RequestInfo(request, prefix, 'request')\n options = webidl.converters.CacheQueryOptions(options, prefix, 'options')\n\n // 1.\n let r = null\n\n // 2.\n if (request !== undefined) {\n // 2.1\n if (request instanceof Request) {\n // 2.1.1\n r = request[kState]\n\n // 2.1.2\n if (r.method !== 'GET' && !options.ignoreMethod) {\n return []\n }\n } else if (typeof request === 'string') { // 2.2\n r = new Request(request)[kState]\n }\n }\n\n // 4.\n const promise = createDeferredPromise()\n\n // 5.\n // 5.1\n const requests = []\n\n // 5.2\n if (request === undefined) {\n // 5.2.1\n for (const requestResponse of this.#relevantRequestResponseList) {\n // 5.2.1.1\n requests.push(requestResponse[0])\n }\n } else { // 5.3\n // 5.3.1\n const requestResponses = this.#queryCache(r, options)\n\n // 5.3.2\n for (const requestResponse of requestResponses) {\n // 5.3.2.1\n requests.push(requestResponse[0])\n }\n }\n\n // 5.4\n queueMicrotask(() => {\n // 5.4.1\n const requestList = []\n\n // 5.4.2\n for (const request of requests) {\n const requestObject = fromInnerRequest(\n request,\n new AbortController().signal,\n 'immutable'\n )\n // 5.4.2.1\n requestList.push(requestObject)\n }\n\n // 5.4.3\n promise.resolve(Object.freeze(requestList))\n })\n\n return promise.promise\n }\n\n /**\n * @see https://w3c.github.io/ServiceWorker/#batch-cache-operations-algorithm\n * @param {CacheBatchOperation[]} operations\n * @returns {requestResponseList}\n */\n #batchCacheOperations (operations) {\n // 1.\n const cache = this.#relevantRequestResponseList\n\n // 2.\n const backupCache = [...cache]\n\n // 3.\n const addedItems = []\n\n // 4.1\n const resultList = []\n\n try {\n // 4.2\n for (const operation of operations) {\n // 4.2.1\n if (operation.type !== 'delete' && operation.type !== 'put') {\n throw webidl.errors.exception({\n header: 'Cache.#batchCacheOperations',\n message: 'operation type does not match \"delete\" or \"put\"'\n })\n }\n\n // 4.2.2\n if (operation.type === 'delete' && operation.response != null) {\n throw webidl.errors.exception({\n header: 'Cache.#batchCacheOperations',\n message: 'delete operation should not have an associated response'\n })\n }\n\n // 4.2.3\n if (this.#queryCache(operation.request, operation.options, addedItems).length) {\n throw new DOMException('???', 'InvalidStateError')\n }\n\n // 4.2.4\n let requestResponses\n\n // 4.2.5\n if (operation.type === 'delete') {\n // 4.2.5.1\n requestResponses = this.#queryCache(operation.request, operation.options)\n\n // TODO: the spec is wrong, this is needed to pass WPTs\n if (requestResponses.length === 0) {\n return []\n }\n\n // 4.2.5.2\n for (const requestResponse of requestResponses) {\n const idx = cache.indexOf(requestResponse)\n assert(idx !== -1)\n\n // 4.2.5.2.1\n cache.splice(idx, 1)\n }\n } else if (operation.type === 'put') { // 4.2.6\n // 4.2.6.1\n if (operation.response == null) {\n throw webidl.errors.exception({\n header: 'Cache.#batchCacheOperations',\n message: 'put operation should have an associated response'\n })\n }\n\n // 4.2.6.2\n const r = operation.request\n\n // 4.2.6.3\n if (!urlIsHttpHttpsScheme(r.url)) {\n throw webidl.errors.exception({\n header: 'Cache.#batchCacheOperations',\n message: 'expected http or https scheme'\n })\n }\n\n // 4.2.6.4\n if (r.method !== 'GET') {\n throw webidl.errors.exception({\n header: 'Cache.#batchCacheOperations',\n message: 'not get method'\n })\n }\n\n // 4.2.6.5\n if (operation.options != null) {\n throw webidl.errors.exception({\n header: 'Cache.#batchCacheOperations',\n message: 'options must not be defined'\n })\n }\n\n // 4.2.6.6\n requestResponses = this.#queryCache(operation.request)\n\n // 4.2.6.7\n for (const requestResponse of requestResponses) {\n const idx = cache.indexOf(requestResponse)\n assert(idx !== -1)\n\n // 4.2.6.7.1\n cache.splice(idx, 1)\n }\n\n // 4.2.6.8\n cache.push([operation.request, operation.response])\n\n // 4.2.6.10\n addedItems.push([operation.request, operation.response])\n }\n\n // 4.2.7\n resultList.push([operation.request, operation.response])\n }\n\n // 4.3\n return resultList\n } catch (e) { // 5.\n // 5.1\n this.#relevantRequestResponseList.length = 0\n\n // 5.2\n this.#relevantRequestResponseList = backupCache\n\n // 5.3\n throw e\n }\n }\n\n /**\n * @see https://w3c.github.io/ServiceWorker/#query-cache\n * @param {any} requestQuery\n * @param {import('../../types/cache').CacheQueryOptions} options\n * @param {requestResponseList} targetStorage\n * @returns {requestResponseList}\n */\n #queryCache (requestQuery, options, targetStorage) {\n /** @type {requestResponseList} */\n const resultList = []\n\n const storage = targetStorage ?? this.#relevantRequestResponseList\n\n for (const requestResponse of storage) {\n const [cachedRequest, cachedResponse] = requestResponse\n if (this.#requestMatchesCachedItem(requestQuery, cachedRequest, cachedResponse, options)) {\n resultList.push(requestResponse)\n }\n }\n\n return resultList\n }\n\n /**\n * @see https://w3c.github.io/ServiceWorker/#request-matches-cached-item-algorithm\n * @param {any} requestQuery\n * @param {any} request\n * @param {any | null} response\n * @param {import('../../types/cache').CacheQueryOptions | undefined} options\n * @returns {boolean}\n */\n #requestMatchesCachedItem (requestQuery, request, response = null, options) {\n // if (options?.ignoreMethod === false && request.method === 'GET') {\n // return false\n // }\n\n const queryURL = new URL(requestQuery.url)\n\n const cachedURL = new URL(request.url)\n\n if (options?.ignoreSearch) {\n cachedURL.search = ''\n\n queryURL.search = ''\n }\n\n if (!urlEquals(queryURL, cachedURL, true)) {\n return false\n }\n\n if (\n response == null ||\n options?.ignoreVary ||\n !response.headersList.contains('vary')\n ) {\n return true\n }\n\n const fieldValues = getFieldValues(response.headersList.get('vary'))\n\n for (const fieldValue of fieldValues) {\n if (fieldValue === '*') {\n return false\n }\n\n const requestValue = request.headersList.get(fieldValue)\n const queryValue = requestQuery.headersList.get(fieldValue)\n\n // If one has the header and the other doesn't, or one has\n // a different value than the other, return false\n if (requestValue !== queryValue) {\n return false\n }\n }\n\n return true\n }\n\n #internalMatchAll (request, options, maxResponses = Infinity) {\n // 1.\n let r = null\n\n // 2.\n if (request !== undefined) {\n if (request instanceof Request) {\n // 2.1.1\n r = request[kState]\n\n // 2.1.2\n if (r.method !== 'GET' && !options.ignoreMethod) {\n return []\n }\n } else if (typeof request === 'string') {\n // 2.2.1\n r = new Request(request)[kState]\n }\n }\n\n // 5.\n // 5.1\n const responses = []\n\n // 5.2\n if (request === undefined) {\n // 5.2.1\n for (const requestResponse of this.#relevantRequestResponseList) {\n responses.push(requestResponse[1])\n }\n } else { // 5.3\n // 5.3.1\n const requestResponses = this.#queryCache(r, options)\n\n // 5.3.2\n for (const requestResponse of requestResponses) {\n responses.push(requestResponse[1])\n }\n }\n\n // 5.4\n // We don't implement CORs so we don't need to loop over the responses, yay!\n\n // 5.5.1\n const responseList = []\n\n // 5.5.2\n for (const response of responses) {\n // 5.5.2.1\n const responseObject = fromInnerResponse(response, 'immutable')\n\n responseList.push(responseObject.clone())\n\n if (responseList.length >= maxResponses) {\n break\n }\n }\n\n // 6.\n return Object.freeze(responseList)\n }\n}\n\nObject.defineProperties(Cache.prototype, {\n [Symbol.toStringTag]: {\n value: 'Cache',\n configurable: true\n },\n match: kEnumerableProperty,\n matchAll: kEnumerableProperty,\n add: kEnumerableProperty,\n addAll: kEnumerableProperty,\n put: kEnumerableProperty,\n delete: kEnumerableProperty,\n keys: kEnumerableProperty\n})\n\nconst cacheQueryOptionConverters = [\n {\n key: 'ignoreSearch',\n converter: webidl.converters.boolean,\n defaultValue: () => false\n },\n {\n key: 'ignoreMethod',\n converter: webidl.converters.boolean,\n defaultValue: () => false\n },\n {\n key: 'ignoreVary',\n converter: webidl.converters.boolean,\n defaultValue: () => false\n }\n]\n\nwebidl.converters.CacheQueryOptions = webidl.dictionaryConverter(cacheQueryOptionConverters)\n\nwebidl.converters.MultiCacheQueryOptions = webidl.dictionaryConverter([\n ...cacheQueryOptionConverters,\n {\n key: 'cacheName',\n converter: webidl.converters.DOMString\n }\n])\n\nwebidl.converters.Response = webidl.interfaceConverter(Response)\n\nwebidl.converters['sequence'] = webidl.sequenceConverter(\n webidl.converters.RequestInfo\n)\n\nmodule.exports = {\n Cache\n}\n", "'use strict'\n\nconst { kConstruct } = require('./symbols')\nconst { Cache } = require('./cache')\nconst { webidl } = require('../fetch/webidl')\nconst { kEnumerableProperty } = require('../../core/util')\n\nclass CacheStorage {\n /**\n * @see https://w3c.github.io/ServiceWorker/#dfn-relevant-name-to-cache-map\n * @type {Map}\n */\n async has (cacheName) {\n webidl.brandCheck(this, CacheStorage)\n\n const prefix = 'CacheStorage.has'\n webidl.argumentLengthCheck(arguments, 1, prefix)\n\n cacheName = webidl.converters.DOMString(cacheName, prefix, 'cacheName')\n\n // 2.1.1\n // 2.2\n return this.#caches.has(cacheName)\n }\n\n /**\n * @see https://w3c.github.io/ServiceWorker/#dom-cachestorage-open\n * @param {string} cacheName\n * @returns {Promise}\n */\n async open (cacheName) {\n webidl.brandCheck(this, CacheStorage)\n\n const prefix = 'CacheStorage.open'\n webidl.argumentLengthCheck(arguments, 1, prefix)\n\n cacheName = webidl.converters.DOMString(cacheName, prefix, 'cacheName')\n\n // 2.1\n if (this.#caches.has(cacheName)) {\n // await caches.open('v1') !== await caches.open('v1')\n\n // 2.1.1\n const cache = this.#caches.get(cacheName)\n\n // 2.1.1.1\n return new Cache(kConstruct, cache)\n }\n\n // 2.2\n const cache = []\n\n // 2.3\n this.#caches.set(cacheName, cache)\n\n // 2.4\n return new Cache(kConstruct, cache)\n }\n\n /**\n * @see https://w3c.github.io/ServiceWorker/#cache-storage-delete\n * @param {string} cacheName\n * @returns {Promise}\n */\n async delete (cacheName) {\n webidl.brandCheck(this, CacheStorage)\n\n const prefix = 'CacheStorage.delete'\n webidl.argumentLengthCheck(arguments, 1, prefix)\n\n cacheName = webidl.converters.DOMString(cacheName, prefix, 'cacheName')\n\n return this.#caches.delete(cacheName)\n }\n\n /**\n * @see https://w3c.github.io/ServiceWorker/#cache-storage-keys\n * @returns {Promise}\n */\n async keys () {\n webidl.brandCheck(this, CacheStorage)\n\n // 2.1\n const keys = this.#caches.keys()\n\n // 2.2\n return [...keys]\n }\n}\n\nObject.defineProperties(CacheStorage.prototype, {\n [Symbol.toStringTag]: {\n value: 'CacheStorage',\n configurable: true\n },\n match: kEnumerableProperty,\n has: kEnumerableProperty,\n open: kEnumerableProperty,\n delete: kEnumerableProperty,\n keys: kEnumerableProperty\n})\n\nmodule.exports = {\n CacheStorage\n}\n", "'use strict'\n\n// https://wicg.github.io/cookie-store/#cookie-maximum-attribute-value-size\nconst maxAttributeValueSize = 1024\n\n// https://wicg.github.io/cookie-store/#cookie-maximum-name-value-pair-size\nconst maxNameValuePairSize = 4096\n\nmodule.exports = {\n maxAttributeValueSize,\n maxNameValuePairSize\n}\n", "'use strict'\n\n/**\n * @param {string} value\n * @returns {boolean}\n */\nfunction isCTLExcludingHtab (value) {\n for (let i = 0; i < value.length; ++i) {\n const code = value.charCodeAt(i)\n\n if (\n (code >= 0x00 && code <= 0x08) ||\n (code >= 0x0A && code <= 0x1F) ||\n code === 0x7F\n ) {\n return true\n }\n }\n return false\n}\n\n/**\n CHAR = \n token = 1*\n separators = \"(\" | \")\" | \"<\" | \">\" | \"@\"\n | \",\" | \";\" | \":\" | \"\\\" | <\">\n | \"/\" | \"[\" | \"]\" | \"?\" | \"=\"\n | \"{\" | \"}\" | SP | HT\n * @param {string} name\n */\nfunction validateCookieName (name) {\n for (let i = 0; i < name.length; ++i) {\n const code = name.charCodeAt(i)\n\n if (\n code < 0x21 || // exclude CTLs (0-31), SP and HT\n code > 0x7E || // exclude non-ascii and DEL\n code === 0x22 || // \"\n code === 0x28 || // (\n code === 0x29 || // )\n code === 0x3C || // <\n code === 0x3E || // >\n code === 0x40 || // @\n code === 0x2C || // ,\n code === 0x3B || // ;\n code === 0x3A || // :\n code === 0x5C || // \\\n code === 0x2F || // /\n code === 0x5B || // [\n code === 0x5D || // ]\n code === 0x3F || // ?\n code === 0x3D || // =\n code === 0x7B || // {\n code === 0x7D // }\n ) {\n throw new Error('Invalid cookie name')\n }\n }\n}\n\n/**\n cookie-value = *cookie-octet / ( DQUOTE *cookie-octet DQUOTE )\n cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E\n ; US-ASCII characters excluding CTLs,\n ; whitespace DQUOTE, comma, semicolon,\n ; and backslash\n * @param {string} value\n */\nfunction validateCookieValue (value) {\n let len = value.length\n let i = 0\n\n // if the value is wrapped in DQUOTE\n if (value[0] === '\"') {\n if (len === 1 || value[len - 1] !== '\"') {\n throw new Error('Invalid cookie value')\n }\n --len\n ++i\n }\n\n while (i < len) {\n const code = value.charCodeAt(i++)\n\n if (\n code < 0x21 || // exclude CTLs (0-31)\n code > 0x7E || // non-ascii and DEL (127)\n code === 0x22 || // \"\n code === 0x2C || // ,\n code === 0x3B || // ;\n code === 0x5C // \\\n ) {\n throw new Error('Invalid cookie value')\n }\n }\n}\n\n/**\n * path-value = \n * @param {string} path\n */\nfunction validateCookiePath (path) {\n for (let i = 0; i < path.length; ++i) {\n const code = path.charCodeAt(i)\n\n if (\n code < 0x20 || // exclude CTLs (0-31)\n code > 0x7E || // exclude DEL and non-ascii\n code === 0x3B // ;\n ) {\n throw new Error('Invalid cookie path')\n }\n }\n}\n\n/**\n * ::= | \n *\n * ::= any one of the 52 alphabetic characters A through Z in\n * upper case and a through z in lower case\n *\n * ::= any one of the ten digits 0 through 9r\n *\n * @see https://www.rfc-editor.org/rfc/rfc1034#section-3.5\n * @param {number} code\n */\nfunction isLetterOrDigit (code) {\n return (\n (code >= 0x30 && code <= 0x39) || // 0-9\n (code >= 0x41 && code <= 0x5A) || // A-Z\n (code >= 0x61 && code <= 0x7A) // a-z\n )\n}\n\n/**\n * Validates a cookie domain against the \"preferred name syntax\".\n *\n * ::= | \" \"\n * ::=